Updated APIs
diff --git a/generated/googleapis/test/abusiveexperiencereport/v1_test.dart b/generated/googleapis/test/abusiveexperiencereport/v1_test.dart index 3368aae..072cb5d 100644 --- a/generated/googleapis/test/abusiveexperiencereport/v1_test.dart +++ b/generated/googleapis/test/abusiveexperiencereport/v1_test.dart
@@ -81,14 +81,14 @@ buildCounterSiteSummaryResponse--; } -buildUnnamed2518() { +buildUnnamed2640() { var o = new core.List<api.SiteSummaryResponse>(); o.add(buildSiteSummaryResponse()); o.add(buildSiteSummaryResponse()); return o; } -checkUnnamed2518(core.List<api.SiteSummaryResponse> o) { +checkUnnamed2640(core.List<api.SiteSummaryResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteSummaryResponse(o[0]); checkSiteSummaryResponse(o[1]); @@ -99,7 +99,7 @@ var o = new api.ViolatingSitesResponse(); buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - o.violatingSites = buildUnnamed2518(); + o.violatingSites = buildUnnamed2640(); } buildCounterViolatingSitesResponse--; return o; @@ -108,7 +108,7 @@ checkViolatingSitesResponse(api.ViolatingSitesResponse o) { buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - checkUnnamed2518(o.violatingSites); + checkUnnamed2640(o.violatingSites); } buildCounterViolatingSitesResponse--; }
diff --git a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart index 1fb2b60..c0e96ae 100644 --- a/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart +++ b/generated/googleapis/test/acceleratedmobilepageurl/v1_test.dart
@@ -96,14 +96,14 @@ buildCounterAmpUrlError--; } -buildUnnamed3871() { +buildUnnamed4070() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3871(core.List<core.String> o) { +checkUnnamed4070(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -115,7 +115,7 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { o.lookupStrategy = "foo"; - o.urls = buildUnnamed3871(); + o.urls = buildUnnamed4070(); } buildCounterBatchGetAmpUrlsRequest--; return o; @@ -125,32 +125,32 @@ buildCounterBatchGetAmpUrlsRequest++; if (buildCounterBatchGetAmpUrlsRequest < 3) { unittest.expect(o.lookupStrategy, unittest.equals('foo')); - checkUnnamed3871(o.urls); + checkUnnamed4070(o.urls); } buildCounterBatchGetAmpUrlsRequest--; } -buildUnnamed3872() { +buildUnnamed4071() { var o = new core.List<api.AmpUrl>(); o.add(buildAmpUrl()); o.add(buildAmpUrl()); return o; } -checkUnnamed3872(core.List<api.AmpUrl> o) { +checkUnnamed4071(core.List<api.AmpUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrl(o[0]); checkAmpUrl(o[1]); } -buildUnnamed3873() { +buildUnnamed4072() { var o = new core.List<api.AmpUrlError>(); o.add(buildAmpUrlError()); o.add(buildAmpUrlError()); return o; } -checkUnnamed3873(core.List<api.AmpUrlError> o) { +checkUnnamed4072(core.List<api.AmpUrlError> o) { unittest.expect(o, unittest.hasLength(2)); checkAmpUrlError(o[0]); checkAmpUrlError(o[1]); @@ -161,8 +161,8 @@ var o = new api.BatchGetAmpUrlsResponse(); buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - o.ampUrls = buildUnnamed3872(); - o.urlErrors = buildUnnamed3873(); + o.ampUrls = buildUnnamed4071(); + o.urlErrors = buildUnnamed4072(); } buildCounterBatchGetAmpUrlsResponse--; return o; @@ -171,8 +171,8 @@ checkBatchGetAmpUrlsResponse(api.BatchGetAmpUrlsResponse o) { buildCounterBatchGetAmpUrlsResponse++; if (buildCounterBatchGetAmpUrlsResponse < 3) { - checkUnnamed3872(o.ampUrls); - checkUnnamed3873(o.urlErrors); + checkUnnamed4071(o.ampUrls); + checkUnnamed4072(o.urlErrors); } buildCounterBatchGetAmpUrlsResponse--; }
diff --git a/generated/googleapis/test/accessapproval/v1_test.dart b/generated/googleapis/test/accessapproval/v1_test.dart index a678902..686283f 100644 --- a/generated/googleapis/test/accessapproval/v1_test.dart +++ b/generated/googleapis/test/accessapproval/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed542() { +buildUnnamed561() { var o = new core.List<api.EnrolledService>(); o.add(buildEnrolledService()); o.add(buildEnrolledService()); return o; } -checkUnnamed542(core.List<api.EnrolledService> o) { +checkUnnamed561(core.List<api.EnrolledService> o) { unittest.expect(o, unittest.hasLength(2)); checkEnrolledService(o[0]); checkEnrolledService(o[1]); } -buildUnnamed543() { +buildUnnamed562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed543(core.List<core.String> o) { +checkUnnamed562(core.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,9 +82,9 @@ buildCounterAccessApprovalSettings++; if (buildCounterAccessApprovalSettings < 3) { o.enrolledAncestor = true; - o.enrolledServices = buildUnnamed542(); + o.enrolledServices = buildUnnamed561(); o.name = "foo"; - o.notificationEmails = buildUnnamed543(); + o.notificationEmails = buildUnnamed562(); } buildCounterAccessApprovalSettings--; return o; @@ -94,9 +94,9 @@ buildCounterAccessApprovalSettings++; if (buildCounterAccessApprovalSettings < 3) { unittest.expect(o.enrolledAncestor, unittest.isTrue); - checkUnnamed542(o.enrolledServices); + checkUnnamed561(o.enrolledServices); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed543(o.notificationEmails); + checkUnnamed562(o.notificationEmails); } buildCounterAccessApprovalSettings--; } @@ -239,6 +239,7 @@ buildCounterDismissDecision++; if (buildCounterDismissDecision < 3) { o.dismissTime = "foo"; + o.implicit = true; } buildCounterDismissDecision--; return o; @@ -248,6 +249,7 @@ buildCounterDismissDecision++; if (buildCounterDismissDecision < 3) { unittest.expect(o.dismissTime, unittest.equals('foo')); + unittest.expect(o.implicit, unittest.isTrue); } buildCounterDismissDecision--; } @@ -288,14 +290,14 @@ buildCounterEnrolledService--; } -buildUnnamed544() { +buildUnnamed563() { var o = new core.List<api.ApprovalRequest>(); o.add(buildApprovalRequest()); o.add(buildApprovalRequest()); return o; } -checkUnnamed544(core.List<api.ApprovalRequest> o) { +checkUnnamed563(core.List<api.ApprovalRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkApprovalRequest(o[0]); checkApprovalRequest(o[1]); @@ -306,7 +308,7 @@ var o = new api.ListApprovalRequestsResponse(); buildCounterListApprovalRequestsResponse++; if (buildCounterListApprovalRequestsResponse < 3) { - o.approvalRequests = buildUnnamed544(); + o.approvalRequests = buildUnnamed563(); o.nextPageToken = "foo"; } buildCounterListApprovalRequestsResponse--; @@ -316,7 +318,7 @@ checkListApprovalRequestsResponse(api.ListApprovalRequestsResponse o) { buildCounterListApprovalRequestsResponse++; if (buildCounterListApprovalRequestsResponse < 3) { - checkUnnamed544(o.approvalRequests); + checkUnnamed563(o.approvalRequests); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListApprovalRequestsResponse--; @@ -771,8 +773,8 @@ api.FoldersApprovalRequestsResourceApi res = new api.AccessapprovalApi(mock).folders.approvalRequests; var arg_parent = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -806,9 +808,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -821,8 +823,8 @@ }), true); res .list(arg_parent, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1560,9 +1562,9 @@ api.ProjectsApprovalRequestsResourceApi res = new api.AccessapprovalApi(mock).projects.approvalRequests; var arg_parent = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1595,11 +1597,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1610,9 +1612,9 @@ }), true); res .list(arg_parent, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListApprovalRequestsResponse(response);
diff --git a/generated/googleapis/test/accesscontextmanager/v1_test.dart b/generated/googleapis/test/accesscontextmanager/v1_test.dart index 99db9b4..b4190c5 100644 --- a/generated/googleapis/test/accesscontextmanager/v1_test.dart +++ b/generated/googleapis/test/accesscontextmanager/v1_test.dart
@@ -102,14 +102,14 @@ buildCounterAccessPolicy--; } -buildUnnamed3658() { +buildUnnamed3842() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed3658(core.List<api.Condition> o) { +checkUnnamed3842(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); @@ -121,7 +121,7 @@ buildCounterBasicLevel++; if (buildCounterBasicLevel < 3) { o.combiningFunction = "foo"; - o.conditions = buildUnnamed3658(); + o.conditions = buildUnnamed3842(); } buildCounterBasicLevel--; return o; @@ -131,7 +131,7 @@ buildCounterBasicLevel++; if (buildCounterBasicLevel < 3) { unittest.expect(o.combiningFunction, unittest.equals('foo')); - checkUnnamed3658(o.conditions); + checkUnnamed3842(o.conditions); } buildCounterBasicLevel--; } @@ -170,14 +170,14 @@ buildCounterCommitServicePerimetersRequest--; } -buildUnnamed3659() { +buildUnnamed3843() { var o = new core.List<api.ServicePerimeter>(); o.add(buildServicePerimeter()); o.add(buildServicePerimeter()); return o; } -checkUnnamed3659(core.List<api.ServicePerimeter> o) { +checkUnnamed3843(core.List<api.ServicePerimeter> o) { unittest.expect(o, unittest.hasLength(2)); checkServicePerimeter(o[0]); checkServicePerimeter(o[1]); @@ -188,7 +188,7 @@ var o = new api.CommitServicePerimetersResponse(); buildCounterCommitServicePerimetersResponse++; if (buildCounterCommitServicePerimetersResponse < 3) { - o.servicePerimeters = buildUnnamed3659(); + o.servicePerimeters = buildUnnamed3843(); } buildCounterCommitServicePerimetersResponse--; return o; @@ -197,58 +197,58 @@ checkCommitServicePerimetersResponse(api.CommitServicePerimetersResponse o) { buildCounterCommitServicePerimetersResponse++; if (buildCounterCommitServicePerimetersResponse < 3) { - checkUnnamed3659(o.servicePerimeters); + checkUnnamed3843(o.servicePerimeters); } buildCounterCommitServicePerimetersResponse--; } -buildUnnamed3660() { +buildUnnamed3844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3660(core.List<core.String> o) { +checkUnnamed3844(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3661() { +buildUnnamed3845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3661(core.List<core.String> o) { +checkUnnamed3845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3662() { +buildUnnamed3846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3662(core.List<core.String> o) { +checkUnnamed3846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3663() { +buildUnnamed3847() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3663(core.List<core.String> o) { +checkUnnamed3847(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -260,11 +260,11 @@ buildCounterCondition++; if (buildCounterCondition < 3) { o.devicePolicy = buildDevicePolicy(); - o.ipSubnetworks = buildUnnamed3660(); - o.members = buildUnnamed3661(); + o.ipSubnetworks = buildUnnamed3844(); + o.members = buildUnnamed3845(); o.negate = true; - o.regions = buildUnnamed3662(); - o.requiredAccessLevels = buildUnnamed3663(); + o.regions = buildUnnamed3846(); + o.requiredAccessLevels = buildUnnamed3847(); } buildCounterCondition--; return o; @@ -274,11 +274,11 @@ buildCounterCondition++; if (buildCounterCondition < 3) { checkDevicePolicy(o.devicePolicy); - checkUnnamed3660(o.ipSubnetworks); - checkUnnamed3661(o.members); + checkUnnamed3844(o.ipSubnetworks); + checkUnnamed3845(o.members); unittest.expect(o.negate, unittest.isTrue); - checkUnnamed3662(o.regions); - checkUnnamed3663(o.requiredAccessLevels); + checkUnnamed3846(o.regions); + checkUnnamed3847(o.requiredAccessLevels); } buildCounterCondition--; } @@ -302,40 +302,40 @@ buildCounterCustomLevel--; } -buildUnnamed3664() { +buildUnnamed3848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3664(core.List<core.String> o) { +checkUnnamed3848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3665() { +buildUnnamed3849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3665(core.List<core.String> o) { +checkUnnamed3849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3666() { +buildUnnamed3850() { var o = new core.List<api.OsConstraint>(); o.add(buildOsConstraint()); o.add(buildOsConstraint()); return o; } -checkUnnamed3666(core.List<api.OsConstraint> o) { +checkUnnamed3850(core.List<api.OsConstraint> o) { unittest.expect(o, unittest.hasLength(2)); checkOsConstraint(o[0]); checkOsConstraint(o[1]); @@ -346,9 +346,9 @@ var o = new api.DevicePolicy(); buildCounterDevicePolicy++; if (buildCounterDevicePolicy < 3) { - o.allowedDeviceManagementLevels = buildUnnamed3664(); - o.allowedEncryptionStatuses = buildUnnamed3665(); - o.osConstraints = buildUnnamed3666(); + o.allowedDeviceManagementLevels = buildUnnamed3848(); + o.allowedEncryptionStatuses = buildUnnamed3849(); + o.osConstraints = buildUnnamed3850(); o.requireAdminApproval = true; o.requireCorpOwned = true; o.requireScreenlock = true; @@ -360,9 +360,9 @@ checkDevicePolicy(api.DevicePolicy o) { buildCounterDevicePolicy++; if (buildCounterDevicePolicy < 3) { - checkUnnamed3664(o.allowedDeviceManagementLevels); - checkUnnamed3665(o.allowedEncryptionStatuses); - checkUnnamed3666(o.osConstraints); + checkUnnamed3848(o.allowedDeviceManagementLevels); + checkUnnamed3849(o.allowedEncryptionStatuses); + checkUnnamed3850(o.osConstraints); unittest.expect(o.requireAdminApproval, unittest.isTrue); unittest.expect(o.requireCorpOwned, unittest.isTrue); unittest.expect(o.requireScreenlock, unittest.isTrue); @@ -410,14 +410,50 @@ buildCounterExpr--; } -buildUnnamed3667() { +buildUnnamed3851() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3851(core.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 buildCounterGcpUserAccessBinding = 0; +buildGcpUserAccessBinding() { + var o = new api.GcpUserAccessBinding(); + buildCounterGcpUserAccessBinding++; + if (buildCounterGcpUserAccessBinding < 3) { + o.accessLevels = buildUnnamed3851(); + o.groupKey = "foo"; + o.name = "foo"; + } + buildCounterGcpUserAccessBinding--; + return o; +} + +checkGcpUserAccessBinding(api.GcpUserAccessBinding o) { + buildCounterGcpUserAccessBinding++; + if (buildCounterGcpUserAccessBinding < 3) { + checkUnnamed3851(o.accessLevels); + unittest.expect(o.groupKey, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGcpUserAccessBinding--; +} + +buildUnnamed3852() { var o = new core.List<api.AccessLevel>(); o.add(buildAccessLevel()); o.add(buildAccessLevel()); return o; } -checkUnnamed3667(core.List<api.AccessLevel> o) { +checkUnnamed3852(core.List<api.AccessLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessLevel(o[0]); checkAccessLevel(o[1]); @@ -428,7 +464,7 @@ var o = new api.ListAccessLevelsResponse(); buildCounterListAccessLevelsResponse++; if (buildCounterListAccessLevelsResponse < 3) { - o.accessLevels = buildUnnamed3667(); + o.accessLevels = buildUnnamed3852(); o.nextPageToken = "foo"; } buildCounterListAccessLevelsResponse--; @@ -438,20 +474,20 @@ checkListAccessLevelsResponse(api.ListAccessLevelsResponse o) { buildCounterListAccessLevelsResponse++; if (buildCounterListAccessLevelsResponse < 3) { - checkUnnamed3667(o.accessLevels); + checkUnnamed3852(o.accessLevels); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAccessLevelsResponse--; } -buildUnnamed3668() { +buildUnnamed3853() { var o = new core.List<api.AccessPolicy>(); o.add(buildAccessPolicy()); o.add(buildAccessPolicy()); return o; } -checkUnnamed3668(core.List<api.AccessPolicy> o) { +checkUnnamed3853(core.List<api.AccessPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessPolicy(o[0]); checkAccessPolicy(o[1]); @@ -462,7 +498,7 @@ var o = new api.ListAccessPoliciesResponse(); buildCounterListAccessPoliciesResponse++; if (buildCounterListAccessPoliciesResponse < 3) { - o.accessPolicies = buildUnnamed3668(); + o.accessPolicies = buildUnnamed3853(); o.nextPageToken = "foo"; } buildCounterListAccessPoliciesResponse--; @@ -472,20 +508,55 @@ checkListAccessPoliciesResponse(api.ListAccessPoliciesResponse o) { buildCounterListAccessPoliciesResponse++; if (buildCounterListAccessPoliciesResponse < 3) { - checkUnnamed3668(o.accessPolicies); + checkUnnamed3853(o.accessPolicies); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAccessPoliciesResponse--; } -buildUnnamed3669() { +buildUnnamed3854() { + var o = new core.List<api.GcpUserAccessBinding>(); + o.add(buildGcpUserAccessBinding()); + o.add(buildGcpUserAccessBinding()); + return o; +} + +checkUnnamed3854(core.List<api.GcpUserAccessBinding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGcpUserAccessBinding(o[0]); + checkGcpUserAccessBinding(o[1]); +} + +core.int buildCounterListGcpUserAccessBindingsResponse = 0; +buildListGcpUserAccessBindingsResponse() { + var o = new api.ListGcpUserAccessBindingsResponse(); + buildCounterListGcpUserAccessBindingsResponse++; + if (buildCounterListGcpUserAccessBindingsResponse < 3) { + o.gcpUserAccessBindings = buildUnnamed3854(); + o.nextPageToken = "foo"; + } + buildCounterListGcpUserAccessBindingsResponse--; + return o; +} + +checkListGcpUserAccessBindingsResponse( + api.ListGcpUserAccessBindingsResponse o) { + buildCounterListGcpUserAccessBindingsResponse++; + if (buildCounterListGcpUserAccessBindingsResponse < 3) { + checkUnnamed3854(o.gcpUserAccessBindings); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListGcpUserAccessBindingsResponse--; +} + +buildUnnamed3855() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3669(core.List<api.Operation> o) { +checkUnnamed3855(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -497,7 +568,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3669(); + o.operations = buildUnnamed3855(); } buildCounterListOperationsResponse--; return o; @@ -507,19 +578,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3669(o.operations); + checkUnnamed3855(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3670() { +buildUnnamed3856() { var o = new core.List<api.ServicePerimeter>(); o.add(buildServicePerimeter()); o.add(buildServicePerimeter()); return o; } -checkUnnamed3670(core.List<api.ServicePerimeter> o) { +checkUnnamed3856(core.List<api.ServicePerimeter> o) { unittest.expect(o, unittest.hasLength(2)); checkServicePerimeter(o[0]); checkServicePerimeter(o[1]); @@ -531,7 +602,7 @@ buildCounterListServicePerimetersResponse++; if (buildCounterListServicePerimetersResponse < 3) { o.nextPageToken = "foo"; - o.servicePerimeters = buildUnnamed3670(); + o.servicePerimeters = buildUnnamed3856(); } buildCounterListServicePerimetersResponse--; return o; @@ -541,12 +612,12 @@ buildCounterListServicePerimetersResponse++; if (buildCounterListServicePerimetersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3670(o.servicePerimeters); + checkUnnamed3856(o.servicePerimeters); } buildCounterListServicePerimetersResponse--; } -buildUnnamed3671() { +buildUnnamed3857() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -561,7 +632,7 @@ return o; } -checkUnnamed3671(core.Map<core.String, core.Object> o) { +checkUnnamed3857(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)); @@ -575,7 +646,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3672() { +buildUnnamed3858() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -590,7 +661,7 @@ return o; } -checkUnnamed3672(core.Map<core.String, core.Object> o) { +checkUnnamed3858(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)); @@ -611,9 +682,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3671(); + o.metadata = buildUnnamed3857(); o.name = "foo"; - o.response = buildUnnamed3672(); + o.response = buildUnnamed3858(); } buildCounterOperation--; return o; @@ -624,9 +695,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3671(o.metadata); + checkUnnamed3857(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3672(o.response); + checkUnnamed3858(o.response); } buildCounterOperation--; } @@ -654,14 +725,14 @@ buildCounterOsConstraint--; } -buildUnnamed3673() { +buildUnnamed3859() { var o = new core.List<api.AccessLevel>(); o.add(buildAccessLevel()); o.add(buildAccessLevel()); return o; } -checkUnnamed3673(core.List<api.AccessLevel> o) { +checkUnnamed3859(core.List<api.AccessLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessLevel(o[0]); checkAccessLevel(o[1]); @@ -672,7 +743,7 @@ var o = new api.ReplaceAccessLevelsRequest(); buildCounterReplaceAccessLevelsRequest++; if (buildCounterReplaceAccessLevelsRequest < 3) { - o.accessLevels = buildUnnamed3673(); + o.accessLevels = buildUnnamed3859(); o.etag = "foo"; } buildCounterReplaceAccessLevelsRequest--; @@ -682,20 +753,20 @@ checkReplaceAccessLevelsRequest(api.ReplaceAccessLevelsRequest o) { buildCounterReplaceAccessLevelsRequest++; if (buildCounterReplaceAccessLevelsRequest < 3) { - checkUnnamed3673(o.accessLevels); + checkUnnamed3859(o.accessLevels); unittest.expect(o.etag, unittest.equals('foo')); } buildCounterReplaceAccessLevelsRequest--; } -buildUnnamed3674() { +buildUnnamed3860() { var o = new core.List<api.AccessLevel>(); o.add(buildAccessLevel()); o.add(buildAccessLevel()); return o; } -checkUnnamed3674(core.List<api.AccessLevel> o) { +checkUnnamed3860(core.List<api.AccessLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessLevel(o[0]); checkAccessLevel(o[1]); @@ -706,7 +777,7 @@ var o = new api.ReplaceAccessLevelsResponse(); buildCounterReplaceAccessLevelsResponse++; if (buildCounterReplaceAccessLevelsResponse < 3) { - o.accessLevels = buildUnnamed3674(); + o.accessLevels = buildUnnamed3860(); } buildCounterReplaceAccessLevelsResponse--; return o; @@ -715,19 +786,19 @@ checkReplaceAccessLevelsResponse(api.ReplaceAccessLevelsResponse o) { buildCounterReplaceAccessLevelsResponse++; if (buildCounterReplaceAccessLevelsResponse < 3) { - checkUnnamed3674(o.accessLevels); + checkUnnamed3860(o.accessLevels); } buildCounterReplaceAccessLevelsResponse--; } -buildUnnamed3675() { +buildUnnamed3861() { var o = new core.List<api.ServicePerimeter>(); o.add(buildServicePerimeter()); o.add(buildServicePerimeter()); return o; } -checkUnnamed3675(core.List<api.ServicePerimeter> o) { +checkUnnamed3861(core.List<api.ServicePerimeter> o) { unittest.expect(o, unittest.hasLength(2)); checkServicePerimeter(o[0]); checkServicePerimeter(o[1]); @@ -739,7 +810,7 @@ buildCounterReplaceServicePerimetersRequest++; if (buildCounterReplaceServicePerimetersRequest < 3) { o.etag = "foo"; - o.servicePerimeters = buildUnnamed3675(); + o.servicePerimeters = buildUnnamed3861(); } buildCounterReplaceServicePerimetersRequest--; return o; @@ -749,19 +820,19 @@ buildCounterReplaceServicePerimetersRequest++; if (buildCounterReplaceServicePerimetersRequest < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3675(o.servicePerimeters); + checkUnnamed3861(o.servicePerimeters); } buildCounterReplaceServicePerimetersRequest--; } -buildUnnamed3676() { +buildUnnamed3862() { var o = new core.List<api.ServicePerimeter>(); o.add(buildServicePerimeter()); o.add(buildServicePerimeter()); return o; } -checkUnnamed3676(core.List<api.ServicePerimeter> o) { +checkUnnamed3862(core.List<api.ServicePerimeter> o) { unittest.expect(o, unittest.hasLength(2)); checkServicePerimeter(o[0]); checkServicePerimeter(o[1]); @@ -772,7 +843,7 @@ var o = new api.ReplaceServicePerimetersResponse(); buildCounterReplaceServicePerimetersResponse++; if (buildCounterReplaceServicePerimetersResponse < 3) { - o.servicePerimeters = buildUnnamed3676(); + o.servicePerimeters = buildUnnamed3862(); } buildCounterReplaceServicePerimetersResponse--; return o; @@ -781,7 +852,7 @@ checkReplaceServicePerimetersResponse(api.ReplaceServicePerimetersResponse o) { buildCounterReplaceServicePerimetersResponse++; if (buildCounterReplaceServicePerimetersResponse < 3) { - checkUnnamed3676(o.servicePerimeters); + checkUnnamed3862(o.servicePerimeters); } buildCounterReplaceServicePerimetersResponse--; } @@ -817,40 +888,40 @@ buildCounterServicePerimeter--; } -buildUnnamed3677() { +buildUnnamed3863() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3677(core.List<core.String> o) { +checkUnnamed3863(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3678() { +buildUnnamed3864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3678(core.List<core.String> o) { +checkUnnamed3864(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3679() { +buildUnnamed3865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3679(core.List<core.String> o) { +checkUnnamed3865(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -861,9 +932,9 @@ var o = new api.ServicePerimeterConfig(); buildCounterServicePerimeterConfig++; if (buildCounterServicePerimeterConfig < 3) { - o.accessLevels = buildUnnamed3677(); - o.resources = buildUnnamed3678(); - o.restrictedServices = buildUnnamed3679(); + o.accessLevels = buildUnnamed3863(); + o.resources = buildUnnamed3864(); + o.restrictedServices = buildUnnamed3865(); o.vpcAccessibleServices = buildVpcAccessibleServices(); } buildCounterServicePerimeterConfig--; @@ -873,15 +944,15 @@ checkServicePerimeterConfig(api.ServicePerimeterConfig o) { buildCounterServicePerimeterConfig++; if (buildCounterServicePerimeterConfig < 3) { - checkUnnamed3677(o.accessLevels); - checkUnnamed3678(o.resources); - checkUnnamed3679(o.restrictedServices); + checkUnnamed3863(o.accessLevels); + checkUnnamed3864(o.resources); + checkUnnamed3865(o.restrictedServices); checkVpcAccessibleServices(o.vpcAccessibleServices); } buildCounterServicePerimeterConfig--; } -buildUnnamed3680() { +buildUnnamed3866() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -896,7 +967,7 @@ return o; } -checkUnnamed3680(core.Map<core.String, core.Object> o) { +checkUnnamed3866(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)); @@ -910,17 +981,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3681() { +buildUnnamed3867() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3680()); - o.add(buildUnnamed3680()); + o.add(buildUnnamed3866()); + o.add(buildUnnamed3866()); return o; } -checkUnnamed3681(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3867(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3680(o[0]); - checkUnnamed3680(o[1]); + checkUnnamed3866(o[0]); + checkUnnamed3866(o[1]); } core.int buildCounterStatus = 0; @@ -929,7 +1000,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3681(); + o.details = buildUnnamed3867(); o.message = "foo"; } buildCounterStatus--; @@ -940,20 +1011,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3681(o.details); + checkUnnamed3867(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3682() { +buildUnnamed3868() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3682(core.List<core.String> o) { +checkUnnamed3868(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -964,7 +1035,7 @@ var o = new api.VpcAccessibleServices(); buildCounterVpcAccessibleServices++; if (buildCounterVpcAccessibleServices < 3) { - o.allowedServices = buildUnnamed3682(); + o.allowedServices = buildUnnamed3868(); o.enableRestriction = true; } buildCounterVpcAccessibleServices--; @@ -974,7 +1045,7 @@ checkVpcAccessibleServices(api.VpcAccessibleServices o) { buildCounterVpcAccessibleServices++; if (buildCounterVpcAccessibleServices < 3) { - checkUnnamed3682(o.allowedServices); + checkUnnamed3868(o.allowedServices); unittest.expect(o.enableRestriction, unittest.isTrue); } buildCounterVpcAccessibleServices--; @@ -1069,6 +1140,14 @@ }); }); + unittest.group("obj-schema-GcpUserAccessBinding", () { + unittest.test("to-json--from-json", () { + var o = buildGcpUserAccessBinding(); + var od = new api.GcpUserAccessBinding.fromJson(o.toJson()); + checkGcpUserAccessBinding(od); + }); + }); + unittest.group("obj-schema-ListAccessLevelsResponse", () { unittest.test("to-json--from-json", () { var o = buildListAccessLevelsResponse(); @@ -1085,6 +1164,14 @@ }); }); + unittest.group("obj-schema-ListGcpUserAccessBindingsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListGcpUserAccessBindingsResponse(); + var od = new api.ListGcpUserAccessBindingsResponse.fromJson(o.toJson()); + checkListGcpUserAccessBindingsResponse(od); + }); + }); + unittest.group("obj-schema-ListOperationsResponse", () { unittest.test("to-json--from-json", () { var o = buildListOperationsResponse(); @@ -1345,8 +1432,8 @@ api.AccessPoliciesResourceApi res = new api.AccesscontextmanagerApi(mock).accessPolicies; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1379,10 +1466,10 @@ } } unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1394,8 +1481,8 @@ res .list( parent: arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAccessPoliciesResponse(response); @@ -1633,8 +1720,8 @@ api.AccessPoliciesAccessLevelsResourceApi res = new api.AccesscontextmanagerApi(mock).accessPolicies.accessLevels; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_accessLevelFormat = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1668,10 +1755,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["accessLevelFormat"].first, unittest.equals(arg_accessLevelFormat)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1684,8 +1771,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, accessLevelFormat: arg_accessLevelFormat, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2042,8 +2129,8 @@ .accessPolicies .servicePerimeters; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2076,10 +2163,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2090,8 +2177,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicePerimetersResponse(response); @@ -2385,9 +2472,9 @@ api.OperationsResourceApi res = new api.AccesscontextmanagerApi(mock).operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2420,11 +2507,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2435,13 +2522,307 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); }))); }); }); + + unittest.group("resource-OrganizationsGcpUserAccessBindingsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsGcpUserAccessBindingsResourceApi res = + new api.AccesscontextmanagerApi(mock) + .organizations + .gcpUserAccessBindings; + var arg_request = buildGcpUserAccessBinding(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GcpUserAccessBinding.fromJson(json); + checkGcpUserAccessBinding(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsGcpUserAccessBindingsResourceApi res = + new api.AccesscontextmanagerApi(mock) + .organizations + .gcpUserAccessBindings; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsGcpUserAccessBindingsResourceApi res = + new api.AccesscontextmanagerApi(mock) + .organizations + .gcpUserAccessBindings; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGcpUserAccessBinding()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGcpUserAccessBinding(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsGcpUserAccessBindingsResourceApi res = + new api.AccesscontextmanagerApi(mock) + .organizations + .gcpUserAccessBindings; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildListGcpUserAccessBindingsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListGcpUserAccessBindingsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.OrganizationsGcpUserAccessBindingsResourceApi res = + new api.AccesscontextmanagerApi(mock) + .organizations + .gcpUserAccessBindings; + var arg_request = buildGcpUserAccessBinding(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GcpUserAccessBinding.fromJson(json); + checkGcpUserAccessBinding(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart index d46de3e..c99882d 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_3_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_3_test.dart
@@ -73,14 +73,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed852() { +buildUnnamed874() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed852(core.List<api.AccountBidderLocation> o) { +checkUnnamed874(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -91,7 +91,7 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.bidderLocation = buildUnnamed852(); + o.bidderLocation = buildUnnamed874(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -107,7 +107,7 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed852(o.bidderLocation); + checkUnnamed874(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -119,14 +119,14 @@ buildCounterAccount--; } -buildUnnamed853() { +buildUnnamed875() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed853(core.List<api.Account> o) { +checkUnnamed875(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -137,7 +137,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed853(); + o.items = buildUnnamed875(); o.kind = "foo"; } buildCounterAccountsList--; @@ -147,20 +147,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed853(o.items); + checkUnnamed875(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed854() { +buildUnnamed876() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed854(core.List<core.String> o) { +checkUnnamed876(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -173,7 +173,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed854(); + o.billingId = buildUnnamed876(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -185,20 +185,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed854(o.billingId); + checkUnnamed876(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed855() { +buildUnnamed877() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed855(core.List<api.BillingInfo> o) { +checkUnnamed877(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -209,7 +209,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed855(); + o.items = buildUnnamed877(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -219,7 +219,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed855(o.items); + checkUnnamed877(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -254,14 +254,14 @@ buildCounterBudget--; } -buildUnnamed856() { +buildUnnamed878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed856(core.List<core.String> o) { +checkUnnamed878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -272,7 +272,7 @@ var o = new api.CreativeAdTechnologyProviders(); buildCounterCreativeAdTechnologyProviders++; if (buildCounterCreativeAdTechnologyProviders < 3) { - o.detectedProviderIds = buildUnnamed856(); + o.detectedProviderIds = buildUnnamed878(); o.hasUnidentifiedProvider = true; } buildCounterCreativeAdTechnologyProviders--; @@ -282,59 +282,59 @@ checkCreativeAdTechnologyProviders(api.CreativeAdTechnologyProviders o) { buildCounterCreativeAdTechnologyProviders++; if (buildCounterCreativeAdTechnologyProviders < 3) { - checkUnnamed856(o.detectedProviderIds); + checkUnnamed878(o.detectedProviderIds); unittest.expect(o.hasUnidentifiedProvider, unittest.isTrue); } buildCounterCreativeAdTechnologyProviders--; } -buildUnnamed857() { +buildUnnamed879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed857(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')); } -buildUnnamed858() { +buildUnnamed880() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed858(core.List<core.int> o) { +checkUnnamed880(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)); } -buildUnnamed859() { +buildUnnamed881() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed859(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')); } -buildUnnamed860() { +buildUnnamed882() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed860(core.List<core.String> o) { +checkUnnamed882(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -345,7 +345,7 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.details = buildUnnamed860(); + o.details = buildUnnamed882(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -355,33 +355,33 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed860(o.details); + checkUnnamed882(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed861() { +buildUnnamed883() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed861(core.List<api.CreativeCorrections> o) { +checkUnnamed883(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed862() { +buildUnnamed884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed862(core.List<core.String> o) { +checkUnnamed884(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -392,7 +392,7 @@ var o = new api.CreativeDisapprovalReasons(); buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - o.details = buildUnnamed862(); + o.details = buildUnnamed884(); o.reason = "foo"; } buildCounterCreativeDisapprovalReasons--; @@ -402,20 +402,20 @@ checkCreativeDisapprovalReasons(api.CreativeDisapprovalReasons o) { buildCounterCreativeDisapprovalReasons++; if (buildCounterCreativeDisapprovalReasons < 3) { - checkUnnamed862(o.details); + checkUnnamed884(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeDisapprovalReasons--; } -buildUnnamed863() { +buildUnnamed885() { var o = new core.List<api.CreativeDisapprovalReasons>(); o.add(buildCreativeDisapprovalReasons()); o.add(buildCreativeDisapprovalReasons()); return o; } -checkUnnamed863(core.List<api.CreativeDisapprovalReasons> o) { +checkUnnamed885(core.List<api.CreativeDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDisapprovalReasons(o[0]); checkCreativeDisapprovalReasons(o[1]); @@ -442,14 +442,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed864() { +buildUnnamed886() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed864(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed886(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -461,7 +461,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed864(); + o.reasons = buildUnnamed886(); } buildCounterCreativeFilteringReasons--; return o; @@ -471,19 +471,19 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed864(o.reasons); + checkUnnamed886(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed865() { +buildUnnamed887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed865(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')); @@ -535,14 +535,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed866() { +buildUnnamed888() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed866(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')); @@ -583,7 +583,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed866(); + o.impressionTrackingUrl = buildUnnamed888(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -602,7 +602,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed866(o.impressionTrackingUrl); + checkUnnamed888(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -610,53 +610,53 @@ buildCounterCreativeNativeAd--; } -buildUnnamed867() { +buildUnnamed889() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed867(core.List<core.int> o) { +checkUnnamed889(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)); } -buildUnnamed868() { +buildUnnamed890() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed868(core.List<core.int> o) { +checkUnnamed890(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)); } -buildUnnamed869() { +buildUnnamed891() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed869(core.List<core.int> o) { +checkUnnamed891(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)); } -buildUnnamed870() { +buildUnnamed892() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed870(core.List<core.int> o) { +checkUnnamed892(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)); @@ -670,25 +670,25 @@ o.HTMLSnippet = "foo"; o.accountId = 42; o.adTechnologyProviders = buildCreativeAdTechnologyProviders(); - o.advertiserId = buildUnnamed857(); + o.advertiserId = buildUnnamed879(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed858(); + o.attribute = buildUnnamed880(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed859(); - o.corrections = buildUnnamed861(); - o.disapprovalReasons = buildUnnamed863(); + o.clickThroughUrl = buildUnnamed881(); + o.corrections = buildUnnamed883(); + o.disapprovalReasons = buildUnnamed885(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed865(); + o.impressionTrackingUrl = buildUnnamed887(); o.kind = "foo"; o.nativeAd = buildCreativeNativeAd(); - o.productCategories = buildUnnamed867(); - o.restrictedCategories = buildUnnamed868(); - o.sensitiveCategories = buildUnnamed869(); + o.productCategories = buildUnnamed889(); + o.restrictedCategories = buildUnnamed890(); + o.sensitiveCategories = buildUnnamed891(); o.status = "foo"; - o.vendorType = buildUnnamed870(); + o.vendorType = buildUnnamed892(); o.version = 42; o.videoURL = "foo"; o.width = 42; @@ -703,26 +703,26 @@ unittest.expect(o.HTMLSnippet, unittest.equals('foo')); unittest.expect(o.accountId, unittest.equals(42)); checkCreativeAdTechnologyProviders(o.adTechnologyProviders); - checkUnnamed857(o.advertiserId); + checkUnnamed879(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"))); - checkUnnamed858(o.attribute); + checkUnnamed880(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed859(o.clickThroughUrl); - checkUnnamed861(o.corrections); - checkUnnamed863(o.disapprovalReasons); + checkUnnamed881(o.clickThroughUrl); + checkUnnamed883(o.corrections); + checkUnnamed885(o.disapprovalReasons); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed865(o.impressionTrackingUrl); + checkUnnamed887(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); checkCreativeNativeAd(o.nativeAd); - checkUnnamed867(o.productCategories); - checkUnnamed868(o.restrictedCategories); - checkUnnamed869(o.sensitiveCategories); + checkUnnamed889(o.productCategories); + checkUnnamed890(o.restrictedCategories); + checkUnnamed891(o.sensitiveCategories); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed870(o.vendorType); + checkUnnamed892(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.width, unittest.equals(42)); @@ -730,14 +730,14 @@ buildCounterCreative--; } -buildUnnamed871() { +buildUnnamed893() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed871(core.List<api.Creative> o) { +checkUnnamed893(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -748,7 +748,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed871(); + o.items = buildUnnamed893(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -759,7 +759,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed871(o.items); + checkUnnamed893(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -813,14 +813,14 @@ buildCounterDirectDeal--; } -buildUnnamed872() { +buildUnnamed894() { var o = new core.List<api.DirectDeal>(); o.add(buildDirectDeal()); o.add(buildDirectDeal()); return o; } -checkUnnamed872(core.List<api.DirectDeal> o) { +checkUnnamed894(core.List<api.DirectDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectDeal(o[0]); checkDirectDeal(o[1]); @@ -831,7 +831,7 @@ var o = new api.DirectDealsList(); buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - o.directDeals = buildUnnamed872(); + o.directDeals = buildUnnamed894(); o.kind = "foo"; } buildCounterDirectDealsList--; @@ -841,13 +841,13 @@ checkDirectDealsList(api.DirectDealsList o) { buildCounterDirectDealsList++; if (buildCounterDirectDealsList < 3) { - checkUnnamed872(o.directDeals); + checkUnnamed894(o.directDeals); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectDealsList--; } -buildUnnamed873() { +buildUnnamed895() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -862,7 +862,7 @@ return o; } -checkUnnamed873(core.List<core.Object> o) { +checkUnnamed895(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -876,7 +876,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed874() { +buildUnnamed896() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -891,7 +891,7 @@ return o; } -checkUnnamed874(core.List<core.Object> o) { +checkUnnamed896(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -905,7 +905,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed875() { +buildUnnamed897() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -920,7 +920,7 @@ return o; } -checkUnnamed875(core.List<core.Object> o) { +checkUnnamed897(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -934,7 +934,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed876() { +buildUnnamed898() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -949,7 +949,7 @@ return o; } -checkUnnamed876(core.List<core.Object> o) { +checkUnnamed898(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -970,11 +970,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed873(); - o.cookieMatcherStatusRate = buildUnnamed874(); - o.creativeStatusRate = buildUnnamed875(); + o.calloutStatusRate = buildUnnamed895(); + o.cookieMatcherStatusRate = buildUnnamed896(); + o.creativeStatusRate = buildUnnamed897(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed876(); + o.hostedMatchStatusRate = buildUnnamed898(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -1000,11 +1000,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed873(o.calloutStatusRate); - checkUnnamed874(o.cookieMatcherStatusRate); - checkUnnamed875(o.creativeStatusRate); + checkUnnamed895(o.calloutStatusRate); + checkUnnamed896(o.cookieMatcherStatusRate); + checkUnnamed897(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed876(o.hostedMatchStatusRate); + checkUnnamed898(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)); @@ -1024,14 +1024,14 @@ buildCounterPerformanceReport--; } -buildUnnamed877() { +buildUnnamed899() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed877(core.List<api.PerformanceReport> o) { +checkUnnamed899(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -1043,7 +1043,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed877(); + o.performanceReport = buildUnnamed899(); } buildCounterPerformanceReportList--; return o; @@ -1053,19 +1053,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed877(o.performanceReport); + checkUnnamed899(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed878() { +buildUnnamed900() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed878(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')); @@ -1092,40 +1092,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed879() { +buildUnnamed901() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed879(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed901(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed880() { +buildUnnamed902() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed880(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')); } -buildUnnamed881() { +buildUnnamed903() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed881(core.List<core.String> o) { +checkUnnamed903(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1153,105 +1153,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed882() { +buildUnnamed904() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed882(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed904(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed883() { +buildUnnamed905() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed883(core.List<core.String> o) { +checkUnnamed905(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed884() { +buildUnnamed906() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed884(core.List<core.String> o) { +checkUnnamed906(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed885() { +buildUnnamed907() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed885(core.List<core.String> o) { +checkUnnamed907(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed886() { +buildUnnamed908() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed886(core.List<core.String> o) { +checkUnnamed908(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed887() { +buildUnnamed909() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed887(core.List<core.String> o) { +checkUnnamed909(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed888() { +buildUnnamed910() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed888(core.List<core.String> o) { +checkUnnamed910(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed889() { +buildUnnamed911() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed889(core.List<core.String> o) { +checkUnnamed911(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1278,79 +1278,79 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed890() { +buildUnnamed912() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed890(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed912(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed891() { +buildUnnamed913() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed891(core.List<core.String> o) { +checkUnnamed913(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed892() { +buildUnnamed914() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed892(core.List<core.String> o) { +checkUnnamed914(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed893() { +buildUnnamed915() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed893(core.List<core.String> o) { +checkUnnamed915(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed894() { +buildUnnamed916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed894(core.List<core.String> o) { +checkUnnamed916(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed895() { +buildUnnamed917() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed895(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')); @@ -1364,27 +1364,27 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed878(); - o.dimensions = buildUnnamed879(); - o.excludedContentLabels = buildUnnamed880(); - o.excludedGeoCriteriaIds = buildUnnamed881(); - o.excludedPlacements = buildUnnamed882(); - o.excludedUserLists = buildUnnamed883(); - o.excludedVerticals = buildUnnamed884(); - o.geoCriteriaIds = buildUnnamed885(); + o.creativeType = buildUnnamed900(); + o.dimensions = buildUnnamed901(); + o.excludedContentLabels = buildUnnamed902(); + o.excludedGeoCriteriaIds = buildUnnamed903(); + o.excludedPlacements = buildUnnamed904(); + o.excludedUserLists = buildUnnamed905(); + o.excludedVerticals = buildUnnamed906(); + o.geoCriteriaIds = buildUnnamed907(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed886(); + o.languages = buildUnnamed908(); o.maximumQps = "foo"; - o.mobileCarriers = buildUnnamed887(); - o.mobileDevices = buildUnnamed888(); - o.mobileOperatingSystemVersions = buildUnnamed889(); - o.placements = buildUnnamed890(); - o.platforms = buildUnnamed891(); - o.supportedCreativeAttributes = buildUnnamed892(); - o.userLists = buildUnnamed893(); - o.vendorTypes = buildUnnamed894(); - o.verticals = buildUnnamed895(); + o.mobileCarriers = buildUnnamed909(); + o.mobileDevices = buildUnnamed910(); + o.mobileOperatingSystemVersions = buildUnnamed911(); + o.placements = buildUnnamed912(); + o.platforms = buildUnnamed913(); + o.supportedCreativeAttributes = buildUnnamed914(); + o.userLists = buildUnnamed915(); + o.vendorTypes = buildUnnamed916(); + o.verticals = buildUnnamed917(); } buildCounterPretargetingConfig--; return o; @@ -1396,39 +1396,39 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed878(o.creativeType); - checkUnnamed879(o.dimensions); - checkUnnamed880(o.excludedContentLabels); - checkUnnamed881(o.excludedGeoCriteriaIds); - checkUnnamed882(o.excludedPlacements); - checkUnnamed883(o.excludedUserLists); - checkUnnamed884(o.excludedVerticals); - checkUnnamed885(o.geoCriteriaIds); + checkUnnamed900(o.creativeType); + checkUnnamed901(o.dimensions); + checkUnnamed902(o.excludedContentLabels); + checkUnnamed903(o.excludedGeoCriteriaIds); + checkUnnamed904(o.excludedPlacements); + checkUnnamed905(o.excludedUserLists); + checkUnnamed906(o.excludedVerticals); + checkUnnamed907(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed886(o.languages); + checkUnnamed908(o.languages); unittest.expect(o.maximumQps, unittest.equals('foo')); - checkUnnamed887(o.mobileCarriers); - checkUnnamed888(o.mobileDevices); - checkUnnamed889(o.mobileOperatingSystemVersions); - checkUnnamed890(o.placements); - checkUnnamed891(o.platforms); - checkUnnamed892(o.supportedCreativeAttributes); - checkUnnamed893(o.userLists); - checkUnnamed894(o.vendorTypes); - checkUnnamed895(o.verticals); + checkUnnamed909(o.mobileCarriers); + checkUnnamed910(o.mobileDevices); + checkUnnamed911(o.mobileOperatingSystemVersions); + checkUnnamed912(o.placements); + checkUnnamed913(o.platforms); + checkUnnamed914(o.supportedCreativeAttributes); + checkUnnamed915(o.userLists); + checkUnnamed916(o.vendorTypes); + checkUnnamed917(o.verticals); } buildCounterPretargetingConfig--; } -buildUnnamed896() { +buildUnnamed918() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed896(core.List<api.PretargetingConfig> o) { +checkUnnamed918(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -1439,7 +1439,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed896(); + o.items = buildUnnamed918(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -1449,33 +1449,33 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed896(o.items); + checkUnnamed918(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; } -buildUnnamed897() { +buildUnnamed919() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed897(core.List<core.int> o) { +checkUnnamed919(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)); } -buildUnnamed898() { +buildUnnamed920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed898(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')); @@ -2365,8 +2365,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed897(); - var arg_buyerCreativeId = buildUnnamed898(); + var arg_accountId = buildUnnamed919(); + var arg_buyerCreativeId = buildUnnamed920(); 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 88d52a8..7723fcb 100644 --- a/generated/googleapis/test/adexchangebuyer/v1_4_test.dart +++ b/generated/googleapis/test/adexchangebuyer/v1_4_test.dart
@@ -75,14 +75,14 @@ buildCounterAccountBidderLocation--; } -buildUnnamed899() { +buildUnnamed921() { var o = new core.List<api.AccountBidderLocation>(); o.add(buildAccountBidderLocation()); o.add(buildAccountBidderLocation()); return o; } -checkUnnamed899(core.List<api.AccountBidderLocation> o) { +checkUnnamed921(core.List<api.AccountBidderLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountBidderLocation(o[0]); checkAccountBidderLocation(o[1]); @@ -94,7 +94,7 @@ buildCounterAccount++; if (buildCounterAccount < 3) { o.applyPretargetingToNonGuaranteedDeals = true; - o.bidderLocation = buildUnnamed899(); + o.bidderLocation = buildUnnamed921(); o.cookieMatchingNid = "foo"; o.cookieMatchingUrl = "foo"; o.id = 42; @@ -111,7 +111,7 @@ buildCounterAccount++; if (buildCounterAccount < 3) { unittest.expect(o.applyPretargetingToNonGuaranteedDeals, unittest.isTrue); - checkUnnamed899(o.bidderLocation); + checkUnnamed921(o.bidderLocation); unittest.expect(o.cookieMatchingNid, unittest.equals('foo')); unittest.expect(o.cookieMatchingUrl, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); @@ -123,14 +123,14 @@ buildCounterAccount--; } -buildUnnamed900() { +buildUnnamed922() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed900(core.List<api.Account> o) { +checkUnnamed922(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -141,7 +141,7 @@ var o = new api.AccountsList(); buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - o.items = buildUnnamed900(); + o.items = buildUnnamed922(); o.kind = "foo"; } buildCounterAccountsList--; @@ -151,20 +151,20 @@ checkAccountsList(api.AccountsList o) { buildCounterAccountsList++; if (buildCounterAccountsList < 3) { - checkUnnamed900(o.items); + checkUnnamed922(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsList--; } -buildUnnamed901() { +buildUnnamed923() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed901(core.List<api.MarketplaceDeal> o) { +checkUnnamed923(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -175,7 +175,7 @@ var o = new api.AddOrderDealsRequest(); buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - o.deals = buildUnnamed901(); + o.deals = buildUnnamed923(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -186,21 +186,21 @@ checkAddOrderDealsRequest(api.AddOrderDealsRequest o) { buildCounterAddOrderDealsRequest++; if (buildCounterAddOrderDealsRequest < 3) { - checkUnnamed901(o.deals); + checkUnnamed923(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterAddOrderDealsRequest--; } -buildUnnamed902() { +buildUnnamed924() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed902(core.List<api.MarketplaceDeal> o) { +checkUnnamed924(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -211,7 +211,7 @@ var o = new api.AddOrderDealsResponse(); buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - o.deals = buildUnnamed902(); + o.deals = buildUnnamed924(); o.proposalRevisionNumber = "foo"; } buildCounterAddOrderDealsResponse--; @@ -221,20 +221,20 @@ checkAddOrderDealsResponse(api.AddOrderDealsResponse o) { buildCounterAddOrderDealsResponse++; if (buildCounterAddOrderDealsResponse < 3) { - checkUnnamed902(o.deals); + checkUnnamed924(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterAddOrderDealsResponse--; } -buildUnnamed903() { +buildUnnamed925() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed903(core.List<api.MarketplaceNote> o) { +checkUnnamed925(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -245,7 +245,7 @@ var o = new api.AddOrderNotesRequest(); buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - o.notes = buildUnnamed903(); + o.notes = buildUnnamed925(); } buildCounterAddOrderNotesRequest--; return o; @@ -254,19 +254,19 @@ checkAddOrderNotesRequest(api.AddOrderNotesRequest o) { buildCounterAddOrderNotesRequest++; if (buildCounterAddOrderNotesRequest < 3) { - checkUnnamed903(o.notes); + checkUnnamed925(o.notes); } buildCounterAddOrderNotesRequest--; } -buildUnnamed904() { +buildUnnamed926() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed904(core.List<api.MarketplaceNote> o) { +checkUnnamed926(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -277,7 +277,7 @@ var o = new api.AddOrderNotesResponse(); buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - o.notes = buildUnnamed904(); + o.notes = buildUnnamed926(); } buildCounterAddOrderNotesResponse--; return o; @@ -286,19 +286,19 @@ checkAddOrderNotesResponse(api.AddOrderNotesResponse o) { buildCounterAddOrderNotesResponse++; if (buildCounterAddOrderNotesResponse < 3) { - checkUnnamed904(o.notes); + checkUnnamed926(o.notes); } buildCounterAddOrderNotesResponse--; } -buildUnnamed905() { +buildUnnamed927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed905(core.List<core.String> o) { +checkUnnamed927(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -311,7 +311,7 @@ if (buildCounterBillingInfo < 3) { o.accountId = 42; o.accountName = "foo"; - o.billingId = buildUnnamed905(); + o.billingId = buildUnnamed927(); o.kind = "foo"; } buildCounterBillingInfo--; @@ -323,20 +323,20 @@ if (buildCounterBillingInfo < 3) { unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.accountName, unittest.equals('foo')); - checkUnnamed905(o.billingId); + checkUnnamed927(o.billingId); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfo--; } -buildUnnamed906() { +buildUnnamed928() { var o = new core.List<api.BillingInfo>(); o.add(buildBillingInfo()); o.add(buildBillingInfo()); return o; } -checkUnnamed906(core.List<api.BillingInfo> o) { +checkUnnamed928(core.List<api.BillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingInfo(o[0]); checkBillingInfo(o[1]); @@ -347,7 +347,7 @@ var o = new api.BillingInfoList(); buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - o.items = buildUnnamed906(); + o.items = buildUnnamed928(); o.kind = "foo"; } buildCounterBillingInfoList--; @@ -357,7 +357,7 @@ checkBillingInfoList(api.BillingInfoList o) { buildCounterBillingInfoList++; if (buildCounterBillingInfoList < 3) { - checkUnnamed906(o.items); + checkUnnamed928(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBillingInfoList--; @@ -432,14 +432,14 @@ buildCounterContactInformation--; } -buildUnnamed907() { +buildUnnamed929() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed907(core.List<api.Proposal> o) { +checkUnnamed929(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -450,7 +450,7 @@ var o = new api.CreateOrdersRequest(); buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - o.proposals = buildUnnamed907(); + o.proposals = buildUnnamed929(); o.webPropertyCode = "foo"; } buildCounterCreateOrdersRequest--; @@ -460,20 +460,20 @@ checkCreateOrdersRequest(api.CreateOrdersRequest o) { buildCounterCreateOrdersRequest++; if (buildCounterCreateOrdersRequest < 3) { - checkUnnamed907(o.proposals); + checkUnnamed929(o.proposals); unittest.expect(o.webPropertyCode, unittest.equals('foo')); } buildCounterCreateOrdersRequest--; } -buildUnnamed908() { +buildUnnamed930() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed908(core.List<api.Proposal> o) { +checkUnnamed930(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -484,7 +484,7 @@ var o = new api.CreateOrdersResponse(); buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - o.proposals = buildUnnamed908(); + o.proposals = buildUnnamed930(); } buildCounterCreateOrdersResponse--; return o; @@ -493,19 +493,19 @@ checkCreateOrdersResponse(api.CreateOrdersResponse o) { buildCounterCreateOrdersResponse++; if (buildCounterCreateOrdersResponse < 3) { - checkUnnamed908(o.proposals); + checkUnnamed930(o.proposals); } buildCounterCreateOrdersResponse--; } -buildUnnamed909() { +buildUnnamed931() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed909(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')); @@ -516,7 +516,7 @@ var o = new api.CreativeAdTechnologyProviders(); buildCounterCreativeAdTechnologyProviders++; if (buildCounterCreativeAdTechnologyProviders < 3) { - o.detectedProviderIds = buildUnnamed909(); + o.detectedProviderIds = buildUnnamed931(); o.hasUnidentifiedProvider = true; } buildCounterCreativeAdTechnologyProviders--; @@ -526,85 +526,85 @@ checkCreativeAdTechnologyProviders(api.CreativeAdTechnologyProviders o) { buildCounterCreativeAdTechnologyProviders++; if (buildCounterCreativeAdTechnologyProviders < 3) { - checkUnnamed909(o.detectedProviderIds); + checkUnnamed931(o.detectedProviderIds); unittest.expect(o.hasUnidentifiedProvider, unittest.isTrue); } buildCounterCreativeAdTechnologyProviders--; } -buildUnnamed910() { +buildUnnamed932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed910(core.List<core.String> o) { +checkUnnamed932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed911() { +buildUnnamed933() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed911(core.List<core.int> o) { +checkUnnamed933(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)); } -buildUnnamed912() { +buildUnnamed934() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed912(core.List<core.String> o) { +checkUnnamed934(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed913() { +buildUnnamed935() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed913(core.List<core.String> o) { +checkUnnamed935(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed914() { +buildUnnamed936() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed914(core.List<core.int> o) { +checkUnnamed936(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)); } -buildUnnamed915() { +buildUnnamed937() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed915(core.List<core.String> o) { +checkUnnamed937(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -615,10 +615,10 @@ var o = new api.CreativeCorrectionsContexts(); buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - o.auctionType = buildUnnamed913(); + o.auctionType = buildUnnamed935(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed914(); - o.platform = buildUnnamed915(); + o.geoCriteriaId = buildUnnamed936(); + o.platform = buildUnnamed937(); } buildCounterCreativeCorrectionsContexts--; return o; @@ -627,35 +627,35 @@ checkCreativeCorrectionsContexts(api.CreativeCorrectionsContexts o) { buildCounterCreativeCorrectionsContexts++; if (buildCounterCreativeCorrectionsContexts < 3) { - checkUnnamed913(o.auctionType); + checkUnnamed935(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed914(o.geoCriteriaId); - checkUnnamed915(o.platform); + checkUnnamed936(o.geoCriteriaId); + checkUnnamed937(o.platform); } buildCounterCreativeCorrectionsContexts--; } -buildUnnamed916() { +buildUnnamed938() { var o = new core.List<api.CreativeCorrectionsContexts>(); o.add(buildCreativeCorrectionsContexts()); o.add(buildCreativeCorrectionsContexts()); return o; } -checkUnnamed916(core.List<api.CreativeCorrectionsContexts> o) { +checkUnnamed938(core.List<api.CreativeCorrectionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrectionsContexts(o[0]); checkCreativeCorrectionsContexts(o[1]); } -buildUnnamed917() { +buildUnnamed939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed917(core.List<core.String> o) { +checkUnnamed939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -666,8 +666,8 @@ var o = new api.CreativeCorrections(); buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - o.contexts = buildUnnamed916(); - o.details = buildUnnamed917(); + o.contexts = buildUnnamed938(); + o.details = buildUnnamed939(); o.reason = "foo"; } buildCounterCreativeCorrections--; @@ -677,34 +677,34 @@ checkCreativeCorrections(api.CreativeCorrections o) { buildCounterCreativeCorrections++; if (buildCounterCreativeCorrections < 3) { - checkUnnamed916(o.contexts); - checkUnnamed917(o.details); + checkUnnamed938(o.contexts); + checkUnnamed939(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeCorrections--; } -buildUnnamed918() { +buildUnnamed940() { var o = new core.List<api.CreativeCorrections>(); o.add(buildCreativeCorrections()); o.add(buildCreativeCorrections()); return o; } -checkUnnamed918(core.List<api.CreativeCorrections> o) { +checkUnnamed940(core.List<api.CreativeCorrections> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCorrections(o[0]); checkCreativeCorrections(o[1]); } -buildUnnamed919() { +buildUnnamed941() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed919(core.List<core.String> o) { +checkUnnamed941(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -731,14 +731,14 @@ buildCounterCreativeFilteringReasonsReasons--; } -buildUnnamed920() { +buildUnnamed942() { var o = new core.List<api.CreativeFilteringReasonsReasons>(); o.add(buildCreativeFilteringReasonsReasons()); o.add(buildCreativeFilteringReasonsReasons()); return o; } -checkUnnamed920(core.List<api.CreativeFilteringReasonsReasons> o) { +checkUnnamed942(core.List<api.CreativeFilteringReasonsReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFilteringReasonsReasons(o[0]); checkCreativeFilteringReasonsReasons(o[1]); @@ -750,7 +750,7 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { o.date = "foo"; - o.reasons = buildUnnamed920(); + o.reasons = buildUnnamed942(); } buildCounterCreativeFilteringReasons--; return o; @@ -760,32 +760,32 @@ buildCounterCreativeFilteringReasons++; if (buildCounterCreativeFilteringReasons < 3) { unittest.expect(o.date, unittest.equals('foo')); - checkUnnamed920(o.reasons); + checkUnnamed942(o.reasons); } buildCounterCreativeFilteringReasons--; } -buildUnnamed921() { +buildUnnamed943() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed921(core.List<core.String> o) { +checkUnnamed943(core.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() { +buildUnnamed944() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed922(core.List<core.String> o) { +checkUnnamed944(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -837,14 +837,14 @@ buildCounterCreativeNativeAdImage--; } -buildUnnamed923() { +buildUnnamed945() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed923(core.List<core.String> o) { +checkUnnamed945(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -886,7 +886,7 @@ o.clickTrackingUrl = "foo"; o.headline = "foo"; o.image = buildCreativeNativeAdImage(); - o.impressionTrackingUrl = buildUnnamed923(); + o.impressionTrackingUrl = buildUnnamed945(); o.logo = buildCreativeNativeAdLogo(); o.price = "foo"; o.starRating = 42.0; @@ -907,7 +907,7 @@ unittest.expect(o.clickTrackingUrl, unittest.equals('foo')); unittest.expect(o.headline, unittest.equals('foo')); checkCreativeNativeAdImage(o.image); - checkUnnamed923(o.impressionTrackingUrl); + checkUnnamed945(o.impressionTrackingUrl); checkCreativeNativeAdLogo(o.logo); unittest.expect(o.price, unittest.equals('foo')); unittest.expect(o.starRating, unittest.equals(42.0)); @@ -916,79 +916,79 @@ buildCounterCreativeNativeAd--; } -buildUnnamed924() { +buildUnnamed946() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed924(core.List<core.int> o) { +checkUnnamed946(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)); } -buildUnnamed925() { +buildUnnamed947() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed925(core.List<core.int> o) { +checkUnnamed947(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)); } -buildUnnamed926() { +buildUnnamed948() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed926(core.List<core.int> o) { +checkUnnamed948(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)); } -buildUnnamed927() { +buildUnnamed949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed927(core.List<core.String> o) { +checkUnnamed949(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed928() { +buildUnnamed950() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed928(core.List<core.int> o) { +checkUnnamed950(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)); } -buildUnnamed929() { +buildUnnamed951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed929(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')); @@ -999,10 +999,10 @@ var o = new api.CreativeServingRestrictionsContexts(); buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - o.auctionType = buildUnnamed927(); + o.auctionType = buildUnnamed949(); o.contextType = "foo"; - o.geoCriteriaId = buildUnnamed928(); - o.platform = buildUnnamed929(); + o.geoCriteriaId = buildUnnamed950(); + o.platform = buildUnnamed951(); } buildCounterCreativeServingRestrictionsContexts--; return o; @@ -1012,35 +1012,35 @@ api.CreativeServingRestrictionsContexts o) { buildCounterCreativeServingRestrictionsContexts++; if (buildCounterCreativeServingRestrictionsContexts < 3) { - checkUnnamed927(o.auctionType); + checkUnnamed949(o.auctionType); unittest.expect(o.contextType, unittest.equals('foo')); - checkUnnamed928(o.geoCriteriaId); - checkUnnamed929(o.platform); + checkUnnamed950(o.geoCriteriaId); + checkUnnamed951(o.platform); } buildCounterCreativeServingRestrictionsContexts--; } -buildUnnamed930() { +buildUnnamed952() { var o = new core.List<api.CreativeServingRestrictionsContexts>(); o.add(buildCreativeServingRestrictionsContexts()); o.add(buildCreativeServingRestrictionsContexts()); return o; } -checkUnnamed930(core.List<api.CreativeServingRestrictionsContexts> o) { +checkUnnamed952(core.List<api.CreativeServingRestrictionsContexts> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsContexts(o[0]); checkCreativeServingRestrictionsContexts(o[1]); } -buildUnnamed931() { +buildUnnamed953() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed931(core.List<core.String> o) { +checkUnnamed953(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1051,7 +1051,7 @@ var o = new api.CreativeServingRestrictionsDisapprovalReasons(); buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - o.details = buildUnnamed931(); + o.details = buildUnnamed953(); o.reason = "foo"; } buildCounterCreativeServingRestrictionsDisapprovalReasons--; @@ -1062,20 +1062,20 @@ api.CreativeServingRestrictionsDisapprovalReasons o) { buildCounterCreativeServingRestrictionsDisapprovalReasons++; if (buildCounterCreativeServingRestrictionsDisapprovalReasons < 3) { - checkUnnamed931(o.details); + checkUnnamed953(o.details); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictionsDisapprovalReasons--; } -buildUnnamed932() { +buildUnnamed954() { var o = new core.List<api.CreativeServingRestrictionsDisapprovalReasons>(); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); o.add(buildCreativeServingRestrictionsDisapprovalReasons()); return o; } -checkUnnamed932( +checkUnnamed954( core.List<api.CreativeServingRestrictionsDisapprovalReasons> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictionsDisapprovalReasons(o[0]); @@ -1087,8 +1087,8 @@ var o = new api.CreativeServingRestrictions(); buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - o.contexts = buildUnnamed930(); - o.disapprovalReasons = buildUnnamed932(); + o.contexts = buildUnnamed952(); + o.disapprovalReasons = buildUnnamed954(); o.reason = "foo"; } buildCounterCreativeServingRestrictions--; @@ -1098,34 +1098,34 @@ checkCreativeServingRestrictions(api.CreativeServingRestrictions o) { buildCounterCreativeServingRestrictions++; if (buildCounterCreativeServingRestrictions < 3) { - checkUnnamed930(o.contexts); - checkUnnamed932(o.disapprovalReasons); + checkUnnamed952(o.contexts); + checkUnnamed954(o.disapprovalReasons); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterCreativeServingRestrictions--; } -buildUnnamed933() { +buildUnnamed955() { var o = new core.List<api.CreativeServingRestrictions>(); o.add(buildCreativeServingRestrictions()); o.add(buildCreativeServingRestrictions()); return o; } -checkUnnamed933(core.List<api.CreativeServingRestrictions> o) { +checkUnnamed955(core.List<api.CreativeServingRestrictions> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeServingRestrictions(o[0]); checkCreativeServingRestrictions(o[1]); } -buildUnnamed934() { +buildUnnamed956() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed934(core.List<core.int> o) { +checkUnnamed956(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)); @@ -1140,29 +1140,29 @@ o.accountId = 42; o.adChoicesDestinationUrl = "foo"; o.adTechnologyProviders = buildCreativeAdTechnologyProviders(); - o.advertiserId = buildUnnamed910(); + o.advertiserId = buildUnnamed932(); o.advertiserName = "foo"; o.agencyId = "foo"; o.apiUploadTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); - o.attribute = buildUnnamed911(); + o.attribute = buildUnnamed933(); o.buyerCreativeId = "foo"; - o.clickThroughUrl = buildUnnamed912(); - o.corrections = buildUnnamed918(); + o.clickThroughUrl = buildUnnamed934(); + o.corrections = buildUnnamed940(); o.creativeStatusIdentityType = "foo"; o.dealsStatus = "foo"; - o.detectedDomains = buildUnnamed919(); + o.detectedDomains = buildUnnamed941(); o.filteringReasons = buildCreativeFilteringReasons(); o.height = 42; - o.impressionTrackingUrl = buildUnnamed921(); + o.impressionTrackingUrl = buildUnnamed943(); o.kind = "foo"; - o.languages = buildUnnamed922(); + o.languages = buildUnnamed944(); o.nativeAd = buildCreativeNativeAd(); o.openAuctionStatus = "foo"; - o.productCategories = buildUnnamed924(); - o.restrictedCategories = buildUnnamed925(); - o.sensitiveCategories = buildUnnamed926(); - o.servingRestrictions = buildUnnamed933(); - o.vendorType = buildUnnamed934(); + o.productCategories = buildUnnamed946(); + o.restrictedCategories = buildUnnamed947(); + o.sensitiveCategories = buildUnnamed948(); + o.servingRestrictions = buildUnnamed955(); + o.vendorType = buildUnnamed956(); o.version = 42; o.videoURL = "foo"; o.videoVastXML = "foo"; @@ -1179,30 +1179,30 @@ unittest.expect(o.accountId, unittest.equals(42)); unittest.expect(o.adChoicesDestinationUrl, unittest.equals('foo')); checkCreativeAdTechnologyProviders(o.adTechnologyProviders); - checkUnnamed910(o.advertiserId); + checkUnnamed932(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"))); - checkUnnamed911(o.attribute); + checkUnnamed933(o.attribute); unittest.expect(o.buyerCreativeId, unittest.equals('foo')); - checkUnnamed912(o.clickThroughUrl); - checkUnnamed918(o.corrections); + checkUnnamed934(o.clickThroughUrl); + checkUnnamed940(o.corrections); unittest.expect(o.creativeStatusIdentityType, unittest.equals('foo')); unittest.expect(o.dealsStatus, unittest.equals('foo')); - checkUnnamed919(o.detectedDomains); + checkUnnamed941(o.detectedDomains); checkCreativeFilteringReasons(o.filteringReasons); unittest.expect(o.height, unittest.equals(42)); - checkUnnamed921(o.impressionTrackingUrl); + checkUnnamed943(o.impressionTrackingUrl); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed922(o.languages); + checkUnnamed944(o.languages); checkCreativeNativeAd(o.nativeAd); unittest.expect(o.openAuctionStatus, unittest.equals('foo')); - checkUnnamed924(o.productCategories); - checkUnnamed925(o.restrictedCategories); - checkUnnamed926(o.sensitiveCategories); - checkUnnamed933(o.servingRestrictions); - checkUnnamed934(o.vendorType); + checkUnnamed946(o.productCategories); + checkUnnamed947(o.restrictedCategories); + checkUnnamed948(o.sensitiveCategories); + checkUnnamed955(o.servingRestrictions); + checkUnnamed956(o.vendorType); unittest.expect(o.version, unittest.equals(42)); unittest.expect(o.videoURL, unittest.equals('foo')); unittest.expect(o.videoVastXML, unittest.equals('foo')); @@ -1234,14 +1234,14 @@ buildCounterCreativeDealIdsDealStatuses--; } -buildUnnamed935() { +buildUnnamed957() { var o = new core.List<api.CreativeDealIdsDealStatuses>(); o.add(buildCreativeDealIdsDealStatuses()); o.add(buildCreativeDealIdsDealStatuses()); return o; } -checkUnnamed935(core.List<api.CreativeDealIdsDealStatuses> o) { +checkUnnamed957(core.List<api.CreativeDealIdsDealStatuses> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeDealIdsDealStatuses(o[0]); checkCreativeDealIdsDealStatuses(o[1]); @@ -1252,7 +1252,7 @@ var o = new api.CreativeDealIds(); buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - o.dealStatuses = buildUnnamed935(); + o.dealStatuses = buildUnnamed957(); o.kind = "foo"; } buildCounterCreativeDealIds--; @@ -1262,20 +1262,20 @@ checkCreativeDealIds(api.CreativeDealIds o) { buildCounterCreativeDealIds++; if (buildCounterCreativeDealIds < 3) { - checkUnnamed935(o.dealStatuses); + checkUnnamed957(o.dealStatuses); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCreativeDealIds--; } -buildUnnamed936() { +buildUnnamed958() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed936(core.List<api.Creative> o) { +checkUnnamed958(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -1286,7 +1286,7 @@ var o = new api.CreativesList(); buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - o.items = buildUnnamed936(); + o.items = buildUnnamed958(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1297,7 +1297,7 @@ checkCreativesList(api.CreativesList o) { buildCounterCreativesList++; if (buildCounterCreativesList < 3) { - checkUnnamed936(o.items); + checkUnnamed958(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1391,14 +1391,14 @@ buildCounterDealTerms--; } -buildUnnamed937() { +buildUnnamed959() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed937(core.List<api.PricePerBuyer> o) { +checkUnnamed959(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1410,7 +1410,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { o.billingInfo = buildDealTermsGuaranteedFixedPriceTermsBillingInfo(); - o.fixedPrices = buildUnnamed937(); + o.fixedPrices = buildUnnamed959(); o.guaranteedImpressions = "foo"; o.guaranteedLooks = "foo"; o.minimumDailyLooks = "foo"; @@ -1424,7 +1424,7 @@ buildCounterDealTermsGuaranteedFixedPriceTerms++; if (buildCounterDealTermsGuaranteedFixedPriceTerms < 3) { checkDealTermsGuaranteedFixedPriceTermsBillingInfo(o.billingInfo); - checkUnnamed937(o.fixedPrices); + checkUnnamed959(o.fixedPrices); unittest.expect(o.guaranteedImpressions, unittest.equals('foo')); unittest.expect(o.guaranteedLooks, unittest.equals('foo')); unittest.expect(o.minimumDailyLooks, unittest.equals('foo')); @@ -1458,14 +1458,14 @@ buildCounterDealTermsGuaranteedFixedPriceTermsBillingInfo--; } -buildUnnamed938() { +buildUnnamed960() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed938(core.List<api.PricePerBuyer> o) { +checkUnnamed960(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1477,7 +1477,7 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { o.autoOptimizePrivateAuction = true; - o.reservePricePerBuyers = buildUnnamed938(); + o.reservePricePerBuyers = buildUnnamed960(); } buildCounterDealTermsNonGuaranteedAuctionTerms--; return o; @@ -1488,19 +1488,19 @@ buildCounterDealTermsNonGuaranteedAuctionTerms++; if (buildCounterDealTermsNonGuaranteedAuctionTerms < 3) { unittest.expect(o.autoOptimizePrivateAuction, unittest.isTrue); - checkUnnamed938(o.reservePricePerBuyers); + checkUnnamed960(o.reservePricePerBuyers); } buildCounterDealTermsNonGuaranteedAuctionTerms--; } -buildUnnamed939() { +buildUnnamed961() { var o = new core.List<api.PricePerBuyer>(); o.add(buildPricePerBuyer()); o.add(buildPricePerBuyer()); return o; } -checkUnnamed939(core.List<api.PricePerBuyer> o) { +checkUnnamed961(core.List<api.PricePerBuyer> o) { unittest.expect(o, unittest.hasLength(2)); checkPricePerBuyer(o[0]); checkPricePerBuyer(o[1]); @@ -1511,7 +1511,7 @@ var o = new api.DealTermsNonGuaranteedFixedPriceTerms(); buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - o.fixedPrices = buildUnnamed939(); + o.fixedPrices = buildUnnamed961(); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; return o; @@ -1521,7 +1521,7 @@ api.DealTermsNonGuaranteedFixedPriceTerms o) { buildCounterDealTermsNonGuaranteedFixedPriceTerms++; if (buildCounterDealTermsNonGuaranteedFixedPriceTerms < 3) { - checkUnnamed939(o.fixedPrices); + checkUnnamed961(o.fixedPrices); } buildCounterDealTermsNonGuaranteedFixedPriceTerms--; } @@ -1548,14 +1548,14 @@ buildCounterDealTermsRubiconNonGuaranteedTerms--; } -buildUnnamed940() { +buildUnnamed962() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed940(core.List<core.String> o) { +checkUnnamed962(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1566,7 +1566,7 @@ var o = new api.DeleteOrderDealsRequest(); buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - o.dealIds = buildUnnamed940(); + o.dealIds = buildUnnamed962(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; } @@ -1577,21 +1577,21 @@ checkDeleteOrderDealsRequest(api.DeleteOrderDealsRequest o) { buildCounterDeleteOrderDealsRequest++; if (buildCounterDeleteOrderDealsRequest < 3) { - checkUnnamed940(o.dealIds); + checkUnnamed962(o.dealIds); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); } buildCounterDeleteOrderDealsRequest--; } -buildUnnamed941() { +buildUnnamed963() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed941(core.List<api.MarketplaceDeal> o) { +checkUnnamed963(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1602,7 +1602,7 @@ var o = new api.DeleteOrderDealsResponse(); buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - o.deals = buildUnnamed941(); + o.deals = buildUnnamed963(); o.proposalRevisionNumber = "foo"; } buildCounterDeleteOrderDealsResponse--; @@ -1612,20 +1612,20 @@ checkDeleteOrderDealsResponse(api.DeleteOrderDealsResponse o) { buildCounterDeleteOrderDealsResponse++; if (buildCounterDeleteOrderDealsResponse < 3) { - checkUnnamed941(o.deals); + checkUnnamed963(o.deals); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); } buildCounterDeleteOrderDealsResponse--; } -buildUnnamed942() { +buildUnnamed964() { var o = new core.List<api.DeliveryControlFrequencyCap>(); o.add(buildDeliveryControlFrequencyCap()); o.add(buildDeliveryControlFrequencyCap()); return o; } -checkUnnamed942(core.List<api.DeliveryControlFrequencyCap> o) { +checkUnnamed964(core.List<api.DeliveryControlFrequencyCap> o) { unittest.expect(o, unittest.hasLength(2)); checkDeliveryControlFrequencyCap(o[0]); checkDeliveryControlFrequencyCap(o[1]); @@ -1638,7 +1638,7 @@ if (buildCounterDeliveryControl < 3) { o.creativeBlockingLevel = "foo"; o.deliveryRateType = "foo"; - o.frequencyCaps = buildUnnamed942(); + o.frequencyCaps = buildUnnamed964(); } buildCounterDeliveryControl--; return o; @@ -1649,7 +1649,7 @@ if (buildCounterDeliveryControl < 3) { unittest.expect(o.creativeBlockingLevel, unittest.equals('foo')); unittest.expect(o.deliveryRateType, unittest.equals('foo')); - checkUnnamed942(o.frequencyCaps); + checkUnnamed964(o.frequencyCaps); } buildCounterDeliveryControl--; } @@ -1677,14 +1677,14 @@ buildCounterDeliveryControlFrequencyCap--; } -buildUnnamed943() { +buildUnnamed965() { var o = new core.List<api.DimensionDimensionValue>(); o.add(buildDimensionDimensionValue()); o.add(buildDimensionDimensionValue()); return o; } -checkUnnamed943(core.List<api.DimensionDimensionValue> o) { +checkUnnamed965(core.List<api.DimensionDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionDimensionValue(o[0]); checkDimensionDimensionValue(o[1]); @@ -1696,7 +1696,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { o.dimensionType = "foo"; - o.dimensionValues = buildUnnamed943(); + o.dimensionValues = buildUnnamed965(); } buildCounterDimension--; return o; @@ -1706,7 +1706,7 @@ buildCounterDimension++; if (buildCounterDimension < 3) { unittest.expect(o.dimensionType, unittest.equals('foo')); - checkUnnamed943(o.dimensionValues); + checkUnnamed965(o.dimensionValues); } buildCounterDimension--; } @@ -1734,14 +1734,14 @@ buildCounterDimensionDimensionValue--; } -buildUnnamed944() { +buildUnnamed966() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed944(core.List<api.MarketplaceDeal> o) { +checkUnnamed966(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1752,7 +1752,7 @@ var o = new api.EditAllOrderDealsRequest(); buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - o.deals = buildUnnamed944(); + o.deals = buildUnnamed966(); o.proposal = buildProposal(); o.proposalRevisionNumber = "foo"; o.updateAction = "foo"; @@ -1764,7 +1764,7 @@ checkEditAllOrderDealsRequest(api.EditAllOrderDealsRequest o) { buildCounterEditAllOrderDealsRequest++; if (buildCounterEditAllOrderDealsRequest < 3) { - checkUnnamed944(o.deals); + checkUnnamed966(o.deals); checkProposal(o.proposal); unittest.expect(o.proposalRevisionNumber, unittest.equals('foo')); unittest.expect(o.updateAction, unittest.equals('foo')); @@ -1772,14 +1772,14 @@ buildCounterEditAllOrderDealsRequest--; } -buildUnnamed945() { +buildUnnamed967() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed945(core.List<api.MarketplaceDeal> o) { +checkUnnamed967(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1790,7 +1790,7 @@ var o = new api.EditAllOrderDealsResponse(); buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - o.deals = buildUnnamed945(); + o.deals = buildUnnamed967(); o.orderRevisionNumber = "foo"; } buildCounterEditAllOrderDealsResponse--; @@ -1800,20 +1800,20 @@ checkEditAllOrderDealsResponse(api.EditAllOrderDealsResponse o) { buildCounterEditAllOrderDealsResponse++; if (buildCounterEditAllOrderDealsResponse < 3) { - checkUnnamed945(o.deals); + checkUnnamed967(o.deals); unittest.expect(o.orderRevisionNumber, unittest.equals('foo')); } buildCounterEditAllOrderDealsResponse--; } -buildUnnamed946() { +buildUnnamed968() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed946(core.List<api.Product> o) { +checkUnnamed968(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -1824,7 +1824,7 @@ var o = new api.GetOffersResponse(); buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - o.products = buildUnnamed946(); + o.products = buildUnnamed968(); } buildCounterGetOffersResponse--; return o; @@ -1833,19 +1833,19 @@ checkGetOffersResponse(api.GetOffersResponse o) { buildCounterGetOffersResponse++; if (buildCounterGetOffersResponse < 3) { - checkUnnamed946(o.products); + checkUnnamed968(o.products); } buildCounterGetOffersResponse--; } -buildUnnamed947() { +buildUnnamed969() { var o = new core.List<api.MarketplaceDeal>(); o.add(buildMarketplaceDeal()); o.add(buildMarketplaceDeal()); return o; } -checkUnnamed947(core.List<api.MarketplaceDeal> o) { +checkUnnamed969(core.List<api.MarketplaceDeal> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceDeal(o[0]); checkMarketplaceDeal(o[1]); @@ -1856,7 +1856,7 @@ var o = new api.GetOrderDealsResponse(); buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - o.deals = buildUnnamed947(); + o.deals = buildUnnamed969(); } buildCounterGetOrderDealsResponse--; return o; @@ -1865,19 +1865,19 @@ checkGetOrderDealsResponse(api.GetOrderDealsResponse o) { buildCounterGetOrderDealsResponse++; if (buildCounterGetOrderDealsResponse < 3) { - checkUnnamed947(o.deals); + checkUnnamed969(o.deals); } buildCounterGetOrderDealsResponse--; } -buildUnnamed948() { +buildUnnamed970() { var o = new core.List<api.MarketplaceNote>(); o.add(buildMarketplaceNote()); o.add(buildMarketplaceNote()); return o; } -checkUnnamed948(core.List<api.MarketplaceNote> o) { +checkUnnamed970(core.List<api.MarketplaceNote> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceNote(o[0]); checkMarketplaceNote(o[1]); @@ -1888,7 +1888,7 @@ var o = new api.GetOrderNotesResponse(); buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - o.notes = buildUnnamed948(); + o.notes = buildUnnamed970(); } buildCounterGetOrderNotesResponse--; return o; @@ -1897,19 +1897,19 @@ checkGetOrderNotesResponse(api.GetOrderNotesResponse o) { buildCounterGetOrderNotesResponse++; if (buildCounterGetOrderNotesResponse < 3) { - checkUnnamed948(o.notes); + checkUnnamed970(o.notes); } buildCounterGetOrderNotesResponse--; } -buildUnnamed949() { +buildUnnamed971() { var o = new core.List<api.Proposal>(); o.add(buildProposal()); o.add(buildProposal()); return o; } -checkUnnamed949(core.List<api.Proposal> o) { +checkUnnamed971(core.List<api.Proposal> o) { unittest.expect(o, unittest.hasLength(2)); checkProposal(o[0]); checkProposal(o[1]); @@ -1920,7 +1920,7 @@ var o = new api.GetOrdersResponse(); buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - o.proposals = buildUnnamed949(); + o.proposals = buildUnnamed971(); } buildCounterGetOrdersResponse--; return o; @@ -1929,19 +1929,19 @@ checkGetOrdersResponse(api.GetOrdersResponse o) { buildCounterGetOrdersResponse++; if (buildCounterGetOrdersResponse < 3) { - checkUnnamed949(o.proposals); + checkUnnamed971(o.proposals); } buildCounterGetOrdersResponse--; } -buildUnnamed950() { +buildUnnamed972() { var o = new core.List<api.PublisherProfileApiProto>(); o.add(buildPublisherProfileApiProto()); o.add(buildPublisherProfileApiProto()); return o; } -checkUnnamed950(core.List<api.PublisherProfileApiProto> o) { +checkUnnamed972(core.List<api.PublisherProfileApiProto> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherProfileApiProto(o[0]); checkPublisherProfileApiProto(o[1]); @@ -1952,7 +1952,7 @@ var o = new api.GetPublisherProfilesByAccountIdResponse(); buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - o.profiles = buildUnnamed950(); + o.profiles = buildUnnamed972(); } buildCounterGetPublisherProfilesByAccountIdResponse--; return o; @@ -1962,32 +1962,32 @@ api.GetPublisherProfilesByAccountIdResponse o) { buildCounterGetPublisherProfilesByAccountIdResponse++; if (buildCounterGetPublisherProfilesByAccountIdResponse < 3) { - checkUnnamed950(o.profiles); + checkUnnamed972(o.profiles); } buildCounterGetPublisherProfilesByAccountIdResponse--; } -buildUnnamed951() { +buildUnnamed973() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed951(core.List<api.ContactInformation> o) { +checkUnnamed973(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed952() { +buildUnnamed974() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed952(core.List<api.SharedTargeting> o) { +checkUnnamed974(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2013,13 +2013,14 @@ o.isSetupComplete = true; o.kind = "foo"; o.lastUpdateTimeMs = "foo"; + o.makegoodRequestedReason = "foo"; o.name = "foo"; o.productId = "foo"; o.productRevisionNumber = "foo"; o.programmaticCreativeSource = "foo"; o.proposalId = "foo"; - o.sellerContacts = buildUnnamed951(); - o.sharedTargetings = buildUnnamed952(); + o.sellerContacts = buildUnnamed973(); + o.sharedTargetings = buildUnnamed974(); o.syndicationProduct = "foo"; o.terms = buildDealTerms(); o.webPropertyCode = "foo"; @@ -2046,13 +2047,14 @@ unittest.expect(o.isSetupComplete, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); + unittest.expect(o.makegoodRequestedReason, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productRevisionNumber, unittest.equals('foo')); unittest.expect(o.programmaticCreativeSource, unittest.equals('foo')); unittest.expect(o.proposalId, unittest.equals('foo')); - checkUnnamed951(o.sellerContacts); - checkUnnamed952(o.sharedTargetings); + checkUnnamed973(o.sellerContacts); + checkUnnamed974(o.sharedTargetings); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); unittest.expect(o.webPropertyCode, unittest.equals('foo')); @@ -2139,7 +2141,28 @@ buildCounterMarketplaceNote--; } -buildUnnamed953() { +core.int buildCounterMobileApplication = 0; +buildMobileApplication() { + var o = new api.MobileApplication(); + buildCounterMobileApplication++; + if (buildCounterMobileApplication < 3) { + o.appStore = "foo"; + o.externalAppId = "foo"; + } + buildCounterMobileApplication--; + return o; +} + +checkMobileApplication(api.MobileApplication o) { + buildCounterMobileApplication++; + if (buildCounterMobileApplication < 3) { + unittest.expect(o.appStore, unittest.equals('foo')); + unittest.expect(o.externalAppId, unittest.equals('foo')); + } + buildCounterMobileApplication--; +} + +buildUnnamed975() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2154,7 +2177,7 @@ return o; } -checkUnnamed953(core.List<core.Object> o) { +checkUnnamed975(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2168,7 +2191,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed954() { +buildUnnamed976() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2183,7 +2206,7 @@ return o; } -checkUnnamed954(core.List<core.Object> o) { +checkUnnamed976(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -2197,7 +2220,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed955() { +buildUnnamed977() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2212,7 +2235,7 @@ return o; } -checkUnnamed955(core.List<core.Object> o) { +checkUnnamed977(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -2226,7 +2249,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed956() { +buildUnnamed978() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2241,7 +2264,7 @@ return o; } -checkUnnamed956(core.List<core.Object> o) { +checkUnnamed978(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -2262,11 +2285,11 @@ if (buildCounterPerformanceReport < 3) { o.bidRate = 42.0; o.bidRequestRate = 42.0; - o.calloutStatusRate = buildUnnamed953(); - o.cookieMatcherStatusRate = buildUnnamed954(); - o.creativeStatusRate = buildUnnamed955(); + o.calloutStatusRate = buildUnnamed975(); + o.cookieMatcherStatusRate = buildUnnamed976(); + o.creativeStatusRate = buildUnnamed977(); o.filteredBidRate = 42.0; - o.hostedMatchStatusRate = buildUnnamed956(); + o.hostedMatchStatusRate = buildUnnamed978(); o.inventoryMatchRate = 42.0; o.kind = "foo"; o.latency50thPercentile = 42.0; @@ -2292,11 +2315,11 @@ if (buildCounterPerformanceReport < 3) { unittest.expect(o.bidRate, unittest.equals(42.0)); unittest.expect(o.bidRequestRate, unittest.equals(42.0)); - checkUnnamed953(o.calloutStatusRate); - checkUnnamed954(o.cookieMatcherStatusRate); - checkUnnamed955(o.creativeStatusRate); + checkUnnamed975(o.calloutStatusRate); + checkUnnamed976(o.cookieMatcherStatusRate); + checkUnnamed977(o.creativeStatusRate); unittest.expect(o.filteredBidRate, unittest.equals(42.0)); - checkUnnamed956(o.hostedMatchStatusRate); + checkUnnamed978(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)); @@ -2316,14 +2339,14 @@ buildCounterPerformanceReport--; } -buildUnnamed957() { +buildUnnamed979() { var o = new core.List<api.PerformanceReport>(); o.add(buildPerformanceReport()); o.add(buildPerformanceReport()); return o; } -checkUnnamed957(core.List<api.PerformanceReport> o) { +checkUnnamed979(core.List<api.PerformanceReport> o) { unittest.expect(o, unittest.hasLength(2)); checkPerformanceReport(o[0]); checkPerformanceReport(o[1]); @@ -2335,7 +2358,7 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { o.kind = "foo"; - o.performanceReport = buildUnnamed957(); + o.performanceReport = buildUnnamed979(); } buildCounterPerformanceReportList--; return o; @@ -2345,19 +2368,19 @@ buildCounterPerformanceReportList++; if (buildCounterPerformanceReportList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed957(o.performanceReport); + checkUnnamed979(o.performanceReport); } buildCounterPerformanceReportList--; } -buildUnnamed958() { +buildUnnamed980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed958(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')); @@ -2384,40 +2407,40 @@ buildCounterPretargetingConfigDimensions--; } -buildUnnamed959() { +buildUnnamed981() { var o = new core.List<api.PretargetingConfigDimensions>(); o.add(buildPretargetingConfigDimensions()); o.add(buildPretargetingConfigDimensions()); return o; } -checkUnnamed959(core.List<api.PretargetingConfigDimensions> o) { +checkUnnamed981(core.List<api.PretargetingConfigDimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigDimensions(o[0]); checkPretargetingConfigDimensions(o[1]); } -buildUnnamed960() { +buildUnnamed982() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed960(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')); } -buildUnnamed961() { +buildUnnamed983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed961(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')); @@ -2445,105 +2468,105 @@ buildCounterPretargetingConfigExcludedPlacements--; } -buildUnnamed962() { +buildUnnamed984() { var o = new core.List<api.PretargetingConfigExcludedPlacements>(); o.add(buildPretargetingConfigExcludedPlacements()); o.add(buildPretargetingConfigExcludedPlacements()); return o; } -checkUnnamed962(core.List<api.PretargetingConfigExcludedPlacements> o) { +checkUnnamed984(core.List<api.PretargetingConfigExcludedPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigExcludedPlacements(o[0]); checkPretargetingConfigExcludedPlacements(o[1]); } -buildUnnamed963() { +buildUnnamed985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed963(core.List<core.String> o) { +checkUnnamed985(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed964() { +buildUnnamed986() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed964(core.List<core.String> o) { +checkUnnamed986(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed965() { +buildUnnamed987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed965(core.List<core.String> 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')); } -buildUnnamed966() { +buildUnnamed988() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed966(core.List<core.String> o) { +checkUnnamed988(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed967() { +buildUnnamed989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed967(core.List<core.String> o) { +checkUnnamed989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed968() { +buildUnnamed990() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed968(core.List<core.String> o) { +checkUnnamed990(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed969() { +buildUnnamed991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed969(core.List<core.String> o) { +checkUnnamed991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2570,92 +2593,92 @@ buildCounterPretargetingConfigPlacements--; } -buildUnnamed970() { +buildUnnamed992() { var o = new core.List<api.PretargetingConfigPlacements>(); o.add(buildPretargetingConfigPlacements()); o.add(buildPretargetingConfigPlacements()); return o; } -checkUnnamed970(core.List<api.PretargetingConfigPlacements> o) { +checkUnnamed992(core.List<api.PretargetingConfigPlacements> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigPlacements(o[0]); checkPretargetingConfigPlacements(o[1]); } -buildUnnamed971() { +buildUnnamed993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed971(core.List<core.String> o) { +checkUnnamed993(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed972() { +buildUnnamed994() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed972(core.List<core.String> o) { +checkUnnamed994(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed973() { +buildUnnamed995() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed973(core.List<core.String> o) { +checkUnnamed995(core.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() { +buildUnnamed996() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed974(core.List<core.String> o) { +checkUnnamed996(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed975() { +buildUnnamed997() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed975(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')); } -buildUnnamed976() { +buildUnnamed998() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed976(core.List<core.String> o) { +checkUnnamed998(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2685,14 +2708,14 @@ buildCounterPretargetingConfigVideoPlayerSizes--; } -buildUnnamed977() { +buildUnnamed999() { var o = new core.List<api.PretargetingConfigVideoPlayerSizes>(); o.add(buildPretargetingConfigVideoPlayerSizes()); o.add(buildPretargetingConfigVideoPlayerSizes()); return o; } -checkUnnamed977(core.List<api.PretargetingConfigVideoPlayerSizes> o) { +checkUnnamed999(core.List<api.PretargetingConfigVideoPlayerSizes> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfigVideoPlayerSizes(o[0]); checkPretargetingConfigVideoPlayerSizes(o[1]); @@ -2706,30 +2729,30 @@ o.billingId = "foo"; o.configId = "foo"; o.configName = "foo"; - o.creativeType = buildUnnamed958(); - o.dimensions = buildUnnamed959(); - o.excludedContentLabels = buildUnnamed960(); - o.excludedGeoCriteriaIds = buildUnnamed961(); - o.excludedPlacements = buildUnnamed962(); - o.excludedUserLists = buildUnnamed963(); - o.excludedVerticals = buildUnnamed964(); - o.geoCriteriaIds = buildUnnamed965(); + o.creativeType = buildUnnamed980(); + o.dimensions = buildUnnamed981(); + o.excludedContentLabels = buildUnnamed982(); + o.excludedGeoCriteriaIds = buildUnnamed983(); + o.excludedPlacements = buildUnnamed984(); + o.excludedUserLists = buildUnnamed985(); + o.excludedVerticals = buildUnnamed986(); + o.geoCriteriaIds = buildUnnamed987(); o.isActive = true; o.kind = "foo"; - o.languages = buildUnnamed966(); + o.languages = buildUnnamed988(); o.maximumQps = "foo"; o.minimumViewabilityDecile = 42; - o.mobileCarriers = buildUnnamed967(); - o.mobileDevices = buildUnnamed968(); - o.mobileOperatingSystemVersions = buildUnnamed969(); - o.placements = buildUnnamed970(); - o.platforms = buildUnnamed971(); - o.supportedCreativeAttributes = buildUnnamed972(); - o.userIdentifierDataRequired = buildUnnamed973(); - o.userLists = buildUnnamed974(); - o.vendorTypes = buildUnnamed975(); - o.verticals = buildUnnamed976(); - o.videoPlayerSizes = buildUnnamed977(); + o.mobileCarriers = buildUnnamed989(); + o.mobileDevices = buildUnnamed990(); + o.mobileOperatingSystemVersions = buildUnnamed991(); + o.placements = buildUnnamed992(); + o.platforms = buildUnnamed993(); + o.supportedCreativeAttributes = buildUnnamed994(); + o.userIdentifierDataRequired = buildUnnamed995(); + o.userLists = buildUnnamed996(); + o.vendorTypes = buildUnnamed997(); + o.verticals = buildUnnamed998(); + o.videoPlayerSizes = buildUnnamed999(); } buildCounterPretargetingConfig--; return o; @@ -2741,42 +2764,42 @@ unittest.expect(o.billingId, unittest.equals('foo')); unittest.expect(o.configId, unittest.equals('foo')); unittest.expect(o.configName, unittest.equals('foo')); - checkUnnamed958(o.creativeType); - checkUnnamed959(o.dimensions); - checkUnnamed960(o.excludedContentLabels); - checkUnnamed961(o.excludedGeoCriteriaIds); - checkUnnamed962(o.excludedPlacements); - checkUnnamed963(o.excludedUserLists); - checkUnnamed964(o.excludedVerticals); - checkUnnamed965(o.geoCriteriaIds); + checkUnnamed980(o.creativeType); + checkUnnamed981(o.dimensions); + checkUnnamed982(o.excludedContentLabels); + checkUnnamed983(o.excludedGeoCriteriaIds); + checkUnnamed984(o.excludedPlacements); + checkUnnamed985(o.excludedUserLists); + checkUnnamed986(o.excludedVerticals); + checkUnnamed987(o.geoCriteriaIds); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed966(o.languages); + checkUnnamed988(o.languages); unittest.expect(o.maximumQps, unittest.equals('foo')); unittest.expect(o.minimumViewabilityDecile, unittest.equals(42)); - checkUnnamed967(o.mobileCarriers); - checkUnnamed968(o.mobileDevices); - checkUnnamed969(o.mobileOperatingSystemVersions); - checkUnnamed970(o.placements); - checkUnnamed971(o.platforms); - checkUnnamed972(o.supportedCreativeAttributes); - checkUnnamed973(o.userIdentifierDataRequired); - checkUnnamed974(o.userLists); - checkUnnamed975(o.vendorTypes); - checkUnnamed976(o.verticals); - checkUnnamed977(o.videoPlayerSizes); + checkUnnamed989(o.mobileCarriers); + checkUnnamed990(o.mobileDevices); + checkUnnamed991(o.mobileOperatingSystemVersions); + checkUnnamed992(o.placements); + checkUnnamed993(o.platforms); + checkUnnamed994(o.supportedCreativeAttributes); + checkUnnamed995(o.userIdentifierDataRequired); + checkUnnamed996(o.userLists); + checkUnnamed997(o.vendorTypes); + checkUnnamed998(o.verticals); + checkUnnamed999(o.videoPlayerSizes); } buildCounterPretargetingConfig--; } -buildUnnamed978() { +buildUnnamed1000() { var o = new core.List<api.PretargetingConfig>(); o.add(buildPretargetingConfig()); o.add(buildPretargetingConfig()); return o; } -checkUnnamed978(core.List<api.PretargetingConfig> o) { +checkUnnamed1000(core.List<api.PretargetingConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPretargetingConfig(o[0]); checkPretargetingConfig(o[1]); @@ -2787,7 +2810,7 @@ var o = new api.PretargetingConfigList(); buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - o.items = buildUnnamed978(); + o.items = buildUnnamed1000(); o.kind = "foo"; } buildCounterPretargetingConfigList--; @@ -2797,7 +2820,7 @@ checkPretargetingConfigList(api.PretargetingConfigList o) { buildCounterPretargetingConfigList++; if (buildCounterPretargetingConfigList < 3) { - checkUnnamed978(o.items); + checkUnnamed1000(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPretargetingConfigList--; @@ -2874,40 +2897,40 @@ buildCounterPrivateData--; } -buildUnnamed979() { +buildUnnamed1001() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed979(core.List<api.ContactInformation> o) { +checkUnnamed1001(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed980() { +buildUnnamed1002() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed980(core.List<api.MarketplaceLabel> o) { +checkUnnamed1002(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed981() { +buildUnnamed1003() { var o = new core.List<api.SharedTargeting>(); o.add(buildSharedTargeting()); o.add(buildSharedTargeting()); return o; } -checkUnnamed981(core.List<api.SharedTargeting> o) { +checkUnnamed1003(core.List<api.SharedTargeting> o) { unittest.expect(o, unittest.hasLength(2)); checkSharedTargeting(o[0]); checkSharedTargeting(o[1]); @@ -2921,7 +2944,7 @@ o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); o.creationTimeMs = "foo"; - o.creatorContacts = buildUnnamed979(); + o.creatorContacts = buildUnnamed1001(); o.creatorRole = "foo"; o.deliveryControl = buildDeliveryControl(); o.flightEndTimeMs = "foo"; @@ -2929,7 +2952,7 @@ o.hasCreatorSignedOff = true; o.inventorySource = "foo"; o.kind = "foo"; - o.labels = buildUnnamed980(); + o.labels = buildUnnamed1002(); o.lastUpdateTimeMs = "foo"; o.legacyOfferId = "foo"; o.marketplacePublisherProfileId = "foo"; @@ -2940,7 +2963,7 @@ o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.revisionNumber = "foo"; o.seller = buildSeller(); - o.sharedTargetings = buildUnnamed981(); + o.sharedTargetings = buildUnnamed1003(); o.state = "foo"; o.syndicationProduct = "foo"; o.terms = buildDealTerms(); @@ -2956,7 +2979,7 @@ checkBuyer(o.billedBuyer); checkBuyer(o.buyer); unittest.expect(o.creationTimeMs, unittest.equals('foo')); - checkUnnamed979(o.creatorContacts); + checkUnnamed1001(o.creatorContacts); unittest.expect(o.creatorRole, unittest.equals('foo')); checkDeliveryControl(o.deliveryControl); unittest.expect(o.flightEndTimeMs, unittest.equals('foo')); @@ -2964,7 +2987,7 @@ unittest.expect(o.hasCreatorSignedOff, unittest.isTrue); unittest.expect(o.inventorySource, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed980(o.labels); + checkUnnamed1002(o.labels); unittest.expect(o.lastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.legacyOfferId, unittest.equals('foo')); unittest.expect(o.marketplacePublisherProfileId, unittest.equals('foo')); @@ -2975,7 +2998,7 @@ checkPublisherProvidedForecast(o.publisherProvidedForecast); unittest.expect(o.revisionNumber, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed981(o.sharedTargetings); + checkUnnamed1003(o.sharedTargetings); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.syndicationProduct, unittest.equals('foo')); checkDealTerms(o.terms); @@ -2984,53 +3007,53 @@ buildCounterProduct--; } -buildUnnamed982() { +buildUnnamed1004() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed982(core.List<api.ContactInformation> o) { +checkUnnamed1004(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); } -buildUnnamed983() { +buildUnnamed1005() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed983(core.List<core.String> o) { +checkUnnamed1005(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed984() { +buildUnnamed1006() { var o = new core.List<api.MarketplaceLabel>(); o.add(buildMarketplaceLabel()); o.add(buildMarketplaceLabel()); return o; } -checkUnnamed984(core.List<api.MarketplaceLabel> o) { +checkUnnamed1006(core.List<api.MarketplaceLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkMarketplaceLabel(o[0]); checkMarketplaceLabel(o[1]); } -buildUnnamed985() { +buildUnnamed1007() { var o = new core.List<api.ContactInformation>(); o.add(buildContactInformation()); o.add(buildContactInformation()); return o; } -checkUnnamed985(core.List<api.ContactInformation> o) { +checkUnnamed1007(core.List<api.ContactInformation> o) { unittest.expect(o, unittest.hasLength(2)); checkContactInformation(o[0]); checkContactInformation(o[1]); @@ -3043,16 +3066,16 @@ if (buildCounterProposal < 3) { o.billedBuyer = buildBuyer(); o.buyer = buildBuyer(); - o.buyerContacts = buildUnnamed982(); + o.buyerContacts = buildUnnamed1004(); o.buyerPrivateData = buildPrivateData(); - o.dbmAdvertiserIds = buildUnnamed983(); + o.dbmAdvertiserIds = buildUnnamed1005(); o.hasBuyerSignedOff = true; o.hasSellerSignedOff = true; o.inventorySource = "foo"; o.isRenegotiating = true; o.isSetupComplete = true; o.kind = "foo"; - o.labels = buildUnnamed984(); + o.labels = buildUnnamed1006(); o.lastUpdaterOrCommentorRole = "foo"; o.name = "foo"; o.negotiationId = "foo"; @@ -3063,7 +3086,7 @@ o.revisionNumber = "foo"; o.revisionTimeMs = "foo"; o.seller = buildSeller(); - o.sellerContacts = buildUnnamed985(); + o.sellerContacts = buildUnnamed1007(); } buildCounterProposal--; return o; @@ -3074,16 +3097,16 @@ if (buildCounterProposal < 3) { checkBuyer(o.billedBuyer); checkBuyer(o.buyer); - checkUnnamed982(o.buyerContacts); + checkUnnamed1004(o.buyerContacts); checkPrivateData(o.buyerPrivateData); - checkUnnamed983(o.dbmAdvertiserIds); + checkUnnamed1005(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')); - checkUnnamed984(o.labels); + checkUnnamed1006(o.labels); unittest.expect(o.lastUpdaterOrCommentorRole, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.negotiationId, unittest.equals('foo')); @@ -3094,32 +3117,58 @@ unittest.expect(o.revisionNumber, unittest.equals('foo')); unittest.expect(o.revisionTimeMs, unittest.equals('foo')); checkSeller(o.seller); - checkUnnamed985(o.sellerContacts); + checkUnnamed1007(o.sellerContacts); } buildCounterProposal--; } -buildUnnamed986() { +buildUnnamed1008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed986(core.List<core.String> o) { +checkUnnamed1008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed987() { +buildUnnamed1009() { + var o = new core.List<api.MobileApplication>(); + o.add(buildMobileApplication()); + o.add(buildMobileApplication()); + return o; +} + +checkUnnamed1009(core.List<api.MobileApplication> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMobileApplication(o[0]); + checkMobileApplication(o[1]); +} + +buildUnnamed1010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed987(core.List<core.String> o) { +checkUnnamed1010(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1011() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1011(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3144,14 +3193,16 @@ o.overview = "foo"; o.profileId = 42; o.programmaticContact = "foo"; - o.publisherDomains = buildUnnamed986(); + o.publisherAppIds = buildUnnamed1008(); + o.publisherApps = buildUnnamed1009(); + o.publisherDomains = buildUnnamed1010(); o.publisherProfileId = "foo"; o.publisherProvidedForecast = buildPublisherProvidedForecast(); o.rateCardInfoLink = "foo"; o.samplePageLink = "foo"; o.seller = buildSeller(); o.state = "foo"; - o.topHeadlines = buildUnnamed987(); + o.topHeadlines = buildUnnamed1011(); } buildCounterPublisherProfileApiProto--; return o; @@ -3174,26 +3225,28 @@ unittest.expect(o.overview, unittest.equals('foo')); unittest.expect(o.profileId, unittest.equals(42)); unittest.expect(o.programmaticContact, unittest.equals('foo')); - checkUnnamed986(o.publisherDomains); + checkUnnamed1008(o.publisherAppIds); + checkUnnamed1009(o.publisherApps); + checkUnnamed1010(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')); - checkUnnamed987(o.topHeadlines); + checkUnnamed1011(o.topHeadlines); } buildCounterPublisherProfileApiProto--; } -buildUnnamed988() { +buildUnnamed1012() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed988(core.List<api.Dimension> o) { +checkUnnamed1012(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -3204,7 +3257,7 @@ var o = new api.PublisherProvidedForecast(); buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - o.dimensions = buildUnnamed988(); + o.dimensions = buildUnnamed1012(); o.weeklyImpressions = "foo"; o.weeklyUniques = "foo"; } @@ -3215,7 +3268,7 @@ checkPublisherProvidedForecast(api.PublisherProvidedForecast o) { buildCounterPublisherProvidedForecast++; if (buildCounterPublisherProvidedForecast < 3) { - checkUnnamed988(o.dimensions); + checkUnnamed1012(o.dimensions); unittest.expect(o.weeklyImpressions, unittest.equals('foo')); unittest.expect(o.weeklyUniques, unittest.equals('foo')); } @@ -3243,27 +3296,27 @@ buildCounterSeller--; } -buildUnnamed989() { +buildUnnamed1013() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed989(core.List<api.TargetingValue> o) { +checkUnnamed1013(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); } -buildUnnamed990() { +buildUnnamed1014() { var o = new core.List<api.TargetingValue>(); o.add(buildTargetingValue()); o.add(buildTargetingValue()); return o; } -checkUnnamed990(core.List<api.TargetingValue> o) { +checkUnnamed1014(core.List<api.TargetingValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValue(o[0]); checkTargetingValue(o[1]); @@ -3274,8 +3327,8 @@ var o = new api.SharedTargeting(); buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - o.exclusions = buildUnnamed989(); - o.inclusions = buildUnnamed990(); + o.exclusions = buildUnnamed1013(); + o.inclusions = buildUnnamed1014(); o.key = "foo"; } buildCounterSharedTargeting--; @@ -3285,8 +3338,8 @@ checkSharedTargeting(api.SharedTargeting o) { buildCounterSharedTargeting++; if (buildCounterSharedTargeting < 3) { - checkUnnamed989(o.exclusions); - checkUnnamed990(o.inclusions); + checkUnnamed1013(o.exclusions); + checkUnnamed1014(o.inclusions); unittest.expect(o.key, unittest.equals('foo')); } buildCounterSharedTargeting--; @@ -3302,6 +3355,8 @@ o.demogAgeCriteriaValue = buildTargetingValueDemogAgeCriteria(); o.demogGenderCriteriaValue = buildTargetingValueDemogGenderCriteria(); o.longValue = "foo"; + o.requestPlatformTargetingValue = + buildTargetingValueRequestPlatformTargeting(); o.stringValue = "foo"; } buildCounterTargetingValue--; @@ -3316,32 +3371,34 @@ checkTargetingValueDemogAgeCriteria(o.demogAgeCriteriaValue); checkTargetingValueDemogGenderCriteria(o.demogGenderCriteriaValue); unittest.expect(o.longValue, unittest.equals('foo')); + checkTargetingValueRequestPlatformTargeting( + o.requestPlatformTargetingValue); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterTargetingValue--; } -buildUnnamed991() { +buildUnnamed1015() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed991(core.List<core.String> o) { +checkUnnamed1015(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed992() { +buildUnnamed1016() { var o = new core.List<api.TargetingValueSize>(); o.add(buildTargetingValueSize()); o.add(buildTargetingValueSize()); return o; } -checkUnnamed992(core.List<api.TargetingValueSize> o) { +checkUnnamed1016(core.List<api.TargetingValueSize> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueSize(o[0]); checkTargetingValueSize(o[1]); @@ -3352,8 +3409,8 @@ var o = new api.TargetingValueCreativeSize(); buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - o.allowedFormats = buildUnnamed991(); - o.companionSizes = buildUnnamed992(); + o.allowedFormats = buildUnnamed1015(); + o.companionSizes = buildUnnamed1016(); o.creativeSizeType = "foo"; o.nativeTemplate = "foo"; o.size = buildTargetingValueSize(); @@ -3366,8 +3423,8 @@ checkTargetingValueCreativeSize(api.TargetingValueCreativeSize o) { buildCounterTargetingValueCreativeSize++; if (buildCounterTargetingValueCreativeSize < 3) { - checkUnnamed991(o.allowedFormats); - checkUnnamed992(o.companionSizes); + checkUnnamed1015(o.allowedFormats); + checkUnnamed1016(o.companionSizes); unittest.expect(o.creativeSizeType, unittest.equals('foo')); unittest.expect(o.nativeTemplate, unittest.equals('foo')); checkTargetingValueSize(o.size); @@ -3376,14 +3433,14 @@ buildCounterTargetingValueCreativeSize--; } -buildUnnamed993() { +buildUnnamed1017() { var o = new core.List<api.TargetingValueDayPartTargetingDayPart>(); o.add(buildTargetingValueDayPartTargetingDayPart()); o.add(buildTargetingValueDayPartTargetingDayPart()); return o; } -checkUnnamed993(core.List<api.TargetingValueDayPartTargetingDayPart> o) { +checkUnnamed1017(core.List<api.TargetingValueDayPartTargetingDayPart> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingValueDayPartTargetingDayPart(o[0]); checkTargetingValueDayPartTargetingDayPart(o[1]); @@ -3394,7 +3451,7 @@ var o = new api.TargetingValueDayPartTargeting(); buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - o.dayParts = buildUnnamed993(); + o.dayParts = buildUnnamed1017(); o.timeZoneType = "foo"; } buildCounterTargetingValueDayPartTargeting--; @@ -3404,7 +3461,7 @@ checkTargetingValueDayPartTargeting(api.TargetingValueDayPartTargeting o) { buildCounterTargetingValueDayPartTargeting++; if (buildCounterTargetingValueDayPartTargeting < 3) { - checkUnnamed993(o.dayParts); + checkUnnamed1017(o.dayParts); unittest.expect(o.timeZoneType, unittest.equals('foo')); } buildCounterTargetingValueDayPartTargeting--; @@ -3438,14 +3495,14 @@ buildCounterTargetingValueDayPartTargetingDayPart--; } -buildUnnamed994() { +buildUnnamed1018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed994(core.List<core.String> o) { +checkUnnamed1018(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3456,7 +3513,7 @@ var o = new api.TargetingValueDemogAgeCriteria(); buildCounterTargetingValueDemogAgeCriteria++; if (buildCounterTargetingValueDemogAgeCriteria < 3) { - o.demogAgeCriteriaIds = buildUnnamed994(); + o.demogAgeCriteriaIds = buildUnnamed1018(); } buildCounterTargetingValueDemogAgeCriteria--; return o; @@ -3465,19 +3522,19 @@ checkTargetingValueDemogAgeCriteria(api.TargetingValueDemogAgeCriteria o) { buildCounterTargetingValueDemogAgeCriteria++; if (buildCounterTargetingValueDemogAgeCriteria < 3) { - checkUnnamed994(o.demogAgeCriteriaIds); + checkUnnamed1018(o.demogAgeCriteriaIds); } buildCounterTargetingValueDemogAgeCriteria--; } -buildUnnamed995() { +buildUnnamed1019() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed995(core.List<core.String> o) { +checkUnnamed1019(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3488,7 +3545,7 @@ var o = new api.TargetingValueDemogGenderCriteria(); buildCounterTargetingValueDemogGenderCriteria++; if (buildCounterTargetingValueDemogGenderCriteria < 3) { - o.demogGenderCriteriaIds = buildUnnamed995(); + o.demogGenderCriteriaIds = buildUnnamed1019(); } buildCounterTargetingValueDemogGenderCriteria--; return o; @@ -3498,11 +3555,44 @@ api.TargetingValueDemogGenderCriteria o) { buildCounterTargetingValueDemogGenderCriteria++; if (buildCounterTargetingValueDemogGenderCriteria < 3) { - checkUnnamed995(o.demogGenderCriteriaIds); + checkUnnamed1019(o.demogGenderCriteriaIds); } buildCounterTargetingValueDemogGenderCriteria--; } +buildUnnamed1020() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1020(core.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 buildCounterTargetingValueRequestPlatformTargeting = 0; +buildTargetingValueRequestPlatformTargeting() { + var o = new api.TargetingValueRequestPlatformTargeting(); + buildCounterTargetingValueRequestPlatformTargeting++; + if (buildCounterTargetingValueRequestPlatformTargeting < 3) { + o.requestPlatforms = buildUnnamed1020(); + } + buildCounterTargetingValueRequestPlatformTargeting--; + return o; +} + +checkTargetingValueRequestPlatformTargeting( + api.TargetingValueRequestPlatformTargeting o) { + buildCounterTargetingValueRequestPlatformTargeting++; + if (buildCounterTargetingValueRequestPlatformTargeting < 3) { + checkUnnamed1020(o.requestPlatforms); + } + buildCounterTargetingValueRequestPlatformTargeting--; +} + core.int buildCounterTargetingValueSize = 0; buildTargetingValueSize() { var o = new api.TargetingValueSize(); @@ -3550,27 +3640,27 @@ buildCounterUpdatePrivateAuctionProposalRequest--; } -buildUnnamed996() { +buildUnnamed1021() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed996(core.List<core.int> o) { +checkUnnamed1021(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)); } -buildUnnamed997() { +buildUnnamed1022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed997(core.List<core.String> o) { +checkUnnamed1022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4023,6 +4113,14 @@ }); }); + unittest.group("obj-schema-MobileApplication", () { + unittest.test("to-json--from-json", () { + var o = buildMobileApplication(); + var od = new api.MobileApplication.fromJson(o.toJson()); + checkMobileApplication(od); + }); + }); + unittest.group("obj-schema-PerformanceReport", () { unittest.test("to-json--from-json", () { var o = buildPerformanceReport(); @@ -4209,6 +4307,15 @@ }); }); + unittest.group("obj-schema-TargetingValueRequestPlatformTargeting", () { + unittest.test("to-json--from-json", () { + var o = buildTargetingValueRequestPlatformTargeting(); + var od = + new api.TargetingValueRequestPlatformTargeting.fromJson(o.toJson()); + checkTargetingValueRequestPlatformTargeting(od); + }); + }); + unittest.group("obj-schema-TargetingValueSize", () { unittest.test("to-json--from-json", () { var o = buildTargetingValueSize(); @@ -4984,8 +5091,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CreativesResourceApi res = new api.AdexchangebuyerApi(mock).creatives; - var arg_accountId = buildUnnamed996(); - var arg_buyerCreativeId = buildUnnamed997(); + var arg_accountId = buildUnnamed1021(); + var arg_buyerCreativeId = buildUnnamed1022(); var arg_dealsStatusFilter = "foo"; var arg_maxResults = 42; var arg_openAuctionStatusFilter = "foo";
diff --git a/generated/googleapis/test/adexperiencereport/v1_test.dart b/generated/googleapis/test/adexperiencereport/v1_test.dart index d90fb2e..286f685 100644 --- a/generated/googleapis/test/adexperiencereport/v1_test.dart +++ b/generated/googleapis/test/adexperiencereport/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4992() { +buildUnnamed5372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4992(core.List<core.String> o) { +checkUnnamed5372(core.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.enforcementTime = "foo"; o.filterStatus = "foo"; o.lastChangeTime = "foo"; - o.region = buildUnnamed4992(); + o.region = buildUnnamed5372(); o.reportUrl = "foo"; o.underReview = true; } @@ -87,7 +87,7 @@ unittest.expect(o.enforcementTime, unittest.equals('foo')); unittest.expect(o.filterStatus, unittest.equals('foo')); unittest.expect(o.lastChangeTime, unittest.equals('foo')); - checkUnnamed4992(o.region); + checkUnnamed5372(o.region); unittest.expect(o.reportUrl, unittest.equals('foo')); unittest.expect(o.underReview, unittest.isTrue); } @@ -117,14 +117,14 @@ buildCounterSiteSummaryResponse--; } -buildUnnamed4993() { +buildUnnamed5373() { var o = new core.List<api.SiteSummaryResponse>(); o.add(buildSiteSummaryResponse()); o.add(buildSiteSummaryResponse()); return o; } -checkUnnamed4993(core.List<api.SiteSummaryResponse> o) { +checkUnnamed5373(core.List<api.SiteSummaryResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteSummaryResponse(o[0]); checkSiteSummaryResponse(o[1]); @@ -135,7 +135,7 @@ var o = new api.ViolatingSitesResponse(); buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - o.violatingSites = buildUnnamed4993(); + o.violatingSites = buildUnnamed5373(); } buildCounterViolatingSitesResponse--; return o; @@ -144,7 +144,7 @@ checkViolatingSitesResponse(api.ViolatingSitesResponse o) { buildCounterViolatingSitesResponse++; if (buildCounterViolatingSitesResponse < 3) { - checkUnnamed4993(o.violatingSites); + checkUnnamed5373(o.violatingSites); } buildCounterViolatingSitesResponse--; }
diff --git a/generated/googleapis/test/admin/datatransfer_v1_test.dart b/generated/googleapis/test/admin/datatransfer_v1_test.dart index 90dfecb..7d5e01f 100644 --- a/generated/googleapis/test/admin/datatransfer_v1_test.dart +++ b/generated/googleapis/test/admin/datatransfer_v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4913() { +buildUnnamed5273() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed4913(core.List<api.ApplicationTransferParam> o) { +checkUnnamed5273(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -72,7 +72,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.transferParams = buildUnnamed4913(); + o.transferParams = buildUnnamed5273(); } buildCounterApplication--; return o; @@ -85,19 +85,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4913(o.transferParams); + checkUnnamed5273(o.transferParams); } buildCounterApplication--; } -buildUnnamed4914() { +buildUnnamed5274() { var o = new core.List<api.ApplicationTransferParam>(); o.add(buildApplicationTransferParam()); o.add(buildApplicationTransferParam()); return o; } -checkUnnamed4914(core.List<api.ApplicationTransferParam> o) { +checkUnnamed5274(core.List<api.ApplicationTransferParam> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationTransferParam(o[0]); checkApplicationTransferParam(o[1]); @@ -109,7 +109,7 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { o.applicationId = "foo"; - o.applicationTransferParams = buildUnnamed4914(); + o.applicationTransferParams = buildUnnamed5274(); o.applicationTransferStatus = "foo"; } buildCounterApplicationDataTransfer--; @@ -120,20 +120,20 @@ buildCounterApplicationDataTransfer++; if (buildCounterApplicationDataTransfer < 3) { unittest.expect(o.applicationId, unittest.equals('foo')); - checkUnnamed4914(o.applicationTransferParams); + checkUnnamed5274(o.applicationTransferParams); unittest.expect(o.applicationTransferStatus, unittest.equals('foo')); } buildCounterApplicationDataTransfer--; } -buildUnnamed4915() { +buildUnnamed5275() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4915(core.List<core.String> o) { +checkUnnamed5275(core.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 +145,7 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { o.key = "foo"; - o.value = buildUnnamed4915(); + o.value = buildUnnamed5275(); } buildCounterApplicationTransferParam--; return o; @@ -155,19 +155,19 @@ buildCounterApplicationTransferParam++; if (buildCounterApplicationTransferParam < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed4915(o.value); + checkUnnamed5275(o.value); } buildCounterApplicationTransferParam--; } -buildUnnamed4916() { +buildUnnamed5276() { var o = new core.List<api.Application>(); o.add(buildApplication()); o.add(buildApplication()); return o; } -checkUnnamed4916(core.List<api.Application> o) { +checkUnnamed5276(core.List<api.Application> o) { unittest.expect(o, unittest.hasLength(2)); checkApplication(o[0]); checkApplication(o[1]); @@ -178,7 +178,7 @@ var o = new api.ApplicationsListResponse(); buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - o.applications = buildUnnamed4916(); + o.applications = buildUnnamed5276(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -190,7 +190,7 @@ checkApplicationsListResponse(api.ApplicationsListResponse o) { buildCounterApplicationsListResponse++; if (buildCounterApplicationsListResponse < 3) { - checkUnnamed4916(o.applications); + checkUnnamed5276(o.applications); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -198,14 +198,14 @@ buildCounterApplicationsListResponse--; } -buildUnnamed4917() { +buildUnnamed5277() { var o = new core.List<api.ApplicationDataTransfer>(); o.add(buildApplicationDataTransfer()); o.add(buildApplicationDataTransfer()); return o; } -checkUnnamed4917(core.List<api.ApplicationDataTransfer> o) { +checkUnnamed5277(core.List<api.ApplicationDataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationDataTransfer(o[0]); checkApplicationDataTransfer(o[1]); @@ -216,7 +216,7 @@ var o = new api.DataTransfer(); buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - o.applicationDataTransfers = buildUnnamed4917(); + o.applicationDataTransfers = buildUnnamed5277(); o.etag = "foo"; o.id = "foo"; o.kind = "foo"; @@ -232,7 +232,7 @@ checkDataTransfer(api.DataTransfer o) { buildCounterDataTransfer++; if (buildCounterDataTransfer < 3) { - checkUnnamed4917(o.applicationDataTransfers); + checkUnnamed5277(o.applicationDataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -245,14 +245,14 @@ buildCounterDataTransfer--; } -buildUnnamed4918() { +buildUnnamed5278() { var o = new core.List<api.DataTransfer>(); o.add(buildDataTransfer()); o.add(buildDataTransfer()); return o; } -checkUnnamed4918(core.List<api.DataTransfer> o) { +checkUnnamed5278(core.List<api.DataTransfer> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTransfer(o[0]); checkDataTransfer(o[1]); @@ -263,7 +263,7 @@ var o = new api.DataTransfersListResponse(); buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - o.dataTransfers = buildUnnamed4918(); + o.dataTransfers = buildUnnamed5278(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -275,7 +275,7 @@ checkDataTransfersListResponse(api.DataTransfersListResponse o) { buildCounterDataTransfersListResponse++; if (buildCounterDataTransfersListResponse < 3) { - checkUnnamed4918(o.dataTransfers); + checkUnnamed5278(o.dataTransfers); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -346,12 +346,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("admin/datatransfer/v1/")); - pathOffset += 22; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 35), + unittest.equals("admin/datatransfer/v1/applications/")); + pathOffset += 35; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_applicationId")); @@ -392,9 +389,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ApplicationsResourceApi res = new api.AdminApi(mock).applications; - var arg_customerId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_customerId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -404,12 +401,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("admin/datatransfer/v1/")); - pathOffset += 22; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("applications")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 34), + unittest.equals("admin/datatransfer/v1/applications")); + pathOffset += 34; var query = (req.url).query; var queryOffset = 0; @@ -429,12 +423,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -445,9 +439,9 @@ }), true); res .list( - customerId: arg_customerId, maxResults: arg_maxResults, pageToken: arg_pageToken, + customerId: arg_customerId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkApplicationsListResponse(response); @@ -469,12 +463,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("admin/datatransfer/v1/")); - pathOffset += 22; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("transfers/")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("admin/datatransfer/v1/transfers/")); + pathOffset += 32; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_dataTransferId")); @@ -528,12 +519,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("admin/datatransfer/v1/")); - pathOffset += 22; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("transfers")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("admin/datatransfer/v1/transfers")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -571,12 +559,12 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.TransfersResourceApi res = new api.AdminApi(mock).transfers; + var arg_status = "foo"; + var arg_newOwnerUserId = "foo"; + var arg_pageToken = "foo"; + var arg_oldOwnerUserId = "foo"; var arg_customerId = "foo"; var arg_maxResults = 42; - var arg_newOwnerUserId = "foo"; - var arg_oldOwnerUserId = "foo"; - var arg_pageToken = "foo"; - var arg_status = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -586,12 +574,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("admin/datatransfer/v1/")); - pathOffset += 22; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("transfers")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("admin/datatransfer/v1/transfers")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -611,17 +596,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); + unittest.expect(queryMap["newOwnerUserId"].first, + unittest.equals(arg_newOwnerUserId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["oldOwnerUserId"].first, + unittest.equals(arg_oldOwnerUserId)); unittest.expect( queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["newOwnerUserId"].first, - unittest.equals(arg_newOwnerUserId)); - unittest.expect(queryMap["oldOwnerUserId"].first, - unittest.equals(arg_oldOwnerUserId)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -632,12 +617,12 @@ }), true); res .list( + status: arg_status, + newOwnerUserId: arg_newOwnerUserId, + pageToken: arg_pageToken, + oldOwnerUserId: arg_oldOwnerUserId, customerId: arg_customerId, maxResults: arg_maxResults, - newOwnerUserId: arg_newOwnerUserId, - oldOwnerUserId: arg_oldOwnerUserId, - pageToken: arg_pageToken, - status: arg_status, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDataTransfersListResponse(response);
diff --git a/generated/googleapis/test/admin/directory_v1_test.dart b/generated/googleapis/test/admin/directory_v1_test.dart index c9d2d0d..43f108c 100644 --- a/generated/googleapis/test/admin/directory_v1_test.dart +++ b/generated/googleapis/test/admin/directory_v1_test.dart
@@ -77,7 +77,7 @@ buildCounterAlias--; } -buildUnnamed4550() { +buildUnnamed4895() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -92,7 +92,7 @@ return o; } -checkUnnamed4550(core.List<core.Object> o) { +checkUnnamed4895(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -111,7 +111,7 @@ var o = new api.Aliases(); buildCounterAliases++; if (buildCounterAliases < 3) { - o.aliases = buildUnnamed4550(); + o.aliases = buildUnnamed4895(); o.etag = "foo"; o.kind = "foo"; } @@ -122,7 +122,7 @@ checkAliases(api.Aliases o) { buildCounterAliases++; if (buildCounterAliases < 3) { - checkUnnamed4550(o.aliases); + checkUnnamed4895(o.aliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -160,14 +160,14 @@ buildCounterAsp--; } -buildUnnamed4551() { +buildUnnamed4896() { var o = new core.List<api.Asp>(); o.add(buildAsp()); o.add(buildAsp()); return o; } -checkUnnamed4551(core.List<api.Asp> o) { +checkUnnamed4896(core.List<api.Asp> o) { unittest.expect(o, unittest.hasLength(2)); checkAsp(o[0]); checkAsp(o[1]); @@ -179,7 +179,7 @@ buildCounterAsps++; if (buildCounterAsps < 3) { o.etag = "foo"; - o.items = buildUnnamed4551(); + o.items = buildUnnamed4896(); o.kind = "foo"; } buildCounterAsps--; @@ -190,20 +190,20 @@ buildCounterAsps++; if (buildCounterAsps < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4551(o.items); + checkUnnamed4896(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAsps--; } -buildUnnamed4552() { +buildUnnamed4897() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4552(core.List<core.String> o) { +checkUnnamed4897(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -220,7 +220,7 @@ o.coordinates = buildBuildingCoordinates(); o.description = "foo"; o.etags = "foo"; - o.floorNames = buildUnnamed4552(); + o.floorNames = buildUnnamed4897(); o.kind = "foo"; } buildCounterBuilding--; @@ -236,20 +236,20 @@ checkBuildingCoordinates(o.coordinates); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etags, unittest.equals('foo')); - checkUnnamed4552(o.floorNames); + checkUnnamed4897(o.floorNames); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBuilding--; } -buildUnnamed4553() { +buildUnnamed4898() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4553(core.List<core.String> o) { +checkUnnamed4898(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -260,7 +260,7 @@ var o = new api.BuildingAddress(); buildCounterBuildingAddress++; if (buildCounterBuildingAddress < 3) { - o.addressLines = buildUnnamed4553(); + o.addressLines = buildUnnamed4898(); o.administrativeArea = "foo"; o.languageCode = "foo"; o.locality = "foo"; @@ -275,7 +275,7 @@ checkBuildingAddress(api.BuildingAddress o) { buildCounterBuildingAddress++; if (buildCounterBuildingAddress < 3) { - checkUnnamed4553(o.addressLines); + checkUnnamed4898(o.addressLines); unittest.expect(o.administrativeArea, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.locality, unittest.equals('foo')); @@ -307,14 +307,14 @@ buildCounterBuildingCoordinates--; } -buildUnnamed4554() { +buildUnnamed4899() { var o = new core.List<api.Building>(); o.add(buildBuilding()); o.add(buildBuilding()); return o; } -checkUnnamed4554(core.List<api.Building> o) { +checkUnnamed4899(core.List<api.Building> o) { unittest.expect(o, unittest.hasLength(2)); checkBuilding(o[0]); checkBuilding(o[1]); @@ -325,7 +325,7 @@ var o = new api.Buildings(); buildCounterBuildings++; if (buildCounterBuildings < 3) { - o.buildings = buildUnnamed4554(); + o.buildings = buildUnnamed4899(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -337,7 +337,7 @@ checkBuildings(api.Buildings o) { buildCounterBuildings++; if (buildCounterBuildings < 3) { - checkUnnamed4554(o.buildings); + checkUnnamed4899(o.buildings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -400,14 +400,14 @@ buildCounterCalendarResource--; } -buildUnnamed4555() { +buildUnnamed4900() { var o = new core.List<api.CalendarResource>(); o.add(buildCalendarResource()); o.add(buildCalendarResource()); return o; } -checkUnnamed4555(core.List<api.CalendarResource> o) { +checkUnnamed4900(core.List<api.CalendarResource> o) { unittest.expect(o, unittest.hasLength(2)); checkCalendarResource(o[0]); checkCalendarResource(o[1]); @@ -419,7 +419,7 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { o.etag = "foo"; - o.items = buildUnnamed4555(); + o.items = buildUnnamed4900(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -431,21 +431,21 @@ buildCounterCalendarResources++; if (buildCounterCalendarResources < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4555(o.items); + checkUnnamed4900(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCalendarResources--; } -buildUnnamed4556() { +buildUnnamed4901() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4556(core.Map<core.String, core.String> o) { +checkUnnamed4901(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')); @@ -460,7 +460,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed4556(); + o.params = buildUnnamed4901(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -478,7 +478,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4556(o.params); + checkUnnamed4901(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -510,14 +510,14 @@ buildCounterChromeOsDeviceActiveTimeRanges--; } -buildUnnamed4557() { +buildUnnamed4902() { var o = new core.List<api.ChromeOsDeviceActiveTimeRanges>(); o.add(buildChromeOsDeviceActiveTimeRanges()); o.add(buildChromeOsDeviceActiveTimeRanges()); return o; } -checkUnnamed4557(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { +checkUnnamed4902(core.List<api.ChromeOsDeviceActiveTimeRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceActiveTimeRanges(o[0]); checkChromeOsDeviceActiveTimeRanges(o[1]); @@ -545,28 +545,28 @@ buildCounterChromeOsDeviceCpuStatusReportsCpuTemperatureInfo--; } -buildUnnamed4558() { +buildUnnamed4903() { var o = new core.List<api.ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo>(); o.add(buildChromeOsDeviceCpuStatusReportsCpuTemperatureInfo()); o.add(buildChromeOsDeviceCpuStatusReportsCpuTemperatureInfo()); return o; } -checkUnnamed4558( +checkUnnamed4903( core.List<api.ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceCpuStatusReportsCpuTemperatureInfo(o[0]); checkChromeOsDeviceCpuStatusReportsCpuTemperatureInfo(o[1]); } -buildUnnamed4559() { +buildUnnamed4904() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4559(core.List<core.int> o) { +checkUnnamed4904(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)); @@ -577,8 +577,8 @@ var o = new api.ChromeOsDeviceCpuStatusReports(); buildCounterChromeOsDeviceCpuStatusReports++; if (buildCounterChromeOsDeviceCpuStatusReports < 3) { - o.cpuTemperatureInfo = buildUnnamed4558(); - o.cpuUtilizationPercentageInfo = buildUnnamed4559(); + o.cpuTemperatureInfo = buildUnnamed4903(); + o.cpuUtilizationPercentageInfo = buildUnnamed4904(); o.reportTime = core.DateTime.parse("2002-02-27T14:01:02"); } buildCounterChromeOsDeviceCpuStatusReports--; @@ -588,22 +588,22 @@ checkChromeOsDeviceCpuStatusReports(api.ChromeOsDeviceCpuStatusReports o) { buildCounterChromeOsDeviceCpuStatusReports++; if (buildCounterChromeOsDeviceCpuStatusReports < 3) { - checkUnnamed4558(o.cpuTemperatureInfo); - checkUnnamed4559(o.cpuUtilizationPercentageInfo); + checkUnnamed4903(o.cpuTemperatureInfo); + checkUnnamed4904(o.cpuUtilizationPercentageInfo); unittest.expect(o.reportTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); } buildCounterChromeOsDeviceCpuStatusReports--; } -buildUnnamed4560() { +buildUnnamed4905() { var o = new core.List<api.ChromeOsDeviceCpuStatusReports>(); o.add(buildChromeOsDeviceCpuStatusReports()); o.add(buildChromeOsDeviceCpuStatusReports()); return o; } -checkUnnamed4560(core.List<api.ChromeOsDeviceCpuStatusReports> o) { +checkUnnamed4905(core.List<api.ChromeOsDeviceCpuStatusReports> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceCpuStatusReports(o[0]); checkChromeOsDeviceCpuStatusReports(o[1]); @@ -635,14 +635,14 @@ buildCounterChromeOsDeviceDeviceFiles--; } -buildUnnamed4561() { +buildUnnamed4906() { var o = new core.List<api.ChromeOsDeviceDeviceFiles>(); o.add(buildChromeOsDeviceDeviceFiles()); o.add(buildChromeOsDeviceDeviceFiles()); return o; } -checkUnnamed4561(core.List<api.ChromeOsDeviceDeviceFiles> o) { +checkUnnamed4906(core.List<api.ChromeOsDeviceDeviceFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceDeviceFiles(o[0]); checkChromeOsDeviceDeviceFiles(o[1]); @@ -672,14 +672,14 @@ buildCounterChromeOsDeviceDiskVolumeReportsVolumeInfo--; } -buildUnnamed4562() { +buildUnnamed4907() { var o = new core.List<api.ChromeOsDeviceDiskVolumeReportsVolumeInfo>(); o.add(buildChromeOsDeviceDiskVolumeReportsVolumeInfo()); o.add(buildChromeOsDeviceDiskVolumeReportsVolumeInfo()); return o; } -checkUnnamed4562(core.List<api.ChromeOsDeviceDiskVolumeReportsVolumeInfo> o) { +checkUnnamed4907(core.List<api.ChromeOsDeviceDiskVolumeReportsVolumeInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceDiskVolumeReportsVolumeInfo(o[0]); checkChromeOsDeviceDiskVolumeReportsVolumeInfo(o[1]); @@ -690,7 +690,7 @@ var o = new api.ChromeOsDeviceDiskVolumeReports(); buildCounterChromeOsDeviceDiskVolumeReports++; if (buildCounterChromeOsDeviceDiskVolumeReports < 3) { - o.volumeInfo = buildUnnamed4562(); + o.volumeInfo = buildUnnamed4907(); } buildCounterChromeOsDeviceDiskVolumeReports--; return o; @@ -699,24 +699,58 @@ checkChromeOsDeviceDiskVolumeReports(api.ChromeOsDeviceDiskVolumeReports o) { buildCounterChromeOsDeviceDiskVolumeReports++; if (buildCounterChromeOsDeviceDiskVolumeReports < 3) { - checkUnnamed4562(o.volumeInfo); + checkUnnamed4907(o.volumeInfo); } buildCounterChromeOsDeviceDiskVolumeReports--; } -buildUnnamed4563() { +buildUnnamed4908() { var o = new core.List<api.ChromeOsDeviceDiskVolumeReports>(); o.add(buildChromeOsDeviceDiskVolumeReports()); o.add(buildChromeOsDeviceDiskVolumeReports()); return o; } -checkUnnamed4563(core.List<api.ChromeOsDeviceDiskVolumeReports> o) { +checkUnnamed4908(core.List<api.ChromeOsDeviceDiskVolumeReports> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceDiskVolumeReports(o[0]); checkChromeOsDeviceDiskVolumeReports(o[1]); } +core.int buildCounterChromeOsDeviceLastKnownNetwork = 0; +buildChromeOsDeviceLastKnownNetwork() { + var o = new api.ChromeOsDeviceLastKnownNetwork(); + buildCounterChromeOsDeviceLastKnownNetwork++; + if (buildCounterChromeOsDeviceLastKnownNetwork < 3) { + o.ipAddress = "foo"; + o.wanIpAddress = "foo"; + } + buildCounterChromeOsDeviceLastKnownNetwork--; + return o; +} + +checkChromeOsDeviceLastKnownNetwork(api.ChromeOsDeviceLastKnownNetwork o) { + buildCounterChromeOsDeviceLastKnownNetwork++; + if (buildCounterChromeOsDeviceLastKnownNetwork < 3) { + unittest.expect(o.ipAddress, unittest.equals('foo')); + unittest.expect(o.wanIpAddress, unittest.equals('foo')); + } + buildCounterChromeOsDeviceLastKnownNetwork--; +} + +buildUnnamed4909() { + var o = new core.List<api.ChromeOsDeviceLastKnownNetwork>(); + o.add(buildChromeOsDeviceLastKnownNetwork()); + o.add(buildChromeOsDeviceLastKnownNetwork()); + return o; +} + +checkUnnamed4909(core.List<api.ChromeOsDeviceLastKnownNetwork> o) { + unittest.expect(o, unittest.hasLength(2)); + checkChromeOsDeviceLastKnownNetwork(o[0]); + checkChromeOsDeviceLastKnownNetwork(o[1]); +} + core.int buildCounterChromeOsDeviceRecentUsers = 0; buildChromeOsDeviceRecentUsers() { var o = new api.ChromeOsDeviceRecentUsers(); @@ -738,27 +772,27 @@ buildCounterChromeOsDeviceRecentUsers--; } -buildUnnamed4564() { +buildUnnamed4910() { var o = new core.List<api.ChromeOsDeviceRecentUsers>(); o.add(buildChromeOsDeviceRecentUsers()); o.add(buildChromeOsDeviceRecentUsers()); return o; } -checkUnnamed4564(core.List<api.ChromeOsDeviceRecentUsers> o) { +checkUnnamed4910(core.List<api.ChromeOsDeviceRecentUsers> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceRecentUsers(o[0]); checkChromeOsDeviceRecentUsers(o[1]); } -buildUnnamed4565() { +buildUnnamed4911() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4565(core.List<core.String> o) { +checkUnnamed4911(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -770,7 +804,7 @@ buildCounterChromeOsDeviceSystemRamFreeReports++; if (buildCounterChromeOsDeviceSystemRamFreeReports < 3) { o.reportTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.systemRamFreeInfo = buildUnnamed4565(); + o.systemRamFreeInfo = buildUnnamed4911(); } buildCounterChromeOsDeviceSystemRamFreeReports--; return o; @@ -782,19 +816,19 @@ if (buildCounterChromeOsDeviceSystemRamFreeReports < 3) { unittest.expect(o.reportTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4565(o.systemRamFreeInfo); + checkUnnamed4911(o.systemRamFreeInfo); } buildCounterChromeOsDeviceSystemRamFreeReports--; } -buildUnnamed4566() { +buildUnnamed4912() { var o = new core.List<api.ChromeOsDeviceSystemRamFreeReports>(); o.add(buildChromeOsDeviceSystemRamFreeReports()); o.add(buildChromeOsDeviceSystemRamFreeReports()); return o; } -checkUnnamed4566(core.List<api.ChromeOsDeviceSystemRamFreeReports> o) { +checkUnnamed4912(core.List<api.ChromeOsDeviceSystemRamFreeReports> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDeviceSystemRamFreeReports(o[0]); checkChromeOsDeviceSystemRamFreeReports(o[1]); @@ -834,16 +868,16 @@ var o = new api.ChromeOsDevice(); buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - o.activeTimeRanges = buildUnnamed4557(); + o.activeTimeRanges = buildUnnamed4902(); o.annotatedAssetId = "foo"; o.annotatedLocation = "foo"; o.annotatedUser = "foo"; o.autoUpdateExpiration = "foo"; o.bootMode = "foo"; - o.cpuStatusReports = buildUnnamed4560(); - o.deviceFiles = buildUnnamed4561(); + o.cpuStatusReports = buildUnnamed4905(); + o.deviceFiles = buildUnnamed4906(); o.deviceId = "foo"; - o.diskVolumeReports = buildUnnamed4563(); + o.diskVolumeReports = buildUnnamed4908(); o.dockMacAddress = "foo"; o.etag = "foo"; o.ethernetMacAddress = "foo"; @@ -851,6 +885,7 @@ o.firmwareVersion = "foo"; o.kind = "foo"; o.lastEnrollmentTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.lastKnownNetwork = buildUnnamed4909(); o.lastSync = core.DateTime.parse("2002-02-27T14:01:02"); o.macAddress = "foo"; o.manufactureDate = "foo"; @@ -861,11 +896,11 @@ o.orgUnitPath = "foo"; o.osVersion = "foo"; o.platformVersion = "foo"; - o.recentUsers = buildUnnamed4564(); + o.recentUsers = buildUnnamed4910(); o.serialNumber = "foo"; o.status = "foo"; o.supportEndDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.systemRamFreeReports = buildUnnamed4566(); + o.systemRamFreeReports = buildUnnamed4912(); o.systemRamTotal = "foo"; o.tpmVersionInfo = buildChromeOsDeviceTpmVersionInfo(); o.willAutoRenew = true; @@ -877,16 +912,16 @@ checkChromeOsDevice(api.ChromeOsDevice o) { buildCounterChromeOsDevice++; if (buildCounterChromeOsDevice < 3) { - checkUnnamed4557(o.activeTimeRanges); + checkUnnamed4902(o.activeTimeRanges); unittest.expect(o.annotatedAssetId, unittest.equals('foo')); unittest.expect(o.annotatedLocation, unittest.equals('foo')); unittest.expect(o.annotatedUser, unittest.equals('foo')); unittest.expect(o.autoUpdateExpiration, unittest.equals('foo')); unittest.expect(o.bootMode, unittest.equals('foo')); - checkUnnamed4560(o.cpuStatusReports); - checkUnnamed4561(o.deviceFiles); + checkUnnamed4905(o.cpuStatusReports); + checkUnnamed4906(o.deviceFiles); unittest.expect(o.deviceId, unittest.equals('foo')); - checkUnnamed4563(o.diskVolumeReports); + checkUnnamed4908(o.diskVolumeReports); unittest.expect(o.dockMacAddress, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.ethernetMacAddress, unittest.equals('foo')); @@ -895,6 +930,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastEnrollmentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + checkUnnamed4909(o.lastKnownNetwork); unittest.expect(o.lastSync, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.macAddress, unittest.equals('foo')); @@ -906,12 +942,12 @@ unittest.expect(o.orgUnitPath, unittest.equals('foo')); unittest.expect(o.osVersion, unittest.equals('foo')); unittest.expect(o.platformVersion, unittest.equals('foo')); - checkUnnamed4564(o.recentUsers); + checkUnnamed4910(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"))); - checkUnnamed4566(o.systemRamFreeReports); + checkUnnamed4912(o.systemRamFreeReports); unittest.expect(o.systemRamTotal, unittest.equals('foo')); checkChromeOsDeviceTpmVersionInfo(o.tpmVersionInfo); unittest.expect(o.willAutoRenew, unittest.isTrue); @@ -940,14 +976,14 @@ buildCounterChromeOsDeviceAction--; } -buildUnnamed4567() { +buildUnnamed4913() { var o = new core.List<api.ChromeOsDevice>(); o.add(buildChromeOsDevice()); o.add(buildChromeOsDevice()); return o; } -checkUnnamed4567(core.List<api.ChromeOsDevice> o) { +checkUnnamed4913(core.List<api.ChromeOsDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkChromeOsDevice(o[0]); checkChromeOsDevice(o[1]); @@ -958,7 +994,7 @@ var o = new api.ChromeOsDevices(); buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - o.chromeosdevices = buildUnnamed4567(); + o.chromeosdevices = buildUnnamed4913(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -970,7 +1006,7 @@ checkChromeOsDevices(api.ChromeOsDevices o) { buildCounterChromeOsDevices++; if (buildCounterChromeOsDevices < 3) { - checkUnnamed4567(o.chromeosdevices); + checkUnnamed4913(o.chromeosdevices); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -978,14 +1014,14 @@ buildCounterChromeOsDevices--; } -buildUnnamed4568() { +buildUnnamed4914() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4568(core.List<core.String> o) { +checkUnnamed4914(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -996,7 +1032,7 @@ var o = new api.ChromeOsMoveDevicesToOu(); buildCounterChromeOsMoveDevicesToOu++; if (buildCounterChromeOsMoveDevicesToOu < 3) { - o.deviceIds = buildUnnamed4568(); + o.deviceIds = buildUnnamed4914(); } buildCounterChromeOsMoveDevicesToOu--; return o; @@ -1005,7 +1041,7 @@ checkChromeOsMoveDevicesToOu(api.ChromeOsMoveDevicesToOu o) { buildCounterChromeOsMoveDevicesToOu++; if (buildCounterChromeOsMoveDevicesToOu < 3) { - checkUnnamed4568(o.deviceIds); + checkUnnamed4914(o.deviceIds); } buildCounterChromeOsMoveDevicesToOu--; } @@ -1110,14 +1146,14 @@ buildCounterDomainAlias--; } -buildUnnamed4569() { +buildUnnamed4915() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed4569(core.List<api.DomainAlias> o) { +checkUnnamed4915(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -1128,7 +1164,7 @@ var o = new api.DomainAliases(); buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - o.domainAliases = buildUnnamed4569(); + o.domainAliases = buildUnnamed4915(); o.etag = "foo"; o.kind = "foo"; } @@ -1139,21 +1175,21 @@ checkDomainAliases(api.DomainAliases o) { buildCounterDomainAliases++; if (buildCounterDomainAliases < 3) { - checkUnnamed4569(o.domainAliases); + checkUnnamed4915(o.domainAliases); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDomainAliases--; } -buildUnnamed4570() { +buildUnnamed4916() { var o = new core.List<api.DomainAlias>(); o.add(buildDomainAlias()); o.add(buildDomainAlias()); return o; } -checkUnnamed4570(core.List<api.DomainAlias> o) { +checkUnnamed4916(core.List<api.DomainAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainAlias(o[0]); checkDomainAlias(o[1]); @@ -1165,7 +1201,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { o.creationTime = "foo"; - o.domainAliases = buildUnnamed4570(); + o.domainAliases = buildUnnamed4916(); o.domainName = "foo"; o.etag = "foo"; o.isPrimary = true; @@ -1180,7 +1216,7 @@ buildCounterDomains++; if (buildCounterDomains < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed4570(o.domainAliases); + checkUnnamed4916(o.domainAliases); unittest.expect(o.domainName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isPrimary, unittest.isTrue); @@ -1190,14 +1226,14 @@ buildCounterDomains--; } -buildUnnamed4571() { +buildUnnamed4917() { var o = new core.List<api.Domains>(); o.add(buildDomains()); o.add(buildDomains()); return o; } -checkUnnamed4571(core.List<api.Domains> o) { +checkUnnamed4917(core.List<api.Domains> o) { unittest.expect(o, unittest.hasLength(2)); checkDomains(o[0]); checkDomains(o[1]); @@ -1208,7 +1244,7 @@ var o = new api.Domains2(); buildCounterDomains2++; if (buildCounterDomains2 < 3) { - o.domains = buildUnnamed4571(); + o.domains = buildUnnamed4917(); o.etag = "foo"; o.kind = "foo"; } @@ -1219,7 +1255,7 @@ checkDomains2(api.Domains2 o) { buildCounterDomains2++; if (buildCounterDomains2 < 3) { - checkUnnamed4571(o.domains); + checkUnnamed4917(o.domains); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1287,14 +1323,14 @@ buildCounterFeatureRename--; } -buildUnnamed4572() { +buildUnnamed4918() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed4572(core.List<api.Feature> o) { +checkUnnamed4918(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -1306,7 +1342,7 @@ buildCounterFeatures++; if (buildCounterFeatures < 3) { o.etag = "foo"; - o.features = buildUnnamed4572(); + o.features = buildUnnamed4918(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1318,34 +1354,34 @@ buildCounterFeatures++; if (buildCounterFeatures < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4572(o.features); + checkUnnamed4918(o.features); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFeatures--; } -buildUnnamed4573() { +buildUnnamed4919() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4573(core.List<core.String> o) { +checkUnnamed4919(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4574() { +buildUnnamed4920() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4574(core.List<core.String> o) { +checkUnnamed4920(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1357,7 +1393,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { o.adminCreated = true; - o.aliases = buildUnnamed4573(); + o.aliases = buildUnnamed4919(); o.description = "foo"; o.directMembersCount = "foo"; o.email = "foo"; @@ -1365,7 +1401,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nonEditableAliases = buildUnnamed4574(); + o.nonEditableAliases = buildUnnamed4920(); } buildCounterGroup--; return o; @@ -1375,7 +1411,7 @@ buildCounterGroup++; if (buildCounterGroup < 3) { unittest.expect(o.adminCreated, unittest.isTrue); - checkUnnamed4573(o.aliases); + checkUnnamed4919(o.aliases); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.directMembersCount, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -1383,19 +1419,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4574(o.nonEditableAliases); + checkUnnamed4920(o.nonEditableAliases); } buildCounterGroup--; } -buildUnnamed4575() { +buildUnnamed4921() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed4575(core.List<api.Group> o) { +checkUnnamed4921(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -1407,7 +1443,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { o.etag = "foo"; - o.groups = buildUnnamed4575(); + o.groups = buildUnnamed4921(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1419,7 +1455,7 @@ buildCounterGroups++; if (buildCounterGroups < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4575(o.groups); + checkUnnamed4921(o.groups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1459,14 +1495,14 @@ buildCounterMember--; } -buildUnnamed4576() { +buildUnnamed4922() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed4576(core.List<api.Member> o) { +checkUnnamed4922(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -1479,7 +1515,7 @@ if (buildCounterMembers < 3) { o.etag = "foo"; o.kind = "foo"; - o.members = buildUnnamed4576(); + o.members = buildUnnamed4922(); o.nextPageToken = "foo"; } buildCounterMembers--; @@ -1491,7 +1527,7 @@ if (buildCounterMembers < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4576(o.members); + checkUnnamed4922(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMembers--; @@ -1516,14 +1552,14 @@ buildCounterMembersHasMember--; } -buildUnnamed4577() { +buildUnnamed4923() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4577(core.List<core.String> o) { +checkUnnamed4923(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1536,7 +1572,7 @@ if (buildCounterMobileDeviceApplications < 3) { o.displayName = "foo"; o.packageName = "foo"; - o.permission = buildUnnamed4577(); + o.permission = buildUnnamed4923(); o.versionCode = 42; o.versionName = "foo"; } @@ -1549,60 +1585,60 @@ if (buildCounterMobileDeviceApplications < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed4577(o.permission); + checkUnnamed4923(o.permission); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterMobileDeviceApplications--; } -buildUnnamed4578() { +buildUnnamed4924() { var o = new core.List<api.MobileDeviceApplications>(); o.add(buildMobileDeviceApplications()); o.add(buildMobileDeviceApplications()); return o; } -checkUnnamed4578(core.List<api.MobileDeviceApplications> o) { +checkUnnamed4924(core.List<api.MobileDeviceApplications> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDeviceApplications(o[0]); checkMobileDeviceApplications(o[1]); } -buildUnnamed4579() { +buildUnnamed4925() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4579(core.List<core.String> o) { +checkUnnamed4925(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4580() { +buildUnnamed4926() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4580(core.List<core.String> o) { +checkUnnamed4926(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4581() { +buildUnnamed4927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4581(core.List<core.String> o) { +checkUnnamed4927(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1614,7 +1650,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { o.adbStatus = true; - o.applications = buildUnnamed4578(); + o.applications = buildUnnamed4924(); o.basebandVersion = "foo"; o.bootloaderVersion = "foo"; o.brand = "foo"; @@ -1624,7 +1660,7 @@ o.deviceCompromisedStatus = "foo"; o.deviceId = "foo"; o.devicePasswordStatus = "foo"; - o.email = buildUnnamed4579(); + o.email = buildUnnamed4925(); o.encryptionStatus = "foo"; o.etag = "foo"; o.firstSync = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1638,10 +1674,10 @@ o.manufacturer = "foo"; o.meid = "foo"; o.model = "foo"; - o.name = buildUnnamed4580(); + o.name = buildUnnamed4926(); o.networkOperator = "foo"; o.os = "foo"; - o.otherAccountsInfo = buildUnnamed4581(); + o.otherAccountsInfo = buildUnnamed4927(); o.privilege = "foo"; o.releaseVersion = "foo"; o.resourceId = "foo"; @@ -1662,7 +1698,7 @@ buildCounterMobileDevice++; if (buildCounterMobileDevice < 3) { unittest.expect(o.adbStatus, unittest.isTrue); - checkUnnamed4578(o.applications); + checkUnnamed4924(o.applications); unittest.expect(o.basebandVersion, unittest.equals('foo')); unittest.expect(o.bootloaderVersion, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); @@ -1672,7 +1708,7 @@ unittest.expect(o.deviceCompromisedStatus, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); unittest.expect(o.devicePasswordStatus, unittest.equals('foo')); - checkUnnamed4579(o.email); + checkUnnamed4925(o.email); unittest.expect(o.encryptionStatus, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.firstSync, @@ -1688,10 +1724,10 @@ unittest.expect(o.manufacturer, unittest.equals('foo')); unittest.expect(o.meid, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); - checkUnnamed4580(o.name); + checkUnnamed4926(o.name); unittest.expect(o.networkOperator, unittest.equals('foo')); unittest.expect(o.os, unittest.equals('foo')); - checkUnnamed4581(o.otherAccountsInfo); + checkUnnamed4927(o.otherAccountsInfo); unittest.expect(o.privilege, unittest.equals('foo')); unittest.expect(o.releaseVersion, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1726,14 +1762,14 @@ buildCounterMobileDeviceAction--; } -buildUnnamed4582() { +buildUnnamed4928() { var o = new core.List<api.MobileDevice>(); o.add(buildMobileDevice()); o.add(buildMobileDevice()); return o; } -checkUnnamed4582(core.List<api.MobileDevice> o) { +checkUnnamed4928(core.List<api.MobileDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileDevice(o[0]); checkMobileDevice(o[1]); @@ -1746,7 +1782,7 @@ if (buildCounterMobileDevices < 3) { o.etag = "foo"; o.kind = "foo"; - o.mobiledevices = buildUnnamed4582(); + o.mobiledevices = buildUnnamed4928(); o.nextPageToken = "foo"; } buildCounterMobileDevices--; @@ -1758,86 +1794,12 @@ if (buildCounterMobileDevices < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4582(o.mobiledevices); + checkUnnamed4928(o.mobiledevices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileDevices--; } -core.int buildCounterNotification = 0; -buildNotification() { - var o = new api.Notification(); - buildCounterNotification++; - if (buildCounterNotification < 3) { - o.body = "foo"; - o.etag = "foo"; - o.fromAddress = "foo"; - o.isUnread = true; - o.kind = "foo"; - o.notificationId = "foo"; - o.sendTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.subject = "foo"; - } - buildCounterNotification--; - return o; -} - -checkNotification(api.Notification o) { - buildCounterNotification++; - if (buildCounterNotification < 3) { - unittest.expect(o.body, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.fromAddress, unittest.equals('foo')); - unittest.expect(o.isUnread, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.notificationId, unittest.equals('foo')); - unittest.expect(o.sendTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.subject, unittest.equals('foo')); - } - buildCounterNotification--; -} - -buildUnnamed4583() { - var o = new core.List<api.Notification>(); - o.add(buildNotification()); - o.add(buildNotification()); - return o; -} - -checkUnnamed4583(core.List<api.Notification> o) { - unittest.expect(o, unittest.hasLength(2)); - checkNotification(o[0]); - checkNotification(o[1]); -} - -core.int buildCounterNotifications = 0; -buildNotifications() { - var o = new api.Notifications(); - buildCounterNotifications++; - if (buildCounterNotifications < 3) { - o.etag = "foo"; - o.items = buildUnnamed4583(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.unreadNotificationsCount = 42; - } - buildCounterNotifications--; - return o; -} - -checkNotifications(api.Notifications o) { - buildCounterNotifications++; - if (buildCounterNotifications < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4583(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.unreadNotificationsCount, unittest.equals(42)); - } - buildCounterNotifications--; -} - core.int buildCounterOrgUnit = 0; buildOrgUnit() { var o = new api.OrgUnit(); @@ -1873,14 +1835,14 @@ buildCounterOrgUnit--; } -buildUnnamed4584() { +buildUnnamed4929() { var o = new core.List<api.OrgUnit>(); o.add(buildOrgUnit()); o.add(buildOrgUnit()); return o; } -checkUnnamed4584(core.List<api.OrgUnit> o) { +checkUnnamed4929(core.List<api.OrgUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgUnit(o[0]); checkOrgUnit(o[1]); @@ -1893,7 +1855,7 @@ if (buildCounterOrgUnits < 3) { o.etag = "foo"; o.kind = "foo"; - o.organizationUnits = buildUnnamed4584(); + o.organizationUnits = buildUnnamed4929(); } buildCounterOrgUnits--; return o; @@ -1904,19 +1866,19 @@ if (buildCounterOrgUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4584(o.organizationUnits); + checkUnnamed4929(o.organizationUnits); } buildCounterOrgUnits--; } -buildUnnamed4585() { +buildUnnamed4930() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed4585(core.List<api.Privilege> o) { +checkUnnamed4930(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1927,7 +1889,7 @@ var o = new api.Privilege(); buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - o.childPrivileges = buildUnnamed4585(); + o.childPrivileges = buildUnnamed4930(); o.etag = "foo"; o.isOuScopable = true; o.kind = "foo"; @@ -1942,7 +1904,7 @@ checkPrivilege(api.Privilege o) { buildCounterPrivilege++; if (buildCounterPrivilege < 3) { - checkUnnamed4585(o.childPrivileges); + checkUnnamed4930(o.childPrivileges); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.isOuScopable, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1953,14 +1915,14 @@ buildCounterPrivilege--; } -buildUnnamed4586() { +buildUnnamed4931() { var o = new core.List<api.Privilege>(); o.add(buildPrivilege()); o.add(buildPrivilege()); return o; } -checkUnnamed4586(core.List<api.Privilege> o) { +checkUnnamed4931(core.List<api.Privilege> o) { unittest.expect(o, unittest.hasLength(2)); checkPrivilege(o[0]); checkPrivilege(o[1]); @@ -1972,7 +1934,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { o.etag = "foo"; - o.items = buildUnnamed4586(); + o.items = buildUnnamed4931(); o.kind = "foo"; } buildCounterPrivileges--; @@ -1983,7 +1945,7 @@ buildCounterPrivileges++; if (buildCounterPrivileges < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4586(o.items); + checkUnnamed4931(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPrivileges--; @@ -2010,14 +1972,14 @@ buildCounterRoleRolePrivileges--; } -buildUnnamed4587() { +buildUnnamed4932() { var o = new core.List<api.RoleRolePrivileges>(); o.add(buildRoleRolePrivileges()); o.add(buildRoleRolePrivileges()); return o; } -checkUnnamed4587(core.List<api.RoleRolePrivileges> o) { +checkUnnamed4932(core.List<api.RoleRolePrivileges> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleRolePrivileges(o[0]); checkRoleRolePrivileges(o[1]); @@ -2035,7 +1997,7 @@ o.roleDescription = "foo"; o.roleId = "foo"; o.roleName = "foo"; - o.rolePrivileges = buildUnnamed4587(); + o.rolePrivileges = buildUnnamed4932(); } buildCounterRole--; return o; @@ -2051,7 +2013,7 @@ unittest.expect(o.roleDescription, unittest.equals('foo')); unittest.expect(o.roleId, unittest.equals('foo')); unittest.expect(o.roleName, unittest.equals('foo')); - checkUnnamed4587(o.rolePrivileges); + checkUnnamed4932(o.rolePrivileges); } buildCounterRole--; } @@ -2087,14 +2049,14 @@ buildCounterRoleAssignment--; } -buildUnnamed4588() { +buildUnnamed4933() { var o = new core.List<api.RoleAssignment>(); o.add(buildRoleAssignment()); o.add(buildRoleAssignment()); return o; } -checkUnnamed4588(core.List<api.RoleAssignment> o) { +checkUnnamed4933(core.List<api.RoleAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkRoleAssignment(o[0]); checkRoleAssignment(o[1]); @@ -2106,7 +2068,7 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { o.etag = "foo"; - o.items = buildUnnamed4588(); + o.items = buildUnnamed4933(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2118,21 +2080,21 @@ buildCounterRoleAssignments++; if (buildCounterRoleAssignments < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4588(o.items); + checkUnnamed4933(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoleAssignments--; } -buildUnnamed4589() { +buildUnnamed4934() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed4589(core.List<api.Role> o) { +checkUnnamed4934(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -2144,7 +2106,7 @@ buildCounterRoles++; if (buildCounterRoles < 3) { o.etag = "foo"; - o.items = buildUnnamed4589(); + o.items = buildUnnamed4934(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2156,21 +2118,21 @@ buildCounterRoles++; if (buildCounterRoles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4589(o.items); + checkUnnamed4934(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRoles--; } -buildUnnamed4590() { +buildUnnamed4935() { var o = new core.List<api.SchemaFieldSpec>(); o.add(buildSchemaFieldSpec()); o.add(buildSchemaFieldSpec()); return o; } -checkUnnamed4590(core.List<api.SchemaFieldSpec> o) { +checkUnnamed4935(core.List<api.SchemaFieldSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSchemaFieldSpec(o[0]); checkSchemaFieldSpec(o[1]); @@ -2183,7 +2145,7 @@ if (buildCounterSchema < 3) { o.displayName = "foo"; o.etag = "foo"; - o.fields = buildUnnamed4590(); + o.fields = buildUnnamed4935(); o.kind = "foo"; o.schemaId = "foo"; o.schemaName = "foo"; @@ -2197,7 +2159,7 @@ if (buildCounterSchema < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4590(o.fields); + checkUnnamed4935(o.fields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.schemaId, unittest.equals('foo')); unittest.expect(o.schemaName, unittest.equals('foo')); @@ -2264,14 +2226,14 @@ buildCounterSchemaFieldSpec--; } -buildUnnamed4591() { +buildUnnamed4936() { var o = new core.List<api.Schema>(); o.add(buildSchema()); o.add(buildSchema()); return o; } -checkUnnamed4591(core.List<api.Schema> o) { +checkUnnamed4936(core.List<api.Schema> o) { unittest.expect(o, unittest.hasLength(2)); checkSchema(o[0]); checkSchema(o[1]); @@ -2284,7 +2246,7 @@ if (buildCounterSchemas < 3) { o.etag = "foo"; o.kind = "foo"; - o.schemas = buildUnnamed4591(); + o.schemas = buildUnnamed4936(); } buildCounterSchemas--; return o; @@ -2295,19 +2257,19 @@ if (buildCounterSchemas < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4591(o.schemas); + checkUnnamed4936(o.schemas); } buildCounterSchemas--; } -buildUnnamed4592() { +buildUnnamed4937() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4592(core.List<core.String> o) { +checkUnnamed4937(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2324,7 +2286,7 @@ o.etag = "foo"; o.kind = "foo"; o.nativeApp = true; - o.scopes = buildUnnamed4592(); + o.scopes = buildUnnamed4937(); o.userKey = "foo"; } buildCounterToken--; @@ -2340,20 +2302,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nativeApp, unittest.isTrue); - checkUnnamed4592(o.scopes); + checkUnnamed4937(o.scopes); unittest.expect(o.userKey, unittest.equals('foo')); } buildCounterToken--; } -buildUnnamed4593() { +buildUnnamed4938() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed4593(core.List<api.Token> o) { +checkUnnamed4938(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -2365,7 +2327,7 @@ buildCounterTokens++; if (buildCounterTokens < 3) { o.etag = "foo"; - o.items = buildUnnamed4593(); + o.items = buildUnnamed4938(); o.kind = "foo"; } buildCounterTokens--; @@ -2376,46 +2338,46 @@ buildCounterTokens++; if (buildCounterTokens < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4593(o.items); + checkUnnamed4938(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTokens--; } -buildUnnamed4594() { +buildUnnamed4939() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4594(core.List<core.String> o) { +checkUnnamed4939(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4595() { +buildUnnamed4940() { var o = new core.Map<core.String, api.UserCustomProperties>(); o["x"] = buildUserCustomProperties(); o["y"] = buildUserCustomProperties(); return o; } -checkUnnamed4595(core.Map<core.String, api.UserCustomProperties> o) { +checkUnnamed4940(core.Map<core.String, api.UserCustomProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkUserCustomProperties(o["x"]); checkUserCustomProperties(o["y"]); } -buildUnnamed4596() { +buildUnnamed4941() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4596(core.List<core.String> o) { +checkUnnamed4941(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2432,11 +2394,11 @@ 'string': 'foo' }; o.agreedToTerms = true; - o.aliases = buildUnnamed4594(); + o.aliases = buildUnnamed4939(); o.archived = true; o.changePasswordAtNextLogin = true; o.creationTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.customSchemas = buildUnnamed4595(); + o.customSchemas = buildUnnamed4940(); o.customerId = "foo"; o.deletionTime = core.DateTime.parse("2002-02-27T14:01:02"); o.emails = { @@ -2487,7 +2449,7 @@ 'string': 'foo' }; o.name = buildUserName(); - o.nonEditableAliases = buildUnnamed4596(); + o.nonEditableAliases = buildUnnamed4941(); o.notes = { 'list': [1, 2, 3], 'bool': true, @@ -2546,12 +2508,12 @@ unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); unittest.expect(o.agreedToTerms, unittest.isTrue); - checkUnnamed4594(o.aliases); + checkUnnamed4939(o.aliases); unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.changePasswordAtNextLogin, unittest.isTrue); unittest.expect(o.creationTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4595(o.customSchemas); + checkUnnamed4940(o.customSchemas); unittest.expect(o.customerId, unittest.equals('foo')); unittest.expect(o.deletionTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); @@ -2604,7 +2566,7 @@ unittest.expect(casted11["bool"], unittest.equals(true)); unittest.expect(casted11["string"], unittest.equals('foo')); checkUserName(o.name); - checkUnnamed4596(o.nonEditableAliases); + checkUnnamed4941(o.nonEditableAliases); var casted12 = (o.notes) as core.Map; unittest.expect(casted12, unittest.hasLength(3)); unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); @@ -3189,14 +3151,14 @@ buildCounterUserWebsite--; } -buildUnnamed4597() { +buildUnnamed4942() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed4597(core.List<api.User> o) { +checkUnnamed4942(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -3211,7 +3173,7 @@ o.kind = "foo"; o.nextPageToken = "foo"; o.triggerEvent = "foo"; - o.users = buildUnnamed4597(); + o.users = buildUnnamed4942(); } buildCounterUsers--; return o; @@ -3224,7 +3186,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.triggerEvent, unittest.equals('foo')); - checkUnnamed4597(o.users); + checkUnnamed4942(o.users); } buildCounterUsers--; } @@ -3254,14 +3216,14 @@ buildCounterVerificationCode--; } -buildUnnamed4598() { +buildUnnamed4943() { var o = new core.List<api.VerificationCode>(); o.add(buildVerificationCode()); o.add(buildVerificationCode()); return o; } -checkUnnamed4598(core.List<api.VerificationCode> o) { +checkUnnamed4943(core.List<api.VerificationCode> o) { unittest.expect(o, unittest.hasLength(2)); checkVerificationCode(o[0]); checkVerificationCode(o[1]); @@ -3273,7 +3235,7 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { o.etag = "foo"; - o.items = buildUnnamed4598(); + o.items = buildUnnamed4943(); o.kind = "foo"; } buildCounterVerificationCodes--; @@ -3284,64 +3246,12 @@ buildCounterVerificationCodes++; if (buildCounterVerificationCodes < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4598(o.items); + checkUnnamed4943(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterVerificationCodes--; } -buildUnnamed4599() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4599(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4600() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4600(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4601() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4601(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4602() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4602(core.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-Alias", () { unittest.test("to-json--from-json", () { @@ -3483,6 +3393,14 @@ }); }); + unittest.group("obj-schema-ChromeOsDeviceLastKnownNetwork", () { + unittest.test("to-json--from-json", () { + var o = buildChromeOsDeviceLastKnownNetwork(); + var od = new api.ChromeOsDeviceLastKnownNetwork.fromJson(o.toJson()); + checkChromeOsDeviceLastKnownNetwork(od); + }); + }); + unittest.group("obj-schema-ChromeOsDeviceRecentUsers", () { unittest.test("to-json--from-json", () { var o = buildChromeOsDeviceRecentUsers(); @@ -3691,22 +3609,6 @@ }); }); - unittest.group("obj-schema-Notification", () { - unittest.test("to-json--from-json", () { - var o = buildNotification(); - var od = new api.Notification.fromJson(o.toJson()); - checkNotification(od); - }); - }); - - unittest.group("obj-schema-Notifications", () { - unittest.test("to-json--from-json", () { - var o = buildNotifications(); - var od = new api.Notifications.fromJson(o.toJson()); - checkNotifications(od); - }); - }); - unittest.group("obj-schema-OrgUnit", () { unittest.test("to-json--from-json", () { var o = buildOrgUnit(); @@ -4034,12 +3936,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/asps/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4098,12 +3997,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/asps/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4163,12 +4059,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/asps", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4286,12 +4179,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4359,12 +4249,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4419,13 +4306,13 @@ api.ChromeosdevicesResourceApi res = new api.AdminApi(mock).chromeosdevices; var arg_customerId = "foo"; + var arg_sortOrder = "foo"; + var arg_pageToken = "foo"; + var arg_orgUnitPath = "foo"; + var arg_query = "foo"; var arg_maxResults = 42; var arg_orderBy = "foo"; - var arg_orgUnitPath = "foo"; - var arg_pageToken = "foo"; var arg_projection = "foo"; - var arg_query = "foo"; - var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4435,12 +4322,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4469,19 +4353,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orgUnitPath"].first, unittest.equals(arg_orgUnitPath)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( - queryMap["orgUnitPath"].first, unittest.equals(arg_orgUnitPath)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4492,13 +4376,13 @@ }), true); res .list(arg_customerId, + sortOrder: arg_sortOrder, + pageToken: arg_pageToken, + orgUnitPath: arg_orgUnitPath, + query: arg_query, maxResults: arg_maxResults, orderBy: arg_orderBy, - orgUnitPath: arg_orgUnitPath, - pageToken: arg_pageToken, projection: arg_projection, - query: arg_query, - sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChromeOsDevices(response); @@ -4524,12 +4408,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos/moveDevicesToOu", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4594,12 +4475,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4669,12 +4547,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/chromeos/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4739,12 +4614,9 @@ 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 + 10), - unittest.equals("customers/")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("admin/directory/v1/customers/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_customerKey")); @@ -4799,12 +4671,9 @@ 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 + 10), - unittest.equals("customers/")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("admin/directory/v1/customers/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_customerKey")); @@ -4859,12 +4728,9 @@ 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 + 10), - unittest.equals("customers/")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("admin/directory/v1/customers/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_customerKey")); @@ -4918,12 +4784,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domainaliases/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4982,12 +4845,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domainaliases/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5051,12 +4911,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domainaliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5114,12 +4971,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domainaliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5182,12 +5036,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domains/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5246,12 +5097,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domains/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5315,12 +5163,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domains", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5377,12 +5222,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/domains", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5441,12 +5283,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_groupKey")); @@ -5495,12 +5334,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_groupKey")); @@ -5554,12 +5390,9 @@ 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 + 6), - unittest.equals("groups")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/groups")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -5597,14 +5430,14 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.AdminApi(mock).groups; - var arg_customer = "foo"; + var arg_orderBy = "foo"; var arg_domain = "foo"; var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_query = "foo"; - var arg_sortOrder = "foo"; var arg_userKey = "foo"; + var arg_query = "foo"; + var arg_pageToken = "foo"; + var arg_customer = "foo"; + var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5614,12 +5447,9 @@ 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 + 6), - unittest.equals("groups")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/groups")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -5640,19 +5470,19 @@ } } unittest.expect( - queryMap["customer"].first, unittest.equals(arg_customer)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["domain"].first, unittest.equals(arg_domain)); 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)); + queryMap["userKey"].first, unittest.equals(arg_userKey)); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["userKey"].first, unittest.equals(arg_userKey)); + queryMap["customer"].first, unittest.equals(arg_customer)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5663,14 +5493,14 @@ }), true); res .list( - customer: arg_customer, + orderBy: arg_orderBy, domain: arg_domain, maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - query: arg_query, - sortOrder: arg_sortOrder, userKey: arg_userKey, + query: arg_query, + pageToken: arg_pageToken, + customer: arg_customer, + sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGroups(response); @@ -5694,12 +5524,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_groupKey")); @@ -5754,12 +5581,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_groupKey")); @@ -5813,12 +5637,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/aliases/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5880,12 +5701,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/aliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5942,12 +5760,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/aliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6007,12 +5822,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6071,12 +5883,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6137,12 +5946,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/hasMember/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6206,12 +6012,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6259,10 +6062,10 @@ var mock = new HttpServerMock(); api.MembersResourceApi res = new api.AdminApi(mock).members; var arg_groupKey = "foo"; - var arg_includeDerivedMembership = true; var arg_maxResults = 42; - var arg_pageToken = "foo"; + var arg_includeDerivedMembership = true; var arg_roles = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6272,12 +6075,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6306,13 +6106,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeDerivedMembership"].first, - unittest.equals("$arg_includeDerivedMembership")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["includeDerivedMembership"].first, + unittest.equals("$arg_includeDerivedMembership")); + unittest.expect(queryMap["roles"].first, unittest.equals(arg_roles)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["roles"].first, unittest.equals(arg_roles)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6323,10 +6123,10 @@ }), true); res .list(arg_groupKey, - includeDerivedMembership: arg_includeDerivedMembership, maxResults: arg_maxResults, - pageToken: arg_pageToken, + includeDerivedMembership: arg_includeDerivedMembership, roles: arg_roles, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMembers(response); @@ -6351,12 +6151,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6421,12 +6218,9 @@ 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 + 7), - unittest.equals("groups/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("admin/directory/v1/groups/")); + pathOffset += 26; index = path.indexOf("/members/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6494,12 +6288,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/mobile/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6565,12 +6356,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/mobile/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6630,12 +6418,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/mobile/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6689,12 +6474,12 @@ var mock = new HttpServerMock(); api.MobiledevicesResourceApi res = new api.AdminApi(mock).mobiledevices; var arg_customerId = "foo"; - var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_projection = "foo"; - var arg_query = "foo"; var arg_sortOrder = "foo"; + var arg_pageToken = "foo"; + var arg_query = "foo"; + var arg_maxResults = 42; + var arg_projection = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6704,12 +6489,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/devices/mobile", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6738,17 +6520,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); 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)); - unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6759,12 +6541,12 @@ }), true); res .list(arg_customerId, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - projection: arg_projection, - query: arg_query, sortOrder: arg_sortOrder, + pageToken: arg_pageToken, + query: arg_query, + maxResults: arg_maxResults, + projection: arg_projection, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMobileDevices(response); @@ -6772,361 +6554,12 @@ }); }); - unittest.group("resource-NotificationsResourceApi", () { - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; - var arg_customer = "foo"; - var arg_notificationId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("admin/directory/v1/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("customer/")); - pathOffset += 9; - index = path.indexOf("/notifications/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_customer")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("/notifications/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_notificationId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_customer, arg_notificationId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; - var arg_customer = "foo"; - var arg_notificationId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("admin/directory/v1/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("customer/")); - pathOffset += 9; - index = path.indexOf("/notifications/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_customer")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("/notifications/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_notificationId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNotification()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_customer, arg_notificationId, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNotification(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; - var arg_customer = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("admin/directory/v1/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("customer/")); - pathOffset += 9; - index = path.indexOf("/notifications", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_customer")); - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("/notifications")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNotifications()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_customer, - language: arg_language, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNotifications(response); - }))); - }); - - unittest.test("method--patch", () { - var mock = new HttpServerMock(); - api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; - var arg_request = buildNotification(); - var arg_customer = "foo"; - var arg_notificationId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Notification.fromJson(json); - checkNotification(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("/notifications/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_customer")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("/notifications/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_notificationId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNotification()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .patch(arg_request, arg_customer, arg_notificationId, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNotification(response); - }))); - }); - - unittest.test("method--update", () { - var mock = new HttpServerMock(); - api.NotificationsResourceApi res = new api.AdminApi(mock).notifications; - var arg_request = buildNotification(); - var arg_customer = "foo"; - var arg_notificationId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Notification.fromJson(json); - checkNotification(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("/notifications/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_customer")); - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("/notifications/")); - pathOffset += 15; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_notificationId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNotification()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .update(arg_request, arg_customer, arg_notificationId, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNotification(response); - }))); - }); - }); - unittest.group("resource-OrgunitsResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed4599(); + var arg_orgUnitPath = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7136,28 +6569,19 @@ 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("/orgunits", pathOffset); + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; + index = path.indexOf("/orgunits/", 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 + 9), - unittest.equals("/orgunits")); - pathOffset += 9; - var parts = path - .substring(pathOffset) - .split("/") - .map(core.Uri.decodeQueryComponent) - .where((p) => p.length > 0) - .toList(); - unittest.expect(parts, unittest.equals(arg_orgUnitPath)); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/orgunits/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; @@ -7194,7 +6618,7 @@ var mock = new HttpServerMock(); api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed4600(); + var arg_orgUnitPath = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7204,28 +6628,19 @@ 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("/orgunits", pathOffset); + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; + index = path.indexOf("/orgunits/", 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 + 9), - unittest.equals("/orgunits")); - pathOffset += 9; - var parts = path - .substring(pathOffset) - .split("/") - .map(core.Uri.decodeQueryComponent) - .where((p) => p.length > 0) - .toList(); - unittest.expect(parts, unittest.equals(arg_orgUnitPath)); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/orgunits/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; @@ -7277,12 +6692,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/orgunits", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7341,12 +6753,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/orgunits", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7401,7 +6810,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed4601(); + var arg_orgUnitPath = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); @@ -7414,28 +6823,19 @@ 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("/orgunits", pathOffset); + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; + index = path.indexOf("/orgunits/", 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 + 9), - unittest.equals("/orgunits")); - pathOffset += 9; - var parts = path - .substring(pathOffset) - .split("/") - .map(core.Uri.decodeQueryComponent) - .where((p) => p.length > 0) - .toList(); - unittest.expect(parts, unittest.equals(arg_orgUnitPath)); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/orgunits/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; @@ -7476,7 +6876,7 @@ api.OrgunitsResourceApi res = new api.AdminApi(mock).orgunits; var arg_request = buildOrgUnit(); var arg_customerId = "foo"; - var arg_orgUnitPath = buildUnnamed4602(); + var arg_orgUnitPath = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.OrgUnit.fromJson(json); @@ -7489,28 +6889,19 @@ 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("/orgunits", pathOffset); + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; + index = path.indexOf("/orgunits/", 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 + 9), - unittest.equals("/orgunits")); - pathOffset += 9; - var parts = path - .substring(pathOffset) - .split("/") - .map(core.Uri.decodeQueryComponent) - .where((p) => p.length > 0) - .toList(); - unittest.expect(parts, unittest.equals(arg_orgUnitPath)); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/orgunits/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; @@ -7561,12 +6952,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles/ALL/privileges", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7627,12 +7015,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7692,12 +7077,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7763,12 +7145,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7831,12 +7210,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7907,12 +7283,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7982,12 +7355,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/buildings/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8054,12 +7424,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8119,12 +7486,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8189,12 +7553,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8243,10 +7604,10 @@ api.ResourcesCalendarsResourceApi res = new api.AdminApi(mock).resources.calendars; var arg_customer = "foo"; - var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_query = "foo"; + var arg_orderBy = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8256,12 +7617,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8290,13 +7648,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); 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)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8307,10 +7665,10 @@ }), true); res .list(arg_customer, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, query: arg_query, + orderBy: arg_orderBy, + maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCalendarResources(response); @@ -8336,12 +7694,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8408,12 +7763,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/calendars/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8478,12 +7830,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8543,12 +7892,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8613,12 +7959,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8678,12 +8021,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8753,12 +8093,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8825,12 +8162,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8900,12 +8234,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/resources/features/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8970,12 +8301,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roleassignments/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9035,12 +8363,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roleassignments/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9105,12 +8430,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roleassignments", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9159,10 +8481,10 @@ api.RoleAssignmentsResourceApi res = new api.AdminApi(mock).roleAssignments; var arg_customer = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_roleId = "foo"; + var arg_maxResults = 42; var arg_userKey = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9172,12 +8494,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roleassignments", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9206,13 +8525,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["roleId"].first, unittest.equals(arg_roleId)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["roleId"].first, unittest.equals(arg_roleId)); - unittest.expect( queryMap["userKey"].first, unittest.equals(arg_userKey)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9223,10 +8542,10 @@ }), true); res .list(arg_customer, - maxResults: arg_maxResults, - pageToken: arg_pageToken, roleId: arg_roleId, + maxResults: arg_maxResults, userKey: arg_userKey, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRoleAssignments(response); @@ -9249,12 +8568,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9313,12 +8629,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9382,12 +8695,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9446,12 +8756,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9520,12 +8827,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9590,12 +8894,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/roles/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9658,12 +8959,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9722,12 +9020,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9791,12 +9086,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9853,12 +9145,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9920,12 +9209,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -9991,12 +9277,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("admin/directory/v1/customer/")); + pathOffset += 28; index = path.indexOf("/schemas/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10060,12 +9343,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/tokens/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10124,12 +9404,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/tokens/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10189,12 +9466,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/tokens", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10239,6 +9513,66 @@ }); }); + unittest.group("resource-TwoStepVerificationResourceApi", () { + unittest.test("method--turnOff", () { + var mock = new HttpServerMock(); + api.TwoStepVerificationResourceApi res = + new api.AdminApi(mock).twoStepVerification; + var arg_userKey = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; + index = path.indexOf("/twoStepVerification/turnOff", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userKey")); + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("/twoStepVerification/turnOff")); + pathOffset += 28; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .turnOff(arg_userKey, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + }); + unittest.group("resource-UsersResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -10253,12 +9587,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_userKey")); @@ -10298,9 +9629,9 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_userKey = "foo"; - var arg_customFieldMask = "foo"; - var arg_projection = "foo"; var arg_viewType = "foo"; + var arg_projection = "foo"; + var arg_customFieldMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10310,12 +9641,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_userKey")); @@ -10338,12 +9666,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["customFieldMask"].first, - unittest.equals(arg_customFieldMask)); - unittest.expect( - queryMap["projection"].first, unittest.equals(arg_projection)); unittest.expect( queryMap["viewType"].first, unittest.equals(arg_viewType)); + unittest.expect( + queryMap["projection"].first, unittest.equals(arg_projection)); + unittest.expect(queryMap["customFieldMask"].first, + unittest.equals(arg_customFieldMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10354,9 +9682,9 @@ }), true); res .get(arg_userKey, - customFieldMask: arg_customFieldMask, - projection: arg_projection, viewType: arg_viewType, + projection: arg_projection, + customFieldMask: arg_customFieldMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUser(response); @@ -10379,12 +9707,9 @@ 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 + 5), - unittest.equals("users")); - pathOffset += 5; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("admin/directory/v1/users")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10423,17 +9748,16 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_customFieldMask = "foo"; - var arg_customer = "foo"; - var arg_domain = "foo"; - var arg_event = "foo"; - var arg_maxResults = 42; var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_projection = "foo"; - var arg_query = "foo"; var arg_showDeleted = "foo"; - var arg_sortOrder = "foo"; var arg_viewType = "foo"; + var arg_maxResults = 42; + var arg_projection = "foo"; + var arg_domain = "foo"; + var arg_customer = "foo"; + var arg_sortOrder = "foo"; + var arg_query = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10443,12 +9767,9 @@ 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 + 5), - unittest.equals("users")); - pathOffset += 5; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("admin/directory/v1/users")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10471,24 +9792,23 @@ unittest.expect(queryMap["customFieldMask"].first, unittest.equals(arg_customFieldMask)); unittest.expect( - queryMap["customer"].first, unittest.equals(arg_customer)); - unittest.expect(queryMap["domain"].first, unittest.equals(arg_domain)); - unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); - 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)); - unittest.expect( - queryMap["projection"].first, unittest.equals(arg_projection)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect( queryMap["showDeleted"].first, unittest.equals(arg_showDeleted)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); - unittest.expect( queryMap["viewType"].first, unittest.equals(arg_viewType)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["projection"].first, unittest.equals(arg_projection)); + unittest.expect(queryMap["domain"].first, unittest.equals(arg_domain)); + unittest.expect( + queryMap["customer"].first, unittest.equals(arg_customer)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10500,17 +9820,16 @@ res .list( customFieldMask: arg_customFieldMask, - customer: arg_customer, - domain: arg_domain, - event: arg_event, - maxResults: arg_maxResults, orderBy: arg_orderBy, - pageToken: arg_pageToken, - projection: arg_projection, - query: arg_query, showDeleted: arg_showDeleted, - sortOrder: arg_sortOrder, viewType: arg_viewType, + maxResults: arg_maxResults, + projection: arg_projection, + domain: arg_domain, + customer: arg_customer, + sortOrder: arg_sortOrder, + query: arg_query, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUsers(response); @@ -10534,12 +9853,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/makeAdmin", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10598,12 +9914,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_userKey")); @@ -10641,6 +9954,63 @@ }))); }); + unittest.test("method--signOut", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.AdminApi(mock).users; + var arg_userKey = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; + index = path.indexOf("/signOut", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userKey")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/signOut")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .signOut(arg_userKey, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + unittest.test("method--undelete", () { var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; @@ -10658,12 +10028,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/undelete", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10722,12 +10089,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_userKey")); @@ -10769,18 +10133,18 @@ var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AdminApi(mock).users; var arg_request = buildChannel(); - var arg_customFieldMask = "foo"; - var arg_customer = "foo"; var arg_domain = "foo"; - var arg_event = "foo"; + var arg_viewType = "foo"; var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_projection = "foo"; var arg_query = "foo"; var arg_showDeleted = "foo"; + var arg_orderBy = "foo"; + var arg_event = "foo"; + var arg_pageToken = "foo"; + var arg_customer = "foo"; var arg_sortOrder = "foo"; - var arg_viewType = "foo"; + var arg_customFieldMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); @@ -10793,12 +10157,9 @@ 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 + 11), - unittest.equals("users/watch")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("admin/directory/v1/users/watch")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -10818,27 +10179,27 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["customFieldMask"].first, - unittest.equals(arg_customFieldMask)); - unittest.expect( - queryMap["customer"].first, unittest.equals(arg_customer)); unittest.expect(queryMap["domain"].first, unittest.equals(arg_domain)); - unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); + unittest.expect( + queryMap["viewType"].first, unittest.equals(arg_viewType)); 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)); - unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( queryMap["showDeleted"].first, unittest.equals(arg_showDeleted)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); unittest.expect( - queryMap["viewType"].first, unittest.equals(arg_viewType)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["customer"].first, unittest.equals(arg_customer)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["customFieldMask"].first, + unittest.equals(arg_customFieldMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10849,18 +10210,18 @@ }), true); res .watch(arg_request, - customFieldMask: arg_customFieldMask, - customer: arg_customer, domain: arg_domain, - event: arg_event, + viewType: arg_viewType, maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, projection: arg_projection, query: arg_query, showDeleted: arg_showDeleted, + orderBy: arg_orderBy, + event: arg_event, + pageToken: arg_pageToken, + customer: arg_customer, sortOrder: arg_sortOrder, - viewType: arg_viewType, + customFieldMask: arg_customFieldMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannel(response); @@ -10883,12 +10244,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/aliases/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -10950,12 +10308,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/aliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11003,7 +10358,6 @@ var mock = new HttpServerMock(); api.UsersAliasesResourceApi res = new api.AdminApi(mock).users.aliases; var arg_userKey = "foo"; - var arg_event = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11013,12 +10367,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/aliases", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11047,7 +10398,6 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["event"].first, unittest.equals(arg_event)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11057,7 +10407,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_userKey, event: arg_event, $fields: arg_$fields) + .list(arg_userKey, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAliases(response); }))); @@ -11081,12 +10431,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/aliases/watch", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11147,12 +10494,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/photos/thumbnail", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11207,12 +10551,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/photos/thumbnail", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11273,12 +10614,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/photos/thumbnail", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11339,12 +10677,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/photos/thumbnail", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11404,12 +10739,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/verificationCodes/generate", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11465,12 +10797,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/verificationCodes/invalidate", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -11526,12 +10855,9 @@ 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 + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("admin/directory/v1/users/")); + pathOffset += 25; index = path.indexOf("/verificationCodes", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart =
diff --git a/generated/googleapis/test/admin/reports_v1_test.dart b/generated/googleapis/test/admin/reports_v1_test.dart index 4d8f74e..87ca363 100644 --- a/generated/googleapis/test/admin/reports_v1_test.dart +++ b/generated/googleapis/test/admin/reports_v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3320() { +buildUnnamed3482() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed3320(core.List<api.Activity> o) { +checkUnnamed3482(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -69,7 +69,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { o.etag = "foo"; - o.items = buildUnnamed3320(); + o.items = buildUnnamed3482(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -81,7 +81,7 @@ buildCounterActivities++; if (buildCounterActivities < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3320(o.items); + checkUnnamed3482(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -113,14 +113,14 @@ buildCounterActivityActor--; } -buildUnnamed3321() { +buildUnnamed3483() { var o = new core.List<api.NestedParameter>(); o.add(buildNestedParameter()); o.add(buildNestedParameter()); return o; } -checkUnnamed3321(core.List<api.NestedParameter> o) { +checkUnnamed3483(core.List<api.NestedParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkNestedParameter(o[0]); checkNestedParameter(o[1]); @@ -131,7 +131,7 @@ var o = new api.ActivityEventsParametersMessageValue(); buildCounterActivityEventsParametersMessageValue++; if (buildCounterActivityEventsParametersMessageValue < 3) { - o.parameter = buildUnnamed3321(); + o.parameter = buildUnnamed3483(); } buildCounterActivityEventsParametersMessageValue--; return o; @@ -141,32 +141,32 @@ api.ActivityEventsParametersMessageValue o) { buildCounterActivityEventsParametersMessageValue++; if (buildCounterActivityEventsParametersMessageValue < 3) { - checkUnnamed3321(o.parameter); + checkUnnamed3483(o.parameter); } buildCounterActivityEventsParametersMessageValue--; } -buildUnnamed3322() { +buildUnnamed3484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3322(core.List<core.String> o) { +checkUnnamed3484(core.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() { +buildUnnamed3485() { var o = new core.List<api.NestedParameter>(); o.add(buildNestedParameter()); o.add(buildNestedParameter()); return o; } -checkUnnamed3323(core.List<api.NestedParameter> o) { +checkUnnamed3485(core.List<api.NestedParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkNestedParameter(o[0]); checkNestedParameter(o[1]); @@ -177,7 +177,7 @@ var o = new api.ActivityEventsParametersMultiMessageValue(); buildCounterActivityEventsParametersMultiMessageValue++; if (buildCounterActivityEventsParametersMultiMessageValue < 3) { - o.parameter = buildUnnamed3323(); + o.parameter = buildUnnamed3485(); } buildCounterActivityEventsParametersMultiMessageValue--; return o; @@ -187,32 +187,32 @@ api.ActivityEventsParametersMultiMessageValue o) { buildCounterActivityEventsParametersMultiMessageValue++; if (buildCounterActivityEventsParametersMultiMessageValue < 3) { - checkUnnamed3323(o.parameter); + checkUnnamed3485(o.parameter); } buildCounterActivityEventsParametersMultiMessageValue--; } -buildUnnamed3324() { +buildUnnamed3486() { var o = new core.List<api.ActivityEventsParametersMultiMessageValue>(); o.add(buildActivityEventsParametersMultiMessageValue()); o.add(buildActivityEventsParametersMultiMessageValue()); return o; } -checkUnnamed3324(core.List<api.ActivityEventsParametersMultiMessageValue> o) { +checkUnnamed3486(core.List<api.ActivityEventsParametersMultiMessageValue> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParametersMultiMessageValue(o[0]); checkActivityEventsParametersMultiMessageValue(o[1]); } -buildUnnamed3325() { +buildUnnamed3487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3325(core.List<core.String> o) { +checkUnnamed3487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -226,9 +226,9 @@ o.boolValue = true; o.intValue = "foo"; o.messageValue = buildActivityEventsParametersMessageValue(); - o.multiIntValue = buildUnnamed3322(); - o.multiMessageValue = buildUnnamed3324(); - o.multiValue = buildUnnamed3325(); + o.multiIntValue = buildUnnamed3484(); + o.multiMessageValue = buildUnnamed3486(); + o.multiValue = buildUnnamed3487(); o.name = "foo"; o.value = "foo"; } @@ -242,23 +242,23 @@ unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); checkActivityEventsParametersMessageValue(o.messageValue); - checkUnnamed3322(o.multiIntValue); - checkUnnamed3324(o.multiMessageValue); - checkUnnamed3325(o.multiValue); + checkUnnamed3484(o.multiIntValue); + checkUnnamed3486(o.multiMessageValue); + checkUnnamed3487(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } buildCounterActivityEventsParameters--; } -buildUnnamed3326() { +buildUnnamed3488() { var o = new core.List<api.ActivityEventsParameters>(); o.add(buildActivityEventsParameters()); o.add(buildActivityEventsParameters()); return o; } -checkUnnamed3326(core.List<api.ActivityEventsParameters> o) { +checkUnnamed3488(core.List<api.ActivityEventsParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEventsParameters(o[0]); checkActivityEventsParameters(o[1]); @@ -270,7 +270,7 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { o.name = "foo"; - o.parameters = buildUnnamed3326(); + o.parameters = buildUnnamed3488(); o.type = "foo"; } buildCounterActivityEvents--; @@ -281,20 +281,20 @@ buildCounterActivityEvents++; if (buildCounterActivityEvents < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3326(o.parameters); + checkUnnamed3488(o.parameters); unittest.expect(o.type, unittest.equals('foo')); } buildCounterActivityEvents--; } -buildUnnamed3327() { +buildUnnamed3489() { var o = new core.List<api.ActivityEvents>(); o.add(buildActivityEvents()); o.add(buildActivityEvents()); return o; } -checkUnnamed3327(core.List<api.ActivityEvents> o) { +checkUnnamed3489(core.List<api.ActivityEvents> o) { unittest.expect(o, unittest.hasLength(2)); checkActivityEvents(o[0]); checkActivityEvents(o[1]); @@ -333,7 +333,7 @@ if (buildCounterActivity < 3) { o.actor = buildActivityActor(); o.etag = "foo"; - o.events = buildUnnamed3327(); + o.events = buildUnnamed3489(); o.id = buildActivityId(); o.ipAddress = "foo"; o.kind = "foo"; @@ -348,7 +348,7 @@ if (buildCounterActivity < 3) { checkActivityActor(o.actor); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3327(o.events); + checkUnnamed3489(o.events); checkActivityId(o.id); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -357,14 +357,14 @@ buildCounterActivity--; } -buildUnnamed3328() { +buildUnnamed3490() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3328(core.Map<core.String, core.String> o) { +checkUnnamed3490(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')); @@ -379,7 +379,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed3328(); + o.params = buildUnnamed3490(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -397,7 +397,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3328(o.params); + checkUnnamed3490(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -407,40 +407,40 @@ buildCounterChannel--; } -buildUnnamed3329() { +buildUnnamed3491() { var o = new core.List<core.bool>(); o.add(true); o.add(true); return o; } -checkUnnamed3329(core.List<core.bool> o) { +checkUnnamed3491(core.List<core.bool> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.isTrue); unittest.expect(o[1], unittest.isTrue); } -buildUnnamed3330() { +buildUnnamed3492() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3330(core.List<core.String> o) { +checkUnnamed3492(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3331() { +buildUnnamed3493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3331(core.List<core.String> o) { +checkUnnamed3493(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -453,9 +453,9 @@ if (buildCounterNestedParameter < 3) { o.boolValue = true; o.intValue = "foo"; - o.multiBoolValue = buildUnnamed3329(); - o.multiIntValue = buildUnnamed3330(); - o.multiValue = buildUnnamed3331(); + o.multiBoolValue = buildUnnamed3491(); + o.multiIntValue = buildUnnamed3492(); + o.multiValue = buildUnnamed3493(); o.name = "foo"; o.value = "foo"; } @@ -468,9 +468,9 @@ if (buildCounterNestedParameter < 3) { unittest.expect(o.boolValue, unittest.isTrue); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed3329(o.multiBoolValue); - checkUnnamed3330(o.multiIntValue); - checkUnnamed3331(o.multiValue); + checkUnnamed3491(o.multiBoolValue); + checkUnnamed3492(o.multiIntValue); + checkUnnamed3493(o.multiValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -504,7 +504,7 @@ buildCounterUsageReportEntity--; } -buildUnnamed3332() { +buildUnnamed3494() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -519,7 +519,7 @@ return o; } -checkUnnamed3332(core.Map<core.String, core.Object> o) { +checkUnnamed3494(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)); @@ -533,17 +533,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3333() { +buildUnnamed3495() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3332()); - o.add(buildUnnamed3332()); + o.add(buildUnnamed3494()); + o.add(buildUnnamed3494()); return o; } -checkUnnamed3333(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3495(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3332(o[0]); - checkUnnamed3332(o[1]); + checkUnnamed3494(o[0]); + checkUnnamed3494(o[1]); } core.int buildCounterUsageReportParameters = 0; @@ -554,7 +554,7 @@ o.boolValue = true; o.datetimeValue = core.DateTime.parse("2002-02-27T14:01:02"); o.intValue = "foo"; - o.msgValue = buildUnnamed3333(); + o.msgValue = buildUnnamed3495(); o.name = "foo"; o.stringValue = "foo"; } @@ -569,21 +569,21 @@ unittest.expect(o.datetimeValue, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.intValue, unittest.equals('foo')); - checkUnnamed3333(o.msgValue); + checkUnnamed3495(o.msgValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); } buildCounterUsageReportParameters--; } -buildUnnamed3334() { +buildUnnamed3496() { var o = new core.List<api.UsageReportParameters>(); o.add(buildUsageReportParameters()); o.add(buildUsageReportParameters()); return o; } -checkUnnamed3334(core.List<api.UsageReportParameters> o) { +checkUnnamed3496(core.List<api.UsageReportParameters> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportParameters(o[0]); checkUsageReportParameters(o[1]); @@ -598,7 +598,7 @@ o.entity = buildUsageReportEntity(); o.etag = "foo"; o.kind = "foo"; - o.parameters = buildUnnamed3334(); + o.parameters = buildUnnamed3496(); } buildCounterUsageReport--; return o; @@ -611,19 +611,19 @@ checkUsageReportEntity(o.entity); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3334(o.parameters); + checkUnnamed3496(o.parameters); } buildCounterUsageReport--; } -buildUnnamed3335() { +buildUnnamed3497() { var o = new core.List<api.UsageReport>(); o.add(buildUsageReport()); o.add(buildUsageReport()); return o; } -checkUnnamed3335(core.List<api.UsageReport> o) { +checkUnnamed3497(core.List<api.UsageReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReport(o[0]); checkUsageReport(o[1]); @@ -650,14 +650,14 @@ buildCounterUsageReportsWarningsData--; } -buildUnnamed3336() { +buildUnnamed3498() { var o = new core.List<api.UsageReportsWarningsData>(); o.add(buildUsageReportsWarningsData()); o.add(buildUsageReportsWarningsData()); return o; } -checkUnnamed3336(core.List<api.UsageReportsWarningsData> o) { +checkUnnamed3498(core.List<api.UsageReportsWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarningsData(o[0]); checkUsageReportsWarningsData(o[1]); @@ -669,7 +669,7 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed3336(); + o.data = buildUnnamed3498(); o.message = "foo"; } buildCounterUsageReportsWarnings--; @@ -680,20 +680,20 @@ buildCounterUsageReportsWarnings++; if (buildCounterUsageReportsWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed3336(o.data); + checkUnnamed3498(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsageReportsWarnings--; } -buildUnnamed3337() { +buildUnnamed3499() { var o = new core.List<api.UsageReportsWarnings>(); o.add(buildUsageReportsWarnings()); o.add(buildUsageReportsWarnings()); return o; } -checkUnnamed3337(core.List<api.UsageReportsWarnings> o) { +checkUnnamed3499(core.List<api.UsageReportsWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageReportsWarnings(o[0]); checkUsageReportsWarnings(o[1]); @@ -707,8 +707,8 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.usageReports = buildUnnamed3335(); - o.warnings = buildUnnamed3337(); + o.usageReports = buildUnnamed3497(); + o.warnings = buildUnnamed3499(); } buildCounterUsageReports--; return o; @@ -720,8 +720,8 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3335(o.usageReports); - checkUnnamed3337(o.warnings); + checkUnnamed3497(o.usageReports); + checkUnnamed3499(o.warnings); } buildCounterUsageReports--; } @@ -863,15 +863,15 @@ api.ActivitiesResourceApi res = new api.AdminApi(mock).activities; var arg_userKey = "foo"; var arg_applicationName = "foo"; - var arg_actorIpAddress = "foo"; var arg_customerId = "foo"; - var arg_endTime = "foo"; + var arg_actorIpAddress = "foo"; var arg_eventName = "foo"; - var arg_filters = "foo"; - var arg_maxResults = 42; - var arg_orgUnitID = "foo"; var arg_pageToken = "foo"; var arg_startTime = "foo"; + var arg_maxResults = 42; + var arg_filters = "foo"; + var arg_orgUnitID = "foo"; + var arg_endTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -881,12 +881,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("admin/reports/v1/")); - pathOffset += 17; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("activity/users/")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("admin/reports/v1/activity/users/")); + pathOffset += 32; index = path.indexOf("/applications/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -918,24 +915,24 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(queryMap["actorIpAddress"].first, unittest.equals(arg_actorIpAddress)); unittest.expect( - queryMap["customerId"].first, unittest.equals(arg_customerId)); - unittest.expect( - queryMap["endTime"].first, unittest.equals(arg_endTime)); - unittest.expect( queryMap["eventName"].first, unittest.equals(arg_eventName)); unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["orgUnitID"].first, unittest.equals(arg_orgUnitID)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["filters"].first, unittest.equals(arg_filters)); + unittest.expect( + queryMap["orgUnitID"].first, unittest.equals(arg_orgUnitID)); + unittest.expect( + queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -946,15 +943,15 @@ }), true); res .list(arg_userKey, arg_applicationName, - actorIpAddress: arg_actorIpAddress, customerId: arg_customerId, - endTime: arg_endTime, + actorIpAddress: arg_actorIpAddress, eventName: arg_eventName, - filters: arg_filters, - maxResults: arg_maxResults, - orgUnitID: arg_orgUnitID, pageToken: arg_pageToken, startTime: arg_startTime, + maxResults: arg_maxResults, + filters: arg_filters, + orgUnitID: arg_orgUnitID, + endTime: arg_endTime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkActivities(response); @@ -967,15 +964,15 @@ var arg_request = buildChannel(); var arg_userKey = "foo"; var arg_applicationName = "foo"; - var arg_actorIpAddress = "foo"; + var arg_maxResults = 42; var arg_customerId = "foo"; - var arg_endTime = "foo"; + var arg_startTime = "foo"; var arg_eventName = "foo"; var arg_filters = "foo"; - var arg_maxResults = 42; + var arg_actorIpAddress = "foo"; var arg_orgUnitID = "foo"; var arg_pageToken = "foo"; - var arg_startTime = "foo"; + var arg_endTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); @@ -988,12 +985,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("admin/reports/v1/")); - pathOffset += 17; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("activity/users/")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("admin/reports/v1/activity/users/")); + pathOffset += 32; index = path.indexOf("/applications/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1031,24 +1025,24 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["actorIpAddress"].first, - unittest.equals(arg_actorIpAddress)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect( - queryMap["endTime"].first, unittest.equals(arg_endTime)); + queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect( queryMap["eventName"].first, unittest.equals(arg_eventName)); unittest.expect( queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["actorIpAddress"].first, + unittest.equals(arg_actorIpAddress)); unittest.expect( queryMap["orgUnitID"].first, unittest.equals(arg_orgUnitID)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["startTime"].first, unittest.equals(arg_startTime)); + queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1059,15 +1053,15 @@ }), true); res .watch(arg_request, arg_userKey, arg_applicationName, - actorIpAddress: arg_actorIpAddress, + maxResults: arg_maxResults, customerId: arg_customerId, - endTime: arg_endTime, + startTime: arg_startTime, eventName: arg_eventName, filters: arg_filters, - maxResults: arg_maxResults, + actorIpAddress: arg_actorIpAddress, orgUnitID: arg_orgUnitID, pageToken: arg_pageToken, - startTime: arg_startTime, + endTime: arg_endTime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannel(response); @@ -1134,9 +1128,9 @@ api.CustomerUsageReportsResourceApi res = new api.AdminApi(mock).customerUsageReports; var arg_date = "foo"; - var arg_customerId = "foo"; - var arg_pageToken = "foo"; var arg_parameters = "foo"; + var arg_pageToken = "foo"; + var arg_customerId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1146,12 +1140,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("admin/reports/v1/")); - pathOffset += 17; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("usage/dates/")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("admin/reports/v1/usage/dates/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_date")); @@ -1175,11 +1166,11 @@ } } unittest.expect( - queryMap["customerId"].first, unittest.equals(arg_customerId)); + queryMap["parameters"].first, unittest.equals(arg_parameters)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["parameters"].first, unittest.equals(arg_parameters)); + queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1190,9 +1181,9 @@ }), true); res .get(arg_date, - customerId: arg_customerId, - pageToken: arg_pageToken, parameters: arg_parameters, + pageToken: arg_pageToken, + customerId: arg_customerId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUsageReports(response); @@ -1209,9 +1200,9 @@ var arg_entityKey = "foo"; var arg_date = "foo"; var arg_customerId = "foo"; - var arg_filters = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_filters = "foo"; var arg_parameters = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1222,12 +1213,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("admin/reports/v1/")); - pathOffset += 17; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("usage/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 23), + unittest.equals("admin/reports/v1/usage/")); + pathOffset += 23; index = path.indexOf("/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1271,11 +1259,11 @@ unittest.expect( queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["filters"].first, unittest.equals(arg_filters)); unittest.expect( queryMap["parameters"].first, unittest.equals(arg_parameters)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1289,9 +1277,9 @@ res .get(arg_entityType, arg_entityKey, arg_date, customerId: arg_customerId, - filters: arg_filters, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, + filters: arg_filters, parameters: arg_parameters, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1307,12 +1295,12 @@ new api.AdminApi(mock).userUsageReport; var arg_userKey = "foo"; var arg_date = "foo"; - var arg_customerId = "foo"; - var arg_filters = "foo"; - var arg_maxResults = 42; var arg_orgUnitID = "foo"; - var arg_pageToken = "foo"; + var arg_customerId = "foo"; var arg_parameters = "foo"; + var arg_filters = "foo"; + var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1322,12 +1310,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("admin/reports/v1/")); - pathOffset += 17; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("usage/users/")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("admin/reports/v1/usage/users/")); + pathOffset += 29; index = path.indexOf("/dates/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1360,17 +1345,17 @@ } } unittest.expect( - queryMap["customerId"].first, unittest.equals(arg_customerId)); - unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( queryMap["orgUnitID"].first, unittest.equals(arg_orgUnitID)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect( queryMap["parameters"].first, unittest.equals(arg_parameters)); + unittest.expect( + queryMap["filters"].first, unittest.equals(arg_filters)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1381,12 +1366,12 @@ }), true); res .get(arg_userKey, arg_date, - customerId: arg_customerId, - filters: arg_filters, - maxResults: arg_maxResults, orgUnitID: arg_orgUnitID, - pageToken: arg_pageToken, + customerId: arg_customerId, parameters: arg_parameters, + filters: arg_filters, + pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUsageReports(response);
diff --git a/generated/googleapis/test/admob/v1_test.dart b/generated/googleapis/test/admob/v1_test.dart index f15fda4..e9ff801 100644 --- a/generated/googleapis/test/admob/v1_test.dart +++ b/generated/googleapis/test/admob/v1_test.dart
@@ -178,14 +178,14 @@ buildCounterGenerateNetworkReportResponse--; } -buildUnnamed69() { +buildUnnamed50() { var o = new core.List<api.PublisherAccount>(); o.add(buildPublisherAccount()); o.add(buildPublisherAccount()); return o; } -checkUnnamed69(core.List<api.PublisherAccount> o) { +checkUnnamed50(core.List<api.PublisherAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherAccount(o[0]); checkPublisherAccount(o[1]); @@ -196,7 +196,7 @@ var o = new api.ListPublisherAccountsResponse(); buildCounterListPublisherAccountsResponse++; if (buildCounterListPublisherAccountsResponse < 3) { - o.account = buildUnnamed69(); + o.account = buildUnnamed50(); o.nextPageToken = "foo"; } buildCounterListPublisherAccountsResponse--; @@ -206,7 +206,7 @@ checkListPublisherAccountsResponse(api.ListPublisherAccountsResponse o) { buildCounterListPublisherAccountsResponse++; if (buildCounterListPublisherAccountsResponse < 3) { - checkUnnamed69(o.account); + checkUnnamed50(o.account); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListPublisherAccountsResponse--; @@ -233,53 +233,53 @@ buildCounterLocalizationSettings--; } -buildUnnamed70() { +buildUnnamed51() { var o = new core.List<api.MediationReportSpecDimensionFilter>(); o.add(buildMediationReportSpecDimensionFilter()); o.add(buildMediationReportSpecDimensionFilter()); return o; } -checkUnnamed70(core.List<api.MediationReportSpecDimensionFilter> o) { +checkUnnamed51(core.List<api.MediationReportSpecDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMediationReportSpecDimensionFilter(o[0]); checkMediationReportSpecDimensionFilter(o[1]); } -buildUnnamed71() { +buildUnnamed52() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed71(core.List<core.String> o) { +checkUnnamed52(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed72() { +buildUnnamed53() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed72(core.List<core.String> o) { +checkUnnamed53(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed73() { +buildUnnamed54() { var o = new core.List<api.MediationReportSpecSortCondition>(); o.add(buildMediationReportSpecSortCondition()); o.add(buildMediationReportSpecSortCondition()); return o; } -checkUnnamed73(core.List<api.MediationReportSpecSortCondition> o) { +checkUnnamed54(core.List<api.MediationReportSpecSortCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkMediationReportSpecSortCondition(o[0]); checkMediationReportSpecSortCondition(o[1]); @@ -291,12 +291,12 @@ buildCounterMediationReportSpec++; if (buildCounterMediationReportSpec < 3) { o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed70(); - o.dimensions = buildUnnamed71(); + o.dimensionFilters = buildUnnamed51(); + o.dimensions = buildUnnamed52(); o.localizationSettings = buildLocalizationSettings(); o.maxReportRows = 42; - o.metrics = buildUnnamed72(); - o.sortConditions = buildUnnamed73(); + o.metrics = buildUnnamed53(); + o.sortConditions = buildUnnamed54(); o.timeZone = "foo"; } buildCounterMediationReportSpec--; @@ -307,12 +307,12 @@ buildCounterMediationReportSpec++; if (buildCounterMediationReportSpec < 3) { checkDateRange(o.dateRange); - checkUnnamed70(o.dimensionFilters); - checkUnnamed71(o.dimensions); + checkUnnamed51(o.dimensionFilters); + checkUnnamed52(o.dimensions); checkLocalizationSettings(o.localizationSettings); unittest.expect(o.maxReportRows, unittest.equals(42)); - checkUnnamed72(o.metrics); - checkUnnamed73(o.sortConditions); + checkUnnamed53(o.metrics); + checkUnnamed54(o.sortConditions); unittest.expect(o.timeZone, unittest.equals('foo')); } buildCounterMediationReportSpec--; @@ -363,53 +363,53 @@ buildCounterMediationReportSpecSortCondition--; } -buildUnnamed74() { +buildUnnamed55() { var o = new core.List<api.NetworkReportSpecDimensionFilter>(); o.add(buildNetworkReportSpecDimensionFilter()); o.add(buildNetworkReportSpecDimensionFilter()); return o; } -checkUnnamed74(core.List<api.NetworkReportSpecDimensionFilter> o) { +checkUnnamed55(core.List<api.NetworkReportSpecDimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkReportSpecDimensionFilter(o[0]); checkNetworkReportSpecDimensionFilter(o[1]); } -buildUnnamed75() { +buildUnnamed56() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed75(core.List<core.String> o) { +checkUnnamed56(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed76() { +buildUnnamed57() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed76(core.List<core.String> o) { +checkUnnamed57(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed77() { +buildUnnamed58() { var o = new core.List<api.NetworkReportSpecSortCondition>(); o.add(buildNetworkReportSpecSortCondition()); o.add(buildNetworkReportSpecSortCondition()); return o; } -checkUnnamed77(core.List<api.NetworkReportSpecSortCondition> o) { +checkUnnamed58(core.List<api.NetworkReportSpecSortCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkReportSpecSortCondition(o[0]); checkNetworkReportSpecSortCondition(o[1]); @@ -421,12 +421,12 @@ buildCounterNetworkReportSpec++; if (buildCounterNetworkReportSpec < 3) { o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed74(); - o.dimensions = buildUnnamed75(); + o.dimensionFilters = buildUnnamed55(); + o.dimensions = buildUnnamed56(); o.localizationSettings = buildLocalizationSettings(); o.maxReportRows = 42; - o.metrics = buildUnnamed76(); - o.sortConditions = buildUnnamed77(); + o.metrics = buildUnnamed57(); + o.sortConditions = buildUnnamed58(); o.timeZone = "foo"; } buildCounterNetworkReportSpec--; @@ -437,12 +437,12 @@ buildCounterNetworkReportSpec++; if (buildCounterNetworkReportSpec < 3) { checkDateRange(o.dateRange); - checkUnnamed74(o.dimensionFilters); - checkUnnamed75(o.dimensions); + checkUnnamed55(o.dimensionFilters); + checkUnnamed56(o.dimensions); checkLocalizationSettings(o.localizationSettings); unittest.expect(o.maxReportRows, unittest.equals(42)); - checkUnnamed76(o.metrics); - checkUnnamed77(o.sortConditions); + checkUnnamed57(o.metrics); + checkUnnamed58(o.sortConditions); unittest.expect(o.timeZone, unittest.equals('foo')); } buildCounterNetworkReportSpec--; @@ -517,14 +517,14 @@ buildCounterPublisherAccount--; } -buildUnnamed78() { +buildUnnamed59() { var o = new core.List<api.ReportWarning>(); o.add(buildReportWarning()); o.add(buildReportWarning()); return o; } -checkUnnamed78(core.List<api.ReportWarning> o) { +checkUnnamed59(core.List<api.ReportWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkReportWarning(o[0]); checkReportWarning(o[1]); @@ -536,7 +536,7 @@ buildCounterReportFooter++; if (buildCounterReportFooter < 3) { o.matchingRowCount = "foo"; - o.warnings = buildUnnamed78(); + o.warnings = buildUnnamed59(); } buildCounterReportFooter--; return o; @@ -546,7 +546,7 @@ buildCounterReportFooter++; if (buildCounterReportFooter < 3) { unittest.expect(o.matchingRowCount, unittest.equals('foo')); - checkUnnamed78(o.warnings); + checkUnnamed59(o.warnings); } buildCounterReportFooter--; } @@ -574,27 +574,27 @@ buildCounterReportHeader--; } -buildUnnamed79() { +buildUnnamed60() { var o = new core.Map<core.String, api.ReportRowDimensionValue>(); o["x"] = buildReportRowDimensionValue(); o["y"] = buildReportRowDimensionValue(); return o; } -checkUnnamed79(core.Map<core.String, api.ReportRowDimensionValue> o) { +checkUnnamed60(core.Map<core.String, api.ReportRowDimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRowDimensionValue(o["x"]); checkReportRowDimensionValue(o["y"]); } -buildUnnamed80() { +buildUnnamed61() { var o = new core.Map<core.String, api.ReportRowMetricValue>(); o["x"] = buildReportRowMetricValue(); o["y"] = buildReportRowMetricValue(); return o; } -checkUnnamed80(core.Map<core.String, api.ReportRowMetricValue> o) { +checkUnnamed61(core.Map<core.String, api.ReportRowMetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRowMetricValue(o["x"]); checkReportRowMetricValue(o["y"]); @@ -605,8 +605,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensionValues = buildUnnamed79(); - o.metricValues = buildUnnamed80(); + o.dimensionValues = buildUnnamed60(); + o.metricValues = buildUnnamed61(); } buildCounterReportRow--; return o; @@ -615,8 +615,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed79(o.dimensionValues); - checkUnnamed80(o.metricValues); + checkUnnamed60(o.dimensionValues); + checkUnnamed61(o.metricValues); } buildCounterReportRow--; } @@ -686,14 +686,14 @@ buildCounterReportWarning--; } -buildUnnamed81() { +buildUnnamed62() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed81(core.List<core.String> o) { +checkUnnamed62(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -704,7 +704,7 @@ var o = new api.StringList(); buildCounterStringList++; if (buildCounterStringList < 3) { - o.values = buildUnnamed81(); + o.values = buildUnnamed62(); } buildCounterStringList--; return o; @@ -713,7 +713,7 @@ checkStringList(api.StringList o) { buildCounterStringList++; if (buildCounterStringList < 3) { - checkUnnamed81(o.values); + checkUnnamed62(o.values); } buildCounterStringList--; } @@ -950,8 +950,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.AdmobApi(mock).accounts; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -983,10 +983,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -997,8 +997,8 @@ }), true); res .list( - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListPublisherAccountsResponse(response);
diff --git a/generated/googleapis/test/adsense/v1_4_test.dart b/generated/googleapis/test/adsense/v1_4_test.dart index 0dd9aa9..9932cde 100644 --- a/generated/googleapis/test/adsense/v1_4_test.dart +++ b/generated/googleapis/test/adsense/v1_4_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2963() { +buildUnnamed3094() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2963(core.List<api.Account> o) { +checkUnnamed3094(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -73,7 +73,7 @@ o.kind = "foo"; o.name = "foo"; o.premium = true; - o.subAccounts = buildUnnamed2963(); + o.subAccounts = buildUnnamed3094(); o.timezone = "foo"; } buildCounterAccount--; @@ -88,20 +88,20 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.premium, unittest.isTrue); - checkUnnamed2963(o.subAccounts); + checkUnnamed3094(o.subAccounts); unittest.expect(o.timezone, unittest.equals('foo')); } buildCounterAccount--; } -buildUnnamed2964() { +buildUnnamed3095() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed2964(core.List<api.Account> o) { +checkUnnamed3095(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -113,7 +113,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed2964(); + o.items = buildUnnamed3095(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -125,7 +125,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2964(o.items); + checkUnnamed3095(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -159,14 +159,14 @@ buildCounterAdClient--; } -buildUnnamed2965() { +buildUnnamed3096() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed2965(core.List<api.AdClient> o) { +checkUnnamed3096(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -178,7 +178,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed2965(); + o.items = buildUnnamed3096(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -190,7 +190,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2965(o.items); + checkUnnamed3096(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -429,14 +429,14 @@ buildCounterAdUnit--; } -buildUnnamed2966() { +buildUnnamed3097() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed2966(core.List<api.AdUnit> o) { +checkUnnamed3097(core.List<api.AdUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkAdUnit(o[0]); checkAdUnit(o[1]); @@ -448,7 +448,7 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { o.etag = "foo"; - o.items = buildUnnamed2966(); + o.items = buildUnnamed3097(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -460,21 +460,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2966(o.items); + checkUnnamed3097(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed2967() { +buildUnnamed3098() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2967(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')); @@ -504,66 +504,66 @@ buildCounterAdsenseReportsGenerateResponseHeaders--; } -buildUnnamed2968() { +buildUnnamed3099() { var o = new core.List<api.AdsenseReportsGenerateResponseHeaders>(); o.add(buildAdsenseReportsGenerateResponseHeaders()); o.add(buildAdsenseReportsGenerateResponseHeaders()); return o; } -checkUnnamed2968(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { +checkUnnamed3099(core.List<api.AdsenseReportsGenerateResponseHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkAdsenseReportsGenerateResponseHeaders(o[0]); checkAdsenseReportsGenerateResponseHeaders(o[1]); } -buildUnnamed2969() { +buildUnnamed3100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2969(core.List<core.String> o) { +checkUnnamed3100(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2970() { +buildUnnamed3101() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed2969()); - o.add(buildUnnamed2969()); + o.add(buildUnnamed3100()); + o.add(buildUnnamed3100()); return o; } -checkUnnamed2970(core.List<core.List<core.String>> o) { +checkUnnamed3101(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2969(o[0]); - checkUnnamed2969(o[1]); + checkUnnamed3100(o[0]); + checkUnnamed3100(o[1]); } -buildUnnamed2971() { +buildUnnamed3102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2971(core.List<core.String> o) { +checkUnnamed3102(core.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() { +buildUnnamed3103() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2972(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')); @@ -574,15 +574,15 @@ var o = new api.AdsenseReportsGenerateResponse(); buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - o.averages = buildUnnamed2967(); + o.averages = buildUnnamed3098(); o.endDate = "foo"; - o.headers = buildUnnamed2968(); + o.headers = buildUnnamed3099(); o.kind = "foo"; - o.rows = buildUnnamed2970(); + o.rows = buildUnnamed3101(); o.startDate = "foo"; o.totalMatchedRows = "foo"; - o.totals = buildUnnamed2971(); - o.warnings = buildUnnamed2972(); + o.totals = buildUnnamed3102(); + o.warnings = buildUnnamed3103(); } buildCounterAdsenseReportsGenerateResponse--; return o; @@ -591,15 +591,15 @@ checkAdsenseReportsGenerateResponse(api.AdsenseReportsGenerateResponse o) { buildCounterAdsenseReportsGenerateResponse++; if (buildCounterAdsenseReportsGenerateResponse < 3) { - checkUnnamed2967(o.averages); + checkUnnamed3098(o.averages); unittest.expect(o.endDate, unittest.equals('foo')); - checkUnnamed2968(o.headers); + checkUnnamed3099(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2970(o.rows); + checkUnnamed3101(o.rows); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed2971(o.totals); - checkUnnamed2972(o.warnings); + checkUnnamed3102(o.totals); + checkUnnamed3103(o.warnings); } buildCounterAdsenseReportsGenerateResponse--; } @@ -633,14 +633,14 @@ buildCounterAlert--; } -buildUnnamed2973() { +buildUnnamed3104() { var o = new core.List<api.Alert>(); o.add(buildAlert()); o.add(buildAlert()); return o; } -checkUnnamed2973(core.List<api.Alert> o) { +checkUnnamed3104(core.List<api.Alert> o) { unittest.expect(o, unittest.hasLength(2)); checkAlert(o[0]); checkAlert(o[1]); @@ -651,7 +651,7 @@ var o = new api.Alerts(); buildCounterAlerts++; if (buildCounterAlerts < 3) { - o.items = buildUnnamed2973(); + o.items = buildUnnamed3104(); o.kind = "foo"; } buildCounterAlerts--; @@ -661,7 +661,7 @@ checkAlerts(api.Alerts o) { buildCounterAlerts++; if (buildCounterAlerts < 3) { - checkUnnamed2973(o.items); + checkUnnamed3104(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAlerts--; @@ -719,14 +719,14 @@ buildCounterCustomChannel--; } -buildUnnamed2974() { +buildUnnamed3105() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed2974(core.List<api.CustomChannel> o) { +checkUnnamed3105(core.List<api.CustomChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomChannel(o[0]); checkCustomChannel(o[1]); @@ -738,7 +738,7 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2974(); + o.items = buildUnnamed3105(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -750,21 +750,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2974(o.items); + checkUnnamed3105(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed2975() { +buildUnnamed3106() { var o = new core.List<api.ReportingMetadataEntry>(); o.add(buildReportingMetadataEntry()); o.add(buildReportingMetadataEntry()); return o; } -checkUnnamed2975(core.List<api.ReportingMetadataEntry> o) { +checkUnnamed3106(core.List<api.ReportingMetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReportingMetadataEntry(o[0]); checkReportingMetadataEntry(o[1]); @@ -775,7 +775,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed2975(); + o.items = buildUnnamed3106(); o.kind = "foo"; } buildCounterMetadata--; @@ -785,7 +785,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2975(o.items); + checkUnnamed3106(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; @@ -818,14 +818,14 @@ buildCounterPayment--; } -buildUnnamed2976() { +buildUnnamed3107() { var o = new core.List<api.Payment>(); o.add(buildPayment()); o.add(buildPayment()); return o; } -checkUnnamed2976(core.List<api.Payment> o) { +checkUnnamed3107(core.List<api.Payment> o) { unittest.expect(o, unittest.hasLength(2)); checkPayment(o[0]); checkPayment(o[1]); @@ -836,7 +836,7 @@ var o = new api.Payments(); buildCounterPayments++; if (buildCounterPayments < 3) { - o.items = buildUnnamed2976(); + o.items = buildUnnamed3107(); o.kind = "foo"; } buildCounterPayments--; @@ -846,72 +846,72 @@ checkPayments(api.Payments o) { buildCounterPayments++; if (buildCounterPayments < 3) { - checkUnnamed2976(o.items); + checkUnnamed3107(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPayments--; } -buildUnnamed2977() { +buildUnnamed3108() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2977(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')); } -buildUnnamed2978() { +buildUnnamed3109() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2978(core.List<core.String> o) { +checkUnnamed3109(core.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() { +buildUnnamed3110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2979(core.List<core.String> 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')); } -buildUnnamed2980() { +buildUnnamed3111() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2980(core.List<core.String> o) { +checkUnnamed3111(core.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() { +buildUnnamed3112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2981(core.List<core.String> o) { +checkUnnamed3112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -922,13 +922,13 @@ var o = new api.ReportingMetadataEntry(); buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - o.compatibleDimensions = buildUnnamed2977(); - o.compatibleMetrics = buildUnnamed2978(); + o.compatibleDimensions = buildUnnamed3108(); + o.compatibleMetrics = buildUnnamed3109(); o.id = "foo"; o.kind = "foo"; - o.requiredDimensions = buildUnnamed2979(); - o.requiredMetrics = buildUnnamed2980(); - o.supportedProducts = buildUnnamed2981(); + o.requiredDimensions = buildUnnamed3110(); + o.requiredMetrics = buildUnnamed3111(); + o.supportedProducts = buildUnnamed3112(); } buildCounterReportingMetadataEntry--; return o; @@ -937,13 +937,13 @@ checkReportingMetadataEntry(api.ReportingMetadataEntry o) { buildCounterReportingMetadataEntry++; if (buildCounterReportingMetadataEntry < 3) { - checkUnnamed2977(o.compatibleDimensions); - checkUnnamed2978(o.compatibleMetrics); + checkUnnamed3108(o.compatibleDimensions); + checkUnnamed3109(o.compatibleMetrics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2979(o.requiredDimensions); - checkUnnamed2980(o.requiredMetrics); - checkUnnamed2981(o.supportedProducts); + checkUnnamed3110(o.requiredDimensions); + checkUnnamed3111(o.requiredMetrics); + checkUnnamed3112(o.supportedProducts); } buildCounterReportingMetadataEntry--; } @@ -973,14 +973,14 @@ buildCounterSavedAdStyle--; } -buildUnnamed2982() { +buildUnnamed3113() { var o = new core.List<api.SavedAdStyle>(); o.add(buildSavedAdStyle()); o.add(buildSavedAdStyle()); return o; } -checkUnnamed2982(core.List<api.SavedAdStyle> o) { +checkUnnamed3113(core.List<api.SavedAdStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedAdStyle(o[0]); checkSavedAdStyle(o[1]); @@ -992,7 +992,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { o.etag = "foo"; - o.items = buildUnnamed2982(); + o.items = buildUnnamed3113(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1004,7 +1004,7 @@ buildCounterSavedAdStyles++; if (buildCounterSavedAdStyles < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2982(o.items); + checkUnnamed3113(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1034,14 +1034,14 @@ buildCounterSavedReport--; } -buildUnnamed2983() { +buildUnnamed3114() { var o = new core.List<api.SavedReport>(); o.add(buildSavedReport()); o.add(buildSavedReport()); return o; } -checkUnnamed2983(core.List<api.SavedReport> o) { +checkUnnamed3114(core.List<api.SavedReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedReport(o[0]); checkSavedReport(o[1]); @@ -1053,7 +1053,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { o.etag = "foo"; - o.items = buildUnnamed2983(); + o.items = buildUnnamed3114(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1065,7 +1065,7 @@ buildCounterSavedReports++; if (buildCounterSavedReports < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2983(o.items); + checkUnnamed3114(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1095,14 +1095,14 @@ buildCounterUrlChannel--; } -buildUnnamed2984() { +buildUnnamed3115() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed2984(core.List<api.UrlChannel> o) { +checkUnnamed3115(core.List<api.UrlChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlChannel(o[0]); checkUrlChannel(o[1]); @@ -1114,7 +1114,7 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { o.etag = "foo"; - o.items = buildUnnamed2984(); + o.items = buildUnnamed3115(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1126,125 +1126,125 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2984(o.items); + checkUnnamed3115(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed2985() { +buildUnnamed3116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2985(core.List<core.String> 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')); } -buildUnnamed2986() { +buildUnnamed3117() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2986(core.List<core.String> o) { +checkUnnamed3117(core.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() { +buildUnnamed3118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2987(core.List<core.String> 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')); } -buildUnnamed2988() { +buildUnnamed3119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2988(core.List<core.String> o) { +checkUnnamed3119(core.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() { +buildUnnamed3120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2989(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')); } -buildUnnamed2990() { +buildUnnamed3121() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2990(core.List<core.String> o) { +checkUnnamed3121(core.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() { +buildUnnamed3122() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2991(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')); } -buildUnnamed2992() { +buildUnnamed3123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2992(core.List<core.String> o) { +checkUnnamed3123(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2993() { +buildUnnamed3124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2993(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')); @@ -1629,6 +1629,7 @@ new api.AdsenseApi(mock).accounts.adclients; var arg_accountId = "foo"; var arg_adClientId = "foo"; + var arg_tagPartner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1681,6 +1682,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["tagPartner"].first, unittest.equals(arg_tagPartner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1690,7 +1693,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getAdCode(arg_accountId, arg_adClientId, $fields: arg_$fields) + .getAdCode(arg_accountId, arg_adClientId, + tagPartner: arg_tagPartner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdCode(response); }))); @@ -1701,8 +1705,8 @@ api.AccountsAdclientsResourceApi res = new api.AdsenseApi(mock).accounts.adclients; var arg_accountId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1746,10 +1750,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1760,8 +1764,8 @@ }), true); res .list(arg_accountId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdClients(response); @@ -2027,8 +2031,8 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_adUnitId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2090,10 +2094,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2104,8 +2108,8 @@ }), true); res .list(arg_accountId, arg_adClientId, arg_adUnitId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCustomChannels(response); @@ -2330,8 +2334,8 @@ new api.AdsenseApi(mock).accounts.customchannels; var arg_accountId = "foo"; var arg_adClientId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2384,10 +2388,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2398,8 +2402,8 @@ }), true); res .list(arg_accountId, arg_adClientId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCustomChannels(response); @@ -2415,8 +2419,8 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_customChannelId = "foo"; - var arg_includeInactive = true; var arg_pageToken = "foo"; + var arg_includeInactive = true; var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2479,10 +2483,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeInactive"].first, - unittest.equals("$arg_includeInactive")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["includeInactive"].first, + unittest.equals("$arg_includeInactive")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2495,8 +2499,8 @@ }), true); res .list(arg_accountId, arg_adClientId, arg_customChannelId, - includeInactive: arg_includeInactive, pageToken: arg_pageToken, + includeInactive: arg_includeInactive, maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2581,15 +2585,15 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_metric = buildUnnamed2985(); - var arg_maxResults = 42; - var arg_filter = buildUnnamed2986(); + var arg_metric = buildUnnamed3116(); + var arg_sort = buildUnnamed3117(); var arg_startIndex = 42; - var arg_sort = buildUnnamed2987(); - var arg_currency = "foo"; - var arg_dimension = buildUnnamed2988(); + var arg_dimension = buildUnnamed3118(); + var arg_filter = buildUnnamed3119(); var arg_useTimezoneReporting = true; var arg_locale = "foo"; + var arg_maxResults = 42; + var arg_currency = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2638,18 +2642,18 @@ unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); + unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); - unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); - unittest.expect( - queryMap["currency"].first, unittest.equals(arg_currency)); unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); + unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); unittest.expect(queryMap["useTimezoneReporting"].first, unittest.equals("$arg_useTimezoneReporting")); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["currency"].first, unittest.equals(arg_currency)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2661,14 +2665,14 @@ res .generate(arg_accountId, arg_startDate, arg_endDate, metric: arg_metric, - maxResults: arg_maxResults, - filter: arg_filter, - startIndex: arg_startIndex, sort: arg_sort, - currency: arg_currency, + startIndex: arg_startIndex, dimension: arg_dimension, + filter: arg_filter, useTimezoneReporting: arg_useTimezoneReporting, locale: arg_locale, + maxResults: arg_maxResults, + currency: arg_currency, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdsenseReportsGenerateResponse(response); @@ -2684,8 +2688,8 @@ var arg_accountId = "foo"; var arg_savedReportId = "foo"; var arg_maxResults = 42; - var arg_startIndex = 42; var arg_locale = "foo"; + var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2734,9 +2738,9 @@ } unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2748,8 +2752,8 @@ res .generate(arg_accountId, arg_savedReportId, maxResults: arg_maxResults, - startIndex: arg_startIndex, locale: arg_locale, + startIndex: arg_startIndex, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdsenseReportsGenerateResponse(response); @@ -2761,8 +2765,8 @@ api.AccountsReportsSavedResourceApi res = new api.AdsenseApi(mock).accounts.reports.saved; var arg_accountId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2806,10 +2810,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2820,8 +2824,8 @@ }), true); res .list(arg_accountId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSavedReports(response); @@ -2977,8 +2981,8 @@ new api.AdsenseApi(mock).accounts.urlchannels; var arg_accountId = "foo"; var arg_adClientId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3031,10 +3035,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3045,8 +3049,8 @@ }), true); res .list(arg_accountId, arg_adClientId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlChannels(response); @@ -3058,8 +3062,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AdclientsResourceApi res = new api.AdsenseApi(mock).adclients; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3094,10 +3098,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3108,8 +3112,8 @@ }), true); res .list( - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdClients(response); @@ -3260,9 +3264,9 @@ var mock = new HttpServerMock(); api.AdunitsResourceApi res = new api.AdsenseApi(mock).adunits; var arg_adClientId = "foo"; + var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_includeInactive = true; - var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3306,12 +3310,12 @@ 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["includeInactive"].first, unittest.equals("$arg_includeInactive")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3322,9 +3326,9 @@ }), true); res .list(arg_adClientId, + maxResults: arg_maxResults, pageToken: arg_pageToken, includeInactive: arg_includeInactive, - maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdUnits(response); @@ -3599,8 +3603,8 @@ api.CustomchannelsResourceApi res = new api.AdsenseApi(mock).customchannels; var arg_adClientId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3644,10 +3648,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3658,8 +3662,8 @@ }), true); res .list(arg_adClientId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCustomChannels(response); @@ -3674,9 +3678,9 @@ new api.AdsenseApi(mock).customchannels.adunits; var arg_adClientId = "foo"; var arg_customChannelId = "foo"; - var arg_pageToken = "foo"; - var arg_includeInactive = true; var arg_maxResults = 42; + var arg_includeInactive = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3729,12 +3733,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["includeInactive"].first, - unittest.equals("$arg_includeInactive")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["includeInactive"].first, + unittest.equals("$arg_includeInactive")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3745,9 +3749,9 @@ }), true); res .list(arg_adClientId, arg_customChannelId, - pageToken: arg_pageToken, - includeInactive: arg_includeInactive, maxResults: arg_maxResults, + includeInactive: arg_includeInactive, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdUnits(response); @@ -3922,16 +3926,16 @@ api.ReportsResourceApi res = new api.AdsenseApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_filter = buildUnnamed2989(); + var arg_dimension = buildUnnamed3120(); var arg_startIndex = 42; - var arg_sort = buildUnnamed2990(); - var arg_accountId = buildUnnamed2991(); - var arg_currency = "foo"; - var arg_dimension = buildUnnamed2992(); + var arg_filter = buildUnnamed3121(); + var arg_accountId = buildUnnamed3122(); var arg_useTimezoneReporting = true; - var arg_locale = "foo"; - var arg_metric = buildUnnamed2993(); + var arg_sort = buildUnnamed3123(); var arg_maxResults = 42; + var arg_currency = "foo"; + var arg_locale = "foo"; + var arg_metric = buildUnnamed3124(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3970,20 +3974,20 @@ queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); - unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); + unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); - unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); + unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); unittest.expect(queryMap["accountId"], unittest.equals(arg_accountId)); - unittest.expect( - queryMap["currency"].first, unittest.equals(arg_currency)); - unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); unittest.expect(queryMap["useTimezoneReporting"].first, unittest.equals("$arg_useTimezoneReporting")); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); - unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); + unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["currency"].first, unittest.equals(arg_currency)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3994,16 +3998,16 @@ }), true); res .generate(arg_startDate, arg_endDate, - filter: arg_filter, - startIndex: arg_startIndex, - sort: arg_sort, - accountId: arg_accountId, - currency: arg_currency, dimension: arg_dimension, + startIndex: arg_startIndex, + filter: arg_filter, + accountId: arg_accountId, useTimezoneReporting: arg_useTimezoneReporting, + sort: arg_sort, + maxResults: arg_maxResults, + currency: arg_currency, locale: arg_locale, metric: arg_metric, - maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdsenseReportsGenerateResponse(response); @@ -4083,8 +4087,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ReportsSavedResourceApi res = new api.AdsenseApi(mock).reports.saved; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4119,10 +4123,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4133,8 +4137,8 @@ }), true); res .list( - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSavedReports(response); @@ -4202,8 +4206,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.SavedadstylesResourceApi res = new api.AdsenseApi(mock).savedadstyles; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4238,10 +4242,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4252,8 +4256,8 @@ }), true); res .list( - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSavedAdStyles(response); @@ -4266,8 +4270,8 @@ var mock = new HttpServerMock(); api.UrlchannelsResourceApi res = new api.AdsenseApi(mock).urlchannels; var arg_adClientId = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4311,10 +4315,10 @@ 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(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4325,8 +4329,8 @@ }), true); res .list(arg_adClientId, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlChannels(response);
diff --git a/generated/googleapis/test/adsensehost/v4_1_test.dart b/generated/googleapis/test/adsensehost/v4_1_test.dart index 8cce452..b6d38c1 100644 --- a/generated/googleapis/test/adsensehost/v4_1_test.dart +++ b/generated/googleapis/test/adsensehost/v4_1_test.dart
@@ -75,14 +75,14 @@ buildCounterAccount--; } -buildUnnamed3936() { +buildUnnamed4135() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed3936(core.List<api.Account> o) { +checkUnnamed4135(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -94,7 +94,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { o.etag = "foo"; - o.items = buildUnnamed3936(); + o.items = buildUnnamed4135(); o.kind = "foo"; } buildCounterAccounts--; @@ -105,7 +105,7 @@ buildCounterAccounts++; if (buildCounterAccounts < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3936(o.items); + checkUnnamed4135(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounts--; @@ -138,14 +138,14 @@ buildCounterAdClient--; } -buildUnnamed3937() { +buildUnnamed4136() { var o = new core.List<api.AdClient>(); o.add(buildAdClient()); o.add(buildAdClient()); return o; } -checkUnnamed3937(core.List<api.AdClient> o) { +checkUnnamed4136(core.List<api.AdClient> o) { unittest.expect(o, unittest.hasLength(2)); checkAdClient(o[0]); checkAdClient(o[1]); @@ -157,7 +157,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { o.etag = "foo"; - o.items = buildUnnamed3937(); + o.items = buildUnnamed4136(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -169,7 +169,7 @@ buildCounterAdClients++; if (buildCounterAdClients < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3937(o.items); + checkUnnamed4136(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -375,14 +375,14 @@ buildCounterAdUnit--; } -buildUnnamed3938() { +buildUnnamed4137() { var o = new core.List<api.AdUnit>(); o.add(buildAdUnit()); o.add(buildAdUnit()); return o; } -checkUnnamed3938(core.List<api.AdUnit> o) { +checkUnnamed4137(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 = buildUnnamed3938(); + o.items = buildUnnamed4137(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,21 +406,21 @@ buildCounterAdUnits++; if (buildCounterAdUnits < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3938(o.items); + checkUnnamed4137(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdUnits--; } -buildUnnamed3939() { +buildUnnamed4138() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3939(core.List<core.String> o) { +checkUnnamed4138(core.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 = buildUnnamed3939(); + o.productCodes = buildUnnamed4138(); 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')); - checkUnnamed3939(o.productCodes); + checkUnnamed4138(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--; } -buildUnnamed3940() { +buildUnnamed4139() { var o = new core.List<api.CustomChannel>(); o.add(buildCustomChannel()); o.add(buildCustomChannel()); return o; } -checkUnnamed3940(core.List<api.CustomChannel> o) { +checkUnnamed4139(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 = buildUnnamed3940(); + o.items = buildUnnamed4139(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -517,21 +517,21 @@ buildCounterCustomChannels++; if (buildCounterCustomChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3940(o.items); + checkUnnamed4139(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomChannels--; } -buildUnnamed3941() { +buildUnnamed4140() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3941(core.List<core.String> o) { +checkUnnamed4140(core.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--; } -buildUnnamed3942() { +buildUnnamed4141() { var o = new core.List<api.ReportHeaders>(); o.add(buildReportHeaders()); o.add(buildReportHeaders()); return o; } -checkUnnamed3942(core.List<api.ReportHeaders> o) { +checkUnnamed4141(core.List<api.ReportHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkReportHeaders(o[0]); checkReportHeaders(o[1]); } -buildUnnamed3943() { +buildUnnamed4142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3943(core.List<core.String> o) { +checkUnnamed4142(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3944() { +buildUnnamed4143() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed3943()); - o.add(buildUnnamed3943()); + o.add(buildUnnamed4142()); + o.add(buildUnnamed4142()); return o; } -checkUnnamed3944(core.List<core.List<core.String>> o) { +checkUnnamed4143(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3943(o[0]); - checkUnnamed3943(o[1]); + checkUnnamed4142(o[0]); + checkUnnamed4142(o[1]); } -buildUnnamed3945() { +buildUnnamed4144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3945(core.List<core.String> o) { +checkUnnamed4144(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3946() { +buildUnnamed4145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3946(core.List<core.String> o) { +checkUnnamed4145(core.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 = buildUnnamed3941(); - o.headers = buildUnnamed3942(); + o.averages = buildUnnamed4140(); + o.headers = buildUnnamed4141(); o.kind = "foo"; - o.rows = buildUnnamed3944(); + o.rows = buildUnnamed4143(); o.totalMatchedRows = "foo"; - o.totals = buildUnnamed3945(); - o.warnings = buildUnnamed3946(); + o.totals = buildUnnamed4144(); + o.warnings = buildUnnamed4145(); } buildCounterReport--; return o; @@ -645,13 +645,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed3941(o.averages); - checkUnnamed3942(o.headers); + checkUnnamed4140(o.averages); + checkUnnamed4141(o.headers); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3944(o.rows); + checkUnnamed4143(o.rows); unittest.expect(o.totalMatchedRows, unittest.equals('foo')); - checkUnnamed3945(o.totals); - checkUnnamed3946(o.warnings); + checkUnnamed4144(o.totals); + checkUnnamed4145(o.warnings); } buildCounterReport--; } @@ -679,14 +679,14 @@ buildCounterUrlChannel--; } -buildUnnamed3947() { +buildUnnamed4146() { var o = new core.List<api.UrlChannel>(); o.add(buildUrlChannel()); o.add(buildUrlChannel()); return o; } -checkUnnamed3947(core.List<api.UrlChannel> o) { +checkUnnamed4146(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 = buildUnnamed3947(); + o.items = buildUnnamed4146(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -710,151 +710,151 @@ buildCounterUrlChannels++; if (buildCounterUrlChannels < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3947(o.items); + checkUnnamed4146(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterUrlChannels--; } -buildUnnamed3948() { +buildUnnamed4147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3948(core.List<core.String> o) { +checkUnnamed4147(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3949() { +buildUnnamed4148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3949(core.List<core.String> o) { +checkUnnamed4148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3950() { +buildUnnamed4149() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3950(core.List<core.String> o) { +checkUnnamed4149(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3951() { +buildUnnamed4150() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3951(core.List<core.String> o) { +checkUnnamed4150(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3952() { +buildUnnamed4151() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3952(core.List<core.String> o) { +checkUnnamed4151(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3953() { +buildUnnamed4152() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3953(core.List<core.String> o) { +checkUnnamed4152(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3954() { +buildUnnamed4153() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3954(core.List<core.String> o) { +checkUnnamed4153(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3955() { +buildUnnamed4154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3955(core.List<core.String> o) { +checkUnnamed4154(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3956() { +buildUnnamed4155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3956(core.List<core.String> o) { +checkUnnamed4155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3957() { +buildUnnamed4156() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3957(core.List<core.String> o) { +checkUnnamed4156(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3958() { +buildUnnamed4157() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3958(core.List<core.String> o) { +checkUnnamed4157(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1082,7 +1082,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.AdsensehostApi(mock).accounts; - var arg_filterAdClientId = buildUnnamed3948(); + var arg_filterAdClientId = buildUnnamed4147(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1440,7 +1440,7 @@ var arg_accountId = "foo"; var arg_adClientId = "foo"; var arg_adUnitId = "foo"; - var arg_hostCustomChannelId = buildUnnamed3949(); + var arg_hostCustomChannelId = buildUnnamed4148(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1605,8 +1605,8 @@ new api.AdsensehostApi(mock).accounts.adunits; var arg_accountId = "foo"; var arg_adClientId = "foo"; - var arg_pageToken = "foo"; var arg_includeInactive = true; + var arg_pageToken = "foo"; var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1660,10 +1660,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["includeInactive"].first, unittest.equals("$arg_includeInactive")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1676,8 +1676,8 @@ }), true); res .list(arg_accountId, arg_adClientId, - pageToken: arg_pageToken, includeInactive: arg_includeInactive, + pageToken: arg_pageToken, maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1853,13 +1853,13 @@ var arg_accountId = "foo"; var arg_startDate = "foo"; var arg_endDate = "foo"; + var arg_sort = buildUnnamed4149(); var arg_startIndex = 42; + var arg_filter = buildUnnamed4150(); + var arg_metric = buildUnnamed4151(); var arg_locale = "foo"; - var arg_metric = buildUnnamed3950(); + var arg_dimension = buildUnnamed4152(); var arg_maxResults = 42; - var arg_sort = buildUnnamed3951(); - var arg_dimension = buildUnnamed3952(); - var arg_filter = buildUnnamed3953(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1907,15 +1907,15 @@ queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); + unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); - unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); - unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1926,13 +1926,13 @@ }), true); res .generate(arg_accountId, arg_startDate, arg_endDate, - startIndex: arg_startIndex, - locale: arg_locale, - metric: arg_metric, - maxResults: arg_maxResults, sort: arg_sort, - dimension: arg_dimension, + startIndex: arg_startIndex, filter: arg_filter, + metric: arg_metric, + locale: arg_locale, + dimension: arg_dimension, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkReport(response); @@ -2064,11 +2064,11 @@ var mock = new HttpServerMock(); api.AssociationsessionsResourceApi res = new api.AdsensehostApi(mock).associationsessions; - var arg_productCode = buildUnnamed3954(); + var arg_productCode = buildUnnamed4153(); var arg_websiteUrl = "foo"; + var arg_userLocale = "foo"; var arg_callbackUrl = "foo"; var arg_websiteLocale = "foo"; - var arg_userLocale = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2108,11 +2108,11 @@ unittest.expect( queryMap["websiteUrl"].first, unittest.equals(arg_websiteUrl)); unittest.expect( + queryMap["userLocale"].first, unittest.equals(arg_userLocale)); + unittest.expect( queryMap["callbackUrl"].first, unittest.equals(arg_callbackUrl)); unittest.expect(queryMap["websiteLocale"].first, unittest.equals(arg_websiteLocale)); - unittest.expect( - queryMap["userLocale"].first, unittest.equals(arg_userLocale)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2123,9 +2123,9 @@ }), true); res .start(arg_productCode, arg_websiteUrl, + userLocale: arg_userLocale, callbackUrl: arg_callbackUrl, websiteLocale: arg_websiteLocale, - userLocale: arg_userLocale, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAssociationSession(response); @@ -2607,13 +2607,13 @@ api.ReportsResourceApi res = new api.AdsensehostApi(mock).reports; var arg_startDate = "foo"; var arg_endDate = "foo"; - var arg_dimension = buildUnnamed3955(); - var arg_filter = buildUnnamed3956(); - var arg_startIndex = 42; + var arg_filter = buildUnnamed4154(); + var arg_metric = buildUnnamed4155(); + var arg_dimension = buildUnnamed4156(); var arg_locale = "foo"; - var arg_metric = buildUnnamed3957(); + var arg_startIndex = 42; var arg_maxResults = 42; - var arg_sort = buildUnnamed3958(); + var arg_sort = buildUnnamed4157(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2652,12 +2652,12 @@ queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); - unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); unittest.expect(queryMap["filter"], unittest.equals(arg_filter)); + unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); + unittest.expect(queryMap["dimension"], unittest.equals(arg_dimension)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); - unittest.expect(queryMap["metric"], unittest.equals(arg_metric)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["sort"], unittest.equals(arg_sort)); @@ -2671,11 +2671,11 @@ }), true); res .generate(arg_startDate, arg_endDate, - dimension: arg_dimension, filter: arg_filter, - startIndex: arg_startIndex, - locale: arg_locale, metric: arg_metric, + dimension: arg_dimension, + locale: arg_locale, + startIndex: arg_startIndex, maxResults: arg_maxResults, sort: arg_sort, $fields: arg_$fields) @@ -2822,8 +2822,8 @@ var mock = new HttpServerMock(); api.UrlchannelsResourceApi res = new api.AdsensehostApi(mock).urlchannels; var arg_adClientId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2867,10 +2867,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2881,8 +2881,8 @@ }), true); res .list(arg_adClientId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlChannels(response);
diff --git a/generated/googleapis/test/analytics/v3_test.dart b/generated/googleapis/test/analytics/v3_test.dart index 167ccbe..c42fd76 100644 --- a/generated/googleapis/test/analytics/v3_test.dart +++ b/generated/googleapis/test/analytics/v3_test.dart
@@ -71,14 +71,14 @@ buildCounterAccountChildLink--; } -buildUnnamed1338() { +buildUnnamed1368() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1338(core.List<core.String> o) { +checkUnnamed1368(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -89,7 +89,7 @@ var o = new api.AccountPermissions(); buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - o.effective = buildUnnamed1338(); + o.effective = buildUnnamed1368(); } buildCounterAccountPermissions--; return o; @@ -98,7 +98,7 @@ checkAccountPermissions(api.AccountPermissions o) { buildCounterAccountPermissions++; if (buildCounterAccountPermissions < 3) { - checkUnnamed1338(o.effective); + checkUnnamed1368(o.effective); } buildCounterAccountPermissions--; } @@ -165,14 +165,14 @@ buildCounterAccountRef--; } -buildUnnamed1339() { +buildUnnamed1369() { var o = new core.List<api.AccountSummary>(); o.add(buildAccountSummary()); o.add(buildAccountSummary()); return o; } -checkUnnamed1339(core.List<api.AccountSummary> o) { +checkUnnamed1369(core.List<api.AccountSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountSummary(o[0]); checkAccountSummary(o[1]); @@ -183,7 +183,7 @@ var o = new api.AccountSummaries(); buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - o.items = buildUnnamed1339(); + o.items = buildUnnamed1369(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -199,7 +199,7 @@ checkAccountSummaries(api.AccountSummaries o) { buildCounterAccountSummaries++; if (buildCounterAccountSummaries < 3) { - checkUnnamed1339(o.items); + checkUnnamed1369(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -211,14 +211,14 @@ buildCounterAccountSummaries--; } -buildUnnamed1340() { +buildUnnamed1370() { var o = new core.List<api.WebPropertySummary>(); o.add(buildWebPropertySummary()); o.add(buildWebPropertySummary()); return o; } -checkUnnamed1340(core.List<api.WebPropertySummary> o) { +checkUnnamed1370(core.List<api.WebPropertySummary> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPropertySummary(o[0]); checkWebPropertySummary(o[1]); @@ -233,7 +233,7 @@ o.kind = "foo"; o.name = "foo"; o.starred = true; - o.webProperties = buildUnnamed1340(); + o.webProperties = buildUnnamed1370(); } buildCounterAccountSummary--; return o; @@ -246,7 +246,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.starred, unittest.isTrue); - checkUnnamed1340(o.webProperties); + checkUnnamed1370(o.webProperties); } buildCounterAccountSummary--; } @@ -334,14 +334,14 @@ buildCounterAccountTreeResponse--; } -buildUnnamed1341() { +buildUnnamed1371() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1341(core.List<api.Account> o) { +checkUnnamed1371(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -352,7 +352,7 @@ var o = new api.Accounts(); buildCounterAccounts++; if (buildCounterAccounts < 3) { - o.items = buildUnnamed1341(); + o.items = buildUnnamed1371(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -368,7 +368,7 @@ checkAccounts(api.Accounts o) { buildCounterAccounts++; if (buildCounterAccounts < 3) { - checkUnnamed1341(o.items); + checkUnnamed1371(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -403,14 +403,14 @@ buildCounterAdWordsAccount--; } -buildUnnamed1342() { +buildUnnamed1372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1342(core.List<core.String> o) { +checkUnnamed1372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -421,7 +421,7 @@ var o = new api.AnalyticsDataimportDeleteUploadDataRequest(); buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - o.customDataImportUids = buildUnnamed1342(); + o.customDataImportUids = buildUnnamed1372(); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; return o; @@ -431,19 +431,19 @@ api.AnalyticsDataimportDeleteUploadDataRequest o) { buildCounterAnalyticsDataimportDeleteUploadDataRequest++; if (buildCounterAnalyticsDataimportDeleteUploadDataRequest < 3) { - checkUnnamed1342(o.customDataImportUids); + checkUnnamed1372(o.customDataImportUids); } buildCounterAnalyticsDataimportDeleteUploadDataRequest--; } -buildUnnamed1343() { +buildUnnamed1373() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1343(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')); @@ -454,7 +454,7 @@ var o = new api.Column(); buildCounterColumn++; if (buildCounterColumn < 3) { - o.attributes = buildUnnamed1343(); + o.attributes = buildUnnamed1373(); o.id = "foo"; o.kind = "foo"; } @@ -465,34 +465,34 @@ checkColumn(api.Column o) { buildCounterColumn++; if (buildCounterColumn < 3) { - checkUnnamed1343(o.attributes); + checkUnnamed1373(o.attributes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterColumn--; } -buildUnnamed1344() { +buildUnnamed1374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1344(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')); } -buildUnnamed1345() { +buildUnnamed1375() { var o = new core.List<api.Column>(); o.add(buildColumn()); o.add(buildColumn()); return o; } -checkUnnamed1345(core.List<api.Column> o) { +checkUnnamed1375(core.List<api.Column> o) { unittest.expect(o, unittest.hasLength(2)); checkColumn(o[0]); checkColumn(o[1]); @@ -503,9 +503,9 @@ var o = new api.Columns(); buildCounterColumns++; if (buildCounterColumns < 3) { - o.attributeNames = buildUnnamed1344(); + o.attributeNames = buildUnnamed1374(); o.etag = "foo"; - o.items = buildUnnamed1345(); + o.items = buildUnnamed1375(); o.kind = "foo"; o.totalResults = 42; } @@ -516,9 +516,9 @@ checkColumns(api.Columns o) { buildCounterColumns++; if (buildCounterColumns < 3) { - checkUnnamed1344(o.attributeNames); + checkUnnamed1374(o.attributeNames); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1345(o.items); + checkUnnamed1375(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); } @@ -567,27 +567,27 @@ buildCounterCustomDataSourceParentLink--; } -buildUnnamed1346() { +buildUnnamed1376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1346(core.List<core.String> o) { +checkUnnamed1376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1347() { +buildUnnamed1377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1347(core.List<core.String> o) { +checkUnnamed1377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -607,8 +607,8 @@ o.kind = "foo"; o.name = "foo"; o.parentLink = buildCustomDataSourceParentLink(); - o.profilesLinked = buildUnnamed1346(); - o.schema = buildUnnamed1347(); + o.profilesLinked = buildUnnamed1376(); + o.schema = buildUnnamed1377(); o.selfLink = "foo"; o.type = "foo"; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); @@ -632,8 +632,8 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkCustomDataSourceParentLink(o.parentLink); - checkUnnamed1346(o.profilesLinked); - checkUnnamed1347(o.schema); + checkUnnamed1376(o.profilesLinked); + checkUnnamed1377(o.schema); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect( @@ -644,14 +644,14 @@ buildCounterCustomDataSource--; } -buildUnnamed1348() { +buildUnnamed1378() { var o = new core.List<api.CustomDataSource>(); o.add(buildCustomDataSource()); o.add(buildCustomDataSource()); return o; } -checkUnnamed1348(core.List<api.CustomDataSource> o) { +checkUnnamed1378(core.List<api.CustomDataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDataSource(o[0]); checkCustomDataSource(o[1]); @@ -662,7 +662,7 @@ var o = new api.CustomDataSources(); buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - o.items = buildUnnamed1348(); + o.items = buildUnnamed1378(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -678,7 +678,7 @@ checkCustomDataSources(api.CustomDataSources o) { buildCounterCustomDataSources++; if (buildCounterCustomDataSources < 3) { - checkUnnamed1348(o.items); + checkUnnamed1378(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -754,14 +754,14 @@ buildCounterCustomDimension--; } -buildUnnamed1349() { +buildUnnamed1379() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed1349(core.List<api.CustomDimension> o) { +checkUnnamed1379(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -772,7 +772,7 @@ var o = new api.CustomDimensions(); buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - o.items = buildUnnamed1349(); + o.items = buildUnnamed1379(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -788,7 +788,7 @@ checkCustomDimensions(api.CustomDimensions o) { buildCounterCustomDimensions++; if (buildCounterCustomDimensions < 3) { - checkUnnamed1349(o.items); + checkUnnamed1379(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -870,14 +870,14 @@ buildCounterCustomMetric--; } -buildUnnamed1350() { +buildUnnamed1380() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed1350(core.List<api.CustomMetric> o) { +checkUnnamed1380(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -888,7 +888,7 @@ var o = new api.CustomMetrics(); buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - o.items = buildUnnamed1350(); + o.items = buildUnnamed1380(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -904,7 +904,7 @@ checkCustomMetrics(api.CustomMetrics o) { buildCounterCustomMetrics++; if (buildCounterCustomMetrics < 3) { - checkUnnamed1350(o.items); + checkUnnamed1380(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -916,14 +916,14 @@ buildCounterCustomMetrics--; } -buildUnnamed1351() { +buildUnnamed1381() { var o = new core.List<api.AdWordsAccount>(); o.add(buildAdWordsAccount()); o.add(buildAdWordsAccount()); return o; } -checkUnnamed1351(core.List<api.AdWordsAccount> o) { +checkUnnamed1381(core.List<api.AdWordsAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkAdWordsAccount(o[0]); checkAdWordsAccount(o[1]); @@ -948,14 +948,14 @@ buildCounterEntityAdWordsLinkEntity--; } -buildUnnamed1352() { +buildUnnamed1382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1352(core.List<core.String> o) { +checkUnnamed1382(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -966,12 +966,12 @@ var o = new api.EntityAdWordsLink(); buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - o.adWordsAccounts = buildUnnamed1351(); + o.adWordsAccounts = buildUnnamed1381(); o.entity = buildEntityAdWordsLinkEntity(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.profileIds = buildUnnamed1352(); + o.profileIds = buildUnnamed1382(); o.selfLink = "foo"; } buildCounterEntityAdWordsLink--; @@ -981,25 +981,25 @@ checkEntityAdWordsLink(api.EntityAdWordsLink o) { buildCounterEntityAdWordsLink++; if (buildCounterEntityAdWordsLink < 3) { - checkUnnamed1351(o.adWordsAccounts); + checkUnnamed1381(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')); - checkUnnamed1352(o.profileIds); + checkUnnamed1382(o.profileIds); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterEntityAdWordsLink--; } -buildUnnamed1353() { +buildUnnamed1383() { var o = new core.List<api.EntityAdWordsLink>(); o.add(buildEntityAdWordsLink()); o.add(buildEntityAdWordsLink()); return o; } -checkUnnamed1353(core.List<api.EntityAdWordsLink> o) { +checkUnnamed1383(core.List<api.EntityAdWordsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAdWordsLink(o[0]); checkEntityAdWordsLink(o[1]); @@ -1010,7 +1010,7 @@ var o = new api.EntityAdWordsLinks(); buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - o.items = buildUnnamed1353(); + o.items = buildUnnamed1383(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1025,7 +1025,7 @@ checkEntityAdWordsLinks(api.EntityAdWordsLinks o) { buildCounterEntityAdWordsLinks++; if (buildCounterEntityAdWordsLinks < 3) { - checkUnnamed1353(o.items); + checkUnnamed1383(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1059,27 +1059,27 @@ buildCounterEntityUserLinkEntity--; } -buildUnnamed1354() { +buildUnnamed1384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1354(core.List<core.String> o) { +checkUnnamed1384(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1355() { +buildUnnamed1385() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1355(core.List<core.String> o) { +checkUnnamed1385(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1090,8 +1090,8 @@ var o = new api.EntityUserLinkPermissions(); buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - o.effective = buildUnnamed1354(); - o.local = buildUnnamed1355(); + o.effective = buildUnnamed1384(); + o.local = buildUnnamed1385(); } buildCounterEntityUserLinkPermissions--; return o; @@ -1100,8 +1100,8 @@ checkEntityUserLinkPermissions(api.EntityUserLinkPermissions o) { buildCounterEntityUserLinkPermissions++; if (buildCounterEntityUserLinkPermissions < 3) { - checkUnnamed1354(o.effective); - checkUnnamed1355(o.local); + checkUnnamed1384(o.effective); + checkUnnamed1385(o.local); } buildCounterEntityUserLinkPermissions--; } @@ -1135,14 +1135,14 @@ buildCounterEntityUserLink--; } -buildUnnamed1356() { +buildUnnamed1386() { var o = new core.List<api.EntityUserLink>(); o.add(buildEntityUserLink()); o.add(buildEntityUserLink()); return o; } -checkUnnamed1356(core.List<api.EntityUserLink> o) { +checkUnnamed1386(core.List<api.EntityUserLink> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityUserLink(o[0]); checkEntityUserLink(o[1]); @@ -1153,7 +1153,7 @@ var o = new api.EntityUserLinks(); buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - o.items = buildUnnamed1356(); + o.items = buildUnnamed1386(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1168,7 +1168,7 @@ checkEntityUserLinks(api.EntityUserLinks o) { buildCounterEntityUserLinks++; if (buildCounterEntityUserLinks < 3) { - checkUnnamed1356(o.items); + checkUnnamed1386(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1227,14 +1227,14 @@ buildCounterExperimentVariations--; } -buildUnnamed1357() { +buildUnnamed1387() { var o = new core.List<api.ExperimentVariations>(); o.add(buildExperimentVariations()); o.add(buildExperimentVariations()); return o; } -checkUnnamed1357(core.List<api.ExperimentVariations> o) { +checkUnnamed1387(core.List<api.ExperimentVariations> o) { unittest.expect(o, unittest.hasLength(2)); checkExperimentVariations(o[0]); checkExperimentVariations(o[1]); @@ -1269,7 +1269,7 @@ o.status = "foo"; o.trafficCoverage = 42.0; o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.variations = buildUnnamed1357(); + o.variations = buildUnnamed1387(); o.webPropertyId = "foo"; o.winnerConfidenceLevel = 42.0; o.winnerFound = true; @@ -1309,7 +1309,7 @@ unittest.expect(o.trafficCoverage, unittest.equals(42.0)); unittest.expect( o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1357(o.variations); + checkUnnamed1387(o.variations); unittest.expect(o.webPropertyId, unittest.equals('foo')); unittest.expect(o.winnerConfidenceLevel, unittest.equals(42.0)); unittest.expect(o.winnerFound, unittest.isTrue); @@ -1317,14 +1317,14 @@ buildCounterExperiment--; } -buildUnnamed1358() { +buildUnnamed1388() { var o = new core.List<api.Experiment>(); o.add(buildExperiment()); o.add(buildExperiment()); return o; } -checkUnnamed1358(core.List<api.Experiment> o) { +checkUnnamed1388(core.List<api.Experiment> o) { unittest.expect(o, unittest.hasLength(2)); checkExperiment(o[0]); checkExperiment(o[1]); @@ -1335,7 +1335,7 @@ var o = new api.Experiments(); buildCounterExperiments++; if (buildCounterExperiments < 3) { - o.items = buildUnnamed1358(); + o.items = buildUnnamed1388(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1351,7 +1351,7 @@ checkExperiments(api.Experiments o) { buildCounterExperiments++; if (buildCounterExperiments < 3) { - checkUnnamed1358(o.items); + checkUnnamed1388(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1601,14 +1601,14 @@ buildCounterFilterRef--; } -buildUnnamed1359() { +buildUnnamed1389() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed1359(core.List<api.Filter> o) { +checkUnnamed1389(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -1619,7 +1619,7 @@ var o = new api.Filters(); buildCounterFilters++; if (buildCounterFilters < 3) { - o.items = buildUnnamed1359(); + o.items = buildUnnamed1389(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -1635,7 +1635,7 @@ checkFilters(api.Filters o) { buildCounterFilters++; if (buildCounterFilters < 3) { - checkUnnamed1359(o.items); + checkUnnamed1389(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -1670,14 +1670,14 @@ buildCounterGaDataColumnHeaders--; } -buildUnnamed1360() { +buildUnnamed1390() { var o = new core.List<api.GaDataColumnHeaders>(); o.add(buildGaDataColumnHeaders()); o.add(buildGaDataColumnHeaders()); return o; } -checkUnnamed1360(core.List<api.GaDataColumnHeaders> o) { +checkUnnamed1390(core.List<api.GaDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataColumnHeaders(o[0]); checkGaDataColumnHeaders(o[1]); @@ -1706,14 +1706,14 @@ buildCounterGaDataDataTableCols--; } -buildUnnamed1361() { +buildUnnamed1391() { var o = new core.List<api.GaDataDataTableCols>(); o.add(buildGaDataDataTableCols()); o.add(buildGaDataDataTableCols()); return o; } -checkUnnamed1361(core.List<api.GaDataDataTableCols> o) { +checkUnnamed1391(core.List<api.GaDataDataTableCols> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableCols(o[0]); checkGaDataDataTableCols(o[1]); @@ -1738,14 +1738,14 @@ buildCounterGaDataDataTableRowsC--; } -buildUnnamed1362() { +buildUnnamed1392() { var o = new core.List<api.GaDataDataTableRowsC>(); o.add(buildGaDataDataTableRowsC()); o.add(buildGaDataDataTableRowsC()); return o; } -checkUnnamed1362(core.List<api.GaDataDataTableRowsC> o) { +checkUnnamed1392(core.List<api.GaDataDataTableRowsC> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRowsC(o[0]); checkGaDataDataTableRowsC(o[1]); @@ -1756,7 +1756,7 @@ var o = new api.GaDataDataTableRows(); buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - o.c = buildUnnamed1362(); + o.c = buildUnnamed1392(); } buildCounterGaDataDataTableRows--; return o; @@ -1765,19 +1765,19 @@ checkGaDataDataTableRows(api.GaDataDataTableRows o) { buildCounterGaDataDataTableRows++; if (buildCounterGaDataDataTableRows < 3) { - checkUnnamed1362(o.c); + checkUnnamed1392(o.c); } buildCounterGaDataDataTableRows--; } -buildUnnamed1363() { +buildUnnamed1393() { var o = new core.List<api.GaDataDataTableRows>(); o.add(buildGaDataDataTableRows()); o.add(buildGaDataDataTableRows()); return o; } -checkUnnamed1363(core.List<api.GaDataDataTableRows> o) { +checkUnnamed1393(core.List<api.GaDataDataTableRows> o) { unittest.expect(o, unittest.hasLength(2)); checkGaDataDataTableRows(o[0]); checkGaDataDataTableRows(o[1]); @@ -1788,8 +1788,8 @@ var o = new api.GaDataDataTable(); buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - o.cols = buildUnnamed1361(); - o.rows = buildUnnamed1363(); + o.cols = buildUnnamed1391(); + o.rows = buildUnnamed1393(); } buildCounterGaDataDataTable--; return o; @@ -1798,8 +1798,8 @@ checkGaDataDataTable(api.GaDataDataTable o) { buildCounterGaDataDataTable++; if (buildCounterGaDataDataTable < 3) { - checkUnnamed1361(o.cols); - checkUnnamed1363(o.rows); + checkUnnamed1391(o.cols); + checkUnnamed1393(o.rows); } buildCounterGaDataDataTable--; } @@ -1833,27 +1833,27 @@ buildCounterGaDataProfileInfo--; } -buildUnnamed1364() { +buildUnnamed1394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1364(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')); } -buildUnnamed1365() { +buildUnnamed1395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1365(core.List<core.String> 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')); @@ -1869,10 +1869,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1364(); + o.metrics = buildUnnamed1394(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1365(); + o.sort = buildUnnamed1395(); o.start_date = "foo"; o.start_index = 42; } @@ -1888,50 +1888,50 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1364(o.metrics); + checkUnnamed1394(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1365(o.sort); + checkUnnamed1395(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } buildCounterGaDataQuery--; } -buildUnnamed1366() { +buildUnnamed1396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1366(core.List<core.String> 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')); } -buildUnnamed1367() { +buildUnnamed1397() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1366()); - o.add(buildUnnamed1366()); + o.add(buildUnnamed1396()); + o.add(buildUnnamed1396()); return o; } -checkUnnamed1367(core.List<core.List<core.String>> o) { +checkUnnamed1397(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1366(o[0]); - checkUnnamed1366(o[1]); + checkUnnamed1396(o[0]); + checkUnnamed1396(o[1]); } -buildUnnamed1368() { +buildUnnamed1398() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1368(core.Map<core.String, core.String> o) { +checkUnnamed1398(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')); @@ -1942,7 +1942,7 @@ var o = new api.GaData(); buildCounterGaData++; if (buildCounterGaData < 3) { - o.columnHeaders = buildUnnamed1360(); + o.columnHeaders = buildUnnamed1390(); o.containsSampledData = true; o.dataLastRefreshed = "foo"; o.dataTable = buildGaDataDataTable(); @@ -1953,12 +1953,12 @@ o.previousLink = "foo"; o.profileInfo = buildGaDataProfileInfo(); o.query = buildGaDataQuery(); - o.rows = buildUnnamed1367(); + o.rows = buildUnnamed1397(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1368(); + o.totalsForAllResults = buildUnnamed1398(); } buildCounterGaData--; return o; @@ -1967,7 +1967,7 @@ checkGaData(api.GaData o) { buildCounterGaData++; if (buildCounterGaData < 3) { - checkUnnamed1360(o.columnHeaders); + checkUnnamed1390(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); checkGaDataDataTable(o.dataTable); @@ -1978,12 +1978,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkGaDataProfileInfo(o.profileInfo); checkGaDataQuery(o.query); - checkUnnamed1367(o.rows); + checkUnnamed1397(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)); - checkUnnamed1368(o.totalsForAllResults); + checkUnnamed1398(o.totalsForAllResults); } buildCounterGaData--; } @@ -2015,14 +2015,14 @@ buildCounterGoalEventDetailsEventConditions--; } -buildUnnamed1369() { +buildUnnamed1399() { var o = new core.List<api.GoalEventDetailsEventConditions>(); o.add(buildGoalEventDetailsEventConditions()); o.add(buildGoalEventDetailsEventConditions()); return o; } -checkUnnamed1369(core.List<api.GoalEventDetailsEventConditions> o) { +checkUnnamed1399(core.List<api.GoalEventDetailsEventConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalEventDetailsEventConditions(o[0]); checkGoalEventDetailsEventConditions(o[1]); @@ -2033,7 +2033,7 @@ var o = new api.GoalEventDetails(); buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - o.eventConditions = buildUnnamed1369(); + o.eventConditions = buildUnnamed1399(); o.useEventValue = true; } buildCounterGoalEventDetails--; @@ -2043,7 +2043,7 @@ checkGoalEventDetails(api.GoalEventDetails o) { buildCounterGoalEventDetails++; if (buildCounterGoalEventDetails < 3) { - checkUnnamed1369(o.eventConditions); + checkUnnamed1399(o.eventConditions); unittest.expect(o.useEventValue, unittest.isTrue); } buildCounterGoalEventDetails--; @@ -2093,14 +2093,14 @@ buildCounterGoalUrlDestinationDetailsSteps--; } -buildUnnamed1370() { +buildUnnamed1400() { var o = new core.List<api.GoalUrlDestinationDetailsSteps>(); o.add(buildGoalUrlDestinationDetailsSteps()); o.add(buildGoalUrlDestinationDetailsSteps()); return o; } -checkUnnamed1370(core.List<api.GoalUrlDestinationDetailsSteps> o) { +checkUnnamed1400(core.List<api.GoalUrlDestinationDetailsSteps> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalUrlDestinationDetailsSteps(o[0]); checkGoalUrlDestinationDetailsSteps(o[1]); @@ -2114,7 +2114,7 @@ o.caseSensitive = true; o.firstStepRequired = true; o.matchType = "foo"; - o.steps = buildUnnamed1370(); + o.steps = buildUnnamed1400(); o.url = "foo"; } buildCounterGoalUrlDestinationDetails--; @@ -2127,7 +2127,7 @@ unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.firstStepRequired, unittest.isTrue); unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed1370(o.steps); + checkUnnamed1400(o.steps); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoalUrlDestinationDetails--; @@ -2230,14 +2230,14 @@ buildCounterGoal--; } -buildUnnamed1371() { +buildUnnamed1401() { var o = new core.List<api.Goal>(); o.add(buildGoal()); o.add(buildGoal()); return o; } -checkUnnamed1371(core.List<api.Goal> o) { +checkUnnamed1401(core.List<api.Goal> o) { unittest.expect(o, unittest.hasLength(2)); checkGoal(o[0]); checkGoal(o[1]); @@ -2248,7 +2248,7 @@ var o = new api.Goals(); buildCounterGoals++; if (buildCounterGoals < 3) { - o.items = buildUnnamed1371(); + o.items = buildUnnamed1401(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2264,7 +2264,7 @@ checkGoals(api.Goals o) { buildCounterGoals++; if (buildCounterGoals < 3) { - checkUnnamed1371(o.items); + checkUnnamed1401(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2411,14 +2411,14 @@ buildCounterMcfDataColumnHeaders--; } -buildUnnamed1372() { +buildUnnamed1402() { var o = new core.List<api.McfDataColumnHeaders>(); o.add(buildMcfDataColumnHeaders()); o.add(buildMcfDataColumnHeaders()); return o; } -checkUnnamed1372(core.List<api.McfDataColumnHeaders> o) { +checkUnnamed1402(core.List<api.McfDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataColumnHeaders(o[0]); checkMcfDataColumnHeaders(o[1]); @@ -2453,27 +2453,27 @@ buildCounterMcfDataProfileInfo--; } -buildUnnamed1373() { +buildUnnamed1403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1373(core.List<core.String> o) { +checkUnnamed1403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1374() { +buildUnnamed1404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1374(core.List<core.String> o) { +checkUnnamed1404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2489,10 +2489,10 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1373(); + o.metrics = buildUnnamed1403(); o.samplingLevel = "foo"; o.segment = "foo"; - o.sort = buildUnnamed1374(); + o.sort = buildUnnamed1404(); o.start_date = "foo"; o.start_index = 42; } @@ -2508,10 +2508,10 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1373(o.metrics); + checkUnnamed1403(o.metrics); unittest.expect(o.samplingLevel, unittest.equals('foo')); unittest.expect(o.segment, unittest.equals('foo')); - checkUnnamed1374(o.sort); + checkUnnamed1404(o.sort); unittest.expect(o.start_date, unittest.equals('foo')); unittest.expect(o.start_index, unittest.equals(42)); } @@ -2539,14 +2539,14 @@ buildCounterMcfDataRowsConversionPathValue--; } -buildUnnamed1375() { +buildUnnamed1405() { var o = new core.List<api.McfDataRowsConversionPathValue>(); o.add(buildMcfDataRowsConversionPathValue()); o.add(buildMcfDataRowsConversionPathValue()); return o; } -checkUnnamed1375(core.List<api.McfDataRowsConversionPathValue> o) { +checkUnnamed1405(core.List<api.McfDataRowsConversionPathValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRowsConversionPathValue(o[0]); checkMcfDataRowsConversionPathValue(o[1]); @@ -2557,7 +2557,7 @@ var o = new api.McfDataRows(); buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - o.conversionPathValue = buildUnnamed1375(); + o.conversionPathValue = buildUnnamed1405(); o.primitiveValue = "foo"; } buildCounterMcfDataRows--; @@ -2567,46 +2567,46 @@ checkMcfDataRows(api.McfDataRows o) { buildCounterMcfDataRows++; if (buildCounterMcfDataRows < 3) { - checkUnnamed1375(o.conversionPathValue); + checkUnnamed1405(o.conversionPathValue); unittest.expect(o.primitiveValue, unittest.equals('foo')); } buildCounterMcfDataRows--; } -buildUnnamed1376() { +buildUnnamed1406() { var o = new core.List<api.McfDataRows>(); o.add(buildMcfDataRows()); o.add(buildMcfDataRows()); return o; } -checkUnnamed1376(core.List<api.McfDataRows> o) { +checkUnnamed1406(core.List<api.McfDataRows> o) { unittest.expect(o, unittest.hasLength(2)); checkMcfDataRows(o[0]); checkMcfDataRows(o[1]); } -buildUnnamed1377() { +buildUnnamed1407() { var o = new core.List<core.List<api.McfDataRows>>(); - o.add(buildUnnamed1376()); - o.add(buildUnnamed1376()); + o.add(buildUnnamed1406()); + o.add(buildUnnamed1406()); return o; } -checkUnnamed1377(core.List<core.List<api.McfDataRows>> o) { +checkUnnamed1407(core.List<core.List<api.McfDataRows>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1376(o[0]); - checkUnnamed1376(o[1]); + checkUnnamed1406(o[0]); + checkUnnamed1406(o[1]); } -buildUnnamed1378() { +buildUnnamed1408() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1378(core.Map<core.String, core.String> o) { +checkUnnamed1408(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')); @@ -2617,7 +2617,7 @@ var o = new api.McfData(); buildCounterMcfData++; if (buildCounterMcfData < 3) { - o.columnHeaders = buildUnnamed1372(); + o.columnHeaders = buildUnnamed1402(); o.containsSampledData = true; o.id = "foo"; o.itemsPerPage = 42; @@ -2626,12 +2626,12 @@ o.previousLink = "foo"; o.profileInfo = buildMcfDataProfileInfo(); o.query = buildMcfDataQuery(); - o.rows = buildUnnamed1377(); + o.rows = buildUnnamed1407(); o.sampleSize = "foo"; o.sampleSpace = "foo"; o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1378(); + o.totalsForAllResults = buildUnnamed1408(); } buildCounterMcfData--; return o; @@ -2640,7 +2640,7 @@ checkMcfData(api.McfData o) { buildCounterMcfData++; if (buildCounterMcfData < 3) { - checkUnnamed1372(o.columnHeaders); + checkUnnamed1402(o.columnHeaders); unittest.expect(o.containsSampledData, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.itemsPerPage, unittest.equals(42)); @@ -2649,12 +2649,12 @@ unittest.expect(o.previousLink, unittest.equals('foo')); checkMcfDataProfileInfo(o.profileInfo); checkMcfDataQuery(o.query); - checkUnnamed1377(o.rows); + checkUnnamed1407(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)); - checkUnnamed1378(o.totalsForAllResults); + checkUnnamed1408(o.totalsForAllResults); } buildCounterMcfData--; } @@ -2701,14 +2701,14 @@ buildCounterProfileParentLink--; } -buildUnnamed1379() { +buildUnnamed1409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1379(core.List<core.String> o) { +checkUnnamed1409(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2719,7 +2719,7 @@ var o = new api.ProfilePermissions(); buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - o.effective = buildUnnamed1379(); + o.effective = buildUnnamed1409(); } buildCounterProfilePermissions--; return o; @@ -2728,7 +2728,7 @@ checkProfilePermissions(api.ProfilePermissions o) { buildCounterProfilePermissions++; if (buildCounterProfilePermissions < 3) { - checkUnnamed1379(o.effective); + checkUnnamed1409(o.effective); } buildCounterProfilePermissions--; } @@ -2833,14 +2833,14 @@ buildCounterProfileFilterLink--; } -buildUnnamed1380() { +buildUnnamed1410() { var o = new core.List<api.ProfileFilterLink>(); o.add(buildProfileFilterLink()); o.add(buildProfileFilterLink()); return o; } -checkUnnamed1380(core.List<api.ProfileFilterLink> o) { +checkUnnamed1410(core.List<api.ProfileFilterLink> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileFilterLink(o[0]); checkProfileFilterLink(o[1]); @@ -2851,7 +2851,7 @@ var o = new api.ProfileFilterLinks(); buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - o.items = buildUnnamed1380(); + o.items = buildUnnamed1410(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2867,7 +2867,7 @@ checkProfileFilterLinks(api.ProfileFilterLinks o) { buildCounterProfileFilterLinks++; if (buildCounterProfileFilterLinks < 3) { - checkUnnamed1380(o.items); + checkUnnamed1410(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -2937,14 +2937,14 @@ buildCounterProfileSummary--; } -buildUnnamed1381() { +buildUnnamed1411() { var o = new core.List<api.Profile>(); o.add(buildProfile()); o.add(buildProfile()); return o; } -checkUnnamed1381(core.List<api.Profile> o) { +checkUnnamed1411(core.List<api.Profile> o) { unittest.expect(o, unittest.hasLength(2)); checkProfile(o[0]); checkProfile(o[1]); @@ -2955,7 +2955,7 @@ var o = new api.Profiles(); buildCounterProfiles++; if (buildCounterProfiles < 3) { - o.items = buildUnnamed1381(); + o.items = buildUnnamed1411(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -2971,7 +2971,7 @@ checkProfiles(api.Profiles o) { buildCounterProfiles++; if (buildCounterProfiles < 3) { - checkUnnamed1381(o.items); + checkUnnamed1411(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3006,14 +3006,14 @@ buildCounterRealtimeDataColumnHeaders--; } -buildUnnamed1382() { +buildUnnamed1412() { var o = new core.List<api.RealtimeDataColumnHeaders>(); o.add(buildRealtimeDataColumnHeaders()); o.add(buildRealtimeDataColumnHeaders()); return o; } -checkUnnamed1382(core.List<api.RealtimeDataColumnHeaders> o) { +checkUnnamed1412(core.List<api.RealtimeDataColumnHeaders> o) { unittest.expect(o, unittest.hasLength(2)); checkRealtimeDataColumnHeaders(o[0]); checkRealtimeDataColumnHeaders(o[1]); @@ -3048,27 +3048,27 @@ buildCounterRealtimeDataProfileInfo--; } -buildUnnamed1383() { +buildUnnamed1413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1383(core.List<core.String> o) { +checkUnnamed1413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1384() { +buildUnnamed1414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1384(core.List<core.String> o) { +checkUnnamed1414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3083,8 +3083,8 @@ o.filters = "foo"; o.ids = "foo"; o.max_results = 42; - o.metrics = buildUnnamed1383(); - o.sort = buildUnnamed1384(); + o.metrics = buildUnnamed1413(); + o.sort = buildUnnamed1414(); } buildCounterRealtimeDataQuery--; return o; @@ -3097,46 +3097,46 @@ unittest.expect(o.filters, unittest.equals('foo')); unittest.expect(o.ids, unittest.equals('foo')); unittest.expect(o.max_results, unittest.equals(42)); - checkUnnamed1383(o.metrics); - checkUnnamed1384(o.sort); + checkUnnamed1413(o.metrics); + checkUnnamed1414(o.sort); } buildCounterRealtimeDataQuery--; } -buildUnnamed1385() { +buildUnnamed1415() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1385(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')); } -buildUnnamed1386() { +buildUnnamed1416() { var o = new core.List<core.List<core.String>>(); - o.add(buildUnnamed1385()); - o.add(buildUnnamed1385()); + o.add(buildUnnamed1415()); + o.add(buildUnnamed1415()); return o; } -checkUnnamed1386(core.List<core.List<core.String>> o) { +checkUnnamed1416(core.List<core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1385(o[0]); - checkUnnamed1385(o[1]); + checkUnnamed1415(o[0]); + checkUnnamed1415(o[1]); } -buildUnnamed1387() { +buildUnnamed1417() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1387(core.Map<core.String, core.String> o) { +checkUnnamed1417(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')); @@ -3147,15 +3147,15 @@ var o = new api.RealtimeData(); buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - o.columnHeaders = buildUnnamed1382(); + o.columnHeaders = buildUnnamed1412(); o.id = "foo"; o.kind = "foo"; o.profileInfo = buildRealtimeDataProfileInfo(); o.query = buildRealtimeDataQuery(); - o.rows = buildUnnamed1386(); + o.rows = buildUnnamed1416(); o.selfLink = "foo"; o.totalResults = 42; - o.totalsForAllResults = buildUnnamed1387(); + o.totalsForAllResults = buildUnnamed1417(); } buildCounterRealtimeData--; return o; @@ -3164,15 +3164,15 @@ checkRealtimeData(api.RealtimeData o) { buildCounterRealtimeData++; if (buildCounterRealtimeData < 3) { - checkUnnamed1382(o.columnHeaders); + checkUnnamed1412(o.columnHeaders); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkRealtimeDataProfileInfo(o.profileInfo); checkRealtimeDataQuery(o.query); - checkUnnamed1386(o.rows); + checkUnnamed1416(o.rows); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalResults, unittest.equals(42)); - checkUnnamed1387(o.totalsForAllResults); + checkUnnamed1417(o.totalsForAllResults); } buildCounterRealtimeData--; } @@ -3197,27 +3197,27 @@ buildCounterRemarketingAudienceAudienceDefinition--; } -buildUnnamed1388() { +buildUnnamed1418() { var o = new core.List<api.LinkedForeignAccount>(); o.add(buildLinkedForeignAccount()); o.add(buildLinkedForeignAccount()); return o; } -checkUnnamed1388(core.List<api.LinkedForeignAccount> o) { +checkUnnamed1418(core.List<api.LinkedForeignAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedForeignAccount(o[0]); checkLinkedForeignAccount(o[1]); } -buildUnnamed1389() { +buildUnnamed1419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1389(core.List<core.String> o) { +checkUnnamed1419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3287,8 +3287,8 @@ o.id = "foo"; o.internalWebPropertyId = "foo"; o.kind = "foo"; - o.linkedAdAccounts = buildUnnamed1388(); - o.linkedViews = buildUnnamed1389(); + o.linkedAdAccounts = buildUnnamed1418(); + o.linkedViews = buildUnnamed1419(); o.name = "foo"; o.stateBasedAudienceDefinition = buildRemarketingAudienceStateBasedAudienceDefinition(); @@ -3311,8 +3311,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalWebPropertyId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1388(o.linkedAdAccounts); - checkUnnamed1389(o.linkedViews); + checkUnnamed1418(o.linkedAdAccounts); + checkUnnamed1419(o.linkedViews); unittest.expect(o.name, unittest.equals('foo')); checkRemarketingAudienceStateBasedAudienceDefinition( o.stateBasedAudienceDefinition); @@ -3323,14 +3323,14 @@ buildCounterRemarketingAudience--; } -buildUnnamed1390() { +buildUnnamed1420() { var o = new core.List<api.RemarketingAudience>(); o.add(buildRemarketingAudience()); o.add(buildRemarketingAudience()); return o; } -checkUnnamed1390(core.List<api.RemarketingAudience> o) { +checkUnnamed1420(core.List<api.RemarketingAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingAudience(o[0]); checkRemarketingAudience(o[1]); @@ -3341,7 +3341,7 @@ var o = new api.RemarketingAudiences(); buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - o.items = buildUnnamed1390(); + o.items = buildUnnamed1420(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3357,7 +3357,7 @@ checkRemarketingAudiences(api.RemarketingAudiences o) { buildCounterRemarketingAudiences++; if (buildCounterRemarketingAudiences < 3) { - checkUnnamed1390(o.items); + checkUnnamed1420(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3406,14 +3406,14 @@ buildCounterSegment--; } -buildUnnamed1391() { +buildUnnamed1421() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1391(core.List<api.Segment> o) { +checkUnnamed1421(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -3424,7 +3424,7 @@ var o = new api.Segments(); buildCounterSegments++; if (buildCounterSegments < 3) { - o.items = buildUnnamed1391(); + o.items = buildUnnamed1421(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3440,7 +3440,7 @@ checkSegments(api.Segments o) { buildCounterSegments++; if (buildCounterSegments < 3) { - checkUnnamed1391(o.items); + checkUnnamed1421(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3553,14 +3553,14 @@ buildCounterUnsampledReport--; } -buildUnnamed1392() { +buildUnnamed1422() { var o = new core.List<api.UnsampledReport>(); o.add(buildUnsampledReport()); o.add(buildUnsampledReport()); return o; } -checkUnnamed1392(core.List<api.UnsampledReport> o) { +checkUnnamed1422(core.List<api.UnsampledReport> o) { unittest.expect(o, unittest.hasLength(2)); checkUnsampledReport(o[0]); checkUnsampledReport(o[1]); @@ -3571,7 +3571,7 @@ var o = new api.UnsampledReports(); buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - o.items = buildUnnamed1392(); + o.items = buildUnnamed1422(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3587,7 +3587,7 @@ checkUnsampledReports(api.UnsampledReports o) { buildCounterUnsampledReports++; if (buildCounterUnsampledReports < 3) { - checkUnnamed1392(o.items); + checkUnnamed1422(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3599,14 +3599,14 @@ buildCounterUnsampledReports--; } -buildUnnamed1393() { +buildUnnamed1423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1393(core.List<core.String> o) { +checkUnnamed1423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3619,7 +3619,7 @@ if (buildCounterUpload < 3) { o.accountId = "foo"; o.customDataSourceId = "foo"; - o.errors = buildUnnamed1393(); + o.errors = buildUnnamed1423(); o.id = "foo"; o.kind = "foo"; o.status = "foo"; @@ -3634,7 +3634,7 @@ if (buildCounterUpload < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.customDataSourceId, unittest.equals('foo')); - checkUnnamed1393(o.errors); + checkUnnamed1423(o.errors); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -3644,14 +3644,14 @@ buildCounterUpload--; } -buildUnnamed1394() { +buildUnnamed1424() { var o = new core.List<api.Upload>(); o.add(buildUpload()); o.add(buildUpload()); return o; } -checkUnnamed1394(core.List<api.Upload> o) { +checkUnnamed1424(core.List<api.Upload> o) { unittest.expect(o, unittest.hasLength(2)); checkUpload(o[0]); checkUpload(o[1]); @@ -3662,7 +3662,7 @@ var o = new api.Uploads(); buildCounterUploads++; if (buildCounterUploads < 3) { - o.items = buildUnnamed1394(); + o.items = buildUnnamed1424(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3677,7 +3677,7 @@ checkUploads(api.Uploads o) { buildCounterUploads++; if (buildCounterUploads < 3) { - checkUnnamed1394(o.items); + checkUnnamed1424(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3791,14 +3791,14 @@ buildCounterWebPropertyRef--; } -buildUnnamed1395() { +buildUnnamed1425() { var o = new core.List<api.ProfileSummary>(); o.add(buildProfileSummary()); o.add(buildProfileSummary()); return o; } -checkUnnamed1395(core.List<api.ProfileSummary> o) { +checkUnnamed1425(core.List<api.ProfileSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkProfileSummary(o[0]); checkProfileSummary(o[1]); @@ -3814,7 +3814,7 @@ o.kind = "foo"; o.level = "foo"; o.name = "foo"; - o.profiles = buildUnnamed1395(); + o.profiles = buildUnnamed1425(); o.starred = true; o.websiteUrl = "foo"; } @@ -3830,21 +3830,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1395(o.profiles); + checkUnnamed1425(o.profiles); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.websiteUrl, unittest.equals('foo')); } buildCounterWebPropertySummary--; } -buildUnnamed1396() { +buildUnnamed1426() { var o = new core.List<api.Webproperty>(); o.add(buildWebproperty()); o.add(buildWebproperty()); return o; } -checkUnnamed1396(core.List<api.Webproperty> o) { +checkUnnamed1426(core.List<api.Webproperty> o) { unittest.expect(o, unittest.hasLength(2)); checkWebproperty(o[0]); checkWebproperty(o[1]); @@ -3855,7 +3855,7 @@ var o = new api.Webproperties(); buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - o.items = buildUnnamed1396(); + o.items = buildUnnamed1426(); o.itemsPerPage = 42; o.kind = "foo"; o.nextLink = "foo"; @@ -3871,7 +3871,7 @@ checkWebproperties(api.Webproperties o) { buildCounterWebproperties++; if (buildCounterWebproperties < 3) { - checkUnnamed1396(o.items); + checkUnnamed1426(o.items); unittest.expect(o.itemsPerPage, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); @@ -3925,14 +3925,14 @@ buildCounterWebpropertyParentLink--; } -buildUnnamed1397() { +buildUnnamed1427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1397(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')); @@ -3943,7 +3943,7 @@ var o = new api.WebpropertyPermissions(); buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - o.effective = buildUnnamed1397(); + o.effective = buildUnnamed1427(); } buildCounterWebpropertyPermissions--; return o; @@ -3952,7 +3952,7 @@ checkWebpropertyPermissions(api.WebpropertyPermissions o) { buildCounterWebpropertyPermissions++; if (buildCounterWebpropertyPermissions < 3) { - checkUnnamed1397(o.effective); + checkUnnamed1427(o.effective); } buildCounterWebpropertyPermissions--; } @@ -4889,15 +4889,15 @@ var arg_start_date = "foo"; var arg_end_date = "foo"; var arg_metrics = "foo"; - var arg_output = "foo"; - var arg_max_results = 42; - var arg_start_index = 42; - var arg_samplingLevel = "foo"; - var arg_dimensions = "foo"; - var arg_filters = "foo"; - var arg_sort = "foo"; var arg_include_empty_rows = true; + var arg_sort = "foo"; + var arg_filters = "foo"; + var arg_output = "foo"; + var arg_start_index = 42; + var arg_dimensions = "foo"; + var arg_samplingLevel = "foo"; var arg_segment = "foo"; + var arg_max_results = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4939,22 +4939,22 @@ queryMap["end-date"].first, unittest.equals(arg_end_date)); unittest.expect( queryMap["metrics"].first, unittest.equals(arg_metrics)); + unittest.expect(queryMap["include-empty-rows"].first, + unittest.equals("$arg_include_empty_rows")); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect( + queryMap["filters"].first, unittest.equals(arg_filters)); unittest.expect(queryMap["output"].first, unittest.equals(arg_output)); - unittest.expect(core.int.parse(queryMap["max-results"].first), - unittest.equals(arg_max_results)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); + unittest.expect( + queryMap["dimensions"].first, unittest.equals(arg_dimensions)); unittest.expect(queryMap["samplingLevel"].first, unittest.equals(arg_samplingLevel)); unittest.expect( - queryMap["dimensions"].first, unittest.equals(arg_dimensions)); - unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(queryMap["include-empty-rows"].first, - unittest.equals("$arg_include_empty_rows")); - unittest.expect( queryMap["segment"].first, unittest.equals(arg_segment)); + unittest.expect(core.int.parse(queryMap["max-results"].first), + unittest.equals(arg_max_results)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4965,15 +4965,15 @@ }), true); res .get(arg_ids, arg_start_date, arg_end_date, arg_metrics, - output: arg_output, - max_results: arg_max_results, - start_index: arg_start_index, - samplingLevel: arg_samplingLevel, - dimensions: arg_dimensions, - filters: arg_filters, - sort: arg_sort, include_empty_rows: arg_include_empty_rows, + sort: arg_sort, + filters: arg_filters, + output: arg_output, + start_index: arg_start_index, + dimensions: arg_dimensions, + samplingLevel: arg_samplingLevel, segment: arg_segment, + max_results: arg_max_results, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGaData(response); @@ -4989,12 +4989,12 @@ var arg_start_date = "foo"; var arg_end_date = "foo"; var arg_metrics = "foo"; - var arg_samplingLevel = "foo"; - var arg_dimensions = "foo"; - var arg_filters = "foo"; - var arg_sort = "foo"; - var arg_max_results = 42; var arg_start_index = 42; + var arg_samplingLevel = "foo"; + var arg_max_results = 42; + var arg_sort = "foo"; + var arg_filters = "foo"; + var arg_dimensions = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5036,17 +5036,17 @@ queryMap["end-date"].first, unittest.equals(arg_end_date)); unittest.expect( queryMap["metrics"].first, unittest.equals(arg_metrics)); - unittest.expect(queryMap["samplingLevel"].first, - unittest.equals(arg_samplingLevel)); - unittest.expect( - queryMap["dimensions"].first, unittest.equals(arg_dimensions)); - unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(core.int.parse(queryMap["max-results"].first), - unittest.equals(arg_max_results)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); + unittest.expect(queryMap["samplingLevel"].first, + unittest.equals(arg_samplingLevel)); + unittest.expect(core.int.parse(queryMap["max-results"].first), + unittest.equals(arg_max_results)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect( + queryMap["filters"].first, unittest.equals(arg_filters)); + unittest.expect( + queryMap["dimensions"].first, unittest.equals(arg_dimensions)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5057,12 +5057,12 @@ }), true); res .get(arg_ids, arg_start_date, arg_end_date, arg_metrics, - samplingLevel: arg_samplingLevel, - dimensions: arg_dimensions, - filters: arg_filters, - sort: arg_sort, - max_results: arg_max_results, start_index: arg_start_index, + samplingLevel: arg_samplingLevel, + max_results: arg_max_results, + sort: arg_sort, + filters: arg_filters, + dimensions: arg_dimensions, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMcfData(response); @@ -5077,10 +5077,10 @@ new api.AnalyticsApi(mock).data.realtime; var arg_ids = "foo"; var arg_metrics = "foo"; - var arg_dimensions = "foo"; - var arg_filters = "foo"; - var arg_sort = "foo"; var arg_max_results = 42; + var arg_sort = "foo"; + var arg_filters = "foo"; + var arg_dimensions = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5118,13 +5118,13 @@ unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); unittest.expect( queryMap["metrics"].first, unittest.equals(arg_metrics)); - unittest.expect( - queryMap["dimensions"].first, unittest.equals(arg_dimensions)); - unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect( + queryMap["filters"].first, unittest.equals(arg_filters)); + unittest.expect( + queryMap["dimensions"].first, unittest.equals(arg_dimensions)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5135,10 +5135,10 @@ }), true); res .get(arg_ids, arg_metrics, - dimensions: arg_dimensions, - filters: arg_filters, - sort: arg_sort, max_results: arg_max_results, + sort: arg_sort, + filters: arg_filters, + dimensions: arg_dimensions, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRealtimeData(response); @@ -5492,8 +5492,8 @@ var mock = new HttpServerMock(); api.ManagementAccountsResourceApi res = new api.AnalyticsApi(mock).management.accounts; - var arg_max_results = 42; var arg_start_index = 42; + var arg_max_results = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5528,10 +5528,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["max-results"].first), - unittest.equals(arg_max_results)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); + unittest.expect(core.int.parse(queryMap["max-results"].first), + unittest.equals(arg_max_results)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5542,8 +5542,8 @@ }), true); res .list( - max_results: arg_max_results, start_index: arg_start_index, + max_results: arg_max_results, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccounts(response); @@ -5617,8 +5617,8 @@ new api.AnalyticsApi(mock).management.customDataSources; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - var arg_start_index = 42; var arg_max_results = 42; + var arg_start_index = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5671,10 +5671,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["start-index"].first), - unittest.equals(arg_start_index)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(core.int.parse(queryMap["start-index"].first), + unittest.equals(arg_start_index)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5685,8 +5685,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, - start_index: arg_start_index, max_results: arg_max_results, + start_index: arg_start_index, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCustomDataSources(response); @@ -6271,8 +6271,8 @@ new api.AnalyticsApi(mock).management.customMetrics; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - var arg_max_results = 42; var arg_start_index = 42; + var arg_max_results = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6325,10 +6325,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["max-results"].first), - unittest.equals(arg_max_results)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); + unittest.expect(core.int.parse(queryMap["max-results"].first), + unittest.equals(arg_max_results)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6339,8 +6339,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, - max_results: arg_max_results, start_index: arg_start_index, + max_results: arg_max_results, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCustomMetrics(response); @@ -6794,8 +6794,8 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - var arg_max_results = 42; var arg_start_index = 42; + var arg_max_results = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6857,10 +6857,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["max-results"].first), - unittest.equals(arg_max_results)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); + unittest.expect(core.int.parse(queryMap["max-results"].first), + unittest.equals(arg_max_results)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6871,8 +6871,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, arg_profileId, - max_results: arg_max_results, start_index: arg_start_index, + max_results: arg_max_results, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkExperiments(response); @@ -8664,8 +8664,8 @@ var arg_accountId = "foo"; var arg_webPropertyId = "foo"; var arg_profileId = "foo"; - var arg_start_index = 42; var arg_max_results = 42; + var arg_start_index = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8727,10 +8727,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["start-index"].first), - unittest.equals(arg_start_index)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(core.int.parse(queryMap["start-index"].first), + unittest.equals(arg_start_index)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8741,8 +8741,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, arg_profileId, - start_index: arg_start_index, max_results: arg_max_results, + start_index: arg_start_index, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEntityUserLinks(response); @@ -9562,8 +9562,8 @@ new api.AnalyticsApi(mock).management.remarketingAudience; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - var arg_start_index = 42; var arg_type = "foo"; + var arg_start_index = 42; var arg_max_results = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9617,9 +9617,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); unittest.expect(core.int.parse(queryMap["start-index"].first), unittest.equals(arg_start_index)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9632,8 +9632,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, - start_index: arg_start_index, type: arg_type, + start_index: arg_start_index, max_results: arg_max_results, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -9813,8 +9813,8 @@ var mock = new HttpServerMock(); api.ManagementSegmentsResourceApi res = new api.AnalyticsApi(mock).management.segments; - var arg_start_index = 42; var arg_max_results = 42; + var arg_start_index = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9849,10 +9849,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["start-index"].first), - unittest.equals(arg_start_index)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(core.int.parse(queryMap["start-index"].first), + unittest.equals(arg_start_index)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9863,8 +9863,8 @@ }), true); res .list( - start_index: arg_start_index, max_results: arg_max_results, + start_index: arg_start_index, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSegments(response); @@ -10830,8 +10830,8 @@ new api.AnalyticsApi(mock).management.webPropertyAdWordsLinks; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - var arg_start_index = 42; var arg_max_results = 42; + var arg_start_index = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10884,10 +10884,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["start-index"].first), - unittest.equals(arg_start_index)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(core.int.parse(queryMap["start-index"].first), + unittest.equals(arg_start_index)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10898,8 +10898,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, - start_index: arg_start_index, max_results: arg_max_results, + start_index: arg_start_index, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEntityAdWordsLinks(response); @@ -11588,8 +11588,8 @@ new api.AnalyticsApi(mock).management.webpropertyUserLinks; var arg_accountId = "foo"; var arg_webPropertyId = "foo"; - var arg_start_index = 42; var arg_max_results = 42; + var arg_start_index = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11642,10 +11642,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["start-index"].first), - unittest.equals(arg_start_index)); unittest.expect(core.int.parse(queryMap["max-results"].first), unittest.equals(arg_max_results)); + unittest.expect(core.int.parse(queryMap["start-index"].first), + unittest.equals(arg_start_index)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11656,8 +11656,8 @@ }), true); res .list(arg_accountId, arg_webPropertyId, - start_index: arg_start_index, max_results: arg_max_results, + start_index: arg_start_index, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEntityUserLinks(response);
diff --git a/generated/googleapis/test/analyticsreporting/v4_test.dart b/generated/googleapis/test/analyticsreporting/v4_test.dart index 2543ea5..4a1b684 100644 --- a/generated/googleapis/test/analyticsreporting/v4_test.dart +++ b/generated/googleapis/test/analyticsreporting/v4_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2587() { +buildUnnamed2719() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed2587(core.List<api.CustomDimension> o) { +checkUnnamed2719(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); @@ -73,7 +73,7 @@ o.appview = buildScreenviewData(); o.campaign = "foo"; o.channelGrouping = "foo"; - o.customDimension = buildUnnamed2587(); + o.customDimension = buildUnnamed2719(); o.ecommerce = buildEcommerceData(); o.event = buildEventData(); o.goals = buildGoalSetData(); @@ -96,7 +96,7 @@ checkScreenviewData(o.appview); unittest.expect(o.campaign, unittest.equals('foo')); unittest.expect(o.channelGrouping, unittest.equals('foo')); - checkUnnamed2587(o.customDimension); + checkUnnamed2719(o.customDimension); checkEcommerceData(o.ecommerce); checkEventData(o.event); checkGoalSetData(o.goals); @@ -133,14 +133,14 @@ buildCounterCohort--; } -buildUnnamed2588() { +buildUnnamed2720() { var o = new core.List<api.Cohort>(); o.add(buildCohort()); o.add(buildCohort()); return o; } -checkUnnamed2588(core.List<api.Cohort> o) { +checkUnnamed2720(core.List<api.Cohort> o) { unittest.expect(o, unittest.hasLength(2)); checkCohort(o[0]); checkCohort(o[1]); @@ -151,7 +151,7 @@ var o = new api.CohortGroup(); buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - o.cohorts = buildUnnamed2588(); + o.cohorts = buildUnnamed2720(); o.lifetimeValue = true; } buildCounterCohortGroup--; @@ -161,20 +161,20 @@ checkCohortGroup(api.CohortGroup o) { buildCounterCohortGroup++; if (buildCounterCohortGroup < 3) { - checkUnnamed2588(o.cohorts); + checkUnnamed2720(o.cohorts); unittest.expect(o.lifetimeValue, unittest.isTrue); } buildCounterCohortGroup--; } -buildUnnamed2589() { +buildUnnamed2721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2589(core.List<core.String> o) { +checkUnnamed2721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -185,7 +185,7 @@ var o = new api.ColumnHeader(); buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - o.dimensions = buildUnnamed2589(); + o.dimensions = buildUnnamed2721(); o.metricHeader = buildMetricHeader(); } buildCounterColumnHeader--; @@ -195,7 +195,7 @@ checkColumnHeader(api.ColumnHeader o) { buildCounterColumnHeader++; if (buildCounterColumnHeader < 3) { - checkUnnamed2589(o.dimensions); + checkUnnamed2721(o.dimensions); checkMetricHeader(o.metricHeader); } buildCounterColumnHeader--; @@ -243,27 +243,27 @@ buildCounterDateRange--; } -buildUnnamed2590() { +buildUnnamed2722() { var o = new core.List<api.PivotValueRegion>(); o.add(buildPivotValueRegion()); o.add(buildPivotValueRegion()); return o; } -checkUnnamed2590(core.List<api.PivotValueRegion> o) { +checkUnnamed2722(core.List<api.PivotValueRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValueRegion(o[0]); checkPivotValueRegion(o[1]); } -buildUnnamed2591() { +buildUnnamed2723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2591(core.List<core.String> o) { +checkUnnamed2723(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -274,8 +274,8 @@ var o = new api.DateRangeValues(); buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - o.pivotValueRegions = buildUnnamed2590(); - o.values = buildUnnamed2591(); + o.pivotValueRegions = buildUnnamed2722(); + o.values = buildUnnamed2723(); } buildCounterDateRangeValues--; return o; @@ -284,20 +284,20 @@ checkDateRangeValues(api.DateRangeValues o) { buildCounterDateRangeValues++; if (buildCounterDateRangeValues < 3) { - checkUnnamed2590(o.pivotValueRegions); - checkUnnamed2591(o.values); + checkUnnamed2722(o.pivotValueRegions); + checkUnnamed2723(o.values); } buildCounterDateRangeValues--; } -buildUnnamed2592() { +buildUnnamed2724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2592(core.List<core.String> o) { +checkUnnamed2724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -308,7 +308,7 @@ var o = new api.Dimension(); buildCounterDimension++; if (buildCounterDimension < 3) { - o.histogramBuckets = buildUnnamed2592(); + o.histogramBuckets = buildUnnamed2724(); o.name = "foo"; } buildCounterDimension--; @@ -318,20 +318,20 @@ checkDimension(api.Dimension o) { buildCounterDimension++; if (buildCounterDimension < 3) { - checkUnnamed2592(o.histogramBuckets); + checkUnnamed2724(o.histogramBuckets); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDimension--; } -buildUnnamed2593() { +buildUnnamed2725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2593(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')); @@ -344,7 +344,7 @@ if (buildCounterDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed2593(); + o.expressions = buildUnnamed2725(); o.not = true; o.operator = "foo"; } @@ -357,21 +357,21 @@ if (buildCounterDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed2593(o.expressions); + checkUnnamed2725(o.expressions); unittest.expect(o.not, unittest.isTrue); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilter--; } -buildUnnamed2594() { +buildUnnamed2726() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed2594(core.List<api.DimensionFilter> o) { +checkUnnamed2726(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -382,7 +382,7 @@ var o = new api.DimensionFilterClause(); buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - o.filters = buildUnnamed2594(); + o.filters = buildUnnamed2726(); o.operator = "foo"; } buildCounterDimensionFilterClause--; @@ -392,7 +392,7 @@ checkDimensionFilterClause(api.DimensionFilterClause o) { buildCounterDimensionFilterClause++; if (buildCounterDimensionFilterClause < 3) { - checkUnnamed2594(o.filters); + checkUnnamed2726(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterDimensionFilterClause--; @@ -421,14 +421,14 @@ buildCounterDynamicSegment--; } -buildUnnamed2595() { +buildUnnamed2727() { var o = new core.List<api.ProductData>(); o.add(buildProductData()); o.add(buildProductData()); return o; } -checkUnnamed2595(core.List<api.ProductData> o) { +checkUnnamed2727(core.List<api.ProductData> o) { unittest.expect(o, unittest.hasLength(2)); checkProductData(o[0]); checkProductData(o[1]); @@ -441,7 +441,7 @@ if (buildCounterEcommerceData < 3) { o.actionType = "foo"; o.ecommerceType = "foo"; - o.products = buildUnnamed2595(); + o.products = buildUnnamed2727(); o.transaction = buildTransactionData(); } buildCounterEcommerceData--; @@ -453,7 +453,7 @@ if (buildCounterEcommerceData < 3) { unittest.expect(o.actionType, unittest.equals('foo')); unittest.expect(o.ecommerceType, unittest.equals('foo')); - checkUnnamed2595(o.products); + checkUnnamed2727(o.products); checkTransactionData(o.transaction); } buildCounterEcommerceData--; @@ -486,14 +486,14 @@ buildCounterEventData--; } -buildUnnamed2596() { +buildUnnamed2728() { var o = new core.List<api.ReportRequest>(); o.add(buildReportRequest()); o.add(buildReportRequest()); return o; } -checkUnnamed2596(core.List<api.ReportRequest> o) { +checkUnnamed2728(core.List<api.ReportRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequest(o[0]); checkReportRequest(o[1]); @@ -504,7 +504,7 @@ var o = new api.GetReportsRequest(); buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - o.reportRequests = buildUnnamed2596(); + o.reportRequests = buildUnnamed2728(); o.useResourceQuotas = true; } buildCounterGetReportsRequest--; @@ -514,20 +514,20 @@ checkGetReportsRequest(api.GetReportsRequest o) { buildCounterGetReportsRequest++; if (buildCounterGetReportsRequest < 3) { - checkUnnamed2596(o.reportRequests); + checkUnnamed2728(o.reportRequests); unittest.expect(o.useResourceQuotas, unittest.isTrue); } buildCounterGetReportsRequest--; } -buildUnnamed2597() { +buildUnnamed2729() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed2597(core.List<api.Report> o) { +checkUnnamed2729(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -539,7 +539,7 @@ buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { o.queryCost = 42; - o.reports = buildUnnamed2597(); + o.reports = buildUnnamed2729(); o.resourceQuotasRemaining = buildResourceQuotasRemaining(); } buildCounterGetReportsResponse--; @@ -550,7 +550,7 @@ buildCounterGetReportsResponse++; if (buildCounterGetReportsResponse < 3) { unittest.expect(o.queryCost, unittest.equals(42)); - checkUnnamed2597(o.reports); + checkUnnamed2729(o.reports); checkResourceQuotasRemaining(o.resourceQuotasRemaining); } buildCounterGetReportsResponse--; @@ -589,14 +589,14 @@ buildCounterGoalData--; } -buildUnnamed2598() { +buildUnnamed2730() { var o = new core.List<api.GoalData>(); o.add(buildGoalData()); o.add(buildGoalData()); return o; } -checkUnnamed2598(core.List<api.GoalData> o) { +checkUnnamed2730(core.List<api.GoalData> o) { unittest.expect(o, unittest.hasLength(2)); checkGoalData(o[0]); checkGoalData(o[1]); @@ -607,7 +607,7 @@ var o = new api.GoalSetData(); buildCounterGoalSetData++; if (buildCounterGoalSetData < 3) { - o.goals = buildUnnamed2598(); + o.goals = buildUnnamed2730(); } buildCounterGoalSetData--; return o; @@ -616,7 +616,7 @@ checkGoalSetData(api.GoalSetData o) { buildCounterGoalSetData++; if (buildCounterGoalSetData < 3) { - checkUnnamed2598(o.goals); + checkUnnamed2730(o.goals); } buildCounterGoalSetData--; } @@ -669,14 +669,14 @@ buildCounterMetricFilter--; } -buildUnnamed2599() { +buildUnnamed2731() { var o = new core.List<api.MetricFilter>(); o.add(buildMetricFilter()); o.add(buildMetricFilter()); return o; } -checkUnnamed2599(core.List<api.MetricFilter> o) { +checkUnnamed2731(core.List<api.MetricFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilter(o[0]); checkMetricFilter(o[1]); @@ -687,7 +687,7 @@ var o = new api.MetricFilterClause(); buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - o.filters = buildUnnamed2599(); + o.filters = buildUnnamed2731(); o.operator = "foo"; } buildCounterMetricFilterClause--; @@ -697,33 +697,33 @@ checkMetricFilterClause(api.MetricFilterClause o) { buildCounterMetricFilterClause++; if (buildCounterMetricFilterClause < 3) { - checkUnnamed2599(o.filters); + checkUnnamed2731(o.filters); unittest.expect(o.operator, unittest.equals('foo')); } buildCounterMetricFilterClause--; } -buildUnnamed2600() { +buildUnnamed2732() { var o = new core.List<api.MetricHeaderEntry>(); o.add(buildMetricHeaderEntry()); o.add(buildMetricHeaderEntry()); return o; } -checkUnnamed2600(core.List<api.MetricHeaderEntry> o) { +checkUnnamed2732(core.List<api.MetricHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricHeaderEntry(o[0]); checkMetricHeaderEntry(o[1]); } -buildUnnamed2601() { +buildUnnamed2733() { var o = new core.List<api.PivotHeader>(); o.add(buildPivotHeader()); o.add(buildPivotHeader()); return o; } -checkUnnamed2601(core.List<api.PivotHeader> o) { +checkUnnamed2733(core.List<api.PivotHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeader(o[0]); checkPivotHeader(o[1]); @@ -734,8 +734,8 @@ var o = new api.MetricHeader(); buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - o.metricHeaderEntries = buildUnnamed2600(); - o.pivotHeaders = buildUnnamed2601(); + o.metricHeaderEntries = buildUnnamed2732(); + o.pivotHeaders = buildUnnamed2733(); } buildCounterMetricHeader--; return o; @@ -744,8 +744,8 @@ checkMetricHeader(api.MetricHeader o) { buildCounterMetricHeader++; if (buildCounterMetricHeader < 3) { - checkUnnamed2600(o.metricHeaderEntries); - checkUnnamed2601(o.pivotHeaders); + checkUnnamed2732(o.metricHeaderEntries); + checkUnnamed2733(o.pivotHeaders); } buildCounterMetricHeader--; } @@ -771,14 +771,14 @@ buildCounterMetricHeaderEntry--; } -buildUnnamed2602() { +buildUnnamed2734() { var o = new core.List<api.SegmentFilterClause>(); o.add(buildSegmentFilterClause()); o.add(buildSegmentFilterClause()); return o; } -checkUnnamed2602(core.List<api.SegmentFilterClause> o) { +checkUnnamed2734(core.List<api.SegmentFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilterClause(o[0]); checkSegmentFilterClause(o[1]); @@ -789,7 +789,7 @@ var o = new api.OrFiltersForSegment(); buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - o.segmentFilterClauses = buildUnnamed2602(); + o.segmentFilterClauses = buildUnnamed2734(); } buildCounterOrFiltersForSegment--; return o; @@ -798,7 +798,7 @@ checkOrFiltersForSegment(api.OrFiltersForSegment o) { buildCounterOrFiltersForSegment++; if (buildCounterOrFiltersForSegment < 3) { - checkUnnamed2602(o.segmentFilterClauses); + checkUnnamed2734(o.segmentFilterClauses); } buildCounterOrFiltersForSegment--; } @@ -847,40 +847,40 @@ buildCounterPageviewData--; } -buildUnnamed2603() { +buildUnnamed2735() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed2603(core.List<api.DimensionFilterClause> o) { +checkUnnamed2735(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed2604() { +buildUnnamed2736() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2604(core.List<api.Dimension> o) { +checkUnnamed2736(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2605() { +buildUnnamed2737() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2605(core.List<api.Metric> o) { +checkUnnamed2737(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -891,10 +891,10 @@ var o = new api.Pivot(); buildCounterPivot++; if (buildCounterPivot < 3) { - o.dimensionFilterClauses = buildUnnamed2603(); - o.dimensions = buildUnnamed2604(); + o.dimensionFilterClauses = buildUnnamed2735(); + o.dimensions = buildUnnamed2736(); o.maxGroupCount = 42; - o.metrics = buildUnnamed2605(); + o.metrics = buildUnnamed2737(); o.startGroup = 42; } buildCounterPivot--; @@ -904,23 +904,23 @@ checkPivot(api.Pivot o) { buildCounterPivot++; if (buildCounterPivot < 3) { - checkUnnamed2603(o.dimensionFilterClauses); - checkUnnamed2604(o.dimensions); + checkUnnamed2735(o.dimensionFilterClauses); + checkUnnamed2736(o.dimensions); unittest.expect(o.maxGroupCount, unittest.equals(42)); - checkUnnamed2605(o.metrics); + checkUnnamed2737(o.metrics); unittest.expect(o.startGroup, unittest.equals(42)); } buildCounterPivot--; } -buildUnnamed2606() { +buildUnnamed2738() { var o = new core.List<api.PivotHeaderEntry>(); o.add(buildPivotHeaderEntry()); o.add(buildPivotHeaderEntry()); return o; } -checkUnnamed2606(core.List<api.PivotHeaderEntry> o) { +checkUnnamed2738(core.List<api.PivotHeaderEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotHeaderEntry(o[0]); checkPivotHeaderEntry(o[1]); @@ -931,7 +931,7 @@ var o = new api.PivotHeader(); buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - o.pivotHeaderEntries = buildUnnamed2606(); + o.pivotHeaderEntries = buildUnnamed2738(); o.totalPivotGroupsCount = 42; } buildCounterPivotHeader--; @@ -941,33 +941,33 @@ checkPivotHeader(api.PivotHeader o) { buildCounterPivotHeader++; if (buildCounterPivotHeader < 3) { - checkUnnamed2606(o.pivotHeaderEntries); + checkUnnamed2738(o.pivotHeaderEntries); unittest.expect(o.totalPivotGroupsCount, unittest.equals(42)); } buildCounterPivotHeader--; } -buildUnnamed2607() { +buildUnnamed2739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2607(core.List<core.String> o) { +checkUnnamed2739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2608() { +buildUnnamed2740() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2608(core.List<core.String> o) { +checkUnnamed2740(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -978,8 +978,8 @@ var o = new api.PivotHeaderEntry(); buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - o.dimensionNames = buildUnnamed2607(); - o.dimensionValues = buildUnnamed2608(); + o.dimensionNames = buildUnnamed2739(); + o.dimensionValues = buildUnnamed2740(); o.metric = buildMetricHeaderEntry(); } buildCounterPivotHeaderEntry--; @@ -989,21 +989,21 @@ checkPivotHeaderEntry(api.PivotHeaderEntry o) { buildCounterPivotHeaderEntry++; if (buildCounterPivotHeaderEntry < 3) { - checkUnnamed2607(o.dimensionNames); - checkUnnamed2608(o.dimensionValues); + checkUnnamed2739(o.dimensionNames); + checkUnnamed2740(o.dimensionValues); checkMetricHeaderEntry(o.metric); } buildCounterPivotHeaderEntry--; } -buildUnnamed2609() { +buildUnnamed2741() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2609(core.List<core.String> o) { +checkUnnamed2741(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1014,7 +1014,7 @@ var o = new api.PivotValueRegion(); buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - o.values = buildUnnamed2609(); + o.values = buildUnnamed2741(); } buildCounterPivotValueRegion--; return o; @@ -1023,7 +1023,7 @@ checkPivotValueRegion(api.PivotValueRegion o) { buildCounterPivotValueRegion++; if (buildCounterPivotValueRegion < 3) { - checkUnnamed2609(o.values); + checkUnnamed2741(o.values); } buildCounterPivotValueRegion--; } @@ -1076,79 +1076,79 @@ buildCounterReport--; } -buildUnnamed2610() { +buildUnnamed2742() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed2610(core.List<api.DateRangeValues> o) { +checkUnnamed2742(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed2611() { +buildUnnamed2743() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed2611(core.List<api.DateRangeValues> o) { +checkUnnamed2743(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); } -buildUnnamed2612() { +buildUnnamed2744() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed2612(core.List<api.ReportRow> o) { +checkUnnamed2744(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); } -buildUnnamed2613() { +buildUnnamed2745() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2613(core.List<core.String> o) { +checkUnnamed2745(core.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() { +buildUnnamed2746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2614(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')); } -buildUnnamed2615() { +buildUnnamed2747() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed2615(core.List<api.DateRangeValues> o) { +checkUnnamed2747(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1161,13 +1161,13 @@ if (buildCounterReportData < 3) { o.dataLastRefreshed = "foo"; o.isDataGolden = true; - o.maximums = buildUnnamed2610(); - o.minimums = buildUnnamed2611(); + o.maximums = buildUnnamed2742(); + o.minimums = buildUnnamed2743(); o.rowCount = 42; - o.rows = buildUnnamed2612(); - o.samplesReadCounts = buildUnnamed2613(); - o.samplingSpaceSizes = buildUnnamed2614(); - o.totals = buildUnnamed2615(); + o.rows = buildUnnamed2744(); + o.samplesReadCounts = buildUnnamed2745(); + o.samplingSpaceSizes = buildUnnamed2746(); + o.totals = buildUnnamed2747(); } buildCounterReportData--; return o; @@ -1178,116 +1178,116 @@ if (buildCounterReportData < 3) { unittest.expect(o.dataLastRefreshed, unittest.equals('foo')); unittest.expect(o.isDataGolden, unittest.isTrue); - checkUnnamed2610(o.maximums); - checkUnnamed2611(o.minimums); + checkUnnamed2742(o.maximums); + checkUnnamed2743(o.minimums); unittest.expect(o.rowCount, unittest.equals(42)); - checkUnnamed2612(o.rows); - checkUnnamed2613(o.samplesReadCounts); - checkUnnamed2614(o.samplingSpaceSizes); - checkUnnamed2615(o.totals); + checkUnnamed2744(o.rows); + checkUnnamed2745(o.samplesReadCounts); + checkUnnamed2746(o.samplingSpaceSizes); + checkUnnamed2747(o.totals); } buildCounterReportData--; } -buildUnnamed2616() { +buildUnnamed2748() { var o = new core.List<api.DateRange>(); o.add(buildDateRange()); o.add(buildDateRange()); return o; } -checkUnnamed2616(core.List<api.DateRange> o) { +checkUnnamed2748(core.List<api.DateRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRange(o[0]); checkDateRange(o[1]); } -buildUnnamed2617() { +buildUnnamed2749() { var o = new core.List<api.DimensionFilterClause>(); o.add(buildDimensionFilterClause()); o.add(buildDimensionFilterClause()); return o; } -checkUnnamed2617(core.List<api.DimensionFilterClause> o) { +checkUnnamed2749(core.List<api.DimensionFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilterClause(o[0]); checkDimensionFilterClause(o[1]); } -buildUnnamed2618() { +buildUnnamed2750() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed2618(core.List<api.Dimension> o) { +checkUnnamed2750(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed2619() { +buildUnnamed2751() { var o = new core.List<api.MetricFilterClause>(); o.add(buildMetricFilterClause()); o.add(buildMetricFilterClause()); return o; } -checkUnnamed2619(core.List<api.MetricFilterClause> o) { +checkUnnamed2751(core.List<api.MetricFilterClause> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricFilterClause(o[0]); checkMetricFilterClause(o[1]); } -buildUnnamed2620() { +buildUnnamed2752() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed2620(core.List<api.Metric> o) { +checkUnnamed2752(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed2621() { +buildUnnamed2753() { var o = new core.List<api.OrderBy>(); o.add(buildOrderBy()); o.add(buildOrderBy()); return o; } -checkUnnamed2621(core.List<api.OrderBy> o) { +checkUnnamed2753(core.List<api.OrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderBy(o[0]); checkOrderBy(o[1]); } -buildUnnamed2622() { +buildUnnamed2754() { var o = new core.List<api.Pivot>(); o.add(buildPivot()); o.add(buildPivot()); return o; } -checkUnnamed2622(core.List<api.Pivot> o) { +checkUnnamed2754(core.List<api.Pivot> o) { unittest.expect(o, unittest.hasLength(2)); checkPivot(o[0]); checkPivot(o[1]); } -buildUnnamed2623() { +buildUnnamed2755() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed2623(core.List<api.Segment> o) { +checkUnnamed2755(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1299,21 +1299,21 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { o.cohortGroup = buildCohortGroup(); - o.dateRanges = buildUnnamed2616(); - o.dimensionFilterClauses = buildUnnamed2617(); - o.dimensions = buildUnnamed2618(); + o.dateRanges = buildUnnamed2748(); + o.dimensionFilterClauses = buildUnnamed2749(); + o.dimensions = buildUnnamed2750(); o.filtersExpression = "foo"; o.hideTotals = true; o.hideValueRanges = true; o.includeEmptyRows = true; - o.metricFilterClauses = buildUnnamed2619(); - o.metrics = buildUnnamed2620(); - o.orderBys = buildUnnamed2621(); + o.metricFilterClauses = buildUnnamed2751(); + o.metrics = buildUnnamed2752(); + o.orderBys = buildUnnamed2753(); o.pageSize = 42; o.pageToken = "foo"; - o.pivots = buildUnnamed2622(); + o.pivots = buildUnnamed2754(); o.samplingLevel = "foo"; - o.segments = buildUnnamed2623(); + o.segments = buildUnnamed2755(); o.viewId = "foo"; } buildCounterReportRequest--; @@ -1324,47 +1324,47 @@ buildCounterReportRequest++; if (buildCounterReportRequest < 3) { checkCohortGroup(o.cohortGroup); - checkUnnamed2616(o.dateRanges); - checkUnnamed2617(o.dimensionFilterClauses); - checkUnnamed2618(o.dimensions); + checkUnnamed2748(o.dateRanges); + checkUnnamed2749(o.dimensionFilterClauses); + checkUnnamed2750(o.dimensions); unittest.expect(o.filtersExpression, unittest.equals('foo')); unittest.expect(o.hideTotals, unittest.isTrue); unittest.expect(o.hideValueRanges, unittest.isTrue); unittest.expect(o.includeEmptyRows, unittest.isTrue); - checkUnnamed2619(o.metricFilterClauses); - checkUnnamed2620(o.metrics); - checkUnnamed2621(o.orderBys); + checkUnnamed2751(o.metricFilterClauses); + checkUnnamed2752(o.metrics); + checkUnnamed2753(o.orderBys); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed2622(o.pivots); + checkUnnamed2754(o.pivots); unittest.expect(o.samplingLevel, unittest.equals('foo')); - checkUnnamed2623(o.segments); + checkUnnamed2755(o.segments); unittest.expect(o.viewId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed2624() { +buildUnnamed2756() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2624(core.List<core.String> o) { +checkUnnamed2756(core.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() { +buildUnnamed2757() { var o = new core.List<api.DateRangeValues>(); o.add(buildDateRangeValues()); o.add(buildDateRangeValues()); return o; } -checkUnnamed2625(core.List<api.DateRangeValues> o) { +checkUnnamed2757(core.List<api.DateRangeValues> o) { unittest.expect(o, unittest.hasLength(2)); checkDateRangeValues(o[0]); checkDateRangeValues(o[1]); @@ -1375,8 +1375,8 @@ var o = new api.ReportRow(); buildCounterReportRow++; if (buildCounterReportRow < 3) { - o.dimensions = buildUnnamed2624(); - o.metrics = buildUnnamed2625(); + o.dimensions = buildUnnamed2756(); + o.metrics = buildUnnamed2757(); } buildCounterReportRow--; return o; @@ -1385,8 +1385,8 @@ checkReportRow(api.ReportRow o) { buildCounterReportRow++; if (buildCounterReportRow < 3) { - checkUnnamed2624(o.dimensions); - checkUnnamed2625(o.metrics); + checkUnnamed2756(o.dimensions); + checkUnnamed2757(o.metrics); } buildCounterReportRow--; } @@ -1437,14 +1437,14 @@ buildCounterScreenviewData--; } -buildUnnamed2626() { +buildUnnamed2758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2626(core.List<core.String> o) { +checkUnnamed2758(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1455,7 +1455,7 @@ var o = new api.SearchUserActivityRequest(); buildCounterSearchUserActivityRequest++; if (buildCounterSearchUserActivityRequest < 3) { - o.activityTypes = buildUnnamed2626(); + o.activityTypes = buildUnnamed2758(); o.dateRange = buildDateRange(); o.pageSize = 42; o.pageToken = "foo"; @@ -1469,7 +1469,7 @@ checkSearchUserActivityRequest(api.SearchUserActivityRequest o) { buildCounterSearchUserActivityRequest++; if (buildCounterSearchUserActivityRequest < 3) { - checkUnnamed2626(o.activityTypes); + checkUnnamed2758(o.activityTypes); checkDateRange(o.dateRange); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); @@ -1479,14 +1479,14 @@ buildCounterSearchUserActivityRequest--; } -buildUnnamed2627() { +buildUnnamed2759() { var o = new core.List<api.UserActivitySession>(); o.add(buildUserActivitySession()); o.add(buildUserActivitySession()); return o; } -checkUnnamed2627(core.List<api.UserActivitySession> o) { +checkUnnamed2759(core.List<api.UserActivitySession> o) { unittest.expect(o, unittest.hasLength(2)); checkUserActivitySession(o[0]); checkUserActivitySession(o[1]); @@ -1499,7 +1499,7 @@ if (buildCounterSearchUserActivityResponse < 3) { o.nextPageToken = "foo"; o.sampleRate = 42.0; - o.sessions = buildUnnamed2627(); + o.sessions = buildUnnamed2759(); o.totalRows = 42; } buildCounterSearchUserActivityResponse--; @@ -1511,7 +1511,7 @@ if (buildCounterSearchUserActivityResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.sampleRate, unittest.equals(42.0)); - checkUnnamed2627(o.sessions); + checkUnnamed2759(o.sessions); unittest.expect(o.totalRows, unittest.equals(42)); } buildCounterSearchUserActivityResponse--; @@ -1538,14 +1538,14 @@ buildCounterSegment--; } -buildUnnamed2628() { +buildUnnamed2760() { var o = new core.List<api.SegmentFilter>(); o.add(buildSegmentFilter()); o.add(buildSegmentFilter()); return o; } -checkUnnamed2628(core.List<api.SegmentFilter> o) { +checkUnnamed2760(core.List<api.SegmentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentFilter(o[0]); checkSegmentFilter(o[1]); @@ -1556,7 +1556,7 @@ var o = new api.SegmentDefinition(); buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - o.segmentFilters = buildUnnamed2628(); + o.segmentFilters = buildUnnamed2760(); } buildCounterSegmentDefinition--; return o; @@ -1565,19 +1565,19 @@ checkSegmentDefinition(api.SegmentDefinition o) { buildCounterSegmentDefinition++; if (buildCounterSegmentDefinition < 3) { - checkUnnamed2628(o.segmentFilters); + checkUnnamed2760(o.segmentFilters); } buildCounterSegmentDefinition--; } -buildUnnamed2629() { +buildUnnamed2761() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2629(core.List<core.String> o) { +checkUnnamed2761(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1590,7 +1590,7 @@ if (buildCounterSegmentDimensionFilter < 3) { o.caseSensitive = true; o.dimensionName = "foo"; - o.expressions = buildUnnamed2629(); + o.expressions = buildUnnamed2761(); o.maxComparisonValue = "foo"; o.minComparisonValue = "foo"; o.operator = "foo"; @@ -1604,7 +1604,7 @@ if (buildCounterSegmentDimensionFilter < 3) { unittest.expect(o.caseSensitive, unittest.isTrue); unittest.expect(o.dimensionName, unittest.equals('foo')); - checkUnnamed2629(o.expressions); + checkUnnamed2761(o.expressions); unittest.expect(o.maxComparisonValue, unittest.equals('foo')); unittest.expect(o.minComparisonValue, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); @@ -1685,14 +1685,14 @@ buildCounterSegmentMetricFilter--; } -buildUnnamed2630() { +buildUnnamed2762() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed2630(core.List<api.OrFiltersForSegment> o) { +checkUnnamed2762(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1704,7 +1704,7 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { o.matchType = "foo"; - o.orFiltersForSegment = buildUnnamed2630(); + o.orFiltersForSegment = buildUnnamed2762(); } buildCounterSegmentSequenceStep--; return o; @@ -1714,19 +1714,19 @@ buildCounterSegmentSequenceStep++; if (buildCounterSegmentSequenceStep < 3) { unittest.expect(o.matchType, unittest.equals('foo')); - checkUnnamed2630(o.orFiltersForSegment); + checkUnnamed2762(o.orFiltersForSegment); } buildCounterSegmentSequenceStep--; } -buildUnnamed2631() { +buildUnnamed2763() { var o = new core.List<api.SegmentSequenceStep>(); o.add(buildSegmentSequenceStep()); o.add(buildSegmentSequenceStep()); return o; } -checkUnnamed2631(core.List<api.SegmentSequenceStep> o) { +checkUnnamed2763(core.List<api.SegmentSequenceStep> o) { unittest.expect(o, unittest.hasLength(2)); checkSegmentSequenceStep(o[0]); checkSegmentSequenceStep(o[1]); @@ -1738,7 +1738,7 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { o.firstStepShouldMatchFirstHit = true; - o.segmentSequenceSteps = buildUnnamed2631(); + o.segmentSequenceSteps = buildUnnamed2763(); } buildCounterSequenceSegment--; return o; @@ -1748,19 +1748,19 @@ buildCounterSequenceSegment++; if (buildCounterSequenceSegment < 3) { unittest.expect(o.firstStepShouldMatchFirstHit, unittest.isTrue); - checkUnnamed2631(o.segmentSequenceSteps); + checkUnnamed2763(o.segmentSequenceSteps); } buildCounterSequenceSegment--; } -buildUnnamed2632() { +buildUnnamed2764() { var o = new core.List<api.OrFiltersForSegment>(); o.add(buildOrFiltersForSegment()); o.add(buildOrFiltersForSegment()); return o; } -checkUnnamed2632(core.List<api.OrFiltersForSegment> o) { +checkUnnamed2764(core.List<api.OrFiltersForSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrFiltersForSegment(o[0]); checkOrFiltersForSegment(o[1]); @@ -1771,7 +1771,7 @@ var o = new api.SimpleSegment(); buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - o.orFiltersForSegment = buildUnnamed2632(); + o.orFiltersForSegment = buildUnnamed2764(); } buildCounterSimpleSegment--; return o; @@ -1780,7 +1780,7 @@ checkSimpleSegment(api.SimpleSegment o) { buildCounterSimpleSegment++; if (buildCounterSimpleSegment < 3) { - checkUnnamed2632(o.orFiltersForSegment); + checkUnnamed2764(o.orFiltersForSegment); } buildCounterSimpleSegment--; } @@ -1831,14 +1831,14 @@ buildCounterUser--; } -buildUnnamed2633() { +buildUnnamed2765() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed2633(core.List<api.Activity> o) { +checkUnnamed2765(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -1849,7 +1849,7 @@ var o = new api.UserActivitySession(); buildCounterUserActivitySession++; if (buildCounterUserActivitySession < 3) { - o.activities = buildUnnamed2633(); + o.activities = buildUnnamed2765(); o.dataSource = "foo"; o.deviceCategory = "foo"; o.platform = "foo"; @@ -1863,7 +1863,7 @@ checkUserActivitySession(api.UserActivitySession o) { buildCounterUserActivitySession++; if (buildCounterUserActivitySession < 3) { - checkUnnamed2633(o.activities); + checkUnnamed2765(o.activities); unittest.expect(o.dataSource, unittest.equals('foo')); unittest.expect(o.deviceCategory, unittest.equals('foo')); unittest.expect(o.platform, unittest.equals('foo'));
diff --git a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart index c042ab0..d066a3b 100644 --- a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart +++ b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
@@ -96,14 +96,14 @@ buildCounterClaimDeviceResponse--; } -buildUnnamed2535() { +buildUnnamed2657() { var o = new core.List<api.PartnerClaim>(); o.add(buildPartnerClaim()); o.add(buildPartnerClaim()); return o; } -checkUnnamed2535(core.List<api.PartnerClaim> o) { +checkUnnamed2657(core.List<api.PartnerClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerClaim(o[0]); checkPartnerClaim(o[1]); @@ -114,7 +114,7 @@ var o = new api.ClaimDevicesRequest(); buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - o.claims = buildUnnamed2535(); + o.claims = buildUnnamed2657(); } buildCounterClaimDevicesRequest--; return o; @@ -123,32 +123,32 @@ checkClaimDevicesRequest(api.ClaimDevicesRequest o) { buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - checkUnnamed2535(o.claims); + checkUnnamed2657(o.claims); } buildCounterClaimDevicesRequest--; } -buildUnnamed2536() { +buildUnnamed2658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2536(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')); } -buildUnnamed2537() { +buildUnnamed2659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2537(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')); @@ -159,11 +159,11 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.adminEmails = buildUnnamed2536(); + o.adminEmails = buildUnnamed2658(); o.companyId = "foo"; o.companyName = "foo"; o.name = "foo"; - o.ownerEmails = buildUnnamed2537(); + o.ownerEmails = buildUnnamed2659(); o.termsStatus = "foo"; } buildCounterCompany--; @@ -173,11 +173,11 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed2536(o.adminEmails); + checkUnnamed2658(o.adminEmails); unittest.expect(o.companyId, unittest.equals('foo')); unittest.expect(o.companyName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2537(o.ownerEmails); + checkUnnamed2659(o.ownerEmails); unittest.expect(o.termsStatus, unittest.equals('foo')); } buildCounterCompany--; @@ -261,14 +261,14 @@ buildCounterCustomerApplyConfigurationRequest--; } -buildUnnamed2538() { +buildUnnamed2660() { var o = new core.List<api.Configuration>(); o.add(buildConfiguration()); o.add(buildConfiguration()); return o; } -checkUnnamed2538(core.List<api.Configuration> o) { +checkUnnamed2660(core.List<api.Configuration> o) { unittest.expect(o, unittest.hasLength(2)); checkConfiguration(o[0]); checkConfiguration(o[1]); @@ -279,7 +279,7 @@ var o = new api.CustomerListConfigurationsResponse(); buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - o.configurations = buildUnnamed2538(); + o.configurations = buildUnnamed2660(); } buildCounterCustomerListConfigurationsResponse--; return o; @@ -289,19 +289,19 @@ api.CustomerListConfigurationsResponse o) { buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - checkUnnamed2538(o.configurations); + checkUnnamed2660(o.configurations); } buildCounterCustomerListConfigurationsResponse--; } -buildUnnamed2539() { +buildUnnamed2661() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2539(core.List<api.Company> o) { +checkUnnamed2661(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -312,7 +312,7 @@ var o = new api.CustomerListCustomersResponse(); buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - o.customers = buildUnnamed2539(); + o.customers = buildUnnamed2661(); o.nextPageToken = "foo"; } buildCounterCustomerListCustomersResponse--; @@ -322,20 +322,20 @@ checkCustomerListCustomersResponse(api.CustomerListCustomersResponse o) { buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - checkUnnamed2539(o.customers); + checkUnnamed2661(o.customers); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListCustomersResponse--; } -buildUnnamed2540() { +buildUnnamed2662() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2540(core.List<api.Device> o) { +checkUnnamed2662(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -346,7 +346,7 @@ var o = new api.CustomerListDevicesResponse(); buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - o.devices = buildUnnamed2540(); + o.devices = buildUnnamed2662(); o.nextPageToken = "foo"; } buildCounterCustomerListDevicesResponse--; @@ -356,20 +356,20 @@ checkCustomerListDevicesResponse(api.CustomerListDevicesResponse o) { buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - checkUnnamed2540(o.devices); + checkUnnamed2662(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListDevicesResponse--; } -buildUnnamed2541() { +buildUnnamed2663() { var o = new core.List<api.Dpc>(); o.add(buildDpc()); o.add(buildDpc()); return o; } -checkUnnamed2541(core.List<api.Dpc> o) { +checkUnnamed2663(core.List<api.Dpc> o) { unittest.expect(o, unittest.hasLength(2)); checkDpc(o[0]); checkDpc(o[1]); @@ -380,7 +380,7 @@ var o = new api.CustomerListDpcsResponse(); buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - o.dpcs = buildUnnamed2541(); + o.dpcs = buildUnnamed2663(); } buildCounterCustomerListDpcsResponse--; return o; @@ -389,7 +389,7 @@ checkCustomerListDpcsResponse(api.CustomerListDpcsResponse o) { buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - checkUnnamed2541(o.dpcs); + checkUnnamed2663(o.dpcs); } buildCounterCustomerListDpcsResponse--; } @@ -433,14 +433,14 @@ buildCounterCustomerUnclaimDeviceRequest--; } -buildUnnamed2542() { +buildUnnamed2664() { var o = new core.List<api.DeviceClaim>(); o.add(buildDeviceClaim()); o.add(buildDeviceClaim()); return o; } -checkUnnamed2542(core.List<api.DeviceClaim> o) { +checkUnnamed2664(core.List<api.DeviceClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceClaim(o[0]); checkDeviceClaim(o[1]); @@ -451,7 +451,7 @@ var o = new api.Device(); buildCounterDevice++; if (buildCounterDevice < 3) { - o.claims = buildUnnamed2542(); + o.claims = buildUnnamed2664(); o.configuration = "foo"; o.deviceId = "foo"; o.deviceIdentifier = buildDeviceIdentifier(); @@ -465,7 +465,7 @@ checkDevice(api.Device o) { buildCounterDevice++; if (buildCounterDevice < 3) { - checkUnnamed2542(o.claims); + checkUnnamed2664(o.claims); unittest.expect(o.configuration, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); checkDeviceIdentifier(o.deviceIdentifier); @@ -529,14 +529,14 @@ buildCounterDeviceIdentifier--; } -buildUnnamed2543() { +buildUnnamed2665() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2543(core.Map<core.String, core.String> o) { +checkUnnamed2665(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')); @@ -547,7 +547,7 @@ var o = new api.DeviceMetadata(); buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - o.entries = buildUnnamed2543(); + o.entries = buildUnnamed2665(); } buildCounterDeviceMetadata--; return o; @@ -556,7 +556,7 @@ checkDeviceMetadata(api.DeviceMetadata o) { buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - checkUnnamed2543(o.entries); + checkUnnamed2665(o.entries); } buildCounterDeviceMetadata--; } @@ -606,14 +606,14 @@ buildCounterDevicesLongRunningOperationMetadata--; } -buildUnnamed2544() { +buildUnnamed2666() { var o = new core.List<api.OperationPerDevice>(); o.add(buildOperationPerDevice()); o.add(buildOperationPerDevice()); return o; } -checkUnnamed2544(core.List<api.OperationPerDevice> o) { +checkUnnamed2666(core.List<api.OperationPerDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationPerDevice(o[0]); checkOperationPerDevice(o[1]); @@ -624,7 +624,7 @@ var o = new api.DevicesLongRunningOperationResponse(); buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - o.perDeviceStatus = buildUnnamed2544(); + o.perDeviceStatus = buildUnnamed2666(); o.successCount = 42; } buildCounterDevicesLongRunningOperationResponse--; @@ -635,7 +635,7 @@ api.DevicesLongRunningOperationResponse o) { buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - checkUnnamed2544(o.perDeviceStatus); + checkUnnamed2666(o.perDeviceStatus); unittest.expect(o.successCount, unittest.equals(42)); } buildCounterDevicesLongRunningOperationResponse--; @@ -703,14 +703,14 @@ buildCounterFindDevicesByDeviceIdentifierRequest--; } -buildUnnamed2545() { +buildUnnamed2667() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2545(core.List<api.Device> o) { +checkUnnamed2667(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -721,7 +721,7 @@ var o = new api.FindDevicesByDeviceIdentifierResponse(); buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - o.devices = buildUnnamed2545(); + o.devices = buildUnnamed2667(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -733,21 +733,21 @@ api.FindDevicesByDeviceIdentifierResponse o) { buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - checkUnnamed2545(o.devices); + checkUnnamed2667(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterFindDevicesByDeviceIdentifierResponse--; } -buildUnnamed2546() { +buildUnnamed2668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2546(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')); @@ -758,7 +758,7 @@ var o = new api.FindDevicesByOwnerRequest(); buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - o.customerId = buildUnnamed2546(); + o.customerId = buildUnnamed2668(); o.limit = "foo"; o.pageToken = "foo"; o.sectionType = "foo"; @@ -770,7 +770,7 @@ checkFindDevicesByOwnerRequest(api.FindDevicesByOwnerRequest o) { buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - checkUnnamed2546(o.customerId); + checkUnnamed2668(o.customerId); unittest.expect(o.limit, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.sectionType, unittest.equals('foo')); @@ -778,14 +778,14 @@ buildCounterFindDevicesByOwnerRequest--; } -buildUnnamed2547() { +buildUnnamed2669() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2547(core.List<api.Device> o) { +checkUnnamed2669(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -796,7 +796,7 @@ var o = new api.FindDevicesByOwnerResponse(); buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - o.devices = buildUnnamed2547(); + o.devices = buildUnnamed2669(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -807,21 +807,21 @@ checkFindDevicesByOwnerResponse(api.FindDevicesByOwnerResponse o) { buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - checkUnnamed2547(o.devices); + checkUnnamed2669(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterFindDevicesByOwnerResponse--; } -buildUnnamed2548() { +buildUnnamed2670() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2548(core.List<api.Company> o) { +checkUnnamed2670(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -832,7 +832,7 @@ var o = new api.ListCustomersResponse(); buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - o.customers = buildUnnamed2548(); + o.customers = buildUnnamed2670(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -843,21 +843,21 @@ checkListCustomersResponse(api.ListCustomersResponse o) { buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - checkUnnamed2548(o.customers); + checkUnnamed2670(o.customers); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCustomersResponse--; } -buildUnnamed2549() { +buildUnnamed2671() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2549(core.List<api.Company> o) { +checkUnnamed2671(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -868,7 +868,7 @@ var o = new api.ListVendorCustomersResponse(); buildCounterListVendorCustomersResponse++; if (buildCounterListVendorCustomersResponse < 3) { - o.customers = buildUnnamed2549(); + o.customers = buildUnnamed2671(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -879,21 +879,21 @@ checkListVendorCustomersResponse(api.ListVendorCustomersResponse o) { buildCounterListVendorCustomersResponse++; if (buildCounterListVendorCustomersResponse < 3) { - checkUnnamed2549(o.customers); + checkUnnamed2671(o.customers); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListVendorCustomersResponse--; } -buildUnnamed2550() { +buildUnnamed2672() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed2550(core.List<api.Company> o) { +checkUnnamed2672(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -906,7 +906,7 @@ if (buildCounterListVendorsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.vendors = buildUnnamed2550(); + o.vendors = buildUnnamed2672(); } buildCounterListVendorsResponse--; return o; @@ -917,12 +917,12 @@ if (buildCounterListVendorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed2550(o.vendors); + checkUnnamed2672(o.vendors); } buildCounterListVendorsResponse--; } -buildUnnamed2551() { +buildUnnamed2673() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -937,7 +937,7 @@ return o; } -checkUnnamed2551(core.Map<core.String, core.Object> o) { +checkUnnamed2673(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)); @@ -951,7 +951,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2552() { +buildUnnamed2674() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -966,7 +966,7 @@ return o; } -checkUnnamed2552(core.Map<core.String, core.Object> o) { +checkUnnamed2674(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)); @@ -987,9 +987,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2551(); + o.metadata = buildUnnamed2673(); o.name = "foo"; - o.response = buildUnnamed2552(); + o.response = buildUnnamed2674(); } buildCounterOperation--; return o; @@ -1000,9 +1000,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2551(o.metadata); + checkUnnamed2673(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2552(o.response); + checkUnnamed2674(o.response); } buildCounterOperation--; } @@ -1109,7 +1109,7 @@ buildCounterPerDeviceStatusInBatch--; } -buildUnnamed2553() { +buildUnnamed2675() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1124,7 +1124,7 @@ return o; } -checkUnnamed2553(core.Map<core.String, core.Object> o) { +checkUnnamed2675(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)); @@ -1138,17 +1138,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2554() { +buildUnnamed2676() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2553()); - o.add(buildUnnamed2553()); + o.add(buildUnnamed2675()); + o.add(buildUnnamed2675()); return o; } -checkUnnamed2554(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2676(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2553(o[0]); - checkUnnamed2553(o[1]); + checkUnnamed2675(o[0]); + checkUnnamed2675(o[1]); } core.int buildCounterStatus = 0; @@ -1157,7 +1157,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2554(); + o.details = buildUnnamed2676(); o.message = "foo"; } buildCounterStatus--; @@ -1168,7 +1168,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2554(o.details); + checkUnnamed2676(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1201,14 +1201,14 @@ buildCounterUnclaimDeviceRequest--; } -buildUnnamed2555() { +buildUnnamed2677() { var o = new core.List<api.PartnerUnclaim>(); o.add(buildPartnerUnclaim()); o.add(buildPartnerUnclaim()); return o; } -checkUnnamed2555(core.List<api.PartnerUnclaim> o) { +checkUnnamed2677(core.List<api.PartnerUnclaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerUnclaim(o[0]); checkPartnerUnclaim(o[1]); @@ -1219,7 +1219,7 @@ var o = new api.UnclaimDevicesRequest(); buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - o.unclaims = buildUnnamed2555(); + o.unclaims = buildUnnamed2677(); } buildCounterUnclaimDevicesRequest--; return o; @@ -1228,19 +1228,19 @@ checkUnclaimDevicesRequest(api.UnclaimDevicesRequest o) { buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - checkUnnamed2555(o.unclaims); + checkUnnamed2677(o.unclaims); } buildCounterUnclaimDevicesRequest--; } -buildUnnamed2556() { +buildUnnamed2678() { var o = new core.List<api.UpdateMetadataArguments>(); o.add(buildUpdateMetadataArguments()); o.add(buildUpdateMetadataArguments()); return o; } -checkUnnamed2556(core.List<api.UpdateMetadataArguments> o) { +checkUnnamed2678(core.List<api.UpdateMetadataArguments> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateMetadataArguments(o[0]); checkUpdateMetadataArguments(o[1]); @@ -1251,7 +1251,7 @@ var o = new api.UpdateDeviceMetadataInBatchRequest(); buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - o.updates = buildUnnamed2556(); + o.updates = buildUnnamed2678(); } buildCounterUpdateDeviceMetadataInBatchRequest--; return o; @@ -1261,7 +1261,7 @@ api.UpdateDeviceMetadataInBatchRequest o) { buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - checkUnnamed2556(o.updates); + checkUnnamed2678(o.updates); } buildCounterUpdateDeviceMetadataInBatchRequest--; } @@ -2420,8 +2420,8 @@ api.PartnersCustomersResourceApi res = new api.AndroiddeviceprovisioningApi(mock).partners.customers; var arg_partnerId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2454,10 +2454,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2468,8 +2468,8 @@ }), true); res .list(arg_partnerId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCustomersResponse(response);
diff --git a/generated/googleapis/test/androidenterprise/v1_test.dart b/generated/googleapis/test/androidenterprise/v1_test.dart index 65e7234..2bd29b1 100644 --- a/generated/googleapis/test/androidenterprise/v1_test.dart +++ b/generated/googleapis/test/androidenterprise/v1_test.dart
@@ -74,7 +74,6 @@ var o = new api.AdministratorWebToken(); buildCounterAdministratorWebToken++; if (buildCounterAdministratorWebToken < 3) { - o.kind = "foo"; o.token = "foo"; } buildCounterAdministratorWebToken--; @@ -84,20 +83,19 @@ checkAdministratorWebToken(api.AdministratorWebToken o) { buildCounterAdministratorWebToken++; if (buildCounterAdministratorWebToken < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.token, unittest.equals('foo')); } buildCounterAdministratorWebToken--; } -buildUnnamed2327() { +buildUnnamed2439() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2327(core.List<core.String> o) { +checkUnnamed2439(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -108,11 +106,10 @@ var o = new api.AdministratorWebTokenSpec(); buildCounterAdministratorWebTokenSpec++; if (buildCounterAdministratorWebTokenSpec < 3) { - o.kind = "foo"; o.managedConfigurations = buildAdministratorWebTokenSpecManagedConfigurations(); o.parent = "foo"; - o.permission = buildUnnamed2327(); + o.permission = buildUnnamed2439(); o.playSearch = buildAdministratorWebTokenSpecPlaySearch(); o.privateApps = buildAdministratorWebTokenSpecPrivateApps(); o.storeBuilder = buildAdministratorWebTokenSpecStoreBuilder(); @@ -125,11 +122,10 @@ checkAdministratorWebTokenSpec(api.AdministratorWebTokenSpec o) { buildCounterAdministratorWebTokenSpec++; if (buildCounterAdministratorWebTokenSpec < 3) { - unittest.expect(o.kind, unittest.equals('foo')); checkAdministratorWebTokenSpecManagedConfigurations( o.managedConfigurations); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2327(o.permission); + checkUnnamed2439(o.permission); checkAdministratorWebTokenSpecPlaySearch(o.playSearch); checkAdministratorWebTokenSpecPrivateApps(o.privateApps); checkAdministratorWebTokenSpecStoreBuilder(o.storeBuilder); @@ -239,14 +235,14 @@ buildCounterAdministratorWebTokenSpecWebApps--; } -buildUnnamed2328() { +buildUnnamed2440() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2328(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2440(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -258,7 +254,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { o.kind = "foo"; - o.restrictions = buildUnnamed2328(); + o.restrictions = buildUnnamed2440(); } buildCounterAppRestrictionsSchema--; return o; @@ -268,7 +264,7 @@ buildCounterAppRestrictionsSchema++; if (buildCounterAppRestrictionsSchema < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2328(o.restrictions); + checkUnnamed2440(o.restrictions); } buildCounterAppRestrictionsSchema--; } @@ -292,40 +288,40 @@ buildCounterAppRestrictionsSchemaChangeEvent--; } -buildUnnamed2329() { +buildUnnamed2441() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2329(core.List<core.String> o) { +checkUnnamed2441(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2330() { +buildUnnamed2442() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2330(core.List<core.String> o) { +checkUnnamed2442(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2331() { +buildUnnamed2443() { var o = new core.List<api.AppRestrictionsSchemaRestriction>(); o.add(buildAppRestrictionsSchemaRestriction()); o.add(buildAppRestrictionsSchemaRestriction()); return o; } -checkUnnamed2331(core.List<api.AppRestrictionsSchemaRestriction> o) { +checkUnnamed2443(core.List<api.AppRestrictionsSchemaRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkAppRestrictionsSchemaRestriction(o[0]); checkAppRestrictionsSchemaRestriction(o[1]); @@ -338,10 +334,10 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { o.defaultValue = buildAppRestrictionsSchemaRestrictionRestrictionValue(); o.description = "foo"; - o.entry = buildUnnamed2329(); - o.entryValue = buildUnnamed2330(); + o.entry = buildUnnamed2441(); + o.entryValue = buildUnnamed2442(); o.key = "foo"; - o.nestedRestriction = buildUnnamed2331(); + o.nestedRestriction = buildUnnamed2443(); o.restrictionType = "foo"; o.title = "foo"; } @@ -354,24 +350,24 @@ if (buildCounterAppRestrictionsSchemaRestriction < 3) { checkAppRestrictionsSchemaRestrictionRestrictionValue(o.defaultValue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2329(o.entry); - checkUnnamed2330(o.entryValue); + checkUnnamed2441(o.entry); + checkUnnamed2442(o.entryValue); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed2331(o.nestedRestriction); + checkUnnamed2443(o.nestedRestriction); unittest.expect(o.restrictionType, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestriction--; } -buildUnnamed2332() { +buildUnnamed2444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2332(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')); @@ -385,7 +381,7 @@ o.type = "foo"; o.valueBool = true; o.valueInteger = 42; - o.valueMultiselect = buildUnnamed2332(); + o.valueMultiselect = buildUnnamed2444(); o.valueString = "foo"; } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; @@ -399,20 +395,20 @@ unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); unittest.expect(o.valueInteger, unittest.equals(42)); - checkUnnamed2332(o.valueMultiselect); + checkUnnamed2444(o.valueMultiselect); unittest.expect(o.valueString, unittest.equals('foo')); } buildCounterAppRestrictionsSchemaRestrictionRestrictionValue--; } -buildUnnamed2333() { +buildUnnamed2445() { var o = new core.List<api.KeyedAppState>(); o.add(buildKeyedAppState()); o.add(buildKeyedAppState()); return o; } -checkUnnamed2333(core.List<api.KeyedAppState> o) { +checkUnnamed2445(core.List<api.KeyedAppState> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyedAppState(o[0]); checkKeyedAppState(o[1]); @@ -423,7 +419,7 @@ var o = new api.AppState(); buildCounterAppState++; if (buildCounterAppState < 3) { - o.keyedAppState = buildUnnamed2333(); + o.keyedAppState = buildUnnamed2445(); o.packageName = "foo"; } buildCounterAppState--; @@ -433,7 +429,7 @@ checkAppState(api.AppState o) { buildCounterAppState++; if (buildCounterAppState < 3) { - checkUnnamed2333(o.keyedAppState); + checkUnnamed2445(o.keyedAppState); unittest.expect(o.packageName, unittest.equals('foo')); } buildCounterAppState--; @@ -458,14 +454,14 @@ buildCounterAppUpdateEvent--; } -buildUnnamed2334() { +buildUnnamed2446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2334(core.List<core.String> o) { +checkUnnamed2446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -478,7 +474,7 @@ if (buildCounterAppVersion < 3) { o.isProduction = true; o.track = "foo"; - o.trackId = buildUnnamed2334(); + o.trackId = buildUnnamed2446(); o.versionCode = 42; o.versionString = "foo"; } @@ -491,7 +487,7 @@ if (buildCounterAppVersion < 3) { unittest.expect(o.isProduction, unittest.isTrue); unittest.expect(o.track, unittest.equals('foo')); - checkUnnamed2334(o.trackId); + checkUnnamed2446(o.trackId); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionString, unittest.equals('foo')); } @@ -504,7 +500,6 @@ buildCounterApprovalUrlInfo++; if (buildCounterApprovalUrlInfo < 3) { o.approvalUrl = "foo"; - o.kind = "foo"; } buildCounterApprovalUrlInfo--; return o; @@ -514,7 +509,6 @@ buildCounterApprovalUrlInfo++; if (buildCounterApprovalUrlInfo < 3) { unittest.expect(o.approvalUrl, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApprovalUrlInfo--; } @@ -524,7 +518,6 @@ var o = new api.AuthenticationToken(); buildCounterAuthenticationToken++; if (buildCounterAuthenticationToken < 3) { - o.kind = "foo"; o.token = "foo"; } buildCounterAuthenticationToken--; @@ -534,7 +527,6 @@ checkAuthenticationToken(api.AuthenticationToken o) { buildCounterAuthenticationToken++; if (buildCounterAuthenticationToken < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.token, unittest.equals('foo')); } buildCounterAuthenticationToken--; @@ -563,14 +555,14 @@ buildCounterAutoInstallConstraint--; } -buildUnnamed2335() { +buildUnnamed2447() { var o = new core.List<api.AutoInstallConstraint>(); o.add(buildAutoInstallConstraint()); o.add(buildAutoInstallConstraint()); return o; } -checkUnnamed2335(core.List<api.AutoInstallConstraint> o) { +checkUnnamed2447(core.List<api.AutoInstallConstraint> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoInstallConstraint(o[0]); checkAutoInstallConstraint(o[1]); @@ -581,7 +573,7 @@ var o = new api.AutoInstallPolicy(); buildCounterAutoInstallPolicy++; if (buildCounterAutoInstallPolicy < 3) { - o.autoInstallConstraint = buildUnnamed2335(); + o.autoInstallConstraint = buildUnnamed2447(); o.autoInstallMode = "foo"; o.autoInstallPriority = 42; o.minimumVersionCode = 42; @@ -593,7 +585,7 @@ checkAutoInstallPolicy(api.AutoInstallPolicy o) { buildCounterAutoInstallPolicy++; if (buildCounterAutoInstallPolicy < 3) { - checkUnnamed2335(o.autoInstallConstraint); + checkUnnamed2447(o.autoInstallConstraint); unittest.expect(o.autoInstallMode, unittest.equals('foo')); unittest.expect(o.autoInstallPriority, unittest.equals(42)); unittest.expect(o.minimumVersionCode, unittest.equals(42)); @@ -601,14 +593,14 @@ buildCounterAutoInstallPolicy--; } -buildUnnamed2336() { +buildUnnamed2448() { var o = new core.List<api.VariableSet>(); o.add(buildVariableSet()); o.add(buildVariableSet()); return o; } -checkUnnamed2336(core.List<api.VariableSet> o) { +checkUnnamed2448(core.List<api.VariableSet> o) { unittest.expect(o, unittest.hasLength(2)); checkVariableSet(o[0]); checkVariableSet(o[1]); @@ -619,9 +611,8 @@ var o = new api.ConfigurationVariables(); buildCounterConfigurationVariables++; if (buildCounterConfigurationVariables < 3) { - o.kind = "foo"; o.mcmId = "foo"; - o.variableSet = buildUnnamed2336(); + o.variableSet = buildUnnamed2448(); } buildCounterConfigurationVariables--; return o; @@ -630,9 +621,8 @@ checkConfigurationVariables(api.ConfigurationVariables o) { buildCounterConfigurationVariables++; if (buildCounterConfigurationVariables < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mcmId, unittest.equals('foo')); - checkUnnamed2336(o.variableSet); + checkUnnamed2448(o.variableSet); } buildCounterConfigurationVariables--; } @@ -643,7 +633,6 @@ buildCounterDevice++; if (buildCounterDevice < 3) { o.androidId = "foo"; - o.kind = "foo"; o.managementType = "foo"; o.policy = buildPolicy(); o.report = buildDeviceReport(); @@ -656,7 +645,6 @@ buildCounterDevice++; if (buildCounterDevice < 3) { unittest.expect(o.androidId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.managementType, unittest.equals('foo')); checkPolicy(o.policy); checkDeviceReport(o.report); @@ -664,14 +652,14 @@ buildCounterDevice--; } -buildUnnamed2337() { +buildUnnamed2449() { var o = new core.List<api.AppState>(); o.add(buildAppState()); o.add(buildAppState()); return o; } -checkUnnamed2337(core.List<api.AppState> o) { +checkUnnamed2449(core.List<api.AppState> o) { unittest.expect(o, unittest.hasLength(2)); checkAppState(o[0]); checkAppState(o[1]); @@ -682,7 +670,7 @@ var o = new api.DeviceReport(); buildCounterDeviceReport++; if (buildCounterDeviceReport < 3) { - o.appState = buildUnnamed2337(); + o.appState = buildUnnamed2449(); o.lastUpdatedTimestampMillis = "foo"; } buildCounterDeviceReport--; @@ -692,7 +680,7 @@ checkDeviceReport(api.DeviceReport o) { buildCounterDeviceReport++; if (buildCounterDeviceReport < 3) { - checkUnnamed2337(o.appState); + checkUnnamed2449(o.appState); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); } buildCounterDeviceReport--; @@ -727,7 +715,6 @@ buildCounterDeviceState++; if (buildCounterDeviceState < 3) { o.accountState = "foo"; - o.kind = "foo"; } buildCounterDeviceState--; return o; @@ -737,19 +724,18 @@ buildCounterDeviceState++; if (buildCounterDeviceState < 3) { unittest.expect(o.accountState, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDeviceState--; } -buildUnnamed2338() { +buildUnnamed2450() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed2338(core.List<api.Device> o) { +checkUnnamed2450(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -760,8 +746,7 @@ var o = new api.DevicesListResponse(); buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - o.device = buildUnnamed2338(); - o.kind = "foo"; + o.device = buildUnnamed2450(); } buildCounterDevicesListResponse--; return o; @@ -770,20 +755,19 @@ checkDevicesListResponse(api.DevicesListResponse o) { buildCounterDevicesListResponse++; if (buildCounterDevicesListResponse < 3) { - checkUnnamed2338(o.device); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2450(o.device); } buildCounterDevicesListResponse--; } -buildUnnamed2339() { +buildUnnamed2451() { var o = new core.List<api.Administrator>(); o.add(buildAdministrator()); o.add(buildAdministrator()); return o; } -checkUnnamed2339(core.List<api.Administrator> o) { +checkUnnamed2451(core.List<api.Administrator> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrator(o[0]); checkAdministrator(o[1]); @@ -794,9 +778,8 @@ var o = new api.Enterprise(); buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - o.administrator = buildUnnamed2339(); + o.administrator = buildUnnamed2451(); o.id = "foo"; - o.kind = "foo"; o.name = "foo"; o.primaryDomain = "foo"; } @@ -807,9 +790,8 @@ checkEnterprise(api.Enterprise o) { buildCounterEnterprise++; if (buildCounterEnterprise < 3) { - checkUnnamed2339(o.administrator); + checkUnnamed2451(o.administrator); unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.primaryDomain, unittest.equals('foo')); } @@ -822,7 +804,6 @@ buildCounterEnterpriseAccount++; if (buildCounterEnterpriseAccount < 3) { o.accountEmail = "foo"; - o.kind = "foo"; } buildCounterEnterpriseAccount--; return o; @@ -832,19 +813,18 @@ buildCounterEnterpriseAccount++; if (buildCounterEnterpriseAccount < 3) { unittest.expect(o.accountEmail, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEnterpriseAccount--; } -buildUnnamed2340() { +buildUnnamed2452() { var o = new core.List<api.Enterprise>(); o.add(buildEnterprise()); o.add(buildEnterprise()); return o; } -checkUnnamed2340(core.List<api.Enterprise> o) { +checkUnnamed2452(core.List<api.Enterprise> o) { unittest.expect(o, unittest.hasLength(2)); checkEnterprise(o[0]); checkEnterprise(o[1]); @@ -855,8 +835,7 @@ var o = new api.EnterprisesListResponse(); buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - o.enterprise = buildUnnamed2340(); - o.kind = "foo"; + o.enterprise = buildUnnamed2452(); } buildCounterEnterprisesListResponse--; return o; @@ -865,8 +844,7 @@ checkEnterprisesListResponse(api.EnterprisesListResponse o) { buildCounterEnterprisesListResponse++; if (buildCounterEnterprisesListResponse < 3) { - checkUnnamed2340(o.enterprise); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2452(o.enterprise); } buildCounterEnterprisesListResponse--; } @@ -898,7 +876,6 @@ var o = new api.Entitlement(); buildCounterEntitlement++; if (buildCounterEntitlement < 3) { - o.kind = "foo"; o.productId = "foo"; o.reason = "foo"; } @@ -909,21 +886,20 @@ checkEntitlement(api.Entitlement o) { buildCounterEntitlement++; if (buildCounterEntitlement < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); } buildCounterEntitlement--; } -buildUnnamed2341() { +buildUnnamed2453() { var o = new core.List<api.Entitlement>(); o.add(buildEntitlement()); o.add(buildEntitlement()); return o; } -checkUnnamed2341(core.List<api.Entitlement> o) { +checkUnnamed2453(core.List<api.Entitlement> o) { unittest.expect(o, unittest.hasLength(2)); checkEntitlement(o[0]); checkEntitlement(o[1]); @@ -934,8 +910,7 @@ var o = new api.EntitlementsListResponse(); buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - o.entitlement = buildUnnamed2341(); - o.kind = "foo"; + o.entitlement = buildUnnamed2453(); } buildCounterEntitlementsListResponse--; return o; @@ -944,8 +919,7 @@ checkEntitlementsListResponse(api.EntitlementsListResponse o) { buildCounterEntitlementsListResponse++; if (buildCounterEntitlementsListResponse < 3) { - checkUnnamed2341(o.entitlement); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2453(o.entitlement); } buildCounterEntitlementsListResponse--; } @@ -957,7 +931,6 @@ if (buildCounterGroupLicense < 3) { o.acquisitionKind = "foo"; o.approval = "foo"; - o.kind = "foo"; o.numProvisioned = 42; o.numPurchased = 42; o.permissions = "foo"; @@ -972,7 +945,6 @@ if (buildCounterGroupLicense < 3) { unittest.expect(o.acquisitionKind, unittest.equals('foo')); unittest.expect(o.approval, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.numProvisioned, unittest.equals(42)); unittest.expect(o.numPurchased, unittest.equals(42)); unittest.expect(o.permissions, unittest.equals('foo')); @@ -981,14 +953,14 @@ buildCounterGroupLicense--; } -buildUnnamed2342() { +buildUnnamed2454() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2342(core.List<api.User> o) { +checkUnnamed2454(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -999,8 +971,7 @@ var o = new api.GroupLicenseUsersListResponse(); buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { - o.kind = "foo"; - o.user = buildUnnamed2342(); + o.user = buildUnnamed2454(); } buildCounterGroupLicenseUsersListResponse--; return o; @@ -1009,20 +980,19 @@ checkGroupLicenseUsersListResponse(api.GroupLicenseUsersListResponse o) { buildCounterGroupLicenseUsersListResponse++; if (buildCounterGroupLicenseUsersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2342(o.user); + checkUnnamed2454(o.user); } buildCounterGroupLicenseUsersListResponse--; } -buildUnnamed2343() { +buildUnnamed2455() { var o = new core.List<api.GroupLicense>(); o.add(buildGroupLicense()); o.add(buildGroupLicense()); return o; } -checkUnnamed2343(core.List<api.GroupLicense> o) { +checkUnnamed2455(core.List<api.GroupLicense> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupLicense(o[0]); checkGroupLicense(o[1]); @@ -1033,8 +1003,7 @@ var o = new api.GroupLicensesListResponse(); buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - o.groupLicense = buildUnnamed2343(); - o.kind = "foo"; + o.groupLicense = buildUnnamed2455(); } buildCounterGroupLicensesListResponse--; return o; @@ -1043,8 +1012,7 @@ checkGroupLicensesListResponse(api.GroupLicensesListResponse o) { buildCounterGroupLicensesListResponse++; if (buildCounterGroupLicensesListResponse < 3) { - checkUnnamed2343(o.groupLicense); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2455(o.groupLicense); } buildCounterGroupLicensesListResponse--; } @@ -1055,7 +1023,6 @@ buildCounterInstall++; if (buildCounterInstall < 3) { o.installState = "foo"; - o.kind = "foo"; o.productId = "foo"; o.versionCode = 42; } @@ -1067,7 +1034,6 @@ buildCounterInstall++; if (buildCounterInstall < 3) { unittest.expect(o.installState, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.versionCode, unittest.equals(42)); } @@ -1101,14 +1067,14 @@ buildCounterInstallFailureEvent--; } -buildUnnamed2344() { +buildUnnamed2456() { var o = new core.List<api.Install>(); o.add(buildInstall()); o.add(buildInstall()); return o; } -checkUnnamed2344(core.List<api.Install> o) { +checkUnnamed2456(core.List<api.Install> o) { unittest.expect(o, unittest.hasLength(2)); checkInstall(o[0]); checkInstall(o[1]); @@ -1119,8 +1085,7 @@ var o = new api.InstallsListResponse(); buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - o.install = buildUnnamed2344(); - o.kind = "foo"; + o.install = buildUnnamed2456(); } buildCounterInstallsListResponse--; return o; @@ -1129,8 +1094,7 @@ checkInstallsListResponse(api.InstallsListResponse o) { buildCounterInstallsListResponse++; if (buildCounterInstallsListResponse < 3) { - checkUnnamed2344(o.install); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2456(o.install); } buildCounterInstallsListResponse--; } @@ -1204,14 +1168,14 @@ buildCounterMaintenanceWindow--; } -buildUnnamed2345() { +buildUnnamed2457() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2345(core.List<api.ManagedProperty> o) { +checkUnnamed2457(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1224,7 +1188,7 @@ if (buildCounterManagedConfiguration < 3) { o.configurationVariables = buildConfigurationVariables(); o.kind = "foo"; - o.managedProperty = buildUnnamed2345(); + o.managedProperty = buildUnnamed2457(); o.productId = "foo"; } buildCounterManagedConfiguration--; @@ -1236,20 +1200,20 @@ if (buildCounterManagedConfiguration < 3) { checkConfigurationVariables(o.configurationVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2345(o.managedProperty); + checkUnnamed2457(o.managedProperty); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterManagedConfiguration--; } -buildUnnamed2346() { +buildUnnamed2458() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2346(core.List<api.ManagedConfiguration> o) { +checkUnnamed2458(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -1260,8 +1224,7 @@ var o = new api.ManagedConfigurationsForDeviceListResponse(); buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { - o.kind = "foo"; - o.managedConfigurationForDevice = buildUnnamed2346(); + o.managedConfigurationForDevice = buildUnnamed2458(); } buildCounterManagedConfigurationsForDeviceListResponse--; return o; @@ -1271,20 +1234,19 @@ api.ManagedConfigurationsForDeviceListResponse o) { buildCounterManagedConfigurationsForDeviceListResponse++; if (buildCounterManagedConfigurationsForDeviceListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2346(o.managedConfigurationForDevice); + checkUnnamed2458(o.managedConfigurationForDevice); } buildCounterManagedConfigurationsForDeviceListResponse--; } -buildUnnamed2347() { +buildUnnamed2459() { var o = new core.List<api.ManagedConfiguration>(); o.add(buildManagedConfiguration()); o.add(buildManagedConfiguration()); return o; } -checkUnnamed2347(core.List<api.ManagedConfiguration> o) { +checkUnnamed2459(core.List<api.ManagedConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfiguration(o[0]); checkManagedConfiguration(o[1]); @@ -1295,8 +1257,7 @@ var o = new api.ManagedConfigurationsForUserListResponse(); buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { - o.kind = "foo"; - o.managedConfigurationForUser = buildUnnamed2347(); + o.managedConfigurationForUser = buildUnnamed2459(); } buildCounterManagedConfigurationsForUserListResponse--; return o; @@ -1306,8 +1267,7 @@ api.ManagedConfigurationsForUserListResponse o) { buildCounterManagedConfigurationsForUserListResponse++; if (buildCounterManagedConfigurationsForUserListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2347(o.managedConfigurationForUser); + checkUnnamed2459(o.managedConfigurationForUser); } buildCounterManagedConfigurationsForUserListResponse--; } @@ -1317,7 +1277,6 @@ var o = new api.ManagedConfigurationsSettings(); buildCounterManagedConfigurationsSettings++; if (buildCounterManagedConfigurationsSettings < 3) { - o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; o.mcmId = "foo"; o.name = "foo"; @@ -1329,7 +1288,6 @@ checkManagedConfigurationsSettings(api.ManagedConfigurationsSettings o) { buildCounterManagedConfigurationsSettings++; if (buildCounterManagedConfigurationsSettings < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); unittest.expect(o.mcmId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1337,14 +1295,14 @@ buildCounterManagedConfigurationsSettings--; } -buildUnnamed2348() { +buildUnnamed2460() { var o = new core.List<api.ManagedConfigurationsSettings>(); o.add(buildManagedConfigurationsSettings()); o.add(buildManagedConfigurationsSettings()); return o; } -checkUnnamed2348(core.List<api.ManagedConfigurationsSettings> o) { +checkUnnamed2460(core.List<api.ManagedConfigurationsSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedConfigurationsSettings(o[0]); checkManagedConfigurationsSettings(o[1]); @@ -1355,8 +1313,7 @@ var o = new api.ManagedConfigurationsSettingsListResponse(); buildCounterManagedConfigurationsSettingsListResponse++; if (buildCounterManagedConfigurationsSettingsListResponse < 3) { - o.kind = "foo"; - o.managedConfigurationsSettings = buildUnnamed2348(); + o.managedConfigurationsSettings = buildUnnamed2460(); } buildCounterManagedConfigurationsSettingsListResponse--; return o; @@ -1366,33 +1323,32 @@ api.ManagedConfigurationsSettingsListResponse o) { buildCounterManagedConfigurationsSettingsListResponse++; if (buildCounterManagedConfigurationsSettingsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2348(o.managedConfigurationsSettings); + checkUnnamed2460(o.managedConfigurationsSettings); } buildCounterManagedConfigurationsSettingsListResponse--; } -buildUnnamed2349() { +buildUnnamed2461() { var o = new core.List<api.ManagedPropertyBundle>(); o.add(buildManagedPropertyBundle()); o.add(buildManagedPropertyBundle()); return o; } -checkUnnamed2349(core.List<api.ManagedPropertyBundle> o) { +checkUnnamed2461(core.List<api.ManagedPropertyBundle> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyBundle(o[0]); checkManagedPropertyBundle(o[1]); } -buildUnnamed2350() { +buildUnnamed2462() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2350(core.List<core.String> o) { +checkUnnamed2462(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1406,10 +1362,10 @@ o.key = "foo"; o.valueBool = true; o.valueBundle = buildManagedPropertyBundle(); - o.valueBundleArray = buildUnnamed2349(); + o.valueBundleArray = buildUnnamed2461(); o.valueInteger = 42; o.valueString = "foo"; - o.valueStringArray = buildUnnamed2350(); + o.valueStringArray = buildUnnamed2462(); } buildCounterManagedProperty--; return o; @@ -1421,22 +1377,22 @@ unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.valueBool, unittest.isTrue); checkManagedPropertyBundle(o.valueBundle); - checkUnnamed2349(o.valueBundleArray); + checkUnnamed2461(o.valueBundleArray); unittest.expect(o.valueInteger, unittest.equals(42)); unittest.expect(o.valueString, unittest.equals('foo')); - checkUnnamed2350(o.valueStringArray); + checkUnnamed2462(o.valueStringArray); } buildCounterManagedProperty--; } -buildUnnamed2351() { +buildUnnamed2463() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed2351(core.List<api.ManagedProperty> o) { +checkUnnamed2463(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1447,7 +1403,7 @@ var o = new api.ManagedPropertyBundle(); buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - o.managedProperty = buildUnnamed2351(); + o.managedProperty = buildUnnamed2463(); } buildCounterManagedPropertyBundle--; return o; @@ -1456,7 +1412,7 @@ checkManagedPropertyBundle(api.ManagedPropertyBundle o) { buildCounterManagedPropertyBundle++; if (buildCounterManagedPropertyBundle < 3) { - checkUnnamed2351(o.managedProperty); + checkUnnamed2463(o.managedProperty); } buildCounterManagedPropertyBundle--; } @@ -1486,27 +1442,27 @@ buildCounterNewDeviceEvent--; } -buildUnnamed2352() { +buildUnnamed2464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2352(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')); } -buildUnnamed2353() { +buildUnnamed2465() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2353(core.List<core.String> o) { +checkUnnamed2465(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1517,9 +1473,9 @@ var o = new api.NewPermissionsEvent(); buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - o.approvedPermissions = buildUnnamed2352(); + o.approvedPermissions = buildUnnamed2464(); o.productId = "foo"; - o.requestedPermissions = buildUnnamed2353(); + o.requestedPermissions = buildUnnamed2465(); } buildCounterNewPermissionsEvent--; return o; @@ -1528,9 +1484,9 @@ checkNewPermissionsEvent(api.NewPermissionsEvent o) { buildCounterNewPermissionsEvent++; if (buildCounterNewPermissionsEvent < 3) { - checkUnnamed2352(o.approvedPermissions); + checkUnnamed2464(o.approvedPermissions); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2353(o.requestedPermissions); + checkUnnamed2465(o.requestedPermissions); } buildCounterNewPermissionsEvent--; } @@ -1575,14 +1531,14 @@ buildCounterNotification--; } -buildUnnamed2354() { +buildUnnamed2466() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed2354(core.List<api.Notification> o) { +checkUnnamed2466(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1593,8 +1549,7 @@ var o = new api.NotificationSet(); buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { - o.kind = "foo"; - o.notification = buildUnnamed2354(); + o.notification = buildUnnamed2466(); o.notificationSetId = "foo"; } buildCounterNotificationSet--; @@ -1604,8 +1559,7 @@ checkNotificationSet(api.NotificationSet o) { buildCounterNotificationSet++; if (buildCounterNotificationSet < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2354(o.notification); + checkUnnamed2466(o.notification); unittest.expect(o.notificationSetId, unittest.equals('foo')); } buildCounterNotificationSet--; @@ -1640,7 +1594,6 @@ buildCounterPermission++; if (buildCounterPermission < 3) { o.description = "foo"; - o.kind = "foo"; o.name = "foo"; o.permissionId = "foo"; } @@ -1652,21 +1605,20 @@ buildCounterPermission++; if (buildCounterPermission < 3) { unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterPermission--; } -buildUnnamed2355() { +buildUnnamed2467() { var o = new core.List<api.ProductPolicy>(); o.add(buildProductPolicy()); o.add(buildProductPolicy()); return o; } -checkUnnamed2355(core.List<api.ProductPolicy> o) { +checkUnnamed2467(core.List<api.ProductPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPolicy(o[0]); checkProductPolicy(o[1]); @@ -1681,7 +1633,7 @@ o.deviceReportPolicy = "foo"; o.maintenanceWindow = buildMaintenanceWindow(); o.productAvailabilityPolicy = "foo"; - o.productPolicy = buildUnnamed2355(); + o.productPolicy = buildUnnamed2467(); } buildCounterPolicy--; return o; @@ -1694,97 +1646,97 @@ unittest.expect(o.deviceReportPolicy, unittest.equals('foo')); checkMaintenanceWindow(o.maintenanceWindow); unittest.expect(o.productAvailabilityPolicy, unittest.equals('foo')); - checkUnnamed2355(o.productPolicy); + checkUnnamed2467(o.productPolicy); } buildCounterPolicy--; } -buildUnnamed2356() { +buildUnnamed2468() { var o = new core.List<api.TrackInfo>(); o.add(buildTrackInfo()); o.add(buildTrackInfo()); return o; } -checkUnnamed2356(core.List<api.TrackInfo> o) { +checkUnnamed2468(core.List<api.TrackInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkTrackInfo(o[0]); checkTrackInfo(o[1]); } -buildUnnamed2357() { +buildUnnamed2469() { var o = new core.List<api.AppVersion>(); o.add(buildAppVersion()); o.add(buildAppVersion()); return o; } -checkUnnamed2357(core.List<api.AppVersion> o) { +checkUnnamed2469(core.List<api.AppVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAppVersion(o[0]); checkAppVersion(o[1]); } -buildUnnamed2358() { +buildUnnamed2470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2358(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')); } -buildUnnamed2359() { +buildUnnamed2471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2359(core.List<core.String> o) { +checkUnnamed2471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2360() { +buildUnnamed2472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2360(core.List<core.String> o) { +checkUnnamed2472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2361() { +buildUnnamed2473() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2361(core.List<api.ProductPermission> o) { +checkUnnamed2473(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); } -buildUnnamed2362() { +buildUnnamed2474() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2362(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')); @@ -1795,27 +1747,26 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.appTracks = buildUnnamed2356(); - o.appVersion = buildUnnamed2357(); + o.appTracks = buildUnnamed2468(); + o.appVersion = buildUnnamed2469(); o.authorName = "foo"; - o.availableCountries = buildUnnamed2358(); - o.availableTracks = buildUnnamed2359(); + o.availableCountries = buildUnnamed2470(); + o.availableTracks = buildUnnamed2471(); o.category = "foo"; o.contentRating = "foo"; o.description = "foo"; o.detailsUrl = "foo"; o.distributionChannel = "foo"; - o.features = buildUnnamed2360(); + o.features = buildUnnamed2472(); o.iconUrl = "foo"; - o.kind = "foo"; o.lastUpdatedTimestampMillis = "foo"; o.minAndroidSdkVersion = 42; - o.permissions = buildUnnamed2361(); + o.permissions = buildUnnamed2473(); o.productId = "foo"; o.productPricing = "foo"; o.recentChanges = "foo"; o.requiresContainerApp = true; - o.screenshotUrls = buildUnnamed2362(); + o.screenshotUrls = buildUnnamed2474(); o.signingCertificate = buildProductSigningCertificate(); o.smallIconUrl = "foo"; o.title = "foo"; @@ -1828,27 +1779,26 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed2356(o.appTracks); - checkUnnamed2357(o.appVersion); + checkUnnamed2468(o.appTracks); + checkUnnamed2469(o.appVersion); unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed2358(o.availableCountries); - checkUnnamed2359(o.availableTracks); + checkUnnamed2470(o.availableCountries); + checkUnnamed2471(o.availableTracks); unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.contentRating, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.detailsUrl, unittest.equals('foo')); unittest.expect(o.distributionChannel, unittest.equals('foo')); - checkUnnamed2360(o.features); + checkUnnamed2472(o.features); unittest.expect(o.iconUrl, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestampMillis, unittest.equals('foo')); unittest.expect(o.minAndroidSdkVersion, unittest.equals(42)); - checkUnnamed2361(o.permissions); + checkUnnamed2473(o.permissions); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productPricing, unittest.equals('foo')); unittest.expect(o.recentChanges, unittest.equals('foo')); unittest.expect(o.requiresContainerApp, unittest.isTrue); - checkUnnamed2362(o.screenshotUrls); + checkUnnamed2474(o.screenshotUrls); checkProductSigningCertificate(o.signingCertificate); unittest.expect(o.smallIconUrl, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1920,14 +1870,14 @@ buildCounterProductPermission--; } -buildUnnamed2363() { +buildUnnamed2475() { var o = new core.List<api.ProductPermission>(); o.add(buildProductPermission()); o.add(buildProductPermission()); return o; } -checkUnnamed2363(core.List<api.ProductPermission> o) { +checkUnnamed2475(core.List<api.ProductPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkProductPermission(o[0]); checkProductPermission(o[1]); @@ -1938,8 +1888,7 @@ var o = new api.ProductPermissions(); buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { - o.kind = "foo"; - o.permission = buildUnnamed2363(); + o.permission = buildUnnamed2475(); o.productId = "foo"; } buildCounterProductPermissions--; @@ -1949,34 +1898,33 @@ checkProductPermissions(api.ProductPermissions o) { buildCounterProductPermissions++; if (buildCounterProductPermissions < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2363(o.permission); + checkUnnamed2475(o.permission); unittest.expect(o.productId, unittest.equals('foo')); } buildCounterProductPermissions--; } -buildUnnamed2364() { +buildUnnamed2476() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2364(core.List<core.String> o) { +checkUnnamed2476(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2365() { +buildUnnamed2477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2365(core.List<core.String> o) { +checkUnnamed2477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1990,8 +1938,8 @@ o.autoInstallPolicy = buildAutoInstallPolicy(); o.managedConfiguration = buildManagedConfiguration(); o.productId = "foo"; - o.trackIds = buildUnnamed2364(); - o.tracks = buildUnnamed2365(); + o.trackIds = buildUnnamed2476(); + o.tracks = buildUnnamed2477(); } buildCounterProductPolicy--; return o; @@ -2003,33 +1951,33 @@ checkAutoInstallPolicy(o.autoInstallPolicy); checkManagedConfiguration(o.managedConfiguration); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2364(o.trackIds); - checkUnnamed2365(o.tracks); + checkUnnamed2476(o.trackIds); + checkUnnamed2477(o.tracks); } buildCounterProductPolicy--; } -buildUnnamed2366() { +buildUnnamed2478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2366(core.List<core.String> o) { +checkUnnamed2478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2367() { +buildUnnamed2479() { var o = new core.List<api.ProductVisibility>(); o.add(buildProductVisibility()); o.add(buildProductVisibility()); return o; } -checkUnnamed2367(core.List<api.ProductVisibility> o) { +checkUnnamed2479(core.List<api.ProductVisibility> o) { unittest.expect(o, unittest.hasLength(2)); checkProductVisibility(o[0]); checkProductVisibility(o[1]); @@ -2040,10 +1988,9 @@ var o = new api.ProductSet(); buildCounterProductSet++; if (buildCounterProductSet < 3) { - o.kind = "foo"; - o.productId = buildUnnamed2366(); + o.productId = buildUnnamed2478(); o.productSetBehavior = "foo"; - o.productVisibility = buildUnnamed2367(); + o.productVisibility = buildUnnamed2479(); } buildCounterProductSet--; return o; @@ -2052,10 +1999,9 @@ checkProductSet(api.ProductSet o) { buildCounterProductSet++; if (buildCounterProductSet < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2366(o.productId); + checkUnnamed2478(o.productId); unittest.expect(o.productSetBehavior, unittest.equals('foo')); - checkUnnamed2367(o.productVisibility); + checkUnnamed2479(o.productVisibility); } buildCounterProductSet--; } @@ -2081,27 +2027,27 @@ buildCounterProductSigningCertificate--; } -buildUnnamed2368() { +buildUnnamed2480() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2368(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')); } -buildUnnamed2369() { +buildUnnamed2481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2369(core.List<core.String> o) { +checkUnnamed2481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2113,8 +2059,8 @@ buildCounterProductVisibility++; if (buildCounterProductVisibility < 3) { o.productId = "foo"; - o.trackIds = buildUnnamed2368(); - o.tracks = buildUnnamed2369(); + o.trackIds = buildUnnamed2480(); + o.tracks = buildUnnamed2481(); } buildCounterProductVisibility--; return o; @@ -2124,8 +2070,8 @@ buildCounterProductVisibility++; if (buildCounterProductVisibility < 3) { unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed2368(o.trackIds); - checkUnnamed2369(o.tracks); + checkUnnamed2480(o.trackIds); + checkUnnamed2481(o.tracks); } buildCounterProductVisibility--; } @@ -2171,14 +2117,14 @@ buildCounterProductsGenerateApprovalUrlResponse--; } -buildUnnamed2370() { +buildUnnamed2482() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2370(core.List<api.Product> o) { +checkUnnamed2482(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -2189,9 +2135,8 @@ var o = new api.ProductsListResponse(); buildCounterProductsListResponse++; if (buildCounterProductsListResponse < 3) { - o.kind = "foo"; o.pageInfo = buildPageInfo(); - o.product = buildUnnamed2370(); + o.product = buildUnnamed2482(); o.tokenPagination = buildTokenPagination(); } buildCounterProductsListResponse--; @@ -2201,9 +2146,8 @@ checkProductsListResponse(api.ProductsListResponse o) { buildCounterProductsListResponse++; if (buildCounterProductsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); - checkUnnamed2370(o.product); + checkUnnamed2482(o.product); checkTokenPagination(o.tokenPagination); } buildCounterProductsListResponse--; @@ -2215,7 +2159,6 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.key = buildServiceAccountKey(); - o.kind = "foo"; o.name = "foo"; } buildCounterServiceAccount--; @@ -2226,7 +2169,6 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { checkServiceAccountKey(o.key); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterServiceAccount--; @@ -2239,7 +2181,6 @@ if (buildCounterServiceAccountKey < 3) { o.data = "foo"; o.id = "foo"; - o.kind = "foo"; o.publicData = "foo"; o.type = "foo"; } @@ -2252,21 +2193,20 @@ if (buildCounterServiceAccountKey < 3) { unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.publicData, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterServiceAccountKey--; } -buildUnnamed2371() { +buildUnnamed2483() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed2371(core.List<api.ServiceAccountKey> o) { +checkUnnamed2483(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -2277,7 +2217,7 @@ var o = new api.ServiceAccountKeysListResponse(); buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - o.serviceAccountKey = buildUnnamed2371(); + o.serviceAccountKey = buildUnnamed2483(); } buildCounterServiceAccountKeysListResponse--; return o; @@ -2286,7 +2226,7 @@ checkServiceAccountKeysListResponse(api.ServiceAccountKeysListResponse o) { buildCounterServiceAccountKeysListResponse++; if (buildCounterServiceAccountKeysListResponse < 3) { - checkUnnamed2371(o.serviceAccountKey); + checkUnnamed2483(o.serviceAccountKey); } buildCounterServiceAccountKeysListResponse--; } @@ -2314,27 +2254,27 @@ buildCounterSignupInfo--; } -buildUnnamed2372() { +buildUnnamed2484() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2372(core.List<api.LocalizedText> o) { +checkUnnamed2484(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed2373() { +buildUnnamed2485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2373(core.List<core.String> o) { +checkUnnamed2485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2346,10 +2286,9 @@ buildCounterStoreCluster++; if (buildCounterStoreCluster < 3) { o.id = "foo"; - o.kind = "foo"; - o.name = buildUnnamed2372(); + o.name = buildUnnamed2484(); o.orderInPage = "foo"; - o.productId = buildUnnamed2373(); + o.productId = buildUnnamed2485(); } buildCounterStoreCluster--; return o; @@ -2359,10 +2298,9 @@ buildCounterStoreCluster++; if (buildCounterStoreCluster < 3) { unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2372(o.name); + checkUnnamed2484(o.name); unittest.expect(o.orderInPage, unittest.equals('foo')); - checkUnnamed2373(o.productId); + checkUnnamed2485(o.productId); } buildCounterStoreCluster--; } @@ -2373,7 +2311,6 @@ buildCounterStoreLayout++; if (buildCounterStoreLayout < 3) { o.homepageId = "foo"; - o.kind = "foo"; o.storeLayoutType = "foo"; } buildCounterStoreLayout--; @@ -2384,20 +2321,19 @@ buildCounterStoreLayout++; 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--; } -buildUnnamed2374() { +buildUnnamed2486() { var o = new core.List<api.StoreCluster>(); o.add(buildStoreCluster()); o.add(buildStoreCluster()); return o; } -checkUnnamed2374(core.List<api.StoreCluster> o) { +checkUnnamed2486(core.List<api.StoreCluster> o) { unittest.expect(o, unittest.hasLength(2)); checkStoreCluster(o[0]); checkStoreCluster(o[1]); @@ -2408,8 +2344,7 @@ var o = new api.StoreLayoutClustersListResponse(); buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - o.cluster = buildUnnamed2374(); - o.kind = "foo"; + o.cluster = buildUnnamed2486(); } buildCounterStoreLayoutClustersListResponse--; return o; @@ -2418,20 +2353,19 @@ checkStoreLayoutClustersListResponse(api.StoreLayoutClustersListResponse o) { buildCounterStoreLayoutClustersListResponse++; if (buildCounterStoreLayoutClustersListResponse < 3) { - checkUnnamed2374(o.cluster); - unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed2486(o.cluster); } buildCounterStoreLayoutClustersListResponse--; } -buildUnnamed2375() { +buildUnnamed2487() { var o = new core.List<api.StorePage>(); o.add(buildStorePage()); o.add(buildStorePage()); return o; } -checkUnnamed2375(core.List<api.StorePage> o) { +checkUnnamed2487(core.List<api.StorePage> o) { unittest.expect(o, unittest.hasLength(2)); checkStorePage(o[0]); checkStorePage(o[1]); @@ -2442,8 +2376,7 @@ var o = new api.StoreLayoutPagesListResponse(); buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { - o.kind = "foo"; - o.page = buildUnnamed2375(); + o.page = buildUnnamed2487(); } buildCounterStoreLayoutPagesListResponse--; return o; @@ -2452,33 +2385,32 @@ checkStoreLayoutPagesListResponse(api.StoreLayoutPagesListResponse o) { buildCounterStoreLayoutPagesListResponse++; if (buildCounterStoreLayoutPagesListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2375(o.page); + checkUnnamed2487(o.page); } buildCounterStoreLayoutPagesListResponse--; } -buildUnnamed2376() { +buildUnnamed2488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2376(core.List<core.String> o) { +checkUnnamed2488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2377() { +buildUnnamed2489() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed2377(core.List<api.LocalizedText> o) { +checkUnnamed2489(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); @@ -2490,9 +2422,8 @@ buildCounterStorePage++; if (buildCounterStorePage < 3) { o.id = "foo"; - o.kind = "foo"; - o.link = buildUnnamed2376(); - o.name = buildUnnamed2377(); + o.link = buildUnnamed2488(); + o.name = buildUnnamed2489(); } buildCounterStorePage--; return o; @@ -2502,9 +2433,8 @@ buildCounterStorePage++; if (buildCounterStorePage < 3) { unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2376(o.link); - checkUnnamed2377(o.name); + checkUnnamed2488(o.link); + checkUnnamed2489(o.name); } buildCounterStorePage--; } @@ -2560,7 +2490,6 @@ o.accountType = "foo"; o.displayName = "foo"; o.id = "foo"; - o.kind = "foo"; o.managementType = "foo"; o.primaryEmail = "foo"; } @@ -2575,44 +2504,20 @@ unittest.expect(o.accountType, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.managementType, unittest.equals('foo')); unittest.expect(o.primaryEmail, unittest.equals('foo')); } buildCounterUser--; } -core.int buildCounterUserToken = 0; -buildUserToken() { - var o = new api.UserToken(); - buildCounterUserToken++; - if (buildCounterUserToken < 3) { - o.kind = "foo"; - o.token = "foo"; - o.userId = "foo"; - } - buildCounterUserToken--; - return o; -} - -checkUserToken(api.UserToken o) { - buildCounterUserToken++; - if (buildCounterUserToken < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.token, unittest.equals('foo')); - unittest.expect(o.userId, unittest.equals('foo')); - } - buildCounterUserToken--; -} - -buildUnnamed2378() { +buildUnnamed2490() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed2378(core.List<api.User> o) { +checkUnnamed2490(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -2623,8 +2528,7 @@ var o = new api.UsersListResponse(); buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - o.kind = "foo"; - o.user = buildUnnamed2378(); + o.user = buildUnnamed2490(); } buildCounterUsersListResponse--; return o; @@ -2633,8 +2537,7 @@ checkUsersListResponse(api.UsersListResponse o) { buildCounterUsersListResponse++; if (buildCounterUsersListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2378(o.user); + checkUnnamed2490(o.user); } buildCounterUsersListResponse--; } @@ -2644,7 +2547,6 @@ var o = new api.VariableSet(); buildCounterVariableSet++; if (buildCounterVariableSet < 3) { - o.kind = "foo"; o.placeholder = "foo"; o.userValue = "foo"; } @@ -2655,21 +2557,20 @@ checkVariableSet(api.VariableSet o) { buildCounterVariableSet++; if (buildCounterVariableSet < 3) { - unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.placeholder, unittest.equals('foo')); unittest.expect(o.userValue, unittest.equals('foo')); } buildCounterVariableSet--; } -buildUnnamed2379() { +buildUnnamed2491() { var o = new core.List<api.WebAppIcon>(); o.add(buildWebAppIcon()); o.add(buildWebAppIcon()); return o; } -checkUnnamed2379(core.List<api.WebAppIcon> o) { +checkUnnamed2491(core.List<api.WebAppIcon> o) { unittest.expect(o, unittest.hasLength(2)); checkWebAppIcon(o[0]); checkWebAppIcon(o[1]); @@ -2681,7 +2582,7 @@ buildCounterWebApp++; if (buildCounterWebApp < 3) { o.displayMode = "foo"; - o.icons = buildUnnamed2379(); + o.icons = buildUnnamed2491(); o.isPublished = true; o.startUrl = "foo"; o.title = "foo"; @@ -2696,7 +2597,7 @@ buildCounterWebApp++; if (buildCounterWebApp < 3) { unittest.expect(o.displayMode, unittest.equals('foo')); - checkUnnamed2379(o.icons); + checkUnnamed2491(o.icons); unittest.expect(o.isPublished, unittest.isTrue); unittest.expect(o.startUrl, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -2725,14 +2626,14 @@ buildCounterWebAppIcon--; } -buildUnnamed2380() { +buildUnnamed2492() { var o = new core.List<api.WebApp>(); o.add(buildWebApp()); o.add(buildWebApp()); return o; } -checkUnnamed2380(core.List<api.WebApp> o) { +checkUnnamed2492(core.List<api.WebApp> o) { unittest.expect(o, unittest.hasLength(2)); checkWebApp(o[0]); checkWebApp(o[1]); @@ -2743,8 +2644,7 @@ var o = new api.WebAppsListResponse(); buildCounterWebAppsListResponse++; if (buildCounterWebAppsListResponse < 3) { - o.kind = "foo"; - o.webApp = buildUnnamed2380(); + o.webApp = buildUnnamed2492(); } buildCounterWebAppsListResponse--; return o; @@ -2753,8 +2653,7 @@ checkWebAppsListResponse(api.WebAppsListResponse o) { buildCounterWebAppsListResponse++; if (buildCounterWebAppsListResponse < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2380(o.webApp); + checkUnnamed2492(o.webApp); } buildCounterWebAppsListResponse--; } @@ -3395,14 +3294,6 @@ }); }); - unittest.group("obj-schema-UserToken", () { - unittest.test("to-json--from-json", () { - var o = buildUserToken(); - var od = new api.UserToken.fromJson(o.toJson()); - checkUserToken(od); - }); - }); - unittest.group("obj-schema-UsersListResponse", () { unittest.test("to-json--from-json", () { var o = buildUsersListResponse(); @@ -3459,12 +3350,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3540,12 +3428,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3616,12 +3501,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3698,12 +3580,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3775,12 +3654,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3863,12 +3739,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -3943,12 +3816,11 @@ 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 + 38), - unittest.equals("enterprises/acknowledgeNotificationSet")); - pathOffset += 38; + unittest.expect( + path.substring(pathOffset, pathOffset + 59), + unittest.equals( + "androidenterprise/v1/enterprises/acknowledgeNotificationSet")); + pathOffset += 59; var query = (req.url).query; var queryOffset = 0; @@ -3988,8 +3860,8 @@ var mock = new HttpServerMock(); api.EnterprisesResourceApi res = new api.AndroidenterpriseApi(mock).enterprises; - var arg_completionToken = "foo"; var arg_enterpriseToken = "foo"; + var arg_completionToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3999,12 +3871,9 @@ 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 + 26), - unittest.equals("enterprises/completeSignup")); - pathOffset += 26; + unittest.expect(path.substring(pathOffset, pathOffset + 47), + unittest.equals("androidenterprise/v1/enterprises/completeSignup")); + pathOffset += 47; var query = (req.url).query; var queryOffset = 0; @@ -4024,10 +3893,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["completionToken"].first, - unittest.equals(arg_completionToken)); unittest.expect(queryMap["enterpriseToken"].first, unittest.equals(arg_enterpriseToken)); + unittest.expect(queryMap["completionToken"].first, + unittest.equals(arg_completionToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4038,8 +3907,8 @@ }), true); res .completeSignup( - completionToken: arg_completionToken, enterpriseToken: arg_enterpriseToken, + completionToken: arg_completionToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEnterprise(response); @@ -4064,12 +3933,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/createWebToken", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4131,12 +3997,9 @@ 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 + 18), - unittest.equals("enterprises/enroll")); - pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 39), + unittest.equals("androidenterprise/v1/enterprises/enroll")); + pathOffset += 39; var query = (req.url).query; var queryOffset = 0; @@ -4186,12 +4049,9 @@ 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 + 21), - unittest.equals("enterprises/signupUrl")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 42), + unittest.equals("androidenterprise/v1/enterprises/signupUrl")); + pathOffset += 42; var query = (req.url).query; var queryOffset = 0; @@ -4242,12 +4102,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_enterpriseId")); @@ -4300,12 +4157,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/serviceAccount", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4366,12 +4220,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4429,12 +4280,9 @@ 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 + 11), - unittest.equals("enterprises")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("androidenterprise/v1/enterprises")); + pathOffset += 32; var query = (req.url).query; var queryOffset = 0; @@ -4484,12 +4332,11 @@ 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 + 31), - unittest.equals("enterprises/pullNotificationSet")); - pathOffset += 31; + unittest.expect( + path.substring(pathOffset, pathOffset + 52), + unittest.equals( + "androidenterprise/v1/enterprises/pullNotificationSet")); + pathOffset += 52; var query = (req.url).query; var queryOffset = 0; @@ -4541,12 +4388,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/sendTestPushNotification", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4609,12 +4453,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/account", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4676,12 +4517,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4739,12 +4577,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/unenroll", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4804,12 +4639,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4880,12 +4712,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4957,12 +4786,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5036,12 +4862,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5117,12 +4940,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/groupLicenses/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5183,12 +5003,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/groupLicenses", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5249,12 +5066,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/groupLicenses/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5325,12 +5139,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5410,12 +5221,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5496,12 +5304,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5584,12 +5389,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5675,12 +5477,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5763,12 +5562,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5852,12 +5648,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5942,12 +5735,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6033,12 +5823,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6111,12 +5898,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6189,12 +5973,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6268,12 +6049,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6349,12 +6127,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6425,12 +6200,9 @@ 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("permissions/")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/permissions/")); + pathOffset += 33; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_permissionId")); @@ -6490,12 +6262,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6562,12 +6331,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6639,12 +6405,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6709,12 +6472,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6784,12 +6544,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6846,10 +6603,10 @@ var mock = new HttpServerMock(); api.ProductsResourceApi res = new api.AndroidenterpriseApi(mock).products; var arg_enterpriseId = "foo"; - var arg_approved = true; + var arg_query = "foo"; var arg_language = "foo"; var arg_maxResults = 42; - var arg_query = "foo"; + var arg_approved = true; var arg_token = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -6860,12 +6617,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6894,13 +6648,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["approved"].first, unittest.equals("$arg_approved")); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["approved"].first, unittest.equals("$arg_approved")); unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -6912,10 +6666,10 @@ }), true); res .list(arg_enterpriseId, - approved: arg_approved, + query: arg_query, language: arg_language, maxResults: arg_maxResults, - query: arg_query, + approved: arg_approved, token: arg_token, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -6937,12 +6691,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/products/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7010,12 +6761,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/serviceAccountKeys/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7078,12 +6826,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/serviceAccountKeys", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7141,12 +6886,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/serviceAccountKeys", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7208,12 +6950,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7284,12 +7023,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7365,12 +7101,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7439,12 +7172,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7517,12 +7247,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7596,12 +7323,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7661,12 +7385,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7731,12 +7452,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7794,12 +7512,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7862,12 +7577,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/storeLayout/pages/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7931,12 +7643,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7995,12 +7704,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8054,78 +7760,6 @@ }))); }); - unittest.test("method--generateToken", () { - var mock = new HttpServerMock(); - api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; - var arg_enterpriseId = "foo"; - var arg_userId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("androidenterprise/v1/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("enterprises/")); - pathOffset += 12; - index = path.indexOf("/users/", 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 + 7), - unittest.equals("/users/")); - pathOffset += 7; - index = path.indexOf("/token", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_userId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("/token")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildUserToken()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .generateToken(arg_enterpriseId, arg_userId, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkUserToken(response); - }))); - }); - unittest.test("method--get", () { var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; @@ -8140,12 +7774,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8206,12 +7837,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8282,12 +7910,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8345,12 +7970,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8409,12 +8031,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8466,76 +8085,6 @@ .then(unittest.expectAsync1((_) {})); }); - unittest.test("method--revokeToken", () { - var mock = new HttpServerMock(); - api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; - var arg_enterpriseId = "foo"; - var arg_userId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("androidenterprise/v1/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("enterprises/")); - pathOffset += 12; - index = path.indexOf("/users/", 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 + 7), - unittest.equals("/users/")); - pathOffset += 7; - index = path.indexOf("/token", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_userId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("/token")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .revokeToken(arg_enterpriseId, arg_userId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - unittest.test("method--setAvailableProductSet", () { var mock = new HttpServerMock(); api.UsersResourceApi res = new api.AndroidenterpriseApi(mock).users; @@ -8554,12 +8103,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8631,12 +8177,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/users/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8700,12 +8243,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/webApps/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8764,12 +8304,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/webApps/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8833,12 +8370,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/webApps", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8895,12 +8429,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/webApps", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -8962,12 +8493,9 @@ 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; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidenterprise/v1/enterprises/")); + pathOffset += 33; index = path.indexOf("/webApps/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart =
diff --git a/generated/googleapis/test/androidmanagement/v1_test.dart b/generated/googleapis/test/androidmanagement/v1_test.dart index 69cde67..b8c71f0 100644 --- a/generated/googleapis/test/androidmanagement/v1_test.dart +++ b/generated/googleapis/test/androidmanagement/v1_test.dart
@@ -130,40 +130,40 @@ buildCounterAppTrackInfo--; } -buildUnnamed1123() { +buildUnnamed1133() { var o = new core.List<api.AppTrackInfo>(); o.add(buildAppTrackInfo()); o.add(buildAppTrackInfo()); return o; } -checkUnnamed1123(core.List<api.AppTrackInfo> o) { +checkUnnamed1133(core.List<api.AppTrackInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAppTrackInfo(o[0]); checkAppTrackInfo(o[1]); } -buildUnnamed1124() { +buildUnnamed1134() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed1124(core.List<api.ManagedProperty> o) { +checkUnnamed1134(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); } -buildUnnamed1125() { +buildUnnamed1135() { var o = new core.List<api.ApplicationPermission>(); o.add(buildApplicationPermission()); o.add(buildApplicationPermission()); return o; } -checkUnnamed1125(core.List<api.ApplicationPermission> o) { +checkUnnamed1135(core.List<api.ApplicationPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationPermission(o[0]); checkApplicationPermission(o[1]); @@ -174,10 +174,10 @@ var o = new api.Application(); buildCounterApplication++; if (buildCounterApplication < 3) { - o.appTracks = buildUnnamed1123(); - o.managedProperties = buildUnnamed1124(); + o.appTracks = buildUnnamed1133(); + o.managedProperties = buildUnnamed1134(); o.name = "foo"; - o.permissions = buildUnnamed1125(); + o.permissions = buildUnnamed1135(); o.title = "foo"; } buildCounterApplication--; @@ -187,10 +187,10 @@ checkApplication(api.Application o) { buildCounterApplication++; if (buildCounterApplication < 3) { - checkUnnamed1123(o.appTracks); - checkUnnamed1124(o.managedProperties); + checkUnnamed1133(o.appTracks); + checkUnnamed1134(o.managedProperties); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1125(o.permissions); + checkUnnamed1135(o.permissions); unittest.expect(o.title, unittest.equals('foo')); } buildCounterApplication--; @@ -240,33 +240,33 @@ buildCounterApplicationPermission--; } -buildUnnamed1126() { +buildUnnamed1136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1126(core.List<core.String> o) { +checkUnnamed1136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1127() { +buildUnnamed1137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1127(core.List<core.String> o) { +checkUnnamed1137(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1128() { +buildUnnamed1138() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -281,7 +281,7 @@ return o; } -checkUnnamed1128(core.Map<core.String, core.Object> o) { +checkUnnamed1138(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)); @@ -295,14 +295,14 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1129() { +buildUnnamed1139() { var o = new core.List<api.PermissionGrant>(); o.add(buildPermissionGrant()); o.add(buildPermissionGrant()); return o; } -checkUnnamed1129(core.List<api.PermissionGrant> o) { +checkUnnamed1139(core.List<api.PermissionGrant> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionGrant(o[0]); checkPermissionGrant(o[1]); @@ -313,17 +313,18 @@ var o = new api.ApplicationPolicy(); buildCounterApplicationPolicy++; if (buildCounterApplicationPolicy < 3) { - o.accessibleTrackIds = buildUnnamed1126(); + o.accessibleTrackIds = buildUnnamed1136(); + o.connectedWorkAndPersonalApp = "foo"; o.defaultPermissionPolicy = "foo"; - o.delegatedScopes = buildUnnamed1127(); + o.delegatedScopes = buildUnnamed1137(); o.disabled = true; o.installType = "foo"; o.lockTaskAllowed = true; - o.managedConfiguration = buildUnnamed1128(); + o.managedConfiguration = buildUnnamed1138(); o.managedConfigurationTemplate = buildManagedConfigurationTemplate(); o.minimumVersionCode = 42; o.packageName = "foo"; - o.permissionGrants = buildUnnamed1129(); + o.permissionGrants = buildUnnamed1139(); } buildCounterApplicationPolicy--; return o; @@ -332,55 +333,56 @@ checkApplicationPolicy(api.ApplicationPolicy o) { buildCounterApplicationPolicy++; if (buildCounterApplicationPolicy < 3) { - checkUnnamed1126(o.accessibleTrackIds); + checkUnnamed1136(o.accessibleTrackIds); + unittest.expect(o.connectedWorkAndPersonalApp, unittest.equals('foo')); unittest.expect(o.defaultPermissionPolicy, unittest.equals('foo')); - checkUnnamed1127(o.delegatedScopes); + checkUnnamed1137(o.delegatedScopes); unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.installType, unittest.equals('foo')); unittest.expect(o.lockTaskAllowed, unittest.isTrue); - checkUnnamed1128(o.managedConfiguration); + checkUnnamed1138(o.managedConfiguration); checkManagedConfigurationTemplate(o.managedConfigurationTemplate); unittest.expect(o.minimumVersionCode, unittest.equals(42)); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1129(o.permissionGrants); + checkUnnamed1139(o.permissionGrants); } buildCounterApplicationPolicy--; } -buildUnnamed1130() { +buildUnnamed1140() { var o = new core.List<api.ApplicationEvent>(); o.add(buildApplicationEvent()); o.add(buildApplicationEvent()); return o; } -checkUnnamed1130(core.List<api.ApplicationEvent> o) { +checkUnnamed1140(core.List<api.ApplicationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationEvent(o[0]); checkApplicationEvent(o[1]); } -buildUnnamed1131() { +buildUnnamed1141() { var o = new core.List<api.KeyedAppState>(); o.add(buildKeyedAppState()); o.add(buildKeyedAppState()); return o; } -checkUnnamed1131(core.List<api.KeyedAppState> o) { +checkUnnamed1141(core.List<api.KeyedAppState> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyedAppState(o[0]); checkKeyedAppState(o[1]); } -buildUnnamed1132() { +buildUnnamed1142() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1132(core.List<core.String> o) { +checkUnnamed1142(core.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,12 +395,12 @@ if (buildCounterApplicationReport < 3) { o.applicationSource = "foo"; o.displayName = "foo"; - o.events = buildUnnamed1130(); + o.events = buildUnnamed1140(); o.installerPackageName = "foo"; - o.keyedAppStates = buildUnnamed1131(); + o.keyedAppStates = buildUnnamed1141(); o.packageName = "foo"; o.packageSha256Hash = "foo"; - o.signingKeyCertFingerprints = buildUnnamed1132(); + o.signingKeyCertFingerprints = buildUnnamed1142(); o.state = "foo"; o.versionCode = 42; o.versionName = "foo"; @@ -412,12 +414,12 @@ if (buildCounterApplicationReport < 3) { unittest.expect(o.applicationSource, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1130(o.events); + checkUnnamed1140(o.events); unittest.expect(o.installerPackageName, unittest.equals('foo')); - checkUnnamed1131(o.keyedAppStates); + checkUnnamed1141(o.keyedAppStates); unittest.expect(o.packageName, unittest.equals('foo')); unittest.expect(o.packageSha256Hash, unittest.equals('foo')); - checkUnnamed1132(o.signingKeyCertFingerprints); + checkUnnamed1142(o.signingKeyCertFingerprints); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); @@ -450,6 +452,7 @@ buildCounterBlockAction++; if (buildCounterBlockAction < 3) { o.blockAfterDays = 42; + o.blockScope = "foo"; } buildCounterBlockAction--; return o; @@ -459,18 +462,19 @@ buildCounterBlockAction++; if (buildCounterBlockAction < 3) { unittest.expect(o.blockAfterDays, unittest.equals(42)); + unittest.expect(o.blockScope, unittest.equals('foo')); } buildCounterBlockAction--; } -buildUnnamed1133() { +buildUnnamed1143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1133(core.List<core.String> o) { +checkUnnamed1143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -481,7 +485,7 @@ var o = new api.ChoosePrivateKeyRule(); buildCounterChoosePrivateKeyRule++; if (buildCounterChoosePrivateKeyRule < 3) { - o.packageNames = buildUnnamed1133(); + o.packageNames = buildUnnamed1143(); o.privateKeyAlias = "foo"; o.urlPattern = "foo"; } @@ -492,21 +496,21 @@ checkChoosePrivateKeyRule(api.ChoosePrivateKeyRule o) { buildCounterChoosePrivateKeyRule++; if (buildCounterChoosePrivateKeyRule < 3) { - checkUnnamed1133(o.packageNames); + checkUnnamed1143(o.packageNames); unittest.expect(o.privateKeyAlias, unittest.equals('foo')); unittest.expect(o.urlPattern, unittest.equals('foo')); } buildCounterChoosePrivateKeyRule--; } -buildUnnamed1134() { +buildUnnamed1144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1134(core.List<core.String> o) { +checkUnnamed1144(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -521,7 +525,7 @@ o.duration = "foo"; o.errorCode = "foo"; o.newPassword = "foo"; - o.resetPasswordFlags = buildUnnamed1134(); + o.resetPasswordFlags = buildUnnamed1144(); o.type = "foo"; o.userName = "foo"; } @@ -536,21 +540,21 @@ unittest.expect(o.duration, unittest.equals('foo')); unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.newPassword, unittest.equals('foo')); - checkUnnamed1134(o.resetPasswordFlags); + checkUnnamed1144(o.resetPasswordFlags); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.userName, unittest.equals('foo')); } buildCounterCommand--; } -buildUnnamed1135() { +buildUnnamed1145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1135(core.List<core.String> o) { +checkUnnamed1145(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -564,7 +568,7 @@ o.apiLevelCondition = buildApiLevelCondition(); o.disableApps = true; o.nonComplianceDetailCondition = buildNonComplianceDetailCondition(); - o.packageNamesToDisable = buildUnnamed1135(); + o.packageNamesToDisable = buildUnnamed1145(); } buildCounterComplianceRule--; return o; @@ -576,7 +580,7 @@ checkApiLevelCondition(o.apiLevelCondition); unittest.expect(o.disableApps, unittest.isTrue); checkNonComplianceDetailCondition(o.nonComplianceDetailCondition); - checkUnnamed1135(o.packageNamesToDisable); + checkUnnamed1145(o.packageNamesToDisable); } buildCounterComplianceRule--; } @@ -604,105 +608,105 @@ buildCounterDate--; } -buildUnnamed1136() { +buildUnnamed1146() { var o = new core.List<api.ApplicationReport>(); o.add(buildApplicationReport()); o.add(buildApplicationReport()); return o; } -checkUnnamed1136(core.List<api.ApplicationReport> o) { +checkUnnamed1146(core.List<api.ApplicationReport> o) { unittest.expect(o, unittest.hasLength(2)); checkApplicationReport(o[0]); checkApplicationReport(o[1]); } -buildUnnamed1137() { +buildUnnamed1147() { var o = new core.List<api.Display>(); o.add(buildDisplay()); o.add(buildDisplay()); return o; } -checkUnnamed1137(core.List<api.Display> o) { +checkUnnamed1147(core.List<api.Display> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplay(o[0]); checkDisplay(o[1]); } -buildUnnamed1138() { +buildUnnamed1148() { var o = new core.List<api.HardwareStatus>(); o.add(buildHardwareStatus()); o.add(buildHardwareStatus()); return o; } -checkUnnamed1138(core.List<api.HardwareStatus> o) { +checkUnnamed1148(core.List<api.HardwareStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHardwareStatus(o[0]); checkHardwareStatus(o[1]); } -buildUnnamed1139() { +buildUnnamed1149() { var o = new core.List<api.MemoryEvent>(); o.add(buildMemoryEvent()); o.add(buildMemoryEvent()); return o; } -checkUnnamed1139(core.List<api.MemoryEvent> o) { +checkUnnamed1149(core.List<api.MemoryEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkMemoryEvent(o[0]); checkMemoryEvent(o[1]); } -buildUnnamed1140() { +buildUnnamed1150() { var o = new core.List<api.NonComplianceDetail>(); o.add(buildNonComplianceDetail()); o.add(buildNonComplianceDetail()); return o; } -checkUnnamed1140(core.List<api.NonComplianceDetail> o) { +checkUnnamed1150(core.List<api.NonComplianceDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkNonComplianceDetail(o[0]); checkNonComplianceDetail(o[1]); } -buildUnnamed1141() { +buildUnnamed1151() { var o = new core.List<api.PowerManagementEvent>(); o.add(buildPowerManagementEvent()); o.add(buildPowerManagementEvent()); return o; } -checkUnnamed1141(core.List<api.PowerManagementEvent> o) { +checkUnnamed1151(core.List<api.PowerManagementEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPowerManagementEvent(o[0]); checkPowerManagementEvent(o[1]); } -buildUnnamed1142() { +buildUnnamed1152() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1142(core.List<core.String> o) { +checkUnnamed1152(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1143() { +buildUnnamed1153() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1143(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')); @@ -714,35 +718,36 @@ buildCounterDevice++; if (buildCounterDevice < 3) { o.apiLevel = 42; - o.applicationReports = buildUnnamed1136(); + o.applicationReports = buildUnnamed1146(); o.appliedPolicyName = "foo"; o.appliedPolicyVersion = "foo"; o.appliedState = "foo"; o.deviceSettings = buildDeviceSettings(); o.disabledReason = buildUserFacingMessage(); - o.displays = buildUnnamed1137(); + o.displays = buildUnnamed1147(); o.enrollmentTime = "foo"; o.enrollmentTokenData = "foo"; o.enrollmentTokenName = "foo"; o.hardwareInfo = buildHardwareInfo(); - o.hardwareStatusSamples = buildUnnamed1138(); + o.hardwareStatusSamples = buildUnnamed1148(); o.lastPolicyComplianceReportTime = "foo"; o.lastPolicySyncTime = "foo"; o.lastStatusReportTime = "foo"; o.managementMode = "foo"; - o.memoryEvents = buildUnnamed1139(); + o.memoryEvents = buildUnnamed1149(); o.memoryInfo = buildMemoryInfo(); o.name = "foo"; o.networkInfo = buildNetworkInfo(); - o.nonComplianceDetails = buildUnnamed1140(); + o.nonComplianceDetails = buildUnnamed1150(); + o.ownership = "foo"; o.policyCompliant = true; o.policyName = "foo"; - o.powerManagementEvents = buildUnnamed1141(); - o.previousDeviceNames = buildUnnamed1142(); + o.powerManagementEvents = buildUnnamed1151(); + o.previousDeviceNames = buildUnnamed1152(); o.securityPosture = buildSecurityPosture(); o.softwareInfo = buildSoftwareInfo(); o.state = "foo"; - o.systemProperties = buildUnnamed1143(); + o.systemProperties = buildUnnamed1153(); o.user = buildUser(); o.userName = "foo"; } @@ -754,35 +759,36 @@ buildCounterDevice++; if (buildCounterDevice < 3) { unittest.expect(o.apiLevel, unittest.equals(42)); - checkUnnamed1136(o.applicationReports); + checkUnnamed1146(o.applicationReports); unittest.expect(o.appliedPolicyName, unittest.equals('foo')); unittest.expect(o.appliedPolicyVersion, unittest.equals('foo')); unittest.expect(o.appliedState, unittest.equals('foo')); checkDeviceSettings(o.deviceSettings); checkUserFacingMessage(o.disabledReason); - checkUnnamed1137(o.displays); + checkUnnamed1147(o.displays); unittest.expect(o.enrollmentTime, unittest.equals('foo')); unittest.expect(o.enrollmentTokenData, unittest.equals('foo')); unittest.expect(o.enrollmentTokenName, unittest.equals('foo')); checkHardwareInfo(o.hardwareInfo); - checkUnnamed1138(o.hardwareStatusSamples); + checkUnnamed1148(o.hardwareStatusSamples); unittest.expect(o.lastPolicyComplianceReportTime, unittest.equals('foo')); unittest.expect(o.lastPolicySyncTime, unittest.equals('foo')); unittest.expect(o.lastStatusReportTime, unittest.equals('foo')); unittest.expect(o.managementMode, unittest.equals('foo')); - checkUnnamed1139(o.memoryEvents); + checkUnnamed1149(o.memoryEvents); checkMemoryInfo(o.memoryInfo); unittest.expect(o.name, unittest.equals('foo')); checkNetworkInfo(o.networkInfo); - checkUnnamed1140(o.nonComplianceDetails); + checkUnnamed1150(o.nonComplianceDetails); + unittest.expect(o.ownership, unittest.equals('foo')); unittest.expect(o.policyCompliant, unittest.isTrue); unittest.expect(o.policyName, unittest.equals('foo')); - checkUnnamed1141(o.powerManagementEvents); - checkUnnamed1142(o.previousDeviceNames); + checkUnnamed1151(o.powerManagementEvents); + checkUnnamed1152(o.previousDeviceNames); checkSecurityPosture(o.securityPosture); checkSoftwareInfo(o.softwareInfo); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed1143(o.systemProperties); + checkUnnamed1153(o.systemProperties); checkUser(o.user); unittest.expect(o.userName, unittest.equals('foo')); } @@ -872,6 +878,7 @@ buildCounterEnrollmentToken++; if (buildCounterEnrollmentToken < 3) { o.additionalData = "foo"; + o.allowPersonalUsage = "foo"; o.duration = "foo"; o.expirationTimestamp = "foo"; o.name = "foo"; @@ -889,6 +896,7 @@ buildCounterEnrollmentToken++; if (buildCounterEnrollmentToken < 3) { unittest.expect(o.additionalData, unittest.equals('foo')); + unittest.expect(o.allowPersonalUsage, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals('foo')); unittest.expect(o.expirationTimestamp, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -901,40 +909,40 @@ buildCounterEnrollmentToken--; } -buildUnnamed1144() { +buildUnnamed1154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1144(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')); } -buildUnnamed1145() { +buildUnnamed1155() { var o = new core.List<api.SigninDetail>(); o.add(buildSigninDetail()); o.add(buildSigninDetail()); return o; } -checkUnnamed1145(core.List<api.SigninDetail> o) { +checkUnnamed1155(core.List<api.SigninDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkSigninDetail(o[0]); checkSigninDetail(o[1]); } -buildUnnamed1146() { +buildUnnamed1156() { var o = new core.List<api.TermsAndConditions>(); o.add(buildTermsAndConditions()); o.add(buildTermsAndConditions()); return o; } -checkUnnamed1146(core.List<api.TermsAndConditions> o) { +checkUnnamed1156(core.List<api.TermsAndConditions> o) { unittest.expect(o, unittest.hasLength(2)); checkTermsAndConditions(o[0]); checkTermsAndConditions(o[1]); @@ -946,14 +954,14 @@ buildCounterEnterprise++; if (buildCounterEnterprise < 3) { o.appAutoApprovalEnabled = true; - o.enabledNotificationTypes = buildUnnamed1144(); + o.enabledNotificationTypes = buildUnnamed1154(); o.enterpriseDisplayName = "foo"; o.logo = buildExternalData(); o.name = "foo"; o.primaryColor = 42; o.pubsubTopic = "foo"; - o.signinDetails = buildUnnamed1145(); - o.termsAndConditions = buildUnnamed1146(); + o.signinDetails = buildUnnamed1155(); + o.termsAndConditions = buildUnnamed1156(); } buildCounterEnterprise--; return o; @@ -963,14 +971,14 @@ buildCounterEnterprise++; if (buildCounterEnterprise < 3) { unittest.expect(o.appAutoApprovalEnabled, unittest.isTrue); - checkUnnamed1144(o.enabledNotificationTypes); + checkUnnamed1154(o.enabledNotificationTypes); unittest.expect(o.enterpriseDisplayName, unittest.equals('foo')); checkExternalData(o.logo); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.primaryColor, unittest.equals(42)); unittest.expect(o.pubsubTopic, unittest.equals('foo')); - checkUnnamed1145(o.signinDetails); - checkUnnamed1146(o.termsAndConditions); + checkUnnamed1155(o.signinDetails); + checkUnnamed1156(o.termsAndConditions); } buildCounterEnterprise--; } @@ -1017,181 +1025,6 @@ buildCounterFreezePeriod--; } -buildUnnamed1147() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1147(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)); -} - -buildUnnamed1148() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1148(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)); -} - -buildUnnamed1149() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1149(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)); -} - -buildUnnamed1150() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1150(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)); -} - -buildUnnamed1151() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1151(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)); -} - -buildUnnamed1152() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1152(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)); -} - -buildUnnamed1153() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1153(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)); -} - -buildUnnamed1154() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1154(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)); -} - -core.int buildCounterHardwareInfo = 0; -buildHardwareInfo() { - var o = new api.HardwareInfo(); - buildCounterHardwareInfo++; - if (buildCounterHardwareInfo < 3) { - o.batteryShutdownTemperatures = buildUnnamed1147(); - o.batteryThrottlingTemperatures = buildUnnamed1148(); - o.brand = "foo"; - o.cpuShutdownTemperatures = buildUnnamed1149(); - o.cpuThrottlingTemperatures = buildUnnamed1150(); - o.deviceBasebandVersion = "foo"; - o.gpuShutdownTemperatures = buildUnnamed1151(); - o.gpuThrottlingTemperatures = buildUnnamed1152(); - o.hardware = "foo"; - o.manufacturer = "foo"; - o.model = "foo"; - o.serialNumber = "foo"; - o.skinShutdownTemperatures = buildUnnamed1153(); - o.skinThrottlingTemperatures = buildUnnamed1154(); - } - buildCounterHardwareInfo--; - return o; -} - -checkHardwareInfo(api.HardwareInfo o) { - buildCounterHardwareInfo++; - if (buildCounterHardwareInfo < 3) { - checkUnnamed1147(o.batteryShutdownTemperatures); - checkUnnamed1148(o.batteryThrottlingTemperatures); - unittest.expect(o.brand, unittest.equals('foo')); - checkUnnamed1149(o.cpuShutdownTemperatures); - checkUnnamed1150(o.cpuThrottlingTemperatures); - unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); - checkUnnamed1151(o.gpuShutdownTemperatures); - checkUnnamed1152(o.gpuThrottlingTemperatures); - unittest.expect(o.hardware, unittest.equals('foo')); - unittest.expect(o.manufacturer, unittest.equals('foo')); - unittest.expect(o.model, unittest.equals('foo')); - unittest.expect(o.serialNumber, unittest.equals('foo')); - checkUnnamed1153(o.skinShutdownTemperatures); - checkUnnamed1154(o.skinThrottlingTemperatures); - } - buildCounterHardwareInfo--; -} - -buildUnnamed1155() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1155(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)); -} - -buildUnnamed1156() { - var o = new core.List<core.double>(); - o.add(42.0); - o.add(42.0); - return o; -} - -checkUnnamed1156(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)); -} - buildUnnamed1157() { var o = new core.List<core.double>(); o.add(42.0); @@ -1244,18 +1077,193 @@ unittest.expect(o[1], unittest.equals(42.0)); } +buildUnnamed1161() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1161(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)); +} + +buildUnnamed1162() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1162(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)); +} + +buildUnnamed1163() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1163(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)); +} + +buildUnnamed1164() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1164(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)); +} + +core.int buildCounterHardwareInfo = 0; +buildHardwareInfo() { + var o = new api.HardwareInfo(); + buildCounterHardwareInfo++; + if (buildCounterHardwareInfo < 3) { + o.batteryShutdownTemperatures = buildUnnamed1157(); + o.batteryThrottlingTemperatures = buildUnnamed1158(); + o.brand = "foo"; + o.cpuShutdownTemperatures = buildUnnamed1159(); + o.cpuThrottlingTemperatures = buildUnnamed1160(); + o.deviceBasebandVersion = "foo"; + o.gpuShutdownTemperatures = buildUnnamed1161(); + o.gpuThrottlingTemperatures = buildUnnamed1162(); + o.hardware = "foo"; + o.manufacturer = "foo"; + o.model = "foo"; + o.serialNumber = "foo"; + o.skinShutdownTemperatures = buildUnnamed1163(); + o.skinThrottlingTemperatures = buildUnnamed1164(); + } + buildCounterHardwareInfo--; + return o; +} + +checkHardwareInfo(api.HardwareInfo o) { + buildCounterHardwareInfo++; + if (buildCounterHardwareInfo < 3) { + checkUnnamed1157(o.batteryShutdownTemperatures); + checkUnnamed1158(o.batteryThrottlingTemperatures); + unittest.expect(o.brand, unittest.equals('foo')); + checkUnnamed1159(o.cpuShutdownTemperatures); + checkUnnamed1160(o.cpuThrottlingTemperatures); + unittest.expect(o.deviceBasebandVersion, unittest.equals('foo')); + checkUnnamed1161(o.gpuShutdownTemperatures); + checkUnnamed1162(o.gpuThrottlingTemperatures); + unittest.expect(o.hardware, unittest.equals('foo')); + unittest.expect(o.manufacturer, unittest.equals('foo')); + unittest.expect(o.model, unittest.equals('foo')); + unittest.expect(o.serialNumber, unittest.equals('foo')); + checkUnnamed1163(o.skinShutdownTemperatures); + checkUnnamed1164(o.skinThrottlingTemperatures); + } + buildCounterHardwareInfo--; +} + +buildUnnamed1165() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1165(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)); +} + +buildUnnamed1166() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1166(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)); +} + +buildUnnamed1167() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1167(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)); +} + +buildUnnamed1168() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1168(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)); +} + +buildUnnamed1169() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1169(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)); +} + +buildUnnamed1170() { + var o = new core.List<core.double>(); + o.add(42.0); + o.add(42.0); + return o; +} + +checkUnnamed1170(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)); +} + core.int buildCounterHardwareStatus = 0; buildHardwareStatus() { var o = new api.HardwareStatus(); buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - o.batteryTemperatures = buildUnnamed1155(); - o.cpuTemperatures = buildUnnamed1156(); - o.cpuUsages = buildUnnamed1157(); + o.batteryTemperatures = buildUnnamed1165(); + o.cpuTemperatures = buildUnnamed1166(); + o.cpuUsages = buildUnnamed1167(); o.createTime = "foo"; - o.fanSpeeds = buildUnnamed1158(); - o.gpuTemperatures = buildUnnamed1159(); - o.skinTemperatures = buildUnnamed1160(); + o.fanSpeeds = buildUnnamed1168(); + o.gpuTemperatures = buildUnnamed1169(); + o.skinTemperatures = buildUnnamed1170(); } buildCounterHardwareStatus--; return o; @@ -1264,13 +1272,13 @@ checkHardwareStatus(api.HardwareStatus o) { buildCounterHardwareStatus++; if (buildCounterHardwareStatus < 3) { - checkUnnamed1155(o.batteryTemperatures); - checkUnnamed1156(o.cpuTemperatures); - checkUnnamed1157(o.cpuUsages); + checkUnnamed1165(o.batteryTemperatures); + checkUnnamed1166(o.cpuTemperatures); + checkUnnamed1167(o.cpuUsages); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1158(o.fanSpeeds); - checkUnnamed1159(o.gpuTemperatures); - checkUnnamed1160(o.skinTemperatures); + checkUnnamed1168(o.fanSpeeds); + checkUnnamed1169(o.gpuTemperatures); + checkUnnamed1170(o.skinTemperatures); } buildCounterHardwareStatus--; } @@ -1350,14 +1358,14 @@ buildCounterLaunchAppAction--; } -buildUnnamed1161() { +buildUnnamed1171() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed1161(core.List<api.Device> o) { +checkUnnamed1171(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -1368,7 +1376,7 @@ var o = new api.ListDevicesResponse(); buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - o.devices = buildUnnamed1161(); + o.devices = buildUnnamed1171(); o.nextPageToken = "foo"; } buildCounterListDevicesResponse--; @@ -1378,20 +1386,20 @@ checkListDevicesResponse(api.ListDevicesResponse o) { buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - checkUnnamed1161(o.devices); + checkUnnamed1171(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDevicesResponse--; } -buildUnnamed1162() { +buildUnnamed1172() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1162(core.List<api.Operation> o) { +checkUnnamed1172(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1403,7 +1411,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1162(); + o.operations = buildUnnamed1172(); } buildCounterListOperationsResponse--; return o; @@ -1413,19 +1421,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1162(o.operations); + checkUnnamed1172(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1163() { +buildUnnamed1173() { var o = new core.List<api.Policy>(); o.add(buildPolicy()); o.add(buildPolicy()); return o; } -checkUnnamed1163(core.List<api.Policy> o) { +checkUnnamed1173(core.List<api.Policy> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicy(o[0]); checkPolicy(o[1]); @@ -1437,7 +1445,7 @@ buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed1163(); + o.policies = buildUnnamed1173(); } buildCounterListPoliciesResponse--; return o; @@ -1447,19 +1455,19 @@ buildCounterListPoliciesResponse++; if (buildCounterListPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1163(o.policies); + checkUnnamed1173(o.policies); } buildCounterListPoliciesResponse--; } -buildUnnamed1164() { +buildUnnamed1174() { var o = new core.List<api.WebApp>(); o.add(buildWebApp()); o.add(buildWebApp()); return o; } -checkUnnamed1164(core.List<api.WebApp> o) { +checkUnnamed1174(core.List<api.WebApp> o) { unittest.expect(o, unittest.hasLength(2)); checkWebApp(o[0]); checkWebApp(o[1]); @@ -1471,7 +1479,7 @@ buildCounterListWebAppsResponse++; if (buildCounterListWebAppsResponse < 3) { o.nextPageToken = "foo"; - o.webApps = buildUnnamed1164(); + o.webApps = buildUnnamed1174(); } buildCounterListWebAppsResponse--; return o; @@ -1481,19 +1489,19 @@ buildCounterListWebAppsResponse++; if (buildCounterListWebAppsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1164(o.webApps); + checkUnnamed1174(o.webApps); } buildCounterListWebAppsResponse--; } -buildUnnamed1165() { +buildUnnamed1175() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1165(core.Map<core.String, core.String> o) { +checkUnnamed1175(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')); @@ -1504,7 +1512,7 @@ var o = new api.ManagedConfigurationTemplate(); buildCounterManagedConfigurationTemplate++; if (buildCounterManagedConfigurationTemplate < 3) { - o.configurationVariables = buildUnnamed1165(); + o.configurationVariables = buildUnnamed1175(); o.templateId = "foo"; } buildCounterManagedConfigurationTemplate--; @@ -1514,33 +1522,33 @@ checkManagedConfigurationTemplate(api.ManagedConfigurationTemplate o) { buildCounterManagedConfigurationTemplate++; if (buildCounterManagedConfigurationTemplate < 3) { - checkUnnamed1165(o.configurationVariables); + checkUnnamed1175(o.configurationVariables); unittest.expect(o.templateId, unittest.equals('foo')); } buildCounterManagedConfigurationTemplate--; } -buildUnnamed1166() { +buildUnnamed1176() { var o = new core.List<api.ManagedPropertyEntry>(); o.add(buildManagedPropertyEntry()); o.add(buildManagedPropertyEntry()); return o; } -checkUnnamed1166(core.List<api.ManagedPropertyEntry> o) { +checkUnnamed1176(core.List<api.ManagedPropertyEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedPropertyEntry(o[0]); checkManagedPropertyEntry(o[1]); } -buildUnnamed1167() { +buildUnnamed1177() { var o = new core.List<api.ManagedProperty>(); o.add(buildManagedProperty()); o.add(buildManagedProperty()); return o; } -checkUnnamed1167(core.List<api.ManagedProperty> o) { +checkUnnamed1177(core.List<api.ManagedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedProperty(o[0]); checkManagedProperty(o[1]); @@ -1557,9 +1565,9 @@ 'string': 'foo' }; o.description = "foo"; - o.entries = buildUnnamed1166(); + o.entries = buildUnnamed1176(); o.key = "foo"; - o.nestedProperties = buildUnnamed1167(); + o.nestedProperties = buildUnnamed1177(); o.title = "foo"; o.type = "foo"; } @@ -1576,9 +1584,9 @@ unittest.expect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"], unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1166(o.entries); + checkUnnamed1176(o.entries); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1167(o.nestedProperties); + checkUnnamed1177(o.nestedProperties); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -1735,7 +1743,7 @@ buildCounterNonComplianceDetailCondition--; } -buildUnnamed1168() { +buildUnnamed1178() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1750,7 +1758,7 @@ return o; } -checkUnnamed1168(core.Map<core.String, core.Object> o) { +checkUnnamed1178(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)); @@ -1764,7 +1772,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1169() { +buildUnnamed1179() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1779,7 +1787,7 @@ return o; } -checkUnnamed1169(core.Map<core.String, core.Object> o) { +checkUnnamed1179(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)); @@ -1800,9 +1808,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1168(); + o.metadata = buildUnnamed1178(); o.name = "foo"; - o.response = buildUnnamed1169(); + o.response = buildUnnamed1179(); } buildCounterOperation--; return o; @@ -1813,21 +1821,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1168(o.metadata); + checkUnnamed1178(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1169(o.response); + checkUnnamed1179(o.response); } buildCounterOperation--; } -buildUnnamed1170() { +buildUnnamed1180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1170(core.List<core.String> o) { +checkUnnamed1180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1838,7 +1846,7 @@ var o = new api.PackageNameList(); buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - o.packageNames = buildUnnamed1170(); + o.packageNames = buildUnnamed1180(); } buildCounterPackageNameList--; return o; @@ -1847,7 +1855,7 @@ checkPackageNameList(api.PackageNameList o) { buildCounterPackageNameList++; if (buildCounterPackageNameList < 3) { - checkUnnamed1170(o.packageNames); + checkUnnamed1180(o.packageNames); } buildCounterPackageNameList--; } @@ -1916,27 +1924,27 @@ buildCounterPermissionGrant--; } -buildUnnamed1171() { +buildUnnamed1181() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1171(core.List<core.String> o) { +checkUnnamed1181(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1172() { +buildUnnamed1182() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1172(core.List<core.String> o) { +checkUnnamed1182(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1947,8 +1955,8 @@ var o = new api.PersistentPreferredActivity(); buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - o.actions = buildUnnamed1171(); - o.categories = buildUnnamed1172(); + o.actions = buildUnnamed1181(); + o.categories = buildUnnamed1182(); o.receiverActivity = "foo"; } buildCounterPersistentPreferredActivity--; @@ -1958,196 +1966,100 @@ checkPersistentPreferredActivity(api.PersistentPreferredActivity o) { buildCounterPersistentPreferredActivity++; if (buildCounterPersistentPreferredActivity < 3) { - checkUnnamed1171(o.actions); - checkUnnamed1172(o.categories); + checkUnnamed1181(o.actions); + checkUnnamed1182(o.categories); unittest.expect(o.receiverActivity, unittest.equals('foo')); } buildCounterPersistentPreferredActivity--; } -buildUnnamed1173() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); +core.int buildCounterPersonalApplicationPolicy = 0; +buildPersonalApplicationPolicy() { + var o = new api.PersonalApplicationPolicy(); + buildCounterPersonalApplicationPolicy++; + if (buildCounterPersonalApplicationPolicy < 3) { + o.installType = "foo"; + o.packageName = "foo"; + } + buildCounterPersonalApplicationPolicy--; return o; } -checkUnnamed1173(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1174() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1174(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1175() { - var o = new core.List<api.ApplicationPolicy>(); - o.add(buildApplicationPolicy()); - o.add(buildApplicationPolicy()); - return o; -} - -checkUnnamed1175(core.List<api.ApplicationPolicy> o) { - unittest.expect(o, unittest.hasLength(2)); - checkApplicationPolicy(o[0]); - checkApplicationPolicy(o[1]); -} - -buildUnnamed1176() { - var o = new core.List<api.ChoosePrivateKeyRule>(); - o.add(buildChoosePrivateKeyRule()); - o.add(buildChoosePrivateKeyRule()); - return o; -} - -checkUnnamed1176(core.List<api.ChoosePrivateKeyRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkChoosePrivateKeyRule(o[0]); - checkChoosePrivateKeyRule(o[1]); -} - -buildUnnamed1177() { - var o = new core.List<api.ComplianceRule>(); - o.add(buildComplianceRule()); - o.add(buildComplianceRule()); - return o; -} - -checkUnnamed1177(core.List<api.ComplianceRule> o) { - unittest.expect(o, unittest.hasLength(2)); - checkComplianceRule(o[0]); - checkComplianceRule(o[1]); -} - -buildUnnamed1178() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1178(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1179() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1179(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1180() { - 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; -} - -checkUnnamed1180(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')); -} - -buildUnnamed1181() { - var o = new core.List<api.PasswordRequirements>(); - o.add(buildPasswordRequirements()); - o.add(buildPasswordRequirements()); - return o; -} - -checkUnnamed1181(core.List<api.PasswordRequirements> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPasswordRequirements(o[0]); - checkPasswordRequirements(o[1]); -} - -buildUnnamed1182() { - var o = new core.List<api.PermissionGrant>(); - o.add(buildPermissionGrant()); - o.add(buildPermissionGrant()); - return o; -} - -checkUnnamed1182(core.List<api.PermissionGrant> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPermissionGrant(o[0]); - checkPermissionGrant(o[1]); +checkPersonalApplicationPolicy(api.PersonalApplicationPolicy o) { + buildCounterPersonalApplicationPolicy++; + if (buildCounterPersonalApplicationPolicy < 3) { + unittest.expect(o.installType, unittest.equals('foo')); + unittest.expect(o.packageName, unittest.equals('foo')); + } + buildCounterPersonalApplicationPolicy--; } buildUnnamed1183() { - var o = new core.List<api.PersistentPreferredActivity>(); - o.add(buildPersistentPreferredActivity()); - o.add(buildPersistentPreferredActivity()); + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed1183(core.List<api.PersistentPreferredActivity> o) { +checkUnnamed1183(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkPersistentPreferredActivity(o[0]); - checkPersistentPreferredActivity(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed1184() { - var o = new core.List<api.PolicyEnforcementRule>(); - o.add(buildPolicyEnforcementRule()); - o.add(buildPolicyEnforcementRule()); + var o = new core.List<api.PersonalApplicationPolicy>(); + o.add(buildPersonalApplicationPolicy()); + o.add(buildPersonalApplicationPolicy()); return o; } -checkUnnamed1184(core.List<api.PolicyEnforcementRule> o) { +checkUnnamed1184(core.List<api.PersonalApplicationPolicy> o) { unittest.expect(o, unittest.hasLength(2)); - checkPolicyEnforcementRule(o[0]); - checkPolicyEnforcementRule(o[1]); + checkPersonalApplicationPolicy(o[0]); + checkPersonalApplicationPolicy(o[1]); +} + +core.int buildCounterPersonalUsagePolicies = 0; +buildPersonalUsagePolicies() { + var o = new api.PersonalUsagePolicies(); + buildCounterPersonalUsagePolicies++; + if (buildCounterPersonalUsagePolicies < 3) { + o.accountTypesWithManagementDisabled = buildUnnamed1183(); + o.cameraDisabled = true; + o.maxDaysWithWorkOff = 42; + o.personalApplications = buildUnnamed1184(); + o.personalPlayStoreMode = "foo"; + o.screenCaptureDisabled = true; + } + buildCounterPersonalUsagePolicies--; + return o; +} + +checkPersonalUsagePolicies(api.PersonalUsagePolicies o) { + buildCounterPersonalUsagePolicies++; + if (buildCounterPersonalUsagePolicies < 3) { + checkUnnamed1183(o.accountTypesWithManagementDisabled); + unittest.expect(o.cameraDisabled, unittest.isTrue); + unittest.expect(o.maxDaysWithWorkOff, unittest.equals(42)); + checkUnnamed1184(o.personalApplications); + unittest.expect(o.personalPlayStoreMode, unittest.equals('foo')); + unittest.expect(o.screenCaptureDisabled, unittest.isTrue); + } + buildCounterPersonalUsagePolicies--; } buildUnnamed1185() { - var o = new core.List<api.SetupAction>(); - o.add(buildSetupAction()); - o.add(buildSetupAction()); + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed1185(core.List<api.SetupAction> o) { +checkUnnamed1185(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkSetupAction(o[0]); - checkSetupAction(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } buildUnnamed1186() { @@ -2163,19 +2075,191 @@ unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed1187() { + var o = new core.List<api.ApplicationPolicy>(); + o.add(buildApplicationPolicy()); + o.add(buildApplicationPolicy()); + return o; +} + +checkUnnamed1187(core.List<api.ApplicationPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApplicationPolicy(o[0]); + checkApplicationPolicy(o[1]); +} + +buildUnnamed1188() { + var o = new core.List<api.ChoosePrivateKeyRule>(); + o.add(buildChoosePrivateKeyRule()); + o.add(buildChoosePrivateKeyRule()); + return o; +} + +checkUnnamed1188(core.List<api.ChoosePrivateKeyRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkChoosePrivateKeyRule(o[0]); + checkChoosePrivateKeyRule(o[1]); +} + +buildUnnamed1189() { + var o = new core.List<api.ComplianceRule>(); + o.add(buildComplianceRule()); + o.add(buildComplianceRule()); + return o; +} + +checkUnnamed1189(core.List<api.ComplianceRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkComplianceRule(o[0]); + checkComplianceRule(o[1]); +} + +buildUnnamed1190() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1191() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1192() { + 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; +} + +checkUnnamed1192(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')); +} + +buildUnnamed1193() { + var o = new core.List<api.PasswordRequirements>(); + o.add(buildPasswordRequirements()); + o.add(buildPasswordRequirements()); + return o; +} + +checkUnnamed1193(core.List<api.PasswordRequirements> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPasswordRequirements(o[0]); + checkPasswordRequirements(o[1]); +} + +buildUnnamed1194() { + var o = new core.List<api.PermissionGrant>(); + o.add(buildPermissionGrant()); + o.add(buildPermissionGrant()); + return o; +} + +checkUnnamed1194(core.List<api.PermissionGrant> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPermissionGrant(o[0]); + checkPermissionGrant(o[1]); +} + +buildUnnamed1195() { + var o = new core.List<api.PersistentPreferredActivity>(); + o.add(buildPersistentPreferredActivity()); + o.add(buildPersistentPreferredActivity()); + return o; +} + +checkUnnamed1195(core.List<api.PersistentPreferredActivity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPersistentPreferredActivity(o[0]); + checkPersistentPreferredActivity(o[1]); +} + +buildUnnamed1196() { + var o = new core.List<api.PolicyEnforcementRule>(); + o.add(buildPolicyEnforcementRule()); + o.add(buildPolicyEnforcementRule()); + return o; +} + +checkUnnamed1196(core.List<api.PolicyEnforcementRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPolicyEnforcementRule(o[0]); + checkPolicyEnforcementRule(o[1]); +} + +buildUnnamed1197() { + var o = new core.List<api.SetupAction>(); + o.add(buildSetupAction()); + o.add(buildSetupAction()); + return o; +} + +checkUnnamed1197(core.List<api.SetupAction> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSetupAction(o[0]); + checkSetupAction(o[1]); +} + +buildUnnamed1198() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterPolicy = 0; buildPolicy() { var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.accountTypesWithManagementDisabled = buildUnnamed1173(); + o.accountTypesWithManagementDisabled = buildUnnamed1185(); o.addUserDisabled = true; o.adjustVolumeDisabled = true; o.advancedSecurityOverrides = buildAdvancedSecurityOverrides(); o.alwaysOnVpnPackage = buildAlwaysOnVpnPackage(); - o.androidDevicePolicyTracks = buildUnnamed1174(); + o.androidDevicePolicyTracks = buildUnnamed1186(); o.appAutoUpdatePolicy = "foo"; - o.applications = buildUnnamed1175(); + o.applications = buildUnnamed1187(); o.autoTimeRequired = true; o.blockApplicationsEnabled = true; o.bluetoothConfigDisabled = true; @@ -2183,8 +2267,8 @@ o.bluetoothDisabled = true; o.cameraDisabled = true; o.cellBroadcastsConfigDisabled = true; - o.choosePrivateKeyRules = buildUnnamed1176(); - o.complianceRules = buildUnnamed1177(); + o.choosePrivateKeyRules = buildUnnamed1188(); + o.complianceRules = buildUnnamed1189(); o.createWindowsDisabled = true; o.credentialsConfigDisabled = true; o.dataRoamingDisabled = true; @@ -2194,12 +2278,12 @@ o.encryptionPolicy = "foo"; o.ensureVerifyAppsEnabled = true; o.factoryResetDisabled = true; - o.frpAdminEmails = buildUnnamed1178(); + o.frpAdminEmails = buildUnnamed1190(); o.funDisabled = true; o.installAppsDisabled = true; o.installUnknownSourcesAllowed = true; o.keyguardDisabled = true; - o.keyguardDisabledFeatures = buildUnnamed1179(); + o.keyguardDisabledFeatures = buildUnnamed1191(); o.kioskCustomLauncherEnabled = true; o.kioskCustomization = buildKioskCustomization(); o.locationMode = "foo"; @@ -2212,17 +2296,18 @@ o.name = "foo"; o.networkEscapeHatchEnabled = true; o.networkResetDisabled = true; - o.openNetworkConfiguration = buildUnnamed1180(); + o.openNetworkConfiguration = buildUnnamed1192(); o.outgoingBeamDisabled = true; o.outgoingCallsDisabled = true; - o.passwordPolicies = buildUnnamed1181(); + o.passwordPolicies = buildUnnamed1193(); o.passwordRequirements = buildPasswordRequirements(); - o.permissionGrants = buildUnnamed1182(); + o.permissionGrants = buildUnnamed1194(); o.permittedAccessibilityServices = buildPackageNameList(); o.permittedInputMethods = buildPackageNameList(); - o.persistentPreferredActivities = buildUnnamed1183(); + o.persistentPreferredActivities = buildUnnamed1195(); + o.personalUsagePolicies = buildPersonalUsagePolicies(); o.playStoreMode = "foo"; - o.policyEnforcementRules = buildUnnamed1184(); + o.policyEnforcementRules = buildUnnamed1196(); o.privateKeySelectionEnabled = true; o.recommendedGlobalProxy = buildProxyInfo(); o.removeUserDisabled = true; @@ -2230,14 +2315,14 @@ o.screenCaptureDisabled = true; o.setUserIconDisabled = true; o.setWallpaperDisabled = true; - o.setupActions = buildUnnamed1185(); + o.setupActions = buildUnnamed1197(); o.shareLocationDisabled = true; o.shortSupportMessage = buildUserFacingMessage(); o.skipFirstUseHintsEnabled = true; o.smsDisabled = true; o.statusBarDisabled = true; o.statusReportingSettings = buildStatusReportingSettings(); - o.stayOnPluggedModes = buildUnnamed1186(); + o.stayOnPluggedModes = buildUnnamed1198(); o.systemUpdate = buildSystemUpdate(); o.tetheringConfigDisabled = true; o.uninstallAppsDisabled = true; @@ -2256,14 +2341,14 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1173(o.accountTypesWithManagementDisabled); + checkUnnamed1185(o.accountTypesWithManagementDisabled); unittest.expect(o.addUserDisabled, unittest.isTrue); unittest.expect(o.adjustVolumeDisabled, unittest.isTrue); checkAdvancedSecurityOverrides(o.advancedSecurityOverrides); checkAlwaysOnVpnPackage(o.alwaysOnVpnPackage); - checkUnnamed1174(o.androidDevicePolicyTracks); + checkUnnamed1186(o.androidDevicePolicyTracks); unittest.expect(o.appAutoUpdatePolicy, unittest.equals('foo')); - checkUnnamed1175(o.applications); + checkUnnamed1187(o.applications); unittest.expect(o.autoTimeRequired, unittest.isTrue); unittest.expect(o.blockApplicationsEnabled, unittest.isTrue); unittest.expect(o.bluetoothConfigDisabled, unittest.isTrue); @@ -2271,8 +2356,8 @@ unittest.expect(o.bluetoothDisabled, unittest.isTrue); unittest.expect(o.cameraDisabled, unittest.isTrue); unittest.expect(o.cellBroadcastsConfigDisabled, unittest.isTrue); - checkUnnamed1176(o.choosePrivateKeyRules); - checkUnnamed1177(o.complianceRules); + checkUnnamed1188(o.choosePrivateKeyRules); + checkUnnamed1189(o.complianceRules); unittest.expect(o.createWindowsDisabled, unittest.isTrue); unittest.expect(o.credentialsConfigDisabled, unittest.isTrue); unittest.expect(o.dataRoamingDisabled, unittest.isTrue); @@ -2282,12 +2367,12 @@ unittest.expect(o.encryptionPolicy, unittest.equals('foo')); unittest.expect(o.ensureVerifyAppsEnabled, unittest.isTrue); unittest.expect(o.factoryResetDisabled, unittest.isTrue); - checkUnnamed1178(o.frpAdminEmails); + checkUnnamed1190(o.frpAdminEmails); unittest.expect(o.funDisabled, unittest.isTrue); unittest.expect(o.installAppsDisabled, unittest.isTrue); unittest.expect(o.installUnknownSourcesAllowed, unittest.isTrue); unittest.expect(o.keyguardDisabled, unittest.isTrue); - checkUnnamed1179(o.keyguardDisabledFeatures); + checkUnnamed1191(o.keyguardDisabledFeatures); unittest.expect(o.kioskCustomLauncherEnabled, unittest.isTrue); checkKioskCustomization(o.kioskCustomization); unittest.expect(o.locationMode, unittest.equals('foo')); @@ -2300,17 +2385,18 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.networkEscapeHatchEnabled, unittest.isTrue); unittest.expect(o.networkResetDisabled, unittest.isTrue); - checkUnnamed1180(o.openNetworkConfiguration); + checkUnnamed1192(o.openNetworkConfiguration); unittest.expect(o.outgoingBeamDisabled, unittest.isTrue); unittest.expect(o.outgoingCallsDisabled, unittest.isTrue); - checkUnnamed1181(o.passwordPolicies); + checkUnnamed1193(o.passwordPolicies); checkPasswordRequirements(o.passwordRequirements); - checkUnnamed1182(o.permissionGrants); + checkUnnamed1194(o.permissionGrants); checkPackageNameList(o.permittedAccessibilityServices); checkPackageNameList(o.permittedInputMethods); - checkUnnamed1183(o.persistentPreferredActivities); + checkUnnamed1195(o.persistentPreferredActivities); + checkPersonalUsagePolicies(o.personalUsagePolicies); unittest.expect(o.playStoreMode, unittest.equals('foo')); - checkUnnamed1184(o.policyEnforcementRules); + checkUnnamed1196(o.policyEnforcementRules); unittest.expect(o.privateKeySelectionEnabled, unittest.isTrue); checkProxyInfo(o.recommendedGlobalProxy); unittest.expect(o.removeUserDisabled, unittest.isTrue); @@ -2318,14 +2404,14 @@ unittest.expect(o.screenCaptureDisabled, unittest.isTrue); unittest.expect(o.setUserIconDisabled, unittest.isTrue); unittest.expect(o.setWallpaperDisabled, unittest.isTrue); - checkUnnamed1185(o.setupActions); + checkUnnamed1197(o.setupActions); unittest.expect(o.shareLocationDisabled, unittest.isTrue); checkUserFacingMessage(o.shortSupportMessage); unittest.expect(o.skipFirstUseHintsEnabled, unittest.isTrue); unittest.expect(o.smsDisabled, unittest.isTrue); unittest.expect(o.statusBarDisabled, unittest.isTrue); checkStatusReportingSettings(o.statusReportingSettings); - checkUnnamed1186(o.stayOnPluggedModes); + checkUnnamed1198(o.stayOnPluggedModes); checkSystemUpdate(o.systemUpdate); unittest.expect(o.tetheringConfigDisabled, unittest.isTrue); unittest.expect(o.uninstallAppsDisabled, unittest.isTrue); @@ -2363,14 +2449,14 @@ buildCounterPolicyEnforcementRule--; } -buildUnnamed1187() { +buildUnnamed1199() { var o = new core.List<api.UserFacingMessage>(); o.add(buildUserFacingMessage()); o.add(buildUserFacingMessage()); return o; } -checkUnnamed1187(core.List<api.UserFacingMessage> o) { +checkUnnamed1199(core.List<api.UserFacingMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkUserFacingMessage(o[0]); checkUserFacingMessage(o[1]); @@ -2381,7 +2467,7 @@ var o = new api.PostureDetail(); buildCounterPostureDetail++; if (buildCounterPostureDetail < 3) { - o.advice = buildUnnamed1187(); + o.advice = buildUnnamed1199(); o.securityRisk = "foo"; } buildCounterPostureDetail--; @@ -2391,7 +2477,7 @@ checkPostureDetail(api.PostureDetail o) { buildCounterPostureDetail++; if (buildCounterPostureDetail < 3) { - checkUnnamed1187(o.advice); + checkUnnamed1199(o.advice); unittest.expect(o.securityRisk, unittest.equals('foo')); } buildCounterPostureDetail--; @@ -2420,14 +2506,14 @@ buildCounterPowerManagementEvent--; } -buildUnnamed1188() { +buildUnnamed1200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1188(core.List<core.String> o) { +checkUnnamed1200(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2438,7 +2524,7 @@ var o = new api.ProxyInfo(); buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - o.excludedHosts = buildUnnamed1188(); + o.excludedHosts = buildUnnamed1200(); o.host = "foo"; o.pacUri = "foo"; o.port = 42; @@ -2450,7 +2536,7 @@ checkProxyInfo(api.ProxyInfo o) { buildCounterProxyInfo++; if (buildCounterProxyInfo < 3) { - checkUnnamed1188(o.excludedHosts); + checkUnnamed1200(o.excludedHosts); unittest.expect(o.host, unittest.equals('foo')); unittest.expect(o.pacUri, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); @@ -2458,14 +2544,14 @@ buildCounterProxyInfo--; } -buildUnnamed1189() { +buildUnnamed1201() { var o = new core.List<api.PostureDetail>(); o.add(buildPostureDetail()); o.add(buildPostureDetail()); return o; } -checkUnnamed1189(core.List<api.PostureDetail> o) { +checkUnnamed1201(core.List<api.PostureDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkPostureDetail(o[0]); checkPostureDetail(o[1]); @@ -2477,7 +2563,7 @@ buildCounterSecurityPosture++; if (buildCounterSecurityPosture < 3) { o.devicePosture = "foo"; - o.postureDetails = buildUnnamed1189(); + o.postureDetails = buildUnnamed1201(); } buildCounterSecurityPosture--; return o; @@ -2487,7 +2573,7 @@ buildCounterSecurityPosture++; if (buildCounterSecurityPosture < 3) { unittest.expect(o.devicePosture, unittest.equals('foo')); - checkUnnamed1189(o.postureDetails); + checkUnnamed1201(o.postureDetails); } buildCounterSecurityPosture--; } @@ -2520,6 +2606,7 @@ var o = new api.SigninDetail(); buildCounterSigninDetail++; if (buildCounterSigninDetail < 3) { + o.allowPersonalUsage = "foo"; o.qrCode = "foo"; o.signinEnrollmentToken = "foo"; o.signinUrl = "foo"; @@ -2531,6 +2618,7 @@ checkSigninDetail(api.SigninDetail o) { buildCounterSigninDetail++; if (buildCounterSigninDetail < 3) { + unittest.expect(o.allowPersonalUsage, unittest.equals('foo')); unittest.expect(o.qrCode, unittest.equals('foo')); unittest.expect(o.signinEnrollmentToken, unittest.equals('foo')); unittest.expect(o.signinUrl, unittest.equals('foo')); @@ -2574,6 +2662,7 @@ o.deviceKernelVersion = "foo"; o.primaryLanguageCode = "foo"; o.securityPatchLevel = "foo"; + o.systemUpdateInfo = buildSystemUpdateInfo(); } buildCounterSoftwareInfo--; return o; @@ -2592,11 +2681,12 @@ unittest.expect(o.deviceKernelVersion, unittest.equals('foo')); unittest.expect(o.primaryLanguageCode, unittest.equals('foo')); unittest.expect(o.securityPatchLevel, unittest.equals('foo')); + checkSystemUpdateInfo(o.systemUpdateInfo); } buildCounterSoftwareInfo--; } -buildUnnamed1190() { +buildUnnamed1202() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2611,7 +2701,7 @@ return o; } -checkUnnamed1190(core.Map<core.String, core.Object> o) { +checkUnnamed1202(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)); @@ -2625,17 +2715,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed1191() { +buildUnnamed1203() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1190()); - o.add(buildUnnamed1190()); + o.add(buildUnnamed1202()); + o.add(buildUnnamed1202()); return o; } -checkUnnamed1191(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1203(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1190(o[0]); - checkUnnamed1190(o[1]); + checkUnnamed1202(o[0]); + checkUnnamed1202(o[1]); } core.int buildCounterStatus = 0; @@ -2644,7 +2734,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1191(); + o.details = buildUnnamed1203(); o.message = "foo"; } buildCounterStatus--; @@ -2655,7 +2745,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1191(o.details); + checkUnnamed1203(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2698,14 +2788,14 @@ buildCounterStatusReportingSettings--; } -buildUnnamed1192() { +buildUnnamed1204() { var o = new core.List<api.FreezePeriod>(); o.add(buildFreezePeriod()); o.add(buildFreezePeriod()); return o; } -checkUnnamed1192(core.List<api.FreezePeriod> o) { +checkUnnamed1204(core.List<api.FreezePeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkFreezePeriod(o[0]); checkFreezePeriod(o[1]); @@ -2717,7 +2807,7 @@ buildCounterSystemUpdate++; if (buildCounterSystemUpdate < 3) { o.endMinutes = 42; - o.freezePeriods = buildUnnamed1192(); + o.freezePeriods = buildUnnamed1204(); o.startMinutes = 42; o.type = "foo"; } @@ -2729,13 +2819,34 @@ buildCounterSystemUpdate++; if (buildCounterSystemUpdate < 3) { unittest.expect(o.endMinutes, unittest.equals(42)); - checkUnnamed1192(o.freezePeriods); + checkUnnamed1204(o.freezePeriods); unittest.expect(o.startMinutes, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterSystemUpdate--; } +core.int buildCounterSystemUpdateInfo = 0; +buildSystemUpdateInfo() { + var o = new api.SystemUpdateInfo(); + buildCounterSystemUpdateInfo++; + if (buildCounterSystemUpdateInfo < 3) { + o.updateReceivedTime = "foo"; + o.updateStatus = "foo"; + } + buildCounterSystemUpdateInfo--; + return o; +} + +checkSystemUpdateInfo(api.SystemUpdateInfo o) { + buildCounterSystemUpdateInfo++; + if (buildCounterSystemUpdateInfo < 3) { + unittest.expect(o.updateReceivedTime, unittest.equals('foo')); + unittest.expect(o.updateStatus, unittest.equals('foo')); + } + buildCounterSystemUpdateInfo--; +} + core.int buildCounterTermsAndConditions = 0; buildTermsAndConditions() { var o = new api.TermsAndConditions(); @@ -2776,14 +2887,14 @@ buildCounterUser--; } -buildUnnamed1193() { +buildUnnamed1205() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1193(core.Map<core.String, core.String> o) { +checkUnnamed1205(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -2795,7 +2906,7 @@ buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { o.defaultMessage = "foo"; - o.localizedMessages = buildUnnamed1193(); + o.localizedMessages = buildUnnamed1205(); } buildCounterUserFacingMessage--; return o; @@ -2805,19 +2916,19 @@ buildCounterUserFacingMessage++; if (buildCounterUserFacingMessage < 3) { unittest.expect(o.defaultMessage, unittest.equals('foo')); - checkUnnamed1193(o.localizedMessages); + checkUnnamed1205(o.localizedMessages); } buildCounterUserFacingMessage--; } -buildUnnamed1194() { +buildUnnamed1206() { var o = new core.List<api.WebAppIcon>(); o.add(buildWebAppIcon()); o.add(buildWebAppIcon()); return o; } -checkUnnamed1194(core.List<api.WebAppIcon> o) { +checkUnnamed1206(core.List<api.WebAppIcon> o) { unittest.expect(o, unittest.hasLength(2)); checkWebAppIcon(o[0]); checkWebAppIcon(o[1]); @@ -2829,7 +2940,7 @@ buildCounterWebApp++; if (buildCounterWebApp < 3) { o.displayMode = "foo"; - o.icons = buildUnnamed1194(); + o.icons = buildUnnamed1206(); o.name = "foo"; o.startUrl = "foo"; o.title = "foo"; @@ -2843,7 +2954,7 @@ buildCounterWebApp++; if (buildCounterWebApp < 3) { unittest.expect(o.displayMode, unittest.equals('foo')); - checkUnnamed1194(o.icons); + checkUnnamed1206(o.icons); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.startUrl, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -2871,27 +2982,27 @@ buildCounterWebAppIcon--; } -buildUnnamed1195() { +buildUnnamed1207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1195(core.List<core.String> o) { +checkUnnamed1207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1196() { +buildUnnamed1208() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1196(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')); @@ -2902,10 +3013,10 @@ var o = new api.WebToken(); buildCounterWebToken++; if (buildCounterWebToken < 3) { - o.enabledFeatures = buildUnnamed1195(); + o.enabledFeatures = buildUnnamed1207(); o.name = "foo"; o.parentFrameUrl = "foo"; - o.permissions = buildUnnamed1196(); + o.permissions = buildUnnamed1208(); o.value = "foo"; } buildCounterWebToken--; @@ -2915,10 +3026,10 @@ checkWebToken(api.WebToken o) { buildCounterWebToken++; if (buildCounterWebToken < 3) { - checkUnnamed1195(o.enabledFeatures); + checkUnnamed1207(o.enabledFeatures); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentFrameUrl, unittest.equals('foo')); - checkUnnamed1196(o.permissions); + checkUnnamed1208(o.permissions); unittest.expect(o.value, unittest.equals('foo')); } buildCounterWebToken--; @@ -2945,14 +3056,14 @@ buildCounterWipeAction--; } -buildUnnamed1197() { +buildUnnamed1209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1197(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')); @@ -3319,6 +3430,22 @@ }); }); + unittest.group("obj-schema-PersonalApplicationPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildPersonalApplicationPolicy(); + var od = new api.PersonalApplicationPolicy.fromJson(o.toJson()); + checkPersonalApplicationPolicy(od); + }); + }); + + unittest.group("obj-schema-PersonalUsagePolicies", () { + unittest.test("to-json--from-json", () { + var o = buildPersonalUsagePolicies(); + var od = new api.PersonalUsagePolicies.fromJson(o.toJson()); + checkPersonalUsagePolicies(od); + }); + }); + unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -3423,6 +3550,14 @@ }); }); + unittest.group("obj-schema-SystemUpdateInfo", () { + unittest.test("to-json--from-json", () { + var o = buildSystemUpdateInfo(); + var od = new api.SystemUpdateInfo.fromJson(o.toJson()); + checkSystemUpdateInfo(od); + }); + }); + unittest.group("obj-schema-TermsAndConditions", () { unittest.test("to-json--from-json", () { var o = buildTermsAndConditions(); @@ -3485,8 +3620,8 @@ api.EnterprisesResourceApi res = new api.AndroidmanagementApi(mock).enterprises; var arg_request = buildEnterprise(); - var arg_signupUrlName = "foo"; var arg_projectId = "foo"; + var arg_signupUrlName = "foo"; var arg_enterpriseToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3522,10 +3657,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["signupUrlName"].first, - unittest.equals(arg_signupUrlName)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["signupUrlName"].first, + unittest.equals(arg_signupUrlName)); unittest.expect(queryMap["enterpriseToken"].first, unittest.equals(arg_enterpriseToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3538,8 +3673,8 @@ }), true); res .create(arg_request, - signupUrlName: arg_signupUrlName, projectId: arg_projectId, + signupUrlName: arg_signupUrlName, enterpriseToken: arg_enterpriseToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3723,8 +3858,8 @@ api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; var arg_name = "foo"; - var arg_wipeDataFlags = buildUnnamed1197(); var arg_wipeReasonMessage = "foo"; + var arg_wipeDataFlags = buildUnnamed1209(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3757,10 +3892,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["wipeDataFlags"], unittest.equals(arg_wipeDataFlags)); unittest.expect(queryMap["wipeReasonMessage"].first, unittest.equals(arg_wipeReasonMessage)); + unittest.expect( + queryMap["wipeDataFlags"], unittest.equals(arg_wipeDataFlags)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3771,8 +3906,8 @@ }), true); res .delete(arg_name, - wipeDataFlags: arg_wipeDataFlags, wipeReasonMessage: arg_wipeReasonMessage, + wipeDataFlags: arg_wipeDataFlags, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEmpty(response); @@ -3892,8 +4027,8 @@ api.EnterprisesDevicesResourceApi res = new api.AndroidmanagementApi(mock).enterprises.devices; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3926,10 +4061,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3940,8 +4075,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDevicesResponse(response); @@ -4172,8 +4307,8 @@ new api.AndroidmanagementApi(mock).enterprises.devices.operations; var arg_name = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4208,9 +4343,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4222,8 +4357,8 @@ res .list(arg_name, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/androidpublisher/v2_test.dart b/generated/googleapis/test/androidpublisher/v2_test.dart deleted file mode 100644 index 94b5fba..0000000 --- a/generated/googleapis/test/androidpublisher/v2_test.dart +++ /dev/null
@@ -1,351 +0,0 @@ -library googleapis.androidpublisher.v2.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/androidpublisher/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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -core.int 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 buildCounterProductPurchase = 0; -buildProductPurchase() { - var o = new api.ProductPurchase(); - buildCounterProductPurchase++; - if (buildCounterProductPurchase < 3) { - o.consumptionState = 42; - o.developerPayload = "foo"; - o.kind = "foo"; - o.orderId = "foo"; - o.purchaseState = 42; - o.purchaseTimeMillis = "foo"; - o.purchaseType = 42; - } - buildCounterProductPurchase--; - return o; -} - -checkProductPurchase(api.ProductPurchase o) { - buildCounterProductPurchase++; - if (buildCounterProductPurchase < 3) { - unittest.expect(o.consumptionState, unittest.equals(42)); - unittest.expect(o.developerPayload, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.orderId, unittest.equals('foo')); - unittest.expect(o.purchaseState, unittest.equals(42)); - unittest.expect(o.purchaseTimeMillis, unittest.equals('foo')); - unittest.expect(o.purchaseType, unittest.equals(42)); - } - buildCounterProductPurchase--; -} - -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--; -} - -core.int buildCounterVoidedPurchase = 0; -buildVoidedPurchase() { - var o = new api.VoidedPurchase(); - buildCounterVoidedPurchase++; - if (buildCounterVoidedPurchase < 3) { - o.kind = "foo"; - o.purchaseTimeMillis = "foo"; - o.purchaseToken = "foo"; - o.voidedTimeMillis = "foo"; - } - buildCounterVoidedPurchase--; - return o; -} - -checkVoidedPurchase(api.VoidedPurchase o) { - buildCounterVoidedPurchase++; - if (buildCounterVoidedPurchase < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.purchaseTimeMillis, unittest.equals('foo')); - unittest.expect(o.purchaseToken, unittest.equals('foo')); - unittest.expect(o.voidedTimeMillis, unittest.equals('foo')); - } - buildCounterVoidedPurchase--; -} - -buildUnnamed4681() { - var o = new core.List<api.VoidedPurchase>(); - o.add(buildVoidedPurchase()); - o.add(buildVoidedPurchase()); - return o; -} - -checkUnnamed4681(core.List<api.VoidedPurchase> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVoidedPurchase(o[0]); - checkVoidedPurchase(o[1]); -} - -core.int buildCounterVoidedPurchasesListResponse = 0; -buildVoidedPurchasesListResponse() { - var o = new api.VoidedPurchasesListResponse(); - buildCounterVoidedPurchasesListResponse++; - if (buildCounterVoidedPurchasesListResponse < 3) { - o.pageInfo = buildPageInfo(); - o.tokenPagination = buildTokenPagination(); - o.voidedPurchases = buildUnnamed4681(); - } - buildCounterVoidedPurchasesListResponse--; - return o; -} - -checkVoidedPurchasesListResponse(api.VoidedPurchasesListResponse o) { - buildCounterVoidedPurchasesListResponse++; - if (buildCounterVoidedPurchasesListResponse < 3) { - checkPageInfo(o.pageInfo); - checkTokenPagination(o.tokenPagination); - checkUnnamed4681(o.voidedPurchases); - } - buildCounterVoidedPurchasesListResponse--; -} - -main() { - 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-ProductPurchase", () { - unittest.test("to-json--from-json", () { - var o = buildProductPurchase(); - var od = new api.ProductPurchase.fromJson(o.toJson()); - checkProductPurchase(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("obj-schema-VoidedPurchase", () { - unittest.test("to-json--from-json", () { - var o = buildVoidedPurchase(); - var od = new api.VoidedPurchase.fromJson(o.toJson()); - checkVoidedPurchase(od); - }); - }); - - unittest.group("obj-schema-VoidedPurchasesListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildVoidedPurchasesListResponse(); - var od = new api.VoidedPurchasesListResponse.fromJson(o.toJson()); - checkVoidedPurchasesListResponse(od); - }); - }); - - unittest.group("resource-PurchasesProductsResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.PurchasesProductsResourceApi res = - new api.AndroidpublisherApi(mock).purchases.products; - var arg_packageName = "foo"; - var arg_productId = "foo"; - var arg_token = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildProductPurchase()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_packageName, arg_productId, arg_token, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkProductPurchase(response); - }))); - }); - }); - - unittest.group("resource-PurchasesVoidedpurchasesResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.PurchasesVoidedpurchasesResourceApi res = - new api.AndroidpublisherApi(mock).purchases.voidedpurchases; - var arg_packageName = "foo"; - var arg_endTime = "foo"; - var arg_maxResults = 42; - var arg_startIndex = 42; - var arg_startTime = "foo"; - var arg_token = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["endTime"].first, unittest.equals(arg_endTime)); - 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["startTime"].first, unittest.equals(arg_startTime)); - unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildVoidedPurchasesListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_packageName, - endTime: arg_endTime, - maxResults: arg_maxResults, - startIndex: arg_startIndex, - startTime: arg_startTime, - token: arg_token, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkVoidedPurchasesListResponse(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/androidpublisher/v3_test.dart b/generated/googleapis/test/androidpublisher/v3_test.dart index e595296..bb63ab2 100644 --- a/generated/googleapis/test/androidpublisher/v3_test.dart +++ b/generated/googleapis/test/androidpublisher/v3_test.dart
@@ -56,7 +56,6 @@ buildCounterApk++; if (buildCounterApk < 3) { o.binary = buildApkBinary(); - o.testBinary = buildApkBinary(); o.versionCode = 42; } buildCounterApk--; @@ -67,7 +66,6 @@ buildCounterApk++; if (buildCounterApk < 3) { checkApkBinary(o.binary); - checkApkBinary(o.testBinary); unittest.expect(o.versionCode, unittest.equals(42)); } buildCounterApk--; @@ -132,14 +130,14 @@ buildCounterApksAddExternallyHostedResponse--; } -buildUnnamed1033() { +buildUnnamed1058() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed1033(core.List<api.Apk> o) { +checkUnnamed1058(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); @@ -150,7 +148,7 @@ var o = new api.ApksListResponse(); buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - o.apks = buildUnnamed1033(); + o.apks = buildUnnamed1058(); o.kind = "foo"; } buildCounterApksListResponse--; @@ -160,7 +158,7 @@ checkApksListResponse(api.ApksListResponse o) { buildCounterApksListResponse++; if (buildCounterApksListResponse < 3) { - checkUnnamed1033(o.apks); + checkUnnamed1058(o.apks); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterApksListResponse--; @@ -235,14 +233,14 @@ buildCounterBundle--; } -buildUnnamed1034() { +buildUnnamed1059() { var o = new core.List<api.Bundle>(); o.add(buildBundle()); o.add(buildBundle()); return o; } -checkUnnamed1034(core.List<api.Bundle> o) { +checkUnnamed1059(core.List<api.Bundle> o) { unittest.expect(o, unittest.hasLength(2)); checkBundle(o[0]); checkBundle(o[1]); @@ -253,7 +251,7 @@ var o = new api.BundlesListResponse(); buildCounterBundlesListResponse++; if (buildCounterBundlesListResponse < 3) { - o.bundles = buildUnnamed1034(); + o.bundles = buildUnnamed1059(); o.kind = "foo"; } buildCounterBundlesListResponse--; @@ -263,7 +261,7 @@ checkBundlesListResponse(api.BundlesListResponse o) { buildCounterBundlesListResponse++; if (buildCounterBundlesListResponse < 3) { - checkUnnamed1034(o.bundles); + checkUnnamed1059(o.bundles); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBundlesListResponse--; @@ -290,76 +288,14 @@ buildCounterComment--; } -buildUnnamed1035() { - var o = new core.List<api.ModRange>(); - o.add(buildModRange()); - o.add(buildModRange()); - return o; -} - -checkUnnamed1035(core.List<api.ModRange> o) { - unittest.expect(o, unittest.hasLength(2)); - checkModRange(o[0]); - checkModRange(o[1]); -} - -buildUnnamed1036() { - var o = new core.List<api.StratifiedSampling>(); - o.add(buildStratifiedSampling()); - o.add(buildStratifiedSampling()); - return o; -} - -checkUnnamed1036(core.List<api.StratifiedSampling> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStratifiedSampling(o[0]); - checkStratifiedSampling(o[1]); -} - -buildUnnamed1037() { +buildUnnamed1060() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1037(core.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 buildCounterControl = 0; -buildControl() { - var o = new api.Control(); - buildCounterControl++; - if (buildCounterControl < 3) { - o.modRanges = buildUnnamed1035(); - o.stratifiedSamplings = buildUnnamed1036(); - o.versionCodes = buildUnnamed1037(); - } - buildCounterControl--; - return o; -} - -checkControl(api.Control o) { - buildCounterControl++; - if (buildCounterControl < 3) { - checkUnnamed1035(o.modRanges); - checkUnnamed1036(o.stratifiedSamplings); - checkUnnamed1037(o.versionCodes); - } - buildCounterControl--; -} - -buildUnnamed1038() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1038(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')); @@ -370,7 +306,7 @@ var o = new api.CountryTargeting(); buildCounterCountryTargeting++; if (buildCounterCountryTargeting < 3) { - o.countries = buildUnnamed1038(); + o.countries = buildUnnamed1060(); o.includeRestOfWorld = true; } buildCounterCountryTargeting--; @@ -380,7 +316,7 @@ checkCountryTargeting(api.CountryTargeting o) { buildCounterCountryTargeting++; if (buildCounterCountryTargeting < 3) { - checkUnnamed1038(o.countries); + checkUnnamed1060(o.countries); unittest.expect(o.includeRestOfWorld, unittest.isTrue); } buildCounterCountryTargeting--; @@ -484,27 +420,27 @@ buildCounterDeviceMetadata--; } -buildUnnamed1039() { +buildUnnamed1061() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1039(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')); } -buildUnnamed1040() { +buildUnnamed1062() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1040(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')); @@ -516,8 +452,8 @@ buildCounterDeviceSpec++; if (buildCounterDeviceSpec < 3) { o.screenDensity = 42; - o.supportedAbis = buildUnnamed1039(); - o.supportedLocales = buildUnnamed1040(); + o.supportedAbis = buildUnnamed1061(); + o.supportedLocales = buildUnnamed1062(); } buildCounterDeviceSpec--; return o; @@ -527,8 +463,8 @@ buildCounterDeviceSpec++; if (buildCounterDeviceSpec < 3) { unittest.expect(o.screenDensity, unittest.equals(42)); - checkUnnamed1039(o.supportedAbis); - checkUnnamed1040(o.supportedLocales); + checkUnnamed1061(o.supportedAbis); + checkUnnamed1062(o.supportedLocales); } buildCounterDeviceSpec--; } @@ -573,56 +509,56 @@ buildCounterExpansionFilesUploadResponse--; } -buildUnnamed1041() { +buildUnnamed1063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1041(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')); } -buildUnnamed1042() { +buildUnnamed1064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1042(core.List<core.String> o) { +checkUnnamed1064(core.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() { +buildUnnamed1065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1043(core.List<core.String> o) { +checkUnnamed1065(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1044() { - var o = new core.List<api.ExternallyHostedApkUsesPermission>(); - o.add(buildExternallyHostedApkUsesPermission()); - o.add(buildExternallyHostedApkUsesPermission()); +buildUnnamed1066() { + var o = new core.List<api.UsesPermission>(); + o.add(buildUsesPermission()); + o.add(buildUsesPermission()); return o; } -checkUnnamed1044(core.List<api.ExternallyHostedApkUsesPermission> o) { +checkUnnamed1066(core.List<api.UsesPermission> o) { unittest.expect(o, unittest.hasLength(2)); - checkExternallyHostedApkUsesPermission(o[0]); - checkExternallyHostedApkUsesPermission(o[1]); + checkUsesPermission(o[0]); + checkUsesPermission(o[1]); } core.int buildCounterExternallyHostedApk = 0; @@ -631,7 +567,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { o.applicationLabel = "foo"; - o.certificateBase64s = buildUnnamed1041(); + o.certificateBase64s = buildUnnamed1063(); o.externallyHostedUrl = "foo"; o.fileSha1Base64 = "foo"; o.fileSha256Base64 = "foo"; @@ -639,10 +575,10 @@ o.iconBase64 = "foo"; o.maximumSdk = 42; o.minimumSdk = 42; - o.nativeCodes = buildUnnamed1042(); + o.nativeCodes = buildUnnamed1064(); o.packageName = "foo"; - o.usesFeatures = buildUnnamed1043(); - o.usesPermissions = buildUnnamed1044(); + o.usesFeatures = buildUnnamed1065(); + o.usesPermissions = buildUnnamed1066(); o.versionCode = 42; o.versionName = "foo"; } @@ -654,7 +590,7 @@ buildCounterExternallyHostedApk++; if (buildCounterExternallyHostedApk < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed1041(o.certificateBase64s); + checkUnnamed1063(o.certificateBase64s); unittest.expect(o.externallyHostedUrl, unittest.equals('foo')); unittest.expect(o.fileSha1Base64, unittest.equals('foo')); unittest.expect(o.fileSha256Base64, unittest.equals('foo')); @@ -662,38 +598,16 @@ unittest.expect(o.iconBase64, unittest.equals('foo')); unittest.expect(o.maximumSdk, unittest.equals(42)); unittest.expect(o.minimumSdk, unittest.equals(42)); - checkUnnamed1042(o.nativeCodes); + checkUnnamed1064(o.nativeCodes); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1043(o.usesFeatures); - checkUnnamed1044(o.usesPermissions); + checkUnnamed1065(o.usesFeatures); + checkUnnamed1066(o.usesPermissions); unittest.expect(o.versionCode, unittest.equals(42)); unittest.expect(o.versionName, unittest.equals('foo')); } buildCounterExternallyHostedApk--; } -core.int buildCounterExternallyHostedApkUsesPermission = 0; -buildExternallyHostedApkUsesPermission() { - var o = new api.ExternallyHostedApkUsesPermission(); - buildCounterExternallyHostedApkUsesPermission++; - if (buildCounterExternallyHostedApkUsesPermission < 3) { - o.maxSdkVersion = 42; - o.name = "foo"; - } - buildCounterExternallyHostedApkUsesPermission--; - return o; -} - -checkExternallyHostedApkUsesPermission( - api.ExternallyHostedApkUsesPermission o) { - buildCounterExternallyHostedApkUsesPermission++; - if (buildCounterExternallyHostedApkUsesPermission < 3) { - unittest.expect(o.maxSdkVersion, unittest.equals(42)); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterExternallyHostedApkUsesPermission--; -} - core.int buildCounterImage = 0; buildImage() { var o = new api.Image(); @@ -719,14 +633,14 @@ buildCounterImage--; } -buildUnnamed1045() { +buildUnnamed1067() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1045(core.List<api.Image> o) { +checkUnnamed1067(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -737,7 +651,7 @@ var o = new api.ImagesDeleteAllResponse(); buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - o.deleted = buildUnnamed1045(); + o.deleted = buildUnnamed1067(); } buildCounterImagesDeleteAllResponse--; return o; @@ -746,19 +660,19 @@ checkImagesDeleteAllResponse(api.ImagesDeleteAllResponse o) { buildCounterImagesDeleteAllResponse++; if (buildCounterImagesDeleteAllResponse < 3) { - checkUnnamed1045(o.deleted); + checkUnnamed1067(o.deleted); } buildCounterImagesDeleteAllResponse--; } -buildUnnamed1046() { +buildUnnamed1068() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1046(core.List<api.Image> o) { +checkUnnamed1068(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -769,7 +683,7 @@ var o = new api.ImagesListResponse(); buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - o.images = buildUnnamed1046(); + o.images = buildUnnamed1068(); } buildCounterImagesListResponse--; return o; @@ -778,7 +692,7 @@ checkImagesListResponse(api.ImagesListResponse o) { buildCounterImagesListResponse++; if (buildCounterImagesListResponse < 3) { - checkUnnamed1046(o.images); + checkUnnamed1068(o.images); } buildCounterImagesListResponse--; } @@ -802,27 +716,27 @@ buildCounterImagesUploadResponse--; } -buildUnnamed1047() { +buildUnnamed1069() { var o = new core.Map<core.String, api.InAppProductListing>(); o["x"] = buildInAppProductListing(); o["y"] = buildInAppProductListing(); return o; } -checkUnnamed1047(core.Map<core.String, api.InAppProductListing> o) { +checkUnnamed1069(core.Map<core.String, api.InAppProductListing> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProductListing(o["x"]); checkInAppProductListing(o["y"]); } -buildUnnamed1048() { +buildUnnamed1070() { var o = new core.Map<core.String, api.Price>(); o["x"] = buildPrice(); o["y"] = buildPrice(); return o; } -checkUnnamed1048(core.Map<core.String, api.Price> o) { +checkUnnamed1070(core.Map<core.String, api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o["x"]); checkPrice(o["y"]); @@ -836,9 +750,9 @@ o.defaultLanguage = "foo"; o.defaultPrice = buildPrice(); o.gracePeriod = "foo"; - o.listings = buildUnnamed1047(); + o.listings = buildUnnamed1069(); o.packageName = "foo"; - o.prices = buildUnnamed1048(); + o.prices = buildUnnamed1070(); o.purchaseType = "foo"; o.sku = "foo"; o.status = "foo"; @@ -855,9 +769,9 @@ unittest.expect(o.defaultLanguage, unittest.equals('foo')); checkPrice(o.defaultPrice); unittest.expect(o.gracePeriod, unittest.equals('foo')); - checkUnnamed1047(o.listings); + checkUnnamed1069(o.listings); unittest.expect(o.packageName, unittest.equals('foo')); - checkUnnamed1048(o.prices); + checkUnnamed1070(o.prices); unittest.expect(o.purchaseType, unittest.equals('foo')); unittest.expect(o.sku, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -867,11 +781,25 @@ buildCounterInAppProduct--; } +buildUnnamed1071() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterInAppProductListing = 0; buildInAppProductListing() { var o = new api.InAppProductListing(); buildCounterInAppProductListing++; if (buildCounterInAppProductListing < 3) { + o.benefits = buildUnnamed1071(); o.description = "foo"; o.title = "foo"; } @@ -882,20 +810,21 @@ checkInAppProductListing(api.InAppProductListing o) { buildCounterInAppProductListing++; if (buildCounterInAppProductListing < 3) { + checkUnnamed1071(o.benefits); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterInAppProductListing--; } -buildUnnamed1049() { +buildUnnamed1072() { var o = new core.List<api.InAppProduct>(); o.add(buildInAppProduct()); o.add(buildInAppProduct()); return o; } -checkUnnamed1049(core.List<api.InAppProduct> o) { +checkUnnamed1072(core.List<api.InAppProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkInAppProduct(o[0]); checkInAppProduct(o[1]); @@ -906,7 +835,7 @@ var o = new api.InappproductsListResponse(); buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - o.inappproduct = buildUnnamed1049(); + o.inappproduct = buildUnnamed1072(); o.kind = "foo"; o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); @@ -918,7 +847,7 @@ checkInappproductsListResponse(api.InappproductsListResponse o) { buildCounterInappproductsListResponse++; if (buildCounterInappproductsListResponse < 3) { - checkUnnamed1049(o.inappproduct); + checkUnnamed1072(o.inappproduct); unittest.expect(o.kind, unittest.equals('foo')); checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); @@ -1001,14 +930,14 @@ buildCounterListing--; } -buildUnnamed1050() { +buildUnnamed1073() { var o = new core.List<api.Listing>(); o.add(buildListing()); o.add(buildListing()); return o; } -checkUnnamed1050(core.List<api.Listing> o) { +checkUnnamed1073(core.List<api.Listing> o) { unittest.expect(o, unittest.hasLength(2)); checkListing(o[0]); checkListing(o[1]); @@ -1020,7 +949,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { o.kind = "foo"; - o.listings = buildUnnamed1050(); + o.listings = buildUnnamed1073(); } buildCounterListingsListResponse--; return o; @@ -1030,7 +959,7 @@ buildCounterListingsListResponse++; if (buildCounterListingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1050(o.listings); + checkUnnamed1073(o.listings); } buildCounterListingsListResponse--; } @@ -1056,27 +985,6 @@ buildCounterLocalizedText--; } -core.int buildCounterModRange = 0; -buildModRange() { - var o = new api.ModRange(); - buildCounterModRange++; - if (buildCounterModRange < 3) { - o.end = "foo"; - o.start = "foo"; - } - buildCounterModRange--; - return o; -} - -checkModRange(api.ModRange o) { - buildCounterModRange++; - if (buildCounterModRange < 3) { - unittest.expect(o.end, unittest.equals('foo')); - unittest.expect(o.start, unittest.equals('foo')); - } - buildCounterModRange--; -} - core.int buildCounterPageInfo = 0; buildPageInfo() { var o = new api.PageInfo(); @@ -1130,6 +1038,8 @@ o.consumptionState = 42; o.developerPayload = "foo"; o.kind = "foo"; + o.obfuscatedExternalAccountId = "foo"; + o.obfuscatedExternalProfileId = "foo"; o.orderId = "foo"; o.productId = "foo"; o.purchaseState = 42; @@ -1137,6 +1047,7 @@ o.purchaseToken = "foo"; o.purchaseType = 42; o.quantity = 42; + o.regionCode = "foo"; } buildCounterProductPurchase--; return o; @@ -1149,6 +1060,8 @@ unittest.expect(o.consumptionState, unittest.equals(42)); unittest.expect(o.developerPayload, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.obfuscatedExternalAccountId, unittest.equals('foo')); + unittest.expect(o.obfuscatedExternalProfileId, unittest.equals('foo')); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.purchaseState, unittest.equals(42)); @@ -1156,6 +1069,7 @@ unittest.expect(o.purchaseToken, unittest.equals('foo')); unittest.expect(o.purchaseType, unittest.equals(42)); unittest.expect(o.quantity, unittest.equals(42)); + unittest.expect(o.regionCode, unittest.equals('foo')); } buildCounterProductPurchase--; } @@ -1180,14 +1094,14 @@ buildCounterProductPurchasesAcknowledgeRequest--; } -buildUnnamed1051() { +buildUnnamed1074() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1051(core.List<api.Comment> o) { +checkUnnamed1074(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1199,7 +1113,7 @@ buildCounterReview++; if (buildCounterReview < 3) { o.authorName = "foo"; - o.comments = buildUnnamed1051(); + o.comments = buildUnnamed1074(); o.reviewId = "foo"; } buildCounterReview--; @@ -1210,7 +1124,7 @@ buildCounterReview++; if (buildCounterReview < 3) { unittest.expect(o.authorName, unittest.equals('foo')); - checkUnnamed1051(o.comments); + checkUnnamed1074(o.comments); unittest.expect(o.reviewId, unittest.equals('foo')); } buildCounterReview--; @@ -1237,14 +1151,14 @@ buildCounterReviewReplyResult--; } -buildUnnamed1052() { +buildUnnamed1075() { var o = new core.List<api.Review>(); o.add(buildReview()); o.add(buildReview()); return o; } -checkUnnamed1052(core.List<api.Review> o) { +checkUnnamed1075(core.List<api.Review> o) { unittest.expect(o, unittest.hasLength(2)); checkReview(o[0]); checkReview(o[1]); @@ -1256,7 +1170,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { o.pageInfo = buildPageInfo(); - o.reviews = buildUnnamed1052(); + o.reviews = buildUnnamed1075(); o.tokenPagination = buildTokenPagination(); } buildCounterReviewsListResponse--; @@ -1267,7 +1181,7 @@ buildCounterReviewsListResponse++; if (buildCounterReviewsListResponse < 3) { checkPageInfo(o.pageInfo); - checkUnnamed1052(o.reviews); + checkUnnamed1075(o.reviews); checkTokenPagination(o.tokenPagination); } buildCounterReviewsListResponse--; @@ -1311,112 +1225,6 @@ buildCounterReviewsReplyResponse--; } -buildUnnamed1053() { - var o = new core.List<api.ModRange>(); - o.add(buildModRange()); - o.add(buildModRange()); - return o; -} - -checkUnnamed1053(core.List<api.ModRange> o) { - unittest.expect(o, unittest.hasLength(2)); - checkModRange(o[0]); - checkModRange(o[1]); -} - -buildUnnamed1054() { - var o = new core.List<api.StratifiedSampling>(); - o.add(buildStratifiedSampling()); - o.add(buildStratifiedSampling()); - return o; -} - -checkUnnamed1054(core.List<api.StratifiedSampling> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStratifiedSampling(o[0]); - checkStratifiedSampling(o[1]); -} - -core.int buildCounterSampling = 0; -buildSampling() { - var o = new api.Sampling(); - buildCounterSampling++; - if (buildCounterSampling < 3) { - o.modRanges = buildUnnamed1053(); - o.modulus = "foo"; - o.salt = 42; - o.stratifiedSamplings = buildUnnamed1054(); - o.useAndroidId = true; - } - buildCounterSampling--; - return o; -} - -checkSampling(api.Sampling o) { - buildCounterSampling++; - if (buildCounterSampling < 3) { - checkUnnamed1053(o.modRanges); - unittest.expect(o.modulus, unittest.equals('foo')); - unittest.expect(o.salt, unittest.equals(42)); - checkUnnamed1054(o.stratifiedSamplings); - unittest.expect(o.useAndroidId, unittest.isTrue); - } - buildCounterSampling--; -} - -buildUnnamed1055() { - var o = new core.List<api.ModRange>(); - o.add(buildModRange()); - o.add(buildModRange()); - return o; -} - -checkUnnamed1055(core.List<api.ModRange> o) { - unittest.expect(o, unittest.hasLength(2)); - checkModRange(o[0]); - checkModRange(o[1]); -} - -core.int buildCounterStratifiedSampling = 0; -buildStratifiedSampling() { - var o = new api.StratifiedSampling(); - buildCounterStratifiedSampling++; - if (buildCounterStratifiedSampling < 3) { - o.modRanges = buildUnnamed1055(); - o.stratum = buildStratum(); - } - buildCounterStratifiedSampling--; - return o; -} - -checkStratifiedSampling(api.StratifiedSampling o) { - buildCounterStratifiedSampling++; - if (buildCounterStratifiedSampling < 3) { - checkUnnamed1055(o.modRanges); - checkStratum(o.stratum); - } - buildCounterStratifiedSampling--; -} - -core.int buildCounterStratum = 0; -buildStratum() { - var o = new api.Stratum(); - buildCounterStratum++; - if (buildCounterStratum < 3) { - o.brand = "foo"; - } - buildCounterStratum--; - return o; -} - -checkStratum(api.Stratum o) { - buildCounterStratum++; - if (buildCounterStratum < 3) { - unittest.expect(o.brand, unittest.equals('foo')); - } - buildCounterStratum--; -} - core.int buildCounterSubscriptionCancelSurveyResult = 0; buildSubscriptionCancelSurveyResult() { var o = new api.SubscriptionCancelSurveyResult(); @@ -1500,6 +1308,8 @@ o.introductoryPriceInfo = buildIntroductoryPriceInfo(); o.kind = "foo"; o.linkedPurchaseToken = "foo"; + o.obfuscatedExternalAccountId = "foo"; + o.obfuscatedExternalProfileId = "foo"; o.orderId = "foo"; o.paymentState = 42; o.priceAmountMicros = "foo"; @@ -1535,6 +1345,8 @@ checkIntroductoryPriceInfo(o.introductoryPriceInfo); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.linkedPurchaseToken, unittest.equals('foo')); + unittest.expect(o.obfuscatedExternalAccountId, unittest.equals('foo')); + unittest.expect(o.obfuscatedExternalProfileId, unittest.equals('foo')); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.paymentState, unittest.equals(42)); unittest.expect(o.priceAmountMicros, unittest.equals('foo')); @@ -1611,104 +1423,46 @@ buildCounterSubscriptionPurchasesDeferResponse--; } -core.int buildCounterSystemApkVariantsCreateRequest = 0; -buildSystemApkVariantsCreateRequest() { - var o = new api.SystemApkVariantsCreateRequest(); - buildCounterSystemApkVariantsCreateRequest++; - if (buildCounterSystemApkVariantsCreateRequest < 3) { - o.deviceSpec = buildDeviceSpec(); - } - buildCounterSystemApkVariantsCreateRequest--; - return o; -} - -checkSystemApkVariantsCreateRequest(api.SystemApkVariantsCreateRequest o) { - buildCounterSystemApkVariantsCreateRequest++; - if (buildCounterSystemApkVariantsCreateRequest < 3) { - checkDeviceSpec(o.deviceSpec); - } - buildCounterSystemApkVariantsCreateRequest--; -} - -buildUnnamed1056() { +buildUnnamed1076() { var o = new core.List<api.Variant>(); o.add(buildVariant()); o.add(buildVariant()); return o; } -checkUnnamed1056(core.List<api.Variant> o) { +checkUnnamed1076(core.List<api.Variant> o) { unittest.expect(o, unittest.hasLength(2)); checkVariant(o[0]); checkVariant(o[1]); } -core.int buildCounterSystemApkVariantsListResponse = 0; -buildSystemApkVariantsListResponse() { - var o = new api.SystemApkVariantsListResponse(); - buildCounterSystemApkVariantsListResponse++; - if (buildCounterSystemApkVariantsListResponse < 3) { - o.variants = buildUnnamed1056(); +core.int buildCounterSystemApksListResponse = 0; +buildSystemApksListResponse() { + var o = new api.SystemApksListResponse(); + buildCounterSystemApksListResponse++; + if (buildCounterSystemApksListResponse < 3) { + o.variants = buildUnnamed1076(); } - buildCounterSystemApkVariantsListResponse--; + buildCounterSystemApksListResponse--; return o; } -checkSystemApkVariantsListResponse(api.SystemApkVariantsListResponse o) { - buildCounterSystemApkVariantsListResponse++; - if (buildCounterSystemApkVariantsListResponse < 3) { - checkUnnamed1056(o.variants); +checkSystemApksListResponse(api.SystemApksListResponse o) { + buildCounterSystemApksListResponse++; + if (buildCounterSystemApksListResponse < 3) { + checkUnnamed1076(o.variants); } - buildCounterSystemApkVariantsListResponse--; + buildCounterSystemApksListResponse--; } -buildUnnamed1057() { +buildUnnamed1077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return 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')); -} - -buildUnnamed1058() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1059() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1060() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1060(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')); @@ -1719,10 +1473,7 @@ var o = new api.Testers(); buildCounterTesters++; if (buildCounterTesters < 3) { - o.autoEnrolledAndroidGroups = buildUnnamed1057(); - o.autoEnrolledGoogleGroups = buildUnnamed1058(); - o.excludedGoogleGroups = buildUnnamed1059(); - o.googleGroups = buildUnnamed1060(); + o.googleGroups = buildUnnamed1077(); } buildCounterTesters--; return o; @@ -1731,10 +1482,7 @@ checkTesters(api.Testers o) { buildCounterTesters++; if (buildCounterTesters < 3) { - checkUnnamed1057(o.autoEnrolledAndroidGroups); - checkUnnamed1058(o.autoEnrolledGoogleGroups); - checkUnnamed1059(o.excludedGoogleGroups); - checkUnnamed1060(o.googleGroups); + checkUnnamed1077(o.googleGroups); } buildCounterTesters--; } @@ -1781,14 +1529,14 @@ buildCounterTokenPagination--; } -buildUnnamed1061() { +buildUnnamed1078() { var o = new core.List<api.TrackRelease>(); o.add(buildTrackRelease()); o.add(buildTrackRelease()); return o; } -checkUnnamed1061(core.List<api.TrackRelease> o) { +checkUnnamed1078(core.List<api.TrackRelease> o) { unittest.expect(o, unittest.hasLength(2)); checkTrackRelease(o[0]); checkTrackRelease(o[1]); @@ -1799,7 +1547,7 @@ var o = new api.Track(); buildCounterTrack++; if (buildCounterTrack < 3) { - o.releases = buildUnnamed1061(); + o.releases = buildUnnamed1078(); o.track = "foo"; } buildCounterTrack--; @@ -1809,59 +1557,33 @@ checkTrack(api.Track o) { buildCounterTrack++; if (buildCounterTrack < 3) { - checkUnnamed1061(o.releases); + checkUnnamed1078(o.releases); unittest.expect(o.track, unittest.equals('foo')); } buildCounterTrack--; } -buildUnnamed1062() { - var o = new core.List<api.Control>(); - o.add(buildControl()); - o.add(buildControl()); - return o; -} - -checkUnnamed1062(core.List<api.Control> o) { - unittest.expect(o, unittest.hasLength(2)); - checkControl(o[0]); - checkControl(o[1]); -} - -buildUnnamed1063() { - var o = new core.List<api.TrackReleasePin>(); - o.add(buildTrackReleasePin()); - o.add(buildTrackReleasePin()); - return o; -} - -checkUnnamed1063(core.List<api.TrackReleasePin> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTrackReleasePin(o[0]); - checkTrackReleasePin(o[1]); -} - -buildUnnamed1064() { +buildUnnamed1079() { var o = new core.List<api.LocalizedText>(); o.add(buildLocalizedText()); o.add(buildLocalizedText()); return o; } -checkUnnamed1064(core.List<api.LocalizedText> o) { +checkUnnamed1079(core.List<api.LocalizedText> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedText(o[0]); checkLocalizedText(o[1]); } -buildUnnamed1065() { +buildUnnamed1080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1065(core.List<core.String> o) { +checkUnnamed1080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1872,17 +1594,13 @@ var o = new api.TrackRelease(); buildCounterTrackRelease++; if (buildCounterTrackRelease < 3) { - o.controls = buildUnnamed1062(); o.countryTargeting = buildCountryTargeting(); o.inAppUpdatePriority = 42; o.name = "foo"; - o.pinnedVersions = buildUnnamed1063(); - o.releaseNotes = buildUnnamed1064(); - o.rollbackEnabled = true; - o.sampling = buildSampling(); + o.releaseNotes = buildUnnamed1079(); o.status = "foo"; o.userFraction = 42.0; - o.versionCodes = buildUnnamed1065(); + o.versionCodes = buildUnnamed1080(); } buildCounterTrackRelease--; return o; @@ -1891,177 +1609,25 @@ checkTrackRelease(api.TrackRelease o) { buildCounterTrackRelease++; if (buildCounterTrackRelease < 3) { - checkUnnamed1062(o.controls); checkCountryTargeting(o.countryTargeting); unittest.expect(o.inAppUpdatePriority, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1063(o.pinnedVersions); - checkUnnamed1064(o.releaseNotes); - unittest.expect(o.rollbackEnabled, unittest.isTrue); - checkSampling(o.sampling); + checkUnnamed1079(o.releaseNotes); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.userFraction, unittest.equals(42.0)); - checkUnnamed1065(o.versionCodes); + checkUnnamed1080(o.versionCodes); } buildCounterTrackRelease--; } -buildUnnamed1066() { - var o = new core.List<api.TrackReleasePinPinTargeting>(); - o.add(buildTrackReleasePinPinTargeting()); - o.add(buildTrackReleasePinPinTargeting()); - return o; -} - -checkUnnamed1066(core.List<api.TrackReleasePinPinTargeting> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTrackReleasePinPinTargeting(o[0]); - checkTrackReleasePinPinTargeting(o[1]); -} - -buildUnnamed1067() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1067(core.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 buildCounterTrackReleasePin = 0; -buildTrackReleasePin() { - var o = new api.TrackReleasePin(); - buildCounterTrackReleasePin++; - if (buildCounterTrackReleasePin < 3) { - o.targetings = buildUnnamed1066(); - o.versionCodes = buildUnnamed1067(); - } - buildCounterTrackReleasePin--; - return o; -} - -checkTrackReleasePin(api.TrackReleasePin o) { - buildCounterTrackReleasePin++; - if (buildCounterTrackReleasePin < 3) { - checkUnnamed1066(o.targetings); - checkUnnamed1067(o.versionCodes); - } - buildCounterTrackReleasePin--; -} - -buildUnnamed1068() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1069() { - var o = new core.List<api.TrackReleasePinPinTargetingDevicePin>(); - o.add(buildTrackReleasePinPinTargetingDevicePin()); - o.add(buildTrackReleasePinPinTargetingDevicePin()); - return o; -} - -checkUnnamed1069(core.List<api.TrackReleasePinPinTargetingDevicePin> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTrackReleasePinPinTargetingDevicePin(o[0]); - checkTrackReleasePinPinTargetingDevicePin(o[1]); -} - -buildUnnamed1070() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - -buildUnnamed1071() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed1071(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 buildCounterTrackReleasePinPinTargeting = 0; -buildTrackReleasePinPinTargeting() { - var o = new api.TrackReleasePinPinTargeting(); - buildCounterTrackReleasePinPinTargeting++; - if (buildCounterTrackReleasePinPinTargeting < 3) { - o.countryCodes = buildUnnamed1068(); - o.devices = buildUnnamed1069(); - o.phoneskyVersions = buildUnnamed1070(); - o.sdkVersions = buildUnnamed1071(); - } - buildCounterTrackReleasePinPinTargeting--; - return o; -} - -checkTrackReleasePinPinTargeting(api.TrackReleasePinPinTargeting o) { - buildCounterTrackReleasePinPinTargeting++; - if (buildCounterTrackReleasePinPinTargeting < 3) { - checkUnnamed1068(o.countryCodes); - checkUnnamed1069(o.devices); - checkUnnamed1070(o.phoneskyVersions); - checkUnnamed1071(o.sdkVersions); - } - buildCounterTrackReleasePinPinTargeting--; -} - -core.int buildCounterTrackReleasePinPinTargetingDevicePin = 0; -buildTrackReleasePinPinTargetingDevicePin() { - var o = new api.TrackReleasePinPinTargetingDevicePin(); - buildCounterTrackReleasePinPinTargetingDevicePin++; - if (buildCounterTrackReleasePinPinTargetingDevicePin < 3) { - o.brand = "foo"; - o.device = "foo"; - o.product = "foo"; - } - buildCounterTrackReleasePinPinTargetingDevicePin--; - return o; -} - -checkTrackReleasePinPinTargetingDevicePin( - api.TrackReleasePinPinTargetingDevicePin o) { - buildCounterTrackReleasePinPinTargetingDevicePin++; - if (buildCounterTrackReleasePinPinTargetingDevicePin < 3) { - unittest.expect(o.brand, unittest.equals('foo')); - unittest.expect(o.device, unittest.equals('foo')); - unittest.expect(o.product, unittest.equals('foo')); - } - buildCounterTrackReleasePinPinTargetingDevicePin--; -} - -buildUnnamed1072() { +buildUnnamed1081() { var o = new core.List<api.Track>(); o.add(buildTrack()); o.add(buildTrack()); return o; } -checkUnnamed1072(core.List<api.Track> o) { +checkUnnamed1081(core.List<api.Track> o) { unittest.expect(o, unittest.hasLength(2)); checkTrack(o[0]); checkTrack(o[1]); @@ -2073,7 +1639,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { o.kind = "foo"; - o.tracks = buildUnnamed1072(); + o.tracks = buildUnnamed1081(); } buildCounterTracksListResponse--; return o; @@ -2083,7 +1649,7 @@ buildCounterTracksListResponse++; if (buildCounterTracksListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1072(o.tracks); + checkUnnamed1081(o.tracks); } buildCounterTracksListResponse--; } @@ -2129,6 +1695,27 @@ buildCounterUserComment--; } +core.int buildCounterUsesPermission = 0; +buildUsesPermission() { + var o = new api.UsesPermission(); + buildCounterUsesPermission++; + if (buildCounterUsesPermission < 3) { + o.maxSdkVersion = 42; + o.name = "foo"; + } + buildCounterUsesPermission--; + return o; +} + +checkUsesPermission(api.UsesPermission o) { + buildCounterUsesPermission++; + if (buildCounterUsesPermission < 3) { + unittest.expect(o.maxSdkVersion, unittest.equals(42)); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterUsesPermission--; +} + core.int buildCounterVariant = 0; buildVariant() { var o = new api.Variant(); @@ -2181,14 +1768,14 @@ buildCounterVoidedPurchase--; } -buildUnnamed1073() { +buildUnnamed1082() { var o = new core.List<api.VoidedPurchase>(); o.add(buildVoidedPurchase()); o.add(buildVoidedPurchase()); return o; } -checkUnnamed1073(core.List<api.VoidedPurchase> o) { +checkUnnamed1082(core.List<api.VoidedPurchase> o) { unittest.expect(o, unittest.hasLength(2)); checkVoidedPurchase(o[0]); checkVoidedPurchase(o[1]); @@ -2201,7 +1788,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { o.pageInfo = buildPageInfo(); o.tokenPagination = buildTokenPagination(); - o.voidedPurchases = buildUnnamed1073(); + o.voidedPurchases = buildUnnamed1082(); } buildCounterVoidedPurchasesListResponse--; return o; @@ -2212,7 +1799,7 @@ if (buildCounterVoidedPurchasesListResponse < 3) { checkPageInfo(o.pageInfo); checkTokenPagination(o.tokenPagination); - checkUnnamed1073(o.voidedPurchases); + checkUnnamed1082(o.voidedPurchases); } buildCounterVoidedPurchasesListResponse--; } @@ -2298,14 +1885,6 @@ }); }); - unittest.group("obj-schema-Control", () { - unittest.test("to-json--from-json", () { - var o = buildControl(); - var od = new api.Control.fromJson(o.toJson()); - checkControl(od); - }); - }); - unittest.group("obj-schema-CountryTargeting", () { unittest.test("to-json--from-json", () { var o = buildCountryTargeting(); @@ -2378,14 +1957,6 @@ }); }); - unittest.group("obj-schema-ExternallyHostedApkUsesPermission", () { - unittest.test("to-json--from-json", () { - var o = buildExternallyHostedApkUsesPermission(); - var od = new api.ExternallyHostedApkUsesPermission.fromJson(o.toJson()); - checkExternallyHostedApkUsesPermission(od); - }); - }); - unittest.group("obj-schema-Image", () { unittest.test("to-json--from-json", () { var o = buildImage(); @@ -2482,14 +2053,6 @@ }); }); - unittest.group("obj-schema-ModRange", () { - unittest.test("to-json--from-json", () { - var o = buildModRange(); - var od = new api.ModRange.fromJson(o.toJson()); - checkModRange(od); - }); - }); - unittest.group("obj-schema-PageInfo", () { unittest.test("to-json--from-json", () { var o = buildPageInfo(); @@ -2562,30 +2125,6 @@ }); }); - unittest.group("obj-schema-Sampling", () { - unittest.test("to-json--from-json", () { - var o = buildSampling(); - var od = new api.Sampling.fromJson(o.toJson()); - checkSampling(od); - }); - }); - - unittest.group("obj-schema-StratifiedSampling", () { - unittest.test("to-json--from-json", () { - var o = buildStratifiedSampling(); - var od = new api.StratifiedSampling.fromJson(o.toJson()); - checkStratifiedSampling(od); - }); - }); - - unittest.group("obj-schema-Stratum", () { - unittest.test("to-json--from-json", () { - var o = buildStratum(); - var od = new api.Stratum.fromJson(o.toJson()); - checkStratum(od); - }); - }); - unittest.group("obj-schema-SubscriptionCancelSurveyResult", () { unittest.test("to-json--from-json", () { var o = buildSubscriptionCancelSurveyResult(); @@ -2643,19 +2182,11 @@ }); }); - unittest.group("obj-schema-SystemApkVariantsCreateRequest", () { + unittest.group("obj-schema-SystemApksListResponse", () { unittest.test("to-json--from-json", () { - var o = buildSystemApkVariantsCreateRequest(); - var od = new api.SystemApkVariantsCreateRequest.fromJson(o.toJson()); - checkSystemApkVariantsCreateRequest(od); - }); - }); - - unittest.group("obj-schema-SystemApkVariantsListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildSystemApkVariantsListResponse(); - var od = new api.SystemApkVariantsListResponse.fromJson(o.toJson()); - checkSystemApkVariantsListResponse(od); + var o = buildSystemApksListResponse(); + var od = new api.SystemApksListResponse.fromJson(o.toJson()); + checkSystemApksListResponse(od); }); }); @@ -2699,31 +2230,6 @@ }); }); - unittest.group("obj-schema-TrackReleasePin", () { - unittest.test("to-json--from-json", () { - var o = buildTrackReleasePin(); - var od = new api.TrackReleasePin.fromJson(o.toJson()); - checkTrackReleasePin(od); - }); - }); - - unittest.group("obj-schema-TrackReleasePinPinTargeting", () { - unittest.test("to-json--from-json", () { - var o = buildTrackReleasePinPinTargeting(); - var od = new api.TrackReleasePinPinTargeting.fromJson(o.toJson()); - checkTrackReleasePinPinTargeting(od); - }); - }); - - unittest.group("obj-schema-TrackReleasePinPinTargetingDevicePin", () { - unittest.test("to-json--from-json", () { - var o = buildTrackReleasePinPinTargetingDevicePin(); - var od = - new api.TrackReleasePinPinTargetingDevicePin.fromJson(o.toJson()); - checkTrackReleasePinPinTargetingDevicePin(od); - }); - }); - unittest.group("obj-schema-TracksListResponse", () { unittest.test("to-json--from-json", () { var o = buildTracksListResponse(); @@ -2740,6 +2246,14 @@ }); }); + unittest.group("obj-schema-UsesPermission", () { + unittest.test("to-json--from-json", () { + var o = buildUsesPermission(); + var od = new api.UsesPermission.fromJson(o.toJson()); + checkUsesPermission(od); + }); + }); + unittest.group("obj-schema-Variant", () { unittest.test("to-json--from-json", () { var o = buildVariant(); @@ -2779,6 +2293,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf(":commit", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals(":commit")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2827,6 +2362,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_editId")); var query = (req.url).query; var queryOffset = 0; @@ -2873,6 +2423,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_editId")); var query = (req.url).query; var queryOffset = 0; @@ -2924,6 +2489,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/edits")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -2972,6 +2549,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf(":validate", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals(":validate")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -3027,6 +2625,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/externallyHosted", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("/apks/externallyHosted")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -3077,6 +2696,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/apks")); + pathOffset += 5; var query = (req.url).query; var queryOffset = 0; @@ -3129,6 +2769,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/apks")); + pathOffset += 5; var query = (req.url).query; var queryOffset = 0; @@ -3180,6 +2841,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/bundles", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/bundles")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3233,6 +2915,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/bundles", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/bundles")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3293,6 +2996,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/apks/")); + pathOffset += 6; + index = path.indexOf("/deobfuscationFiles/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_apkVersionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/deobfuscationFiles/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_deobfuscationFileType")); var query = (req.url).query; var queryOffset = 0; @@ -3346,6 +3082,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/details", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/details")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3399,6 +3156,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/details", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/details")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3452,6 +3230,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/details", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/details")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3506,6 +3305,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/apks/")); + pathOffset += 6; + index = path.indexOf("/expansionFiles/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_apkVersionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/expansionFiles/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_expansionFileType")); var query = (req.url).query; var queryOffset = 0; @@ -3563,6 +3395,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/apks/")); + pathOffset += 6; + index = path.indexOf("/expansionFiles/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_apkVersionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/expansionFiles/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_expansionFileType")); var query = (req.url).query; var queryOffset = 0; @@ -3620,6 +3485,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/apks/")); + pathOffset += 6; + index = path.indexOf("/expansionFiles/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_apkVersionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/expansionFiles/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_expansionFileType")); var query = (req.url).query; var queryOffset = 0; @@ -3676,6 +3574,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/apks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/apks/")); + pathOffset += 6; + index = path.indexOf("/expansionFiles/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_apkVersionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/expansionFiles/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_expansionFileType")); var query = (req.url).query; var queryOffset = 0; @@ -3732,6 +3663,48 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + 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_language")); + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + 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_imageType")); + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_imageId")); var query = (req.url).query; var queryOffset = 0; @@ -3783,6 +3756,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + 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_language")); + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_imageType")); var query = (req.url).query; var queryOffset = 0; @@ -3835,6 +3841,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + 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_language")); + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_imageType")); var query = (req.url).query; var queryOffset = 0; @@ -3890,6 +3929,39 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + 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_language")); + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_imageType")); var query = (req.url).query; var queryOffset = 0; @@ -3943,6 +4015,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_language")); var query = (req.url).query; var queryOffset = 0; @@ -3991,6 +4087,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/listings")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -4039,6 +4156,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_language")); var query = (req.url).query; var queryOffset = 0; @@ -4088,6 +4229,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/listings")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -4142,6 +4304,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_language")); var query = (req.url).query; var queryOffset = 0; @@ -4197,6 +4383,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/listings/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/listings/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_language")); var query = (req.url).query; var queryOffset = 0; @@ -4250,6 +4460,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/testers/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/testers/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4304,6 +4538,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/testers/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/testers/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4359,6 +4617,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/testers/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/testers/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4412,6 +4694,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/tracks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tracks/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4461,6 +4767,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/tracks", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/tracks")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -4515,6 +4842,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/tracks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tracks/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4570,6 +4921,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/edits/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/edits/")); + pathOffset += 7; + index = path.indexOf("/tracks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_editId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tracks/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_track")); var query = (req.url).query; var queryOffset = 0; @@ -4622,6 +4997,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("/inappproducts/")); + pathOffset += 15; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sku")); var query = (req.url).query; var queryOffset = 0; @@ -4669,6 +5059,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("/inappproducts/")); + pathOffset += 15; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sku")); var query = (req.url).query; var queryOffset = 0; @@ -4722,6 +5127,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/inappproducts")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -4777,6 +5194,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/inappproducts")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -4840,6 +5269,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("/inappproducts/")); + pathOffset += 15; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sku")); var query = (req.url).query; var queryOffset = 0; @@ -4898,6 +5342,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/inappproducts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("/inappproducts/")); + pathOffset += 15; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sku")); var query = (req.url).query; var queryOffset = 0; @@ -4955,12 +5414,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 33), - unittest.equals("androidpublisher/v3/applications/")); - pathOffset += 33; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("internalappsharing/")); - pathOffset += 19; + unittest.expect( + path.substring(pathOffset, pathOffset + 52), + unittest.equals( + "androidpublisher/v3/applications/internalappsharing/")); + pathOffset += 52; index = path.indexOf("/artifacts/apk", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5021,12 +5479,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 33), - unittest.equals("androidpublisher/v3/applications/")); - pathOffset += 33; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("internalappsharing/")); - pathOffset += 19; + unittest.expect( + path.substring(pathOffset, pathOffset + 52), + unittest.equals( + "androidpublisher/v3/applications/internalappsharing/")); + pathOffset += 52; index = path.indexOf("/artifacts/bundle", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5087,6 +5544,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + 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_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/orders/")); + pathOffset += 8; + index = path.indexOf(":refund", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_orderId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals(":refund")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -5144,6 +5622,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/products/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/purchases/products/")); + pathOffset += 20; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + index = path.indexOf(":acknowledge", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals(":acknowledge")); + pathOffset += 12; var query = (req.url).query; var queryOffset = 0; @@ -5193,6 +5701,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/products/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/purchases/products/")); + pathOffset += 20; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_token")); var query = (req.url).query; var queryOffset = 0; @@ -5250,6 +5782,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("/purchases/subscriptions/")); + pathOffset += 25; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_subscriptionId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + index = path.indexOf(":acknowledge", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals(":acknowledge")); + pathOffset += 12; var query = (req.url).query; var queryOffset = 0; @@ -5289,7 +5851,6 @@ api.PurchasesSubscriptionsResourceApi res = new api.AndroidpublisherApi(mock).purchases.subscriptions; var arg_packageName = "foo"; - var arg_subscriptionId = "foo"; var arg_token = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5300,6 +5861,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("/purchases/subscriptions/tokens/")); + pathOffset += 32; + index = path.indexOf(":cancel", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals(":cancel")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -5328,8 +5910,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .cancel(arg_packageName, arg_subscriptionId, arg_token, - $fields: arg_$fields) + .cancel(arg_packageName, arg_token, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -5353,6 +5934,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("/purchases/subscriptions/")); + pathOffset += 25; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_subscriptionId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + index = path.indexOf(":defer", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals(":defer")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -5405,6 +6016,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("/purchases/subscriptions/")); + pathOffset += 25; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_subscriptionId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_token")); var query = (req.url).query; var queryOffset = 0; @@ -5456,6 +6091,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("/purchases/subscriptions/")); + pathOffset += 25; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_subscriptionId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + index = path.indexOf(":refund", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals(":refund")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -5505,6 +6170,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/subscriptions/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("/purchases/subscriptions/")); + pathOffset += 25; + index = path.indexOf("/tokens/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_subscriptionId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/tokens/")); + pathOffset += 8; + index = path.indexOf(":revoke", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_token")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals(":revoke")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -5545,12 +6240,12 @@ api.PurchasesVoidedpurchasesResourceApi res = new api.AndroidpublisherApi(mock).purchases.voidedpurchases; var arg_packageName = "foo"; - var arg_endTime = "foo"; var arg_maxResults = 42; - var arg_startIndex = 42; - var arg_startTime = "foo"; - var arg_token = "foo"; var arg_type = 42; + var arg_startTime = "foo"; + var arg_endTime = "foo"; + var arg_startIndex = 42; + var arg_token = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5560,6 +6255,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/purchases/voidedpurchases", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("/purchases/voidedpurchases")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -5579,17 +6286,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["endTime"].first, unittest.equals(arg_endTime)); 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["startTime"].first, unittest.equals(arg_startTime)); - unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); unittest.expect( core.int.parse(queryMap["type"].first), unittest.equals(arg_type)); + unittest.expect( + queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect( + queryMap["endTime"].first, unittest.equals(arg_endTime)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), + unittest.equals(arg_startIndex)); + unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5600,12 +6307,12 @@ }), true); res .list(arg_packageName, - endTime: arg_endTime, maxResults: arg_maxResults, - startIndex: arg_startIndex, - startTime: arg_startTime, - token: arg_token, type: arg_type, + startTime: arg_startTime, + endTime: arg_endTime, + startIndex: arg_startIndex, + token: arg_token, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVoidedPurchasesListResponse(response); @@ -5629,6 +6336,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/reviews/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/reviews/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_reviewId")); var query = (req.url).query; var queryOffset = 0; @@ -5671,10 +6393,10 @@ var mock = new HttpServerMock(); api.ReviewsResourceApi res = new api.AndroidpublisherApi(mock).reviews; var arg_packageName = "foo"; - var arg_maxResults = 42; + var arg_translationLanguage = "foo"; var arg_startIndex = 42; var arg_token = "foo"; - var arg_translationLanguage = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5684,6 +6406,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/reviews", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/reviews")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -5703,13 +6437,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["translationLanguage"].first, + unittest.equals(arg_translationLanguage)); unittest.expect(core.int.parse(queryMap["startIndex"].first), unittest.equals(arg_startIndex)); unittest.expect(queryMap["token"].first, unittest.equals(arg_token)); - unittest.expect(queryMap["translationLanguage"].first, - unittest.equals(arg_translationLanguage)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5720,10 +6454,10 @@ }), true); res .list(arg_packageName, - maxResults: arg_maxResults, + translationLanguage: arg_translationLanguage, startIndex: arg_startIndex, token: arg_token, - translationLanguage: arg_translationLanguage, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkReviewsListResponse(response); @@ -5748,6 +6482,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/reviews/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/reviews/")); + pathOffset += 9; + index = path.indexOf(":reply", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_reviewId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals(":reply")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -5789,13 +6544,13 @@ var mock = new HttpServerMock(); api.SystemapksVariantsResourceApi res = new api.AndroidpublisherApi(mock).systemapks.variants; - var arg_request = buildSystemApkVariantsCreateRequest(); + var arg_request = buildVariant(); var arg_packageName = "foo"; var arg_versionCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.SystemApkVariantsCreateRequest.fromJson(json); - checkSystemApkVariantsCreateRequest(obj); + var obj = new api.Variant.fromJson(json); + checkVariant(obj); var path = (req.url).path; var pathOffset = 0; @@ -5804,6 +6559,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/systemApks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("/systemApks/")); + pathOffset += 12; + index = path.indexOf("/variants", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_versionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/variants")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -5858,6 +6634,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/systemApks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("/systemApks/")); + pathOffset += 12; + index = path.indexOf("/variants/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_versionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/variants/")); + pathOffset += 10; + index = path.indexOf(":download", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_variantId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals(":download")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -5907,6 +6713,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/systemApks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("/systemApks/")); + pathOffset += 12; + index = path.indexOf("/variants/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_versionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/variants/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_variantId")); var query = (req.url).query; var queryOffset = 0; @@ -5957,6 +6787,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("androidpublisher/v3/applications/")); + pathOffset += 33; + index = path.indexOf("/systemApks/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_packageName")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("/systemApks/")); + pathOffset += 12; + index = path.indexOf("/variants", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_versionCode")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/variants")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -5981,13 +6832,13 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildSystemApkVariantsListResponse()); + var resp = convert.json.encode(buildSystemApksListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .list(arg_packageName, arg_versionCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkSystemApkVariantsListResponse(response); + checkSystemApksListResponse(response); }))); }); });
diff --git a/generated/googleapis/test/apigee/v1_test.dart b/generated/googleapis/test/apigee/v1_test.dart index 340f47b..81fcea8 100644 --- a/generated/googleapis/test/apigee/v1_test.dart +++ b/generated/googleapis/test/apigee/v1_test.dart
@@ -329,6 +329,7 @@ o.environments = buildUnnamed258(); o.lastModifiedAt = "foo"; o.name = "foo"; + o.operationGroup = buildGoogleCloudApigeeV1OperationGroup(); o.proxies = buildUnnamed259(); o.quota = "foo"; o.quotaInterval = "foo"; @@ -351,6 +352,7 @@ checkUnnamed258(o.environments); unittest.expect(o.lastModifiedAt, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkGoogleCloudApigeeV1OperationGroup(o.operationGroup); checkUnnamed259(o.proxies); unittest.expect(o.quota, unittest.equals('foo')); unittest.expect(o.quotaInterval, unittest.equals('foo')); @@ -782,63 +784,6 @@ buildCounterGoogleCloudApigeeV1AsyncQueryResult--; } -buildUnnamed277() { - 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; -} - -checkUnnamed277(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')); -} - -core.int buildCounterGoogleCloudApigeeV1AsyncQueryResultView = 0; -buildGoogleCloudApigeeV1AsyncQueryResultView() { - var o = new api.GoogleCloudApigeeV1AsyncQueryResultView(); - buildCounterGoogleCloudApigeeV1AsyncQueryResultView++; - if (buildCounterGoogleCloudApigeeV1AsyncQueryResultView < 3) { - o.code = 42; - o.error = "foo"; - o.metadata = buildGoogleCloudApigeeV1QueryMetadata(); - o.rows = buildUnnamed277(); - o.state = "foo"; - } - buildCounterGoogleCloudApigeeV1AsyncQueryResultView--; - return o; -} - -checkGoogleCloudApigeeV1AsyncQueryResultView( - api.GoogleCloudApigeeV1AsyncQueryResultView o) { - buildCounterGoogleCloudApigeeV1AsyncQueryResultView++; - if (buildCounterGoogleCloudApigeeV1AsyncQueryResultView < 3) { - unittest.expect(o.code, unittest.equals(42)); - unittest.expect(o.error, unittest.equals('foo')); - checkGoogleCloudApigeeV1QueryMetadata(o.metadata); - checkUnnamed277(o.rows); - unittest.expect(o.state, unittest.equals('foo')); - } - buildCounterGoogleCloudApigeeV1AsyncQueryResultView--; -} - core.int buildCounterGoogleCloudApigeeV1Attribute = 0; buildGoogleCloudApigeeV1Attribute() { var o = new api.GoogleCloudApigeeV1Attribute(); @@ -860,14 +805,14 @@ buildCounterGoogleCloudApigeeV1Attribute--; } -buildUnnamed278() { +buildUnnamed277() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed278(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed277(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); @@ -878,7 +823,7 @@ var o = new api.GoogleCloudApigeeV1Attributes(); buildCounterGoogleCloudApigeeV1Attributes++; if (buildCounterGoogleCloudApigeeV1Attributes < 3) { - o.attribute = buildUnnamed278(); + o.attribute = buildUnnamed277(); } buildCounterGoogleCloudApigeeV1Attributes--; return o; @@ -887,19 +832,19 @@ checkGoogleCloudApigeeV1Attributes(api.GoogleCloudApigeeV1Attributes o) { buildCounterGoogleCloudApigeeV1Attributes++; if (buildCounterGoogleCloudApigeeV1Attributes < 3) { - checkUnnamed278(o.attribute); + checkUnnamed277(o.attribute); } buildCounterGoogleCloudApigeeV1Attributes--; } -buildUnnamed279() { +buildUnnamed278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed279(core.List<core.String> o) { +checkUnnamed278(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -918,7 +863,7 @@ o.serialNumber = "foo"; o.sigAlgName = "foo"; o.subject = "foo"; - o.subjectAlternativeNames = buildUnnamed279(); + o.subjectAlternativeNames = buildUnnamed278(); o.validFrom = "foo"; o.version = 42; } @@ -937,21 +882,21 @@ unittest.expect(o.serialNumber, unittest.equals('foo')); unittest.expect(o.sigAlgName, unittest.equals('foo')); unittest.expect(o.subject, unittest.equals('foo')); - checkUnnamed279(o.subjectAlternativeNames); + checkUnnamed278(o.subjectAlternativeNames); unittest.expect(o.validFrom, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterGoogleCloudApigeeV1CertInfo--; } -buildUnnamed280() { +buildUnnamed279() { var o = new core.List<api.GoogleCloudApigeeV1CertInfo>(); o.add(buildGoogleCloudApigeeV1CertInfo()); o.add(buildGoogleCloudApigeeV1CertInfo()); return o; } -checkUnnamed280(core.List<api.GoogleCloudApigeeV1CertInfo> o) { +checkUnnamed279(core.List<api.GoogleCloudApigeeV1CertInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1CertInfo(o[0]); checkGoogleCloudApigeeV1CertInfo(o[1]); @@ -962,7 +907,7 @@ var o = new api.GoogleCloudApigeeV1Certificate(); buildCounterGoogleCloudApigeeV1Certificate++; if (buildCounterGoogleCloudApigeeV1Certificate < 3) { - o.certInfo = buildUnnamed280(); + o.certInfo = buildUnnamed279(); } buildCounterGoogleCloudApigeeV1Certificate--; return o; @@ -971,7 +916,7 @@ checkGoogleCloudApigeeV1Certificate(api.GoogleCloudApigeeV1Certificate o) { buildCounterGoogleCloudApigeeV1Certificate++; if (buildCounterGoogleCloudApigeeV1Certificate < 3) { - checkUnnamed280(o.certInfo); + checkUnnamed279(o.certInfo); } buildCounterGoogleCloudApigeeV1Certificate--; } @@ -998,248 +943,6 @@ buildCounterGoogleCloudApigeeV1CommonNameConfig--; } -buildUnnamed281() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed281(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed282() { - var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); - o.add(buildGoogleCloudApigeeV1Attribute()); - o.add(buildGoogleCloudApigeeV1Attribute()); - return o; -} - -checkUnnamed282(core.List<api.GoogleCloudApigeeV1Attribute> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1Attribute(o[0]); - checkGoogleCloudApigeeV1Attribute(o[1]); -} - -core.int buildCounterGoogleCloudApigeeV1Company = 0; -buildGoogleCloudApigeeV1Company() { - var o = new api.GoogleCloudApigeeV1Company(); - buildCounterGoogleCloudApigeeV1Company++; - if (buildCounterGoogleCloudApigeeV1Company < 3) { - o.apps = buildUnnamed281(); - o.attributes = buildUnnamed282(); - o.createdAt = "foo"; - o.displayName = "foo"; - o.lastModifiedAt = "foo"; - o.name = "foo"; - o.organization = "foo"; - o.status = "foo"; - } - buildCounterGoogleCloudApigeeV1Company--; - return o; -} - -checkGoogleCloudApigeeV1Company(api.GoogleCloudApigeeV1Company o) { - buildCounterGoogleCloudApigeeV1Company++; - if (buildCounterGoogleCloudApigeeV1Company < 3) { - checkUnnamed281(o.apps); - checkUnnamed282(o.attributes); - unittest.expect(o.createdAt, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.lastModifiedAt, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.organization, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterGoogleCloudApigeeV1Company--; -} - -buildUnnamed283() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed283(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed284() { - var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); - o.add(buildGoogleCloudApigeeV1Attribute()); - o.add(buildGoogleCloudApigeeV1Attribute()); - return o; -} - -checkUnnamed284(core.List<api.GoogleCloudApigeeV1Attribute> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1Attribute(o[0]); - checkGoogleCloudApigeeV1Attribute(o[1]); -} - -buildUnnamed285() { - var o = new core.List<api.GoogleCloudApigeeV1Credential>(); - o.add(buildGoogleCloudApigeeV1Credential()); - o.add(buildGoogleCloudApigeeV1Credential()); - return o; -} - -checkUnnamed285(core.List<api.GoogleCloudApigeeV1Credential> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1Credential(o[0]); - checkGoogleCloudApigeeV1Credential(o[1]); -} - -buildUnnamed286() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed286(core.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 buildCounterGoogleCloudApigeeV1CompanyApp = 0; -buildGoogleCloudApigeeV1CompanyApp() { - var o = new api.GoogleCloudApigeeV1CompanyApp(); - buildCounterGoogleCloudApigeeV1CompanyApp++; - if (buildCounterGoogleCloudApigeeV1CompanyApp < 3) { - o.apiProducts = buildUnnamed283(); - o.appFamily = "foo"; - o.appId = "foo"; - o.attributes = buildUnnamed284(); - o.callbackUrl = "foo"; - o.companyName = "foo"; - o.createdAt = "foo"; - o.credentials = buildUnnamed285(); - o.keyExpiresIn = "foo"; - o.lastModifiedAt = "foo"; - o.name = "foo"; - o.scopes = buildUnnamed286(); - o.status = "foo"; - } - buildCounterGoogleCloudApigeeV1CompanyApp--; - return o; -} - -checkGoogleCloudApigeeV1CompanyApp(api.GoogleCloudApigeeV1CompanyApp o) { - buildCounterGoogleCloudApigeeV1CompanyApp++; - if (buildCounterGoogleCloudApigeeV1CompanyApp < 3) { - checkUnnamed283(o.apiProducts); - unittest.expect(o.appFamily, unittest.equals('foo')); - unittest.expect(o.appId, unittest.equals('foo')); - checkUnnamed284(o.attributes); - unittest.expect(o.callbackUrl, unittest.equals('foo')); - unittest.expect(o.companyName, unittest.equals('foo')); - unittest.expect(o.createdAt, unittest.equals('foo')); - checkUnnamed285(o.credentials); - unittest.expect(o.keyExpiresIn, unittest.equals('foo')); - unittest.expect(o.lastModifiedAt, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed286(o.scopes); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterGoogleCloudApigeeV1CompanyApp--; -} - -buildUnnamed287() { - 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; -} - -checkUnnamed287(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')); -} - -buildUnnamed288() { - var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); - o.add(buildGoogleCloudApigeeV1Attribute()); - o.add(buildGoogleCloudApigeeV1Attribute()); - return o; -} - -checkUnnamed288(core.List<api.GoogleCloudApigeeV1Attribute> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1Attribute(o[0]); - checkGoogleCloudApigeeV1Attribute(o[1]); -} - -buildUnnamed289() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed289(core.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 buildCounterGoogleCloudApigeeV1CompanyAppKey = 0; -buildGoogleCloudApigeeV1CompanyAppKey() { - var o = new api.GoogleCloudApigeeV1CompanyAppKey(); - buildCounterGoogleCloudApigeeV1CompanyAppKey++; - if (buildCounterGoogleCloudApigeeV1CompanyAppKey < 3) { - o.apiProducts = buildUnnamed287(); - o.attributes = buildUnnamed288(); - o.consumerKey = "foo"; - o.consumerSecret = "foo"; - o.expiresAt = "foo"; - o.issuedAt = "foo"; - o.scopes = buildUnnamed289(); - o.status = "foo"; - } - buildCounterGoogleCloudApigeeV1CompanyAppKey--; - return o; -} - -checkGoogleCloudApigeeV1CompanyAppKey(api.GoogleCloudApigeeV1CompanyAppKey o) { - buildCounterGoogleCloudApigeeV1CompanyAppKey++; - if (buildCounterGoogleCloudApigeeV1CompanyAppKey < 3) { - checkUnnamed287(o.apiProducts); - checkUnnamed288(o.attributes); - unittest.expect(o.consumerKey, unittest.equals('foo')); - unittest.expect(o.consumerSecret, unittest.equals('foo')); - unittest.expect(o.expiresAt, unittest.equals('foo')); - unittest.expect(o.issuedAt, unittest.equals('foo')); - checkUnnamed289(o.scopes); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterGoogleCloudApigeeV1CompanyAppKey--; -} - core.int buildCounterGoogleCloudApigeeV1ConfigVersion = 0; buildGoogleCloudApigeeV1ConfigVersion() { var o = new api.GoogleCloudApigeeV1ConfigVersion(); @@ -1261,40 +964,40 @@ buildCounterGoogleCloudApigeeV1ConfigVersion--; } -buildUnnamed290() { +buildUnnamed280() { var o = new core.List<api.GoogleCloudApigeeV1ApiProductRef>(); o.add(buildGoogleCloudApigeeV1ApiProductRef()); o.add(buildGoogleCloudApigeeV1ApiProductRef()); return o; } -checkUnnamed290(core.List<api.GoogleCloudApigeeV1ApiProductRef> o) { +checkUnnamed280(core.List<api.GoogleCloudApigeeV1ApiProductRef> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ApiProductRef(o[0]); checkGoogleCloudApigeeV1ApiProductRef(o[1]); } -buildUnnamed291() { +buildUnnamed281() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed291(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed281(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); } -buildUnnamed292() { +buildUnnamed282() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed292(core.List<core.String> o) { +checkUnnamed282(core.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,13 +1008,13 @@ var o = new api.GoogleCloudApigeeV1Credential(); buildCounterGoogleCloudApigeeV1Credential++; if (buildCounterGoogleCloudApigeeV1Credential < 3) { - o.apiProducts = buildUnnamed290(); - o.attributes = buildUnnamed291(); + o.apiProducts = buildUnnamed280(); + o.attributes = buildUnnamed281(); o.consumerKey = "foo"; o.consumerSecret = "foo"; o.expiresAt = "foo"; o.issuedAt = "foo"; - o.scopes = buildUnnamed292(); + o.scopes = buildUnnamed282(); o.status = "foo"; } buildCounterGoogleCloudApigeeV1Credential--; @@ -1321,91 +1024,91 @@ checkGoogleCloudApigeeV1Credential(api.GoogleCloudApigeeV1Credential o) { buildCounterGoogleCloudApigeeV1Credential++; if (buildCounterGoogleCloudApigeeV1Credential < 3) { - checkUnnamed290(o.apiProducts); - checkUnnamed291(o.attributes); + checkUnnamed280(o.apiProducts); + checkUnnamed281(o.attributes); unittest.expect(o.consumerKey, unittest.equals('foo')); unittest.expect(o.consumerSecret, unittest.equals('foo')); unittest.expect(o.expiresAt, unittest.equals('foo')); unittest.expect(o.issuedAt, unittest.equals('foo')); - checkUnnamed292(o.scopes); + checkUnnamed282(o.scopes); unittest.expect(o.status, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1Credential--; } -buildUnnamed293() { +buildUnnamed283() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed293(core.List<core.String> o) { +checkUnnamed283(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed294() { +buildUnnamed284() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed294(core.List<core.String> o) { +checkUnnamed284(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed295() { +buildUnnamed285() { var o = new core.List<api.GoogleCloudApigeeV1CustomReportMetric>(); o.add(buildGoogleCloudApigeeV1CustomReportMetric()); o.add(buildGoogleCloudApigeeV1CustomReportMetric()); return o; } -checkUnnamed295(core.List<api.GoogleCloudApigeeV1CustomReportMetric> o) { +checkUnnamed285(core.List<api.GoogleCloudApigeeV1CustomReportMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1CustomReportMetric(o[0]); checkGoogleCloudApigeeV1CustomReportMetric(o[1]); } -buildUnnamed296() { +buildUnnamed286() { var o = new core.List<api.GoogleCloudApigeeV1ReportProperty>(); o.add(buildGoogleCloudApigeeV1ReportProperty()); o.add(buildGoogleCloudApigeeV1ReportProperty()); return o; } -checkUnnamed296(core.List<api.GoogleCloudApigeeV1ReportProperty> o) { +checkUnnamed286(core.List<api.GoogleCloudApigeeV1ReportProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ReportProperty(o[0]); checkGoogleCloudApigeeV1ReportProperty(o[1]); } -buildUnnamed297() { +buildUnnamed287() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed297(core.List<core.String> o) { +checkUnnamed287(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed298() { +buildUnnamed288() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed298(core.List<core.String> o) { +checkUnnamed288(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1417,9 +1120,9 @@ buildCounterGoogleCloudApigeeV1CustomReport++; if (buildCounterGoogleCloudApigeeV1CustomReport < 3) { o.chartType = "foo"; - o.comments = buildUnnamed293(); + o.comments = buildUnnamed283(); o.createdAt = "foo"; - o.dimensions = buildUnnamed294(); + o.dimensions = buildUnnamed284(); o.displayName = "foo"; o.environment = "foo"; o.filter = "foo"; @@ -1427,14 +1130,14 @@ o.lastModifiedAt = "foo"; o.lastViewedAt = "foo"; o.limit = "foo"; - o.metrics = buildUnnamed295(); + o.metrics = buildUnnamed285(); o.name = "foo"; o.offset = "foo"; o.organization = "foo"; - o.properties = buildUnnamed296(); - o.sortByCols = buildUnnamed297(); + o.properties = buildUnnamed286(); + o.sortByCols = buildUnnamed287(); o.sortOrder = "foo"; - o.tags = buildUnnamed298(); + o.tags = buildUnnamed288(); o.timeUnit = "foo"; o.toTime = "foo"; o.topk = "foo"; @@ -1447,9 +1150,9 @@ buildCounterGoogleCloudApigeeV1CustomReport++; if (buildCounterGoogleCloudApigeeV1CustomReport < 3) { unittest.expect(o.chartType, unittest.equals('foo')); - checkUnnamed293(o.comments); + checkUnnamed283(o.comments); unittest.expect(o.createdAt, unittest.equals('foo')); - checkUnnamed294(o.dimensions); + checkUnnamed284(o.dimensions); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.environment, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); @@ -1457,14 +1160,14 @@ unittest.expect(o.lastModifiedAt, unittest.equals('foo')); unittest.expect(o.lastViewedAt, unittest.equals('foo')); unittest.expect(o.limit, unittest.equals('foo')); - checkUnnamed295(o.metrics); + checkUnnamed285(o.metrics); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.offset, unittest.equals('foo')); unittest.expect(o.organization, unittest.equals('foo')); - checkUnnamed296(o.properties); - checkUnnamed297(o.sortByCols); + checkUnnamed286(o.properties); + checkUnnamed287(o.sortByCols); unittest.expect(o.sortOrder, unittest.equals('foo')); - checkUnnamed298(o.tags); + checkUnnamed288(o.tags); unittest.expect(o.timeUnit, unittest.equals('foo')); unittest.expect(o.toTime, unittest.equals('foo')); unittest.expect(o.topk, unittest.equals('foo')); @@ -1494,124 +1197,207 @@ buildCounterGoogleCloudApigeeV1CustomReportMetric--; } -core.int buildCounterGoogleCloudApigeeV1DataLocation = 0; -buildGoogleCloudApigeeV1DataLocation() { - var o = new api.GoogleCloudApigeeV1DataLocation(); - buildCounterGoogleCloudApigeeV1DataLocation++; - if (buildCounterGoogleCloudApigeeV1DataLocation < 3) { - o.url = "foo"; +core.int buildCounterGoogleCloudApigeeV1DataCollectorConfig = 0; +buildGoogleCloudApigeeV1DataCollectorConfig() { + var o = new api.GoogleCloudApigeeV1DataCollectorConfig(); + buildCounterGoogleCloudApigeeV1DataCollectorConfig++; + if (buildCounterGoogleCloudApigeeV1DataCollectorConfig < 3) { + o.name = "foo"; + o.type = "foo"; } - buildCounterGoogleCloudApigeeV1DataLocation--; + buildCounterGoogleCloudApigeeV1DataCollectorConfig--; return o; } -checkGoogleCloudApigeeV1DataLocation(api.GoogleCloudApigeeV1DataLocation o) { - buildCounterGoogleCloudApigeeV1DataLocation++; - if (buildCounterGoogleCloudApigeeV1DataLocation < 3) { - unittest.expect(o.url, unittest.equals('foo')); +checkGoogleCloudApigeeV1DataCollectorConfig( + api.GoogleCloudApigeeV1DataCollectorConfig o) { + buildCounterGoogleCloudApigeeV1DataCollectorConfig++; + if (buildCounterGoogleCloudApigeeV1DataCollectorConfig < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); } - buildCounterGoogleCloudApigeeV1DataLocation--; + buildCounterGoogleCloudApigeeV1DataCollectorConfig--; } -buildUnnamed299() { +core.int buildCounterGoogleCloudApigeeV1Datastore = 0; +buildGoogleCloudApigeeV1Datastore() { + var o = new api.GoogleCloudApigeeV1Datastore(); + buildCounterGoogleCloudApigeeV1Datastore++; + if (buildCounterGoogleCloudApigeeV1Datastore < 3) { + o.createTime = "foo"; + o.datastoreConfig = buildGoogleCloudApigeeV1DatastoreConfig(); + o.displayName = "foo"; + o.lastUpdateTime = "foo"; + o.org = "foo"; + o.self = "foo"; + o.targetType = "foo"; + } + buildCounterGoogleCloudApigeeV1Datastore--; + return o; +} + +checkGoogleCloudApigeeV1Datastore(api.GoogleCloudApigeeV1Datastore o) { + buildCounterGoogleCloudApigeeV1Datastore++; + if (buildCounterGoogleCloudApigeeV1Datastore < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + checkGoogleCloudApigeeV1DatastoreConfig(o.datastoreConfig); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.lastUpdateTime, unittest.equals('foo')); + unittest.expect(o.org, unittest.equals('foo')); + unittest.expect(o.self, unittest.equals('foo')); + unittest.expect(o.targetType, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1Datastore--; +} + +core.int buildCounterGoogleCloudApigeeV1DatastoreConfig = 0; +buildGoogleCloudApigeeV1DatastoreConfig() { + var o = new api.GoogleCloudApigeeV1DatastoreConfig(); + buildCounterGoogleCloudApigeeV1DatastoreConfig++; + if (buildCounterGoogleCloudApigeeV1DatastoreConfig < 3) { + o.bucketName = "foo"; + o.datasetName = "foo"; + o.path = "foo"; + o.projectId = "foo"; + o.tablePrefix = "foo"; + } + buildCounterGoogleCloudApigeeV1DatastoreConfig--; + return o; +} + +checkGoogleCloudApigeeV1DatastoreConfig( + api.GoogleCloudApigeeV1DatastoreConfig o) { + buildCounterGoogleCloudApigeeV1DatastoreConfig++; + if (buildCounterGoogleCloudApigeeV1DatastoreConfig < 3) { + unittest.expect(o.bucketName, unittest.equals('foo')); + unittest.expect(o.datasetName, unittest.equals('foo')); + unittest.expect(o.path, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + unittest.expect(o.tablePrefix, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1DatastoreConfig--; +} + +core.int buildCounterGoogleCloudApigeeV1DateRange = 0; +buildGoogleCloudApigeeV1DateRange() { + var o = new api.GoogleCloudApigeeV1DateRange(); + buildCounterGoogleCloudApigeeV1DateRange++; + if (buildCounterGoogleCloudApigeeV1DateRange < 3) { + o.end = "foo"; + o.start = "foo"; + } + buildCounterGoogleCloudApigeeV1DateRange--; + return o; +} + +checkGoogleCloudApigeeV1DateRange(api.GoogleCloudApigeeV1DateRange o) { + buildCounterGoogleCloudApigeeV1DateRange++; + if (buildCounterGoogleCloudApigeeV1DateRange < 3) { + unittest.expect(o.end, unittest.equals('foo')); + unittest.expect(o.start, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1DateRange--; +} + +buildUnnamed289() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed299(core.List<core.String> o) { +checkUnnamed289(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed300() { +buildUnnamed290() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed300(core.List<core.String> o) { +checkUnnamed290(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed301() { +buildUnnamed291() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed301(core.Map<core.String, core.String> o) { +checkUnnamed291(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')); } -buildUnnamed302() { +buildUnnamed292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed302(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')); } -buildUnnamed303() { +buildUnnamed293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed303(core.List<core.String> o) { +checkUnnamed293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed304() { +buildUnnamed294() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed304(core.List<core.String> o) { +checkUnnamed294(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed305() { +buildUnnamed295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed305(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')); } -buildUnnamed306() { +buildUnnamed296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed306(core.List<core.String> o) { +checkUnnamed296(core.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,15 +1408,15 @@ var o = new api.GoogleCloudApigeeV1DebugMask(); buildCounterGoogleCloudApigeeV1DebugMask++; if (buildCounterGoogleCloudApigeeV1DebugMask < 3) { - o.faultJSONPaths = buildUnnamed299(); - o.faultXPaths = buildUnnamed300(); + o.faultJSONPaths = buildUnnamed289(); + o.faultXPaths = buildUnnamed290(); o.name = "foo"; - o.namespaces = buildUnnamed301(); - o.requestJSONPaths = buildUnnamed302(); - o.requestXPaths = buildUnnamed303(); - o.responseJSONPaths = buildUnnamed304(); - o.responseXPaths = buildUnnamed305(); - o.variables = buildUnnamed306(); + o.namespaces = buildUnnamed291(); + o.requestJSONPaths = buildUnnamed292(); + o.requestXPaths = buildUnnamed293(); + o.responseJSONPaths = buildUnnamed294(); + o.responseXPaths = buildUnnamed295(); + o.variables = buildUnnamed296(); } buildCounterGoogleCloudApigeeV1DebugMask--; return o; @@ -1639,15 +1425,15 @@ checkGoogleCloudApigeeV1DebugMask(api.GoogleCloudApigeeV1DebugMask o) { buildCounterGoogleCloudApigeeV1DebugMask++; if (buildCounterGoogleCloudApigeeV1DebugMask < 3) { - checkUnnamed299(o.faultJSONPaths); - checkUnnamed300(o.faultXPaths); + checkUnnamed289(o.faultJSONPaths); + checkUnnamed290(o.faultXPaths); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed301(o.namespaces); - checkUnnamed302(o.requestJSONPaths); - checkUnnamed303(o.requestXPaths); - checkUnnamed304(o.responseJSONPaths); - checkUnnamed305(o.responseXPaths); - checkUnnamed306(o.variables); + checkUnnamed291(o.namespaces); + checkUnnamed292(o.requestJSONPaths); + checkUnnamed293(o.requestXPaths); + checkUnnamed294(o.responseJSONPaths); + checkUnnamed295(o.responseXPaths); + checkUnnamed296(o.variables); } buildCounterGoogleCloudApigeeV1DebugMask--; } @@ -1681,14 +1467,14 @@ buildCounterGoogleCloudApigeeV1DebugSession--; } -buildUnnamed307() { +buildUnnamed297() { var o = new core.List<api.GoogleCloudApigeeV1Point>(); o.add(buildGoogleCloudApigeeV1Point()); o.add(buildGoogleCloudApigeeV1Point()); return o; } -checkUnnamed307(core.List<api.GoogleCloudApigeeV1Point> o) { +checkUnnamed297(core.List<api.GoogleCloudApigeeV1Point> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Point(o[0]); checkGoogleCloudApigeeV1Point(o[1]); @@ -1700,7 +1486,7 @@ buildCounterGoogleCloudApigeeV1DebugSessionTransaction++; if (buildCounterGoogleCloudApigeeV1DebugSessionTransaction < 3) { o.completed = true; - o.point = buildUnnamed307(); + o.point = buildUnnamed297(); } buildCounterGoogleCloudApigeeV1DebugSessionTransaction--; return o; @@ -1711,7 +1497,7 @@ buildCounterGoogleCloudApigeeV1DebugSessionTransaction++; if (buildCounterGoogleCloudApigeeV1DebugSessionTransaction < 3) { unittest.expect(o.completed, unittest.isTrue); - checkUnnamed307(o.point); + checkUnnamed297(o.point); } buildCounterGoogleCloudApigeeV1DebugSessionTransaction--; } @@ -1736,30 +1522,74 @@ buildCounterGoogleCloudApigeeV1DeleteCustomReportResponse--; } -buildUnnamed308() { +buildUnnamed298() { + var o = new core.List<api.GoogleRpcStatus>(); + o.add(buildGoogleRpcStatus()); + o.add(buildGoogleRpcStatus()); + return o; +} + +checkUnnamed298(core.List<api.GoogleRpcStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleRpcStatus(o[0]); + checkGoogleRpcStatus(o[1]); +} + +buildUnnamed299() { + var o = new core.List<api.GoogleCloudApigeeV1InstanceDeploymentStatus>(); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatus()); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatus()); + return o; +} + +checkUnnamed299(core.List<api.GoogleCloudApigeeV1InstanceDeploymentStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1InstanceDeploymentStatus(o[0]); + checkGoogleCloudApigeeV1InstanceDeploymentStatus(o[1]); +} + +buildUnnamed300() { var o = new core.List<api.GoogleCloudApigeeV1PodStatus>(); o.add(buildGoogleCloudApigeeV1PodStatus()); o.add(buildGoogleCloudApigeeV1PodStatus()); return o; } -checkUnnamed308(core.List<api.GoogleCloudApigeeV1PodStatus> o) { +checkUnnamed300(core.List<api.GoogleCloudApigeeV1PodStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1PodStatus(o[0]); checkGoogleCloudApigeeV1PodStatus(o[1]); } +buildUnnamed301() { + var o = new core + .List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict>(); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict()); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict()); + return o; +} + +checkUnnamed301( + core.List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(o[0]); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(o[1]); +} + core.int buildCounterGoogleCloudApigeeV1Deployment = 0; buildGoogleCloudApigeeV1Deployment() { var o = new api.GoogleCloudApigeeV1Deployment(); buildCounterGoogleCloudApigeeV1Deployment++; if (buildCounterGoogleCloudApigeeV1Deployment < 3) { o.apiProxy = "foo"; - o.basePath = "foo"; o.deployStartTime = "foo"; o.environment = "foo"; - o.pods = buildUnnamed308(); + o.errors = buildUnnamed298(); + o.instances = buildUnnamed299(); + o.pods = buildUnnamed300(); o.revision = "foo"; + o.routeConflicts = buildUnnamed301(); + o.state = "foo"; } buildCounterGoogleCloudApigeeV1Deployment--; return o; @@ -1769,23 +1599,170 @@ buildCounterGoogleCloudApigeeV1Deployment++; if (buildCounterGoogleCloudApigeeV1Deployment < 3) { unittest.expect(o.apiProxy, unittest.equals('foo')); - unittest.expect(o.basePath, unittest.equals('foo')); unittest.expect(o.deployStartTime, unittest.equals('foo')); unittest.expect(o.environment, unittest.equals('foo')); - checkUnnamed308(o.pods); + checkUnnamed298(o.errors); + checkUnnamed299(o.instances); + checkUnnamed300(o.pods); unittest.expect(o.revision, unittest.equals('foo')); + checkUnnamed301(o.routeConflicts); + unittest.expect(o.state, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1Deployment--; } -buildUnnamed309() { +buildUnnamed302() { + var o = new core + .List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingChange>(); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingChange()); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingChange()); + return o; +} + +checkUnnamed302( + core.List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingChange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingChange(o[0]); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingChange(o[1]); +} + +buildUnnamed303() { + var o = new core + .List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict>(); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict()); + o.add(buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict()); + return o; +} + +checkUnnamed303( + core.List<api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(o[0]); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1DeploymentChangeReport = 0; +buildGoogleCloudApigeeV1DeploymentChangeReport() { + var o = new api.GoogleCloudApigeeV1DeploymentChangeReport(); + buildCounterGoogleCloudApigeeV1DeploymentChangeReport++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReport < 3) { + o.routingChanges = buildUnnamed302(); + o.routingConflicts = buildUnnamed303(); + o.validationErrors = buildGoogleRpcPreconditionFailure(); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReport--; + return o; +} + +checkGoogleCloudApigeeV1DeploymentChangeReport( + api.GoogleCloudApigeeV1DeploymentChangeReport o) { + buildCounterGoogleCloudApigeeV1DeploymentChangeReport++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReport < 3) { + checkUnnamed302(o.routingChanges); + checkUnnamed303(o.routingConflicts); + checkGoogleRpcPreconditionFailure(o.validationErrors); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReport--; +} + +core.int buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange = 0; +buildGoogleCloudApigeeV1DeploymentChangeReportRoutingChange() { + var o = new api.GoogleCloudApigeeV1DeploymentChangeReportRoutingChange(); + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange < 3) { + o.description = "foo"; + o.environmentGroup = "foo"; + o.fromDeployment = + buildGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(); + o.shouldSequenceRollout = true; + o.toDeployment = + buildGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange--; + return o; +} + +checkGoogleCloudApigeeV1DeploymentChangeReportRoutingChange( + api.GoogleCloudApigeeV1DeploymentChangeReportRoutingChange o) { + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.environmentGroup, unittest.equals('foo')); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment( + o.fromDeployment); + unittest.expect(o.shouldSequenceRollout, unittest.isTrue); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment( + o.toDeployment); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingChange--; +} + +core.int buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict = + 0; +buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict() { + var o = new api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(); + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict < + 3) { + o.conflictingDeployment = + buildGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(); + o.description = "foo"; + o.environmentGroup = "foo"; + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict--; + return o; +} + +checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict( + api.GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict o) { + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict < + 3) { + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment( + o.conflictingDeployment); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.environmentGroup, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict--; +} + +core.int + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment = 0; +buildGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment() { + var o = new api.GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(); + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment < + 3) { + o.apiProxy = "foo"; + o.basepath = "foo"; + o.environment = "foo"; + o.revision = "foo"; + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment--; + return o; +} + +checkGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment( + api.GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment o) { + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment++; + if (buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment < + 3) { + unittest.expect(o.apiProxy, unittest.equals('foo')); + unittest.expect(o.basepath, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + unittest.expect(o.revision, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment--; +} + +buildUnnamed304() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed309(core.Map<core.String, core.String> o) { +checkUnnamed304(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')); @@ -1796,10 +1773,12 @@ var o = new api.GoogleCloudApigeeV1DeploymentConfig(); buildCounterGoogleCloudApigeeV1DeploymentConfig++; if (buildCounterGoogleCloudApigeeV1DeploymentConfig < 3) { - o.attributes = buildUnnamed309(); + o.attributes = buildUnnamed304(); o.basePath = "foo"; o.location = "foo"; o.name = "foo"; + o.proxyUid = "foo"; + o.uid = "foo"; } buildCounterGoogleCloudApigeeV1DeploymentConfig--; return o; @@ -1809,48 +1788,50 @@ api.GoogleCloudApigeeV1DeploymentConfig o) { buildCounterGoogleCloudApigeeV1DeploymentConfig++; if (buildCounterGoogleCloudApigeeV1DeploymentConfig < 3) { - checkUnnamed309(o.attributes); + checkUnnamed304(o.attributes); unittest.expect(o.basePath, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.proxyUid, unittest.equals('foo')); + unittest.expect(o.uid, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1DeploymentConfig--; } -buildUnnamed310() { +buildUnnamed305() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed310(core.List<core.String> o) { +checkUnnamed305(core.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() { +buildUnnamed306() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed311(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed306(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); } -buildUnnamed312() { +buildUnnamed307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed312(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')); @@ -1863,9 +1844,9 @@ if (buildCounterGoogleCloudApigeeV1Developer < 3) { o.accessType = "foo"; o.appFamily = "foo"; - o.apps = buildUnnamed310(); - o.attributes = buildUnnamed311(); - o.companies = buildUnnamed312(); + o.apps = buildUnnamed305(); + o.attributes = buildUnnamed306(); + o.companies = buildUnnamed307(); o.createdAt = "foo"; o.developerId = "foo"; o.email = "foo"; @@ -1885,9 +1866,9 @@ if (buildCounterGoogleCloudApigeeV1Developer < 3) { unittest.expect(o.accessType, unittest.equals('foo')); unittest.expect(o.appFamily, unittest.equals('foo')); - checkUnnamed310(o.apps); - checkUnnamed311(o.attributes); - checkUnnamed312(o.companies); + checkUnnamed305(o.apps); + checkUnnamed306(o.attributes); + checkUnnamed307(o.companies); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.developerId, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -1901,53 +1882,53 @@ buildCounterGoogleCloudApigeeV1Developer--; } -buildUnnamed313() { +buildUnnamed308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed313(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')); } -buildUnnamed314() { +buildUnnamed309() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed314(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed309(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); } -buildUnnamed315() { +buildUnnamed310() { var o = new core.List<api.GoogleCloudApigeeV1Credential>(); o.add(buildGoogleCloudApigeeV1Credential()); o.add(buildGoogleCloudApigeeV1Credential()); return o; } -checkUnnamed315(core.List<api.GoogleCloudApigeeV1Credential> o) { +checkUnnamed310(core.List<api.GoogleCloudApigeeV1Credential> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Credential(o[0]); checkGoogleCloudApigeeV1Credential(o[1]); } -buildUnnamed316() { +buildUnnamed311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed316(core.List<core.String> o) { +checkUnnamed311(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1958,18 +1939,18 @@ var o = new api.GoogleCloudApigeeV1DeveloperApp(); buildCounterGoogleCloudApigeeV1DeveloperApp++; if (buildCounterGoogleCloudApigeeV1DeveloperApp < 3) { - o.apiProducts = buildUnnamed313(); + o.apiProducts = buildUnnamed308(); o.appFamily = "foo"; o.appId = "foo"; - o.attributes = buildUnnamed314(); + o.attributes = buildUnnamed309(); o.callbackUrl = "foo"; o.createdAt = "foo"; - o.credentials = buildUnnamed315(); + o.credentials = buildUnnamed310(); o.developerId = "foo"; o.keyExpiresIn = "foo"; o.lastModifiedAt = "foo"; o.name = "foo"; - o.scopes = buildUnnamed316(); + o.scopes = buildUnnamed311(); o.status = "foo"; } buildCounterGoogleCloudApigeeV1DeveloperApp--; @@ -1979,24 +1960,24 @@ checkGoogleCloudApigeeV1DeveloperApp(api.GoogleCloudApigeeV1DeveloperApp o) { buildCounterGoogleCloudApigeeV1DeveloperApp++; if (buildCounterGoogleCloudApigeeV1DeveloperApp < 3) { - checkUnnamed313(o.apiProducts); + checkUnnamed308(o.apiProducts); unittest.expect(o.appFamily, unittest.equals('foo')); unittest.expect(o.appId, unittest.equals('foo')); - checkUnnamed314(o.attributes); + checkUnnamed309(o.attributes); unittest.expect(o.callbackUrl, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); - checkUnnamed315(o.credentials); + checkUnnamed310(o.credentials); unittest.expect(o.developerId, unittest.equals('foo')); unittest.expect(o.keyExpiresIn, unittest.equals('foo')); unittest.expect(o.lastModifiedAt, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed316(o.scopes); + checkUnnamed311(o.scopes); unittest.expect(o.status, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1DeveloperApp--; } -buildUnnamed317() { +buildUnnamed312() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2011,41 +1992,41 @@ return o; } -checkUnnamed317(core.List<core.Object> o) { +checkUnnamed312(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')); + 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')); } -buildUnnamed318() { +buildUnnamed313() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed318(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed313(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); } -buildUnnamed319() { +buildUnnamed314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed319(core.List<core.String> o) { +checkUnnamed314(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2056,13 +2037,13 @@ var o = new api.GoogleCloudApigeeV1DeveloperAppKey(); buildCounterGoogleCloudApigeeV1DeveloperAppKey++; if (buildCounterGoogleCloudApigeeV1DeveloperAppKey < 3) { - o.apiProducts = buildUnnamed317(); - o.attributes = buildUnnamed318(); + o.apiProducts = buildUnnamed312(); + o.attributes = buildUnnamed313(); o.consumerKey = "foo"; o.consumerSecret = "foo"; o.expiresAt = "foo"; o.issuedAt = "foo"; - o.scopes = buildUnnamed319(); + o.scopes = buildUnnamed314(); o.status = "foo"; } buildCounterGoogleCloudApigeeV1DeveloperAppKey--; @@ -2073,26 +2054,26 @@ api.GoogleCloudApigeeV1DeveloperAppKey o) { buildCounterGoogleCloudApigeeV1DeveloperAppKey++; if (buildCounterGoogleCloudApigeeV1DeveloperAppKey < 3) { - checkUnnamed317(o.apiProducts); - checkUnnamed318(o.attributes); + checkUnnamed312(o.apiProducts); + checkUnnamed313(o.attributes); unittest.expect(o.consumerKey, unittest.equals('foo')); unittest.expect(o.consumerSecret, unittest.equals('foo')); unittest.expect(o.expiresAt, unittest.equals('foo')); unittest.expect(o.issuedAt, unittest.equals('foo')); - checkUnnamed319(o.scopes); + checkUnnamed314(o.scopes); unittest.expect(o.status, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1DeveloperAppKey--; } -buildUnnamed320() { +buildUnnamed315() { var o = new core.List<api.GoogleCloudApigeeV1Metric>(); o.add(buildGoogleCloudApigeeV1Metric()); o.add(buildGoogleCloudApigeeV1Metric()); return o; } -checkUnnamed320(core.List<api.GoogleCloudApigeeV1Metric> o) { +checkUnnamed315(core.List<api.GoogleCloudApigeeV1Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Metric(o[0]); checkGoogleCloudApigeeV1Metric(o[1]); @@ -2103,7 +2084,7 @@ var o = new api.GoogleCloudApigeeV1DimensionMetric(); buildCounterGoogleCloudApigeeV1DimensionMetric++; if (buildCounterGoogleCloudApigeeV1DimensionMetric < 3) { - o.metrics = buildUnnamed320(); + o.metrics = buildUnnamed315(); o.name = "foo"; } buildCounterGoogleCloudApigeeV1DimensionMetric--; @@ -2114,7 +2095,7 @@ api.GoogleCloudApigeeV1DimensionMetric o) { buildCounterGoogleCloudApigeeV1DimensionMetric++; if (buildCounterGoogleCloudApigeeV1DimensionMetric < 3) { - checkUnnamed320(o.metrics); + checkUnnamed315(o.metrics); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1DimensionMetric--; @@ -2173,92 +2154,105 @@ buildCounterGoogleCloudApigeeV1Environment--; } -buildUnnamed321() { +buildUnnamed316() { + var o = new core.List<api.GoogleCloudApigeeV1DataCollectorConfig>(); + o.add(buildGoogleCloudApigeeV1DataCollectorConfig()); + o.add(buildGoogleCloudApigeeV1DataCollectorConfig()); + return o; +} + +checkUnnamed316(core.List<api.GoogleCloudApigeeV1DataCollectorConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1DataCollectorConfig(o[0]); + checkGoogleCloudApigeeV1DataCollectorConfig(o[1]); +} + +buildUnnamed317() { var o = new core.List<api.GoogleCloudApigeeV1DeploymentConfig>(); o.add(buildGoogleCloudApigeeV1DeploymentConfig()); o.add(buildGoogleCloudApigeeV1DeploymentConfig()); return o; } -checkUnnamed321(core.List<api.GoogleCloudApigeeV1DeploymentConfig> o) { +checkUnnamed317(core.List<api.GoogleCloudApigeeV1DeploymentConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1DeploymentConfig(o[0]); checkGoogleCloudApigeeV1DeploymentConfig(o[1]); } -buildUnnamed322() { +buildUnnamed318() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed322(core.Map<core.String, core.String> o) { +checkUnnamed318(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')); } -buildUnnamed323() { +buildUnnamed319() { var o = new core.List<api.GoogleCloudApigeeV1FlowHookConfig>(); o.add(buildGoogleCloudApigeeV1FlowHookConfig()); o.add(buildGoogleCloudApigeeV1FlowHookConfig()); return o; } -checkUnnamed323(core.List<api.GoogleCloudApigeeV1FlowHookConfig> o) { +checkUnnamed319(core.List<api.GoogleCloudApigeeV1FlowHookConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1FlowHookConfig(o[0]); checkGoogleCloudApigeeV1FlowHookConfig(o[1]); } -buildUnnamed324() { +buildUnnamed320() { var o = new core.List<api.GoogleCloudApigeeV1KeystoreConfig>(); o.add(buildGoogleCloudApigeeV1KeystoreConfig()); o.add(buildGoogleCloudApigeeV1KeystoreConfig()); return o; } -checkUnnamed324(core.List<api.GoogleCloudApigeeV1KeystoreConfig> o) { +checkUnnamed320(core.List<api.GoogleCloudApigeeV1KeystoreConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1KeystoreConfig(o[0]); checkGoogleCloudApigeeV1KeystoreConfig(o[1]); } -buildUnnamed325() { +buildUnnamed321() { var o = new core.List<api.GoogleCloudApigeeV1ReferenceConfig>(); o.add(buildGoogleCloudApigeeV1ReferenceConfig()); o.add(buildGoogleCloudApigeeV1ReferenceConfig()); return o; } -checkUnnamed325(core.List<api.GoogleCloudApigeeV1ReferenceConfig> o) { +checkUnnamed321(core.List<api.GoogleCloudApigeeV1ReferenceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ReferenceConfig(o[0]); checkGoogleCloudApigeeV1ReferenceConfig(o[1]); } -buildUnnamed326() { +buildUnnamed322() { var o = new core.List<api.GoogleCloudApigeeV1ResourceConfig>(); o.add(buildGoogleCloudApigeeV1ResourceConfig()); o.add(buildGoogleCloudApigeeV1ResourceConfig()); return o; } -checkUnnamed326(core.List<api.GoogleCloudApigeeV1ResourceConfig> o) { +checkUnnamed322(core.List<api.GoogleCloudApigeeV1ResourceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ResourceConfig(o[0]); checkGoogleCloudApigeeV1ResourceConfig(o[1]); } -buildUnnamed327() { +buildUnnamed323() { var o = new core.List<api.GoogleCloudApigeeV1TargetServerConfig>(); o.add(buildGoogleCloudApigeeV1TargetServerConfig()); o.add(buildGoogleCloudApigeeV1TargetServerConfig()); return o; } -checkUnnamed327(core.List<api.GoogleCloudApigeeV1TargetServerConfig> o) { +checkUnnamed323(core.List<api.GoogleCloudApigeeV1TargetServerConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1TargetServerConfig(o[0]); checkGoogleCloudApigeeV1TargetServerConfig(o[1]); @@ -2270,18 +2264,22 @@ buildCounterGoogleCloudApigeeV1EnvironmentConfig++; if (buildCounterGoogleCloudApigeeV1EnvironmentConfig < 3) { o.createTime = "foo"; + o.dataCollectors = buildUnnamed316(); o.debugMask = buildGoogleCloudApigeeV1DebugMask(); - o.deployments = buildUnnamed321(); - o.featureFlags = buildUnnamed322(); - o.flowhooks = buildUnnamed323(); - o.keystores = buildUnnamed324(); + o.deployments = buildUnnamed317(); + o.featureFlags = buildUnnamed318(); + o.flowhooks = buildUnnamed319(); + o.keystores = buildUnnamed320(); o.name = "foo"; o.provider = "foo"; o.pubsubTopic = "foo"; - o.resourceReferences = buildUnnamed325(); - o.resources = buildUnnamed326(); + o.resourceReferences = buildUnnamed321(); + o.resources = buildUnnamed322(); + o.revisionId = "foo"; o.sequenceNumber = "foo"; - o.targets = buildUnnamed327(); + o.targets = buildUnnamed323(); + o.traceConfig = buildGoogleCloudApigeeV1RuntimeTraceConfig(); + o.uid = "foo"; } buildCounterGoogleCloudApigeeV1EnvironmentConfig--; return o; @@ -2292,22 +2290,207 @@ buildCounterGoogleCloudApigeeV1EnvironmentConfig++; if (buildCounterGoogleCloudApigeeV1EnvironmentConfig < 3) { unittest.expect(o.createTime, unittest.equals('foo')); + checkUnnamed316(o.dataCollectors); checkGoogleCloudApigeeV1DebugMask(o.debugMask); - checkUnnamed321(o.deployments); - checkUnnamed322(o.featureFlags); - checkUnnamed323(o.flowhooks); - checkUnnamed324(o.keystores); + checkUnnamed317(o.deployments); + checkUnnamed318(o.featureFlags); + checkUnnamed319(o.flowhooks); + checkUnnamed320(o.keystores); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.pubsubTopic, unittest.equals('foo')); - checkUnnamed325(o.resourceReferences); - checkUnnamed326(o.resources); + checkUnnamed321(o.resourceReferences); + checkUnnamed322(o.resources); + unittest.expect(o.revisionId, unittest.equals('foo')); unittest.expect(o.sequenceNumber, unittest.equals('foo')); - checkUnnamed327(o.targets); + checkUnnamed323(o.targets); + checkGoogleCloudApigeeV1RuntimeTraceConfig(o.traceConfig); + unittest.expect(o.uid, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1EnvironmentConfig--; } +buildUnnamed324() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed324(core.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 buildCounterGoogleCloudApigeeV1EnvironmentGroup = 0; +buildGoogleCloudApigeeV1EnvironmentGroup() { + var o = new api.GoogleCloudApigeeV1EnvironmentGroup(); + buildCounterGoogleCloudApigeeV1EnvironmentGroup++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroup < 3) { + o.createdAt = "foo"; + o.hostnames = buildUnnamed324(); + o.lastModifiedAt = "foo"; + o.name = "foo"; + } + buildCounterGoogleCloudApigeeV1EnvironmentGroup--; + return o; +} + +checkGoogleCloudApigeeV1EnvironmentGroup( + api.GoogleCloudApigeeV1EnvironmentGroup o) { + buildCounterGoogleCloudApigeeV1EnvironmentGroup++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroup < 3) { + unittest.expect(o.createdAt, unittest.equals('foo')); + checkUnnamed324(o.hostnames); + unittest.expect(o.lastModifiedAt, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1EnvironmentGroup--; +} + +core.int buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment = 0; +buildGoogleCloudApigeeV1EnvironmentGroupAttachment() { + var o = new api.GoogleCloudApigeeV1EnvironmentGroupAttachment(); + buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment < 3) { + o.createdAt = "foo"; + o.environment = "foo"; + o.name = "foo"; + } + buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment--; + return o; +} + +checkGoogleCloudApigeeV1EnvironmentGroupAttachment( + api.GoogleCloudApigeeV1EnvironmentGroupAttachment o) { + buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment < 3) { + unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1EnvironmentGroupAttachment--; +} + +buildUnnamed325() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed326() { + var o = new core.List<api.GoogleCloudApigeeV1RoutingRule>(); + o.add(buildGoogleCloudApigeeV1RoutingRule()); + o.add(buildGoogleCloudApigeeV1RoutingRule()); + return o; +} + +checkUnnamed326(core.List<api.GoogleCloudApigeeV1RoutingRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1RoutingRule(o[0]); + checkGoogleCloudApigeeV1RoutingRule(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig = 0; +buildGoogleCloudApigeeV1EnvironmentGroupConfig() { + var o = new api.GoogleCloudApigeeV1EnvironmentGroupConfig(); + buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig < 3) { + o.hostnames = buildUnnamed325(); + o.name = "foo"; + o.revisionId = "foo"; + o.routingRules = buildUnnamed326(); + o.uid = "foo"; + } + buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig--; + return o; +} + +checkGoogleCloudApigeeV1EnvironmentGroupConfig( + api.GoogleCloudApigeeV1EnvironmentGroupConfig o) { + buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig++; + if (buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig < 3) { + checkUnnamed325(o.hostnames); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + checkUnnamed326(o.routingRules); + unittest.expect(o.uid, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1EnvironmentGroupConfig--; +} + +core.int buildCounterGoogleCloudApigeeV1Export = 0; +buildGoogleCloudApigeeV1Export() { + var o = new api.GoogleCloudApigeeV1Export(); + buildCounterGoogleCloudApigeeV1Export++; + if (buildCounterGoogleCloudApigeeV1Export < 3) { + o.created = "foo"; + o.datastoreName = "foo"; + o.description = "foo"; + o.error = "foo"; + o.executionTime = "foo"; + o.name = "foo"; + o.self = "foo"; + o.state = "foo"; + o.updated = "foo"; + } + buildCounterGoogleCloudApigeeV1Export--; + return o; +} + +checkGoogleCloudApigeeV1Export(api.GoogleCloudApigeeV1Export o) { + buildCounterGoogleCloudApigeeV1Export++; + if (buildCounterGoogleCloudApigeeV1Export < 3) { + unittest.expect(o.created, unittest.equals('foo')); + unittest.expect(o.datastoreName, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.error, unittest.equals('foo')); + unittest.expect(o.executionTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.self, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.updated, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1Export--; +} + +core.int buildCounterGoogleCloudApigeeV1ExportRequest = 0; +buildGoogleCloudApigeeV1ExportRequest() { + var o = new api.GoogleCloudApigeeV1ExportRequest(); + buildCounterGoogleCloudApigeeV1ExportRequest++; + if (buildCounterGoogleCloudApigeeV1ExportRequest < 3) { + o.csvDelimiter = "foo"; + o.datastoreName = "foo"; + o.dateRange = buildGoogleCloudApigeeV1DateRange(); + o.description = "foo"; + o.name = "foo"; + o.outputFormat = "foo"; + } + buildCounterGoogleCloudApigeeV1ExportRequest--; + return o; +} + +checkGoogleCloudApigeeV1ExportRequest(api.GoogleCloudApigeeV1ExportRequest o) { + buildCounterGoogleCloudApigeeV1ExportRequest++; + if (buildCounterGoogleCloudApigeeV1ExportRequest < 3) { + unittest.expect(o.csvDelimiter, unittest.equals('foo')); + unittest.expect(o.datastoreName, unittest.equals('foo')); + checkGoogleCloudApigeeV1DateRange(o.dateRange); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.outputFormat, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ExportRequest--; +} + core.int buildCounterGoogleCloudApigeeV1FlowHook = 0; buildGoogleCloudApigeeV1FlowHook() { var o = new api.GoogleCloudApigeeV1FlowHook(); @@ -2373,6 +2556,214 @@ buildCounterGoogleCloudApigeeV1GetSyncAuthorizationRequest--; } +buildUnnamed327() { + var o = new core.List<api.GoogleCloudApigeeV1EnvironmentGroupConfig>(); + o.add(buildGoogleCloudApigeeV1EnvironmentGroupConfig()); + o.add(buildGoogleCloudApigeeV1EnvironmentGroupConfig()); + return o; +} + +checkUnnamed327(core.List<api.GoogleCloudApigeeV1EnvironmentGroupConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1EnvironmentGroupConfig(o[0]); + checkGoogleCloudApigeeV1EnvironmentGroupConfig(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1IngressConfig = 0; +buildGoogleCloudApigeeV1IngressConfig() { + var o = new api.GoogleCloudApigeeV1IngressConfig(); + buildCounterGoogleCloudApigeeV1IngressConfig++; + if (buildCounterGoogleCloudApigeeV1IngressConfig < 3) { + o.environmentGroups = buildUnnamed327(); + o.name = "foo"; + o.revisionCreateTime = "foo"; + o.revisionId = "foo"; + o.uid = "foo"; + } + buildCounterGoogleCloudApigeeV1IngressConfig--; + return o; +} + +checkGoogleCloudApigeeV1IngressConfig(api.GoogleCloudApigeeV1IngressConfig o) { + buildCounterGoogleCloudApigeeV1IngressConfig++; + if (buildCounterGoogleCloudApigeeV1IngressConfig < 3) { + checkUnnamed327(o.environmentGroups); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.revisionCreateTime, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + unittest.expect(o.uid, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1IngressConfig--; +} + +core.int buildCounterGoogleCloudApigeeV1Instance = 0; +buildGoogleCloudApigeeV1Instance() { + var o = new api.GoogleCloudApigeeV1Instance(); + buildCounterGoogleCloudApigeeV1Instance++; + if (buildCounterGoogleCloudApigeeV1Instance < 3) { + o.createdAt = "foo"; + o.description = "foo"; + o.diskEncryptionKeyName = "foo"; + o.displayName = "foo"; + o.host = "foo"; + o.lastModifiedAt = "foo"; + o.location = "foo"; + o.name = "foo"; + o.port = "foo"; + } + buildCounterGoogleCloudApigeeV1Instance--; + return o; +} + +checkGoogleCloudApigeeV1Instance(api.GoogleCloudApigeeV1Instance o) { + buildCounterGoogleCloudApigeeV1Instance++; + if (buildCounterGoogleCloudApigeeV1Instance < 3) { + unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.diskEncryptionKeyName, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.host, unittest.equals('foo')); + unittest.expect(o.lastModifiedAt, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1Instance--; +} + +core.int buildCounterGoogleCloudApigeeV1InstanceAttachment = 0; +buildGoogleCloudApigeeV1InstanceAttachment() { + var o = new api.GoogleCloudApigeeV1InstanceAttachment(); + buildCounterGoogleCloudApigeeV1InstanceAttachment++; + if (buildCounterGoogleCloudApigeeV1InstanceAttachment < 3) { + o.createdAt = "foo"; + o.environment = "foo"; + o.name = "foo"; + } + buildCounterGoogleCloudApigeeV1InstanceAttachment--; + return o; +} + +checkGoogleCloudApigeeV1InstanceAttachment( + api.GoogleCloudApigeeV1InstanceAttachment o) { + buildCounterGoogleCloudApigeeV1InstanceAttachment++; + if (buildCounterGoogleCloudApigeeV1InstanceAttachment < 3) { + unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1InstanceAttachment--; +} + +buildUnnamed328() { + var o = new core + .List<api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision>(); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision()); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision()); + return o; +} + +checkUnnamed328( + core.List<api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision(o[0]); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision(o[1]); +} + +buildUnnamed329() { + var o = new core + .List<api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute>(); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute()); + o.add(buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute()); + return o; +} + +checkUnnamed329( + core.List<api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute(o[0]); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus = 0; +buildGoogleCloudApigeeV1InstanceDeploymentStatus() { + var o = new api.GoogleCloudApigeeV1InstanceDeploymentStatus(); + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus < 3) { + o.deployedRevisions = buildUnnamed328(); + o.deployedRoutes = buildUnnamed329(); + o.instance = "foo"; + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus--; + return o; +} + +checkGoogleCloudApigeeV1InstanceDeploymentStatus( + api.GoogleCloudApigeeV1InstanceDeploymentStatus o) { + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus < 3) { + checkUnnamed328(o.deployedRevisions); + checkUnnamed329(o.deployedRoutes); + unittest.expect(o.instance, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatus--; +} + +core.int + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision = 0; +buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision() { + var o = new api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision(); + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision < + 3) { + o.percentage = 42; + o.revision = "foo"; + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision--; + return o; +} + +checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision( + api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision o) { + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision < + 3) { + unittest.expect(o.percentage, unittest.equals(42)); + unittest.expect(o.revision, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision--; +} + +core.int buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute = + 0; +buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute() { + var o = new api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute(); + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute < + 3) { + o.basepath = "foo"; + o.envgroup = "foo"; + o.environment = "foo"; + o.percentage = 42; + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute--; + return o; +} + +checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute( + api.GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute o) { + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute++; + if (buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute < + 3) { + unittest.expect(o.basepath, unittest.equals('foo')); + unittest.expect(o.envgroup, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + unittest.expect(o.percentage, unittest.equals(42)); + } + buildCounterGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute--; +} + core.int buildCounterGoogleCloudApigeeV1KeyAliasReference = 0; buildGoogleCloudApigeeV1KeyAliasReference() { var o = new api.GoogleCloudApigeeV1KeyAliasReference(); @@ -2416,14 +2807,14 @@ buildCounterGoogleCloudApigeeV1KeyValueMap--; } -buildUnnamed328() { +buildUnnamed330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed328(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')); @@ -2434,7 +2825,7 @@ var o = new api.GoogleCloudApigeeV1Keystore(); buildCounterGoogleCloudApigeeV1Keystore++; if (buildCounterGoogleCloudApigeeV1Keystore < 3) { - o.aliases = buildUnnamed328(); + o.aliases = buildUnnamed330(); o.name = "foo"; } buildCounterGoogleCloudApigeeV1Keystore--; @@ -2444,20 +2835,20 @@ checkGoogleCloudApigeeV1Keystore(api.GoogleCloudApigeeV1Keystore o) { buildCounterGoogleCloudApigeeV1Keystore++; if (buildCounterGoogleCloudApigeeV1Keystore < 3) { - checkUnnamed328(o.aliases); + checkUnnamed330(o.aliases); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1Keystore--; } -buildUnnamed329() { +buildUnnamed331() { var o = new core.List<api.GoogleCloudApigeeV1AliasRevisionConfig>(); o.add(buildGoogleCloudApigeeV1AliasRevisionConfig()); o.add(buildGoogleCloudApigeeV1AliasRevisionConfig()); return o; } -checkUnnamed329(core.List<api.GoogleCloudApigeeV1AliasRevisionConfig> o) { +checkUnnamed331(core.List<api.GoogleCloudApigeeV1AliasRevisionConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1AliasRevisionConfig(o[0]); checkGoogleCloudApigeeV1AliasRevisionConfig(o[1]); @@ -2468,7 +2859,7 @@ var o = new api.GoogleCloudApigeeV1KeystoreConfig(); buildCounterGoogleCloudApigeeV1KeystoreConfig++; if (buildCounterGoogleCloudApigeeV1KeystoreConfig < 3) { - o.aliases = buildUnnamed329(); + o.aliases = buildUnnamed331(); o.name = "foo"; } buildCounterGoogleCloudApigeeV1KeystoreConfig--; @@ -2479,20 +2870,20 @@ api.GoogleCloudApigeeV1KeystoreConfig o) { buildCounterGoogleCloudApigeeV1KeystoreConfig++; if (buildCounterGoogleCloudApigeeV1KeystoreConfig < 3) { - checkUnnamed329(o.aliases); + checkUnnamed331(o.aliases); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1KeystoreConfig--; } -buildUnnamed330() { +buildUnnamed332() { var o = new core.List<api.GoogleCloudApigeeV1ApiProduct>(); o.add(buildGoogleCloudApigeeV1ApiProduct()); o.add(buildGoogleCloudApigeeV1ApiProduct()); return o; } -checkUnnamed330(core.List<api.GoogleCloudApigeeV1ApiProduct> o) { +checkUnnamed332(core.List<api.GoogleCloudApigeeV1ApiProduct> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ApiProduct(o[0]); checkGoogleCloudApigeeV1ApiProduct(o[1]); @@ -2503,7 +2894,7 @@ var o = new api.GoogleCloudApigeeV1ListApiProductsResponse(); buildCounterGoogleCloudApigeeV1ListApiProductsResponse++; if (buildCounterGoogleCloudApigeeV1ListApiProductsResponse < 3) { - o.apiProduct = buildUnnamed330(); + o.apiProduct = buildUnnamed332(); } buildCounterGoogleCloudApigeeV1ListApiProductsResponse--; return o; @@ -2513,19 +2904,19 @@ api.GoogleCloudApigeeV1ListApiProductsResponse o) { buildCounterGoogleCloudApigeeV1ListApiProductsResponse++; if (buildCounterGoogleCloudApigeeV1ListApiProductsResponse < 3) { - checkUnnamed330(o.apiProduct); + checkUnnamed332(o.apiProduct); } buildCounterGoogleCloudApigeeV1ListApiProductsResponse--; } -buildUnnamed331() { +buildUnnamed333() { var o = new core.List<api.GoogleCloudApigeeV1ApiProxy>(); o.add(buildGoogleCloudApigeeV1ApiProxy()); o.add(buildGoogleCloudApigeeV1ApiProxy()); return o; } -checkUnnamed331(core.List<api.GoogleCloudApigeeV1ApiProxy> o) { +checkUnnamed333(core.List<api.GoogleCloudApigeeV1ApiProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ApiProxy(o[0]); checkGoogleCloudApigeeV1ApiProxy(o[1]); @@ -2536,7 +2927,7 @@ var o = new api.GoogleCloudApigeeV1ListApiProxiesResponse(); buildCounterGoogleCloudApigeeV1ListApiProxiesResponse++; if (buildCounterGoogleCloudApigeeV1ListApiProxiesResponse < 3) { - o.proxies = buildUnnamed331(); + o.proxies = buildUnnamed333(); } buildCounterGoogleCloudApigeeV1ListApiProxiesResponse--; return o; @@ -2546,19 +2937,19 @@ api.GoogleCloudApigeeV1ListApiProxiesResponse o) { buildCounterGoogleCloudApigeeV1ListApiProxiesResponse++; if (buildCounterGoogleCloudApigeeV1ListApiProxiesResponse < 3) { - checkUnnamed331(o.proxies); + checkUnnamed333(o.proxies); } buildCounterGoogleCloudApigeeV1ListApiProxiesResponse--; } -buildUnnamed332() { +buildUnnamed334() { var o = new core.List<api.GoogleCloudApigeeV1App>(); o.add(buildGoogleCloudApigeeV1App()); o.add(buildGoogleCloudApigeeV1App()); return o; } -checkUnnamed332(core.List<api.GoogleCloudApigeeV1App> o) { +checkUnnamed334(core.List<api.GoogleCloudApigeeV1App> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1App(o[0]); checkGoogleCloudApigeeV1App(o[1]); @@ -2569,7 +2960,7 @@ var o = new api.GoogleCloudApigeeV1ListAppsResponse(); buildCounterGoogleCloudApigeeV1ListAppsResponse++; if (buildCounterGoogleCloudApigeeV1ListAppsResponse < 3) { - o.app = buildUnnamed332(); + o.app = buildUnnamed334(); } buildCounterGoogleCloudApigeeV1ListAppsResponse--; return o; @@ -2579,19 +2970,19 @@ api.GoogleCloudApigeeV1ListAppsResponse o) { buildCounterGoogleCloudApigeeV1ListAppsResponse++; if (buildCounterGoogleCloudApigeeV1ListAppsResponse < 3) { - checkUnnamed332(o.app); + checkUnnamed334(o.app); } buildCounterGoogleCloudApigeeV1ListAppsResponse--; } -buildUnnamed333() { +buildUnnamed335() { var o = new core.List<api.GoogleCloudApigeeV1AsyncQuery>(); o.add(buildGoogleCloudApigeeV1AsyncQuery()); o.add(buildGoogleCloudApigeeV1AsyncQuery()); return o; } -checkUnnamed333(core.List<api.GoogleCloudApigeeV1AsyncQuery> o) { +checkUnnamed335(core.List<api.GoogleCloudApigeeV1AsyncQuery> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1AsyncQuery(o[0]); checkGoogleCloudApigeeV1AsyncQuery(o[1]); @@ -2602,7 +2993,7 @@ var o = new api.GoogleCloudApigeeV1ListAsyncQueriesResponse(); buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse++; if (buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse < 3) { - o.queries = buildUnnamed333(); + o.queries = buildUnnamed335(); } buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse--; return o; @@ -2612,77 +3003,11 @@ api.GoogleCloudApigeeV1ListAsyncQueriesResponse o) { buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse++; if (buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse < 3) { - checkUnnamed333(o.queries); + checkUnnamed335(o.queries); } buildCounterGoogleCloudApigeeV1ListAsyncQueriesResponse--; } -buildUnnamed334() { - var o = new core.List<api.GoogleCloudApigeeV1Company>(); - o.add(buildGoogleCloudApigeeV1Company()); - o.add(buildGoogleCloudApigeeV1Company()); - return o; -} - -checkUnnamed334(core.List<api.GoogleCloudApigeeV1Company> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1Company(o[0]); - checkGoogleCloudApigeeV1Company(o[1]); -} - -core.int buildCounterGoogleCloudApigeeV1ListCompaniesResponse = 0; -buildGoogleCloudApigeeV1ListCompaniesResponse() { - var o = new api.GoogleCloudApigeeV1ListCompaniesResponse(); - buildCounterGoogleCloudApigeeV1ListCompaniesResponse++; - if (buildCounterGoogleCloudApigeeV1ListCompaniesResponse < 3) { - o.company = buildUnnamed334(); - } - buildCounterGoogleCloudApigeeV1ListCompaniesResponse--; - return o; -} - -checkGoogleCloudApigeeV1ListCompaniesResponse( - api.GoogleCloudApigeeV1ListCompaniesResponse o) { - buildCounterGoogleCloudApigeeV1ListCompaniesResponse++; - if (buildCounterGoogleCloudApigeeV1ListCompaniesResponse < 3) { - checkUnnamed334(o.company); - } - buildCounterGoogleCloudApigeeV1ListCompaniesResponse--; -} - -buildUnnamed335() { - var o = new core.List<api.GoogleCloudApigeeV1CompanyApp>(); - o.add(buildGoogleCloudApigeeV1CompanyApp()); - o.add(buildGoogleCloudApigeeV1CompanyApp()); - return o; -} - -checkUnnamed335(core.List<api.GoogleCloudApigeeV1CompanyApp> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1CompanyApp(o[0]); - checkGoogleCloudApigeeV1CompanyApp(o[1]); -} - -core.int buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse = 0; -buildGoogleCloudApigeeV1ListCompanyAppsResponse() { - var o = new api.GoogleCloudApigeeV1ListCompanyAppsResponse(); - buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse++; - if (buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse < 3) { - o.app = buildUnnamed335(); - } - buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse--; - return o; -} - -checkGoogleCloudApigeeV1ListCompanyAppsResponse( - api.GoogleCloudApigeeV1ListCompanyAppsResponse o) { - buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse++; - if (buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse < 3) { - checkUnnamed335(o.app); - } - buildCounterGoogleCloudApigeeV1ListCompanyAppsResponse--; -} - buildUnnamed336() { var o = new core.List<api.GoogleCloudApigeeV1CustomReport>(); o.add(buildGoogleCloudApigeeV1CustomReport()); @@ -2717,13 +3042,46 @@ } buildUnnamed337() { + var o = new core.List<api.GoogleCloudApigeeV1Datastore>(); + o.add(buildGoogleCloudApigeeV1Datastore()); + o.add(buildGoogleCloudApigeeV1Datastore()); + return o; +} + +checkUnnamed337(core.List<api.GoogleCloudApigeeV1Datastore> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1Datastore(o[0]); + checkGoogleCloudApigeeV1Datastore(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListDatastoresResponse = 0; +buildGoogleCloudApigeeV1ListDatastoresResponse() { + var o = new api.GoogleCloudApigeeV1ListDatastoresResponse(); + buildCounterGoogleCloudApigeeV1ListDatastoresResponse++; + if (buildCounterGoogleCloudApigeeV1ListDatastoresResponse < 3) { + o.datastores = buildUnnamed337(); + } + buildCounterGoogleCloudApigeeV1ListDatastoresResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListDatastoresResponse( + api.GoogleCloudApigeeV1ListDatastoresResponse o) { + buildCounterGoogleCloudApigeeV1ListDatastoresResponse++; + if (buildCounterGoogleCloudApigeeV1ListDatastoresResponse < 3) { + checkUnnamed337(o.datastores); + } + buildCounterGoogleCloudApigeeV1ListDatastoresResponse--; +} + +buildUnnamed338() { var o = new core.List<api.GoogleCloudApigeeV1Session>(); o.add(buildGoogleCloudApigeeV1Session()); o.add(buildGoogleCloudApigeeV1Session()); return o; } -checkUnnamed337(core.List<api.GoogleCloudApigeeV1Session> o) { +checkUnnamed338(core.List<api.GoogleCloudApigeeV1Session> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Session(o[0]); checkGoogleCloudApigeeV1Session(o[1]); @@ -2734,7 +3092,8 @@ var o = new api.GoogleCloudApigeeV1ListDebugSessionsResponse(); buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse++; if (buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse < 3) { - o.sessions = buildUnnamed337(); + o.nextPageToken = "foo"; + o.sessions = buildUnnamed338(); } buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse--; return o; @@ -2744,19 +3103,20 @@ api.GoogleCloudApigeeV1ListDebugSessionsResponse o) { buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse++; if (buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse < 3) { - checkUnnamed337(o.sessions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed338(o.sessions); } buildCounterGoogleCloudApigeeV1ListDebugSessionsResponse--; } -buildUnnamed338() { +buildUnnamed339() { var o = new core.List<api.GoogleCloudApigeeV1Deployment>(); o.add(buildGoogleCloudApigeeV1Deployment()); o.add(buildGoogleCloudApigeeV1Deployment()); return o; } -checkUnnamed338(core.List<api.GoogleCloudApigeeV1Deployment> o) { +checkUnnamed339(core.List<api.GoogleCloudApigeeV1Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Deployment(o[0]); checkGoogleCloudApigeeV1Deployment(o[1]); @@ -2767,7 +3127,7 @@ var o = new api.GoogleCloudApigeeV1ListDeploymentsResponse(); buildCounterGoogleCloudApigeeV1ListDeploymentsResponse++; if (buildCounterGoogleCloudApigeeV1ListDeploymentsResponse < 3) { - o.deployments = buildUnnamed338(); + o.deployments = buildUnnamed339(); } buildCounterGoogleCloudApigeeV1ListDeploymentsResponse--; return o; @@ -2777,19 +3137,19 @@ api.GoogleCloudApigeeV1ListDeploymentsResponse o) { buildCounterGoogleCloudApigeeV1ListDeploymentsResponse++; if (buildCounterGoogleCloudApigeeV1ListDeploymentsResponse < 3) { - checkUnnamed338(o.deployments); + checkUnnamed339(o.deployments); } buildCounterGoogleCloudApigeeV1ListDeploymentsResponse--; } -buildUnnamed339() { +buildUnnamed340() { var o = new core.List<api.GoogleCloudApigeeV1DeveloperApp>(); o.add(buildGoogleCloudApigeeV1DeveloperApp()); o.add(buildGoogleCloudApigeeV1DeveloperApp()); return o; } -checkUnnamed339(core.List<api.GoogleCloudApigeeV1DeveloperApp> o) { +checkUnnamed340(core.List<api.GoogleCloudApigeeV1DeveloperApp> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1DeveloperApp(o[0]); checkGoogleCloudApigeeV1DeveloperApp(o[1]); @@ -2800,7 +3160,7 @@ var o = new api.GoogleCloudApigeeV1ListDeveloperAppsResponse(); buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse++; if (buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse < 3) { - o.app = buildUnnamed339(); + o.app = buildUnnamed340(); } buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse--; return o; @@ -2810,19 +3170,93 @@ api.GoogleCloudApigeeV1ListDeveloperAppsResponse o) { buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse++; if (buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse < 3) { - checkUnnamed339(o.app); + checkUnnamed340(o.app); } buildCounterGoogleCloudApigeeV1ListDeveloperAppsResponse--; } -buildUnnamed340() { +buildUnnamed341() { + var o = new core.List<api.GoogleCloudApigeeV1EnvironmentGroupAttachment>(); + o.add(buildGoogleCloudApigeeV1EnvironmentGroupAttachment()); + o.add(buildGoogleCloudApigeeV1EnvironmentGroupAttachment()); + return o; +} + +checkUnnamed341( + core.List<api.GoogleCloudApigeeV1EnvironmentGroupAttachment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1EnvironmentGroupAttachment(o[0]); + checkGoogleCloudApigeeV1EnvironmentGroupAttachment(o[1]); +} + +core.int + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse = 0; +buildGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse() { + var o = new api.GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse(); + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse++; + if (buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse < + 3) { + o.environmentGroupAttachments = buildUnnamed341(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse( + api.GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse o) { + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse++; + if (buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse < + 3) { + checkUnnamed341(o.environmentGroupAttachments); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse--; +} + +buildUnnamed342() { + var o = new core.List<api.GoogleCloudApigeeV1EnvironmentGroup>(); + o.add(buildGoogleCloudApigeeV1EnvironmentGroup()); + o.add(buildGoogleCloudApigeeV1EnvironmentGroup()); + return o; +} + +checkUnnamed342(core.List<api.GoogleCloudApigeeV1EnvironmentGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1EnvironmentGroup(o[0]); + checkGoogleCloudApigeeV1EnvironmentGroup(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse = 0; +buildGoogleCloudApigeeV1ListEnvironmentGroupsResponse() { + var o = new api.GoogleCloudApigeeV1ListEnvironmentGroupsResponse(); + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse++; + if (buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse < 3) { + o.environmentGroups = buildUnnamed342(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListEnvironmentGroupsResponse( + api.GoogleCloudApigeeV1ListEnvironmentGroupsResponse o) { + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse++; + if (buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse < 3) { + checkUnnamed342(o.environmentGroups); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ListEnvironmentGroupsResponse--; +} + +buildUnnamed343() { var o = new core.List<api.GoogleCloudApigeeV1ResourceFile>(); o.add(buildGoogleCloudApigeeV1ResourceFile()); o.add(buildGoogleCloudApigeeV1ResourceFile()); return o; } -checkUnnamed340(core.List<api.GoogleCloudApigeeV1ResourceFile> o) { +checkUnnamed343(core.List<api.GoogleCloudApigeeV1ResourceFile> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ResourceFile(o[0]); checkGoogleCloudApigeeV1ResourceFile(o[1]); @@ -2833,7 +3267,7 @@ var o = new api.GoogleCloudApigeeV1ListEnvironmentResourcesResponse(); buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse++; if (buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse < 3) { - o.resourceFile = buildUnnamed340(); + o.resourceFile = buildUnnamed343(); } buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse--; return o; @@ -2843,19 +3277,52 @@ api.GoogleCloudApigeeV1ListEnvironmentResourcesResponse o) { buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse++; if (buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse < 3) { - checkUnnamed340(o.resourceFile); + checkUnnamed343(o.resourceFile); } buildCounterGoogleCloudApigeeV1ListEnvironmentResourcesResponse--; } -buildUnnamed341() { +buildUnnamed344() { + var o = new core.List<api.GoogleCloudApigeeV1Export>(); + o.add(buildGoogleCloudApigeeV1Export()); + o.add(buildGoogleCloudApigeeV1Export()); + return o; +} + +checkUnnamed344(core.List<api.GoogleCloudApigeeV1Export> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1Export(o[0]); + checkGoogleCloudApigeeV1Export(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListExportsResponse = 0; +buildGoogleCloudApigeeV1ListExportsResponse() { + var o = new api.GoogleCloudApigeeV1ListExportsResponse(); + buildCounterGoogleCloudApigeeV1ListExportsResponse++; + if (buildCounterGoogleCloudApigeeV1ListExportsResponse < 3) { + o.exports = buildUnnamed344(); + } + buildCounterGoogleCloudApigeeV1ListExportsResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListExportsResponse( + api.GoogleCloudApigeeV1ListExportsResponse o) { + buildCounterGoogleCloudApigeeV1ListExportsResponse++; + if (buildCounterGoogleCloudApigeeV1ListExportsResponse < 3) { + checkUnnamed344(o.exports); + } + buildCounterGoogleCloudApigeeV1ListExportsResponse--; +} + +buildUnnamed345() { var o = new core.List<api.GoogleCloudApigeeV1ServiceIssuersMapping>(); o.add(buildGoogleCloudApigeeV1ServiceIssuersMapping()); o.add(buildGoogleCloudApigeeV1ServiceIssuersMapping()); return o; } -checkUnnamed341(core.List<api.GoogleCloudApigeeV1ServiceIssuersMapping> o) { +checkUnnamed345(core.List<api.GoogleCloudApigeeV1ServiceIssuersMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ServiceIssuersMapping(o[0]); checkGoogleCloudApigeeV1ServiceIssuersMapping(o[1]); @@ -2866,7 +3333,7 @@ var o = new api.GoogleCloudApigeeV1ListHybridIssuersResponse(); buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse++; if (buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse < 3) { - o.issuers = buildUnnamed341(); + o.issuers = buildUnnamed345(); } buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse--; return o; @@ -2876,19 +3343,89 @@ api.GoogleCloudApigeeV1ListHybridIssuersResponse o) { buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse++; if (buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse < 3) { - checkUnnamed341(o.issuers); + checkUnnamed345(o.issuers); } buildCounterGoogleCloudApigeeV1ListHybridIssuersResponse--; } -buildUnnamed342() { +buildUnnamed346() { + var o = new core.List<api.GoogleCloudApigeeV1InstanceAttachment>(); + o.add(buildGoogleCloudApigeeV1InstanceAttachment()); + o.add(buildGoogleCloudApigeeV1InstanceAttachment()); + return o; +} + +checkUnnamed346(core.List<api.GoogleCloudApigeeV1InstanceAttachment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1InstanceAttachment(o[0]); + checkGoogleCloudApigeeV1InstanceAttachment(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse = 0; +buildGoogleCloudApigeeV1ListInstanceAttachmentsResponse() { + var o = new api.GoogleCloudApigeeV1ListInstanceAttachmentsResponse(); + buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse++; + if (buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse < 3) { + o.attachments = buildUnnamed346(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListInstanceAttachmentsResponse( + api.GoogleCloudApigeeV1ListInstanceAttachmentsResponse o) { + buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse++; + if (buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse < 3) { + checkUnnamed346(o.attachments); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ListInstanceAttachmentsResponse--; +} + +buildUnnamed347() { + var o = new core.List<api.GoogleCloudApigeeV1Instance>(); + o.add(buildGoogleCloudApigeeV1Instance()); + o.add(buildGoogleCloudApigeeV1Instance()); + return o; +} + +checkUnnamed347(core.List<api.GoogleCloudApigeeV1Instance> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1Instance(o[0]); + checkGoogleCloudApigeeV1Instance(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ListInstancesResponse = 0; +buildGoogleCloudApigeeV1ListInstancesResponse() { + var o = new api.GoogleCloudApigeeV1ListInstancesResponse(); + buildCounterGoogleCloudApigeeV1ListInstancesResponse++; + if (buildCounterGoogleCloudApigeeV1ListInstancesResponse < 3) { + o.instances = buildUnnamed347(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudApigeeV1ListInstancesResponse--; + return o; +} + +checkGoogleCloudApigeeV1ListInstancesResponse( + api.GoogleCloudApigeeV1ListInstancesResponse o) { + buildCounterGoogleCloudApigeeV1ListInstancesResponse++; + if (buildCounterGoogleCloudApigeeV1ListInstancesResponse < 3) { + checkUnnamed347(o.instances); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ListInstancesResponse--; +} + +buildUnnamed348() { var o = new core.List<api.GoogleCloudApigeeV1Developer>(); o.add(buildGoogleCloudApigeeV1Developer()); o.add(buildGoogleCloudApigeeV1Developer()); return o; } -checkUnnamed342(core.List<api.GoogleCloudApigeeV1Developer> o) { +checkUnnamed348(core.List<api.GoogleCloudApigeeV1Developer> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Developer(o[0]); checkGoogleCloudApigeeV1Developer(o[1]); @@ -2899,7 +3436,7 @@ var o = new api.GoogleCloudApigeeV1ListOfDevelopersResponse(); buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse++; if (buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse < 3) { - o.developer = buildUnnamed342(); + o.developer = buildUnnamed348(); } buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse--; return o; @@ -2909,19 +3446,19 @@ api.GoogleCloudApigeeV1ListOfDevelopersResponse o) { buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse++; if (buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse < 3) { - checkUnnamed342(o.developer); + checkUnnamed348(o.developer); } buildCounterGoogleCloudApigeeV1ListOfDevelopersResponse--; } -buildUnnamed343() { +buildUnnamed349() { var o = new core.List<api.GoogleCloudApigeeV1OrganizationProjectMapping>(); o.add(buildGoogleCloudApigeeV1OrganizationProjectMapping()); o.add(buildGoogleCloudApigeeV1OrganizationProjectMapping()); return o; } -checkUnnamed343( +checkUnnamed349( core.List<api.GoogleCloudApigeeV1OrganizationProjectMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1OrganizationProjectMapping(o[0]); @@ -2933,7 +3470,7 @@ var o = new api.GoogleCloudApigeeV1ListOrganizationsResponse(); buildCounterGoogleCloudApigeeV1ListOrganizationsResponse++; if (buildCounterGoogleCloudApigeeV1ListOrganizationsResponse < 3) { - o.organizations = buildUnnamed343(); + o.organizations = buildUnnamed349(); } buildCounterGoogleCloudApigeeV1ListOrganizationsResponse--; return o; @@ -2943,19 +3480,19 @@ api.GoogleCloudApigeeV1ListOrganizationsResponse o) { buildCounterGoogleCloudApigeeV1ListOrganizationsResponse++; if (buildCounterGoogleCloudApigeeV1ListOrganizationsResponse < 3) { - checkUnnamed343(o.organizations); + checkUnnamed349(o.organizations); } buildCounterGoogleCloudApigeeV1ListOrganizationsResponse--; } -buildUnnamed344() { +buildUnnamed350() { var o = new core.List<api.GoogleCloudApigeeV1SharedFlow>(); o.add(buildGoogleCloudApigeeV1SharedFlow()); o.add(buildGoogleCloudApigeeV1SharedFlow()); return o; } -checkUnnamed344(core.List<api.GoogleCloudApigeeV1SharedFlow> o) { +checkUnnamed350(core.List<api.GoogleCloudApigeeV1SharedFlow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SharedFlow(o[0]); checkGoogleCloudApigeeV1SharedFlow(o[1]); @@ -2966,7 +3503,7 @@ var o = new api.GoogleCloudApigeeV1ListSharedFlowsResponse(); buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse++; if (buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse < 3) { - o.sharedFlows = buildUnnamed344(); + o.sharedFlows = buildUnnamed350(); } buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse--; return o; @@ -2976,32 +3513,32 @@ api.GoogleCloudApigeeV1ListSharedFlowsResponse o) { buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse++; if (buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse < 3) { - checkUnnamed344(o.sharedFlows); + checkUnnamed350(o.sharedFlows); } buildCounterGoogleCloudApigeeV1ListSharedFlowsResponse--; } -buildUnnamed345() { +buildUnnamed351() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed345(core.List<core.String> o) { +checkUnnamed351(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed346() { +buildUnnamed352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed346(core.List<core.String> o) { +checkUnnamed352(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3012,8 +3549,8 @@ var o = new api.GoogleCloudApigeeV1Metadata(); buildCounterGoogleCloudApigeeV1Metadata++; if (buildCounterGoogleCloudApigeeV1Metadata < 3) { - o.errors = buildUnnamed345(); - o.notices = buildUnnamed346(); + o.errors = buildUnnamed351(); + o.notices = buildUnnamed352(); } buildCounterGoogleCloudApigeeV1Metadata--; return o; @@ -3022,13 +3559,13 @@ checkGoogleCloudApigeeV1Metadata(api.GoogleCloudApigeeV1Metadata o) { buildCounterGoogleCloudApigeeV1Metadata++; if (buildCounterGoogleCloudApigeeV1Metadata < 3) { - checkUnnamed345(o.errors); - checkUnnamed346(o.notices); + checkUnnamed351(o.errors); + checkUnnamed352(o.notices); } buildCounterGoogleCloudApigeeV1Metadata--; } -buildUnnamed347() { +buildUnnamed353() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -3043,18 +3580,18 @@ return o; } -checkUnnamed347(core.List<core.Object> o) { +checkUnnamed353(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted9 = (o[0]) as core.Map; - unittest.expect(casted9, unittest.hasLength(3)); - unittest.expect(casted9["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted9["bool"], unittest.equals(true)); - unittest.expect(casted9["string"], unittest.equals('foo')); - var casted10 = (o[1]) as core.Map; - unittest.expect(casted10, unittest.hasLength(3)); - unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted10["bool"], unittest.equals(true)); - unittest.expect(casted10["string"], unittest.equals('foo')); + 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')); } core.int buildCounterGoogleCloudApigeeV1Metric = 0; @@ -3063,7 +3600,7 @@ buildCounterGoogleCloudApigeeV1Metric++; if (buildCounterGoogleCloudApigeeV1Metric < 3) { o.name = "foo"; - o.values = buildUnnamed347(); + o.values = buildUnnamed353(); } buildCounterGoogleCloudApigeeV1Metric--; return o; @@ -3073,11 +3610,132 @@ buildCounterGoogleCloudApigeeV1Metric++; if (buildCounterGoogleCloudApigeeV1Metric < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed347(o.values); + checkUnnamed353(o.values); } buildCounterGoogleCloudApigeeV1Metric--; } +buildUnnamed354() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed354(core.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 buildCounterGoogleCloudApigeeV1Operation = 0; +buildGoogleCloudApigeeV1Operation() { + var o = new api.GoogleCloudApigeeV1Operation(); + buildCounterGoogleCloudApigeeV1Operation++; + if (buildCounterGoogleCloudApigeeV1Operation < 3) { + o.methods = buildUnnamed354(); + o.resource = "foo"; + } + buildCounterGoogleCloudApigeeV1Operation--; + return o; +} + +checkGoogleCloudApigeeV1Operation(api.GoogleCloudApigeeV1Operation o) { + buildCounterGoogleCloudApigeeV1Operation++; + if (buildCounterGoogleCloudApigeeV1Operation < 3) { + checkUnnamed354(o.methods); + unittest.expect(o.resource, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1Operation--; +} + +buildUnnamed355() { + var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); + o.add(buildGoogleCloudApigeeV1Attribute()); + o.add(buildGoogleCloudApigeeV1Attribute()); + return o; +} + +checkUnnamed355(core.List<api.GoogleCloudApigeeV1Attribute> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1Attribute(o[0]); + checkGoogleCloudApigeeV1Attribute(o[1]); +} + +buildUnnamed356() { + var o = new core.List<api.GoogleCloudApigeeV1Operation>(); + o.add(buildGoogleCloudApigeeV1Operation()); + o.add(buildGoogleCloudApigeeV1Operation()); + return o; +} + +checkUnnamed356(core.List<api.GoogleCloudApigeeV1Operation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1Operation(o[0]); + checkGoogleCloudApigeeV1Operation(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1OperationConfig = 0; +buildGoogleCloudApigeeV1OperationConfig() { + var o = new api.GoogleCloudApigeeV1OperationConfig(); + buildCounterGoogleCloudApigeeV1OperationConfig++; + if (buildCounterGoogleCloudApigeeV1OperationConfig < 3) { + o.apiSource = "foo"; + o.attributes = buildUnnamed355(); + o.operations = buildUnnamed356(); + o.quota = buildGoogleCloudApigeeV1Quota(); + } + buildCounterGoogleCloudApigeeV1OperationConfig--; + return o; +} + +checkGoogleCloudApigeeV1OperationConfig( + api.GoogleCloudApigeeV1OperationConfig o) { + buildCounterGoogleCloudApigeeV1OperationConfig++; + if (buildCounterGoogleCloudApigeeV1OperationConfig < 3) { + unittest.expect(o.apiSource, unittest.equals('foo')); + checkUnnamed355(o.attributes); + checkUnnamed356(o.operations); + checkGoogleCloudApigeeV1Quota(o.quota); + } + buildCounterGoogleCloudApigeeV1OperationConfig--; +} + +buildUnnamed357() { + var o = new core.List<api.GoogleCloudApigeeV1OperationConfig>(); + o.add(buildGoogleCloudApigeeV1OperationConfig()); + o.add(buildGoogleCloudApigeeV1OperationConfig()); + return o; +} + +checkUnnamed357(core.List<api.GoogleCloudApigeeV1OperationConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1OperationConfig(o[0]); + checkGoogleCloudApigeeV1OperationConfig(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1OperationGroup = 0; +buildGoogleCloudApigeeV1OperationGroup() { + var o = new api.GoogleCloudApigeeV1OperationGroup(); + buildCounterGoogleCloudApigeeV1OperationGroup++; + if (buildCounterGoogleCloudApigeeV1OperationGroup < 3) { + o.operationConfigType = "foo"; + o.operationConfigs = buildUnnamed357(); + } + buildCounterGoogleCloudApigeeV1OperationGroup--; + return o; +} + +checkGoogleCloudApigeeV1OperationGroup( + api.GoogleCloudApigeeV1OperationGroup o) { + buildCounterGoogleCloudApigeeV1OperationGroup++; + if (buildCounterGoogleCloudApigeeV1OperationGroup < 3) { + unittest.expect(o.operationConfigType, unittest.equals('foo')); + checkUnnamed357(o.operationConfigs); + } + buildCounterGoogleCloudApigeeV1OperationGroup--; +} + core.int buildCounterGoogleCloudApigeeV1OperationMetadata = 0; buildGoogleCloudApigeeV1OperationMetadata() { var o = new api.GoogleCloudApigeeV1OperationMetadata(); @@ -3122,7 +3780,7 @@ buildCounterGoogleCloudApigeeV1OptimizedStats--; } -buildUnnamed348() { +buildUnnamed358() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -3137,18 +3795,18 @@ return o; } -checkUnnamed348(core.List<core.Object> o) { +checkUnnamed358(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted11 = (o[0]) as core.Map; - unittest.expect(casted11, unittest.hasLength(3)); - unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted11["bool"], unittest.equals(true)); - unittest.expect(casted11["string"], unittest.equals('foo')); - var casted12 = (o[1]) as core.Map; - unittest.expect(casted12, unittest.hasLength(3)); - unittest.expect(casted12["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted12["bool"], unittest.equals(true)); - unittest.expect(casted12["string"], unittest.equals('foo')); + 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')); } core.int buildCounterGoogleCloudApigeeV1OptimizedStatsNode = 0; @@ -3156,7 +3814,7 @@ var o = new api.GoogleCloudApigeeV1OptimizedStatsNode(); buildCounterGoogleCloudApigeeV1OptimizedStatsNode++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsNode < 3) { - o.data = buildUnnamed348(); + o.data = buildUnnamed358(); } buildCounterGoogleCloudApigeeV1OptimizedStatsNode--; return o; @@ -3166,19 +3824,19 @@ api.GoogleCloudApigeeV1OptimizedStatsNode o) { buildCounterGoogleCloudApigeeV1OptimizedStatsNode++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsNode < 3) { - checkUnnamed348(o.data); + checkUnnamed358(o.data); } buildCounterGoogleCloudApigeeV1OptimizedStatsNode--; } -buildUnnamed349() { +buildUnnamed359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed349(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')); @@ -3189,7 +3847,7 @@ var o = new api.GoogleCloudApigeeV1OptimizedStatsResponse(); buildCounterGoogleCloudApigeeV1OptimizedStatsResponse++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsResponse < 3) { - o.TimeUnit = buildUnnamed349(); + o.TimeUnit = buildUnnamed359(); o.metaData = buildGoogleCloudApigeeV1Metadata(); o.resultTruncated = true; o.stats = buildGoogleCloudApigeeV1OptimizedStatsNode(); @@ -3202,7 +3860,7 @@ api.GoogleCloudApigeeV1OptimizedStatsResponse o) { buildCounterGoogleCloudApigeeV1OptimizedStatsResponse++; if (buildCounterGoogleCloudApigeeV1OptimizedStatsResponse < 3) { - checkUnnamed349(o.TimeUnit); + checkUnnamed359(o.TimeUnit); checkGoogleCloudApigeeV1Metadata(o.metaData); unittest.expect(o.resultTruncated, unittest.isTrue); checkGoogleCloudApigeeV1OptimizedStatsNode(o.stats); @@ -3210,27 +3868,27 @@ buildCounterGoogleCloudApigeeV1OptimizedStatsResponse--; } -buildUnnamed350() { +buildUnnamed360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed350(core.List<core.String> 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')); } -buildUnnamed351() { +buildUnnamed361() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed351(core.List<core.String> 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')); @@ -3242,14 +3900,17 @@ buildCounterGoogleCloudApigeeV1Organization++; if (buildCounterGoogleCloudApigeeV1Organization < 3) { o.analyticsRegion = "foo"; - o.attributes = buildUnnamed350(); + o.attributes = buildUnnamed360(); + o.authorizedNetwork = "foo"; + o.caCertificate = "foo"; o.createdAt = "foo"; o.customerName = "foo"; o.description = "foo"; o.displayName = "foo"; - o.environments = buildUnnamed351(); + o.environments = buildUnnamed361(); o.lastModifiedAt = "foo"; o.name = "foo"; + o.projectId = "foo"; o.properties = buildGoogleCloudApigeeV1Properties(); o.runtimeType_ = "foo"; o.subscriptionType = "foo"; @@ -3263,14 +3924,17 @@ buildCounterGoogleCloudApigeeV1Organization++; if (buildCounterGoogleCloudApigeeV1Organization < 3) { unittest.expect(o.analyticsRegion, unittest.equals('foo')); - checkUnnamed350(o.attributes); + checkUnnamed360(o.attributes); + unittest.expect(o.authorizedNetwork, unittest.equals('foo')); + unittest.expect(o.caCertificate, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.customerName, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed351(o.environments); + checkUnnamed361(o.environments); unittest.expect(o.lastModifiedAt, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); checkGoogleCloudApigeeV1Properties(o.properties); unittest.expect(o.runtimeType_, unittest.equals('foo')); unittest.expect(o.subscriptionType, unittest.equals('foo')); @@ -3279,14 +3943,14 @@ buildCounterGoogleCloudApigeeV1Organization--; } -buildUnnamed352() { +buildUnnamed362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed352(core.List<core.String> 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')); @@ -3298,7 +3962,7 @@ buildCounterGoogleCloudApigeeV1OrganizationProjectMapping++; if (buildCounterGoogleCloudApigeeV1OrganizationProjectMapping < 3) { o.organization = "foo"; - o.projectIds = buildUnnamed352(); + o.projectIds = buildUnnamed362(); } buildCounterGoogleCloudApigeeV1OrganizationProjectMapping--; return o; @@ -3309,7 +3973,7 @@ buildCounterGoogleCloudApigeeV1OrganizationProjectMapping++; if (buildCounterGoogleCloudApigeeV1OrganizationProjectMapping < 3) { unittest.expect(o.organization, unittest.equals('foo')); - checkUnnamed352(o.projectIds); + checkUnnamed362(o.projectIds); } buildCounterGoogleCloudApigeeV1OrganizationProjectMapping--; } @@ -3349,14 +4013,14 @@ buildCounterGoogleCloudApigeeV1PodStatus--; } -buildUnnamed353() { +buildUnnamed363() { var o = new core.List<api.GoogleCloudApigeeV1Result>(); o.add(buildGoogleCloudApigeeV1Result()); o.add(buildGoogleCloudApigeeV1Result()); return o; } -checkUnnamed353(core.List<api.GoogleCloudApigeeV1Result> o) { +checkUnnamed363(core.List<api.GoogleCloudApigeeV1Result> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Result(o[0]); checkGoogleCloudApigeeV1Result(o[1]); @@ -3368,7 +4032,7 @@ buildCounterGoogleCloudApigeeV1Point++; if (buildCounterGoogleCloudApigeeV1Point < 3) { o.id = "foo"; - o.results = buildUnnamed353(); + o.results = buildUnnamed363(); } buildCounterGoogleCloudApigeeV1Point--; return o; @@ -3378,19 +4042,19 @@ buildCounterGoogleCloudApigeeV1Point++; if (buildCounterGoogleCloudApigeeV1Point < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed353(o.results); + checkUnnamed363(o.results); } buildCounterGoogleCloudApigeeV1Point--; } -buildUnnamed354() { +buildUnnamed364() { var o = new core.List<api.GoogleCloudApigeeV1Property>(); o.add(buildGoogleCloudApigeeV1Property()); o.add(buildGoogleCloudApigeeV1Property()); return o; } -checkUnnamed354(core.List<api.GoogleCloudApigeeV1Property> o) { +checkUnnamed364(core.List<api.GoogleCloudApigeeV1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Property(o[0]); checkGoogleCloudApigeeV1Property(o[1]); @@ -3401,7 +4065,7 @@ var o = new api.GoogleCloudApigeeV1Properties(); buildCounterGoogleCloudApigeeV1Properties++; if (buildCounterGoogleCloudApigeeV1Properties < 3) { - o.property = buildUnnamed354(); + o.property = buildUnnamed364(); } buildCounterGoogleCloudApigeeV1Properties--; return o; @@ -3410,7 +4074,7 @@ checkGoogleCloudApigeeV1Properties(api.GoogleCloudApigeeV1Properties o) { buildCounterGoogleCloudApigeeV1Properties++; if (buildCounterGoogleCloudApigeeV1Properties < 3) { - checkUnnamed354(o.property); + checkUnnamed364(o.property); } buildCounterGoogleCloudApigeeV1Properties--; } @@ -3436,27 +4100,27 @@ buildCounterGoogleCloudApigeeV1Property--; } -buildUnnamed355() { +buildUnnamed365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed355(core.List<core.String> 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')); } -buildUnnamed356() { +buildUnnamed366() { var o = new core.List<api.GoogleCloudApigeeV1QueryMetric>(); o.add(buildGoogleCloudApigeeV1QueryMetric()); o.add(buildGoogleCloudApigeeV1QueryMetric()); return o; } -checkUnnamed356(core.List<api.GoogleCloudApigeeV1QueryMetric> o) { +checkUnnamed366(core.List<api.GoogleCloudApigeeV1QueryMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1QueryMetric(o[0]); checkGoogleCloudApigeeV1QueryMetric(o[1]); @@ -3468,11 +4132,11 @@ buildCounterGoogleCloudApigeeV1Query++; if (buildCounterGoogleCloudApigeeV1Query < 3) { o.csvDelimiter = "foo"; - o.dimensions = buildUnnamed355(); + o.dimensions = buildUnnamed365(); o.filter = "foo"; o.groupByTimeUnit = "foo"; o.limit = 42; - o.metrics = buildUnnamed356(); + o.metrics = buildUnnamed366(); o.name = "foo"; o.outputFormat = "foo"; o.reportDefinitionId = "foo"; @@ -3490,44 +4154,44 @@ buildCounterGoogleCloudApigeeV1Query++; if (buildCounterGoogleCloudApigeeV1Query < 3) { unittest.expect(o.csvDelimiter, unittest.equals('foo')); - checkUnnamed355(o.dimensions); + checkUnnamed365(o.dimensions); unittest.expect(o.filter, unittest.equals('foo')); unittest.expect(o.groupByTimeUnit, unittest.equals('foo')); unittest.expect(o.limit, unittest.equals(42)); - checkUnnamed356(o.metrics); + checkUnnamed366(o.metrics); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.outputFormat, unittest.equals('foo')); unittest.expect(o.reportDefinitionId, unittest.equals('foo')); - var casted13 = (o.timeRange) 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 casted9 = (o.timeRange) 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')); } buildCounterGoogleCloudApigeeV1Query--; } -buildUnnamed357() { +buildUnnamed367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed357(core.List<core.String> 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')); } -buildUnnamed358() { +buildUnnamed368() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed358(core.List<core.String> 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')); @@ -3538,9 +4202,9 @@ var o = new api.GoogleCloudApigeeV1QueryMetadata(); buildCounterGoogleCloudApigeeV1QueryMetadata++; if (buildCounterGoogleCloudApigeeV1QueryMetadata < 3) { - o.dimensions = buildUnnamed357(); + o.dimensions = buildUnnamed367(); o.endTimestamp = "foo"; - o.metrics = buildUnnamed358(); + o.metrics = buildUnnamed368(); o.outputFormat = "foo"; o.startTimestamp = "foo"; o.timeUnit = "foo"; @@ -3552,9 +4216,9 @@ checkGoogleCloudApigeeV1QueryMetadata(api.GoogleCloudApigeeV1QueryMetadata o) { buildCounterGoogleCloudApigeeV1QueryMetadata++; if (buildCounterGoogleCloudApigeeV1QueryMetadata < 3) { - checkUnnamed357(o.dimensions); + checkUnnamed367(o.dimensions); unittest.expect(o.endTimestamp, unittest.equals('foo')); - checkUnnamed358(o.metrics); + checkUnnamed368(o.metrics); unittest.expect(o.outputFormat, unittest.equals('foo')); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.timeUnit, unittest.equals('foo')); @@ -3589,6 +4253,29 @@ buildCounterGoogleCloudApigeeV1QueryMetric--; } +core.int buildCounterGoogleCloudApigeeV1Quota = 0; +buildGoogleCloudApigeeV1Quota() { + var o = new api.GoogleCloudApigeeV1Quota(); + buildCounterGoogleCloudApigeeV1Quota++; + if (buildCounterGoogleCloudApigeeV1Quota < 3) { + o.interval = "foo"; + o.limit = "foo"; + o.timeUnit = "foo"; + } + buildCounterGoogleCloudApigeeV1Quota--; + return o; +} + +checkGoogleCloudApigeeV1Quota(api.GoogleCloudApigeeV1Quota o) { + buildCounterGoogleCloudApigeeV1Quota++; + if (buildCounterGoogleCloudApigeeV1Quota < 3) { + unittest.expect(o.interval, unittest.equals('foo')); + unittest.expect(o.limit, unittest.equals('foo')); + unittest.expect(o.timeUnit, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1Quota--; +} + core.int buildCounterGoogleCloudApigeeV1Reference = 0; buildGoogleCloudApigeeV1Reference() { var o = new api.GoogleCloudApigeeV1Reference(); @@ -3636,14 +4323,67 @@ buildCounterGoogleCloudApigeeV1ReferenceConfig--; } -buildUnnamed359() { +buildUnnamed369() { + var o = new core.List<api.GoogleCloudApigeeV1ResourceStatus>(); + o.add(buildGoogleCloudApigeeV1ResourceStatus()); + o.add(buildGoogleCloudApigeeV1ResourceStatus()); + return o; +} + +checkUnnamed369(core.List<api.GoogleCloudApigeeV1ResourceStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1ResourceStatus(o[0]); + checkGoogleCloudApigeeV1ResourceStatus(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest = 0; +buildGoogleCloudApigeeV1ReportInstanceStatusRequest() { + var o = new api.GoogleCloudApigeeV1ReportInstanceStatusRequest(); + buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest++; + if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest < 3) { + o.instanceUid = "foo"; + o.reportTime = "foo"; + o.resources = buildUnnamed369(); + } + buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest--; + return o; +} + +checkGoogleCloudApigeeV1ReportInstanceStatusRequest( + api.GoogleCloudApigeeV1ReportInstanceStatusRequest o) { + buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest++; + if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest < 3) { + unittest.expect(o.instanceUid, unittest.equals('foo')); + unittest.expect(o.reportTime, unittest.equals('foo')); + checkUnnamed369(o.resources); + } + buildCounterGoogleCloudApigeeV1ReportInstanceStatusRequest--; +} + +core.int buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse = 0; +buildGoogleCloudApigeeV1ReportInstanceStatusResponse() { + var o = new api.GoogleCloudApigeeV1ReportInstanceStatusResponse(); + buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse++; + if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse < 3) {} + buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse--; + return o; +} + +checkGoogleCloudApigeeV1ReportInstanceStatusResponse( + api.GoogleCloudApigeeV1ReportInstanceStatusResponse o) { + buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse++; + if (buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse < 3) {} + buildCounterGoogleCloudApigeeV1ReportInstanceStatusResponse--; +} + +buildUnnamed370() { var o = new core.List<api.GoogleCloudApigeeV1Attribute>(); o.add(buildGoogleCloudApigeeV1Attribute()); o.add(buildGoogleCloudApigeeV1Attribute()); return o; } -checkUnnamed359(core.List<api.GoogleCloudApigeeV1Attribute> o) { +checkUnnamed370(core.List<api.GoogleCloudApigeeV1Attribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Attribute(o[0]); checkGoogleCloudApigeeV1Attribute(o[1]); @@ -3655,7 +4395,7 @@ buildCounterGoogleCloudApigeeV1ReportProperty++; if (buildCounterGoogleCloudApigeeV1ReportProperty < 3) { o.property = "foo"; - o.value = buildUnnamed359(); + o.value = buildUnnamed370(); } buildCounterGoogleCloudApigeeV1ReportProperty--; return o; @@ -3666,7 +4406,7 @@ buildCounterGoogleCloudApigeeV1ReportProperty++; if (buildCounterGoogleCloudApigeeV1ReportProperty < 3) { unittest.expect(o.property, unittest.equals('foo')); - checkUnnamed359(o.value); + checkUnnamed370(o.value); } buildCounterGoogleCloudApigeeV1ReportProperty--; } @@ -3714,14 +4454,14 @@ buildCounterGoogleCloudApigeeV1ResourceFile--; } -buildUnnamed360() { +buildUnnamed371() { var o = new core.List<api.GoogleCloudApigeeV1ResourceFile>(); o.add(buildGoogleCloudApigeeV1ResourceFile()); o.add(buildGoogleCloudApigeeV1ResourceFile()); return o; } -checkUnnamed360(core.List<api.GoogleCloudApigeeV1ResourceFile> o) { +checkUnnamed371(core.List<api.GoogleCloudApigeeV1ResourceFile> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1ResourceFile(o[0]); checkGoogleCloudApigeeV1ResourceFile(o[1]); @@ -3732,7 +4472,7 @@ var o = new api.GoogleCloudApigeeV1ResourceFiles(); buildCounterGoogleCloudApigeeV1ResourceFiles++; if (buildCounterGoogleCloudApigeeV1ResourceFiles < 3) { - o.resourceFile = buildUnnamed360(); + o.resourceFile = buildUnnamed371(); } buildCounterGoogleCloudApigeeV1ResourceFiles--; return o; @@ -3741,32 +4481,71 @@ checkGoogleCloudApigeeV1ResourceFiles(api.GoogleCloudApigeeV1ResourceFiles o) { buildCounterGoogleCloudApigeeV1ResourceFiles++; if (buildCounterGoogleCloudApigeeV1ResourceFiles < 3) { - checkUnnamed360(o.resourceFile); + checkUnnamed371(o.resourceFile); } buildCounterGoogleCloudApigeeV1ResourceFiles--; } -buildUnnamed361() { +buildUnnamed372() { + var o = new core.List<api.GoogleCloudApigeeV1RevisionStatus>(); + o.add(buildGoogleCloudApigeeV1RevisionStatus()); + o.add(buildGoogleCloudApigeeV1RevisionStatus()); + return o; +} + +checkUnnamed372(core.List<api.GoogleCloudApigeeV1RevisionStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1RevisionStatus(o[0]); + checkGoogleCloudApigeeV1RevisionStatus(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1ResourceStatus = 0; +buildGoogleCloudApigeeV1ResourceStatus() { + var o = new api.GoogleCloudApigeeV1ResourceStatus(); + buildCounterGoogleCloudApigeeV1ResourceStatus++; + if (buildCounterGoogleCloudApigeeV1ResourceStatus < 3) { + o.resource = "foo"; + o.revisions = buildUnnamed372(); + o.totalReplicas = 42; + o.uid = "foo"; + } + buildCounterGoogleCloudApigeeV1ResourceStatus--; + return o; +} + +checkGoogleCloudApigeeV1ResourceStatus( + api.GoogleCloudApigeeV1ResourceStatus o) { + buildCounterGoogleCloudApigeeV1ResourceStatus++; + if (buildCounterGoogleCloudApigeeV1ResourceStatus < 3) { + unittest.expect(o.resource, unittest.equals('foo')); + checkUnnamed372(o.revisions); + unittest.expect(o.totalReplicas, unittest.equals(42)); + unittest.expect(o.uid, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1ResourceStatus--; +} + +buildUnnamed373() { var o = new core.List<api.GoogleCloudApigeeV1Access>(); o.add(buildGoogleCloudApigeeV1Access()); o.add(buildGoogleCloudApigeeV1Access()); return o; } -checkUnnamed361(core.List<api.GoogleCloudApigeeV1Access> o) { +checkUnnamed373(core.List<api.GoogleCloudApigeeV1Access> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Access(o[0]); checkGoogleCloudApigeeV1Access(o[1]); } -buildUnnamed362() { +buildUnnamed374() { var o = new core.List<api.GoogleCloudApigeeV1Property>(); o.add(buildGoogleCloudApigeeV1Property()); o.add(buildGoogleCloudApigeeV1Property()); return o; } -checkUnnamed362(core.List<api.GoogleCloudApigeeV1Property> o) { +checkUnnamed374(core.List<api.GoogleCloudApigeeV1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Property(o[0]); checkGoogleCloudApigeeV1Property(o[1]); @@ -3778,9 +4557,9 @@ buildCounterGoogleCloudApigeeV1Result++; if (buildCounterGoogleCloudApigeeV1Result < 3) { o.ActionResult = "foo"; - o.accessList = buildUnnamed361(); + o.accessList = buildUnnamed373(); o.content = "foo"; - o.headers = buildUnnamed362(); + o.headers = buildUnnamed374(); o.properties = buildGoogleCloudApigeeV1Properties(); o.reasonPhrase = "foo"; o.statusCode = "foo"; @@ -3796,9 +4575,9 @@ buildCounterGoogleCloudApigeeV1Result++; if (buildCounterGoogleCloudApigeeV1Result < 3) { unittest.expect(o.ActionResult, unittest.equals('foo')); - checkUnnamed361(o.accessList); + checkUnnamed373(o.accessList); unittest.expect(o.content, unittest.equals('foo')); - checkUnnamed362(o.headers); + checkUnnamed374(o.headers); checkGoogleCloudApigeeV1Properties(o.properties); unittest.expect(o.reasonPhrase, unittest.equals('foo')); unittest.expect(o.statusCode, unittest.equals('foo')); @@ -3809,40 +4588,274 @@ buildCounterGoogleCloudApigeeV1Result--; } -buildUnnamed363() { - var o = new core.List<api.GoogleCloudApigeeV1SchemaSchemaElement>(); - o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); - o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); +buildUnnamed375() { + var o = new core.List<api.GoogleCloudApigeeV1UpdateError>(); + o.add(buildGoogleCloudApigeeV1UpdateError()); + o.add(buildGoogleCloudApigeeV1UpdateError()); return o; } -checkUnnamed363(core.List<api.GoogleCloudApigeeV1SchemaSchemaElement> o) { +checkUnnamed375(core.List<api.GoogleCloudApigeeV1UpdateError> o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudApigeeV1SchemaSchemaElement(o[0]); - checkGoogleCloudApigeeV1SchemaSchemaElement(o[1]); + checkGoogleCloudApigeeV1UpdateError(o[0]); + checkGoogleCloudApigeeV1UpdateError(o[1]); } -buildUnnamed364() { +core.int buildCounterGoogleCloudApigeeV1RevisionStatus = 0; +buildGoogleCloudApigeeV1RevisionStatus() { + var o = new api.GoogleCloudApigeeV1RevisionStatus(); + buildCounterGoogleCloudApigeeV1RevisionStatus++; + if (buildCounterGoogleCloudApigeeV1RevisionStatus < 3) { + o.errors = buildUnnamed375(); + o.jsonSpec = "foo"; + o.replicas = 42; + o.revisionId = "foo"; + } + buildCounterGoogleCloudApigeeV1RevisionStatus--; + return o; +} + +checkGoogleCloudApigeeV1RevisionStatus( + api.GoogleCloudApigeeV1RevisionStatus o) { + buildCounterGoogleCloudApigeeV1RevisionStatus++; + if (buildCounterGoogleCloudApigeeV1RevisionStatus < 3) { + checkUnnamed375(o.errors); + unittest.expect(o.jsonSpec, unittest.equals('foo')); + unittest.expect(o.replicas, unittest.equals(42)); + unittest.expect(o.revisionId, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1RevisionStatus--; +} + +core.int buildCounterGoogleCloudApigeeV1RoutingRule = 0; +buildGoogleCloudApigeeV1RoutingRule() { + var o = new api.GoogleCloudApigeeV1RoutingRule(); + buildCounterGoogleCloudApigeeV1RoutingRule++; + if (buildCounterGoogleCloudApigeeV1RoutingRule < 3) { + o.basepath = "foo"; + o.environment = "foo"; + } + buildCounterGoogleCloudApigeeV1RoutingRule--; + return o; +} + +checkGoogleCloudApigeeV1RoutingRule(api.GoogleCloudApigeeV1RoutingRule o) { + buildCounterGoogleCloudApigeeV1RoutingRule++; + if (buildCounterGoogleCloudApigeeV1RoutingRule < 3) { + unittest.expect(o.basepath, unittest.equals('foo')); + unittest.expect(o.environment, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1RoutingRule--; +} + +buildUnnamed376() { + var o = new core.List<api.GoogleCloudApigeeV1RuntimeTraceConfigOverride>(); + o.add(buildGoogleCloudApigeeV1RuntimeTraceConfigOverride()); + o.add(buildGoogleCloudApigeeV1RuntimeTraceConfigOverride()); + return o; +} + +checkUnnamed376( + core.List<api.GoogleCloudApigeeV1RuntimeTraceConfigOverride> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1RuntimeTraceConfigOverride(o[0]); + checkGoogleCloudApigeeV1RuntimeTraceConfigOverride(o[1]); +} + +core.int buildCounterGoogleCloudApigeeV1RuntimeTraceConfig = 0; +buildGoogleCloudApigeeV1RuntimeTraceConfig() { + var o = new api.GoogleCloudApigeeV1RuntimeTraceConfig(); + buildCounterGoogleCloudApigeeV1RuntimeTraceConfig++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceConfig < 3) { + o.endpoint = "foo"; + o.exporter = "foo"; + o.name = "foo"; + o.overrides = buildUnnamed376(); + o.revisionCreateTime = "foo"; + o.revisionId = "foo"; + o.samplingConfig = buildGoogleCloudApigeeV1RuntimeTraceSamplingConfig(); + } + buildCounterGoogleCloudApigeeV1RuntimeTraceConfig--; + return o; +} + +checkGoogleCloudApigeeV1RuntimeTraceConfig( + api.GoogleCloudApigeeV1RuntimeTraceConfig o) { + buildCounterGoogleCloudApigeeV1RuntimeTraceConfig++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceConfig < 3) { + unittest.expect(o.endpoint, unittest.equals('foo')); + unittest.expect(o.exporter, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed376(o.overrides); + unittest.expect(o.revisionCreateTime, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig(o.samplingConfig); + } + buildCounterGoogleCloudApigeeV1RuntimeTraceConfig--; +} + +core.int buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride = 0; +buildGoogleCloudApigeeV1RuntimeTraceConfigOverride() { + var o = new api.GoogleCloudApigeeV1RuntimeTraceConfigOverride(); + buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride < 3) { + o.apiProxy = "foo"; + o.name = "foo"; + o.revisionCreateTime = "foo"; + o.revisionId = "foo"; + o.samplingConfig = buildGoogleCloudApigeeV1RuntimeTraceSamplingConfig(); + o.uid = "foo"; + } + buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride--; + return o; +} + +checkGoogleCloudApigeeV1RuntimeTraceConfigOverride( + api.GoogleCloudApigeeV1RuntimeTraceConfigOverride o) { + buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride < 3) { + unittest.expect(o.apiProxy, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.revisionCreateTime, unittest.equals('foo')); + unittest.expect(o.revisionId, unittest.equals('foo')); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig(o.samplingConfig); + unittest.expect(o.uid, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1RuntimeTraceConfigOverride--; +} + +buildUnnamed377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed364(core.List<core.String> o) { +checkUnnamed377(core.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() { +buildUnnamed378() { + var o = new core.List< + api.GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange>(); + o.add(buildGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange()); + o.add(buildGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange()); + return o; +} + +checkUnnamed378( + core.List< + api.GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange(o[0]); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange(o[1]); +} + +buildUnnamed379() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed379(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 buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig = 0; +buildGoogleCloudApigeeV1RuntimeTraceSamplingConfig() { + var o = new api.GoogleCloudApigeeV1RuntimeTraceSamplingConfig(); + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig < 3) { + o.errorSources = buildUnnamed377(); + o.responseCodeRanges = buildUnnamed378(); + o.responseCodes = buildUnnamed379(); + o.sampler = "foo"; + o.samplingRate = 42.0; + } + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig--; + return o; +} + +checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig( + api.GoogleCloudApigeeV1RuntimeTraceSamplingConfig o) { + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig < 3) { + checkUnnamed377(o.errorSources); + checkUnnamed378(o.responseCodeRanges); + checkUnnamed379(o.responseCodes); + unittest.expect(o.sampler, unittest.equals('foo')); + unittest.expect(o.samplingRate, unittest.equals(42.0)); + } + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfig--; +} + +core.int + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange = + 0; +buildGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange() { + var o = + new api.GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange(); + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange < + 3) { + o.firstResponseCode = 42; + o.lastResponseCode = 42; + } + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange--; + return o; +} + +checkGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange( + api.GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange o) { + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange++; + if (buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange < + 3) { + unittest.expect(o.firstResponseCode, unittest.equals(42)); + unittest.expect(o.lastResponseCode, unittest.equals(42)); + } + buildCounterGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange--; +} + +buildUnnamed380() { var o = new core.List<api.GoogleCloudApigeeV1SchemaSchemaElement>(); o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); return o; } -checkUnnamed365(core.List<api.GoogleCloudApigeeV1SchemaSchemaElement> o) { +checkUnnamed380(core.List<api.GoogleCloudApigeeV1SchemaSchemaElement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudApigeeV1SchemaSchemaElement(o[0]); + checkGoogleCloudApigeeV1SchemaSchemaElement(o[1]); +} + +buildUnnamed381() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed381(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed382() { + var o = new core.List<api.GoogleCloudApigeeV1SchemaSchemaElement>(); + o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); + o.add(buildGoogleCloudApigeeV1SchemaSchemaElement()); + return o; +} + +checkUnnamed382(core.List<api.GoogleCloudApigeeV1SchemaSchemaElement> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1SchemaSchemaElement(o[0]); checkGoogleCloudApigeeV1SchemaSchemaElement(o[1]); @@ -3853,9 +4866,9 @@ var o = new api.GoogleCloudApigeeV1Schema(); buildCounterGoogleCloudApigeeV1Schema++; if (buildCounterGoogleCloudApigeeV1Schema < 3) { - o.dimensions = buildUnnamed363(); - o.meta = buildUnnamed364(); - o.metrics = buildUnnamed365(); + o.dimensions = buildUnnamed380(); + o.meta = buildUnnamed381(); + o.metrics = buildUnnamed382(); } buildCounterGoogleCloudApigeeV1Schema--; return o; @@ -3864,9 +4877,9 @@ checkGoogleCloudApigeeV1Schema(api.GoogleCloudApigeeV1Schema o) { buildCounterGoogleCloudApigeeV1Schema++; if (buildCounterGoogleCloudApigeeV1Schema < 3) { - checkUnnamed363(o.dimensions); - checkUnnamed364(o.meta); - checkUnnamed365(o.metrics); + checkUnnamed380(o.dimensions); + checkUnnamed381(o.meta); + checkUnnamed382(o.metrics); } buildCounterGoogleCloudApigeeV1Schema--; } @@ -3917,14 +4930,14 @@ buildCounterGoogleCloudApigeeV1SchemaSchemaProperty--; } -buildUnnamed366() { +buildUnnamed383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed366(core.List<core.String> o) { +checkUnnamed383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3935,7 +4948,7 @@ var o = new api.GoogleCloudApigeeV1ServiceIssuersMapping(); buildCounterGoogleCloudApigeeV1ServiceIssuersMapping++; if (buildCounterGoogleCloudApigeeV1ServiceIssuersMapping < 3) { - o.emailIds = buildUnnamed366(); + o.emailIds = buildUnnamed383(); o.service = "foo"; } buildCounterGoogleCloudApigeeV1ServiceIssuersMapping--; @@ -3946,7 +4959,7 @@ api.GoogleCloudApigeeV1ServiceIssuersMapping o) { buildCounterGoogleCloudApigeeV1ServiceIssuersMapping++; if (buildCounterGoogleCloudApigeeV1ServiceIssuersMapping < 3) { - checkUnnamed366(o.emailIds); + checkUnnamed383(o.emailIds); unittest.expect(o.service, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1ServiceIssuersMapping--; @@ -3973,14 +4986,14 @@ buildCounterGoogleCloudApigeeV1Session--; } -buildUnnamed367() { +buildUnnamed384() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed367(core.List<core.String> o) { +checkUnnamed384(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3994,7 +5007,7 @@ o.latestRevisionId = "foo"; o.metaData = buildGoogleCloudApigeeV1EntityMetadata(); o.name = "foo"; - o.revision = buildUnnamed367(); + o.revision = buildUnnamed384(); } buildCounterGoogleCloudApigeeV1SharedFlow--; return o; @@ -4006,58 +5019,58 @@ unittest.expect(o.latestRevisionId, unittest.equals('foo')); checkGoogleCloudApigeeV1EntityMetadata(o.metaData); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed367(o.revision); + checkUnnamed384(o.revision); } buildCounterGoogleCloudApigeeV1SharedFlow--; } -buildUnnamed368() { +buildUnnamed385() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed368(core.Map<core.String, core.String> o) { +checkUnnamed385(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')); } -buildUnnamed369() { +buildUnnamed386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed369(core.List<core.String> o) { +checkUnnamed386(core.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() { +buildUnnamed387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed370(core.List<core.String> o) { +checkUnnamed387(core.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() { +buildUnnamed388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed371(core.List<core.String> o) { +checkUnnamed388(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4071,15 +5084,16 @@ o.configurationVersion = buildGoogleCloudApigeeV1ConfigVersion(); o.contextInfo = "foo"; o.createdAt = "foo"; + o.description = "foo"; o.displayName = "foo"; - o.entityMetaDataAsProperties = buildUnnamed368(); + o.entityMetaDataAsProperties = buildUnnamed385(); o.lastModifiedAt = "foo"; o.name = "foo"; - o.policies = buildUnnamed369(); + o.policies = buildUnnamed386(); o.resourceFiles = buildGoogleCloudApigeeV1ResourceFiles(); - o.resources = buildUnnamed370(); + o.resources = buildUnnamed387(); o.revision = "foo"; - o.sharedFlows = buildUnnamed371(); + o.sharedFlows = buildUnnamed388(); o.type = "foo"; } buildCounterGoogleCloudApigeeV1SharedFlowRevision--; @@ -4093,28 +5107,29 @@ checkGoogleCloudApigeeV1ConfigVersion(o.configurationVersion); unittest.expect(o.contextInfo, unittest.equals('foo')); unittest.expect(o.createdAt, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed368(o.entityMetaDataAsProperties); + checkUnnamed385(o.entityMetaDataAsProperties); unittest.expect(o.lastModifiedAt, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed369(o.policies); + checkUnnamed386(o.policies); checkGoogleCloudApigeeV1ResourceFiles(o.resourceFiles); - checkUnnamed370(o.resources); + checkUnnamed387(o.resources); unittest.expect(o.revision, unittest.equals('foo')); - checkUnnamed371(o.sharedFlows); + checkUnnamed388(o.sharedFlows); unittest.expect(o.type, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1SharedFlowRevision--; } -buildUnnamed372() { +buildUnnamed389() { var o = new core.List<api.GoogleCloudApigeeV1StatsEnvironmentStats>(); o.add(buildGoogleCloudApigeeV1StatsEnvironmentStats()); o.add(buildGoogleCloudApigeeV1StatsEnvironmentStats()); return o; } -checkUnnamed372(core.List<api.GoogleCloudApigeeV1StatsEnvironmentStats> o) { +checkUnnamed389(core.List<api.GoogleCloudApigeeV1StatsEnvironmentStats> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1StatsEnvironmentStats(o[0]); checkGoogleCloudApigeeV1StatsEnvironmentStats(o[1]); @@ -4125,7 +5140,7 @@ var o = new api.GoogleCloudApigeeV1Stats(); buildCounterGoogleCloudApigeeV1Stats++; if (buildCounterGoogleCloudApigeeV1Stats < 3) { - o.environments = buildUnnamed372(); + o.environments = buildUnnamed389(); o.metaData = buildGoogleCloudApigeeV1Metadata(); } buildCounterGoogleCloudApigeeV1Stats--; @@ -4135,33 +5150,33 @@ checkGoogleCloudApigeeV1Stats(api.GoogleCloudApigeeV1Stats o) { buildCounterGoogleCloudApigeeV1Stats++; if (buildCounterGoogleCloudApigeeV1Stats < 3) { - checkUnnamed372(o.environments); + checkUnnamed389(o.environments); checkGoogleCloudApigeeV1Metadata(o.metaData); } buildCounterGoogleCloudApigeeV1Stats--; } -buildUnnamed373() { +buildUnnamed390() { var o = new core.List<api.GoogleCloudApigeeV1DimensionMetric>(); o.add(buildGoogleCloudApigeeV1DimensionMetric()); o.add(buildGoogleCloudApigeeV1DimensionMetric()); return o; } -checkUnnamed373(core.List<api.GoogleCloudApigeeV1DimensionMetric> o) { +checkUnnamed390(core.List<api.GoogleCloudApigeeV1DimensionMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1DimensionMetric(o[0]); checkGoogleCloudApigeeV1DimensionMetric(o[1]); } -buildUnnamed374() { +buildUnnamed391() { var o = new core.List<api.GoogleCloudApigeeV1Metric>(); o.add(buildGoogleCloudApigeeV1Metric()); o.add(buildGoogleCloudApigeeV1Metric()); return o; } -checkUnnamed374(core.List<api.GoogleCloudApigeeV1Metric> o) { +checkUnnamed391(core.List<api.GoogleCloudApigeeV1Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudApigeeV1Metric(o[0]); checkGoogleCloudApigeeV1Metric(o[1]); @@ -4172,8 +5187,8 @@ var o = new api.GoogleCloudApigeeV1StatsEnvironmentStats(); buildCounterGoogleCloudApigeeV1StatsEnvironmentStats++; if (buildCounterGoogleCloudApigeeV1StatsEnvironmentStats < 3) { - o.dimensions = buildUnnamed373(); - o.metrics = buildUnnamed374(); + o.dimensions = buildUnnamed390(); + o.metrics = buildUnnamed391(); o.name = "foo"; } buildCounterGoogleCloudApigeeV1StatsEnvironmentStats--; @@ -4184,8 +5199,8 @@ api.GoogleCloudApigeeV1StatsEnvironmentStats o) { buildCounterGoogleCloudApigeeV1StatsEnvironmentStats++; if (buildCounterGoogleCloudApigeeV1StatsEnvironmentStats < 3) { - checkUnnamed373(o.dimensions); - checkUnnamed374(o.metrics); + checkUnnamed390(o.dimensions); + checkUnnamed391(o.metrics); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1StatsEnvironmentStats--; @@ -4210,14 +5225,14 @@ buildCounterGoogleCloudApigeeV1Subscription--; } -buildUnnamed375() { +buildUnnamed392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed375(core.List<core.String> o) { +checkUnnamed392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4229,7 +5244,7 @@ buildCounterGoogleCloudApigeeV1SyncAuthorization++; if (buildCounterGoogleCloudApigeeV1SyncAuthorization < 3) { o.etag = "foo"; - o.identities = buildUnnamed375(); + o.identities = buildUnnamed392(); } buildCounterGoogleCloudApigeeV1SyncAuthorization--; return o; @@ -4240,7 +5255,7 @@ buildCounterGoogleCloudApigeeV1SyncAuthorization++; if (buildCounterGoogleCloudApigeeV1SyncAuthorization < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed375(o.identities); + checkUnnamed392(o.identities); } buildCounterGoogleCloudApigeeV1SyncAuthorization--; } @@ -4300,27 +5315,49 @@ buildCounterGoogleCloudApigeeV1TargetServerConfig--; } -buildUnnamed376() { +core.int buildCounterGoogleCloudApigeeV1TestDatastoreResponse = 0; +buildGoogleCloudApigeeV1TestDatastoreResponse() { + var o = new api.GoogleCloudApigeeV1TestDatastoreResponse(); + buildCounterGoogleCloudApigeeV1TestDatastoreResponse++; + if (buildCounterGoogleCloudApigeeV1TestDatastoreResponse < 3) { + o.error = "foo"; + o.state = "foo"; + } + buildCounterGoogleCloudApigeeV1TestDatastoreResponse--; + return o; +} + +checkGoogleCloudApigeeV1TestDatastoreResponse( + api.GoogleCloudApigeeV1TestDatastoreResponse o) { + buildCounterGoogleCloudApigeeV1TestDatastoreResponse++; + if (buildCounterGoogleCloudApigeeV1TestDatastoreResponse < 3) { + unittest.expect(o.error, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1TestDatastoreResponse--; +} + +buildUnnamed393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed376(core.List<core.String> o) { +checkUnnamed393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed377() { +buildUnnamed394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed377(core.List<core.String> o) { +checkUnnamed394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4331,14 +5368,14 @@ var o = new api.GoogleCloudApigeeV1TlsInfo(); buildCounterGoogleCloudApigeeV1TlsInfo++; if (buildCounterGoogleCloudApigeeV1TlsInfo < 3) { - o.ciphers = buildUnnamed376(); + o.ciphers = buildUnnamed393(); o.clientAuthEnabled = true; o.commonName = buildGoogleCloudApigeeV1TlsInfoCommonName(); o.enabled = true; o.ignoreValidationErrors = true; o.keyAlias = "foo"; o.keyStore = "foo"; - o.protocols = buildUnnamed377(); + o.protocols = buildUnnamed394(); o.trustStore = "foo"; } buildCounterGoogleCloudApigeeV1TlsInfo--; @@ -4348,14 +5385,14 @@ checkGoogleCloudApigeeV1TlsInfo(api.GoogleCloudApigeeV1TlsInfo o) { buildCounterGoogleCloudApigeeV1TlsInfo++; if (buildCounterGoogleCloudApigeeV1TlsInfo < 3) { - checkUnnamed376(o.ciphers); + checkUnnamed393(o.ciphers); unittest.expect(o.clientAuthEnabled, unittest.isTrue); checkGoogleCloudApigeeV1TlsInfoCommonName(o.commonName); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.ignoreValidationErrors, unittest.isTrue); unittest.expect(o.keyAlias, unittest.equals('foo')); unittest.expect(o.keyStore, unittest.equals('foo')); - checkUnnamed377(o.protocols); + checkUnnamed394(o.protocols); unittest.expect(o.trustStore, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1TlsInfo--; @@ -4383,27 +5420,27 @@ buildCounterGoogleCloudApigeeV1TlsInfoCommonName--; } -buildUnnamed378() { +buildUnnamed395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed378(core.List<core.String> o) { +checkUnnamed395(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed379() { +buildUnnamed396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed379(core.List<core.String> o) { +checkUnnamed396(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4414,14 +5451,14 @@ var o = new api.GoogleCloudApigeeV1TlsInfoConfig(); buildCounterGoogleCloudApigeeV1TlsInfoConfig++; if (buildCounterGoogleCloudApigeeV1TlsInfoConfig < 3) { - o.ciphers = buildUnnamed378(); + o.ciphers = buildUnnamed395(); o.clientAuthEnabled = true; o.commonName = buildGoogleCloudApigeeV1CommonNameConfig(); o.enabled = true; o.ignoreValidationErrors = true; o.keyAlias = "foo"; o.keyAliasReference = buildGoogleCloudApigeeV1KeyAliasReference(); - o.protocols = buildUnnamed379(); + o.protocols = buildUnnamed396(); o.trustStore = "foo"; } buildCounterGoogleCloudApigeeV1TlsInfoConfig--; @@ -4431,27 +5468,52 @@ checkGoogleCloudApigeeV1TlsInfoConfig(api.GoogleCloudApigeeV1TlsInfoConfig o) { buildCounterGoogleCloudApigeeV1TlsInfoConfig++; if (buildCounterGoogleCloudApigeeV1TlsInfoConfig < 3) { - checkUnnamed378(o.ciphers); + checkUnnamed395(o.ciphers); unittest.expect(o.clientAuthEnabled, unittest.isTrue); checkGoogleCloudApigeeV1CommonNameConfig(o.commonName); unittest.expect(o.enabled, unittest.isTrue); unittest.expect(o.ignoreValidationErrors, unittest.isTrue); unittest.expect(o.keyAlias, unittest.equals('foo')); checkGoogleCloudApigeeV1KeyAliasReference(o.keyAliasReference); - checkUnnamed379(o.protocols); + checkUnnamed396(o.protocols); unittest.expect(o.trustStore, unittest.equals('foo')); } buildCounterGoogleCloudApigeeV1TlsInfoConfig--; } -buildUnnamed380() { +core.int buildCounterGoogleCloudApigeeV1UpdateError = 0; +buildGoogleCloudApigeeV1UpdateError() { + var o = new api.GoogleCloudApigeeV1UpdateError(); + buildCounterGoogleCloudApigeeV1UpdateError++; + if (buildCounterGoogleCloudApigeeV1UpdateError < 3) { + o.code = "foo"; + o.message = "foo"; + o.resource = "foo"; + o.type = "foo"; + } + buildCounterGoogleCloudApigeeV1UpdateError--; + return o; +} + +checkGoogleCloudApigeeV1UpdateError(api.GoogleCloudApigeeV1UpdateError o) { + buildCounterGoogleCloudApigeeV1UpdateError++; + if (buildCounterGoogleCloudApigeeV1UpdateError < 3) { + unittest.expect(o.code, unittest.equals('foo')); + unittest.expect(o.message, unittest.equals('foo')); + unittest.expect(o.resource, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGoogleCloudApigeeV1UpdateError--; +} + +buildUnnamed397() { var o = new core.List<api.GoogleIamV1AuditLogConfig>(); o.add(buildGoogleIamV1AuditLogConfig()); o.add(buildGoogleIamV1AuditLogConfig()); return o; } -checkUnnamed380(core.List<api.GoogleIamV1AuditLogConfig> o) { +checkUnnamed397(core.List<api.GoogleIamV1AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditLogConfig(o[0]); checkGoogleIamV1AuditLogConfig(o[1]); @@ -4462,7 +5524,7 @@ var o = new api.GoogleIamV1AuditConfig(); buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - o.auditLogConfigs = buildUnnamed380(); + o.auditLogConfigs = buildUnnamed397(); o.service = "foo"; } buildCounterGoogleIamV1AuditConfig--; @@ -4472,20 +5534,20 @@ checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - checkUnnamed380(o.auditLogConfigs); + checkUnnamed397(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterGoogleIamV1AuditConfig--; } -buildUnnamed381() { +buildUnnamed398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed381(core.List<core.String> o) { +checkUnnamed398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4496,7 +5558,7 @@ var o = new api.GoogleIamV1AuditLogConfig(); buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed381(); + o.exemptedMembers = buildUnnamed398(); o.logType = "foo"; } buildCounterGoogleIamV1AuditLogConfig--; @@ -4506,20 +5568,20 @@ checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - checkUnnamed381(o.exemptedMembers); + checkUnnamed398(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterGoogleIamV1AuditLogConfig--; } -buildUnnamed382() { +buildUnnamed399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed382(core.List<core.String> o) { +checkUnnamed399(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4531,7 +5593,7 @@ buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { o.condition = buildGoogleTypeExpr(); - o.members = buildUnnamed382(); + o.members = buildUnnamed399(); o.role = "foo"; } buildCounterGoogleIamV1Binding--; @@ -4542,33 +5604,33 @@ buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { checkGoogleTypeExpr(o.condition); - checkUnnamed382(o.members); + checkUnnamed399(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterGoogleIamV1Binding--; } -buildUnnamed383() { +buildUnnamed400() { var o = new core.List<api.GoogleIamV1AuditConfig>(); o.add(buildGoogleIamV1AuditConfig()); o.add(buildGoogleIamV1AuditConfig()); return o; } -checkUnnamed383(core.List<api.GoogleIamV1AuditConfig> o) { +checkUnnamed400(core.List<api.GoogleIamV1AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditConfig(o[0]); checkGoogleIamV1AuditConfig(o[1]); } -buildUnnamed384() { +buildUnnamed401() { var o = new core.List<api.GoogleIamV1Binding>(); o.add(buildGoogleIamV1Binding()); o.add(buildGoogleIamV1Binding()); return o; } -checkUnnamed384(core.List<api.GoogleIamV1Binding> o) { +checkUnnamed401(core.List<api.GoogleIamV1Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1Binding(o[0]); checkGoogleIamV1Binding(o[1]); @@ -4579,8 +5641,8 @@ var o = new api.GoogleIamV1Policy(); buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - o.auditConfigs = buildUnnamed383(); - o.bindings = buildUnnamed384(); + o.auditConfigs = buildUnnamed400(); + o.bindings = buildUnnamed401(); o.etag = "foo"; o.version = 42; } @@ -4591,8 +5653,8 @@ checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed383(o.auditConfigs); - checkUnnamed384(o.bindings); + checkUnnamed400(o.auditConfigs); + checkUnnamed401(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -4620,14 +5682,14 @@ buildCounterGoogleIamV1SetIamPolicyRequest--; } -buildUnnamed385() { +buildUnnamed402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed385(core.List<core.String> o) { +checkUnnamed402(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4638,7 +5700,7 @@ var o = new api.GoogleIamV1TestIamPermissionsRequest(); buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed385(); + o.permissions = buildUnnamed402(); } buildCounterGoogleIamV1TestIamPermissionsRequest--; return o; @@ -4648,19 +5710,19 @@ api.GoogleIamV1TestIamPermissionsRequest o) { buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - checkUnnamed385(o.permissions); + checkUnnamed402(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsRequest--; } -buildUnnamed386() { +buildUnnamed403() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed386(core.List<core.String> o) { +checkUnnamed403(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4671,7 +5733,7 @@ var o = new api.GoogleIamV1TestIamPermissionsResponse(); buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed386(); + o.permissions = buildUnnamed403(); } buildCounterGoogleIamV1TestIamPermissionsResponse--; return o; @@ -4681,19 +5743,19 @@ api.GoogleIamV1TestIamPermissionsResponse o) { buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - checkUnnamed386(o.permissions); + checkUnnamed403(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsResponse--; } -buildUnnamed387() { +buildUnnamed404() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed387(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed404(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -4705,7 +5767,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed387(); + o.operations = buildUnnamed404(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -4716,12 +5778,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed387(o.operations); + checkUnnamed404(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed388() { +buildUnnamed405() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4736,21 +5798,21 @@ return o; } -checkUnnamed388(core.Map<core.String, core.Object> o) { +checkUnnamed405(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted14 = (o["x"]) 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')); - var casted15 = (o["y"]) 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 casted10 = (o["x"]) as core.Map; + unittest.expect(casted10, unittest.hasLength(3)); + unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted10["bool"], unittest.equals(true)); + unittest.expect(casted10["string"], unittest.equals('foo')); + var casted11 = (o["y"]) as core.Map; + unittest.expect(casted11, unittest.hasLength(3)); + unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted11["bool"], unittest.equals(true)); + unittest.expect(casted11["string"], unittest.equals('foo')); } -buildUnnamed389() { +buildUnnamed406() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4765,18 +5827,18 @@ return o; } -checkUnnamed389(core.Map<core.String, core.Object> o) { +checkUnnamed406(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted16 = (o["x"]) 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')); - var casted17 = (o["y"]) 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 casted12 = (o["x"]) 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')); + var casted13 = (o["y"]) 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')); } core.int buildCounterGoogleLongrunningOperation = 0; @@ -4786,9 +5848,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed388(); + o.metadata = buildUnnamed405(); o.name = "foo"; - o.response = buildUnnamed389(); + o.response = buildUnnamed406(); } buildCounterGoogleLongrunningOperation--; return o; @@ -4799,9 +5861,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed388(o.metadata); + checkUnnamed405(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed389(o.response); + checkUnnamed406(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -4821,7 +5883,63 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed390() { +buildUnnamed407() { + var o = new core.List<api.GoogleRpcPreconditionFailureViolation>(); + o.add(buildGoogleRpcPreconditionFailureViolation()); + o.add(buildGoogleRpcPreconditionFailureViolation()); + return o; +} + +checkUnnamed407(core.List<api.GoogleRpcPreconditionFailureViolation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleRpcPreconditionFailureViolation(o[0]); + checkGoogleRpcPreconditionFailureViolation(o[1]); +} + +core.int buildCounterGoogleRpcPreconditionFailure = 0; +buildGoogleRpcPreconditionFailure() { + var o = new api.GoogleRpcPreconditionFailure(); + buildCounterGoogleRpcPreconditionFailure++; + if (buildCounterGoogleRpcPreconditionFailure < 3) { + o.violations = buildUnnamed407(); + } + buildCounterGoogleRpcPreconditionFailure--; + return o; +} + +checkGoogleRpcPreconditionFailure(api.GoogleRpcPreconditionFailure o) { + buildCounterGoogleRpcPreconditionFailure++; + if (buildCounterGoogleRpcPreconditionFailure < 3) { + checkUnnamed407(o.violations); + } + buildCounterGoogleRpcPreconditionFailure--; +} + +core.int buildCounterGoogleRpcPreconditionFailureViolation = 0; +buildGoogleRpcPreconditionFailureViolation() { + var o = new api.GoogleRpcPreconditionFailureViolation(); + buildCounterGoogleRpcPreconditionFailureViolation++; + if (buildCounterGoogleRpcPreconditionFailureViolation < 3) { + o.description = "foo"; + o.subject = "foo"; + o.type = "foo"; + } + buildCounterGoogleRpcPreconditionFailureViolation--; + return o; +} + +checkGoogleRpcPreconditionFailureViolation( + api.GoogleRpcPreconditionFailureViolation o) { + buildCounterGoogleRpcPreconditionFailureViolation++; + if (buildCounterGoogleRpcPreconditionFailureViolation < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.subject, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGoogleRpcPreconditionFailureViolation--; +} + +buildUnnamed408() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4836,31 +5954,31 @@ return o; } -checkUnnamed390(core.Map<core.String, core.Object> o) { +checkUnnamed408(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted18 = (o["x"]) as core.Map; - unittest.expect(casted18, unittest.hasLength(3)); - unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted18["bool"], unittest.equals(true)); - unittest.expect(casted18["string"], unittest.equals('foo')); - var casted19 = (o["y"]) as core.Map; - unittest.expect(casted19, unittest.hasLength(3)); - unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted19["bool"], unittest.equals(true)); - unittest.expect(casted19["string"], unittest.equals('foo')); + var casted14 = (o["x"]) 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')); + var casted15 = (o["y"]) 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')); } -buildUnnamed391() { +buildUnnamed409() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed390()); - o.add(buildUnnamed390()); + o.add(buildUnnamed408()); + o.add(buildUnnamed408()); return o; } -checkUnnamed391(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed409(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed390(o[0]); - checkUnnamed390(o[1]); + checkUnnamed408(o[0]); + checkUnnamed408(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -4869,7 +5987,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed391(); + o.details = buildUnnamed409(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -4880,7 +5998,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed391(o.details); + checkUnnamed409(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -5025,15 +6143,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudApigeeV1AsyncQueryResultView", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1AsyncQueryResultView(); - var od = - new api.GoogleCloudApigeeV1AsyncQueryResultView.fromJson(o.toJson()); - checkGoogleCloudApigeeV1AsyncQueryResultView(od); - }); - }); - unittest.group("obj-schema-GoogleCloudApigeeV1Attribute", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1Attribute(); @@ -5074,30 +6183,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudApigeeV1Company", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1Company(); - var od = new api.GoogleCloudApigeeV1Company.fromJson(o.toJson()); - checkGoogleCloudApigeeV1Company(od); - }); - }); - - unittest.group("obj-schema-GoogleCloudApigeeV1CompanyApp", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1CompanyApp(); - var od = new api.GoogleCloudApigeeV1CompanyApp.fromJson(o.toJson()); - checkGoogleCloudApigeeV1CompanyApp(od); - }); - }); - - unittest.group("obj-schema-GoogleCloudApigeeV1CompanyAppKey", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1CompanyAppKey(); - var od = new api.GoogleCloudApigeeV1CompanyAppKey.fromJson(o.toJson()); - checkGoogleCloudApigeeV1CompanyAppKey(od); - }); - }); - unittest.group("obj-schema-GoogleCloudApigeeV1ConfigVersion", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ConfigVersion(); @@ -5131,11 +6216,36 @@ }); }); - unittest.group("obj-schema-GoogleCloudApigeeV1DataLocation", () { + unittest.group("obj-schema-GoogleCloudApigeeV1DataCollectorConfig", () { unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1DataLocation(); - var od = new api.GoogleCloudApigeeV1DataLocation.fromJson(o.toJson()); - checkGoogleCloudApigeeV1DataLocation(od); + var o = buildGoogleCloudApigeeV1DataCollectorConfig(); + var od = + new api.GoogleCloudApigeeV1DataCollectorConfig.fromJson(o.toJson()); + checkGoogleCloudApigeeV1DataCollectorConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1Datastore", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1Datastore(); + var od = new api.GoogleCloudApigeeV1Datastore.fromJson(o.toJson()); + checkGoogleCloudApigeeV1Datastore(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1DatastoreConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DatastoreConfig(); + var od = new api.GoogleCloudApigeeV1DatastoreConfig.fromJson(o.toJson()); + checkGoogleCloudApigeeV1DatastoreConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1DateRange", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DateRange(); + var od = new api.GoogleCloudApigeeV1DateRange.fromJson(o.toJson()); + checkGoogleCloudApigeeV1DateRange(od); }); }); @@ -5182,6 +6292,50 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1DeploymentChangeReport", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DeploymentChangeReport(); + var od = new api.GoogleCloudApigeeV1DeploymentChangeReport.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1DeploymentChangeReport(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1DeploymentChangeReportRoutingChange", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DeploymentChangeReportRoutingChange(); + var od = new api + .GoogleCloudApigeeV1DeploymentChangeReportRoutingChange.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingChange(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(); + var od = new api + .GoogleCloudApigeeV1DeploymentChangeReportRoutingConflict.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingConflict(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(); + var od = new api + .GoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1DeploymentChangeReportRoutingDeployment(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1DeploymentConfig", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1DeploymentConfig(); @@ -5247,6 +6401,49 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1EnvironmentGroup", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1EnvironmentGroup(); + var od = new api.GoogleCloudApigeeV1EnvironmentGroup.fromJson(o.toJson()); + checkGoogleCloudApigeeV1EnvironmentGroup(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1EnvironmentGroupAttachment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1EnvironmentGroupAttachment(); + var od = new api.GoogleCloudApigeeV1EnvironmentGroupAttachment.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1EnvironmentGroupAttachment(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1EnvironmentGroupConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1EnvironmentGroupConfig(); + var od = new api.GoogleCloudApigeeV1EnvironmentGroupConfig.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1EnvironmentGroupConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1Export", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1Export(); + var od = new api.GoogleCloudApigeeV1Export.fromJson(o.toJson()); + checkGoogleCloudApigeeV1Export(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1ExportRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ExportRequest(); + var od = new api.GoogleCloudApigeeV1ExportRequest.fromJson(o.toJson()); + checkGoogleCloudApigeeV1ExportRequest(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1FlowHook", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1FlowHook(); @@ -5273,6 +6470,65 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1IngressConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1IngressConfig(); + var od = new api.GoogleCloudApigeeV1IngressConfig.fromJson(o.toJson()); + checkGoogleCloudApigeeV1IngressConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1Instance", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1Instance(); + var od = new api.GoogleCloudApigeeV1Instance.fromJson(o.toJson()); + checkGoogleCloudApigeeV1Instance(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1InstanceAttachment", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1InstanceAttachment(); + var od = + new api.GoogleCloudApigeeV1InstanceAttachment.fromJson(o.toJson()); + checkGoogleCloudApigeeV1InstanceAttachment(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1InstanceDeploymentStatus", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1InstanceDeploymentStatus(); + var od = new api.GoogleCloudApigeeV1InstanceDeploymentStatus.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1InstanceDeploymentStatus(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision(); + var od = new api + .GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRevision(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute(); + var od = new api + .GoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1InstanceDeploymentStatusDeployedRoute(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1KeyAliasReference", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1KeyAliasReference(); @@ -5341,24 +6597,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudApigeeV1ListCompaniesResponse", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1ListCompaniesResponse(); - var od = - new api.GoogleCloudApigeeV1ListCompaniesResponse.fromJson(o.toJson()); - checkGoogleCloudApigeeV1ListCompaniesResponse(od); - }); - }); - - unittest.group("obj-schema-GoogleCloudApigeeV1ListCompanyAppsResponse", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudApigeeV1ListCompanyAppsResponse(); - var od = new api.GoogleCloudApigeeV1ListCompanyAppsResponse.fromJson( - o.toJson()); - checkGoogleCloudApigeeV1ListCompanyAppsResponse(od); - }); - }); - unittest.group("obj-schema-GoogleCloudApigeeV1ListCustomReportsResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ListCustomReportsResponse(); @@ -5368,6 +6606,15 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1ListDatastoresResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListDatastoresResponse(); + var od = new api.GoogleCloudApigeeV1ListDatastoresResponse.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ListDatastoresResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1ListDebugSessionsResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ListDebugSessionsResponse(); @@ -5396,6 +6643,29 @@ }); unittest.group( + "obj-schema-GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse(); + var od = new api + .GoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1ListEnvironmentGroupsResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListEnvironmentGroupsResponse(); + var od = + new api.GoogleCloudApigeeV1ListEnvironmentGroupsResponse.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ListEnvironmentGroupsResponse(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudApigeeV1ListEnvironmentResourcesResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ListEnvironmentResourcesResponse(); @@ -5406,6 +6676,15 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1ListExportsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListExportsResponse(); + var od = + new api.GoogleCloudApigeeV1ListExportsResponse.fromJson(o.toJson()); + checkGoogleCloudApigeeV1ListExportsResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1ListHybridIssuersResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ListHybridIssuersResponse(); @@ -5415,6 +6694,26 @@ }); }); + unittest.group( + "obj-schema-GoogleCloudApigeeV1ListInstanceAttachmentsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListInstanceAttachmentsResponse(); + var od = + new api.GoogleCloudApigeeV1ListInstanceAttachmentsResponse.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ListInstanceAttachmentsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1ListInstancesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ListInstancesResponse(); + var od = + new api.GoogleCloudApigeeV1ListInstancesResponse.fromJson(o.toJson()); + checkGoogleCloudApigeeV1ListInstancesResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1ListOfDevelopersResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ListOfDevelopersResponse(); @@ -5458,6 +6757,30 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1Operation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1Operation(); + var od = new api.GoogleCloudApigeeV1Operation.fromJson(o.toJson()); + checkGoogleCloudApigeeV1Operation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1OperationConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1OperationConfig(); + var od = new api.GoogleCloudApigeeV1OperationConfig.fromJson(o.toJson()); + checkGoogleCloudApigeeV1OperationConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1OperationGroup", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1OperationGroup(); + var od = new api.GoogleCloudApigeeV1OperationGroup.fromJson(o.toJson()); + checkGoogleCloudApigeeV1OperationGroup(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1OperationMetadata", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1OperationMetadata(); @@ -5567,6 +6890,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1Quota", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1Quota(); + var od = new api.GoogleCloudApigeeV1Quota.fromJson(o.toJson()); + checkGoogleCloudApigeeV1Quota(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1Reference", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1Reference(); @@ -5583,6 +6914,26 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1ReportInstanceStatusRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ReportInstanceStatusRequest(); + var od = new api.GoogleCloudApigeeV1ReportInstanceStatusRequest.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ReportInstanceStatusRequest(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1ReportInstanceStatusResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ReportInstanceStatusResponse(); + var od = new api.GoogleCloudApigeeV1ReportInstanceStatusResponse.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1ReportInstanceStatusResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1ReportProperty", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1ReportProperty(); @@ -5615,6 +6966,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1ResourceStatus", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1ResourceStatus(); + var od = new api.GoogleCloudApigeeV1ResourceStatus.fromJson(o.toJson()); + checkGoogleCloudApigeeV1ResourceStatus(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1Result", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1Result(); @@ -5623,6 +6982,64 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1RevisionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1RevisionStatus(); + var od = new api.GoogleCloudApigeeV1RevisionStatus.fromJson(o.toJson()); + checkGoogleCloudApigeeV1RevisionStatus(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1RoutingRule", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1RoutingRule(); + var od = new api.GoogleCloudApigeeV1RoutingRule.fromJson(o.toJson()); + checkGoogleCloudApigeeV1RoutingRule(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1RuntimeTraceConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1RuntimeTraceConfig(); + var od = + new api.GoogleCloudApigeeV1RuntimeTraceConfig.fromJson(o.toJson()); + checkGoogleCloudApigeeV1RuntimeTraceConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1RuntimeTraceConfigOverride", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1RuntimeTraceConfigOverride(); + var od = new api.GoogleCloudApigeeV1RuntimeTraceConfigOverride.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1RuntimeTraceConfigOverride(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudApigeeV1RuntimeTraceSamplingConfig", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1RuntimeTraceSamplingConfig(); + var od = new api.GoogleCloudApigeeV1RuntimeTraceSamplingConfig.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfig(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange(); + var od = new api + .GoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange.fromJson( + o.toJson()); + checkGoogleCloudApigeeV1RuntimeTraceSamplingConfigResponseCodeRange(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1Schema", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1Schema(); @@ -5734,6 +7151,15 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1TestDatastoreResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1TestDatastoreResponse(); + var od = + new api.GoogleCloudApigeeV1TestDatastoreResponse.fromJson(o.toJson()); + checkGoogleCloudApigeeV1TestDatastoreResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudApigeeV1TlsInfo", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudApigeeV1TlsInfo(); @@ -5759,6 +7185,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudApigeeV1UpdateError", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudApigeeV1UpdateError(); + var od = new api.GoogleCloudApigeeV1UpdateError.fromJson(o.toJson()); + checkGoogleCloudApigeeV1UpdateError(od); + }); + }); + unittest.group("obj-schema-GoogleIamV1AuditConfig", () { unittest.test("to-json--from-json", () { var o = buildGoogleIamV1AuditConfig(); @@ -5842,6 +7276,23 @@ }); }); + unittest.group("obj-schema-GoogleRpcPreconditionFailure", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleRpcPreconditionFailure(); + var od = new api.GoogleRpcPreconditionFailure.fromJson(o.toJson()); + checkGoogleRpcPreconditionFailure(od); + }); + }); + + unittest.group("obj-schema-GoogleRpcPreconditionFailureViolation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleRpcPreconditionFailureViolation(); + var od = + new api.GoogleRpcPreconditionFailureViolation.fromJson(o.toJson()); + checkGoogleRpcPreconditionFailureViolation(od); + }); + }); + unittest.group("obj-schema-GoogleRpcStatus", () { unittest.test("to-json--from-json", () { var o = buildGoogleRpcStatus(); @@ -6019,6 +7470,57 @@ }))); }); + unittest.test("method--getDeployedIngressConfig", () { + var mock = new HttpServerMock(); + api.OrganizationsResourceApi res = new api.ApigeeApi(mock).organizations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1IngressConfig()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .getDeployedIngressConfig(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1IngressConfig(response); + }))); + }); + unittest.test("method--getSyncAuthorization", () { var mock = new HttpServerMock(); api.OrganizationsResourceApi res = new api.ApigeeApi(mock).organizations; @@ -6241,6 +7743,337 @@ }); }); + unittest.group("resource-OrganizationsAnalyticsDatastoresResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_request = buildGoogleCloudApigeeV1Datastore(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1Datastore.fromJson(json); + checkGoogleCloudApigeeV1Datastore(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Datastore()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Datastore(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleProtobufEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Datastore()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Datastore(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_parent = "foo"; + var arg_targetType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["targetType"].first, unittest.equals(arg_targetType)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1ListDatastoresResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, targetType: arg_targetType, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListDatastoresResponse(response); + }))); + }); + + unittest.test("method--test", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_request = buildGoogleCloudApigeeV1Datastore(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1Datastore.fromJson(json); + checkGoogleCloudApigeeV1Datastore(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1TestDatastoreResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .test(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1TestDatastoreResponse(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.OrganizationsAnalyticsDatastoresResourceApi res = + new api.ApigeeApi(mock).organizations.analytics.datastores; + var arg_request = buildGoogleCloudApigeeV1Datastore(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1Datastore.fromJson(json); + checkGoogleCloudApigeeV1Datastore(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Datastore()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .update(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Datastore(response); + }))); + }); + }); + unittest.group("resource-OrganizationsApiproductsResourceApi", () { unittest.test("method--attributes", () { var mock = new HttpServerMock(); @@ -6463,11 +8296,11 @@ api.OrganizationsApiproductsResourceApi res = new api.ApigeeApi(mock).organizations.apiproducts; var arg_parent = "foo"; - var arg_startKey = "foo"; + var arg_count = "foo"; + var arg_attributename = "foo"; var arg_attributevalue = "foo"; var arg_expand = true; - var arg_attributename = "foo"; - var arg_count = "foo"; + var arg_startKey = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6500,15 +8333,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["startKey"].first, unittest.equals(arg_startKey)); + unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); + unittest.expect(queryMap["attributename"].first, + unittest.equals(arg_attributename)); unittest.expect(queryMap["attributevalue"].first, unittest.equals(arg_attributevalue)); unittest.expect( queryMap["expand"].first, unittest.equals("$arg_expand")); - unittest.expect(queryMap["attributename"].first, - unittest.equals(arg_attributename)); - unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); + unittest.expect( + queryMap["startKey"].first, unittest.equals(arg_startKey)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6520,11 +8353,11 @@ }), true); res .list(arg_parent, - startKey: arg_startKey, + count: arg_count, + attributename: arg_attributename, attributevalue: arg_attributevalue, expand: arg_expand, - attributename: arg_attributename, - count: arg_count, + startKey: arg_startKey, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ListApiProductsResponse(response); @@ -6810,9 +8643,9 @@ new api.ApigeeApi(mock).organizations.apis; var arg_request = buildGoogleApiHttpBody(); var arg_parent = "foo"; + var arg_validate = true; var arg_action = "foo"; var arg_name = "foo"; - var arg_validate = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleApiHttpBody.fromJson(json); @@ -6848,10 +8681,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect( queryMap["validate"].first, unittest.equals("$arg_validate")); + unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6863,9 +8696,9 @@ }), true); res .create(arg_request, arg_parent, + validate: arg_validate, action: arg_action, name: arg_name, - validate: arg_validate, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ApiProxyRevision(response); @@ -7488,15 +9321,15 @@ api.OrganizationsAppsResourceApi res = new api.ApigeeApi(mock).organizations.apps; var arg_parent = "foo"; - var arg_apiProduct = "foo"; - var arg_status = "foo"; var arg_startKey = "foo"; - var arg_apptype = "foo"; var arg_expand = true; + var arg_apiProduct = "foo"; + var arg_apptype = "foo"; + var arg_includeCred = true; + var arg_status = "foo"; + var arg_rows = "foo"; var arg_keyStatus = "foo"; var arg_ids = "foo"; - var arg_includeCred = true; - var arg_rows = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7530,20 +9363,20 @@ } } unittest.expect( - queryMap["apiProduct"].first, unittest.equals(arg_apiProduct)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); - unittest.expect( queryMap["startKey"].first, unittest.equals(arg_startKey)); unittest.expect( - queryMap["apptype"].first, unittest.equals(arg_apptype)); - unittest.expect( queryMap["expand"].first, unittest.equals("$arg_expand")); unittest.expect( - queryMap["keyStatus"].first, unittest.equals(arg_keyStatus)); - unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); + queryMap["apiProduct"].first, unittest.equals(arg_apiProduct)); + unittest.expect( + queryMap["apptype"].first, unittest.equals(arg_apptype)); unittest.expect( queryMap["includeCred"].first, unittest.equals("$arg_includeCred")); + unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); unittest.expect(queryMap["rows"].first, unittest.equals(arg_rows)); + unittest.expect( + queryMap["keyStatus"].first, unittest.equals(arg_keyStatus)); + unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7555,15 +9388,15 @@ }), true); res .list(arg_parent, - apiProduct: arg_apiProduct, - status: arg_status, startKey: arg_startKey, - apptype: arg_apptype, expand: arg_expand, + apiProduct: arg_apiProduct, + apptype: arg_apptype, + includeCred: arg_includeCred, + status: arg_status, + rows: arg_rows, keyStatus: arg_keyStatus, ids: arg_ids, - includeCred: arg_includeCred, - rows: arg_rows, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ListAppsResponse(response); @@ -7571,744 +9404,6 @@ }); }); - unittest.group("resource-OrganizationsCompaniesResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesResourceApi res = - new api.ApigeeApi(mock).organizations.companies; - var arg_request = buildGoogleCloudApigeeV1Company(); - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.GoogleCloudApigeeV1Company.fromJson(json); - checkGoogleCloudApigeeV1Company(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1Company()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, arg_parent, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1Company(response); - }))); - }); - - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesResourceApi res = - new api.ApigeeApi(mock).organizations.companies; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1Company()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1Company(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesResourceApi res = - new api.ApigeeApi(mock).organizations.companies; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1Company()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1Company(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesResourceApi res = - new api.ApigeeApi(mock).organizations.companies; - var arg_parent = "foo"; - var arg_startKey = "foo"; - var arg_count = "foo"; - var arg_expand = true; - var arg_includeDevelopers = true; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["startKey"].first, unittest.equals(arg_startKey)); - unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); - unittest.expect( - queryMap["expand"].first, unittest.equals("$arg_expand")); - unittest.expect(queryMap["includeDevelopers"].first, - unittest.equals("$arg_includeDevelopers")); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json - .encode(buildGoogleCloudApigeeV1ListCompaniesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_parent, - startKey: arg_startKey, - count: arg_count, - expand: arg_expand, - includeDevelopers: arg_includeDevelopers, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1ListCompaniesResponse(response); - }))); - }); - - unittest.test("method--update", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesResourceApi res = - new api.ApigeeApi(mock).organizations.companies; - var arg_request = buildGoogleCloudApigeeV1Company(); - var arg_name = "foo"; - var arg_action = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.GoogleCloudApigeeV1Company.fromJson(json); - checkGoogleCloudApigeeV1Company(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1Company()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .update(arg_request, arg_name, - action: arg_action, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1Company(response); - }))); - }); - }); - - unittest.group("resource-OrganizationsCompaniesAppsResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps; - var arg_request = buildGoogleCloudApigeeV1CompanyApp(); - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.GoogleCloudApigeeV1CompanyApp.fromJson(json); - checkGoogleCloudApigeeV1CompanyApp(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyApp()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, arg_parent, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyApp(response); - }))); - }); - - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyApp()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyApp(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyApp()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyApp(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps; - var arg_parent = "foo"; - var arg_startKey = "foo"; - var arg_count = "foo"; - var arg_expand = true; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["startKey"].first, unittest.equals(arg_startKey)); - unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); - unittest.expect( - queryMap["expand"].first, unittest.equals("$arg_expand")); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json - .encode(buildGoogleCloudApigeeV1ListCompanyAppsResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_parent, - startKey: arg_startKey, - count: arg_count, - expand: arg_expand, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1ListCompanyAppsResponse(response); - }))); - }); - - unittest.test("method--update", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps; - var arg_request = buildGoogleCloudApigeeV1CompanyApp(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.GoogleCloudApigeeV1CompanyApp.fromJson(json); - checkGoogleCloudApigeeV1CompanyApp(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyApp()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .update(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyApp(response); - }))); - }); - }); - - unittest.group("resource-OrganizationsCompaniesAppsKeysResourceApi", () { - unittest.test("method--delete", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsKeysResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps.keys; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyAppKey()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyAppKey(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsKeysResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps.keys; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyAppKey()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyAppKey(response); - }))); - }); - - unittest.test("method--updateCompanyAppKey", () { - var mock = new HttpServerMock(); - api.OrganizationsCompaniesAppsKeysResourceApi res = - new api.ApigeeApi(mock).organizations.companies.apps.keys; - var arg_request = buildGoogleCloudApigeeV1CompanyAppKey(); - var arg_name = "foo"; - var arg_action = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.GoogleCloudApigeeV1CompanyAppKey.fromJson(json); - checkGoogleCloudApigeeV1CompanyAppKey(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1CompanyAppKey()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .updateCompanyAppKey(arg_request, arg_name, - action: arg_action, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1CompanyAppKey(response); - }))); - }); - }); - unittest.group("resource-OrganizationsDeploymentsResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); @@ -8592,10 +9687,10 @@ new api.ApigeeApi(mock).organizations.developers; var arg_parent = "foo"; var arg_count = "foo"; - var arg_startKey = "foo"; - var arg_expand = true; var arg_ids = "foo"; + var arg_startKey = "foo"; var arg_includeCompany = true; + var arg_expand = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8629,13 +9724,13 @@ } } unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); + unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); unittest.expect( queryMap["startKey"].first, unittest.equals(arg_startKey)); - unittest.expect( - queryMap["expand"].first, unittest.equals("$arg_expand")); - unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); unittest.expect(queryMap["includeCompany"].first, unittest.equals("$arg_includeCompany")); + unittest.expect( + queryMap["expand"].first, unittest.equals("$arg_expand")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8648,10 +9743,10 @@ res .list(arg_parent, count: arg_count, - startKey: arg_startKey, - expand: arg_expand, ids: arg_ids, + startKey: arg_startKey, includeCompany: arg_includeCompany, + expand: arg_expand, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ListOfDevelopersResponse(response); @@ -8999,8 +10094,8 @@ api.OrganizationsDevelopersAppsResourceApi res = new api.ApigeeApi(mock).organizations.developers.apps; var arg_name = "foo"; - var arg_query = "foo"; var arg_entity = "foo"; + var arg_query = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9033,8 +10128,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["entity"].first, unittest.equals(arg_entity)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9045,7 +10140,7 @@ }), true); res .get(arg_name, - query: arg_query, entity: arg_entity, $fields: arg_$fields) + entity: arg_entity, query: arg_query, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1DeveloperApp(response); }))); @@ -9056,8 +10151,8 @@ api.OrganizationsDevelopersAppsResourceApi res = new api.ApigeeApi(mock).organizations.developers.apps; var arg_parent = "foo"; - var arg_count = "foo"; var arg_expand = true; + var arg_count = "foo"; var arg_shallowExpand = true; var arg_startKey = "foo"; var arg_$fields = "foo"; @@ -9092,9 +10187,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); unittest.expect( queryMap["expand"].first, unittest.equals("$arg_expand")); + unittest.expect(queryMap["count"].first, unittest.equals(arg_count)); unittest.expect(queryMap["shallowExpand"].first, unittest.equals("$arg_shallowExpand")); unittest.expect( @@ -9110,8 +10205,8 @@ }), true); res .list(arg_parent, - count: arg_count, expand: arg_expand, + count: arg_count, shallowExpand: arg_shallowExpand, startKey: arg_startKey, $fields: arg_$fields) @@ -10070,6 +11165,521 @@ }); }); + unittest.group("resource-OrganizationsEnvgroupsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups; + var arg_request = buildGoogleCloudApigeeV1EnvironmentGroup(); + var arg_parent = "foo"; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1EnvironmentGroup.fromJson(json); + checkGoogleCloudApigeeV1EnvironmentGroup(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, name: arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudApigeeV1EnvironmentGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1EnvironmentGroup(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1ListEnvironmentGroupsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListEnvironmentGroupsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups; + var arg_request = buildGoogleCloudApigeeV1EnvironmentGroup(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1EnvironmentGroup.fromJson(json); + checkGoogleCloudApigeeV1EnvironmentGroup(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + }); + + unittest.group("resource-OrganizationsEnvgroupsAttachmentsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups.attachments; + var arg_request = buildGoogleCloudApigeeV1EnvironmentGroupAttachment(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleCloudApigeeV1EnvironmentGroupAttachment.fromJson( + json); + checkGoogleCloudApigeeV1EnvironmentGroupAttachment(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups.attachments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups.attachments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1EnvironmentGroupAttachment()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1EnvironmentGroupAttachment(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvgroupsAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.envgroups.attachments; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode( + buildGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListEnvironmentGroupAttachmentsResponse( + response); + }))); + }); + }); + unittest.group("resource-OrganizationsEnvironmentsResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -10233,74 +11843,6 @@ }))); }); - unittest.test("method--getDatalocation", () { - var mock = new HttpServerMock(); - api.OrganizationsEnvironmentsResourceApi res = - new api.ApigeeApi(mock).organizations.environments; - var arg_name = "foo"; - var arg_relativeFilePath = "foo"; - var arg_contentType = "foo"; - var arg_dataset = "foo"; - var arg_repo = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["relativeFilePath"].first, - unittest.equals(arg_relativeFilePath)); - unittest.expect( - queryMap["contentType"].first, unittest.equals(arg_contentType)); - unittest.expect( - queryMap["dataset"].first, unittest.equals(arg_dataset)); - unittest.expect(queryMap["repo"].first, unittest.equals(arg_repo)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGoogleCloudApigeeV1DataLocation()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .getDatalocation(arg_name, - relativeFilePath: arg_relativeFilePath, - contentType: arg_contentType, - dataset: arg_dataset, - repo: arg_repo, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1DataLocation(response); - }))); - }); - unittest.test("method--getDebugmask", () { var mock = new HttpServerMock(); api.OrganizationsEnvironmentsResourceApi res = @@ -10921,6 +12463,170 @@ }); }); + unittest.group( + "resource-OrganizationsEnvironmentsAnalyticsExportsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsAnalyticsExportsResourceApi res = + new api.ApigeeApi(mock).organizations.environments.analytics.exports; + var arg_request = buildGoogleCloudApigeeV1ExportRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1ExportRequest.fromJson(json); + checkGoogleCloudApigeeV1ExportRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Export()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Export(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsAnalyticsExportsResourceApi res = + new api.ApigeeApi(mock).organizations.environments.analytics.exports; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Export()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Export(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsAnalyticsExportsResourceApi res = + new api.ApigeeApi(mock).organizations.environments.analytics.exports; + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudApigeeV1ListExportsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListExportsResponse(response); + }))); + }); + }); + unittest.group("resource-OrganizationsEnvironmentsApisDeploymentsResourceApi", () { unittest.test("method--list", () { @@ -10979,11 +12685,13 @@ unittest.group("resource-OrganizationsEnvironmentsApisRevisionsResourceApi", () { - unittest.test("method--deployments", () { + unittest.test("method--deploy", () { var mock = new HttpServerMock(); api.OrganizationsEnvironmentsApisRevisionsResourceApi res = new api.ApigeeApi(mock).organizations.environments.apis.revisions; var arg_name = "foo"; + var arg_sequencedRollout = true; + var arg_override = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11016,18 +12724,25 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["sequencedRollout"].first, + unittest.equals("$arg_sequencedRollout")); + unittest.expect( + queryMap["override"].first, unittest.equals("$arg_override")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildGoogleProtobufEmpty()); + var resp = convert.json.encode(buildGoogleCloudApigeeV1Deployment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .deployments(arg_name, $fields: arg_$fields) + .deploy(arg_name, + sequencedRollout: arg_sequencedRollout, + override: arg_override, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkGoogleProtobufEmpty(response); + checkGoogleCloudApigeeV1Deployment(response); }))); }); @@ -11082,6 +12797,62 @@ checkGoogleCloudApigeeV1Deployment(response); }))); }); + + unittest.test("method--undeploy", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsApisRevisionsResourceApi res = + new api.ApigeeApi(mock).organizations.environments.apis.revisions; + var arg_name = "foo"; + var arg_sequencedRollout = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["sequencedRollout"].first, + unittest.equals("$arg_sequencedRollout")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .undeploy(arg_name, + sequencedRollout: arg_sequencedRollout, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleProtobufEmpty(response); + }))); + }); }); unittest.group( @@ -11209,7 +12980,7 @@ }))); }); - unittest.test("method--list", () { + unittest.test("method--get", () { var mock = new HttpServerMock(); api.OrganizationsEnvironmentsApisRevisionsDebugsessionsResourceApi res = new api.ApigeeApi(mock) @@ -11218,7 +12989,7 @@ .apis .revisions .debugsessions; - var arg_parent = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11256,12 +13027,78 @@ var h = { "content-type": "application/json; charset=utf-8", }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1DebugSession()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1DebugSession(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsApisRevisionsDebugsessionsResourceApi res = + new api.ApigeeApi(mock) + .organizations + .environments + .apis + .revisions + .debugsessions; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; var resp = convert.json .encode(buildGoogleCloudApigeeV1ListDebugSessionsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, $fields: arg_$fields) + .list(arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ListDebugSessionsResponse(response); }))); @@ -11331,6 +13168,130 @@ }); }); + unittest.group( + "resource-OrganizationsEnvironmentsApisRevisionsDeploymentsResourceApi", + () { + unittest.test("method--generateDeployChangeReport", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsApisRevisionsDeploymentsResourceApi res = + new api.ApigeeApi(mock) + .organizations + .environments + .apis + .revisions + .deployments; + var arg_name = "foo"; + var arg_override = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["override"].first, unittest.equals("$arg_override")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1DeploymentChangeReport()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .generateDeployChangeReport(arg_name, + override: arg_override, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1DeploymentChangeReport(response); + }))); + }); + + unittest.test("method--generateUndeployChangeReport", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsApisRevisionsDeploymentsResourceApi res = + new api.ApigeeApi(mock) + .organizations + .environments + .apis + .revisions + .deployments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1DeploymentChangeReport()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .generateUndeployChangeReport(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1DeploymentChangeReport(response); + }))); + }); + }); + unittest.group("resource-OrganizationsEnvironmentsCachesResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -11779,11 +13740,11 @@ new api.ApigeeApi(mock).organizations.environments.keystores.aliases; var arg_request = buildGoogleApiHttpBody(); var arg_parent = "foo"; - var arg_alias = "foo"; - var arg_format = "foo"; - var arg_P_password = "foo"; var arg_ignoreNewlineValidation = true; + var arg_format = "foo"; + var arg_alias = "foo"; var arg_ignoreExpiryValidation = true; + var arg_P_password = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleApiHttpBody.fromJson(json); @@ -11819,14 +13780,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["alias"].first, unittest.equals(arg_alias)); - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); - unittest.expect( - queryMap["_password"].first, unittest.equals(arg_P_password)); unittest.expect(queryMap["ignoreNewlineValidation"].first, unittest.equals("$arg_ignoreNewlineValidation")); + unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); + unittest.expect(queryMap["alias"].first, unittest.equals(arg_alias)); unittest.expect(queryMap["ignoreExpiryValidation"].first, unittest.equals("$arg_ignoreExpiryValidation")); + unittest.expect( + queryMap["_password"].first, unittest.equals(arg_P_password)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11837,11 +13798,11 @@ }), true); res .create(arg_request, arg_parent, - alias: arg_alias, - format: arg_format, - P_password: arg_P_password, ignoreNewlineValidation: arg_ignoreNewlineValidation, + format: arg_format, + alias: arg_alias, ignoreExpiryValidation: arg_ignoreExpiryValidation, + P_password: arg_P_password, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1Alias(response); @@ -12062,8 +14023,8 @@ new api.ApigeeApi(mock).organizations.environments.keystores.aliases; var arg_request = buildGoogleApiHttpBody(); var arg_name = "foo"; - var arg_ignoreNewlineValidation = true; var arg_ignoreExpiryValidation = true; + var arg_ignoreNewlineValidation = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleApiHttpBody.fromJson(json); @@ -12099,10 +14060,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["ignoreNewlineValidation"].first, - unittest.equals("$arg_ignoreNewlineValidation")); unittest.expect(queryMap["ignoreExpiryValidation"].first, unittest.equals("$arg_ignoreExpiryValidation")); + unittest.expect(queryMap["ignoreNewlineValidation"].first, + unittest.equals("$arg_ignoreNewlineValidation")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12113,8 +14074,8 @@ }), true); res .update(arg_request, arg_name, - ignoreNewlineValidation: arg_ignoreNewlineValidation, ignoreExpiryValidation: arg_ignoreExpiryValidation, + ignoreNewlineValidation: arg_ignoreNewlineValidation, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1Alias(response); @@ -12240,21 +14201,21 @@ api.OrganizationsEnvironmentsOptimizedStatsResourceApi res = new api.ApigeeApi(mock).organizations.environments.optimizedStats; var arg_name = "foo"; - var arg_limit = "foo"; - var arg_accuracy = "foo"; - var arg_offset = "foo"; + var arg_timeUnit = "foo"; + var arg_topk = "foo"; var arg_sonar = true; var arg_realtime = true; - var arg_tzo = "foo"; - var arg_sortby = "foo"; var arg_filter = "foo"; - var arg_timeUnit = "foo"; + var arg_sortby = "foo"; + var arg_tsAscending = true; var arg_aggTable = "foo"; var arg_sort = "foo"; - var arg_topk = "foo"; - var arg_tsAscending = true; - var arg_timeRange = "foo"; + var arg_offset = "foo"; var arg_select = "foo"; + var arg_timeRange = "foo"; + var arg_limit = "foo"; + var arg_tzo = "foo"; + var arg_accuracy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12287,27 +14248,27 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["limit"].first, unittest.equals(arg_limit)); unittest.expect( - queryMap["accuracy"].first, unittest.equals(arg_accuracy)); - unittest.expect(queryMap["offset"].first, unittest.equals(arg_offset)); + queryMap["timeUnit"].first, unittest.equals(arg_timeUnit)); + unittest.expect(queryMap["topk"].first, unittest.equals(arg_topk)); unittest.expect(queryMap["sonar"].first, unittest.equals("$arg_sonar")); unittest.expect( queryMap["realtime"].first, unittest.equals("$arg_realtime")); - unittest.expect(queryMap["tzo"].first, unittest.equals(arg_tzo)); - unittest.expect(queryMap["sortby"].first, unittest.equals(arg_sortby)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["timeUnit"].first, unittest.equals(arg_timeUnit)); - unittest.expect( - queryMap["aggTable"].first, unittest.equals(arg_aggTable)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(queryMap["topk"].first, unittest.equals(arg_topk)); + unittest.expect(queryMap["sortby"].first, unittest.equals(arg_sortby)); unittest.expect( queryMap["tsAscending"].first, unittest.equals("$arg_tsAscending")); unittest.expect( - queryMap["timeRange"].first, unittest.equals(arg_timeRange)); + queryMap["aggTable"].first, unittest.equals(arg_aggTable)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect(queryMap["offset"].first, unittest.equals(arg_offset)); unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); + unittest.expect( + queryMap["timeRange"].first, unittest.equals(arg_timeRange)); + unittest.expect(queryMap["limit"].first, unittest.equals(arg_limit)); + unittest.expect(queryMap["tzo"].first, unittest.equals(arg_tzo)); + unittest.expect( + queryMap["accuracy"].first, unittest.equals(arg_accuracy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12319,21 +14280,21 @@ }), true); res .get(arg_name, - limit: arg_limit, - accuracy: arg_accuracy, - offset: arg_offset, + timeUnit: arg_timeUnit, + topk: arg_topk, sonar: arg_sonar, realtime: arg_realtime, - tzo: arg_tzo, - sortby: arg_sortby, filter: arg_filter, - timeUnit: arg_timeUnit, + sortby: arg_sortby, + tsAscending: arg_tsAscending, aggTable: arg_aggTable, sort: arg_sort, - topk: arg_topk, - tsAscending: arg_tsAscending, - timeRange: arg_timeRange, + offset: arg_offset, select: arg_select, + timeRange: arg_timeRange, + limit: arg_limit, + tzo: arg_tzo, + accuracy: arg_accuracy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1OptimizedStats(response); @@ -12502,70 +14463,17 @@ }))); }); - unittest.test("method--getResultView", () { - var mock = new HttpServerMock(); - api.OrganizationsEnvironmentsQueriesResourceApi res = - new api.ApigeeApi(mock).organizations.environments.queries; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = - convert.json.encode(buildGoogleCloudApigeeV1AsyncQueryResultView()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .getResultView(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGoogleCloudApigeeV1AsyncQueryResultView(response); - }))); - }); - unittest.test("method--list", () { var mock = new HttpServerMock(); api.OrganizationsEnvironmentsQueriesResourceApi res = new api.ApigeeApi(mock).organizations.environments.queries; var arg_parent = "foo"; - var arg_submittedBy = "foo"; - var arg_from = "foo"; - var arg_inclQueriesWithoutReport = "foo"; var arg_to = "foo"; - var arg_status = "foo"; + var arg_submittedBy = "foo"; var arg_dataset = "foo"; + var arg_inclQueriesWithoutReport = "foo"; + var arg_from = "foo"; + var arg_status = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12598,15 +14506,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["to"].first, unittest.equals(arg_to)); unittest.expect( queryMap["submittedBy"].first, unittest.equals(arg_submittedBy)); - unittest.expect(queryMap["from"].first, unittest.equals(arg_from)); - unittest.expect(queryMap["inclQueriesWithoutReport"].first, - unittest.equals(arg_inclQueriesWithoutReport)); - unittest.expect(queryMap["to"].first, unittest.equals(arg_to)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); unittest.expect( queryMap["dataset"].first, unittest.equals(arg_dataset)); + unittest.expect(queryMap["inclQueriesWithoutReport"].first, + unittest.equals(arg_inclQueriesWithoutReport)); + unittest.expect(queryMap["from"].first, unittest.equals(arg_from)); + unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12618,12 +14526,12 @@ }), true); res .list(arg_parent, - submittedBy: arg_submittedBy, - from: arg_from, - inclQueriesWithoutReport: arg_inclQueriesWithoutReport, to: arg_to, - status: arg_status, + submittedBy: arg_submittedBy, dataset: arg_dataset, + inclQueriesWithoutReport: arg_inclQueriesWithoutReport, + from: arg_from, + status: arg_status, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ListAsyncQueriesResponse(response); @@ -12857,8 +14765,8 @@ new api.ApigeeApi(mock).organizations.environments.resourcefiles; var arg_request = buildGoogleApiHttpBody(); var arg_parent = "foo"; - var arg_name = "foo"; var arg_type = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleApiHttpBody.fromJson(json); @@ -12894,8 +14802,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12906,7 +14814,7 @@ }), true); res .create(arg_request, arg_parent, - name: arg_name, type: arg_type, $fields: arg_$fields) + type: arg_type, name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1ResourceFile(response); }))); @@ -13252,7 +15160,7 @@ unittest.group( "resource-OrganizationsEnvironmentsSharedflowsRevisionsResourceApi", () { - unittest.test("method--deployments", () { + unittest.test("method--deploy", () { var mock = new HttpServerMock(); api.OrganizationsEnvironmentsSharedflowsRevisionsResourceApi res = new api.ApigeeApi(mock) @@ -13261,6 +15169,7 @@ .sharedflows .revisions; var arg_name = "foo"; + var arg_override = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13293,18 +15202,20 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["override"].first, unittest.equals("$arg_override")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildGoogleProtobufEmpty()); + var resp = convert.json.encode(buildGoogleCloudApigeeV1Deployment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .deployments(arg_name, $fields: arg_$fields) + .deploy(arg_name, override: arg_override, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkGoogleProtobufEmpty(response); + checkGoogleCloudApigeeV1Deployment(response); }))); }); @@ -13363,29 +15274,16 @@ checkGoogleCloudApigeeV1Deployment(response); }))); }); - }); - unittest.group("resource-OrganizationsEnvironmentsStatsResourceApi", () { - unittest.test("method--get", () { + unittest.test("method--undeploy", () { var mock = new HttpServerMock(); - api.OrganizationsEnvironmentsStatsResourceApi res = - new api.ApigeeApi(mock).organizations.environments.stats; + api.OrganizationsEnvironmentsSharedflowsRevisionsResourceApi res = + new api.ApigeeApi(mock) + .organizations + .environments + .sharedflows + .revisions; var arg_name = "foo"; - var arg_sonar = true; - var arg_realtime = true; - var arg_tzo = "foo"; - var arg_sortby = "foo"; - var arg_filter = "foo"; - var arg_timeUnit = "foo"; - var arg_aggTable = "foo"; - var arg_sort = "foo"; - var arg_topk = "foo"; - var arg_tsAscending = true; - var arg_timeRange = "foo"; - var arg_select = "foo"; - var arg_limit = "foo"; - var arg_accuracy = "foo"; - var arg_offset = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13418,27 +15316,96 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["sonar"].first, unittest.equals("$arg_sonar")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleProtobufEmpty()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .undeploy(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleProtobufEmpty(response); + }))); + }); + }); + + unittest.group("resource-OrganizationsEnvironmentsStatsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsEnvironmentsStatsResourceApi res = + new api.ApigeeApi(mock).organizations.environments.stats; + var arg_name = "foo"; + var arg_tsAscending = true; + var arg_timeRange = "foo"; + var arg_topk = "foo"; + var arg_accuracy = "foo"; + var arg_select = "foo"; + var arg_limit = "foo"; + var arg_sortby = "foo"; + var arg_filter = "foo"; + var arg_aggTable = "foo"; + var arg_sonar = true; + var arg_timeUnit = "foo"; + var arg_offset = "foo"; + var arg_sort = "foo"; + var arg_realtime = true; + var arg_tzo = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; unittest.expect( - queryMap["realtime"].first, unittest.equals("$arg_realtime")); - unittest.expect(queryMap["tzo"].first, unittest.equals(arg_tzo)); - unittest.expect(queryMap["sortby"].first, unittest.equals(arg_sortby)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; unittest.expect( - queryMap["timeUnit"].first, unittest.equals(arg_timeUnit)); - unittest.expect( - queryMap["aggTable"].first, unittest.equals(arg_aggTable)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(queryMap["topk"].first, unittest.equals(arg_topk)); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["tsAscending"].first, unittest.equals("$arg_tsAscending")); unittest.expect( queryMap["timeRange"].first, unittest.equals(arg_timeRange)); - unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); - unittest.expect(queryMap["limit"].first, unittest.equals(arg_limit)); + unittest.expect(queryMap["topk"].first, unittest.equals(arg_topk)); unittest.expect( queryMap["accuracy"].first, unittest.equals(arg_accuracy)); + unittest.expect(queryMap["select"].first, unittest.equals(arg_select)); + unittest.expect(queryMap["limit"].first, unittest.equals(arg_limit)); + unittest.expect(queryMap["sortby"].first, unittest.equals(arg_sortby)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["aggTable"].first, unittest.equals(arg_aggTable)); + unittest.expect(queryMap["sonar"].first, unittest.equals("$arg_sonar")); + unittest.expect( + queryMap["timeUnit"].first, unittest.equals(arg_timeUnit)); unittest.expect(queryMap["offset"].first, unittest.equals(arg_offset)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect( + queryMap["realtime"].first, unittest.equals("$arg_realtime")); + unittest.expect(queryMap["tzo"].first, unittest.equals(arg_tzo)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -13449,21 +15416,21 @@ }), true); res .get(arg_name, - sonar: arg_sonar, - realtime: arg_realtime, - tzo: arg_tzo, - sortby: arg_sortby, - filter: arg_filter, - timeUnit: arg_timeUnit, - aggTable: arg_aggTable, - sort: arg_sort, - topk: arg_topk, tsAscending: arg_tsAscending, timeRange: arg_timeRange, + topk: arg_topk, + accuracy: arg_accuracy, select: arg_select, limit: arg_limit, - accuracy: arg_accuracy, + sortby: arg_sortby, + filter: arg_filter, + aggTable: arg_aggTable, + sonar: arg_sonar, + timeUnit: arg_timeUnit, offset: arg_offset, + sort: arg_sort, + realtime: arg_realtime, + tzo: arg_tzo, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudApigeeV1Stats(response); @@ -13692,6 +15659,514 @@ }); }); + unittest.group("resource-OrganizationsInstancesResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesResourceApi res = + new api.ApigeeApi(mock).organizations.instances; + var arg_request = buildGoogleCloudApigeeV1Instance(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1Instance.fromJson(json); + checkGoogleCloudApigeeV1Instance(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesResourceApi res = + new api.ApigeeApi(mock).organizations.instances; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesResourceApi res = + new api.ApigeeApi(mock).organizations.instances; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudApigeeV1Instance()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1Instance(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesResourceApi res = + new api.ApigeeApi(mock).organizations.instances; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1ListInstancesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListInstancesResponse(response); + }))); + }); + + unittest.test("method--reportStatus", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesResourceApi res = + new api.ApigeeApi(mock).organizations.instances; + var arg_request = buildGoogleCloudApigeeV1ReportInstanceStatusRequest(); + var arg_instance = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleCloudApigeeV1ReportInstanceStatusRequest.fromJson( + json); + checkGoogleCloudApigeeV1ReportInstanceStatusRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1ReportInstanceStatusResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .reportStatus(arg_request, arg_instance, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ReportInstanceStatusResponse(response); + }))); + }); + }); + + unittest.group("resource-OrganizationsInstancesAttachmentsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.instances.attachments; + var arg_request = buildGoogleCloudApigeeV1InstanceAttachment(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleCloudApigeeV1InstanceAttachment.fromJson(json); + checkGoogleCloudApigeeV1InstanceAttachment(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.instances.attachments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.instances.attachments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudApigeeV1InstanceAttachment()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1InstanceAttachment(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OrganizationsInstancesAttachmentsResourceApi res = + new api.ApigeeApi(mock).organizations.instances.attachments; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudApigeeV1ListInstanceAttachmentsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudApigeeV1ListInstanceAttachmentsResponse(response); + }))); + }); + }); + unittest.group("resource-OrganizationsKeyvaluemapsResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -13860,9 +16335,9 @@ api.OrganizationsOperationsResourceApi res = new api.ApigeeApi(mock).organizations.operations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13895,11 +16370,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -13911,9 +16386,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/appengine/v1_test.dart b/generated/googleapis/test/appengine/v1_test.dart index 9424695..b2c1307 100644 --- a/generated/googleapis/test/appengine/v1_test.dart +++ b/generated/googleapis/test/appengine/v1_test.dart
@@ -96,14 +96,14 @@ buildCounterApiEndpointHandler--; } -buildUnnamed3962() { +buildUnnamed4161() { var o = new core.List<api.UrlDispatchRule>(); o.add(buildUrlDispatchRule()); o.add(buildUrlDispatchRule()); return o; } -checkUnnamed3962(core.List<api.UrlDispatchRule> o) { +checkUnnamed4161(core.List<api.UrlDispatchRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlDispatchRule(o[0]); checkUrlDispatchRule(o[1]); @@ -116,10 +116,11 @@ if (buildCounterApplication < 3) { o.authDomain = "foo"; o.codeBucket = "foo"; + o.databaseType = "foo"; o.defaultBucket = "foo"; o.defaultCookieExpiration = "foo"; o.defaultHostname = "foo"; - o.dispatchRules = buildUnnamed3962(); + o.dispatchRules = buildUnnamed4161(); o.featureSettings = buildFeatureSettings(); o.gcrDomain = "foo"; o.iap = buildIdentityAwareProxy(); @@ -137,10 +138,11 @@ if (buildCounterApplication < 3) { unittest.expect(o.authDomain, unittest.equals('foo')); unittest.expect(o.codeBucket, unittest.equals('foo')); + unittest.expect(o.databaseType, unittest.equals('foo')); unittest.expect(o.defaultBucket, unittest.equals('foo')); unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); unittest.expect(o.defaultHostname, unittest.equals('foo')); - checkUnnamed3962(o.dispatchRules); + checkUnnamed4161(o.dispatchRules); checkFeatureSettings(o.featureSettings); unittest.expect(o.gcrDomain, unittest.equals('foo')); checkIdentityAwareProxy(o.iap); @@ -152,27 +154,27 @@ buildCounterApplication--; } -buildUnnamed3963() { +buildUnnamed4162() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3963(core.List<core.String> o) { +checkUnnamed4162(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3964() { +buildUnnamed4163() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3964(core.List<core.String> o) { +checkUnnamed4163(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -186,12 +188,12 @@ o.certificateRawData = buildCertificateRawData(); o.displayName = "foo"; o.domainMappingsCount = 42; - o.domainNames = buildUnnamed3963(); + o.domainNames = buildUnnamed4162(); o.expireTime = "foo"; o.id = "foo"; o.managedCertificate = buildManagedCertificate(); o.name = "foo"; - o.visibleDomainMappings = buildUnnamed3964(); + o.visibleDomainMappings = buildUnnamed4163(); } buildCounterAuthorizedCertificate--; return o; @@ -203,12 +205,12 @@ checkCertificateRawData(o.certificateRawData); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.domainMappingsCount, unittest.equals(42)); - checkUnnamed3963(o.domainNames); + checkUnnamed4162(o.domainNames); unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkManagedCertificate(o.managedCertificate); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3964(o.visibleDomainMappings); + checkUnnamed4163(o.visibleDomainMappings); } buildCounterAuthorizedCertificate--; } @@ -298,14 +300,14 @@ buildCounterBasicScaling--; } -buildUnnamed3965() { +buildUnnamed4164() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3965(core.List<api.FirewallRule> o) { +checkUnnamed4164(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -316,7 +318,7 @@ var o = new api.BatchUpdateIngressRulesRequest(); buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - o.ingressRules = buildUnnamed3965(); + o.ingressRules = buildUnnamed4164(); } buildCounterBatchUpdateIngressRulesRequest--; return o; @@ -325,19 +327,19 @@ checkBatchUpdateIngressRulesRequest(api.BatchUpdateIngressRulesRequest o) { buildCounterBatchUpdateIngressRulesRequest++; if (buildCounterBatchUpdateIngressRulesRequest < 3) { - checkUnnamed3965(o.ingressRules); + checkUnnamed4164(o.ingressRules); } buildCounterBatchUpdateIngressRulesRequest--; } -buildUnnamed3966() { +buildUnnamed4165() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3966(core.List<api.FirewallRule> o) { +checkUnnamed4165(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -348,7 +350,7 @@ var o = new api.BatchUpdateIngressRulesResponse(); buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed3966(); + o.ingressRules = buildUnnamed4165(); } buildCounterBatchUpdateIngressRulesResponse--; return o; @@ -357,7 +359,7 @@ checkBatchUpdateIngressRulesResponse(api.BatchUpdateIngressRulesResponse o) { buildCounterBatchUpdateIngressRulesResponse++; if (buildCounterBatchUpdateIngressRulesResponse < 3) { - checkUnnamed3966(o.ingressRules); + checkUnnamed4165(o.ingressRules); } buildCounterBatchUpdateIngressRulesResponse--; } @@ -520,14 +522,14 @@ buildCounterDebugInstanceRequest--; } -buildUnnamed3967() { +buildUnnamed4166() { var o = new core.Map<core.String, api.FileInfo>(); o["x"] = buildFileInfo(); o["y"] = buildFileInfo(); return o; } -checkUnnamed3967(core.Map<core.String, api.FileInfo> o) { +checkUnnamed4166(core.Map<core.String, api.FileInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkFileInfo(o["x"]); checkFileInfo(o["y"]); @@ -540,7 +542,7 @@ if (buildCounterDeployment < 3) { o.cloudBuildOptions = buildCloudBuildOptions(); o.container = buildContainerInfo(); - o.files = buildUnnamed3967(); + o.files = buildUnnamed4166(); o.zip = buildZipInfo(); } buildCounterDeployment--; @@ -552,7 +554,7 @@ if (buildCounterDeployment < 3) { checkCloudBuildOptions(o.cloudBuildOptions); checkContainerInfo(o.container); - checkUnnamed3967(o.files); + checkUnnamed4166(o.files); checkZipInfo(o.zip); } buildCounterDeployment--; @@ -583,14 +585,14 @@ buildCounterDiskUtilization--; } -buildUnnamed3968() { +buildUnnamed4167() { var o = new core.List<api.ResourceRecord>(); o.add(buildResourceRecord()); o.add(buildResourceRecord()); return o; } -checkUnnamed3968(core.List<api.ResourceRecord> o) { +checkUnnamed4167(core.List<api.ResourceRecord> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecord(o[0]); checkResourceRecord(o[1]); @@ -603,7 +605,7 @@ if (buildCounterDomainMapping < 3) { o.id = "foo"; o.name = "foo"; - o.resourceRecords = buildUnnamed3968(); + o.resourceRecords = buildUnnamed4167(); o.sslSettings = buildSslSettings(); } buildCounterDomainMapping--; @@ -615,7 +617,7 @@ if (buildCounterDomainMapping < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3968(o.resourceRecords); + checkUnnamed4167(o.resourceRecords); checkSslSettings(o.sslSettings); } buildCounterDomainMapping--; @@ -898,14 +900,14 @@ buildCounterLibrary--; } -buildUnnamed3969() { +buildUnnamed4168() { var o = new core.List<api.AuthorizedCertificate>(); o.add(buildAuthorizedCertificate()); o.add(buildAuthorizedCertificate()); return o; } -checkUnnamed3969(core.List<api.AuthorizedCertificate> o) { +checkUnnamed4168(core.List<api.AuthorizedCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedCertificate(o[0]); checkAuthorizedCertificate(o[1]); @@ -916,7 +918,7 @@ var o = new api.ListAuthorizedCertificatesResponse(); buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - o.certificates = buildUnnamed3969(); + o.certificates = buildUnnamed4168(); o.nextPageToken = "foo"; } buildCounterListAuthorizedCertificatesResponse--; @@ -927,20 +929,20 @@ api.ListAuthorizedCertificatesResponse o) { buildCounterListAuthorizedCertificatesResponse++; if (buildCounterListAuthorizedCertificatesResponse < 3) { - checkUnnamed3969(o.certificates); + checkUnnamed4168(o.certificates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedCertificatesResponse--; } -buildUnnamed3970() { +buildUnnamed4169() { var o = new core.List<api.AuthorizedDomain>(); o.add(buildAuthorizedDomain()); o.add(buildAuthorizedDomain()); return o; } -checkUnnamed3970(core.List<api.AuthorizedDomain> o) { +checkUnnamed4169(core.List<api.AuthorizedDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedDomain(o[0]); checkAuthorizedDomain(o[1]); @@ -951,7 +953,7 @@ var o = new api.ListAuthorizedDomainsResponse(); buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - o.domains = buildUnnamed3970(); + o.domains = buildUnnamed4169(); o.nextPageToken = "foo"; } buildCounterListAuthorizedDomainsResponse--; @@ -961,20 +963,20 @@ checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - checkUnnamed3970(o.domains); + checkUnnamed4169(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedDomainsResponse--; } -buildUnnamed3971() { +buildUnnamed4170() { var o = new core.List<api.DomainMapping>(); o.add(buildDomainMapping()); o.add(buildDomainMapping()); return o; } -checkUnnamed3971(core.List<api.DomainMapping> o) { +checkUnnamed4170(core.List<api.DomainMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainMapping(o[0]); checkDomainMapping(o[1]); @@ -985,7 +987,7 @@ var o = new api.ListDomainMappingsResponse(); buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - o.domainMappings = buildUnnamed3971(); + o.domainMappings = buildUnnamed4170(); o.nextPageToken = "foo"; } buildCounterListDomainMappingsResponse--; @@ -995,20 +997,20 @@ checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { - checkUnnamed3971(o.domainMappings); + checkUnnamed4170(o.domainMappings); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDomainMappingsResponse--; } -buildUnnamed3972() { +buildUnnamed4171() { var o = new core.List<api.FirewallRule>(); o.add(buildFirewallRule()); o.add(buildFirewallRule()); return o; } -checkUnnamed3972(core.List<api.FirewallRule> o) { +checkUnnamed4171(core.List<api.FirewallRule> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallRule(o[0]); checkFirewallRule(o[1]); @@ -1019,7 +1021,7 @@ var o = new api.ListIngressRulesResponse(); buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - o.ingressRules = buildUnnamed3972(); + o.ingressRules = buildUnnamed4171(); o.nextPageToken = "foo"; } buildCounterListIngressRulesResponse--; @@ -1029,20 +1031,20 @@ checkListIngressRulesResponse(api.ListIngressRulesResponse o) { buildCounterListIngressRulesResponse++; if (buildCounterListIngressRulesResponse < 3) { - checkUnnamed3972(o.ingressRules); + checkUnnamed4171(o.ingressRules); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListIngressRulesResponse--; } -buildUnnamed3973() { +buildUnnamed4172() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3973(core.List<api.Instance> o) { +checkUnnamed4172(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -1053,7 +1055,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3973(); + o.instances = buildUnnamed4172(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -1063,20 +1065,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3973(o.instances); + checkUnnamed4172(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3974() { +buildUnnamed4173() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3974(core.List<api.Location> o) { +checkUnnamed4173(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1087,7 +1089,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3974(); + o.locations = buildUnnamed4173(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -1097,20 +1099,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3974(o.locations); + checkUnnamed4173(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3975() { +buildUnnamed4174() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3975(core.List<api.Operation> o) { +checkUnnamed4174(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1122,7 +1124,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3975(); + o.operations = buildUnnamed4174(); } buildCounterListOperationsResponse--; return o; @@ -1132,19 +1134,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3975(o.operations); + checkUnnamed4174(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3976() { +buildUnnamed4175() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3976(core.List<api.Service> o) { +checkUnnamed4175(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1156,7 +1158,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3976(); + o.services = buildUnnamed4175(); } buildCounterListServicesResponse--; return o; @@ -1166,19 +1168,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3976(o.services); + checkUnnamed4175(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3977() { +buildUnnamed4176() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed3977(core.List<api.Version> o) { +checkUnnamed4176(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -1190,7 +1192,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3977(); + o.versions = buildUnnamed4176(); } buildCounterListVersionsResponse--; return o; @@ -1200,7 +1202,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3977(o.versions); + checkUnnamed4176(o.versions); } buildCounterListVersionsResponse--; } @@ -1236,20 +1238,20 @@ buildCounterLivenessCheck--; } -buildUnnamed3978() { +buildUnnamed4177() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3978(core.Map<core.String, core.String> o) { +checkUnnamed4177(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')); } -buildUnnamed3979() { +buildUnnamed4178() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1264,7 +1266,7 @@ return o; } -checkUnnamed3979(core.Map<core.String, core.Object> o) { +checkUnnamed4178(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)); @@ -1284,9 +1286,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed3978(); + o.labels = buildUnnamed4177(); o.locationId = "foo"; - o.metadata = buildUnnamed3979(); + o.metadata = buildUnnamed4178(); o.name = "foo"; } buildCounterLocation--; @@ -1297,9 +1299,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3978(o.labels); + checkUnnamed4177(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3979(o.metadata); + checkUnnamed4178(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -1366,14 +1368,14 @@ buildCounterManualScaling--; } -buildUnnamed3980() { +buildUnnamed4179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3980(core.List<core.String> o) { +checkUnnamed4179(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1384,7 +1386,7 @@ var o = new api.Network(); buildCounterNetwork++; if (buildCounterNetwork < 3) { - o.forwardedPorts = buildUnnamed3980(); + o.forwardedPorts = buildUnnamed4179(); o.instanceTag = "foo"; o.name = "foo"; o.sessionAffinity = true; @@ -1397,7 +1399,7 @@ checkNetwork(api.Network o) { buildCounterNetwork++; if (buildCounterNetwork < 3) { - checkUnnamed3980(o.forwardedPorts); + checkUnnamed4179(o.forwardedPorts); unittest.expect(o.instanceTag, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sessionAffinity, unittest.isTrue); @@ -1406,6 +1408,25 @@ buildCounterNetwork--; } +core.int buildCounterNetworkSettings = 0; +buildNetworkSettings() { + var o = new api.NetworkSettings(); + buildCounterNetworkSettings++; + if (buildCounterNetworkSettings < 3) { + o.ingressTrafficAllowed = "foo"; + } + buildCounterNetworkSettings--; + return o; +} + +checkNetworkSettings(api.NetworkSettings o) { + buildCounterNetworkSettings++; + if (buildCounterNetworkSettings < 3) { + unittest.expect(o.ingressTrafficAllowed, unittest.equals('foo')); + } + buildCounterNetworkSettings--; +} + core.int buildCounterNetworkUtilization = 0; buildNetworkUtilization() { var o = new api.NetworkUtilization(); @@ -1431,7 +1452,7 @@ buildCounterNetworkUtilization--; } -buildUnnamed3981() { +buildUnnamed4180() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1446,7 +1467,7 @@ return o; } -checkUnnamed3981(core.Map<core.String, core.Object> o) { +checkUnnamed4180(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)); @@ -1460,7 +1481,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3982() { +buildUnnamed4181() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1475,7 +1496,7 @@ return o; } -checkUnnamed3982(core.Map<core.String, core.Object> o) { +checkUnnamed4181(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)); @@ -1496,9 +1517,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3981(); + o.metadata = buildUnnamed4180(); o.name = "foo"; - o.response = buildUnnamed3982(); + o.response = buildUnnamed4181(); } buildCounterOperation--; return o; @@ -1509,21 +1530,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3981(o.metadata); + checkUnnamed4180(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3982(o.response); + checkUnnamed4181(o.response); } buildCounterOperation--; } -buildUnnamed3983() { +buildUnnamed4182() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3983(core.List<core.String> o) { +checkUnnamed4182(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1541,7 +1562,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3983(); + o.warning = buildUnnamed4182(); } buildCounterOperationMetadataV1--; return o; @@ -1557,19 +1578,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3983(o.warning); + checkUnnamed4182(o.warning); } buildCounterOperationMetadataV1--; } -buildUnnamed3984() { +buildUnnamed4183() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3984(core.List<core.String> o) { +checkUnnamed4183(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1587,7 +1608,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3984(); + o.warning = buildUnnamed4183(); } buildCounterOperationMetadataV1Alpha--; return o; @@ -1603,19 +1624,19 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3984(o.warning); + checkUnnamed4183(o.warning); } buildCounterOperationMetadataV1Alpha--; } -buildUnnamed3985() { +buildUnnamed4184() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3985(core.List<core.String> o) { +checkUnnamed4184(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1633,7 +1654,7 @@ o.method = "foo"; o.target = "foo"; o.user = "foo"; - o.warning = buildUnnamed3985(); + o.warning = buildUnnamed4184(); } buildCounterOperationMetadataV1Beta--; return o; @@ -1649,7 +1670,7 @@ unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed3985(o.warning); + checkUnnamed4184(o.warning); } buildCounterOperationMetadataV1Beta--; } @@ -1744,14 +1765,14 @@ buildCounterResourceRecord--; } -buildUnnamed3986() { +buildUnnamed4185() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3986(core.List<api.Volume> o) { +checkUnnamed4185(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1764,8 +1785,9 @@ if (buildCounterResources < 3) { o.cpu = 42.0; o.diskGb = 42.0; + o.kmsKeyReference = "foo"; o.memoryGb = 42.0; - o.volumes = buildUnnamed3986(); + o.volumes = buildUnnamed4185(); } buildCounterResources--; return o; @@ -1776,8 +1798,9 @@ if (buildCounterResources < 3) { unittest.expect(o.cpu, unittest.equals(42.0)); unittest.expect(o.diskGb, unittest.equals(42.0)); + unittest.expect(o.kmsKeyReference, unittest.equals('foo')); unittest.expect(o.memoryGb, unittest.equals(42.0)); - checkUnnamed3986(o.volumes); + checkUnnamed4185(o.volumes); } buildCounterResources--; } @@ -1808,6 +1831,7 @@ if (buildCounterService < 3) { o.id = "foo"; o.name = "foo"; + o.networkSettings = buildNetworkSettings(); o.split = buildTrafficSplit(); } buildCounterService--; @@ -1819,6 +1843,7 @@ if (buildCounterService < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkNetworkSettings(o.networkSettings); checkTrafficSplit(o.split); } buildCounterService--; @@ -1872,14 +1897,14 @@ buildCounterStandardSchedulerSettings--; } -buildUnnamed3987() { +buildUnnamed4186() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3987(core.Map<core.String, core.String> o) { +checkUnnamed4186(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')); @@ -1892,7 +1917,7 @@ if (buildCounterStaticFilesHandler < 3) { o.applicationReadable = true; o.expiration = "foo"; - o.httpHeaders = buildUnnamed3987(); + o.httpHeaders = buildUnnamed4186(); o.mimeType = "foo"; o.path = "foo"; o.requireMatchingFile = true; @@ -1907,7 +1932,7 @@ if (buildCounterStaticFilesHandler < 3) { unittest.expect(o.applicationReadable, unittest.isTrue); unittest.expect(o.expiration, unittest.equals('foo')); - checkUnnamed3987(o.httpHeaders); + checkUnnamed4186(o.httpHeaders); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.requireMatchingFile, unittest.isTrue); @@ -1916,7 +1941,7 @@ buildCounterStaticFilesHandler--; } -buildUnnamed3988() { +buildUnnamed4187() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1931,7 +1956,7 @@ return o; } -checkUnnamed3988(core.Map<core.String, core.Object> o) { +checkUnnamed4187(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)); @@ -1945,17 +1970,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3989() { +buildUnnamed4188() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3988()); - o.add(buildUnnamed3988()); + o.add(buildUnnamed4187()); + o.add(buildUnnamed4187()); return o; } -checkUnnamed3989(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4188(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3988(o[0]); - checkUnnamed3988(o[1]); + checkUnnamed4187(o[0]); + checkUnnamed4187(o[1]); } core.int buildCounterStatus = 0; @@ -1964,7 +1989,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3989(); + o.details = buildUnnamed4188(); o.message = "foo"; } buildCounterStatus--; @@ -1975,20 +2000,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3989(o.details); + checkUnnamed4188(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3990() { +buildUnnamed4189() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3990(core.Map<core.String, core.double> o) { +checkUnnamed4189(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)); @@ -1999,7 +2024,7 @@ var o = new api.TrafficSplit(); buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - o.allocations = buildUnnamed3990(); + o.allocations = buildUnnamed4189(); o.shardBy = "foo"; } buildCounterTrafficSplit--; @@ -2009,7 +2034,7 @@ checkTrafficSplit(api.TrafficSplit o) { buildCounterTrafficSplit++; if (buildCounterTrafficSplit < 3) { - checkUnnamed3990(o.allocations); + checkUnnamed4189(o.allocations); unittest.expect(o.shardBy, unittest.equals('foo')); } buildCounterTrafficSplit--; @@ -2071,92 +2096,105 @@ buildCounterUrlMap--; } -buildUnnamed3991() { +buildUnnamed4190() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3991(core.Map<core.String, core.String> o) { +checkUnnamed4190(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')); } -buildUnnamed3992() { +buildUnnamed4191() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3992(core.Map<core.String, core.String> o) { +checkUnnamed4191(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')); } -buildUnnamed3993() { +buildUnnamed4192() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed4192(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')); +} + +buildUnnamed4193() { var o = new core.List<api.ErrorHandler>(); o.add(buildErrorHandler()); o.add(buildErrorHandler()); return o; } -checkUnnamed3993(core.List<api.ErrorHandler> o) { +checkUnnamed4193(core.List<api.ErrorHandler> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorHandler(o[0]); checkErrorHandler(o[1]); } -buildUnnamed3994() { +buildUnnamed4194() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed3994(core.List<api.UrlMap> o) { +checkUnnamed4194(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); } -buildUnnamed3995() { +buildUnnamed4195() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3995(core.List<core.String> o) { +checkUnnamed4195(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3996() { +buildUnnamed4196() { var o = new core.List<api.Library>(); o.add(buildLibrary()); o.add(buildLibrary()); return o; } -checkUnnamed3996(core.List<api.Library> o) { +checkUnnamed4196(core.List<api.Library> o) { unittest.expect(o, unittest.hasLength(2)); checkLibrary(o[0]); checkLibrary(o[1]); } -buildUnnamed3997() { +buildUnnamed4197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3997(core.List<core.String> o) { +checkUnnamed4197(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2170,7 +2208,8 @@ o.apiConfig = buildApiConfigHandler(); o.automaticScaling = buildAutomaticScaling(); o.basicScaling = buildBasicScaling(); - o.betaSettings = buildUnnamed3991(); + o.betaSettings = buildUnnamed4190(); + o.buildEnvVariables = buildUnnamed4191(); o.createTime = "foo"; o.createdBy = "foo"; o.defaultExpiration = "foo"; @@ -2179,14 +2218,14 @@ o.endpointsApiService = buildEndpointsApiService(); o.entrypoint = buildEntrypoint(); o.env = "foo"; - o.envVariables = buildUnnamed3992(); - o.errorHandlers = buildUnnamed3993(); - o.handlers = buildUnnamed3994(); + o.envVariables = buildUnnamed4192(); + o.errorHandlers = buildUnnamed4193(); + o.handlers = buildUnnamed4194(); o.healthCheck = buildHealthCheck(); o.id = "foo"; - o.inboundServices = buildUnnamed3995(); + o.inboundServices = buildUnnamed4195(); o.instanceClass = "foo"; - o.libraries = buildUnnamed3996(); + o.libraries = buildUnnamed4196(); o.livenessCheck = buildLivenessCheck(); o.manualScaling = buildManualScaling(); o.name = "foo"; @@ -2203,7 +2242,7 @@ o.versionUrl = "foo"; o.vm = true; o.vpcAccessConnector = buildVpcAccessConnector(); - o.zones = buildUnnamed3997(); + o.zones = buildUnnamed4197(); } buildCounterVersion--; return o; @@ -2215,7 +2254,8 @@ checkApiConfigHandler(o.apiConfig); checkAutomaticScaling(o.automaticScaling); checkBasicScaling(o.basicScaling); - checkUnnamed3991(o.betaSettings); + checkUnnamed4190(o.betaSettings); + checkUnnamed4191(o.buildEnvVariables); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.createdBy, unittest.equals('foo')); unittest.expect(o.defaultExpiration, unittest.equals('foo')); @@ -2224,14 +2264,14 @@ checkEndpointsApiService(o.endpointsApiService); checkEntrypoint(o.entrypoint); unittest.expect(o.env, unittest.equals('foo')); - checkUnnamed3992(o.envVariables); - checkUnnamed3993(o.errorHandlers); - checkUnnamed3994(o.handlers); + checkUnnamed4192(o.envVariables); + checkUnnamed4193(o.errorHandlers); + checkUnnamed4194(o.handlers); checkHealthCheck(o.healthCheck); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3995(o.inboundServices); + checkUnnamed4195(o.inboundServices); unittest.expect(o.instanceClass, unittest.equals('foo')); - checkUnnamed3996(o.libraries); + checkUnnamed4196(o.libraries); checkLivenessCheck(o.livenessCheck); checkManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); @@ -2248,7 +2288,7 @@ unittest.expect(o.versionUrl, unittest.equals('foo')); unittest.expect(o.vm, unittest.isTrue); checkVpcAccessConnector(o.vpcAccessConnector); - checkUnnamed3997(o.zones); + checkUnnamed4197(o.zones); } buildCounterVersion--; } @@ -2685,6 +2725,14 @@ }); }); + unittest.group("obj-schema-NetworkSettings", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkSettings(); + var od = new api.NetworkSettings.fromJson(o.toJson()); + checkNetworkSettings(od); + }); + }); + unittest.group("obj-schema-NetworkUtilization", () { unittest.test("to-json--from-json", () { var o = buildNetworkUtilization(); @@ -3305,9 +3353,9 @@ api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock).apps.authorizedCertificates; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3348,11 +3396,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3364,9 +3412,9 @@ }), true); res .list(arg_appsId, - pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAuthorizedCertificatesResponse(response); @@ -3453,8 +3501,8 @@ api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps.authorizedDomains; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3495,10 +3543,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3509,8 +3557,8 @@ }), true); res .list(arg_appsId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAuthorizedDomainsResponse(response); @@ -3720,8 +3768,8 @@ api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.domainMappings; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3762,10 +3810,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3776,8 +3824,8 @@ }), true); res .list(arg_appsId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDomainMappingsResponse(response); @@ -4330,8 +4378,8 @@ api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locations; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4373,10 +4421,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4388,8 +4436,8 @@ }), true); res .list(arg_appsId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4468,8 +4516,8 @@ api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operations; var arg_appsId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4511,10 +4559,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4526,8 +4574,8 @@ }), true); res .list(arg_appsId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4741,8 +4789,8 @@ var arg_request = buildService(); var arg_appsId = "foo"; var arg_servicesId = "foo"; - var arg_updateMask = "foo"; var arg_migrateTraffic = true; + var arg_updateMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Service.fromJson(json); @@ -4789,10 +4837,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_migrateTraffic")); + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4803,8 +4851,8 @@ }), true); res .patch(arg_request, arg_appsId, arg_servicesId, - updateMask: arg_updateMask, migrateTraffic: arg_migrateTraffic, + updateMask: arg_updateMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response);
diff --git a/generated/googleapis/test/appsactivity/v1_test.dart b/generated/googleapis/test/appsactivity/v1_test.dart deleted file mode 100644 index b31b0d8..0000000 --- a/generated/googleapis/test/appsactivity/v1_test.dart +++ /dev/null
@@ -1,587 +0,0 @@ -library googleapis.appsactivity.v1.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/appsactivity/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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed61() { - var o = new core.List<api.Event>(); - o.add(buildEvent()); - o.add(buildEvent()); - return o; -} - -checkUnnamed61(core.List<api.Event> o) { - unittest.expect(o, unittest.hasLength(2)); - checkEvent(o[0]); - checkEvent(o[1]); -} - -core.int buildCounterActivity = 0; -buildActivity() { - var o = new api.Activity(); - buildCounterActivity++; - if (buildCounterActivity < 3) { - o.combinedEvent = buildEvent(); - o.singleEvents = buildUnnamed61(); - } - buildCounterActivity--; - return o; -} - -checkActivity(api.Activity o) { - buildCounterActivity++; - if (buildCounterActivity < 3) { - checkEvent(o.combinedEvent); - checkUnnamed61(o.singleEvents); - } - buildCounterActivity--; -} - -buildUnnamed62() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed62(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed63() { - var o = new core.List<api.PermissionChange>(); - o.add(buildPermissionChange()); - o.add(buildPermissionChange()); - return o; -} - -checkUnnamed63(core.List<api.PermissionChange> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPermissionChange(o[0]); - checkPermissionChange(o[1]); -} - -core.int buildCounterEvent = 0; -buildEvent() { - var o = new api.Event(); - buildCounterEvent++; - if (buildCounterEvent < 3) { - o.additionalEventTypes = buildUnnamed62(); - o.eventTimeMillis = "foo"; - o.fromUserDeletion = true; - o.move = buildMove(); - o.permissionChanges = buildUnnamed63(); - o.primaryEventType = "foo"; - o.rename = buildRename(); - o.target = buildTarget(); - o.user = buildUser(); - } - buildCounterEvent--; - return o; -} - -checkEvent(api.Event o) { - buildCounterEvent++; - if (buildCounterEvent < 3) { - checkUnnamed62(o.additionalEventTypes); - unittest.expect(o.eventTimeMillis, unittest.equals('foo')); - unittest.expect(o.fromUserDeletion, unittest.isTrue); - checkMove(o.move); - checkUnnamed63(o.permissionChanges); - unittest.expect(o.primaryEventType, unittest.equals('foo')); - checkRename(o.rename); - checkTarget(o.target); - checkUser(o.user); - } - buildCounterEvent--; -} - -buildUnnamed64() { - var o = new core.List<api.Activity>(); - o.add(buildActivity()); - o.add(buildActivity()); - return o; -} - -checkUnnamed64(core.List<api.Activity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkActivity(o[0]); - checkActivity(o[1]); -} - -core.int buildCounterListActivitiesResponse = 0; -buildListActivitiesResponse() { - var o = new api.ListActivitiesResponse(); - buildCounterListActivitiesResponse++; - if (buildCounterListActivitiesResponse < 3) { - o.activities = buildUnnamed64(); - o.nextPageToken = "foo"; - } - buildCounterListActivitiesResponse--; - return o; -} - -checkListActivitiesResponse(api.ListActivitiesResponse o) { - buildCounterListActivitiesResponse++; - if (buildCounterListActivitiesResponse < 3) { - checkUnnamed64(o.activities); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterListActivitiesResponse--; -} - -buildUnnamed65() { - var o = new core.List<api.Parent>(); - o.add(buildParent()); - o.add(buildParent()); - return o; -} - -checkUnnamed65(core.List<api.Parent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParent(o[0]); - checkParent(o[1]); -} - -buildUnnamed66() { - var o = new core.List<api.Parent>(); - o.add(buildParent()); - o.add(buildParent()); - return o; -} - -checkUnnamed66(core.List<api.Parent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParent(o[0]); - checkParent(o[1]); -} - -core.int buildCounterMove = 0; -buildMove() { - var o = new api.Move(); - buildCounterMove++; - if (buildCounterMove < 3) { - o.addedParents = buildUnnamed65(); - o.removedParents = buildUnnamed66(); - } - buildCounterMove--; - return o; -} - -checkMove(api.Move o) { - buildCounterMove++; - if (buildCounterMove < 3) { - checkUnnamed65(o.addedParents); - checkUnnamed66(o.removedParents); - } - buildCounterMove--; -} - -core.int buildCounterParent = 0; -buildParent() { - var o = new api.Parent(); - buildCounterParent++; - if (buildCounterParent < 3) { - o.id = "foo"; - o.isRoot = true; - o.title = "foo"; - } - buildCounterParent--; - return o; -} - -checkParent(api.Parent o) { - buildCounterParent++; - if (buildCounterParent < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.isRoot, unittest.isTrue); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterParent--; -} - -core.int buildCounterPermission = 0; -buildPermission() { - var o = new api.Permission(); - buildCounterPermission++; - if (buildCounterPermission < 3) { - o.name = "foo"; - o.permissionId = "foo"; - o.role = "foo"; - o.type = "foo"; - o.user = buildUser(); - o.withLink = true; - } - buildCounterPermission--; - return o; -} - -checkPermission(api.Permission o) { - buildCounterPermission++; - if (buildCounterPermission < 3) { - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionId, unittest.equals('foo')); - unittest.expect(o.role, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - checkUser(o.user); - unittest.expect(o.withLink, unittest.isTrue); - } - buildCounterPermission--; -} - -buildUnnamed67() { - var o = new core.List<api.Permission>(); - o.add(buildPermission()); - o.add(buildPermission()); - return o; -} - -checkUnnamed67(core.List<api.Permission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPermission(o[0]); - checkPermission(o[1]); -} - -buildUnnamed68() { - var o = new core.List<api.Permission>(); - o.add(buildPermission()); - o.add(buildPermission()); - return o; -} - -checkUnnamed68(core.List<api.Permission> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPermission(o[0]); - checkPermission(o[1]); -} - -core.int buildCounterPermissionChange = 0; -buildPermissionChange() { - var o = new api.PermissionChange(); - buildCounterPermissionChange++; - if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed67(); - o.removedPermissions = buildUnnamed68(); - } - buildCounterPermissionChange--; - return o; -} - -checkPermissionChange(api.PermissionChange o) { - buildCounterPermissionChange++; - if (buildCounterPermissionChange < 3) { - checkUnnamed67(o.addedPermissions); - checkUnnamed68(o.removedPermissions); - } - buildCounterPermissionChange--; -} - -core.int buildCounterPhoto = 0; -buildPhoto() { - var o = new api.Photo(); - buildCounterPhoto++; - if (buildCounterPhoto < 3) { - o.url = "foo"; - } - buildCounterPhoto--; - return o; -} - -checkPhoto(api.Photo o) { - buildCounterPhoto++; - if (buildCounterPhoto < 3) { - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterPhoto--; -} - -core.int buildCounterRename = 0; -buildRename() { - var o = new api.Rename(); - buildCounterRename++; - if (buildCounterRename < 3) { - o.newTitle = "foo"; - o.oldTitle = "foo"; - } - buildCounterRename--; - return o; -} - -checkRename(api.Rename o) { - buildCounterRename++; - if (buildCounterRename < 3) { - unittest.expect(o.newTitle, unittest.equals('foo')); - unittest.expect(o.oldTitle, unittest.equals('foo')); - } - buildCounterRename--; -} - -core.int buildCounterTarget = 0; -buildTarget() { - var o = new api.Target(); - buildCounterTarget++; - if (buildCounterTarget < 3) { - o.id = "foo"; - o.mimeType = "foo"; - o.name = "foo"; - } - buildCounterTarget--; - return o; -} - -checkTarget(api.Target o) { - buildCounterTarget++; - if (buildCounterTarget < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.mimeType, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - } - buildCounterTarget--; -} - -core.int buildCounterUser = 0; -buildUser() { - var o = new api.User(); - buildCounterUser++; - if (buildCounterUser < 3) { - o.isDeleted = true; - o.isMe = true; - o.name = "foo"; - o.permissionId = "foo"; - o.photo = buildPhoto(); - } - buildCounterUser--; - return o; -} - -checkUser(api.User o) { - 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); - } - buildCounterUser--; -} - -main() { - unittest.group("obj-schema-Activity", () { - unittest.test("to-json--from-json", () { - var o = buildActivity(); - var od = new api.Activity.fromJson(o.toJson()); - checkActivity(od); - }); - }); - - unittest.group("obj-schema-Event", () { - unittest.test("to-json--from-json", () { - var o = buildEvent(); - var od = new api.Event.fromJson(o.toJson()); - checkEvent(od); - }); - }); - - unittest.group("obj-schema-ListActivitiesResponse", () { - unittest.test("to-json--from-json", () { - var o = buildListActivitiesResponse(); - var od = new api.ListActivitiesResponse.fromJson(o.toJson()); - checkListActivitiesResponse(od); - }); - }); - - unittest.group("obj-schema-Move", () { - unittest.test("to-json--from-json", () { - var o = buildMove(); - var od = new api.Move.fromJson(o.toJson()); - checkMove(od); - }); - }); - - unittest.group("obj-schema-Parent", () { - unittest.test("to-json--from-json", () { - var o = buildParent(); - var od = new api.Parent.fromJson(o.toJson()); - checkParent(od); - }); - }); - - unittest.group("obj-schema-Permission", () { - unittest.test("to-json--from-json", () { - var o = buildPermission(); - var od = new api.Permission.fromJson(o.toJson()); - checkPermission(od); - }); - }); - - unittest.group("obj-schema-PermissionChange", () { - unittest.test("to-json--from-json", () { - var o = buildPermissionChange(); - var od = new api.PermissionChange.fromJson(o.toJson()); - checkPermissionChange(od); - }); - }); - - unittest.group("obj-schema-Photo", () { - unittest.test("to-json--from-json", () { - var o = buildPhoto(); - var od = new api.Photo.fromJson(o.toJson()); - checkPhoto(od); - }); - }); - - unittest.group("obj-schema-Rename", () { - unittest.test("to-json--from-json", () { - var o = buildRename(); - var od = new api.Rename.fromJson(o.toJson()); - checkRename(od); - }); - }); - - unittest.group("obj-schema-Target", () { - unittest.test("to-json--from-json", () { - var o = buildTarget(); - var od = new api.Target.fromJson(o.toJson()); - checkTarget(od); - }); - }); - - unittest.group("obj-schema-User", () { - unittest.test("to-json--from-json", () { - var o = buildUser(); - var od = new api.User.fromJson(o.toJson()); - checkUser(od); - }); - }); - - unittest.group("resource-ActivitiesResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.ActivitiesResourceApi res = new api.AppsactivityApi(mock).activities; - var arg_drive_ancestorId = "foo"; - var arg_drive_fileId = "foo"; - var arg_groupingStrategy = "foo"; - var arg_pageSize = 42; - var arg_pageToken = "foo"; - var arg_source = "foo"; - var arg_userId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("appsactivity/v1/")); - pathOffset += 16; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("activities")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["drive.ancestorId"].first, - unittest.equals(arg_drive_ancestorId)); - unittest.expect( - queryMap["drive.fileId"].first, unittest.equals(arg_drive_fileId)); - unittest.expect(queryMap["groupingStrategy"].first, - unittest.equals(arg_groupingStrategy)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildListActivitiesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - drive_ancestorId: arg_drive_ancestorId, - drive_fileId: arg_drive_fileId, - groupingStrategy: arg_groupingStrategy, - pageSize: arg_pageSize, - pageToken: arg_pageToken, - source: arg_source, - userId: arg_userId, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListActivitiesResponse(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/bigquery/v2_test.dart b/generated/googleapis/test/bigquery/v2_test.dart index e50a7b1..1f84a89 100644 --- a/generated/googleapis/test/bigquery/v2_test.dart +++ b/generated/googleapis/test/bigquery/v2_test.dart
@@ -106,27 +106,27 @@ buildCounterArgument--; } -buildUnnamed3427() { +buildUnnamed3590() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3427(core.List<core.double> o) { +checkUnnamed3590(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)); } -buildUnnamed3428() { +buildUnnamed3591() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3428(core.List<core.double> o) { +checkUnnamed3591(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)); @@ -137,9 +137,9 @@ var o = new api.ArimaCoefficients(); buildCounterArimaCoefficients++; if (buildCounterArimaCoefficients < 3) { - o.autoRegressiveCoefficients = buildUnnamed3427(); + o.autoRegressiveCoefficients = buildUnnamed3590(); o.interceptCoefficient = 42.0; - o.movingAverageCoefficients = buildUnnamed3428(); + o.movingAverageCoefficients = buildUnnamed3591(); } buildCounterArimaCoefficients--; return o; @@ -148,9 +148,9 @@ checkArimaCoefficients(api.ArimaCoefficients o) { buildCounterArimaCoefficients++; if (buildCounterArimaCoefficients < 3) { - checkUnnamed3427(o.autoRegressiveCoefficients); + checkUnnamed3590(o.autoRegressiveCoefficients); unittest.expect(o.interceptCoefficient, unittest.equals(42.0)); - checkUnnamed3428(o.movingAverageCoefficients); + checkUnnamed3591(o.movingAverageCoefficients); } buildCounterArimaCoefficients--; } @@ -178,14 +178,121 @@ buildCounterArimaFittingMetrics--; } -buildUnnamed3429() { +buildUnnamed3592() { + var o = new core.List<api.ArimaFittingMetrics>(); + o.add(buildArimaFittingMetrics()); + o.add(buildArimaFittingMetrics()); + return o; +} + +checkUnnamed3592(core.List<api.ArimaFittingMetrics> o) { + unittest.expect(o, unittest.hasLength(2)); + checkArimaFittingMetrics(o[0]); + checkArimaFittingMetrics(o[1]); +} + +buildUnnamed3593() { + var o = new core.List<api.ArimaSingleModelForecastingMetrics>(); + o.add(buildArimaSingleModelForecastingMetrics()); + o.add(buildArimaSingleModelForecastingMetrics()); + return o; +} + +checkUnnamed3593(core.List<api.ArimaSingleModelForecastingMetrics> o) { + unittest.expect(o, unittest.hasLength(2)); + checkArimaSingleModelForecastingMetrics(o[0]); + checkArimaSingleModelForecastingMetrics(o[1]); +} + +buildUnnamed3594() { + var o = new core.List<core.bool>(); + o.add(true); + o.add(true); + return o; +} + +checkUnnamed3594(core.List<core.bool> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.isTrue); + unittest.expect(o[1], unittest.isTrue); +} + +buildUnnamed3595() { + var o = new core.List<api.ArimaOrder>(); + o.add(buildArimaOrder()); + o.add(buildArimaOrder()); + return o; +} + +checkUnnamed3595(core.List<api.ArimaOrder> o) { + unittest.expect(o, unittest.hasLength(2)); + checkArimaOrder(o[0]); + checkArimaOrder(o[1]); +} + +buildUnnamed3596() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3429(core.List<core.String> o) { +checkUnnamed3596(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3597() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3597(core.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 buildCounterArimaForecastingMetrics = 0; +buildArimaForecastingMetrics() { + var o = new api.ArimaForecastingMetrics(); + buildCounterArimaForecastingMetrics++; + if (buildCounterArimaForecastingMetrics < 3) { + o.arimaFittingMetrics = buildUnnamed3592(); + o.arimaSingleModelForecastingMetrics = buildUnnamed3593(); + o.hasDrift = buildUnnamed3594(); + o.nonSeasonalOrder = buildUnnamed3595(); + o.seasonalPeriods = buildUnnamed3596(); + o.timeSeriesId = buildUnnamed3597(); + } + buildCounterArimaForecastingMetrics--; + return o; +} + +checkArimaForecastingMetrics(api.ArimaForecastingMetrics o) { + buildCounterArimaForecastingMetrics++; + if (buildCounterArimaForecastingMetrics < 3) { + checkUnnamed3592(o.arimaFittingMetrics); + checkUnnamed3593(o.arimaSingleModelForecastingMetrics); + checkUnnamed3594(o.hasDrift); + checkUnnamed3595(o.nonSeasonalOrder); + checkUnnamed3596(o.seasonalPeriods); + checkUnnamed3597(o.timeSeriesId); + } + buildCounterArimaForecastingMetrics--; +} + +buildUnnamed3598() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -200,7 +307,7 @@ o.arimaFittingMetrics = buildArimaFittingMetrics(); o.hasDrift = true; o.nonSeasonalOrder = buildArimaOrder(); - o.seasonalPeriods = buildUnnamed3429(); + o.seasonalPeriods = buildUnnamed3598(); o.timeSeriesId = "foo"; } buildCounterArimaModelInfo--; @@ -214,7 +321,7 @@ checkArimaFittingMetrics(o.arimaFittingMetrics); unittest.expect(o.hasDrift, unittest.isTrue); checkArimaOrder(o.nonSeasonalOrder); - checkUnnamed3429(o.seasonalPeriods); + checkUnnamed3598(o.seasonalPeriods); unittest.expect(o.timeSeriesId, unittest.equals('foo')); } buildCounterArimaModelInfo--; @@ -243,27 +350,27 @@ buildCounterArimaOrder--; } -buildUnnamed3430() { +buildUnnamed3599() { var o = new core.List<api.ArimaModelInfo>(); o.add(buildArimaModelInfo()); o.add(buildArimaModelInfo()); return o; } -checkUnnamed3430(core.List<api.ArimaModelInfo> o) { +checkUnnamed3599(core.List<api.ArimaModelInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkArimaModelInfo(o[0]); checkArimaModelInfo(o[1]); } -buildUnnamed3431() { +buildUnnamed3600() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3431(core.List<core.String> o) { +checkUnnamed3600(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -274,8 +381,8 @@ var o = new api.ArimaResult(); buildCounterArimaResult++; if (buildCounterArimaResult < 3) { - o.arimaModelInfo = buildUnnamed3430(); - o.seasonalPeriods = buildUnnamed3431(); + o.arimaModelInfo = buildUnnamed3599(); + o.seasonalPeriods = buildUnnamed3600(); } buildCounterArimaResult--; return o; @@ -284,20 +391,61 @@ checkArimaResult(api.ArimaResult o) { buildCounterArimaResult++; if (buildCounterArimaResult < 3) { - checkUnnamed3430(o.arimaModelInfo); - checkUnnamed3431(o.seasonalPeriods); + checkUnnamed3599(o.arimaModelInfo); + checkUnnamed3600(o.seasonalPeriods); } buildCounterArimaResult--; } -buildUnnamed3432() { +buildUnnamed3601() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3601(core.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 buildCounterArimaSingleModelForecastingMetrics = 0; +buildArimaSingleModelForecastingMetrics() { + var o = new api.ArimaSingleModelForecastingMetrics(); + buildCounterArimaSingleModelForecastingMetrics++; + if (buildCounterArimaSingleModelForecastingMetrics < 3) { + o.arimaFittingMetrics = buildArimaFittingMetrics(); + o.hasDrift = true; + o.nonSeasonalOrder = buildArimaOrder(); + o.seasonalPeriods = buildUnnamed3601(); + o.timeSeriesId = "foo"; + } + buildCounterArimaSingleModelForecastingMetrics--; + return o; +} + +checkArimaSingleModelForecastingMetrics( + api.ArimaSingleModelForecastingMetrics o) { + buildCounterArimaSingleModelForecastingMetrics++; + if (buildCounterArimaSingleModelForecastingMetrics < 3) { + checkArimaFittingMetrics(o.arimaFittingMetrics); + unittest.expect(o.hasDrift, unittest.isTrue); + checkArimaOrder(o.nonSeasonalOrder); + checkUnnamed3601(o.seasonalPeriods); + unittest.expect(o.timeSeriesId, unittest.equals('foo')); + } + buildCounterArimaSingleModelForecastingMetrics--; +} + +buildUnnamed3602() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3432(core.List<api.AuditLogConfig> o) { +checkUnnamed3602(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -308,7 +456,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3432(); + o.auditLogConfigs = buildUnnamed3602(); o.service = "foo"; } buildCounterAuditConfig--; @@ -318,20 +466,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3432(o.auditLogConfigs); + checkUnnamed3602(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3433() { +buildUnnamed3603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3433(core.List<core.String> o) { +checkUnnamed3603(core.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,7 +490,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3433(); + o.exemptedMembers = buildUnnamed3603(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -352,7 +500,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3433(o.exemptedMembers); + checkUnnamed3603(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -408,14 +556,14 @@ buildCounterBigtableColumn--; } -buildUnnamed3434() { +buildUnnamed3604() { var o = new core.List<api.BigtableColumn>(); o.add(buildBigtableColumn()); o.add(buildBigtableColumn()); return o; } -checkUnnamed3434(core.List<api.BigtableColumn> o) { +checkUnnamed3604(core.List<api.BigtableColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumn(o[0]); checkBigtableColumn(o[1]); @@ -426,7 +574,7 @@ var o = new api.BigtableColumnFamily(); buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - o.columns = buildUnnamed3434(); + o.columns = buildUnnamed3604(); o.encoding = "foo"; o.familyId = "foo"; o.onlyReadLatest = true; @@ -439,7 +587,7 @@ checkBigtableColumnFamily(api.BigtableColumnFamily o) { buildCounterBigtableColumnFamily++; if (buildCounterBigtableColumnFamily < 3) { - checkUnnamed3434(o.columns); + checkUnnamed3604(o.columns); unittest.expect(o.encoding, unittest.equals('foo')); unittest.expect(o.familyId, unittest.equals('foo')); unittest.expect(o.onlyReadLatest, unittest.isTrue); @@ -448,14 +596,14 @@ buildCounterBigtableColumnFamily--; } -buildUnnamed3435() { +buildUnnamed3605() { var o = new core.List<api.BigtableColumnFamily>(); o.add(buildBigtableColumnFamily()); o.add(buildBigtableColumnFamily()); return o; } -checkUnnamed3435(core.List<api.BigtableColumnFamily> o) { +checkUnnamed3605(core.List<api.BigtableColumnFamily> o) { unittest.expect(o, unittest.hasLength(2)); checkBigtableColumnFamily(o[0]); checkBigtableColumnFamily(o[1]); @@ -466,7 +614,7 @@ var o = new api.BigtableOptions(); buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - o.columnFamilies = buildUnnamed3435(); + o.columnFamilies = buildUnnamed3605(); o.ignoreUnspecifiedColumnFamilies = true; o.readRowkeyAsString = true; } @@ -477,21 +625,21 @@ checkBigtableOptions(api.BigtableOptions o) { buildCounterBigtableOptions++; if (buildCounterBigtableOptions < 3) { - checkUnnamed3435(o.columnFamilies); + checkUnnamed3605(o.columnFamilies); unittest.expect(o.ignoreUnspecifiedColumnFamilies, unittest.isTrue); unittest.expect(o.readRowkeyAsString, unittest.isTrue); } buildCounterBigtableOptions--; } -buildUnnamed3436() { +buildUnnamed3606() { var o = new core.List<api.BinaryConfusionMatrix>(); o.add(buildBinaryConfusionMatrix()); o.add(buildBinaryConfusionMatrix()); return o; } -checkUnnamed3436(core.List<api.BinaryConfusionMatrix> o) { +checkUnnamed3606(core.List<api.BinaryConfusionMatrix> o) { unittest.expect(o, unittest.hasLength(2)); checkBinaryConfusionMatrix(o[0]); checkBinaryConfusionMatrix(o[1]); @@ -503,7 +651,7 @@ buildCounterBinaryClassificationMetrics++; if (buildCounterBinaryClassificationMetrics < 3) { o.aggregateClassificationMetrics = buildAggregateClassificationMetrics(); - o.binaryConfusionMatrixList = buildUnnamed3436(); + o.binaryConfusionMatrixList = buildUnnamed3606(); o.negativeLabel = "foo"; o.positiveLabel = "foo"; } @@ -515,7 +663,7 @@ buildCounterBinaryClassificationMetrics++; if (buildCounterBinaryClassificationMetrics < 3) { checkAggregateClassificationMetrics(o.aggregateClassificationMetrics); - checkUnnamed3436(o.binaryConfusionMatrixList); + checkUnnamed3606(o.binaryConfusionMatrixList); unittest.expect(o.negativeLabel, unittest.equals('foo')); unittest.expect(o.positiveLabel, unittest.equals('foo')); } @@ -557,14 +705,14 @@ buildCounterBinaryConfusionMatrix--; } -buildUnnamed3437() { +buildUnnamed3607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3437(core.List<core.String> o) { +checkUnnamed3607(core.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 +724,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed3437(); + o.members = buildUnnamed3607(); o.role = "foo"; } buildCounterBinding--; @@ -587,7 +735,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed3437(o.members); + checkUnnamed3607(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -620,14 +768,14 @@ buildCounterBqmlIterationResult--; } -buildUnnamed3438() { +buildUnnamed3608() { var o = new core.List<api.BqmlIterationResult>(); o.add(buildBqmlIterationResult()); o.add(buildBqmlIterationResult()); return o; } -checkUnnamed3438(core.List<api.BqmlIterationResult> o) { +checkUnnamed3608(core.List<api.BqmlIterationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkBqmlIterationResult(o[0]); checkBqmlIterationResult(o[1]); @@ -673,7 +821,7 @@ var o = new api.BqmlTrainingRun(); buildCounterBqmlTrainingRun++; if (buildCounterBqmlTrainingRun < 3) { - o.iterationResults = buildUnnamed3438(); + o.iterationResults = buildUnnamed3608(); o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); o.state = "foo"; o.trainingOptions = buildBqmlTrainingRunTrainingOptions(); @@ -685,7 +833,7 @@ checkBqmlTrainingRun(api.BqmlTrainingRun o) { buildCounterBqmlTrainingRun++; if (buildCounterBqmlTrainingRun < 3) { - checkUnnamed3438(o.iterationResults); + checkUnnamed3608(o.iterationResults); unittest.expect(o.startTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.state, unittest.equals('foo')); @@ -694,14 +842,14 @@ buildCounterBqmlTrainingRun--; } -buildUnnamed3439() { +buildUnnamed3609() { var o = new core.List<api.CategoryCount>(); o.add(buildCategoryCount()); o.add(buildCategoryCount()); return o; } -checkUnnamed3439(core.List<api.CategoryCount> o) { +checkUnnamed3609(core.List<api.CategoryCount> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryCount(o[0]); checkCategoryCount(o[1]); @@ -712,7 +860,7 @@ var o = new api.CategoricalValue(); buildCounterCategoricalValue++; if (buildCounterCategoricalValue < 3) { - o.categoryCounts = buildUnnamed3439(); + o.categoryCounts = buildUnnamed3609(); } buildCounterCategoricalValue--; return o; @@ -721,7 +869,7 @@ checkCategoricalValue(api.CategoricalValue o) { buildCounterCategoricalValue++; if (buildCounterCategoricalValue < 3) { - checkUnnamed3439(o.categoryCounts); + checkUnnamed3609(o.categoryCounts); } buildCounterCategoricalValue--; } @@ -747,14 +895,14 @@ buildCounterCategoryCount--; } -buildUnnamed3440() { +buildUnnamed3610() { var o = new core.List<api.FeatureValue>(); o.add(buildFeatureValue()); o.add(buildFeatureValue()); return o; } -checkUnnamed3440(core.List<api.FeatureValue> o) { +checkUnnamed3610(core.List<api.FeatureValue> o) { unittest.expect(o, unittest.hasLength(2)); checkFeatureValue(o[0]); checkFeatureValue(o[1]); @@ -767,7 +915,7 @@ if (buildCounterCluster < 3) { o.centroidId = "foo"; o.count = "foo"; - o.featureValues = buildUnnamed3440(); + o.featureValues = buildUnnamed3610(); } buildCounterCluster--; return o; @@ -778,7 +926,7 @@ if (buildCounterCluster < 3) { unittest.expect(o.centroidId, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed3440(o.featureValues); + checkUnnamed3610(o.featureValues); } buildCounterCluster--; } @@ -806,14 +954,14 @@ buildCounterClusterInfo--; } -buildUnnamed3441() { +buildUnnamed3611() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3441(core.List<core.String> o) { +checkUnnamed3611(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -824,7 +972,7 @@ var o = new api.Clustering(); buildCounterClustering++; if (buildCounterClustering < 3) { - o.fields = buildUnnamed3441(); + o.fields = buildUnnamed3611(); } buildCounterClustering--; return o; @@ -833,19 +981,19 @@ checkClustering(api.Clustering o) { buildCounterClustering++; if (buildCounterClustering < 3) { - checkUnnamed3441(o.fields); + checkUnnamed3611(o.fields); } buildCounterClustering--; } -buildUnnamed3442() { +buildUnnamed3612() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed3442(core.List<api.Cluster> o) { +checkUnnamed3612(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -856,7 +1004,7 @@ var o = new api.ClusteringMetrics(); buildCounterClusteringMetrics++; if (buildCounterClusteringMetrics < 3) { - o.clusters = buildUnnamed3442(); + o.clusters = buildUnnamed3612(); o.daviesBouldinIndex = 42.0; o.meanSquaredDistance = 42.0; } @@ -867,21 +1015,21 @@ checkClusteringMetrics(api.ClusteringMetrics o) { buildCounterClusteringMetrics++; if (buildCounterClusteringMetrics < 3) { - checkUnnamed3442(o.clusters); + checkUnnamed3612(o.clusters); unittest.expect(o.daviesBouldinIndex, unittest.equals(42.0)); unittest.expect(o.meanSquaredDistance, unittest.equals(42.0)); } buildCounterClusteringMetrics--; } -buildUnnamed3443() { +buildUnnamed3613() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed3443(core.List<api.Row> o) { +checkUnnamed3613(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -893,7 +1041,7 @@ buildCounterConfusionMatrix++; if (buildCounterConfusionMatrix < 3) { o.confidenceThreshold = 42.0; - o.rows = buildUnnamed3443(); + o.rows = buildUnnamed3613(); } buildCounterConfusionMatrix--; return o; @@ -903,7 +1051,7 @@ buildCounterConfusionMatrix++; if (buildCounterConfusionMatrix < 3) { unittest.expect(o.confidenceThreshold, unittest.equals(42.0)); - checkUnnamed3443(o.rows); + checkUnnamed3613(o.rows); } buildCounterConfusionMatrix--; } @@ -1010,27 +1158,27 @@ buildCounterDatasetAccess--; } -buildUnnamed3444() { +buildUnnamed3614() { var o = new core.List<api.DatasetAccess>(); o.add(buildDatasetAccess()); o.add(buildDatasetAccess()); return o; } -checkUnnamed3444(core.List<api.DatasetAccess> o) { +checkUnnamed3614(core.List<api.DatasetAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetAccess(o[0]); checkDatasetAccess(o[1]); } -buildUnnamed3445() { +buildUnnamed3615() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3445(core.Map<core.String, core.String> o) { +checkUnnamed3615(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')); @@ -1041,7 +1189,7 @@ var o = new api.Dataset(); buildCounterDataset++; if (buildCounterDataset < 3) { - o.access = buildUnnamed3444(); + o.access = buildUnnamed3614(); o.creationTime = "foo"; o.datasetReference = buildDatasetReference(); o.defaultEncryptionConfiguration = buildEncryptionConfiguration(); @@ -1052,9 +1200,10 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3445(); + o.labels = buildUnnamed3615(); o.lastModifiedTime = "foo"; o.location = "foo"; + o.satisfiesPZS = true; o.selfLink = "foo"; } buildCounterDataset--; @@ -1064,7 +1213,7 @@ checkDataset(api.Dataset o) { buildCounterDataset++; if (buildCounterDataset < 3) { - checkUnnamed3444(o.access); + checkUnnamed3614(o.access); unittest.expect(o.creationTime, unittest.equals('foo')); checkDatasetReference(o.datasetReference); checkEncryptionConfiguration(o.defaultEncryptionConfiguration); @@ -1075,22 +1224,23 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3445(o.labels); + checkUnnamed3615(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.satisfiesPZS, unittest.isTrue); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterDataset--; } -buildUnnamed3446() { +buildUnnamed3616() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3446(core.Map<core.String, core.String> o) { +checkUnnamed3616(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')); @@ -1105,7 +1255,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3446(); + o.labels = buildUnnamed3616(); o.location = "foo"; } buildCounterDatasetListDatasets--; @@ -1119,20 +1269,20 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3446(o.labels); + checkUnnamed3616(o.labels); unittest.expect(o.location, unittest.equals('foo')); } buildCounterDatasetListDatasets--; } -buildUnnamed3447() { +buildUnnamed3617() { var o = new core.List<api.DatasetListDatasets>(); o.add(buildDatasetListDatasets()); o.add(buildDatasetListDatasets()); return o; } -checkUnnamed3447(core.List<api.DatasetListDatasets> o) { +checkUnnamed3617(core.List<api.DatasetListDatasets> o) { unittest.expect(o, unittest.hasLength(2)); checkDatasetListDatasets(o[0]); checkDatasetListDatasets(o[1]); @@ -1143,7 +1293,7 @@ var o = new api.DatasetList(); buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - o.datasets = buildUnnamed3447(); + o.datasets = buildUnnamed3617(); o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; @@ -1155,7 +1305,7 @@ checkDatasetList(api.DatasetList o) { buildCounterDatasetList++; if (buildCounterDatasetList < 3) { - checkUnnamed3447(o.datasets); + checkUnnamed3617(o.datasets); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1184,14 +1334,14 @@ buildCounterDatasetReference--; } -buildUnnamed3448() { +buildUnnamed3618() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3448(core.Map<core.String, core.String> o) { +checkUnnamed3618(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')); @@ -1204,7 +1354,7 @@ if (buildCounterDestinationTableProperties < 3) { o.description = "foo"; o.friendlyName = "foo"; - o.labels = buildUnnamed3448(); + o.labels = buildUnnamed3618(); } buildCounterDestinationTableProperties--; return o; @@ -1215,7 +1365,7 @@ if (buildCounterDestinationTableProperties < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.friendlyName, unittest.equals('foo')); - checkUnnamed3448(o.labels); + checkUnnamed3618(o.labels); } buildCounterDestinationTableProperties--; } @@ -1290,6 +1440,7 @@ var o = new api.EvaluationMetrics(); buildCounterEvaluationMetrics++; if (buildCounterEvaluationMetrics < 3) { + o.arimaForecastingMetrics = buildArimaForecastingMetrics(); o.binaryClassificationMetrics = buildBinaryClassificationMetrics(); o.clusteringMetrics = buildClusteringMetrics(); o.multiClassClassificationMetrics = buildMultiClassClassificationMetrics(); @@ -1303,6 +1454,7 @@ checkEvaluationMetrics(api.EvaluationMetrics o) { buildCounterEvaluationMetrics++; if (buildCounterEvaluationMetrics < 3) { + checkArimaForecastingMetrics(o.arimaForecastingMetrics); checkBinaryClassificationMetrics(o.binaryClassificationMetrics); checkClusteringMetrics(o.clusteringMetrics); checkMultiClassClassificationMetrics(o.multiClassClassificationMetrics); @@ -1312,27 +1464,27 @@ buildCounterEvaluationMetrics--; } -buildUnnamed3449() { +buildUnnamed3619() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3449(core.List<core.String> o) { +checkUnnamed3619(core.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() { +buildUnnamed3620() { var o = new core.List<api.ExplainQueryStep>(); o.add(buildExplainQueryStep()); o.add(buildExplainQueryStep()); return o; } -checkUnnamed3450(core.List<api.ExplainQueryStep> o) { +checkUnnamed3620(core.List<api.ExplainQueryStep> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStep(o[0]); checkExplainQueryStep(o[1]); @@ -1350,7 +1502,7 @@ o.computeRatioMax = 42.0; o.endMs = "foo"; o.id = "foo"; - o.inputStages = buildUnnamed3449(); + o.inputStages = buildUnnamed3619(); o.name = "foo"; o.parallelInputs = "foo"; o.readMsAvg = "foo"; @@ -1364,7 +1516,7 @@ o.slotMs = "foo"; o.startMs = "foo"; o.status = "foo"; - o.steps = buildUnnamed3450(); + o.steps = buildUnnamed3620(); o.waitMsAvg = "foo"; o.waitMsMax = "foo"; o.waitRatioAvg = 42.0; @@ -1388,7 +1540,7 @@ unittest.expect(o.computeRatioMax, unittest.equals(42.0)); unittest.expect(o.endMs, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3449(o.inputStages); + checkUnnamed3619(o.inputStages); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parallelInputs, unittest.equals('foo')); unittest.expect(o.readMsAvg, unittest.equals('foo')); @@ -1402,7 +1554,7 @@ unittest.expect(o.slotMs, unittest.equals('foo')); unittest.expect(o.startMs, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed3450(o.steps); + checkUnnamed3620(o.steps); unittest.expect(o.waitMsAvg, unittest.equals('foo')); unittest.expect(o.waitMsMax, unittest.equals('foo')); unittest.expect(o.waitRatioAvg, unittest.equals(42.0)); @@ -1415,14 +1567,14 @@ buildCounterExplainQueryStage--; } -buildUnnamed3451() { +buildUnnamed3621() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3451(core.List<core.String> o) { +checkUnnamed3621(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1434,7 +1586,7 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { o.kind = "foo"; - o.substeps = buildUnnamed3451(); + o.substeps = buildUnnamed3621(); } buildCounterExplainQueryStep--; return o; @@ -1444,7 +1596,7 @@ buildCounterExplainQueryStep++; if (buildCounterExplainQueryStep < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3451(o.substeps); + checkUnnamed3621(o.substeps); } buildCounterExplainQueryStep--; } @@ -1474,14 +1626,14 @@ buildCounterExpr--; } -buildUnnamed3452() { +buildUnnamed3622() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3452(core.List<core.String> o) { +checkUnnamed3622(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1495,6 +1647,7 @@ o.autodetect = true; o.bigtableOptions = buildBigtableOptions(); o.compression = "foo"; + o.connectionId = "foo"; o.csvOptions = buildCsvOptions(); o.googleSheetsOptions = buildGoogleSheetsOptions(); o.hivePartitioningOptions = buildHivePartitioningOptions(); @@ -1502,7 +1655,7 @@ o.maxBadRecords = 42; o.schema = buildTableSchema(); o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3452(); + o.sourceUris = buildUnnamed3622(); } buildCounterExternalDataConfiguration--; return o; @@ -1514,6 +1667,7 @@ unittest.expect(o.autodetect, unittest.isTrue); checkBigtableOptions(o.bigtableOptions); unittest.expect(o.compression, unittest.equals('foo')); + unittest.expect(o.connectionId, unittest.equals('foo')); checkCsvOptions(o.csvOptions); checkGoogleSheetsOptions(o.googleSheetsOptions); checkHivePartitioningOptions(o.hivePartitioningOptions); @@ -1521,7 +1675,7 @@ unittest.expect(o.maxBadRecords, unittest.equals(42)); checkTableSchema(o.schema); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3452(o.sourceUris); + checkUnnamed3622(o.sourceUris); } buildCounterExternalDataConfiguration--; } @@ -1587,27 +1741,27 @@ buildCounterGetPolicyOptions--; } -buildUnnamed3453() { +buildUnnamed3623() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3453(core.List<api.ErrorProto> o) { +checkUnnamed3623(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3454() { +buildUnnamed3624() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3454(core.List<api.TableRow> o) { +checkUnnamed3624(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -1619,14 +1773,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3453(); + o.errors = buildUnnamed3623(); o.etag = "foo"; o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3454(); + o.rows = buildUnnamed3624(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -1639,14 +1793,14 @@ buildCounterGetQueryResultsResponse++; if (buildCounterGetQueryResultsResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3453(o.errors); + checkUnnamed3623(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')); - checkUnnamed3454(o.rows); + checkUnnamed3624(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -1702,6 +1856,7 @@ buildCounterHivePartitioningOptions++; if (buildCounterHivePartitioningOptions < 3) { o.mode = "foo"; + o.requirePartitionFilter = true; o.sourceUriPrefix = "foo"; } buildCounterHivePartitioningOptions--; @@ -1712,19 +1867,20 @@ buildCounterHivePartitioningOptions++; if (buildCounterHivePartitioningOptions < 3) { unittest.expect(o.mode, unittest.equals('foo')); + unittest.expect(o.requirePartitionFilter, unittest.isTrue); unittest.expect(o.sourceUriPrefix, unittest.equals('foo')); } buildCounterHivePartitioningOptions--; } -buildUnnamed3455() { +buildUnnamed3625() { var o = new core.List<api.ClusterInfo>(); o.add(buildClusterInfo()); o.add(buildClusterInfo()); return o; } -checkUnnamed3455(core.List<api.ClusterInfo> o) { +checkUnnamed3625(core.List<api.ClusterInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterInfo(o[0]); checkClusterInfo(o[1]); @@ -1736,7 +1892,7 @@ buildCounterIterationResult++; if (buildCounterIterationResult < 3) { o.arimaResult = buildArimaResult(); - o.clusterInfos = buildUnnamed3455(); + o.clusterInfos = buildUnnamed3625(); o.durationMs = "foo"; o.evalLoss = 42.0; o.index = 42; @@ -1751,7 +1907,7 @@ buildCounterIterationResult++; if (buildCounterIterationResult < 3) { checkArimaResult(o.arimaResult); - checkUnnamed3455(o.clusterInfos); + checkUnnamed3625(o.clusterInfos); unittest.expect(o.durationMs, unittest.equals('foo')); unittest.expect(o.evalLoss, unittest.equals(42.0)); unittest.expect(o.index, unittest.equals(42)); @@ -1817,14 +1973,14 @@ buildCounterJobCancelResponse--; } -buildUnnamed3456() { +buildUnnamed3626() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3456(core.Map<core.String, core.String> o) { +checkUnnamed3626(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')); @@ -1840,7 +1996,7 @@ o.extract = buildJobConfigurationExtract(); o.jobTimeoutMs = "foo"; o.jobType = "foo"; - o.labels = buildUnnamed3456(); + o.labels = buildUnnamed3626(); o.load = buildJobConfigurationLoad(); o.query = buildJobConfigurationQuery(); } @@ -1856,21 +2012,21 @@ checkJobConfigurationExtract(o.extract); unittest.expect(o.jobTimeoutMs, unittest.equals('foo')); unittest.expect(o.jobType, unittest.equals('foo')); - checkUnnamed3456(o.labels); + checkUnnamed3626(o.labels); checkJobConfigurationLoad(o.load); checkJobConfigurationQuery(o.query); } buildCounterJobConfiguration--; } -buildUnnamed3457() { +buildUnnamed3627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3457(core.List<core.String> o) { +checkUnnamed3627(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1884,7 +2040,7 @@ o.compression = "foo"; o.destinationFormat = "foo"; o.destinationUri = "foo"; - o.destinationUris = buildUnnamed3457(); + o.destinationUris = buildUnnamed3627(); o.fieldDelimiter = "foo"; o.printHeader = true; o.sourceModel = buildModelReference(); @@ -1901,7 +2057,7 @@ unittest.expect(o.compression, unittest.equals('foo')); unittest.expect(o.destinationFormat, unittest.equals('foo')); unittest.expect(o.destinationUri, unittest.equals('foo')); - checkUnnamed3457(o.destinationUris); + checkUnnamed3627(o.destinationUris); unittest.expect(o.fieldDelimiter, unittest.equals('foo')); unittest.expect(o.printHeader, unittest.isTrue); checkModelReference(o.sourceModel); @@ -1911,40 +2067,53 @@ buildCounterJobConfigurationExtract--; } -buildUnnamed3458() { +buildUnnamed3628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3458(core.List<core.String> o) { +checkUnnamed3628(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3459() { +buildUnnamed3629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3459(core.List<core.String> o) { +checkUnnamed3629(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3460() { +buildUnnamed3630() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3460(core.List<core.String> o) { +checkUnnamed3630(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3631() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1960,6 +2129,7 @@ o.autodetect = true; o.clustering = buildClustering(); o.createDisposition = "foo"; + o.decimalTargetTypes = buildUnnamed3628(); o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); o.destinationTable = buildTableReference(); o.destinationTableProperties = buildDestinationTableProperties(); @@ -1969,16 +2139,16 @@ o.ignoreUnknownValues = true; o.maxBadRecords = 42; o.nullMarker = "foo"; - o.projectionFields = buildUnnamed3458(); + o.projectionFields = buildUnnamed3629(); o.quote = "foo"; o.rangePartitioning = buildRangePartitioning(); o.schema = buildTableSchema(); o.schemaInline = "foo"; o.schemaInlineFormat = "foo"; - o.schemaUpdateOptions = buildUnnamed3459(); + o.schemaUpdateOptions = buildUnnamed3630(); o.skipLeadingRows = 42; o.sourceFormat = "foo"; - o.sourceUris = buildUnnamed3460(); + o.sourceUris = buildUnnamed3631(); o.timePartitioning = buildTimePartitioning(); o.useAvroLogicalTypes = true; o.writeDisposition = "foo"; @@ -1995,6 +2165,7 @@ unittest.expect(o.autodetect, unittest.isTrue); checkClustering(o.clustering); unittest.expect(o.createDisposition, unittest.equals('foo')); + checkUnnamed3628(o.decimalTargetTypes); checkEncryptionConfiguration(o.destinationEncryptionConfiguration); checkTableReference(o.destinationTable); checkDestinationTableProperties(o.destinationTableProperties); @@ -2004,16 +2175,16 @@ unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.maxBadRecords, unittest.equals(42)); unittest.expect(o.nullMarker, unittest.equals('foo')); - checkUnnamed3458(o.projectionFields); + checkUnnamed3629(o.projectionFields); unittest.expect(o.quote, unittest.equals('foo')); checkRangePartitioning(o.rangePartitioning); checkTableSchema(o.schema); unittest.expect(o.schemaInline, unittest.equals('foo')); unittest.expect(o.schemaInlineFormat, unittest.equals('foo')); - checkUnnamed3459(o.schemaUpdateOptions); + checkUnnamed3630(o.schemaUpdateOptions); unittest.expect(o.skipLeadingRows, unittest.equals(42)); unittest.expect(o.sourceFormat, unittest.equals('foo')); - checkUnnamed3460(o.sourceUris); + checkUnnamed3631(o.sourceUris); checkTimePartitioning(o.timePartitioning); unittest.expect(o.useAvroLogicalTypes, unittest.isTrue); unittest.expect(o.writeDisposition, unittest.equals('foo')); @@ -2021,66 +2192,66 @@ buildCounterJobConfigurationLoad--; } -buildUnnamed3461() { +buildUnnamed3632() { var o = new core.List<api.ConnectionProperty>(); o.add(buildConnectionProperty()); o.add(buildConnectionProperty()); return o; } -checkUnnamed3461(core.List<api.ConnectionProperty> o) { +checkUnnamed3632(core.List<api.ConnectionProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionProperty(o[0]); checkConnectionProperty(o[1]); } -buildUnnamed3462() { +buildUnnamed3633() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3462(core.List<api.QueryParameter> o) { +checkUnnamed3633(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); } -buildUnnamed3463() { +buildUnnamed3634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3463(core.List<core.String> o) { +checkUnnamed3634(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3464() { +buildUnnamed3635() { var o = new core.Map<core.String, api.ExternalDataConfiguration>(); o["x"] = buildExternalDataConfiguration(); o["y"] = buildExternalDataConfiguration(); return o; } -checkUnnamed3464(core.Map<core.String, api.ExternalDataConfiguration> o) { +checkUnnamed3635(core.Map<core.String, api.ExternalDataConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalDataConfiguration(o["x"]); checkExternalDataConfiguration(o["y"]); } -buildUnnamed3465() { +buildUnnamed3636() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3465(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3636(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -2093,7 +2264,7 @@ if (buildCounterJobConfigurationQuery < 3) { o.allowLargeResults = true; o.clustering = buildClustering(); - o.connectionProperties = buildUnnamed3461(); + o.connectionProperties = buildUnnamed3632(); o.createDisposition = "foo"; o.defaultDataset = buildDatasetReference(); o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); @@ -2105,14 +2276,14 @@ o.preserveNulls = true; o.priority = "foo"; o.query = "foo"; - o.queryParameters = buildUnnamed3462(); + o.queryParameters = buildUnnamed3633(); o.rangePartitioning = buildRangePartitioning(); - o.schemaUpdateOptions = buildUnnamed3463(); - o.tableDefinitions = buildUnnamed3464(); + o.schemaUpdateOptions = buildUnnamed3634(); + o.tableDefinitions = buildUnnamed3635(); o.timePartitioning = buildTimePartitioning(); o.useLegacySql = true; o.useQueryCache = true; - o.userDefinedFunctionResources = buildUnnamed3465(); + o.userDefinedFunctionResources = buildUnnamed3636(); o.writeDisposition = "foo"; } buildCounterJobConfigurationQuery--; @@ -2124,7 +2295,7 @@ if (buildCounterJobConfigurationQuery < 3) { unittest.expect(o.allowLargeResults, unittest.isTrue); checkClustering(o.clustering); - checkUnnamed3461(o.connectionProperties); + checkUnnamed3632(o.connectionProperties); unittest.expect(o.createDisposition, unittest.equals('foo')); checkDatasetReference(o.defaultDataset); checkEncryptionConfiguration(o.destinationEncryptionConfiguration); @@ -2136,27 +2307,27 @@ unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.priority, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3462(o.queryParameters); + checkUnnamed3633(o.queryParameters); checkRangePartitioning(o.rangePartitioning); - checkUnnamed3463(o.schemaUpdateOptions); - checkUnnamed3464(o.tableDefinitions); + checkUnnamed3634(o.schemaUpdateOptions); + checkUnnamed3635(o.tableDefinitions); checkTimePartitioning(o.timePartitioning); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); - checkUnnamed3465(o.userDefinedFunctionResources); + checkUnnamed3636(o.userDefinedFunctionResources); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationQuery--; } -buildUnnamed3466() { +buildUnnamed3637() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3466(core.List<api.TableReference> o) { +checkUnnamed3637(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -2169,9 +2340,15 @@ if (buildCounterJobConfigurationTableCopy < 3) { o.createDisposition = "foo"; o.destinationEncryptionConfiguration = buildEncryptionConfiguration(); + o.destinationExpirationTime = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; o.destinationTable = buildTableReference(); + o.operationType = "foo"; o.sourceTable = buildTableReference(); - o.sourceTables = buildUnnamed3466(); + o.sourceTables = buildUnnamed3637(); o.writeDisposition = "foo"; } buildCounterJobConfigurationTableCopy--; @@ -2183,9 +2360,15 @@ if (buildCounterJobConfigurationTableCopy < 3) { unittest.expect(o.createDisposition, unittest.equals('foo')); checkEncryptionConfiguration(o.destinationEncryptionConfiguration); + var casted1 = (o.destinationExpirationTime) 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')); checkTableReference(o.destinationTable); + unittest.expect(o.operationType, unittest.equals('foo')); checkTableReference(o.sourceTable); - checkUnnamed3466(o.sourceTables); + checkUnnamed3637(o.sourceTables); unittest.expect(o.writeDisposition, unittest.equals('foo')); } buildCounterJobConfigurationTableCopy--; @@ -2226,14 +2409,14 @@ buildCounterJobListJobs--; } -buildUnnamed3467() { +buildUnnamed3638() { var o = new core.List<api.JobListJobs>(); o.add(buildJobListJobs()); o.add(buildJobListJobs()); return o; } -checkUnnamed3467(core.List<api.JobListJobs> o) { +checkUnnamed3638(core.List<api.JobListJobs> o) { unittest.expect(o, unittest.hasLength(2)); checkJobListJobs(o[0]); checkJobListJobs(o[1]); @@ -2245,7 +2428,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { o.etag = "foo"; - o.jobs = buildUnnamed3467(); + o.jobs = buildUnnamed3638(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2257,7 +2440,7 @@ buildCounterJobList++; if (buildCounterJobList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3467(o.jobs); + checkUnnamed3638(o.jobs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2287,14 +2470,14 @@ buildCounterJobReference--; } -buildUnnamed3468() { +buildUnnamed3639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3468(core.List<core.String> o) { +checkUnnamed3639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2321,14 +2504,14 @@ buildCounterJobStatisticsReservationUsage--; } -buildUnnamed3469() { +buildUnnamed3640() { var o = new core.List<api.JobStatisticsReservationUsage>(); o.add(buildJobStatisticsReservationUsage()); o.add(buildJobStatisticsReservationUsage()); return o; } -checkUnnamed3469(core.List<api.JobStatisticsReservationUsage> o) { +checkUnnamed3640(core.List<api.JobStatisticsReservationUsage> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatisticsReservationUsage(o[0]); checkJobStatisticsReservationUsage(o[1]); @@ -2347,14 +2530,15 @@ o.numChildJobs = "foo"; o.parentJobId = "foo"; o.query = buildJobStatistics2(); - o.quotaDeferments = buildUnnamed3468(); - o.reservationUsage = buildUnnamed3469(); + o.quotaDeferments = buildUnnamed3639(); + o.reservationUsage = buildUnnamed3640(); o.reservationId = "foo"; o.rowLevelSecurityStatistics = buildRowLevelSecurityStatistics(); o.scriptStatistics = buildScriptStatistics(); o.startTime = "foo"; o.totalBytesProcessed = "foo"; o.totalSlotMs = "foo"; + o.transactionInfoTemplate = buildTransactionInfo(); } buildCounterJobStatistics--; return o; @@ -2371,52 +2555,53 @@ unittest.expect(o.numChildJobs, unittest.equals('foo')); unittest.expect(o.parentJobId, unittest.equals('foo')); checkJobStatistics2(o.query); - checkUnnamed3468(o.quotaDeferments); - checkUnnamed3469(o.reservationUsage); + checkUnnamed3639(o.quotaDeferments); + checkUnnamed3640(o.reservationUsage); unittest.expect(o.reservationId, unittest.equals('foo')); checkRowLevelSecurityStatistics(o.rowLevelSecurityStatistics); checkScriptStatistics(o.scriptStatistics); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalSlotMs, unittest.equals('foo')); + checkTransactionInfo(o.transactionInfoTemplate); } buildCounterJobStatistics--; } -buildUnnamed3470() { +buildUnnamed3641() { var o = new core.List<api.ExplainQueryStage>(); o.add(buildExplainQueryStage()); o.add(buildExplainQueryStage()); return o; } -checkUnnamed3470(core.List<api.ExplainQueryStage> o) { +checkUnnamed3641(core.List<api.ExplainQueryStage> o) { unittest.expect(o, unittest.hasLength(2)); checkExplainQueryStage(o[0]); checkExplainQueryStage(o[1]); } -buildUnnamed3471() { +buildUnnamed3642() { var o = new core.List<api.RoutineReference>(); o.add(buildRoutineReference()); o.add(buildRoutineReference()); return o; } -checkUnnamed3471(core.List<api.RoutineReference> o) { +checkUnnamed3642(core.List<api.RoutineReference> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutineReference(o[0]); checkRoutineReference(o[1]); } -buildUnnamed3472() { +buildUnnamed3643() { var o = new core.List<api.TableReference>(); o.add(buildTableReference()); o.add(buildTableReference()); return o; } -checkUnnamed3472(core.List<api.TableReference> o) { +checkUnnamed3643(core.List<api.TableReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTableReference(o[0]); checkTableReference(o[1]); @@ -2443,40 +2628,40 @@ buildCounterJobStatistics2ReservationUsage--; } -buildUnnamed3473() { +buildUnnamed3644() { var o = new core.List<api.JobStatistics2ReservationUsage>(); o.add(buildJobStatistics2ReservationUsage()); o.add(buildJobStatistics2ReservationUsage()); return o; } -checkUnnamed3473(core.List<api.JobStatistics2ReservationUsage> o) { +checkUnnamed3644(core.List<api.JobStatistics2ReservationUsage> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatistics2ReservationUsage(o[0]); checkJobStatistics2ReservationUsage(o[1]); } -buildUnnamed3474() { +buildUnnamed3645() { var o = new core.List<api.QueryTimelineSample>(); o.add(buildQueryTimelineSample()); o.add(buildQueryTimelineSample()); return o; } -checkUnnamed3474(core.List<api.QueryTimelineSample> o) { +checkUnnamed3645(core.List<api.QueryTimelineSample> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryTimelineSample(o[0]); checkQueryTimelineSample(o[1]); } -buildUnnamed3475() { +buildUnnamed3646() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3475(core.List<api.QueryParameter> o) { +checkUnnamed3646(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -2499,19 +2684,19 @@ o.modelTrainingCurrentIteration = 42; o.modelTrainingExpectedTotalIteration = "foo"; o.numDmlAffectedRows = "foo"; - o.queryPlan = buildUnnamed3470(); - o.referencedRoutines = buildUnnamed3471(); - o.referencedTables = buildUnnamed3472(); - o.reservationUsage = buildUnnamed3473(); + o.queryPlan = buildUnnamed3641(); + o.referencedRoutines = buildUnnamed3642(); + o.referencedTables = buildUnnamed3643(); + o.reservationUsage = buildUnnamed3644(); o.schema = buildTableSchema(); o.statementType = "foo"; - o.timeline = buildUnnamed3474(); + o.timeline = buildUnnamed3645(); o.totalBytesBilled = "foo"; o.totalBytesProcessed = "foo"; o.totalBytesProcessedAccuracy = "foo"; o.totalPartitionsProcessed = "foo"; o.totalSlotMs = "foo"; - o.undeclaredQueryParameters = buildUnnamed3475(); + o.undeclaredQueryParameters = buildUnnamed3646(); } buildCounterJobStatistics2--; return o; @@ -2533,19 +2718,19 @@ unittest.expect( o.modelTrainingExpectedTotalIteration, unittest.equals('foo')); unittest.expect(o.numDmlAffectedRows, unittest.equals('foo')); - checkUnnamed3470(o.queryPlan); - checkUnnamed3471(o.referencedRoutines); - checkUnnamed3472(o.referencedTables); - checkUnnamed3473(o.reservationUsage); + checkUnnamed3641(o.queryPlan); + checkUnnamed3642(o.referencedRoutines); + checkUnnamed3643(o.referencedTables); + checkUnnamed3644(o.reservationUsage); checkTableSchema(o.schema); unittest.expect(o.statementType, unittest.equals('foo')); - checkUnnamed3474(o.timeline); + checkUnnamed3645(o.timeline); unittest.expect(o.totalBytesBilled, unittest.equals('foo')); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalBytesProcessedAccuracy, unittest.equals('foo')); unittest.expect(o.totalPartitionsProcessed, unittest.equals('foo')); unittest.expect(o.totalSlotMs, unittest.equals('foo')); - checkUnnamed3475(o.undeclaredQueryParameters); + checkUnnamed3646(o.undeclaredQueryParameters); } buildCounterJobStatistics2--; } @@ -2577,14 +2762,14 @@ buildCounterJobStatistics3--; } -buildUnnamed3476() { +buildUnnamed3647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3476(core.List<core.String> o) { +checkUnnamed3647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2595,7 +2780,7 @@ var o = new api.JobStatistics4(); buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - o.destinationUriFileCounts = buildUnnamed3476(); + o.destinationUriFileCounts = buildUnnamed3647(); o.inputBytes = "foo"; } buildCounterJobStatistics4--; @@ -2605,20 +2790,20 @@ checkJobStatistics4(api.JobStatistics4 o) { buildCounterJobStatistics4++; if (buildCounterJobStatistics4 < 3) { - checkUnnamed3476(o.destinationUriFileCounts); + checkUnnamed3647(o.destinationUriFileCounts); unittest.expect(o.inputBytes, unittest.equals('foo')); } buildCounterJobStatistics4--; } -buildUnnamed3477() { +buildUnnamed3648() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3477(core.List<api.ErrorProto> o) { +checkUnnamed3648(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -2630,7 +2815,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { o.errorResult = buildErrorProto(); - o.errors = buildUnnamed3477(); + o.errors = buildUnnamed3648(); o.state = "foo"; } buildCounterJobStatus--; @@ -2641,7 +2826,7 @@ buildCounterJobStatus++; if (buildCounterJobStatus < 3) { checkErrorProto(o.errorResult); - checkUnnamed3477(o.errors); + checkUnnamed3648(o.errors); unittest.expect(o.state, unittest.equals('foo')); } buildCounterJobStatus--; @@ -2664,26 +2849,26 @@ checkJsonObject(api.JsonObject o) { unittest.expect(o, unittest.hasLength(2)); - var casted1 = (o["a"]) 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["b"]) as core.Map; + var casted2 = (o["a"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); + var casted3 = (o["b"]) 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')); } -buildUnnamed3478() { +buildUnnamed3649() { var o = new core.List<api.Model>(); o.add(buildModel()); o.add(buildModel()); return o; } -checkUnnamed3478(core.List<api.Model> o) { +checkUnnamed3649(core.List<api.Model> o) { unittest.expect(o, unittest.hasLength(2)); checkModel(o[0]); checkModel(o[1]); @@ -2694,7 +2879,7 @@ var o = new api.ListModelsResponse(); buildCounterListModelsResponse++; if (buildCounterListModelsResponse < 3) { - o.models = buildUnnamed3478(); + o.models = buildUnnamed3649(); o.nextPageToken = "foo"; } buildCounterListModelsResponse--; @@ -2704,20 +2889,20 @@ checkListModelsResponse(api.ListModelsResponse o) { buildCounterListModelsResponse++; if (buildCounterListModelsResponse < 3) { - checkUnnamed3478(o.models); + checkUnnamed3649(o.models); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListModelsResponse--; } -buildUnnamed3479() { +buildUnnamed3650() { var o = new core.List<api.Routine>(); o.add(buildRoutine()); o.add(buildRoutine()); return o; } -checkUnnamed3479(core.List<api.Routine> o) { +checkUnnamed3650(core.List<api.Routine> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutine(o[0]); checkRoutine(o[1]); @@ -2729,7 +2914,7 @@ buildCounterListRoutinesResponse++; if (buildCounterListRoutinesResponse < 3) { o.nextPageToken = "foo"; - o.routines = buildUnnamed3479(); + o.routines = buildUnnamed3650(); } buildCounterListRoutinesResponse--; return o; @@ -2739,7 +2924,7 @@ buildCounterListRoutinesResponse++; if (buildCounterListRoutinesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3479(o.routines); + checkUnnamed3650(o.routines); } buildCounterListRoutinesResponse--; } @@ -2788,53 +2973,53 @@ buildCounterMaterializedViewDefinition--; } -buildUnnamed3480() { +buildUnnamed3651() { var o = new core.List<api.StandardSqlField>(); o.add(buildStandardSqlField()); o.add(buildStandardSqlField()); return o; } -checkUnnamed3480(core.List<api.StandardSqlField> o) { +checkUnnamed3651(core.List<api.StandardSqlField> o) { unittest.expect(o, unittest.hasLength(2)); checkStandardSqlField(o[0]); checkStandardSqlField(o[1]); } -buildUnnamed3481() { +buildUnnamed3652() { var o = new core.List<api.StandardSqlField>(); o.add(buildStandardSqlField()); o.add(buildStandardSqlField()); return o; } -checkUnnamed3481(core.List<api.StandardSqlField> o) { +checkUnnamed3652(core.List<api.StandardSqlField> o) { unittest.expect(o, unittest.hasLength(2)); checkStandardSqlField(o[0]); checkStandardSqlField(o[1]); } -buildUnnamed3482() { +buildUnnamed3653() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3482(core.Map<core.String, core.String> o) { +checkUnnamed3653(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')); } -buildUnnamed3483() { +buildUnnamed3654() { var o = new core.List<api.TrainingRun>(); o.add(buildTrainingRun()); o.add(buildTrainingRun()); return o; } -checkUnnamed3483(core.List<api.TrainingRun> o) { +checkUnnamed3654(core.List<api.TrainingRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTrainingRun(o[0]); checkTrainingRun(o[1]); @@ -2850,15 +3035,15 @@ o.encryptionConfiguration = buildEncryptionConfiguration(); o.etag = "foo"; o.expirationTime = "foo"; - o.featureColumns = buildUnnamed3480(); + o.featureColumns = buildUnnamed3651(); o.friendlyName = "foo"; - o.labelColumns = buildUnnamed3481(); - o.labels = buildUnnamed3482(); + o.labelColumns = buildUnnamed3652(); + o.labels = buildUnnamed3653(); o.lastModifiedTime = "foo"; o.location = "foo"; o.modelReference = buildModelReference(); o.modelType = "foo"; - o.trainingRuns = buildUnnamed3483(); + o.trainingRuns = buildUnnamed3654(); } buildCounterModel--; return o; @@ -2872,27 +3057,27 @@ checkEncryptionConfiguration(o.encryptionConfiguration); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.expirationTime, unittest.equals('foo')); - checkUnnamed3480(o.featureColumns); + checkUnnamed3651(o.featureColumns); unittest.expect(o.friendlyName, unittest.equals('foo')); - checkUnnamed3481(o.labelColumns); - checkUnnamed3482(o.labels); + checkUnnamed3652(o.labelColumns); + checkUnnamed3653(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); checkModelReference(o.modelReference); unittest.expect(o.modelType, unittest.equals('foo')); - checkUnnamed3483(o.trainingRuns); + checkUnnamed3654(o.trainingRuns); } buildCounterModel--; } -buildUnnamed3484() { +buildUnnamed3655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3484(core.List<core.String> o) { +checkUnnamed3655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2903,7 +3088,7 @@ var o = new api.ModelDefinitionModelOptions(); buildCounterModelDefinitionModelOptions++; if (buildCounterModelDefinitionModelOptions < 3) { - o.labels = buildUnnamed3484(); + o.labels = buildUnnamed3655(); o.lossType = "foo"; o.modelType = "foo"; } @@ -2914,21 +3099,21 @@ checkModelDefinitionModelOptions(api.ModelDefinitionModelOptions o) { buildCounterModelDefinitionModelOptions++; if (buildCounterModelDefinitionModelOptions < 3) { - checkUnnamed3484(o.labels); + checkUnnamed3655(o.labels); unittest.expect(o.lossType, unittest.equals('foo')); unittest.expect(o.modelType, unittest.equals('foo')); } buildCounterModelDefinitionModelOptions--; } -buildUnnamed3485() { +buildUnnamed3656() { var o = new core.List<api.BqmlTrainingRun>(); o.add(buildBqmlTrainingRun()); o.add(buildBqmlTrainingRun()); return o; } -checkUnnamed3485(core.List<api.BqmlTrainingRun> o) { +checkUnnamed3656(core.List<api.BqmlTrainingRun> o) { unittest.expect(o, unittest.hasLength(2)); checkBqmlTrainingRun(o[0]); checkBqmlTrainingRun(o[1]); @@ -2940,7 +3125,7 @@ buildCounterModelDefinition++; if (buildCounterModelDefinition < 3) { o.modelOptions = buildModelDefinitionModelOptions(); - o.trainingRuns = buildUnnamed3485(); + o.trainingRuns = buildUnnamed3656(); } buildCounterModelDefinition--; return o; @@ -2950,7 +3135,7 @@ buildCounterModelDefinition++; if (buildCounterModelDefinition < 3) { checkModelDefinitionModelOptions(o.modelOptions); - checkUnnamed3485(o.trainingRuns); + checkUnnamed3656(o.trainingRuns); } buildCounterModelDefinition--; } @@ -2978,14 +3163,14 @@ buildCounterModelReference--; } -buildUnnamed3486() { +buildUnnamed3657() { var o = new core.List<api.ConfusionMatrix>(); o.add(buildConfusionMatrix()); o.add(buildConfusionMatrix()); return o; } -checkUnnamed3486(core.List<api.ConfusionMatrix> o) { +checkUnnamed3657(core.List<api.ConfusionMatrix> o) { unittest.expect(o, unittest.hasLength(2)); checkConfusionMatrix(o[0]); checkConfusionMatrix(o[1]); @@ -2997,7 +3182,7 @@ buildCounterMultiClassClassificationMetrics++; if (buildCounterMultiClassClassificationMetrics < 3) { o.aggregateClassificationMetrics = buildAggregateClassificationMetrics(); - o.confusionMatrixList = buildUnnamed3486(); + o.confusionMatrixList = buildUnnamed3657(); } buildCounterMultiClassClassificationMetrics--; return o; @@ -3007,32 +3192,32 @@ buildCounterMultiClassClassificationMetrics++; if (buildCounterMultiClassClassificationMetrics < 3) { checkAggregateClassificationMetrics(o.aggregateClassificationMetrics); - checkUnnamed3486(o.confusionMatrixList); + checkUnnamed3657(o.confusionMatrixList); } buildCounterMultiClassClassificationMetrics--; } -buildUnnamed3487() { +buildUnnamed3658() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3487(core.List<api.AuditConfig> o) { +checkUnnamed3658(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3488() { +buildUnnamed3659() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3488(core.List<api.Binding> o) { +checkUnnamed3659(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -3043,8 +3228,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3487(); - o.bindings = buildUnnamed3488(); + o.auditConfigs = buildUnnamed3658(); + o.bindings = buildUnnamed3659(); o.etag = "foo"; o.version = 42; } @@ -3055,8 +3240,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3487(o.auditConfigs); - checkUnnamed3488(o.bindings); + checkUnnamed3658(o.auditConfigs); + checkUnnamed3659(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -3090,14 +3275,14 @@ buildCounterProjectListProjects--; } -buildUnnamed3489() { +buildUnnamed3660() { var o = new core.List<api.ProjectListProjects>(); o.add(buildProjectListProjects()); o.add(buildProjectListProjects()); return o; } -checkUnnamed3489(core.List<api.ProjectListProjects> o) { +checkUnnamed3660(core.List<api.ProjectListProjects> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectListProjects(o[0]); checkProjectListProjects(o[1]); @@ -3111,7 +3296,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed3489(); + o.projects = buildUnnamed3660(); o.totalItems = 42; } buildCounterProjectList--; @@ -3124,7 +3309,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3489(o.projects); + checkUnnamed3660(o.projects); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterProjectList--; @@ -3195,14 +3380,14 @@ buildCounterQueryParameterTypeStructTypes--; } -buildUnnamed3490() { +buildUnnamed3661() { var o = new core.List<api.QueryParameterTypeStructTypes>(); o.add(buildQueryParameterTypeStructTypes()); o.add(buildQueryParameterTypeStructTypes()); return o; } -checkUnnamed3490(core.List<api.QueryParameterTypeStructTypes> o) { +checkUnnamed3661(core.List<api.QueryParameterTypeStructTypes> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterTypeStructTypes(o[0]); checkQueryParameterTypeStructTypes(o[1]); @@ -3214,7 +3399,7 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { o.arrayType = buildQueryParameterType(); - o.structTypes = buildUnnamed3490(); + o.structTypes = buildUnnamed3661(); o.type = "foo"; } buildCounterQueryParameterType--; @@ -3225,33 +3410,33 @@ buildCounterQueryParameterType++; if (buildCounterQueryParameterType < 3) { checkQueryParameterType(o.arrayType); - checkUnnamed3490(o.structTypes); + checkUnnamed3661(o.structTypes); unittest.expect(o.type, unittest.equals('foo')); } buildCounterQueryParameterType--; } -buildUnnamed3491() { +buildUnnamed3662() { var o = new core.List<api.QueryParameterValue>(); o.add(buildQueryParameterValue()); o.add(buildQueryParameterValue()); return o; } -checkUnnamed3491(core.List<api.QueryParameterValue> o) { +checkUnnamed3662(core.List<api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o[0]); checkQueryParameterValue(o[1]); } -buildUnnamed3492() { +buildUnnamed3663() { var o = new core.Map<core.String, api.QueryParameterValue>(); o["x"] = buildQueryParameterValue(); o["y"] = buildQueryParameterValue(); return o; } -checkUnnamed3492(core.Map<core.String, api.QueryParameterValue> o) { +checkUnnamed3663(core.Map<core.String, api.QueryParameterValue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameterValue(o["x"]); checkQueryParameterValue(o["y"]); @@ -3262,8 +3447,8 @@ var o = new api.QueryParameterValue(); buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - o.arrayValues = buildUnnamed3491(); - o.structValues = buildUnnamed3492(); + o.arrayValues = buildUnnamed3662(); + o.structValues = buildUnnamed3663(); o.value = "foo"; } buildCounterQueryParameterValue--; @@ -3273,34 +3458,47 @@ checkQueryParameterValue(api.QueryParameterValue o) { buildCounterQueryParameterValue++; if (buildCounterQueryParameterValue < 3) { - checkUnnamed3491(o.arrayValues); - checkUnnamed3492(o.structValues); + checkUnnamed3662(o.arrayValues); + checkUnnamed3663(o.structValues); unittest.expect(o.value, unittest.equals('foo')); } buildCounterQueryParameterValue--; } -buildUnnamed3493() { +buildUnnamed3664() { var o = new core.List<api.ConnectionProperty>(); o.add(buildConnectionProperty()); o.add(buildConnectionProperty()); return o; } -checkUnnamed3493(core.List<api.ConnectionProperty> o) { +checkUnnamed3664(core.List<api.ConnectionProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionProperty(o[0]); checkConnectionProperty(o[1]); } -buildUnnamed3494() { +buildUnnamed3665() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3665(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')); +} + +buildUnnamed3666() { var o = new core.List<api.QueryParameter>(); o.add(buildQueryParameter()); o.add(buildQueryParameter()); return o; } -checkUnnamed3494(core.List<api.QueryParameter> o) { +checkUnnamed3666(core.List<api.QueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryParameter(o[0]); checkQueryParameter(o[1]); @@ -3311,16 +3509,19 @@ var o = new api.QueryRequest(); buildCounterQueryRequest++; if (buildCounterQueryRequest < 3) { - o.connectionProperties = buildUnnamed3493(); + o.connectionProperties = buildUnnamed3664(); o.defaultDataset = buildDatasetReference(); o.dryRun = true; o.kind = "foo"; + o.labels = buildUnnamed3665(); o.location = "foo"; o.maxResults = 42; + o.maximumBytesBilled = "foo"; o.parameterMode = "foo"; o.preserveNulls = true; o.query = "foo"; - o.queryParameters = buildUnnamed3494(); + o.queryParameters = buildUnnamed3666(); + o.requestId = "foo"; o.timeoutMs = 42; o.useLegacySql = true; o.useQueryCache = true; @@ -3332,16 +3533,19 @@ checkQueryRequest(api.QueryRequest o) { buildCounterQueryRequest++; if (buildCounterQueryRequest < 3) { - checkUnnamed3493(o.connectionProperties); + checkUnnamed3664(o.connectionProperties); checkDatasetReference(o.defaultDataset); unittest.expect(o.dryRun, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed3665(o.labels); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.maxResults, unittest.equals(42)); + unittest.expect(o.maximumBytesBilled, unittest.equals('foo')); unittest.expect(o.parameterMode, unittest.equals('foo')); unittest.expect(o.preserveNulls, unittest.isTrue); unittest.expect(o.query, unittest.equals('foo')); - checkUnnamed3494(o.queryParameters); + checkUnnamed3666(o.queryParameters); + unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.timeoutMs, unittest.equals(42)); unittest.expect(o.useLegacySql, unittest.isTrue); unittest.expect(o.useQueryCache, unittest.isTrue); @@ -3349,27 +3553,27 @@ buildCounterQueryRequest--; } -buildUnnamed3495() { +buildUnnamed3667() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3495(core.List<api.ErrorProto> o) { +checkUnnamed3667(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); } -buildUnnamed3496() { +buildUnnamed3668() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3496(core.List<api.TableRow> o) { +checkUnnamed3668(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -3381,13 +3585,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { o.cacheHit = true; - o.errors = buildUnnamed3495(); + o.errors = buildUnnamed3667(); o.jobComplete = true; o.jobReference = buildJobReference(); o.kind = "foo"; o.numDmlAffectedRows = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3496(); + o.rows = buildUnnamed3668(); o.schema = buildTableSchema(); o.totalBytesProcessed = "foo"; o.totalRows = "foo"; @@ -3400,13 +3604,13 @@ buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { unittest.expect(o.cacheHit, unittest.isTrue); - checkUnnamed3495(o.errors); + checkUnnamed3667(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')); - checkUnnamed3496(o.rows); + checkUnnamed3668(o.rows); checkTableSchema(o.schema); unittest.expect(o.totalBytesProcessed, unittest.equals('foo')); unittest.expect(o.totalRows, unittest.equals('foo')); @@ -3538,27 +3742,27 @@ buildCounterRegressionMetrics--; } -buildUnnamed3497() { +buildUnnamed3669() { var o = new core.List<api.Argument>(); o.add(buildArgument()); o.add(buildArgument()); return o; } -checkUnnamed3497(core.List<api.Argument> o) { +checkUnnamed3669(core.List<api.Argument> o) { unittest.expect(o, unittest.hasLength(2)); checkArgument(o[0]); checkArgument(o[1]); } -buildUnnamed3498() { +buildUnnamed3670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3498(core.List<core.String> o) { +checkUnnamed3670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3569,12 +3773,13 @@ var o = new api.Routine(); buildCounterRoutine++; if (buildCounterRoutine < 3) { - o.arguments = buildUnnamed3497(); + o.arguments = buildUnnamed3669(); o.creationTime = "foo"; o.definitionBody = "foo"; o.description = "foo"; + o.determinismLevel = "foo"; o.etag = "foo"; - o.importedLibraries = buildUnnamed3498(); + o.importedLibraries = buildUnnamed3670(); o.language = "foo"; o.lastModifiedTime = "foo"; o.returnType = buildStandardSqlDataType(); @@ -3588,12 +3793,13 @@ checkRoutine(api.Routine o) { buildCounterRoutine++; if (buildCounterRoutine < 3) { - checkUnnamed3497(o.arguments); + checkUnnamed3669(o.arguments); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.definitionBody, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.determinismLevel, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3498(o.importedLibraries); + checkUnnamed3670(o.importedLibraries); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); checkStandardSqlDataType(o.returnType); @@ -3626,14 +3832,14 @@ buildCounterRoutineReference--; } -buildUnnamed3499() { +buildUnnamed3671() { var o = new core.List<api.Entry>(); o.add(buildEntry()); o.add(buildEntry()); return o; } -checkUnnamed3499(core.List<api.Entry> o) { +checkUnnamed3671(core.List<api.Entry> o) { unittest.expect(o, unittest.hasLength(2)); checkEntry(o[0]); checkEntry(o[1]); @@ -3645,7 +3851,7 @@ buildCounterRow++; if (buildCounterRow < 3) { o.actualLabel = "foo"; - o.entries = buildUnnamed3499(); + o.entries = buildUnnamed3671(); } buildCounterRow--; return o; @@ -3655,7 +3861,7 @@ buildCounterRow++; if (buildCounterRow < 3) { unittest.expect(o.actualLabel, unittest.equals('foo')); - checkUnnamed3499(o.entries); + checkUnnamed3671(o.entries); } buildCounterRow--; } @@ -3733,14 +3939,14 @@ buildCounterScriptStackFrame--; } -buildUnnamed3500() { +buildUnnamed3672() { var o = new core.List<api.ScriptStackFrame>(); o.add(buildScriptStackFrame()); o.add(buildScriptStackFrame()); return o; } -checkUnnamed3500(core.List<api.ScriptStackFrame> o) { +checkUnnamed3672(core.List<api.ScriptStackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackFrame(o[0]); checkScriptStackFrame(o[1]); @@ -3752,7 +3958,7 @@ buildCounterScriptStatistics++; if (buildCounterScriptStatistics < 3) { o.evaluationKind = "foo"; - o.stackFrames = buildUnnamed3500(); + o.stackFrames = buildUnnamed3672(); } buildCounterScriptStatistics--; return o; @@ -3762,7 +3968,7 @@ buildCounterScriptStatistics++; if (buildCounterScriptStatistics < 3) { unittest.expect(o.evaluationKind, unittest.equals('foo')); - checkUnnamed3500(o.stackFrames); + checkUnnamed3672(o.stackFrames); } buildCounterScriptStatistics--; } @@ -3788,6 +3994,28 @@ buildCounterSetIamPolicyRequest--; } +core.int buildCounterSnapshotDefinition = 0; +buildSnapshotDefinition() { + var o = new api.SnapshotDefinition(); + buildCounterSnapshotDefinition++; + if (buildCounterSnapshotDefinition < 3) { + o.baseTableReference = buildTableReference(); + o.snapshotTime = core.DateTime.parse("2002-02-27T14:01:02"); + } + buildCounterSnapshotDefinition--; + return o; +} + +checkSnapshotDefinition(api.SnapshotDefinition o) { + buildCounterSnapshotDefinition++; + if (buildCounterSnapshotDefinition < 3) { + checkTableReference(o.baseTableReference); + unittest.expect(o.snapshotTime, + unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + } + buildCounterSnapshotDefinition--; +} + core.int buildCounterStandardSqlDataType = 0; buildStandardSqlDataType() { var o = new api.StandardSqlDataType(); @@ -3832,14 +4060,14 @@ buildCounterStandardSqlField--; } -buildUnnamed3501() { +buildUnnamed3673() { var o = new core.List<api.StandardSqlField>(); o.add(buildStandardSqlField()); o.add(buildStandardSqlField()); return o; } -checkUnnamed3501(core.List<api.StandardSqlField> o) { +checkUnnamed3673(core.List<api.StandardSqlField> o) { unittest.expect(o, unittest.hasLength(2)); checkStandardSqlField(o[0]); checkStandardSqlField(o[1]); @@ -3850,7 +4078,7 @@ var o = new api.StandardSqlStructType(); buildCounterStandardSqlStructType++; if (buildCounterStandardSqlStructType < 3) { - o.fields = buildUnnamed3501(); + o.fields = buildUnnamed3673(); } buildCounterStandardSqlStructType--; return o; @@ -3859,7 +4087,7 @@ checkStandardSqlStructType(api.StandardSqlStructType o) { buildCounterStandardSqlStructType++; if (buildCounterStandardSqlStructType < 3) { - checkUnnamed3501(o.fields); + checkUnnamed3673(o.fields); } buildCounterStandardSqlStructType--; } @@ -3887,14 +4115,14 @@ buildCounterStreamingbuffer--; } -buildUnnamed3502() { +buildUnnamed3674() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3502(core.Map<core.String, core.String> o) { +checkUnnamed3674(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')); @@ -3915,7 +4143,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3502(); + o.labels = buildUnnamed3674(); o.lastModifiedTime = "foo"; o.location = "foo"; o.materializedView = buildMaterializedViewDefinition(); @@ -3928,6 +4156,7 @@ o.requirePartitionFilter = true; o.schema = buildTableSchema(); o.selfLink = "foo"; + o.snapshotDefinition = buildSnapshotDefinition(); o.streamingBuffer = buildStreamingbuffer(); o.tableReference = buildTableReference(); o.timePartitioning = buildTimePartitioning(); @@ -3951,7 +4180,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3502(o.labels); + checkUnnamed3674(o.labels); unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); checkMaterializedViewDefinition(o.materializedView); @@ -3964,6 +4193,7 @@ unittest.expect(o.requirePartitionFilter, unittest.isTrue); checkTableSchema(o.schema); unittest.expect(o.selfLink, unittest.equals('foo')); + checkSnapshotDefinition(o.snapshotDefinition); checkStreamingbuffer(o.streamingBuffer); checkTableReference(o.tableReference); checkTimePartitioning(o.timePartitioning); @@ -3991,11 +4221,11 @@ checkTableCell(api.TableCell o) { buildCounterTableCell++; if (buildCounterTableCell < 3) { - var casted3 = (o.v) 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.v) 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')); } buildCounterTableCell--; } @@ -4021,14 +4251,14 @@ buildCounterTableDataInsertAllRequestRows--; } -buildUnnamed3503() { +buildUnnamed3675() { var o = new core.List<api.TableDataInsertAllRequestRows>(); o.add(buildTableDataInsertAllRequestRows()); o.add(buildTableDataInsertAllRequestRows()); return o; } -checkUnnamed3503(core.List<api.TableDataInsertAllRequestRows> o) { +checkUnnamed3675(core.List<api.TableDataInsertAllRequestRows> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllRequestRows(o[0]); checkTableDataInsertAllRequestRows(o[1]); @@ -4041,7 +4271,7 @@ if (buildCounterTableDataInsertAllRequest < 3) { o.ignoreUnknownValues = true; o.kind = "foo"; - o.rows = buildUnnamed3503(); + o.rows = buildUnnamed3675(); o.skipInvalidRows = true; o.templateSuffix = "foo"; } @@ -4054,21 +4284,21 @@ if (buildCounterTableDataInsertAllRequest < 3) { unittest.expect(o.ignoreUnknownValues, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3503(o.rows); + checkUnnamed3675(o.rows); unittest.expect(o.skipInvalidRows, unittest.isTrue); unittest.expect(o.templateSuffix, unittest.equals('foo')); } buildCounterTableDataInsertAllRequest--; } -buildUnnamed3504() { +buildUnnamed3676() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed3504(core.List<api.ErrorProto> o) { +checkUnnamed3676(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -4079,7 +4309,7 @@ var o = new api.TableDataInsertAllResponseInsertErrors(); buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - o.errors = buildUnnamed3504(); + o.errors = buildUnnamed3676(); o.index = 42; } buildCounterTableDataInsertAllResponseInsertErrors--; @@ -4090,20 +4320,20 @@ api.TableDataInsertAllResponseInsertErrors o) { buildCounterTableDataInsertAllResponseInsertErrors++; if (buildCounterTableDataInsertAllResponseInsertErrors < 3) { - checkUnnamed3504(o.errors); + checkUnnamed3676(o.errors); unittest.expect(o.index, unittest.equals(42)); } buildCounterTableDataInsertAllResponseInsertErrors--; } -buildUnnamed3505() { +buildUnnamed3677() { var o = new core.List<api.TableDataInsertAllResponseInsertErrors>(); o.add(buildTableDataInsertAllResponseInsertErrors()); o.add(buildTableDataInsertAllResponseInsertErrors()); return o; } -checkUnnamed3505(core.List<api.TableDataInsertAllResponseInsertErrors> o) { +checkUnnamed3677(core.List<api.TableDataInsertAllResponseInsertErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkTableDataInsertAllResponseInsertErrors(o[0]); checkTableDataInsertAllResponseInsertErrors(o[1]); @@ -4114,7 +4344,7 @@ var o = new api.TableDataInsertAllResponse(); buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - o.insertErrors = buildUnnamed3505(); + o.insertErrors = buildUnnamed3677(); o.kind = "foo"; } buildCounterTableDataInsertAllResponse--; @@ -4124,20 +4354,20 @@ checkTableDataInsertAllResponse(api.TableDataInsertAllResponse o) { buildCounterTableDataInsertAllResponse++; if (buildCounterTableDataInsertAllResponse < 3) { - checkUnnamed3505(o.insertErrors); + checkUnnamed3677(o.insertErrors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTableDataInsertAllResponse--; } -buildUnnamed3506() { +buildUnnamed3678() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed3506(core.List<api.TableRow> o) { +checkUnnamed3678(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -4151,7 +4381,7 @@ o.etag = "foo"; o.kind = "foo"; o.pageToken = "foo"; - o.rows = buildUnnamed3506(); + o.rows = buildUnnamed3678(); o.totalRows = "foo"; } buildCounterTableDataList--; @@ -4164,20 +4394,20 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed3506(o.rows); + checkUnnamed3678(o.rows); unittest.expect(o.totalRows, unittest.equals('foo')); } buildCounterTableDataList--; } -buildUnnamed3507() { +buildUnnamed3679() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3507(core.List<core.String> o) { +checkUnnamed3679(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4188,7 +4418,7 @@ var o = new api.TableFieldSchemaCategories(); buildCounterTableFieldSchemaCategories++; if (buildCounterTableFieldSchemaCategories < 3) { - o.names = buildUnnamed3507(); + o.names = buildUnnamed3679(); } buildCounterTableFieldSchemaCategories--; return o; @@ -4197,32 +4427,32 @@ checkTableFieldSchemaCategories(api.TableFieldSchemaCategories o) { buildCounterTableFieldSchemaCategories++; if (buildCounterTableFieldSchemaCategories < 3) { - checkUnnamed3507(o.names); + checkUnnamed3679(o.names); } buildCounterTableFieldSchemaCategories--; } -buildUnnamed3508() { +buildUnnamed3680() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3508(core.List<api.TableFieldSchema> o) { +checkUnnamed3680(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); } -buildUnnamed3509() { +buildUnnamed3681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3509(core.List<core.String> o) { +checkUnnamed3681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4233,7 +4463,7 @@ var o = new api.TableFieldSchemaPolicyTags(); buildCounterTableFieldSchemaPolicyTags++; if (buildCounterTableFieldSchemaPolicyTags < 3) { - o.names = buildUnnamed3509(); + o.names = buildUnnamed3681(); } buildCounterTableFieldSchemaPolicyTags--; return o; @@ -4242,7 +4472,7 @@ checkTableFieldSchemaPolicyTags(api.TableFieldSchemaPolicyTags o) { buildCounterTableFieldSchemaPolicyTags++; if (buildCounterTableFieldSchemaPolicyTags < 3) { - checkUnnamed3509(o.names); + checkUnnamed3681(o.names); } buildCounterTableFieldSchemaPolicyTags--; } @@ -4254,7 +4484,7 @@ if (buildCounterTableFieldSchema < 3) { o.categories = buildTableFieldSchemaCategories(); o.description = "foo"; - o.fields = buildUnnamed3508(); + o.fields = buildUnnamed3680(); o.mode = "foo"; o.name = "foo"; o.policyTags = buildTableFieldSchemaPolicyTags(); @@ -4269,7 +4499,7 @@ if (buildCounterTableFieldSchema < 3) { checkTableFieldSchemaCategories(o.categories); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3508(o.fields); + checkUnnamed3680(o.fields); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkTableFieldSchemaPolicyTags(o.policyTags); @@ -4278,14 +4508,14 @@ buildCounterTableFieldSchema--; } -buildUnnamed3510() { +buildUnnamed3682() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3510(core.Map<core.String, core.String> o) { +checkUnnamed3682(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')); @@ -4321,7 +4551,7 @@ o.friendlyName = "foo"; o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed3510(); + o.labels = buildUnnamed3682(); o.rangePartitioning = buildRangePartitioning(); o.tableReference = buildTableReference(); o.timePartitioning = buildTimePartitioning(); @@ -4341,7 +4571,7 @@ unittest.expect(o.friendlyName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3510(o.labels); + checkUnnamed3682(o.labels); checkRangePartitioning(o.rangePartitioning); checkTableReference(o.tableReference); checkTimePartitioning(o.timePartitioning); @@ -4351,14 +4581,14 @@ buildCounterTableListTables--; } -buildUnnamed3511() { +buildUnnamed3683() { var o = new core.List<api.TableListTables>(); o.add(buildTableListTables()); o.add(buildTableListTables()); return o; } -checkUnnamed3511(core.List<api.TableListTables> o) { +checkUnnamed3683(core.List<api.TableListTables> o) { unittest.expect(o, unittest.hasLength(2)); checkTableListTables(o[0]); checkTableListTables(o[1]); @@ -4372,7 +4602,7 @@ o.etag = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.tables = buildUnnamed3511(); + o.tables = buildUnnamed3683(); o.totalItems = 42; } buildCounterTableList--; @@ -4385,7 +4615,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3511(o.tables); + checkUnnamed3683(o.tables); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterTableList--; @@ -4414,14 +4644,14 @@ buildCounterTableReference--; } -buildUnnamed3512() { +buildUnnamed3684() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed3512(core.List<api.TableCell> o) { +checkUnnamed3684(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -4432,7 +4662,7 @@ var o = new api.TableRow(); buildCounterTableRow++; if (buildCounterTableRow < 3) { - o.f = buildUnnamed3512(); + o.f = buildUnnamed3684(); } buildCounterTableRow--; return o; @@ -4441,19 +4671,19 @@ checkTableRow(api.TableRow o) { buildCounterTableRow++; if (buildCounterTableRow < 3) { - checkUnnamed3512(o.f); + checkUnnamed3684(o.f); } buildCounterTableRow--; } -buildUnnamed3513() { +buildUnnamed3685() { var o = new core.List<api.TableFieldSchema>(); o.add(buildTableFieldSchema()); o.add(buildTableFieldSchema()); return o; } -checkUnnamed3513(core.List<api.TableFieldSchema> o) { +checkUnnamed3685(core.List<api.TableFieldSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkTableFieldSchema(o[0]); checkTableFieldSchema(o[1]); @@ -4464,7 +4694,7 @@ var o = new api.TableSchema(); buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - o.fields = buildUnnamed3513(); + o.fields = buildUnnamed3685(); } buildCounterTableSchema--; return o; @@ -4473,19 +4703,19 @@ checkTableSchema(api.TableSchema o) { buildCounterTableSchema++; if (buildCounterTableSchema < 3) { - checkUnnamed3513(o.fields); + checkUnnamed3685(o.fields); } buildCounterTableSchema--; } -buildUnnamed3514() { +buildUnnamed3686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3514(core.List<core.String> o) { +checkUnnamed3686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4496,7 +4726,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3514(); + o.permissions = buildUnnamed3686(); } buildCounterTestIamPermissionsRequest--; return o; @@ -4505,19 +4735,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3514(o.permissions); + checkUnnamed3686(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3515() { +buildUnnamed3687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3515(core.List<core.String> o) { +checkUnnamed3687(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4528,7 +4758,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3515(); + o.permissions = buildUnnamed3687(); } buildCounterTestIamPermissionsResponse--; return o; @@ -4537,7 +4767,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3515(o.permissions); + checkUnnamed3687(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -4567,40 +4797,40 @@ buildCounterTimePartitioning--; } -buildUnnamed3516() { +buildUnnamed3688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3516(core.List<core.String> o) { +checkUnnamed3688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3517() { +buildUnnamed3689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3517(core.List<core.String> o) { +checkUnnamed3689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3518() { +buildUnnamed3690() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed3518(core.Map<core.String, core.double> o) { +checkUnnamed3690(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)); @@ -4611,7 +4841,10 @@ var o = new api.TrainingOptions(); buildCounterTrainingOptions++; if (buildCounterTrainingOptions < 3) { + o.autoArima = true; + o.autoArimaMaxOrder = "foo"; o.batchSize = "foo"; + o.dataFrequency = "foo"; o.dataSplitColumn = "foo"; o.dataSplitEvalFraction = 42.0; o.dataSplitMethod = "foo"; @@ -4619,15 +4852,18 @@ o.dropout = 42.0; o.earlyStop = true; o.feedbackType = "foo"; - o.hiddenUnits = buildUnnamed3516(); + o.hiddenUnits = buildUnnamed3688(); + o.holidayRegion = "foo"; + o.horizon = "foo"; + o.includeDrift = true; o.initialLearnRate = 42.0; - o.inputLabelColumns = buildUnnamed3517(); + o.inputLabelColumns = buildUnnamed3689(); o.itemColumn = "foo"; o.kmeansInitializationColumn = "foo"; o.kmeansInitializationMethod = "foo"; o.l1Regularization = 42.0; o.l2Regularization = 42.0; - o.labelClassWeights = buildUnnamed3518(); + o.labelClassWeights = buildUnnamed3690(); o.learnRate = 42.0; o.learnRateStrategy = "foo"; o.lossType = "foo"; @@ -4636,10 +4872,15 @@ o.minRelativeProgress = 42.0; o.minSplitLoss = 42.0; o.modelUri = "foo"; + o.nonSeasonalOrder = buildArimaOrder(); o.numClusters = "foo"; o.numFactors = "foo"; o.optimizationStrategy = "foo"; + o.preserveInputStructs = true; o.subsample = 42.0; + o.timeSeriesDataColumn = "foo"; + o.timeSeriesIdColumn = "foo"; + o.timeSeriesTimestampColumn = "foo"; o.userColumn = "foo"; o.walsAlpha = 42.0; o.warmStart = true; @@ -4651,7 +4892,10 @@ checkTrainingOptions(api.TrainingOptions o) { buildCounterTrainingOptions++; if (buildCounterTrainingOptions < 3) { + unittest.expect(o.autoArima, unittest.isTrue); + unittest.expect(o.autoArimaMaxOrder, unittest.equals('foo')); unittest.expect(o.batchSize, unittest.equals('foo')); + unittest.expect(o.dataFrequency, unittest.equals('foo')); unittest.expect(o.dataSplitColumn, unittest.equals('foo')); unittest.expect(o.dataSplitEvalFraction, unittest.equals(42.0)); unittest.expect(o.dataSplitMethod, unittest.equals('foo')); @@ -4659,15 +4903,18 @@ unittest.expect(o.dropout, unittest.equals(42.0)); unittest.expect(o.earlyStop, unittest.isTrue); unittest.expect(o.feedbackType, unittest.equals('foo')); - checkUnnamed3516(o.hiddenUnits); + checkUnnamed3688(o.hiddenUnits); + unittest.expect(o.holidayRegion, unittest.equals('foo')); + unittest.expect(o.horizon, unittest.equals('foo')); + unittest.expect(o.includeDrift, unittest.isTrue); unittest.expect(o.initialLearnRate, unittest.equals(42.0)); - checkUnnamed3517(o.inputLabelColumns); + checkUnnamed3689(o.inputLabelColumns); unittest.expect(o.itemColumn, unittest.equals('foo')); unittest.expect(o.kmeansInitializationColumn, unittest.equals('foo')); unittest.expect(o.kmeansInitializationMethod, unittest.equals('foo')); unittest.expect(o.l1Regularization, unittest.equals(42.0)); unittest.expect(o.l2Regularization, unittest.equals(42.0)); - checkUnnamed3518(o.labelClassWeights); + checkUnnamed3690(o.labelClassWeights); unittest.expect(o.learnRate, unittest.equals(42.0)); unittest.expect(o.learnRateStrategy, unittest.equals('foo')); unittest.expect(o.lossType, unittest.equals('foo')); @@ -4676,10 +4923,15 @@ unittest.expect(o.minRelativeProgress, unittest.equals(42.0)); unittest.expect(o.minSplitLoss, unittest.equals(42.0)); unittest.expect(o.modelUri, unittest.equals('foo')); + checkArimaOrder(o.nonSeasonalOrder); unittest.expect(o.numClusters, unittest.equals('foo')); unittest.expect(o.numFactors, unittest.equals('foo')); unittest.expect(o.optimizationStrategy, unittest.equals('foo')); + unittest.expect(o.preserveInputStructs, unittest.isTrue); unittest.expect(o.subsample, unittest.equals(42.0)); + unittest.expect(o.timeSeriesDataColumn, unittest.equals('foo')); + unittest.expect(o.timeSeriesIdColumn, unittest.equals('foo')); + unittest.expect(o.timeSeriesTimestampColumn, unittest.equals('foo')); unittest.expect(o.userColumn, unittest.equals('foo')); unittest.expect(o.walsAlpha, unittest.equals(42.0)); unittest.expect(o.warmStart, unittest.isTrue); @@ -4687,14 +4939,14 @@ buildCounterTrainingOptions--; } -buildUnnamed3519() { +buildUnnamed3691() { var o = new core.List<api.IterationResult>(); o.add(buildIterationResult()); o.add(buildIterationResult()); return o; } -checkUnnamed3519(core.List<api.IterationResult> o) { +checkUnnamed3691(core.List<api.IterationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkIterationResult(o[0]); checkIterationResult(o[1]); @@ -4707,7 +4959,7 @@ if (buildCounterTrainingRun < 3) { o.dataSplitResult = buildDataSplitResult(); o.evaluationMetrics = buildEvaluationMetrics(); - o.results = buildUnnamed3519(); + o.results = buildUnnamed3691(); o.startTime = "foo"; o.trainingOptions = buildTrainingOptions(); } @@ -4720,13 +4972,32 @@ if (buildCounterTrainingRun < 3) { checkDataSplitResult(o.dataSplitResult); checkEvaluationMetrics(o.evaluationMetrics); - checkUnnamed3519(o.results); + checkUnnamed3691(o.results); unittest.expect(o.startTime, unittest.equals('foo')); checkTrainingOptions(o.trainingOptions); } buildCounterTrainingRun--; } +core.int buildCounterTransactionInfo = 0; +buildTransactionInfo() { + var o = new api.TransactionInfo(); + buildCounterTransactionInfo++; + if (buildCounterTransactionInfo < 3) { + o.transactionId = "foo"; + } + buildCounterTransactionInfo--; + return o; +} + +checkTransactionInfo(api.TransactionInfo o) { + buildCounterTransactionInfo++; + if (buildCounterTransactionInfo < 3) { + unittest.expect(o.transactionId, unittest.equals('foo')); + } + buildCounterTransactionInfo--; +} + core.int buildCounterUserDefinedFunctionResource = 0; buildUserDefinedFunctionResource() { var o = new api.UserDefinedFunctionResource(); @@ -4748,14 +5019,14 @@ buildCounterUserDefinedFunctionResource--; } -buildUnnamed3520() { +buildUnnamed3692() { var o = new core.List<api.UserDefinedFunctionResource>(); o.add(buildUserDefinedFunctionResource()); o.add(buildUserDefinedFunctionResource()); return o; } -checkUnnamed3520(core.List<api.UserDefinedFunctionResource> o) { +checkUnnamed3692(core.List<api.UserDefinedFunctionResource> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedFunctionResource(o[0]); checkUserDefinedFunctionResource(o[1]); @@ -4768,7 +5039,7 @@ if (buildCounterViewDefinition < 3) { o.query = "foo"; o.useLegacySql = true; - o.userDefinedFunctionResources = buildUnnamed3520(); + o.userDefinedFunctionResources = buildUnnamed3692(); } buildCounterViewDefinition--; return o; @@ -4779,19 +5050,19 @@ if (buildCounterViewDefinition < 3) { unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.useLegacySql, unittest.isTrue); - checkUnnamed3520(o.userDefinedFunctionResources); + checkUnnamed3692(o.userDefinedFunctionResources); } buildCounterViewDefinition--; } -buildUnnamed3521() { +buildUnnamed3693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3521(core.List<core.String> o) { +checkUnnamed3693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4830,6 +5101,14 @@ }); }); + unittest.group("obj-schema-ArimaForecastingMetrics", () { + unittest.test("to-json--from-json", () { + var o = buildArimaForecastingMetrics(); + var od = new api.ArimaForecastingMetrics.fromJson(o.toJson()); + checkArimaForecastingMetrics(od); + }); + }); + unittest.group("obj-schema-ArimaModelInfo", () { unittest.test("to-json--from-json", () { var o = buildArimaModelInfo(); @@ -4854,6 +5133,14 @@ }); }); + unittest.group("obj-schema-ArimaSingleModelForecastingMetrics", () { + unittest.test("to-json--from-json", () { + var o = buildArimaSingleModelForecastingMetrics(); + var od = new api.ArimaSingleModelForecastingMetrics.fromJson(o.toJson()); + checkArimaSingleModelForecastingMetrics(od); + }); + }); + unittest.group("obj-schema-AuditConfig", () { unittest.test("to-json--from-json", () { var o = buildAuditConfig(); @@ -5606,6 +5893,14 @@ }); }); + unittest.group("obj-schema-SnapshotDefinition", () { + unittest.test("to-json--from-json", () { + var o = buildSnapshotDefinition(); + var od = new api.SnapshotDefinition.fromJson(o.toJson()); + checkSnapshotDefinition(od); + }); + }); + unittest.group("obj-schema-StandardSqlDataType", () { unittest.test("to-json--from-json", () { var o = buildStandardSqlDataType(); @@ -5807,6 +6102,14 @@ }); }); + unittest.group("obj-schema-TransactionInfo", () { + unittest.test("to-json--from-json", () { + var o = buildTransactionInfo(); + var od = new api.TransactionInfo.fromJson(o.toJson()); + checkTransactionInfo(od); + }); + }); + unittest.group("obj-schema-UserDefinedFunctionResource", () { unittest.test("to-json--from-json", () { var o = buildUserDefinedFunctionResource(); @@ -6029,9 +6332,9 @@ api.DatasetsResourceApi res = new api.BigqueryApi(mock).datasets; var arg_projectId = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_maxResults = 42; var arg_all = true; + var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6076,11 +6379,11 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["all"].first, unittest.equals("$arg_all")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["all"].first, unittest.equals("$arg_all")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6092,9 +6395,9 @@ res .list(arg_projectId, filter: arg_filter, - pageToken: arg_pageToken, - maxResults: arg_maxResults, all: arg_all, + maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDatasetList(response); @@ -6396,11 +6699,11 @@ api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; var arg_projectId = "foo"; var arg_jobId = "foo"; + var arg_timeoutMs = 42; var arg_startIndex = "foo"; var arg_location = "foo"; - var arg_pageToken = "foo"; - var arg_timeoutMs = 42; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6447,16 +6750,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["timeoutMs"].first), + unittest.equals(arg_timeoutMs)); unittest.expect( queryMap["startIndex"].first, unittest.equals(arg_startIndex)); unittest.expect( queryMap["location"].first, unittest.equals(arg_location)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["timeoutMs"].first), - unittest.equals(arg_timeoutMs)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6467,11 +6770,11 @@ }), true); res .getQueryResults(arg_projectId, arg_jobId, + timeoutMs: arg_timeoutMs, startIndex: arg_startIndex, location: arg_location, - pageToken: arg_pageToken, - timeoutMs: arg_timeoutMs, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetQueryResultsResponse(response); @@ -6551,14 +6854,14 @@ var mock = new HttpServerMock(); api.JobsResourceApi res = new api.BigqueryApi(mock).jobs; var arg_projectId = "foo"; - var arg_maxResults = 42; - var arg_maxCreationTime = "foo"; - var arg_stateFilter = buildUnnamed3521(); - var arg_projection = "foo"; - var arg_parentJobId = "foo"; - var arg_minCreationTime = "foo"; - var arg_pageToken = "foo"; + var arg_stateFilter = buildUnnamed3693(); var arg_allUsers = true; + var arg_pageToken = "foo"; + var arg_minCreationTime = "foo"; + var arg_parentJobId = "foo"; + var arg_maxCreationTime = "foo"; + var arg_projection = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6602,22 +6905,22 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["maxCreationTime"].first, - unittest.equals(arg_maxCreationTime)); unittest.expect( queryMap["stateFilter"], unittest.equals(arg_stateFilter)); unittest.expect( - queryMap["projection"].first, unittest.equals(arg_projection)); + queryMap["allUsers"].first, unittest.equals("$arg_allUsers")); unittest.expect( - queryMap["parentJobId"].first, unittest.equals(arg_parentJobId)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["minCreationTime"].first, unittest.equals(arg_minCreationTime)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["parentJobId"].first, unittest.equals(arg_parentJobId)); + unittest.expect(queryMap["maxCreationTime"].first, + unittest.equals(arg_maxCreationTime)); unittest.expect( - queryMap["allUsers"].first, unittest.equals("$arg_allUsers")); + queryMap["projection"].first, unittest.equals(arg_projection)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6628,14 +6931,14 @@ }), true); res .list(arg_projectId, - maxResults: arg_maxResults, - maxCreationTime: arg_maxCreationTime, stateFilter: arg_stateFilter, - projection: arg_projection, - parentJobId: arg_parentJobId, - minCreationTime: arg_minCreationTime, - pageToken: arg_pageToken, allUsers: arg_allUsers, + pageToken: arg_pageToken, + minCreationTime: arg_minCreationTime, + parentJobId: arg_parentJobId, + maxCreationTime: arg_maxCreationTime, + projection: arg_projection, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkJobList(response); @@ -7013,8 +7316,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.BigqueryApi(mock).projects; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7049,10 +7352,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7063,8 +7366,8 @@ }), true); res .list( - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProjectList(response); @@ -7254,8 +7557,8 @@ var arg_projectId = "foo"; var arg_datasetId = "foo"; var arg_readMask = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -7294,9 +7597,9 @@ } unittest.expect( queryMap["readMask"].first, unittest.equals(arg_readMask)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -7310,8 +7613,8 @@ res .list(arg_projectId, arg_datasetId, readMask: arg_readMask, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -7475,10 +7778,10 @@ var arg_projectId = "foo"; var arg_datasetId = "foo"; var arg_tableId = "foo"; - var arg_selectedFields = "foo"; - var arg_startIndex = "foo"; var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_selectedFields = "foo"; + var arg_startIndex = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7540,14 +7843,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["selectedFields"].first, - unittest.equals(arg_selectedFields)); - unittest.expect( - queryMap["startIndex"].first, unittest.equals(arg_startIndex)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["selectedFields"].first, + unittest.equals(arg_selectedFields)); + unittest.expect( + queryMap["startIndex"].first, unittest.equals(arg_startIndex)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7558,10 +7861,10 @@ }), true); res .list(arg_projectId, arg_datasetId, arg_tableId, - selectedFields: arg_selectedFields, - startIndex: arg_startIndex, pageToken: arg_pageToken, maxResults: arg_maxResults, + selectedFields: arg_selectedFields, + startIndex: arg_startIndex, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTableDataList(response); @@ -7858,8 +8161,8 @@ api.TablesResourceApi res = new api.BigqueryApi(mock).tables; var arg_projectId = "foo"; var arg_datasetId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7912,10 +8215,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7926,8 +8229,8 @@ }), true); res .list(arg_projectId, arg_datasetId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTableList(response);
diff --git a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart index d99ecd5..fdaee23 100644 --- a/generated/googleapis/test/bigquerydatatransfer/v1_test.dart +++ b/generated/googleapis/test/bigquerydatatransfer/v1_test.dart
@@ -84,27 +84,27 @@ buildCounterCheckValidCredsResponse--; } -buildUnnamed3522() { +buildUnnamed3694() { var o = new core.List<api.DataSourceParameter>(); o.add(buildDataSourceParameter()); o.add(buildDataSourceParameter()); return o; } -checkUnnamed3522(core.List<api.DataSourceParameter> o) { +checkUnnamed3694(core.List<api.DataSourceParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceParameter(o[0]); checkDataSourceParameter(o[1]); } -buildUnnamed3523() { +buildUnnamed3695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3523(core.List<core.String> o) { +checkUnnamed3695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -127,8 +127,8 @@ o.manualRunsDisabled = true; o.minimumScheduleInterval = "foo"; o.name = "foo"; - o.parameters = buildUnnamed3522(); - o.scopes = buildUnnamed3523(); + o.parameters = buildUnnamed3694(); + o.scopes = buildUnnamed3695(); o.supportsCustomSchedule = true; o.supportsMultipleTransfers = true; o.transferType = "foo"; @@ -153,8 +153,8 @@ unittest.expect(o.manualRunsDisabled, unittest.isTrue); unittest.expect(o.minimumScheduleInterval, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3522(o.parameters); - checkUnnamed3523(o.scopes); + checkUnnamed3694(o.parameters); + checkUnnamed3695(o.scopes); unittest.expect(o.supportsCustomSchedule, unittest.isTrue); unittest.expect(o.supportsMultipleTransfers, unittest.isTrue); unittest.expect(o.transferType, unittest.equals('foo')); @@ -163,27 +163,27 @@ buildCounterDataSource--; } -buildUnnamed3524() { +buildUnnamed3696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3524(core.List<core.String> o) { +checkUnnamed3696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3525() { +buildUnnamed3697() { var o = new core.List<api.DataSourceParameter>(); o.add(buildDataSourceParameter()); o.add(buildDataSourceParameter()); return o; } -checkUnnamed3525(core.List<api.DataSourceParameter> o) { +checkUnnamed3697(core.List<api.DataSourceParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceParameter(o[0]); checkDataSourceParameter(o[1]); @@ -194,11 +194,11 @@ var o = new api.DataSourceParameter(); buildCounterDataSourceParameter++; if (buildCounterDataSourceParameter < 3) { - o.allowedValues = buildUnnamed3524(); + o.allowedValues = buildUnnamed3696(); o.deprecated = true; o.description = "foo"; o.displayName = "foo"; - o.fields = buildUnnamed3525(); + o.fields = buildUnnamed3697(); o.immutable = true; o.maxValue = 42.0; o.minValue = 42.0; @@ -218,11 +218,11 @@ checkDataSourceParameter(api.DataSourceParameter o) { buildCounterDataSourceParameter++; if (buildCounterDataSourceParameter < 3) { - checkUnnamed3524(o.allowedValues); + checkUnnamed3696(o.allowedValues); unittest.expect(o.deprecated, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3525(o.fields); + checkUnnamed3697(o.fields); unittest.expect(o.immutable, unittest.isTrue); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); @@ -272,14 +272,14 @@ buildCounterEmpty--; } -buildUnnamed3526() { +buildUnnamed3698() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed3526(core.List<api.DataSource> o) { +checkUnnamed3698(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -290,7 +290,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSources = buildUnnamed3526(); + o.dataSources = buildUnnamed3698(); o.nextPageToken = "foo"; } buildCounterListDataSourcesResponse--; @@ -300,20 +300,20 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed3526(o.dataSources); + checkUnnamed3698(o.dataSources); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDataSourcesResponse--; } -buildUnnamed3527() { +buildUnnamed3699() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3527(core.List<api.Location> o) { +checkUnnamed3699(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -324,7 +324,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3527(); + o.locations = buildUnnamed3699(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -334,20 +334,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3527(o.locations); + checkUnnamed3699(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3528() { +buildUnnamed3700() { var o = new core.List<api.TransferConfig>(); o.add(buildTransferConfig()); o.add(buildTransferConfig()); return o; } -checkUnnamed3528(core.List<api.TransferConfig> o) { +checkUnnamed3700(core.List<api.TransferConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferConfig(o[0]); checkTransferConfig(o[1]); @@ -359,7 +359,7 @@ buildCounterListTransferConfigsResponse++; if (buildCounterListTransferConfigsResponse < 3) { o.nextPageToken = "foo"; - o.transferConfigs = buildUnnamed3528(); + o.transferConfigs = buildUnnamed3700(); } buildCounterListTransferConfigsResponse--; return o; @@ -369,19 +369,19 @@ buildCounterListTransferConfigsResponse++; if (buildCounterListTransferConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3528(o.transferConfigs); + checkUnnamed3700(o.transferConfigs); } buildCounterListTransferConfigsResponse--; } -buildUnnamed3529() { +buildUnnamed3701() { var o = new core.List<api.TransferMessage>(); o.add(buildTransferMessage()); o.add(buildTransferMessage()); return o; } -checkUnnamed3529(core.List<api.TransferMessage> o) { +checkUnnamed3701(core.List<api.TransferMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferMessage(o[0]); checkTransferMessage(o[1]); @@ -393,7 +393,7 @@ buildCounterListTransferLogsResponse++; if (buildCounterListTransferLogsResponse < 3) { o.nextPageToken = "foo"; - o.transferMessages = buildUnnamed3529(); + o.transferMessages = buildUnnamed3701(); } buildCounterListTransferLogsResponse--; return o; @@ -403,19 +403,19 @@ buildCounterListTransferLogsResponse++; if (buildCounterListTransferLogsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3529(o.transferMessages); + checkUnnamed3701(o.transferMessages); } buildCounterListTransferLogsResponse--; } -buildUnnamed3530() { +buildUnnamed3702() { var o = new core.List<api.TransferRun>(); o.add(buildTransferRun()); o.add(buildTransferRun()); return o; } -checkUnnamed3530(core.List<api.TransferRun> o) { +checkUnnamed3702(core.List<api.TransferRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferRun(o[0]); checkTransferRun(o[1]); @@ -427,7 +427,7 @@ buildCounterListTransferRunsResponse++; if (buildCounterListTransferRunsResponse < 3) { o.nextPageToken = "foo"; - o.transferRuns = buildUnnamed3530(); + o.transferRuns = buildUnnamed3702(); } buildCounterListTransferRunsResponse--; return o; @@ -437,25 +437,25 @@ buildCounterListTransferRunsResponse++; if (buildCounterListTransferRunsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3530(o.transferRuns); + checkUnnamed3702(o.transferRuns); } buildCounterListTransferRunsResponse--; } -buildUnnamed3531() { +buildUnnamed3703() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3531(core.Map<core.String, core.String> o) { +checkUnnamed3703(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')); } -buildUnnamed3532() { +buildUnnamed3704() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -470,7 +470,7 @@ return o; } -checkUnnamed3532(core.Map<core.String, core.Object> o) { +checkUnnamed3704(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)); @@ -490,9 +490,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed3531(); + o.labels = buildUnnamed3703(); o.locationId = "foo"; - o.metadata = buildUnnamed3532(); + o.metadata = buildUnnamed3704(); o.name = "foo"; } buildCounterLocation--; @@ -503,9 +503,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3531(o.labels); + checkUnnamed3703(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3532(o.metadata); + checkUnnamed3704(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -555,14 +555,14 @@ buildCounterScheduleTransferRunsRequest--; } -buildUnnamed3533() { +buildUnnamed3705() { var o = new core.List<api.TransferRun>(); o.add(buildTransferRun()); o.add(buildTransferRun()); return o; } -checkUnnamed3533(core.List<api.TransferRun> o) { +checkUnnamed3705(core.List<api.TransferRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferRun(o[0]); checkTransferRun(o[1]); @@ -573,7 +573,7 @@ var o = new api.ScheduleTransferRunsResponse(); buildCounterScheduleTransferRunsResponse++; if (buildCounterScheduleTransferRunsResponse < 3) { - o.runs = buildUnnamed3533(); + o.runs = buildUnnamed3705(); } buildCounterScheduleTransferRunsResponse--; return o; @@ -582,7 +582,7 @@ checkScheduleTransferRunsResponse(api.ScheduleTransferRunsResponse o) { buildCounterScheduleTransferRunsResponse++; if (buildCounterScheduleTransferRunsResponse < 3) { - checkUnnamed3533(o.runs); + checkUnnamed3705(o.runs); } buildCounterScheduleTransferRunsResponse--; } @@ -608,14 +608,14 @@ buildCounterStartManualTransferRunsRequest--; } -buildUnnamed3534() { +buildUnnamed3706() { var o = new core.List<api.TransferRun>(); o.add(buildTransferRun()); o.add(buildTransferRun()); return o; } -checkUnnamed3534(core.List<api.TransferRun> o) { +checkUnnamed3706(core.List<api.TransferRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferRun(o[0]); checkTransferRun(o[1]); @@ -626,7 +626,7 @@ var o = new api.StartManualTransferRunsResponse(); buildCounterStartManualTransferRunsResponse++; if (buildCounterStartManualTransferRunsResponse < 3) { - o.runs = buildUnnamed3534(); + o.runs = buildUnnamed3706(); } buildCounterStartManualTransferRunsResponse--; return o; @@ -635,12 +635,12 @@ checkStartManualTransferRunsResponse(api.StartManualTransferRunsResponse o) { buildCounterStartManualTransferRunsResponse++; if (buildCounterStartManualTransferRunsResponse < 3) { - checkUnnamed3534(o.runs); + checkUnnamed3706(o.runs); } buildCounterStartManualTransferRunsResponse--; } -buildUnnamed3535() { +buildUnnamed3707() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -655,7 +655,7 @@ return o; } -checkUnnamed3535(core.Map<core.String, core.Object> o) { +checkUnnamed3707(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)); @@ -669,17 +669,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3536() { +buildUnnamed3708() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3535()); - o.add(buildUnnamed3535()); + o.add(buildUnnamed3707()); + o.add(buildUnnamed3707()); return o; } -checkUnnamed3536(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3708(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3535(o[0]); - checkUnnamed3535(o[1]); + checkUnnamed3707(o[0]); + checkUnnamed3707(o[1]); } core.int buildCounterStatus = 0; @@ -688,7 +688,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3536(); + o.details = buildUnnamed3708(); o.message = "foo"; } buildCounterStatus--; @@ -699,7 +699,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3536(o.details); + checkUnnamed3708(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -726,7 +726,7 @@ buildCounterTimeRange--; } -buildUnnamed3537() { +buildUnnamed3709() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -741,7 +741,7 @@ return o; } -checkUnnamed3537(core.Map<core.String, core.Object> o) { +checkUnnamed3709(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)); @@ -770,7 +770,7 @@ o.name = "foo"; o.nextRunTime = "foo"; o.notificationPubsubTopic = "foo"; - o.params = buildUnnamed3537(); + o.params = buildUnnamed3709(); o.schedule = "foo"; o.scheduleOptions = buildScheduleOptions(); o.state = "foo"; @@ -794,7 +794,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nextRunTime, unittest.equals('foo')); unittest.expect(o.notificationPubsubTopic, unittest.equals('foo')); - checkUnnamed3537(o.params); + checkUnnamed3709(o.params); unittest.expect(o.schedule, unittest.equals('foo')); checkScheduleOptions(o.scheduleOptions); unittest.expect(o.state, unittest.equals('foo')); @@ -827,7 +827,7 @@ buildCounterTransferMessage--; } -buildUnnamed3538() { +buildUnnamed3710() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -842,7 +842,7 @@ return o; } -checkUnnamed3538(core.Map<core.String, core.Object> o) { +checkUnnamed3710(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)); @@ -868,7 +868,7 @@ o.errorStatus = buildStatus(); o.name = "foo"; o.notificationPubsubTopic = "foo"; - o.params = buildUnnamed3538(); + o.params = buildUnnamed3710(); o.runTime = "foo"; o.schedule = "foo"; o.scheduleTime = "foo"; @@ -891,7 +891,7 @@ checkStatus(o.errorStatus); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notificationPubsubTopic, unittest.equals('foo')); - checkUnnamed3538(o.params); + checkUnnamed3710(o.params); unittest.expect(o.runTime, unittest.equals('foo')); unittest.expect(o.schedule, unittest.equals('foo')); unittest.expect(o.scheduleTime, unittest.equals('foo')); @@ -903,79 +903,79 @@ buildCounterTransferRun--; } -buildUnnamed3539() { +buildUnnamed3711() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3539(core.List<core.String> o) { +checkUnnamed3711(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3540() { +buildUnnamed3712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3540(core.List<core.String> o) { +checkUnnamed3712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3541() { +buildUnnamed3713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3541(core.List<core.String> o) { +checkUnnamed3713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3542() { +buildUnnamed3714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3542(core.List<core.String> o) { +checkUnnamed3714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3543() { +buildUnnamed3715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3543(core.List<core.String> o) { +checkUnnamed3715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3544() { +buildUnnamed3716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3544(core.List<core.String> o) { +checkUnnamed3716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1561,8 +1561,8 @@ api.ProjectsLocationsDataSourcesResourceApi res = new api.BigquerydatatransferApi(mock).projects.locations.dataSources; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1595,10 +1595,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1609,8 +1609,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDataSourcesResponse(response); @@ -1629,8 +1629,8 @@ var arg_request = buildTransferConfig(); var arg_parent = "foo"; var arg_versionInfo = "foo"; - var arg_authorizationCode = "foo"; var arg_serviceAccountName = "foo"; + var arg_authorizationCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferConfig.fromJson(json); @@ -1668,10 +1668,10 @@ } unittest.expect( queryMap["versionInfo"].first, unittest.equals(arg_versionInfo)); - unittest.expect(queryMap["authorizationCode"].first, - unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["serviceAccountName"].first, unittest.equals(arg_serviceAccountName)); + unittest.expect(queryMap["authorizationCode"].first, + unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1683,8 +1683,8 @@ res .create(arg_request, arg_parent, versionInfo: arg_versionInfo, - authorizationCode: arg_authorizationCode, serviceAccountName: arg_serviceAccountName, + authorizationCode: arg_authorizationCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTransferConfig(response); @@ -1811,7 +1811,7 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_dataSourceIds = buildUnnamed3539(); + var arg_dataSourceIds = buildUnnamed3711(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1878,8 +1878,8 @@ .transferConfigs; var arg_request = buildTransferConfig(); var arg_name = "foo"; - var arg_authorizationCode = "foo"; var arg_updateMask = "foo"; + var arg_authorizationCode = "foo"; var arg_serviceAccountName = "foo"; var arg_versionInfo = "foo"; var arg_$fields = "foo"; @@ -1917,10 +1917,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["authorizationCode"].first, - unittest.equals(arg_authorizationCode)); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["authorizationCode"].first, + unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["serviceAccountName"].first, unittest.equals(arg_serviceAccountName)); unittest.expect( @@ -1935,8 +1935,8 @@ }), true); res .patch(arg_request, arg_name, - authorizationCode: arg_authorizationCode, updateMask: arg_updateMask, + authorizationCode: arg_authorizationCode, serviceAccountName: arg_serviceAccountName, versionInfo: arg_versionInfo, $fields: arg_$fields) @@ -2188,9 +2188,9 @@ .runs; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_states = buildUnnamed3540(); - var arg_pageSize = 42; var arg_runAttempt = "foo"; + var arg_pageSize = 42; + var arg_states = buildUnnamed3712(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2225,11 +2225,11 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["states"], unittest.equals(arg_states)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["runAttempt"].first, unittest.equals(arg_runAttempt)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2241,9 +2241,9 @@ res .list(arg_parent, pageToken: arg_pageToken, - states: arg_states, - pageSize: arg_pageSize, runAttempt: arg_runAttempt, + pageSize: arg_pageSize, + states: arg_states, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferRunsResponse(response); @@ -2264,9 +2264,9 @@ .runs .transferLogs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_messageTypes = buildUnnamed3541(); + var arg_messageTypes = buildUnnamed3713(); + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2299,12 +2299,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( queryMap["messageTypes"], unittest.equals(arg_messageTypes)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2315,9 +2315,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, messageTypes: arg_messageTypes, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferLogsResponse(response); @@ -2333,8 +2333,8 @@ var arg_request = buildTransferConfig(); var arg_parent = "foo"; var arg_versionInfo = "foo"; - var arg_authorizationCode = "foo"; var arg_serviceAccountName = "foo"; + var arg_authorizationCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferConfig.fromJson(json); @@ -2372,10 +2372,10 @@ } unittest.expect( queryMap["versionInfo"].first, unittest.equals(arg_versionInfo)); - unittest.expect(queryMap["authorizationCode"].first, - unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["serviceAccountName"].first, unittest.equals(arg_serviceAccountName)); + unittest.expect(queryMap["authorizationCode"].first, + unittest.equals(arg_authorizationCode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2387,8 +2387,8 @@ res .create(arg_request, arg_parent, versionInfo: arg_versionInfo, - authorizationCode: arg_authorizationCode, serviceAccountName: arg_serviceAccountName, + authorizationCode: arg_authorizationCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTransferConfig(response); @@ -2504,9 +2504,9 @@ api.ProjectsTransferConfigsResourceApi res = new api.BigquerydatatransferApi(mock).projects.transferConfigs; var arg_parent = "foo"; - var arg_dataSourceIds = buildUnnamed3542(); var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_dataSourceIds = buildUnnamed3714(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2540,11 +2540,11 @@ } } unittest.expect( - queryMap["dataSourceIds"], unittest.equals(arg_dataSourceIds)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["dataSourceIds"], unittest.equals(arg_dataSourceIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2555,9 +2555,9 @@ }), true); res .list(arg_parent, - dataSourceIds: arg_dataSourceIds, pageToken: arg_pageToken, pageSize: arg_pageSize, + dataSourceIds: arg_dataSourceIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferConfigsResponse(response); @@ -2570,10 +2570,10 @@ new api.BigquerydatatransferApi(mock).projects.transferConfigs; var arg_request = buildTransferConfig(); var arg_name = "foo"; - var arg_versionInfo = "foo"; - var arg_authorizationCode = "foo"; - var arg_updateMask = "foo"; var arg_serviceAccountName = "foo"; + var arg_updateMask = "foo"; + var arg_authorizationCode = "foo"; + var arg_versionInfo = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.TransferConfig.fromJson(json); @@ -2609,14 +2609,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["serviceAccountName"].first, + unittest.equals(arg_serviceAccountName)); unittest.expect( - queryMap["versionInfo"].first, unittest.equals(arg_versionInfo)); + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["authorizationCode"].first, unittest.equals(arg_authorizationCode)); unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - unittest.expect(queryMap["serviceAccountName"].first, - unittest.equals(arg_serviceAccountName)); + queryMap["versionInfo"].first, unittest.equals(arg_versionInfo)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2627,10 +2627,10 @@ }), true); res .patch(arg_request, arg_name, - versionInfo: arg_versionInfo, - authorizationCode: arg_authorizationCode, - updateMask: arg_updateMask, serviceAccountName: arg_serviceAccountName, + updateMask: arg_updateMask, + authorizationCode: arg_authorizationCode, + versionInfo: arg_versionInfo, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTransferConfig(response); @@ -2860,10 +2860,10 @@ api.ProjectsTransferConfigsRunsResourceApi res = new api.BigquerydatatransferApi(mock).projects.transferConfigs.runs; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_states = buildUnnamed3543(); - var arg_pageSize = 42; var arg_runAttempt = "foo"; + var arg_pageToken = "foo"; + var arg_states = buildUnnamed3715(); + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2897,12 +2897,12 @@ } } unittest.expect( + queryMap["runAttempt"].first, unittest.equals(arg_runAttempt)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["runAttempt"].first, unittest.equals(arg_runAttempt)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2913,10 +2913,10 @@ }), true); res .list(arg_parent, + runAttempt: arg_runAttempt, pageToken: arg_pageToken, states: arg_states, pageSize: arg_pageSize, - runAttempt: arg_runAttempt, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferRunsResponse(response); @@ -2935,9 +2935,9 @@ .runs .transferLogs; var arg_parent = "foo"; - var arg_pageToken = "foo"; + var arg_messageTypes = buildUnnamed3716(); var arg_pageSize = 42; - var arg_messageTypes = buildUnnamed3544(); + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2971,11 +2971,11 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["messageTypes"], unittest.equals(arg_messageTypes)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["messageTypes"], unittest.equals(arg_messageTypes)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2986,9 +2986,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, messageTypes: arg_messageTypes, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferLogsResponse(response);
diff --git a/generated/googleapis/test/bigqueryreservation/v1_test.dart b/generated/googleapis/test/bigqueryreservation/v1_test.dart index d915d8e..25ef37c 100644 --- a/generated/googleapis/test/bigqueryreservation/v1_test.dart +++ b/generated/googleapis/test/bigqueryreservation/v1_test.dart
@@ -104,6 +104,7 @@ buildCounterCapacityCommitment++; if (buildCounterCapacityCommitment < 3) { o.commitmentEndTime = "foo"; + o.commitmentStartTime = "foo"; o.failureStatus = buildStatus(); o.name = "foo"; o.plan = "foo"; @@ -119,6 +120,7 @@ buildCounterCapacityCommitment++; if (buildCounterCapacityCommitment < 3) { unittest.expect(o.commitmentEndTime, unittest.equals('foo')); + unittest.expect(o.commitmentStartTime, unittest.equals('foo')); checkStatus(o.failureStatus); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.plan, unittest.equals('foo')); @@ -163,14 +165,14 @@ buildCounterEmpty--; } -buildUnnamed5429() { +buildUnnamed5828() { var o = new core.List<api.Assignment>(); o.add(buildAssignment()); o.add(buildAssignment()); return o; } -checkUnnamed5429(core.List<api.Assignment> o) { +checkUnnamed5828(core.List<api.Assignment> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignment(o[0]); checkAssignment(o[1]); @@ -181,7 +183,7 @@ var o = new api.ListAssignmentsResponse(); buildCounterListAssignmentsResponse++; if (buildCounterListAssignmentsResponse < 3) { - o.assignments = buildUnnamed5429(); + o.assignments = buildUnnamed5828(); o.nextPageToken = "foo"; } buildCounterListAssignmentsResponse--; @@ -191,20 +193,20 @@ checkListAssignmentsResponse(api.ListAssignmentsResponse o) { buildCounterListAssignmentsResponse++; if (buildCounterListAssignmentsResponse < 3) { - checkUnnamed5429(o.assignments); + checkUnnamed5828(o.assignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAssignmentsResponse--; } -buildUnnamed5430() { +buildUnnamed5829() { var o = new core.List<api.CapacityCommitment>(); o.add(buildCapacityCommitment()); o.add(buildCapacityCommitment()); return o; } -checkUnnamed5430(core.List<api.CapacityCommitment> o) { +checkUnnamed5829(core.List<api.CapacityCommitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCapacityCommitment(o[0]); checkCapacityCommitment(o[1]); @@ -215,7 +217,7 @@ var o = new api.ListCapacityCommitmentsResponse(); buildCounterListCapacityCommitmentsResponse++; if (buildCounterListCapacityCommitmentsResponse < 3) { - o.capacityCommitments = buildUnnamed5430(); + o.capacityCommitments = buildUnnamed5829(); o.nextPageToken = "foo"; } buildCounterListCapacityCommitmentsResponse--; @@ -225,20 +227,20 @@ checkListCapacityCommitmentsResponse(api.ListCapacityCommitmentsResponse o) { buildCounterListCapacityCommitmentsResponse++; if (buildCounterListCapacityCommitmentsResponse < 3) { - checkUnnamed5430(o.capacityCommitments); + checkUnnamed5829(o.capacityCommitments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCapacityCommitmentsResponse--; } -buildUnnamed5431() { +buildUnnamed5830() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed5431(core.List<api.Operation> o) { +checkUnnamed5830(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -250,7 +252,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed5431(); + o.operations = buildUnnamed5830(); } buildCounterListOperationsResponse--; return o; @@ -260,19 +262,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5431(o.operations); + checkUnnamed5830(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed5432() { +buildUnnamed5831() { var o = new core.List<api.Reservation>(); o.add(buildReservation()); o.add(buildReservation()); return o; } -checkUnnamed5432(core.List<api.Reservation> o) { +checkUnnamed5831(core.List<api.Reservation> o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); @@ -284,7 +286,7 @@ buildCounterListReservationsResponse++; if (buildCounterListReservationsResponse < 3) { o.nextPageToken = "foo"; - o.reservations = buildUnnamed5432(); + o.reservations = buildUnnamed5831(); } buildCounterListReservationsResponse--; return o; @@ -294,19 +296,19 @@ buildCounterListReservationsResponse++; if (buildCounterListReservationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5432(o.reservations); + checkUnnamed5831(o.reservations); } buildCounterListReservationsResponse--; } -buildUnnamed5433() { +buildUnnamed5832() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5433(core.List<core.String> o) { +checkUnnamed5832(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -317,7 +319,7 @@ var o = new api.MergeCapacityCommitmentsRequest(); buildCounterMergeCapacityCommitmentsRequest++; if (buildCounterMergeCapacityCommitmentsRequest < 3) { - o.capacityCommitmentIds = buildUnnamed5433(); + o.capacityCommitmentIds = buildUnnamed5832(); } buildCounterMergeCapacityCommitmentsRequest--; return o; @@ -326,7 +328,7 @@ checkMergeCapacityCommitmentsRequest(api.MergeCapacityCommitmentsRequest o) { buildCounterMergeCapacityCommitmentsRequest++; if (buildCounterMergeCapacityCommitmentsRequest < 3) { - checkUnnamed5433(o.capacityCommitmentIds); + checkUnnamed5832(o.capacityCommitmentIds); } buildCounterMergeCapacityCommitmentsRequest--; } @@ -350,7 +352,7 @@ buildCounterMoveAssignmentRequest--; } -buildUnnamed5434() { +buildUnnamed5833() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -365,7 +367,7 @@ return o; } -checkUnnamed5434(core.Map<core.String, core.Object> o) { +checkUnnamed5833(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)); @@ -379,7 +381,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed5435() { +buildUnnamed5834() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -394,7 +396,7 @@ return o; } -checkUnnamed5435(core.Map<core.String, core.Object> o) { +checkUnnamed5834(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)); @@ -415,9 +417,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed5434(); + o.metadata = buildUnnamed5833(); o.name = "foo"; - o.response = buildUnnamed5435(); + o.response = buildUnnamed5834(); } buildCounterOperation--; return o; @@ -428,9 +430,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed5434(o.metadata); + checkUnnamed5833(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5435(o.response); + checkUnnamed5834(o.response); } buildCounterOperation--; } @@ -440,9 +442,11 @@ var o = new api.Reservation(); buildCounterReservation++; if (buildCounterReservation < 3) { + o.creationTime = "foo"; o.ignoreIdleSlots = true; o.name = "foo"; o.slotCapacity = "foo"; + o.updateTime = "foo"; } buildCounterReservation--; return o; @@ -451,21 +455,57 @@ checkReservation(api.Reservation o) { buildCounterReservation++; if (buildCounterReservation < 3) { + unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.ignoreIdleSlots, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.slotCapacity, unittest.equals('foo')); + unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterReservation--; } -buildUnnamed5436() { +buildUnnamed5835() { var o = new core.List<api.Assignment>(); o.add(buildAssignment()); o.add(buildAssignment()); return o; } -checkUnnamed5436(core.List<api.Assignment> o) { +checkUnnamed5835(core.List<api.Assignment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignment(o[0]); + checkAssignment(o[1]); +} + +core.int buildCounterSearchAllAssignmentsResponse = 0; +buildSearchAllAssignmentsResponse() { + var o = new api.SearchAllAssignmentsResponse(); + buildCounterSearchAllAssignmentsResponse++; + if (buildCounterSearchAllAssignmentsResponse < 3) { + o.assignments = buildUnnamed5835(); + o.nextPageToken = "foo"; + } + buildCounterSearchAllAssignmentsResponse--; + return o; +} + +checkSearchAllAssignmentsResponse(api.SearchAllAssignmentsResponse o) { + buildCounterSearchAllAssignmentsResponse++; + if (buildCounterSearchAllAssignmentsResponse < 3) { + checkUnnamed5835(o.assignments); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterSearchAllAssignmentsResponse--; +} + +buildUnnamed5836() { + var o = new core.List<api.Assignment>(); + o.add(buildAssignment()); + o.add(buildAssignment()); + return o; +} + +checkUnnamed5836(core.List<api.Assignment> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignment(o[0]); checkAssignment(o[1]); @@ -476,7 +516,7 @@ var o = new api.SearchAssignmentsResponse(); buildCounterSearchAssignmentsResponse++; if (buildCounterSearchAssignmentsResponse < 3) { - o.assignments = buildUnnamed5436(); + o.assignments = buildUnnamed5836(); o.nextPageToken = "foo"; } buildCounterSearchAssignmentsResponse--; @@ -486,7 +526,7 @@ checkSearchAssignmentsResponse(api.SearchAssignmentsResponse o) { buildCounterSearchAssignmentsResponse++; if (buildCounterSearchAssignmentsResponse < 3) { - checkUnnamed5436(o.assignments); + checkUnnamed5836(o.assignments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchAssignmentsResponse--; @@ -532,7 +572,7 @@ buildCounterSplitCapacityCommitmentResponse--; } -buildUnnamed5437() { +buildUnnamed5837() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -547,7 +587,7 @@ return o; } -checkUnnamed5437(core.Map<core.String, core.Object> o) { +checkUnnamed5837(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)); @@ -561,17 +601,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed5438() { +buildUnnamed5838() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed5437()); - o.add(buildUnnamed5437()); + o.add(buildUnnamed5837()); + o.add(buildUnnamed5837()); return o; } -checkUnnamed5438(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed5838(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed5437(o[0]); - checkUnnamed5437(o[1]); + checkUnnamed5837(o[0]); + checkUnnamed5837(o[1]); } core.int buildCounterStatus = 0; @@ -580,7 +620,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed5438(); + o.details = buildUnnamed5838(); o.message = "foo"; } buildCounterStatus--; @@ -591,7 +631,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed5438(o.details); + checkUnnamed5838(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -702,6 +742,14 @@ }); }); + unittest.group("obj-schema-SearchAllAssignmentsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchAllAssignmentsResponse(); + var od = new api.SearchAllAssignmentsResponse.fromJson(o.toJson()); + checkSearchAllAssignmentsResponse(od); + }); + }); + unittest.group("obj-schema-SearchAssignmentsResponse", () { unittest.test("to-json--from-json", () { var o = buildSearchAssignmentsResponse(); @@ -792,9 +840,9 @@ api.OperationsResourceApi res = new api.BigqueryreservationApi(mock).operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -827,11 +875,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -842,9 +890,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -905,13 +953,77 @@ }))); }); + unittest.test("method--searchAllAssignments", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.BigqueryreservationApi(mock).projects.locations; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_query = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearchAllAssignmentsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .searchAllAssignments(arg_parent, + pageSize: arg_pageSize, + query: arg_query, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearchAllAssignmentsResponse(response); + }))); + }); + unittest.test("method--searchAssignments", () { var mock = new HttpServerMock(); api.ProjectsLocationsResourceApi res = new api.BigqueryreservationApi(mock).projects.locations; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_query = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -945,10 +1057,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -960,8 +1072,8 @@ }), true); res .searchAssignments(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, query: arg_query, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1623,8 +1735,8 @@ api.ProjectsLocationsReservationsResourceApi res = new api.BigqueryreservationApi(mock).projects.locations.reservations; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1657,10 +1769,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1671,8 +1783,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReservationsResponse(response);
diff --git a/generated/googleapis/test/bigtableadmin/v2_test.dart b/generated/googleapis/test/bigtableadmin/v2_test.dart index d2d6bc7..040478c 100644 --- a/generated/googleapis/test/bigtableadmin/v2_test.dart +++ b/generated/googleapis/test/bigtableadmin/v2_test.dart
@@ -77,14 +77,14 @@ buildCounterAppProfile--; } -buildUnnamed464() { +buildUnnamed483() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed464(core.List<api.AuditLogConfig> o) { +checkUnnamed483(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -95,7 +95,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed464(); + o.auditLogConfigs = buildUnnamed483(); o.service = "foo"; } buildCounterAuditConfig--; @@ -105,20 +105,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed464(o.auditLogConfigs); + checkUnnamed483(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed465() { +buildUnnamed484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed465(core.List<core.String> o) { +checkUnnamed484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed465(); + o.exemptedMembers = buildUnnamed484(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -139,20 +139,76 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed465(o.exemptedMembers); + checkUnnamed484(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed466() { +core.int buildCounterBackup = 0; +buildBackup() { + var o = new api.Backup(); + buildCounterBackup++; + if (buildCounterBackup < 3) { + o.endTime = "foo"; + o.expireTime = "foo"; + o.name = "foo"; + o.sizeBytes = "foo"; + o.sourceTable = "foo"; + o.startTime = "foo"; + o.state = "foo"; + } + buildCounterBackup--; + return o; +} + +checkBackup(api.Backup o) { + buildCounterBackup++; + if (buildCounterBackup < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.expireTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.sizeBytes, unittest.equals('foo')); + unittest.expect(o.sourceTable, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterBackup--; +} + +core.int buildCounterBackupInfo = 0; +buildBackupInfo() { + var o = new api.BackupInfo(); + buildCounterBackupInfo++; + if (buildCounterBackupInfo < 3) { + o.backup = "foo"; + o.endTime = "foo"; + o.sourceTable = "foo"; + o.startTime = "foo"; + } + buildCounterBackupInfo--; + return o; +} + +checkBackupInfo(api.BackupInfo o) { + buildCounterBackupInfo++; + if (buildCounterBackupInfo < 3) { + unittest.expect(o.backup, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.sourceTable, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + } + buildCounterBackupInfo--; +} + +buildUnnamed485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed466(core.List<core.String> o) { +checkUnnamed485(core.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 +220,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed466(); + o.members = buildUnnamed485(); o.role = "foo"; } buildCounterBinding--; @@ -175,7 +231,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed466(o.members); + checkUnnamed485(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -284,14 +340,39 @@ buildCounterColumnFamily--; } -buildUnnamed467() { +core.int buildCounterCreateBackupMetadata = 0; +buildCreateBackupMetadata() { + var o = new api.CreateBackupMetadata(); + buildCounterCreateBackupMetadata++; + if (buildCounterCreateBackupMetadata < 3) { + o.endTime = "foo"; + o.name = "foo"; + o.sourceTable = "foo"; + o.startTime = "foo"; + } + buildCounterCreateBackupMetadata--; + return o; +} + +checkCreateBackupMetadata(api.CreateBackupMetadata o) { + buildCounterCreateBackupMetadata++; + if (buildCounterCreateBackupMetadata < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.sourceTable, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + } + buildCounterCreateBackupMetadata--; +} + +buildUnnamed486() { var o = new core.Map<core.String, api.TableProgress>(); o["x"] = buildTableProgress(); o["y"] = buildTableProgress(); return o; } -checkUnnamed467(core.Map<core.String, api.TableProgress> o) { +checkUnnamed486(core.Map<core.String, api.TableProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkTableProgress(o["x"]); checkTableProgress(o["y"]); @@ -305,7 +386,7 @@ o.finishTime = "foo"; o.originalRequest = buildCreateClusterRequest(); o.requestTime = "foo"; - o.tables = buildUnnamed467(); + o.tables = buildUnnamed486(); } buildCounterCreateClusterMetadata--; return o; @@ -317,7 +398,7 @@ unittest.expect(o.finishTime, unittest.equals('foo')); checkCreateClusterRequest(o.originalRequest); unittest.expect(o.requestTime, unittest.equals('foo')); - checkUnnamed467(o.tables); + checkUnnamed486(o.tables); } buildCounterCreateClusterMetadata--; } @@ -368,14 +449,14 @@ buildCounterCreateInstanceMetadata--; } -buildUnnamed468() { +buildUnnamed487() { var o = new core.Map<core.String, api.Cluster>(); o["x"] = buildCluster(); o["y"] = buildCluster(); return o; } -checkUnnamed468(core.Map<core.String, api.Cluster> o) { +checkUnnamed487(core.Map<core.String, api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o["x"]); checkCluster(o["y"]); @@ -386,7 +467,7 @@ var o = new api.CreateInstanceRequest(); buildCounterCreateInstanceRequest++; if (buildCounterCreateInstanceRequest < 3) { - o.clusters = buildUnnamed468(); + o.clusters = buildUnnamed487(); o.instance = buildInstance(); o.instanceId = "foo"; o.parent = "foo"; @@ -398,7 +479,7 @@ checkCreateInstanceRequest(api.CreateInstanceRequest o) { buildCounterCreateInstanceRequest++; if (buildCounterCreateInstanceRequest < 3) { - checkUnnamed468(o.clusters); + checkUnnamed487(o.clusters); checkInstance(o.instance); unittest.expect(o.instanceId, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); @@ -406,14 +487,14 @@ buildCounterCreateInstanceRequest--; } -buildUnnamed469() { +buildUnnamed488() { var o = new core.List<api.Split>(); o.add(buildSplit()); o.add(buildSplit()); return o; } -checkUnnamed469(core.List<api.Split> o) { +checkUnnamed488(core.List<api.Split> o) { unittest.expect(o, unittest.hasLength(2)); checkSplit(o[0]); checkSplit(o[1]); @@ -424,7 +505,7 @@ var o = new api.CreateTableRequest(); buildCounterCreateTableRequest++; if (buildCounterCreateTableRequest < 3) { - o.initialSplits = buildUnnamed469(); + o.initialSplits = buildUnnamed488(); o.table = buildTable(); o.tableId = "foo"; } @@ -435,7 +516,7 @@ checkCreateTableRequest(api.CreateTableRequest o) { buildCounterCreateTableRequest++; if (buildCounterCreateTableRequest < 3) { - checkUnnamed469(o.initialSplits); + checkUnnamed488(o.initialSplits); checkTable(o.table); unittest.expect(o.tableId, unittest.equals('foo')); } @@ -503,6 +584,61 @@ buildCounterExpr--; } +buildUnnamed489() { + var o = new core.List<api.Frame>(); + o.add(buildFrame()); + o.add(buildFrame()); + return o; +} + +checkUnnamed489(core.List<api.Frame> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFrame(o[0]); + checkFrame(o[1]); +} + +core.int buildCounterFailureTrace = 0; +buildFailureTrace() { + var o = new api.FailureTrace(); + buildCounterFailureTrace++; + if (buildCounterFailureTrace < 3) { + o.frames = buildUnnamed489(); + } + buildCounterFailureTrace--; + return o; +} + +checkFailureTrace(api.FailureTrace o) { + buildCounterFailureTrace++; + if (buildCounterFailureTrace < 3) { + checkUnnamed489(o.frames); + } + buildCounterFailureTrace--; +} + +core.int buildCounterFrame = 0; +buildFrame() { + var o = new api.Frame(); + buildCounterFrame++; + if (buildCounterFrame < 3) { + o.targetName = "foo"; + o.workflowGuid = "foo"; + o.zoneId = "foo"; + } + buildCounterFrame--; + return o; +} + +checkFrame(api.Frame o) { + buildCounterFrame++; + if (buildCounterFrame < 3) { + unittest.expect(o.targetName, unittest.equals('foo')); + unittest.expect(o.workflowGuid, unittest.equals('foo')); + unittest.expect(o.zoneId, unittest.equals('foo')); + } + buildCounterFrame--; +} + core.int buildCounterGcRule = 0; buildGcRule() { var o = new api.GcRule(); @@ -600,14 +736,14 @@ buildCounterGetPolicyOptions--; } -buildUnnamed470() { +buildUnnamed490() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed470(core.Map<core.String, core.String> o) { +checkUnnamed490(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')); @@ -619,7 +755,7 @@ buildCounterInstance++; if (buildCounterInstance < 3) { o.displayName = "foo"; - o.labels = buildUnnamed470(); + o.labels = buildUnnamed490(); o.name = "foo"; o.state = "foo"; o.type = "foo"; @@ -632,7 +768,7 @@ buildCounterInstance++; if (buildCounterInstance < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed470(o.labels); + checkUnnamed490(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -640,14 +776,14 @@ buildCounterInstance--; } -buildUnnamed471() { +buildUnnamed491() { var o = new core.List<api.GcRule>(); o.add(buildGcRule()); o.add(buildGcRule()); return o; } -checkUnnamed471(core.List<api.GcRule> o) { +checkUnnamed491(core.List<api.GcRule> o) { unittest.expect(o, unittest.hasLength(2)); checkGcRule(o[0]); checkGcRule(o[1]); @@ -658,7 +794,7 @@ var o = new api.Intersection(); buildCounterIntersection++; if (buildCounterIntersection < 3) { - o.rules = buildUnnamed471(); + o.rules = buildUnnamed491(); } buildCounterIntersection--; return o; @@ -667,32 +803,32 @@ checkIntersection(api.Intersection o) { buildCounterIntersection++; if (buildCounterIntersection < 3) { - checkUnnamed471(o.rules); + checkUnnamed491(o.rules); } buildCounterIntersection--; } -buildUnnamed472() { +buildUnnamed492() { var o = new core.List<api.AppProfile>(); o.add(buildAppProfile()); o.add(buildAppProfile()); return o; } -checkUnnamed472(core.List<api.AppProfile> o) { +checkUnnamed492(core.List<api.AppProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkAppProfile(o[0]); checkAppProfile(o[1]); } -buildUnnamed473() { +buildUnnamed493() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed473(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')); @@ -703,8 +839,8 @@ var o = new api.ListAppProfilesResponse(); buildCounterListAppProfilesResponse++; if (buildCounterListAppProfilesResponse < 3) { - o.appProfiles = buildUnnamed472(); - o.failedLocations = buildUnnamed473(); + o.appProfiles = buildUnnamed492(); + o.failedLocations = buildUnnamed493(); o.nextPageToken = "foo"; } buildCounterListAppProfilesResponse--; @@ -714,34 +850,68 @@ checkListAppProfilesResponse(api.ListAppProfilesResponse o) { buildCounterListAppProfilesResponse++; if (buildCounterListAppProfilesResponse < 3) { - checkUnnamed472(o.appProfiles); - checkUnnamed473(o.failedLocations); + checkUnnamed492(o.appProfiles); + checkUnnamed493(o.failedLocations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAppProfilesResponse--; } -buildUnnamed474() { +buildUnnamed494() { + var o = new core.List<api.Backup>(); + o.add(buildBackup()); + o.add(buildBackup()); + return o; +} + +checkUnnamed494(core.List<api.Backup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBackup(o[0]); + checkBackup(o[1]); +} + +core.int buildCounterListBackupsResponse = 0; +buildListBackupsResponse() { + var o = new api.ListBackupsResponse(); + buildCounterListBackupsResponse++; + if (buildCounterListBackupsResponse < 3) { + o.backups = buildUnnamed494(); + o.nextPageToken = "foo"; + } + buildCounterListBackupsResponse--; + return o; +} + +checkListBackupsResponse(api.ListBackupsResponse o) { + buildCounterListBackupsResponse++; + if (buildCounterListBackupsResponse < 3) { + checkUnnamed494(o.backups); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListBackupsResponse--; +} + +buildUnnamed495() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed474(core.List<api.Cluster> o) { +checkUnnamed495(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed475() { +buildUnnamed496() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed475(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')); @@ -752,8 +922,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed474(); - o.failedLocations = buildUnnamed475(); + o.clusters = buildUnnamed495(); + o.failedLocations = buildUnnamed496(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -763,34 +933,34 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed474(o.clusters); - checkUnnamed475(o.failedLocations); + checkUnnamed495(o.clusters); + checkUnnamed496(o.failedLocations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed476() { +buildUnnamed497() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed476(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')); } -buildUnnamed477() { +buildUnnamed498() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed477(core.List<api.Instance> o) { +checkUnnamed498(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -801,8 +971,8 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.failedLocations = buildUnnamed476(); - o.instances = buildUnnamed477(); + o.failedLocations = buildUnnamed497(); + o.instances = buildUnnamed498(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -812,21 +982,21 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed476(o.failedLocations); - checkUnnamed477(o.instances); + checkUnnamed497(o.failedLocations); + checkUnnamed498(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed478() { +buildUnnamed499() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed478(core.List<api.Location> o) { +checkUnnamed499(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -837,7 +1007,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed478(); + o.locations = buildUnnamed499(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -847,20 +1017,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed478(o.locations); + checkUnnamed499(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed479() { +buildUnnamed500() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed479(core.List<api.Operation> o) { +checkUnnamed500(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -872,7 +1042,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed479(); + o.operations = buildUnnamed500(); } buildCounterListOperationsResponse--; return o; @@ -882,19 +1052,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed479(o.operations); + checkUnnamed500(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed480() { +buildUnnamed501() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed480(core.List<api.Table> o) { +checkUnnamed501(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -906,7 +1076,7 @@ buildCounterListTablesResponse++; if (buildCounterListTablesResponse < 3) { o.nextPageToken = "foo"; - o.tables = buildUnnamed480(); + o.tables = buildUnnamed501(); } buildCounterListTablesResponse--; return o; @@ -916,25 +1086,25 @@ buildCounterListTablesResponse++; if (buildCounterListTablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed480(o.tables); + checkUnnamed501(o.tables); } buildCounterListTablesResponse--; } -buildUnnamed481() { +buildUnnamed502() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed481(core.Map<core.String, core.String> o) { +checkUnnamed502(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')); } -buildUnnamed482() { +buildUnnamed503() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -949,7 +1119,7 @@ return o; } -checkUnnamed482(core.Map<core.String, core.Object> o) { +checkUnnamed503(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)); @@ -969,9 +1139,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed481(); + o.labels = buildUnnamed502(); o.locationId = "foo"; - o.metadata = buildUnnamed482(); + o.metadata = buildUnnamed503(); o.name = "foo"; } buildCounterLocation--; @@ -982,9 +1152,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed481(o.labels); + checkUnnamed502(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed482(o.metadata); + checkUnnamed503(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -1015,14 +1185,14 @@ buildCounterModification--; } -buildUnnamed483() { +buildUnnamed504() { var o = new core.List<api.Modification>(); o.add(buildModification()); o.add(buildModification()); return o; } -checkUnnamed483(core.List<api.Modification> o) { +checkUnnamed504(core.List<api.Modification> o) { unittest.expect(o, unittest.hasLength(2)); checkModification(o[0]); checkModification(o[1]); @@ -1033,7 +1203,7 @@ var o = new api.ModifyColumnFamiliesRequest(); buildCounterModifyColumnFamiliesRequest++; if (buildCounterModifyColumnFamiliesRequest < 3) { - o.modifications = buildUnnamed483(); + o.modifications = buildUnnamed504(); } buildCounterModifyColumnFamiliesRequest--; return o; @@ -1042,7 +1212,7 @@ checkModifyColumnFamiliesRequest(api.ModifyColumnFamiliesRequest o) { buildCounterModifyColumnFamiliesRequest++; if (buildCounterModifyColumnFamiliesRequest < 3) { - checkUnnamed483(o.modifications); + checkUnnamed504(o.modifications); } buildCounterModifyColumnFamiliesRequest--; } @@ -1062,7 +1232,7 @@ buildCounterMultiClusterRoutingUseAny--; } -buildUnnamed484() { +buildUnnamed505() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1077,7 +1247,7 @@ return o; } -checkUnnamed484(core.Map<core.String, core.Object> o) { +checkUnnamed505(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)); @@ -1091,7 +1261,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed485() { +buildUnnamed506() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1106,7 +1276,7 @@ return o; } -checkUnnamed485(core.Map<core.String, core.Object> o) { +checkUnnamed506(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)); @@ -1127,9 +1297,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed484(); + o.metadata = buildUnnamed505(); o.name = "foo"; - o.response = buildUnnamed485(); + o.response = buildUnnamed506(); } buildCounterOperation--; return o; @@ -1140,13 +1310,57 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed484(o.metadata); + checkUnnamed505(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed485(o.response); + checkUnnamed506(o.response); } buildCounterOperation--; } +core.int buildCounterOperationProgress = 0; +buildOperationProgress() { + var o = new api.OperationProgress(); + buildCounterOperationProgress++; + if (buildCounterOperationProgress < 3) { + o.endTime = "foo"; + o.progressPercent = 42; + o.startTime = "foo"; + } + buildCounterOperationProgress--; + return o; +} + +checkOperationProgress(api.OperationProgress o) { + buildCounterOperationProgress++; + if (buildCounterOperationProgress < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.progressPercent, unittest.equals(42)); + unittest.expect(o.startTime, unittest.equals('foo')); + } + buildCounterOperationProgress--; +} + +core.int buildCounterOptimizeRestoredTableMetadata = 0; +buildOptimizeRestoredTableMetadata() { + var o = new api.OptimizeRestoredTableMetadata(); + buildCounterOptimizeRestoredTableMetadata++; + if (buildCounterOptimizeRestoredTableMetadata < 3) { + o.name = "foo"; + o.progress = buildOperationProgress(); + } + buildCounterOptimizeRestoredTableMetadata--; + return o; +} + +checkOptimizeRestoredTableMetadata(api.OptimizeRestoredTableMetadata o) { + buildCounterOptimizeRestoredTableMetadata++; + if (buildCounterOptimizeRestoredTableMetadata < 3) { + unittest.expect(o.name, unittest.equals('foo')); + checkOperationProgress(o.progress); + } + buildCounterOptimizeRestoredTableMetadata--; +} + core.int buildCounterPartialUpdateInstanceRequest = 0; buildPartialUpdateInstanceRequest() { var o = new api.PartialUpdateInstanceRequest(); @@ -1168,27 +1382,27 @@ buildCounterPartialUpdateInstanceRequest--; } -buildUnnamed486() { +buildUnnamed507() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed486(core.List<api.AuditConfig> o) { +checkUnnamed507(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed487() { +buildUnnamed508() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed487(core.List<api.Binding> o) { +checkUnnamed508(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1199,8 +1413,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed486(); - o.bindings = buildUnnamed487(); + o.auditConfigs = buildUnnamed507(); + o.bindings = buildUnnamed508(); o.etag = "foo"; o.version = 42; } @@ -1211,14 +1425,83 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed486(o.auditConfigs); - checkUnnamed487(o.bindings); + checkUnnamed507(o.auditConfigs); + checkUnnamed508(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } +core.int buildCounterRestoreInfo = 0; +buildRestoreInfo() { + var o = new api.RestoreInfo(); + buildCounterRestoreInfo++; + if (buildCounterRestoreInfo < 3) { + o.backupInfo = buildBackupInfo(); + o.sourceType = "foo"; + } + buildCounterRestoreInfo--; + return o; +} + +checkRestoreInfo(api.RestoreInfo o) { + buildCounterRestoreInfo++; + if (buildCounterRestoreInfo < 3) { + checkBackupInfo(o.backupInfo); + unittest.expect(o.sourceType, unittest.equals('foo')); + } + buildCounterRestoreInfo--; +} + +core.int buildCounterRestoreTableMetadata = 0; +buildRestoreTableMetadata() { + var o = new api.RestoreTableMetadata(); + buildCounterRestoreTableMetadata++; + if (buildCounterRestoreTableMetadata < 3) { + o.backupInfo = buildBackupInfo(); + o.name = "foo"; + o.optimizeTableOperationName = "foo"; + o.progress = buildOperationProgress(); + o.sourceType = "foo"; + } + buildCounterRestoreTableMetadata--; + return o; +} + +checkRestoreTableMetadata(api.RestoreTableMetadata o) { + buildCounterRestoreTableMetadata++; + if (buildCounterRestoreTableMetadata < 3) { + checkBackupInfo(o.backupInfo); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.optimizeTableOperationName, unittest.equals('foo')); + checkOperationProgress(o.progress); + unittest.expect(o.sourceType, unittest.equals('foo')); + } + buildCounterRestoreTableMetadata--; +} + +core.int buildCounterRestoreTableRequest = 0; +buildRestoreTableRequest() { + var o = new api.RestoreTableRequest(); + buildCounterRestoreTableRequest++; + if (buildCounterRestoreTableRequest < 3) { + o.backup = "foo"; + o.tableId = "foo"; + } + buildCounterRestoreTableRequest--; + return o; +} + +checkRestoreTableRequest(api.RestoreTableRequest o) { + buildCounterRestoreTableRequest++; + if (buildCounterRestoreTableRequest < 3) { + unittest.expect(o.backup, unittest.equals('foo')); + unittest.expect(o.tableId, unittest.equals('foo')); + } + buildCounterRestoreTableRequest--; +} + core.int buildCounterSetIamPolicyRequest = 0; buildSetIamPolicyRequest() { var o = new api.SetIamPolicyRequest(); @@ -1280,7 +1563,7 @@ buildCounterSplit--; } -buildUnnamed488() { +buildUnnamed509() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1295,7 +1578,7 @@ return o; } -checkUnnamed488(core.Map<core.String, core.Object> o) { +checkUnnamed509(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)); @@ -1309,17 +1592,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed489() { +buildUnnamed510() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed488()); - o.add(buildUnnamed488()); + o.add(buildUnnamed509()); + o.add(buildUnnamed509()); return o; } -checkUnnamed489(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed510(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed488(o[0]); - checkUnnamed488(o[1]); + checkUnnamed509(o[0]); + checkUnnamed509(o[1]); } core.int buildCounterStatus = 0; @@ -1328,7 +1611,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed489(); + o.details = buildUnnamed510(); o.message = "foo"; } buildCounterStatus--; @@ -1339,33 +1622,33 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed489(o.details); + checkUnnamed510(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed490() { +buildUnnamed511() { var o = new core.Map<core.String, api.ClusterState>(); o["x"] = buildClusterState(); o["y"] = buildClusterState(); return o; } -checkUnnamed490(core.Map<core.String, api.ClusterState> o) { +checkUnnamed511(core.Map<core.String, api.ClusterState> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterState(o["x"]); checkClusterState(o["y"]); } -buildUnnamed491() { +buildUnnamed512() { var o = new core.Map<core.String, api.ColumnFamily>(); o["x"] = buildColumnFamily(); o["y"] = buildColumnFamily(); return o; } -checkUnnamed491(core.Map<core.String, api.ColumnFamily> o) { +checkUnnamed512(core.Map<core.String, api.ColumnFamily> o) { unittest.expect(o, unittest.hasLength(2)); checkColumnFamily(o["x"]); checkColumnFamily(o["y"]); @@ -1376,10 +1659,11 @@ var o = new api.Table(); buildCounterTable++; if (buildCounterTable < 3) { - o.clusterStates = buildUnnamed490(); - o.columnFamilies = buildUnnamed491(); + o.clusterStates = buildUnnamed511(); + o.columnFamilies = buildUnnamed512(); o.granularity = "foo"; o.name = "foo"; + o.restoreInfo = buildRestoreInfo(); } buildCounterTable--; return o; @@ -1388,10 +1672,11 @@ checkTable(api.Table o) { buildCounterTable++; if (buildCounterTable < 3) { - checkUnnamed490(o.clusterStates); - checkUnnamed491(o.columnFamilies); + checkUnnamed511(o.clusterStates); + checkUnnamed512(o.columnFamilies); unittest.expect(o.granularity, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkRestoreInfo(o.restoreInfo); } buildCounterTable--; } @@ -1419,14 +1704,14 @@ buildCounterTableProgress--; } -buildUnnamed492() { +buildUnnamed513() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed492(core.List<core.String> o) { +checkUnnamed513(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1437,7 +1722,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed492(); + o.permissions = buildUnnamed513(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1446,19 +1731,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed492(o.permissions); + checkUnnamed513(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed493() { +buildUnnamed514() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed493(core.List<core.String> o) { +checkUnnamed514(core.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 +1754,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed493(); + o.permissions = buildUnnamed514(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1478,19 +1763,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed493(o.permissions); + checkUnnamed514(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed494() { +buildUnnamed515() { var o = new core.List<api.GcRule>(); o.add(buildGcRule()); o.add(buildGcRule()); return o; } -checkUnnamed494(core.List<api.GcRule> o) { +checkUnnamed515(core.List<api.GcRule> o) { unittest.expect(o, unittest.hasLength(2)); checkGcRule(o[0]); checkGcRule(o[1]); @@ -1501,7 +1786,7 @@ var o = new api.Union(); buildCounterUnion++; if (buildCounterUnion < 3) { - o.rules = buildUnnamed494(); + o.rules = buildUnnamed515(); } buildCounterUnion--; return o; @@ -1510,7 +1795,7 @@ checkUnion(api.Union o) { buildCounterUnion++; if (buildCounterUnion < 3) { - checkUnnamed494(o.rules); + checkUnnamed515(o.rules); } buildCounterUnion--; } @@ -1601,6 +1886,22 @@ }); }); + unittest.group("obj-schema-Backup", () { + unittest.test("to-json--from-json", () { + var o = buildBackup(); + var od = new api.Backup.fromJson(o.toJson()); + checkBackup(od); + }); + }); + + unittest.group("obj-schema-BackupInfo", () { + unittest.test("to-json--from-json", () { + var o = buildBackupInfo(); + var od = new api.BackupInfo.fromJson(o.toJson()); + checkBackupInfo(od); + }); + }); + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -1649,6 +1950,14 @@ }); }); + unittest.group("obj-schema-CreateBackupMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildCreateBackupMetadata(); + var od = new api.CreateBackupMetadata.fromJson(o.toJson()); + checkCreateBackupMetadata(od); + }); + }); + unittest.group("obj-schema-CreateClusterMetadata", () { unittest.test("to-json--from-json", () { var o = buildCreateClusterMetadata(); @@ -1713,6 +2022,22 @@ }); }); + unittest.group("obj-schema-FailureTrace", () { + unittest.test("to-json--from-json", () { + var o = buildFailureTrace(); + var od = new api.FailureTrace.fromJson(o.toJson()); + checkFailureTrace(od); + }); + }); + + unittest.group("obj-schema-Frame", () { + unittest.test("to-json--from-json", () { + var o = buildFrame(); + var od = new api.Frame.fromJson(o.toJson()); + checkFrame(od); + }); + }); + unittest.group("obj-schema-GcRule", () { unittest.test("to-json--from-json", () { var o = buildGcRule(); @@ -1777,6 +2102,14 @@ }); }); + unittest.group("obj-schema-ListBackupsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListBackupsResponse(); + var od = new api.ListBackupsResponse.fromJson(o.toJson()); + checkListBackupsResponse(od); + }); + }); + unittest.group("obj-schema-ListClustersResponse", () { unittest.test("to-json--from-json", () { var o = buildListClustersResponse(); @@ -1857,6 +2190,22 @@ }); }); + unittest.group("obj-schema-OperationProgress", () { + unittest.test("to-json--from-json", () { + var o = buildOperationProgress(); + var od = new api.OperationProgress.fromJson(o.toJson()); + checkOperationProgress(od); + }); + }); + + unittest.group("obj-schema-OptimizeRestoredTableMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildOptimizeRestoredTableMetadata(); + var od = new api.OptimizeRestoredTableMetadata.fromJson(o.toJson()); + checkOptimizeRestoredTableMetadata(od); + }); + }); + unittest.group("obj-schema-PartialUpdateInstanceRequest", () { unittest.test("to-json--from-json", () { var o = buildPartialUpdateInstanceRequest(); @@ -1873,6 +2222,30 @@ }); }); + unittest.group("obj-schema-RestoreInfo", () { + unittest.test("to-json--from-json", () { + var o = buildRestoreInfo(); + var od = new api.RestoreInfo.fromJson(o.toJson()); + checkRestoreInfo(od); + }); + }); + + unittest.group("obj-schema-RestoreTableMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildRestoreTableMetadata(); + var od = new api.RestoreTableMetadata.fromJson(o.toJson()); + checkRestoreTableMetadata(od); + }); + }); + + unittest.group("obj-schema-RestoreTableRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRestoreTableRequest(); + var od = new api.RestoreTableRequest.fromJson(o.toJson()); + checkRestoreTableRequest(od); + }); + }); + unittest.group("obj-schema-SetIamPolicyRequest", () { unittest.test("to-json--from-json", () { var o = buildSetIamPolicyRequest(); @@ -2130,8 +2503,8 @@ api.OperationsProjectsOperationsResourceApi res = new api.BigtableadminApi(mock).operations.projects.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2165,10 +2538,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2180,8 +2553,8 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2698,8 +3071,8 @@ new api.BigtableadminApi(mock).projects.instances.appProfiles; var arg_request = buildAppProfile(); var arg_parent = "foo"; - var arg_appProfileId = "foo"; var arg_ignoreWarnings = true; + var arg_appProfileId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AppProfile.fromJson(json); @@ -2735,10 +3108,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["appProfileId"].first, unittest.equals(arg_appProfileId)); unittest.expect(queryMap["ignoreWarnings"].first, unittest.equals("$arg_ignoreWarnings")); + unittest.expect( + queryMap["appProfileId"].first, unittest.equals(arg_appProfileId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2749,8 +3122,8 @@ }), true); res .create(arg_request, arg_parent, - appProfileId: arg_appProfileId, ignoreWarnings: arg_ignoreWarnings, + appProfileId: arg_appProfileId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAppProfile(response); @@ -2870,8 +3243,8 @@ api.ProjectsInstancesAppProfilesResourceApi res = new api.BigtableadminApi(mock).projects.instances.appProfiles; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2904,10 +3277,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2918,8 +3291,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAppProfilesResponse(response); @@ -2932,8 +3305,8 @@ new api.BigtableadminApi(mock).projects.instances.appProfiles; var arg_request = buildAppProfile(); var arg_name = "foo"; - var arg_updateMask = "foo"; var arg_ignoreWarnings = true; + var arg_updateMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.AppProfile.fromJson(json); @@ -2969,10 +3342,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["ignoreWarnings"].first, unittest.equals("$arg_ignoreWarnings")); + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2983,8 +3356,8 @@ }), true); res .patch(arg_request, arg_name, - updateMask: arg_updateMask, ignoreWarnings: arg_ignoreWarnings, + updateMask: arg_updateMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -3270,6 +3643,170 @@ }); unittest.group("resource-ProjectsInstancesClustersBackupsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesClustersBackupsResourceApi res = + new api.BigtableadminApi(mock).projects.instances.clusters.backups; + var arg_request = buildBackup(); + var arg_parent = "foo"; + var arg_backupId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Backup.fromJson(json); + checkBackup(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["backupId"].first, unittest.equals(arg_backupId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, + backupId: arg_backupId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesClustersBackupsResourceApi res = + new api.BigtableadminApi(mock).projects.instances.clusters.backups; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesClustersBackupsResourceApi res = + new api.BigtableadminApi(mock).projects.instances.clusters.backups; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBackup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBackup(response); + }))); + }); + unittest.test("method--getIamPolicy", () { var mock = new HttpServerMock(); api.ProjectsInstancesClustersBackupsResourceApi res = @@ -3326,6 +3863,134 @@ }))); }); + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesClustersBackupsResourceApi res = + new api.BigtableadminApi(mock).projects.instances.clusters.backups; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListBackupsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + orderBy: arg_orderBy, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListBackupsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesClustersBackupsResourceApi res = + new api.BigtableadminApi(mock).projects.instances.clusters.backups; + var arg_request = buildBackup(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Backup.fromJson(json); + checkBackup(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBackup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBackup(response); + }))); + }); + unittest.test("method--setIamPolicy", () { var mock = new HttpServerMock(); api.ProjectsInstancesClustersBackupsResourceApi res = @@ -3831,8 +4496,8 @@ api.ProjectsInstancesTablesResourceApi res = new api.BigtableadminApi(mock).projects.instances.tables; var arg_parent = "foo"; - var arg_view = "foo"; var arg_pageToken = "foo"; + var arg_view = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3866,9 +4531,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3881,8 +4546,8 @@ }), true); res .list(arg_parent, - view: arg_view, pageToken: arg_pageToken, + view: arg_view, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3946,6 +4611,62 @@ }))); }); + unittest.test("method--restore", () { + var mock = new HttpServerMock(); + api.ProjectsInstancesTablesResourceApi res = + new api.BigtableadminApi(mock).projects.instances.tables; + var arg_request = buildRestoreTableRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RestoreTableRequest.fromJson(json); + checkRestoreTableRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .restore(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setIamPolicy", () { var mock = new HttpServerMock(); api.ProjectsInstancesTablesResourceApi res = @@ -4117,9 +4838,9 @@ api.ProjectsLocationsResourceApi res = new api.BigtableadminApi(mock).projects.locations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4152,11 +4873,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4167,9 +4888,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response);
diff --git a/generated/googleapis/test/binaryauthorization/v1_test.dart b/generated/googleapis/test/binaryauthorization/v1_test.dart index 39c7af5..f91184b 100644 --- a/generated/googleapis/test/binaryauthorization/v1_test.dart +++ b/generated/googleapis/test/binaryauthorization/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2271() { +buildUnnamed2379() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2271(core.List<core.String> o) { +checkUnnamed2379(core.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 @@ if (buildCounterAdmissionRule < 3) { o.enforcementMode = "foo"; o.evaluationMode = "foo"; - o.requireAttestationsBy = buildUnnamed2271(); + o.requireAttestationsBy = buildUnnamed2379(); } buildCounterAdmissionRule--; return o; @@ -81,7 +81,7 @@ if (buildCounterAdmissionRule < 3) { unittest.expect(o.enforcementMode, unittest.equals('foo')); unittest.expect(o.evaluationMode, unittest.equals('foo')); - checkUnnamed2271(o.requireAttestationsBy); + checkUnnamed2379(o.requireAttestationsBy); } buildCounterAdmissionRule--; } @@ -105,6 +105,55 @@ buildCounterAdmissionWhitelistPattern--; } +buildUnnamed2380() { + var o = new core.List<api.Jwt>(); + o.add(buildJwt()); + o.add(buildJwt()); + return o; +} + +checkUnnamed2380(core.List<api.Jwt> o) { + unittest.expect(o, unittest.hasLength(2)); + checkJwt(o[0]); + checkJwt(o[1]); +} + +buildUnnamed2381() { + var o = new core.List<api.Signature>(); + o.add(buildSignature()); + o.add(buildSignature()); + return o; +} + +checkUnnamed2381(core.List<api.Signature> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSignature(o[0]); + checkSignature(o[1]); +} + +core.int buildCounterAttestationOccurrence = 0; +buildAttestationOccurrence() { + var o = new api.AttestationOccurrence(); + buildCounterAttestationOccurrence++; + if (buildCounterAttestationOccurrence < 3) { + o.jwts = buildUnnamed2380(); + o.serializedPayload = "foo"; + o.signatures = buildUnnamed2381(); + } + buildCounterAttestationOccurrence--; + return o; +} + +checkAttestationOccurrence(api.AttestationOccurrence o) { + buildCounterAttestationOccurrence++; + if (buildCounterAttestationOccurrence < 3) { + checkUnnamed2380(o.jwts); + unittest.expect(o.serializedPayload, unittest.equals('foo')); + checkUnnamed2381(o.signatures); + } + buildCounterAttestationOccurrence--; +} + core.int buildCounterAttestor = 0; buildAttestor() { var o = new api.Attestor(); @@ -155,14 +204,14 @@ buildCounterAttestorPublicKey--; } -buildUnnamed2272() { +buildUnnamed2382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2272(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')); @@ -173,8 +222,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed2272(); + o.members = buildUnnamed2382(); o.role = "foo"; } buildCounterBinding--; @@ -184,8 +234,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed2272(o.members); + checkUnnamed2382(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -231,14 +282,14 @@ buildCounterExpr--; } -buildUnnamed2273() { +buildUnnamed2383() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2273(core.List<api.Binding> o) { +checkUnnamed2383(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -249,7 +300,7 @@ var o = new api.IamPolicy(); buildCounterIamPolicy++; if (buildCounterIamPolicy < 3) { - o.bindings = buildUnnamed2273(); + o.bindings = buildUnnamed2383(); o.etag = "foo"; o.version = 42; } @@ -260,21 +311,40 @@ checkIamPolicy(api.IamPolicy o) { buildCounterIamPolicy++; if (buildCounterIamPolicy < 3) { - checkUnnamed2273(o.bindings); + checkUnnamed2383(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterIamPolicy--; } -buildUnnamed2274() { +core.int buildCounterJwt = 0; +buildJwt() { + var o = new api.Jwt(); + buildCounterJwt++; + if (buildCounterJwt < 3) { + o.compactJwt = "foo"; + } + buildCounterJwt--; + return o; +} + +checkJwt(api.Jwt o) { + buildCounterJwt++; + if (buildCounterJwt < 3) { + unittest.expect(o.compactJwt, unittest.equals('foo')); + } + buildCounterJwt--; +} + +buildUnnamed2384() { var o = new core.List<api.Attestor>(); o.add(buildAttestor()); o.add(buildAttestor()); return o; } -checkUnnamed2274(core.List<api.Attestor> o) { +checkUnnamed2384(core.List<api.Attestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAttestor(o[0]); checkAttestor(o[1]); @@ -285,7 +355,7 @@ var o = new api.ListAttestorsResponse(); buildCounterListAttestorsResponse++; if (buildCounterListAttestorsResponse < 3) { - o.attestors = buildUnnamed2274(); + o.attestors = buildUnnamed2384(); o.nextPageToken = "foo"; } buildCounterListAttestorsResponse--; @@ -295,7 +365,7 @@ checkListAttestorsResponse(api.ListAttestorsResponse o) { buildCounterListAttestorsResponse++; if (buildCounterListAttestorsResponse < 3) { - checkUnnamed2274(o.attestors); + checkUnnamed2384(o.attestors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAttestorsResponse--; @@ -322,27 +392,27 @@ buildCounterPkixPublicKey--; } -buildUnnamed2275() { +buildUnnamed2385() { var o = new core.List<api.AdmissionWhitelistPattern>(); o.add(buildAdmissionWhitelistPattern()); o.add(buildAdmissionWhitelistPattern()); return o; } -checkUnnamed2275(core.List<api.AdmissionWhitelistPattern> o) { +checkUnnamed2385(core.List<api.AdmissionWhitelistPattern> o) { unittest.expect(o, unittest.hasLength(2)); checkAdmissionWhitelistPattern(o[0]); checkAdmissionWhitelistPattern(o[1]); } -buildUnnamed2276() { +buildUnnamed2386() { var o = new core.Map<core.String, api.AdmissionRule>(); o["x"] = buildAdmissionRule(); o["y"] = buildAdmissionRule(); return o; } -checkUnnamed2276(core.Map<core.String, api.AdmissionRule> o) { +checkUnnamed2386(core.Map<core.String, api.AdmissionRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAdmissionRule(o["x"]); checkAdmissionRule(o["y"]); @@ -353,8 +423,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.admissionWhitelistPatterns = buildUnnamed2275(); - o.clusterAdmissionRules = buildUnnamed2276(); + o.admissionWhitelistPatterns = buildUnnamed2385(); + o.clusterAdmissionRules = buildUnnamed2386(); o.defaultAdmissionRule = buildAdmissionRule(); o.description = "foo"; o.globalPolicyEvaluationMode = "foo"; @@ -368,8 +438,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2275(o.admissionWhitelistPatterns); - checkUnnamed2276(o.clusterAdmissionRules); + checkUnnamed2385(o.admissionWhitelistPatterns); + checkUnnamed2386(o.clusterAdmissionRules); checkAdmissionRule(o.defaultAdmissionRule); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.globalPolicyEvaluationMode, unittest.equals('foo')); @@ -398,14 +468,35 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2277() { +core.int buildCounterSignature = 0; +buildSignature() { + var o = new api.Signature(); + buildCounterSignature++; + if (buildCounterSignature < 3) { + o.publicKeyId = "foo"; + o.signature = "foo"; + } + buildCounterSignature--; + return o; +} + +checkSignature(api.Signature o) { + buildCounterSignature++; + if (buildCounterSignature < 3) { + unittest.expect(o.publicKeyId, unittest.equals('foo')); + unittest.expect(o.signature, unittest.equals('foo')); + } + buildCounterSignature--; +} + +buildUnnamed2387() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2277(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')); @@ -416,7 +507,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2277(); + o.permissions = buildUnnamed2387(); } buildCounterTestIamPermissionsRequest--; return o; @@ -425,19 +516,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2277(o.permissions); + checkUnnamed2387(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2278() { +buildUnnamed2388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2278(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')); @@ -448,7 +539,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2278(); + o.permissions = buildUnnamed2388(); } buildCounterTestIamPermissionsResponse--; return o; @@ -457,19 +548,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2278(o.permissions); + checkUnnamed2388(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2279() { +buildUnnamed2389() { var o = new core.List<api.AttestorPublicKey>(); o.add(buildAttestorPublicKey()); o.add(buildAttestorPublicKey()); return o; } -checkUnnamed2279(core.List<api.AttestorPublicKey> o) { +checkUnnamed2389(core.List<api.AttestorPublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkAttestorPublicKey(o[0]); checkAttestorPublicKey(o[1]); @@ -482,7 +573,7 @@ if (buildCounterUserOwnedGrafeasNote < 3) { o.delegationServiceAccountEmail = "foo"; o.noteReference = "foo"; - o.publicKeys = buildUnnamed2279(); + o.publicKeys = buildUnnamed2389(); } buildCounterUserOwnedGrafeasNote--; return o; @@ -493,11 +584,57 @@ if (buildCounterUserOwnedGrafeasNote < 3) { unittest.expect(o.delegationServiceAccountEmail, unittest.equals('foo')); unittest.expect(o.noteReference, unittest.equals('foo')); - checkUnnamed2279(o.publicKeys); + checkUnnamed2389(o.publicKeys); } buildCounterUserOwnedGrafeasNote--; } +core.int buildCounterValidateAttestationOccurrenceRequest = 0; +buildValidateAttestationOccurrenceRequest() { + var o = new api.ValidateAttestationOccurrenceRequest(); + buildCounterValidateAttestationOccurrenceRequest++; + if (buildCounterValidateAttestationOccurrenceRequest < 3) { + o.attestation = buildAttestationOccurrence(); + o.occurrenceNote = "foo"; + o.occurrenceResourceUri = "foo"; + } + buildCounterValidateAttestationOccurrenceRequest--; + return o; +} + +checkValidateAttestationOccurrenceRequest( + api.ValidateAttestationOccurrenceRequest o) { + buildCounterValidateAttestationOccurrenceRequest++; + if (buildCounterValidateAttestationOccurrenceRequest < 3) { + checkAttestationOccurrence(o.attestation); + unittest.expect(o.occurrenceNote, unittest.equals('foo')); + unittest.expect(o.occurrenceResourceUri, unittest.equals('foo')); + } + buildCounterValidateAttestationOccurrenceRequest--; +} + +core.int buildCounterValidateAttestationOccurrenceResponse = 0; +buildValidateAttestationOccurrenceResponse() { + var o = new api.ValidateAttestationOccurrenceResponse(); + buildCounterValidateAttestationOccurrenceResponse++; + if (buildCounterValidateAttestationOccurrenceResponse < 3) { + o.denialReason = "foo"; + o.result = "foo"; + } + buildCounterValidateAttestationOccurrenceResponse--; + return o; +} + +checkValidateAttestationOccurrenceResponse( + api.ValidateAttestationOccurrenceResponse o) { + buildCounterValidateAttestationOccurrenceResponse++; + if (buildCounterValidateAttestationOccurrenceResponse < 3) { + unittest.expect(o.denialReason, unittest.equals('foo')); + unittest.expect(o.result, unittest.equals('foo')); + } + buildCounterValidateAttestationOccurrenceResponse--; +} + main() { unittest.group("obj-schema-AdmissionRule", () { unittest.test("to-json--from-json", () { @@ -515,6 +652,14 @@ }); }); + unittest.group("obj-schema-AttestationOccurrence", () { + unittest.test("to-json--from-json", () { + var o = buildAttestationOccurrence(); + var od = new api.AttestationOccurrence.fromJson(o.toJson()); + checkAttestationOccurrence(od); + }); + }); + unittest.group("obj-schema-Attestor", () { unittest.test("to-json--from-json", () { var o = buildAttestor(); @@ -563,6 +708,14 @@ }); }); + unittest.group("obj-schema-Jwt", () { + unittest.test("to-json--from-json", () { + var o = buildJwt(); + var od = new api.Jwt.fromJson(o.toJson()); + checkJwt(od); + }); + }); + unittest.group("obj-schema-ListAttestorsResponse", () { unittest.test("to-json--from-json", () { var o = buildListAttestorsResponse(); @@ -595,6 +748,14 @@ }); }); + unittest.group("obj-schema-Signature", () { + unittest.test("to-json--from-json", () { + var o = buildSignature(); + var od = new api.Signature.fromJson(o.toJson()); + checkSignature(od); + }); + }); + unittest.group("obj-schema-TestIamPermissionsRequest", () { unittest.test("to-json--from-json", () { var o = buildTestIamPermissionsRequest(); @@ -619,6 +780,24 @@ }); }); + unittest.group("obj-schema-ValidateAttestationOccurrenceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildValidateAttestationOccurrenceRequest(); + var od = + new api.ValidateAttestationOccurrenceRequest.fromJson(o.toJson()); + checkValidateAttestationOccurrenceRequest(od); + }); + }); + + unittest.group("obj-schema-ValidateAttestationOccurrenceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildValidateAttestationOccurrenceResponse(); + var od = + new api.ValidateAttestationOccurrenceResponse.fromJson(o.toJson()); + checkValidateAttestationOccurrenceResponse(od); + }); + }); + unittest.group("resource-ProjectsResourceApi", () { unittest.test("method--getPolicy", () { var mock = new HttpServerMock(); @@ -1181,6 +1360,64 @@ checkAttestor(response); }))); }); + + unittest.test("method--validateAttestationOccurrence", () { + var mock = new HttpServerMock(); + api.ProjectsAttestorsResourceApi res = + new api.BinaryauthorizationApi(mock).projects.attestors; + var arg_request = buildValidateAttestationOccurrenceRequest(); + var arg_attestor = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ValidateAttestationOccurrenceRequest.fromJson(json); + checkValidateAttestationOccurrenceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildValidateAttestationOccurrenceResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .validateAttestationOccurrence(arg_request, arg_attestor, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkValidateAttestationOccurrenceResponse(response); + }))); + }); }); unittest.group("resource-ProjectsPolicyResourceApi", () {
diff --git a/generated/googleapis/test/blogger/v3_test.dart b/generated/googleapis/test/blogger/v3_test.dart index 76bc795..06df094 100644 --- a/generated/googleapis/test/blogger/v3_test.dart +++ b/generated/googleapis/test/blogger/v3_test.dart
@@ -94,14 +94,14 @@ buildCounterBlogPages--; } -buildUnnamed4895() { +buildUnnamed5255() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed4895(core.List<api.Post> o) { +checkUnnamed5255(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -112,7 +112,7 @@ var o = new api.BlogPosts(); buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - o.items = buildUnnamed4895(); + o.items = buildUnnamed5255(); o.selfLink = "foo"; o.totalItems = 42; } @@ -123,7 +123,7 @@ checkBlogPosts(api.BlogPosts o) { buildCounterBlogPosts++; if (buildCounterBlogPosts < 3) { - checkUnnamed4895(o.items); + checkUnnamed5255(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -173,27 +173,27 @@ buildCounterBlog--; } -buildUnnamed4896() { +buildUnnamed5256() { var o = new core.List<api.BlogUserInfo>(); o.add(buildBlogUserInfo()); o.add(buildBlogUserInfo()); return o; } -checkUnnamed4896(core.List<api.BlogUserInfo> o) { +checkUnnamed5256(core.List<api.BlogUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkBlogUserInfo(o[0]); checkBlogUserInfo(o[1]); } -buildUnnamed4897() { +buildUnnamed5257() { var o = new core.List<api.Blog>(); o.add(buildBlog()); o.add(buildBlog()); return o; } -checkUnnamed4897(core.List<api.Blog> o) { +checkUnnamed5257(core.List<api.Blog> o) { unittest.expect(o, unittest.hasLength(2)); checkBlog(o[0]); checkBlog(o[1]); @@ -204,8 +204,8 @@ var o = new api.BlogList(); buildCounterBlogList++; if (buildCounterBlogList < 3) { - o.blogUserInfos = buildUnnamed4896(); - o.items = buildUnnamed4897(); + o.blogUserInfos = buildUnnamed5256(); + o.items = buildUnnamed5257(); o.kind = "foo"; } buildCounterBlogList--; @@ -215,8 +215,8 @@ checkBlogList(api.BlogList o) { buildCounterBlogList++; if (buildCounterBlogList < 3) { - checkUnnamed4896(o.blogUserInfos); - checkUnnamed4897(o.items); + checkUnnamed5256(o.blogUserInfos); + checkUnnamed5257(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBlogList--; @@ -414,14 +414,14 @@ buildCounterComment--; } -buildUnnamed4898() { +buildUnnamed5258() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed4898(core.List<api.Comment> o) { +checkUnnamed5258(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -433,7 +433,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { o.etag = "foo"; - o.items = buildUnnamed4898(); + o.items = buildUnnamed5258(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -446,7 +446,7 @@ buildCounterCommentList++; if (buildCounterCommentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4898(o.items); + checkUnnamed5258(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.prevPageToken, unittest.equals('foo')); @@ -558,14 +558,14 @@ buildCounterPage--; } -buildUnnamed4899() { +buildUnnamed5259() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed4899(core.List<api.Page> o) { +checkUnnamed5259(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -577,7 +577,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { o.etag = "foo"; - o.items = buildUnnamed4899(); + o.items = buildUnnamed5259(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -589,7 +589,7 @@ buildCounterPageList++; if (buildCounterPageList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4899(o.items); + checkUnnamed5259(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -617,14 +617,14 @@ buildCounterPageviewsCounts--; } -buildUnnamed4900() { +buildUnnamed5260() { var o = new core.List<api.PageviewsCounts>(); o.add(buildPageviewsCounts()); o.add(buildPageviewsCounts()); return o; } -checkUnnamed4900(core.List<api.PageviewsCounts> o) { +checkUnnamed5260(core.List<api.PageviewsCounts> o) { unittest.expect(o, unittest.hasLength(2)); checkPageviewsCounts(o[0]); checkPageviewsCounts(o[1]); @@ -636,7 +636,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { o.blogId = "foo"; - o.counts = buildUnnamed4900(); + o.counts = buildUnnamed5260(); o.kind = "foo"; } buildCounterPageviews--; @@ -647,7 +647,7 @@ buildCounterPageviews++; if (buildCounterPageviews < 3) { unittest.expect(o.blogId, unittest.equals('foo')); - checkUnnamed4900(o.counts); + checkUnnamed5260(o.counts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPageviews--; @@ -735,27 +735,27 @@ buildCounterPostImages--; } -buildUnnamed4901() { +buildUnnamed5261() { var o = new core.List<api.PostImages>(); o.add(buildPostImages()); o.add(buildPostImages()); return o; } -checkUnnamed4901(core.List<api.PostImages> o) { +checkUnnamed5261(core.List<api.PostImages> o) { unittest.expect(o, unittest.hasLength(2)); checkPostImages(o[0]); checkPostImages(o[1]); } -buildUnnamed4902() { +buildUnnamed5262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4902(core.List<core.String> o) { +checkUnnamed5262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -786,14 +786,14 @@ buildCounterPostLocation--; } -buildUnnamed4903() { +buildUnnamed5263() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed4903(core.List<api.Comment> o) { +checkUnnamed5263(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -804,7 +804,7 @@ var o = new api.PostReplies(); buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - o.items = buildUnnamed4903(); + o.items = buildUnnamed5263(); o.selfLink = "foo"; o.totalItems = "foo"; } @@ -815,7 +815,7 @@ checkPostReplies(api.PostReplies o) { buildCounterPostReplies++; if (buildCounterPostReplies < 3) { - checkUnnamed4903(o.items); + checkUnnamed5263(o.items); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals('foo')); } @@ -833,9 +833,9 @@ o.customMetaData = "foo"; o.etag = "foo"; o.id = "foo"; - o.images = buildUnnamed4901(); + o.images = buildUnnamed5261(); o.kind = "foo"; - o.labels = buildUnnamed4902(); + o.labels = buildUnnamed5262(); o.location = buildPostLocation(); o.published = "foo"; o.readerComments = "foo"; @@ -860,9 +860,9 @@ unittest.expect(o.customMetaData, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4901(o.images); + checkUnnamed5261(o.images); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4902(o.labels); + checkUnnamed5262(o.labels); checkPostLocation(o.location); unittest.expect(o.published, unittest.equals('foo')); unittest.expect(o.readerComments, unittest.equals('foo')); @@ -877,14 +877,14 @@ buildCounterPost--; } -buildUnnamed4904() { +buildUnnamed5264() { var o = new core.List<api.Post>(); o.add(buildPost()); o.add(buildPost()); return o; } -checkUnnamed4904(core.List<api.Post> o) { +checkUnnamed5264(core.List<api.Post> o) { unittest.expect(o, unittest.hasLength(2)); checkPost(o[0]); checkPost(o[1]); @@ -896,7 +896,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { o.etag = "foo"; - o.items = buildUnnamed4904(); + o.items = buildUnnamed5264(); o.kind = "foo"; o.nextPageToken = "foo"; o.prevPageToken = "foo"; @@ -909,7 +909,7 @@ buildCounterPostList++; if (buildCounterPostList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed4904(o.items); + checkUnnamed5264(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.prevPageToken, unittest.equals('foo')); @@ -967,14 +967,14 @@ buildCounterPostUserInfo--; } -buildUnnamed4905() { +buildUnnamed5265() { var o = new core.List<api.PostUserInfo>(); o.add(buildPostUserInfo()); o.add(buildPostUserInfo()); return o; } -checkUnnamed4905(core.List<api.PostUserInfo> o) { +checkUnnamed5265(core.List<api.PostUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPostUserInfo(o[0]); checkPostUserInfo(o[1]); @@ -985,7 +985,7 @@ var o = new api.PostUserInfosList(); buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - o.items = buildUnnamed4905(); + o.items = buildUnnamed5265(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -996,7 +996,7 @@ checkPostUserInfosList(api.PostUserInfosList o) { buildCounterPostUserInfosList++; if (buildCounterPostUserInfosList < 3) { - checkUnnamed4905(o.items); + checkUnnamed5265(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1080,92 +1080,92 @@ buildCounterUser--; } -buildUnnamed4906() { +buildUnnamed5266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4906(core.List<core.String> o) { +checkUnnamed5266(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4907() { +buildUnnamed5267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4907(core.List<core.String> o) { +checkUnnamed5267(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4908() { +buildUnnamed5268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4908(core.List<core.String> o) { +checkUnnamed5268(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4909() { +buildUnnamed5269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4909(core.List<core.String> o) { +checkUnnamed5269(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4910() { +buildUnnamed5270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4910(core.List<core.String> o) { +checkUnnamed5270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4911() { +buildUnnamed5271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4911(core.List<core.String> o) { +checkUnnamed5271(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4912() { +buildUnnamed5272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4912(core.List<core.String> o) { +checkUnnamed5272(core.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 +1638,9 @@ var mock = new HttpServerMock(); api.BlogsResourceApi res = new api.BloggerApi(mock).blogs; var arg_userId = "foo"; + var arg_role = buildUnnamed5266(); + var arg_status = buildUnnamed5267(); var arg_view = "foo"; - var arg_role = buildUnnamed4906(); - var arg_status = buildUnnamed4907(); var arg_fetchUserInfo = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1682,9 +1682,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["role"], unittest.equals(arg_role)); unittest.expect(queryMap["status"], unittest.equals(arg_status)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fetchUserInfo"].first, unittest.equals("$arg_fetchUserInfo")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1697,9 +1697,9 @@ }), true); res .listByUser(arg_userId, - view: arg_view, role: arg_role, status: arg_status, + view: arg_view, fetchUserInfo: arg_fetchUserInfo, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1940,13 +1940,13 @@ api.CommentsResourceApi res = new api.BloggerApi(mock).comments; var arg_blogId = "foo"; var arg_postId = "foo"; - var arg_fetchBodies = true; - var arg_maxResults = 42; - var arg_view = "foo"; - var arg_endDate = "foo"; - var arg_startDate = "foo"; - var arg_pageToken = "foo"; var arg_status = "foo"; + var arg_view = "foo"; + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_startDate = "foo"; + var arg_endDate = "foo"; + var arg_fetchBodies = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1996,18 +1996,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( - queryMap["endDate"].first, unittest.equals(arg_endDate)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); + queryMap["endDate"].first, unittest.equals(arg_endDate)); + unittest.expect( + queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2018,13 +2018,13 @@ }), true); res .list(arg_blogId, arg_postId, - fetchBodies: arg_fetchBodies, - maxResults: arg_maxResults, - view: arg_view, - endDate: arg_endDate, - startDate: arg_startDate, - pageToken: arg_pageToken, status: arg_status, + view: arg_view, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + startDate: arg_startDate, + endDate: arg_endDate, + fetchBodies: arg_fetchBodies, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCommentList(response); @@ -2036,11 +2036,11 @@ api.CommentsResourceApi res = new api.BloggerApi(mock).comments; var arg_blogId = "foo"; var arg_endDate = "foo"; - var arg_startDate = "foo"; var arg_pageToken = "foo"; - var arg_status = buildUnnamed4908(); - var arg_fetchBodies = true; + var arg_status = buildUnnamed5268(); var arg_maxResults = 42; + var arg_fetchBodies = true; + var arg_startDate = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2084,14 +2084,14 @@ unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); unittest.expect( - queryMap["startDate"].first, unittest.equals(arg_startDate)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["status"], unittest.equals(arg_status)); - unittest.expect( - queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); + unittest.expect( + queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2103,11 +2103,11 @@ res .listByBlog(arg_blogId, endDate: arg_endDate, - startDate: arg_startDate, pageToken: arg_pageToken, status: arg_status, - fetchBodies: arg_fetchBodies, maxResults: arg_maxResults, + fetchBodies: arg_fetchBodies, + startDate: arg_startDate, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCommentList(response); @@ -2280,7 +2280,7 @@ var mock = new HttpServerMock(); api.PageViewsResourceApi res = new api.BloggerApi(mock).pageViews; var arg_blogId = "foo"; - var arg_range = buildUnnamed4909(); + var arg_range = buildUnnamed5269(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2536,11 +2536,11 @@ var mock = new HttpServerMock(); api.PagesResourceApi res = new api.BloggerApi(mock).pages; var arg_blogId = "foo"; - var arg_status = buildUnnamed4910(); - var arg_fetchBodies = true; - var arg_maxResults = 42; + var arg_status = buildUnnamed5270(); var arg_view = "foo"; + var arg_fetchBodies = true; var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2582,13 +2582,13 @@ } } unittest.expect(queryMap["status"], unittest.equals(arg_status)); - unittest.expect( - queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( + queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2600,10 +2600,10 @@ res .list(arg_blogId, status: arg_status, - fetchBodies: arg_fetchBodies, - maxResults: arg_maxResults, view: arg_view, + fetchBodies: arg_fetchBodies, pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPageList(response); @@ -2616,8 +2616,8 @@ var arg_request = buildPage(); var arg_blogId = "foo"; var arg_pageId = "foo"; - var arg_revert_1 = true; var arg_publish_1 = true; + var arg_revert_1 = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Page.fromJson(json); @@ -2665,9 +2665,9 @@ } } unittest.expect( - queryMap["revert"].first, unittest.equals("$arg_revert_1")); - unittest.expect( queryMap["publish"].first, unittest.equals("$arg_publish_1")); + unittest.expect( + queryMap["revert"].first, unittest.equals("$arg_revert_1")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2678,8 +2678,8 @@ }), true); res .patch(arg_request, arg_blogId, arg_pageId, - revert_1: arg_revert_1, publish_1: arg_publish_1, + revert_1: arg_revert_1, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPage(response); @@ -2830,8 +2830,8 @@ var arg_request = buildPage(); var arg_blogId = "foo"; var arg_pageId = "foo"; - var arg_revert_1 = true; var arg_publish_1 = true; + var arg_revert_1 = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Page.fromJson(json); @@ -2879,9 +2879,9 @@ } } unittest.expect( - queryMap["revert"].first, unittest.equals("$arg_revert_1")); - unittest.expect( queryMap["publish"].first, unittest.equals("$arg_publish_1")); + unittest.expect( + queryMap["revert"].first, unittest.equals("$arg_revert_1")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2892,8 +2892,8 @@ }), true); res .update(arg_request, arg_blogId, arg_pageId, - revert_1: arg_revert_1, publish_1: arg_publish_1, + revert_1: arg_revert_1, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPage(response); @@ -2984,15 +2984,15 @@ api.PostUserInfosResourceApi res = new api.BloggerApi(mock).postUserInfos; var arg_userId = "foo"; var arg_blogId = "foo"; - var arg_status = buildUnnamed4911(); - var arg_fetchBodies = true; - var arg_maxResults = 42; var arg_view = "foo"; + var arg_orderBy = "foo"; var arg_labels = "foo"; var arg_endDate = "foo"; - var arg_orderBy = "foo"; - var arg_startDate = "foo"; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_startDate = "foo"; + var arg_fetchBodies = true; + var arg_status = buildUnnamed5271(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3042,21 +3042,21 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["status"], unittest.equals(arg_status)); - unittest.expect( - queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["labels"].first, unittest.equals(arg_labels)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["startDate"].first, unittest.equals(arg_startDate)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); + unittest.expect(queryMap["status"], unittest.equals(arg_status)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3067,15 +3067,15 @@ }), true); res .list(arg_userId, arg_blogId, - status: arg_status, - fetchBodies: arg_fetchBodies, - maxResults: arg_maxResults, view: arg_view, + orderBy: arg_orderBy, labels: arg_labels, endDate: arg_endDate, - orderBy: arg_orderBy, - startDate: arg_startDate, pageToken: arg_pageToken, + maxResults: arg_maxResults, + startDate: arg_startDate, + fetchBodies: arg_fetchBodies, + status: arg_status, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPostUserInfosList(response); @@ -3150,10 +3150,10 @@ api.PostsResourceApi res = new api.BloggerApi(mock).posts; var arg_blogId = "foo"; var arg_postId = "foo"; - var arg_view = "foo"; - var arg_fetchImages = true; var arg_maxComments = 42; var arg_fetchBody = true; + var arg_view = "foo"; + var arg_fetchImages = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3197,13 +3197,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect( - queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); unittest.expect(core.int.parse(queryMap["maxComments"].first), unittest.equals(arg_maxComments)); unittest.expect( queryMap["fetchBody"].first, unittest.equals("$arg_fetchBody")); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3214,10 +3214,10 @@ }), true); res .get(arg_blogId, arg_postId, - view: arg_view, - fetchImages: arg_fetchImages, maxComments: arg_maxComments, fetchBody: arg_fetchBody, + view: arg_view, + fetchImages: arg_fetchImages, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPost(response); @@ -3229,8 +3229,8 @@ api.PostsResourceApi res = new api.BloggerApi(mock).posts; var arg_blogId = "foo"; var arg_path = "foo"; - var arg_maxComments = 42; var arg_view = "foo"; + var arg_maxComments = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3272,9 +3272,9 @@ } } unittest.expect(queryMap["path"].first, unittest.equals(arg_path)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(core.int.parse(queryMap["maxComments"].first), unittest.equals(arg_maxComments)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3285,8 +3285,8 @@ }), true); res .getByPath(arg_blogId, arg_path, - maxComments: arg_maxComments, view: arg_view, + maxComments: arg_maxComments, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPost(response); @@ -3298,9 +3298,9 @@ api.PostsResourceApi res = new api.BloggerApi(mock).posts; var arg_request = buildPost(); var arg_blogId = "foo"; - var arg_fetchImages = true; - var arg_fetchBody = true; var arg_isDraft = true; + var arg_fetchBody = true; + var arg_fetchImages = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Post.fromJson(json); @@ -3345,11 +3345,11 @@ } } unittest.expect( - queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); + queryMap["isDraft"].first, unittest.equals("$arg_isDraft")); unittest.expect( queryMap["fetchBody"].first, unittest.equals("$arg_fetchBody")); unittest.expect( - queryMap["isDraft"].first, unittest.equals("$arg_isDraft")); + queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3360,9 +3360,9 @@ }), true); res .insert(arg_request, arg_blogId, - fetchImages: arg_fetchImages, - fetchBody: arg_fetchBody, isDraft: arg_isDraft, + fetchBody: arg_fetchBody, + fetchImages: arg_fetchImages, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPost(response); @@ -3373,16 +3373,16 @@ var mock = new HttpServerMock(); api.PostsResourceApi res = new api.BloggerApi(mock).posts; var arg_blogId = "foo"; - var arg_pageToken = "foo"; - var arg_status = buildUnnamed4912(); var arg_fetchBodies = true; - var arg_maxResults = 42; - var arg_fetchImages = true; + var arg_pageToken = "foo"; var arg_view = "foo"; - var arg_labels = "foo"; var arg_endDate = "foo"; - var arg_orderBy = "foo"; + var arg_fetchImages = true; + var arg_status = buildUnnamed5272(); + var arg_labels = "foo"; + var arg_maxResults = 42; var arg_startDate = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3424,22 +3424,22 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["status"], unittest.equals(arg_status)); - unittest.expect( queryMap["fetchBodies"].first, unittest.equals("$arg_fetchBodies")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect( - queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["labels"].first, unittest.equals(arg_labels)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); + unittest.expect(queryMap["status"], unittest.equals(arg_status)); + unittest.expect(queryMap["labels"].first, unittest.equals(arg_labels)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["startDate"].first, unittest.equals(arg_startDate)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3450,16 +3450,16 @@ }), true); res .list(arg_blogId, - pageToken: arg_pageToken, - status: arg_status, fetchBodies: arg_fetchBodies, - maxResults: arg_maxResults, - fetchImages: arg_fetchImages, + pageToken: arg_pageToken, view: arg_view, - labels: arg_labels, endDate: arg_endDate, - orderBy: arg_orderBy, + fetchImages: arg_fetchImages, + status: arg_status, + labels: arg_labels, + maxResults: arg_maxResults, startDate: arg_startDate, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPostList(response); @@ -3472,11 +3472,11 @@ var arg_request = buildPost(); var arg_blogId = "foo"; var arg_postId = "foo"; - var arg_fetchBody = true; var arg_publish_1 = true; - var arg_revert_1 = true; var arg_fetchImages = true; + var arg_fetchBody = true; var arg_maxComments = 42; + var arg_revert_1 = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Post.fromJson(json); @@ -3524,15 +3524,15 @@ } } unittest.expect( - queryMap["fetchBody"].first, unittest.equals("$arg_fetchBody")); - unittest.expect( queryMap["publish"].first, unittest.equals("$arg_publish_1")); unittest.expect( - queryMap["revert"].first, unittest.equals("$arg_revert_1")); - unittest.expect( queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); + unittest.expect( + queryMap["fetchBody"].first, unittest.equals("$arg_fetchBody")); unittest.expect(core.int.parse(queryMap["maxComments"].first), unittest.equals(arg_maxComments)); + unittest.expect( + queryMap["revert"].first, unittest.equals("$arg_revert_1")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3543,11 +3543,11 @@ }), true); res .patch(arg_request, arg_blogId, arg_postId, - fetchBody: arg_fetchBody, publish_1: arg_publish_1, - revert_1: arg_revert_1, fetchImages: arg_fetchImages, + fetchBody: arg_fetchBody, maxComments: arg_maxComments, + revert_1: arg_revert_1, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPost(response); @@ -3773,10 +3773,10 @@ var arg_blogId = "foo"; var arg_postId = "foo"; var arg_fetchBody = true; - var arg_publish_1 = true; - var arg_revert_1 = true; var arg_fetchImages = true; + var arg_publish_1 = true; var arg_maxComments = 42; + var arg_revert_1 = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Post.fromJson(json); @@ -3826,13 +3826,13 @@ unittest.expect( queryMap["fetchBody"].first, unittest.equals("$arg_fetchBody")); unittest.expect( - queryMap["publish"].first, unittest.equals("$arg_publish_1")); - unittest.expect( - queryMap["revert"].first, unittest.equals("$arg_revert_1")); - unittest.expect( queryMap["fetchImages"].first, unittest.equals("$arg_fetchImages")); + unittest.expect( + queryMap["publish"].first, unittest.equals("$arg_publish_1")); unittest.expect(core.int.parse(queryMap["maxComments"].first), unittest.equals(arg_maxComments)); + unittest.expect( + queryMap["revert"].first, unittest.equals("$arg_revert_1")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3844,10 +3844,10 @@ res .update(arg_request, arg_blogId, arg_postId, fetchBody: arg_fetchBody, - publish_1: arg_publish_1, - revert_1: arg_revert_1, fetchImages: arg_fetchImages, + publish_1: arg_publish_1, maxComments: arg_maxComments, + revert_1: arg_revert_1, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPost(response);
diff --git a/generated/googleapis/test/books/v1_test.dart b/generated/googleapis/test/books/v1_test.dart index 14acf04..f40a309 100644 --- a/generated/googleapis/test/books/v1_test.dart +++ b/generated/googleapis/test/books/v1_test.dart
@@ -127,14 +127,14 @@ buildCounterAnnotationLayerSummary--; } -buildUnnamed3142() { +buildUnnamed3298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3142(core.List<core.String> 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')); @@ -148,7 +148,7 @@ o.afterSelectedText = "foo"; o.beforeSelectedText = "foo"; o.clientVersionRanges = buildAnnotationClientVersionRanges(); - o.created = core.DateTime.parse("2002-02-27T14:01:02"); + o.created = "foo"; o.currentVersionRanges = buildAnnotationCurrentVersionRanges(); o.data = "foo"; o.deleted = true; @@ -157,10 +157,10 @@ o.kind = "foo"; o.layerId = "foo"; o.layerSummary = buildAnnotationLayerSummary(); - o.pageIds = buildUnnamed3142(); + o.pageIds = buildUnnamed3298(); o.selectedText = "foo"; o.selfLink = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.volumeId = "foo"; } buildCounterAnnotation--; @@ -173,8 +173,7 @@ unittest.expect(o.afterSelectedText, unittest.equals('foo')); unittest.expect(o.beforeSelectedText, unittest.equals('foo')); checkAnnotationClientVersionRanges(o.clientVersionRanges); - unittest.expect( - o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.created, unittest.equals('foo')); checkAnnotationCurrentVersionRanges(o.currentVersionRanges); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); @@ -183,68 +182,23 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); checkAnnotationLayerSummary(o.layerSummary); - checkUnnamed3142(o.pageIds); + checkUnnamed3298(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"))); + unittest.expect(o.updated, unittest.equals('foo')); unittest.expect(o.volumeId, unittest.equals('foo')); } buildCounterAnnotation--; } -core.int buildCounterAnnotationdata = 0; -buildAnnotationdata() { - var o = new api.Annotationdata(); - buildCounterAnnotationdata++; - if (buildCounterAnnotationdata < 3) { - o.annotationType = "foo"; - o.data = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo' - }; - o.encodedData = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.layerId = "foo"; - o.selfLink = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.volumeId = "foo"; - } - buildCounterAnnotationdata--; - return o; -} - -checkAnnotationdata(api.Annotationdata o) { - buildCounterAnnotationdata++; - if (buildCounterAnnotationdata < 3) { - unittest.expect(o.annotationType, unittest.equals('foo')); - var casted1 = (o.data) 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.encodedData, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.layerId, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.volumeId, unittest.equals('foo')); - } - buildCounterAnnotationdata--; -} - -buildUnnamed3143() { +buildUnnamed3299() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3143(core.List<api.Annotation> o) { +checkUnnamed3299(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); @@ -255,7 +209,7 @@ var o = new api.Annotations(); buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - o.items = buildUnnamed3143(); + o.items = buildUnnamed3299(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -267,7 +221,7 @@ checkAnnotations(api.Annotations o) { buildCounterAnnotations++; if (buildCounterAnnotations < 3) { - checkUnnamed3143(o.items); + checkUnnamed3299(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -284,7 +238,7 @@ o.layerId = "foo"; o.limitType = "foo"; o.remainingCharacterCount = 42; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; } buildCounterAnnotationsSummaryLayers--; return o; @@ -297,20 +251,19 @@ unittest.expect(o.layerId, unittest.equals('foo')); unittest.expect(o.limitType, unittest.equals('foo')); unittest.expect(o.remainingCharacterCount, unittest.equals(42)); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); } buildCounterAnnotationsSummaryLayers--; } -buildUnnamed3144() { +buildUnnamed3300() { var o = new core.List<api.AnnotationsSummaryLayers>(); o.add(buildAnnotationsSummaryLayers()); o.add(buildAnnotationsSummaryLayers()); return o; } -checkUnnamed3144(core.List<api.AnnotationsSummaryLayers> o) { +checkUnnamed3300(core.List<api.AnnotationsSummaryLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotationsSummaryLayers(o[0]); checkAnnotationsSummaryLayers(o[1]); @@ -322,7 +275,7 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { o.kind = "foo"; - o.layers = buildUnnamed3144(); + o.layers = buildUnnamed3300(); } buildCounterAnnotationsSummary--; return o; @@ -332,22 +285,22 @@ buildCounterAnnotationsSummary++; if (buildCounterAnnotationsSummary < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3144(o.layers); + checkUnnamed3300(o.layers); } buildCounterAnnotationsSummary--; } -buildUnnamed3145() { - var o = new core.List<api.Annotationdata>(); - o.add(buildAnnotationdata()); - o.add(buildAnnotationdata()); +buildUnnamed3301() { + var o = new core.List<api.GeoAnnotationdata>(); + o.add(buildGeoAnnotationdata()); + o.add(buildGeoAnnotationdata()); return o; } -checkUnnamed3145(core.List<api.Annotationdata> o) { +checkUnnamed3301(core.List<api.GeoAnnotationdata> o) { unittest.expect(o, unittest.hasLength(2)); - checkAnnotationdata(o[0]); - checkAnnotationdata(o[1]); + checkGeoAnnotationdata(o[0]); + checkGeoAnnotationdata(o[1]); } core.int buildCounterAnnotationsdata = 0; @@ -355,7 +308,7 @@ var o = new api.Annotationsdata(); buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - o.items = buildUnnamed3145(); + o.items = buildUnnamed3301(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -367,7 +320,7 @@ checkAnnotationsdata(api.Annotationsdata o) { buildCounterAnnotationsdata++; if (buildCounterAnnotationsdata < 3) { - checkUnnamed3145(o.items); + checkUnnamed3301(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -425,31 +378,6 @@ buildCounterBooksCloudloadingResource--; } -core.int buildCounterBooksSubscriptionReleaseInfo = 0; -buildBooksSubscriptionReleaseInfo() { - var o = new api.BooksSubscriptionReleaseInfo(); - buildCounterBooksSubscriptionReleaseInfo++; - if (buildCounterBooksSubscriptionReleaseInfo < 3) { - o.amountInMicros = "foo"; - o.currencyCode = "foo"; - o.releaseNumber = "foo"; - o.releaseTimestampUs = "foo"; - } - buildCounterBooksSubscriptionReleaseInfo--; - return o; -} - -checkBooksSubscriptionReleaseInfo(api.BooksSubscriptionReleaseInfo o) { - buildCounterBooksSubscriptionReleaseInfo++; - if (buildCounterBooksSubscriptionReleaseInfo < 3) { - unittest.expect(o.amountInMicros, unittest.equals('foo')); - unittest.expect(o.currencyCode, unittest.equals('foo')); - unittest.expect(o.releaseNumber, unittest.equals('foo')); - unittest.expect(o.releaseTimestampUs, unittest.equals('foo')); - } - buildCounterBooksSubscriptionReleaseInfo--; -} - core.int buildCounterBooksVolumesRecommendedRateResponse = 0; buildBooksVolumesRecommendedRateResponse() { var o = new api.BooksVolumesRecommendedRateResponse(); @@ -476,15 +404,15 @@ buildCounterBookshelf++; if (buildCounterBookshelf < 3) { o.access = "foo"; - o.created = core.DateTime.parse("2002-02-27T14:01:02"); + o.created = "foo"; o.description = "foo"; o.id = 42; o.kind = "foo"; o.selfLink = "foo"; o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.volumeCount = 42; - o.volumesLastUpdated = core.DateTime.parse("2002-02-27T14:01:02"); + o.volumesLastUpdated = "foo"; } buildCounterBookshelf--; return o; @@ -494,30 +422,27 @@ buildCounterBookshelf++; if (buildCounterBookshelf < 3) { unittest.expect(o.access, unittest.equals('foo')); - unittest.expect( - o.created, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.created, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); unittest.expect(o.volumeCount, unittest.equals(42)); - unittest.expect(o.volumesLastUpdated, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.volumesLastUpdated, unittest.equals('foo')); } buildCounterBookshelf--; } -buildUnnamed3146() { +buildUnnamed3302() { var o = new core.List<api.Bookshelf>(); o.add(buildBookshelf()); o.add(buildBookshelf()); return o; } -checkUnnamed3146(core.List<api.Bookshelf> o) { +checkUnnamed3302(core.List<api.Bookshelf> o) { unittest.expect(o, unittest.hasLength(2)); checkBookshelf(o[0]); checkBookshelf(o[1]); @@ -528,7 +453,7 @@ var o = new api.Bookshelves(); buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - o.items = buildUnnamed3146(); + o.items = buildUnnamed3302(); o.kind = "foo"; } buildCounterBookshelves--; @@ -538,7 +463,7 @@ checkBookshelves(api.Bookshelves o) { buildCounterBookshelves++; if (buildCounterBookshelves < 3) { - checkUnnamed3146(o.items); + checkUnnamed3302(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBookshelves--; @@ -567,14 +492,14 @@ buildCounterCategoryItems--; } -buildUnnamed3147() { +buildUnnamed3303() { var o = new core.List<api.CategoryItems>(); o.add(buildCategoryItems()); o.add(buildCategoryItems()); return o; } -checkUnnamed3147(core.List<api.CategoryItems> o) { +checkUnnamed3303(core.List<api.CategoryItems> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryItems(o[0]); checkCategoryItems(o[1]); @@ -585,7 +510,7 @@ var o = new api.Category(); buildCounterCategory++; if (buildCounterCategory < 3) { - o.items = buildUnnamed3147(); + o.items = buildUnnamed3303(); o.kind = "foo"; } buildCounterCategory--; @@ -595,7 +520,7 @@ checkCategory(api.Category o) { buildCounterCategory++; if (buildCounterCategory < 3) { - checkUnnamed3147(o.items); + checkUnnamed3303(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCategory--; @@ -640,6 +565,41 @@ buildCounterConcurrentAccessRestriction--; } +core.int buildCounterDictionaryAnnotationdata = 0; +buildDictionaryAnnotationdata() { + var o = new api.DictionaryAnnotationdata(); + buildCounterDictionaryAnnotationdata++; + if (buildCounterDictionaryAnnotationdata < 3) { + o.annotationType = "foo"; + o.data = buildDictlayerdata(); + o.encodedData = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.layerId = "foo"; + o.selfLink = "foo"; + o.updated = "foo"; + o.volumeId = "foo"; + } + buildCounterDictionaryAnnotationdata--; + return o; +} + +checkDictionaryAnnotationdata(api.DictionaryAnnotationdata o) { + buildCounterDictionaryAnnotationdata++; + if (buildCounterDictionaryAnnotationdata < 3) { + unittest.expect(o.annotationType, unittest.equals('foo')); + checkDictlayerdata(o.data); + unittest.expect(o.encodedData, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.layerId, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.updated, unittest.equals('foo')); + unittest.expect(o.volumeId, unittest.equals('foo')); + } + buildCounterDictionaryAnnotationdata--; +} + core.int buildCounterDictlayerdataCommon = 0; buildDictlayerdataCommon() { var o = new api.DictlayerdataCommon(); @@ -724,14 +684,14 @@ buildCounterDictlayerdataDictWordsDerivatives--; } -buildUnnamed3148() { +buildUnnamed3304() { var o = new core.List<api.DictlayerdataDictWordsDerivatives>(); o.add(buildDictlayerdataDictWordsDerivatives()); o.add(buildDictlayerdataDictWordsDerivatives()); return o; } -checkUnnamed3148(core.List<api.DictlayerdataDictWordsDerivatives> o) { +checkUnnamed3304(core.List<api.DictlayerdataDictWordsDerivatives> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsDerivatives(o[0]); checkDictlayerdataDictWordsDerivatives(o[1]); @@ -780,14 +740,14 @@ buildCounterDictlayerdataDictWordsExamples--; } -buildUnnamed3149() { +buildUnnamed3305() { var o = new core.List<api.DictlayerdataDictWordsExamples>(); o.add(buildDictlayerdataDictWordsExamples()); o.add(buildDictlayerdataDictWordsExamples()); return o; } -checkUnnamed3149(core.List<api.DictlayerdataDictWordsExamples> o) { +checkUnnamed3305(core.List<api.DictlayerdataDictWordsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsExamples(o[0]); checkDictlayerdataDictWordsExamples(o[1]); @@ -815,14 +775,14 @@ buildCounterDictlayerdataDictWordsSensesConjugations--; } -buildUnnamed3150() { +buildUnnamed3306() { var o = new core.List<api.DictlayerdataDictWordsSensesConjugations>(); o.add(buildDictlayerdataDictWordsSensesConjugations()); o.add(buildDictlayerdataDictWordsSensesConjugations()); return o; } -checkUnnamed3150(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { +checkUnnamed3306(core.List<api.DictlayerdataDictWordsSensesConjugations> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesConjugations(o[0]); checkDictlayerdataDictWordsSensesConjugations(o[1]); @@ -872,14 +832,14 @@ buildCounterDictlayerdataDictWordsSensesDefinitionsExamples--; } -buildUnnamed3151() { +buildUnnamed3307() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples>(); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); o.add(buildDictlayerdataDictWordsSensesDefinitionsExamples()); return o; } -checkUnnamed3151( +checkUnnamed3307( core.List<api.DictlayerdataDictWordsSensesDefinitionsExamples> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitionsExamples(o[0]); @@ -892,7 +852,7 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { o.definition = "foo"; - o.examples = buildUnnamed3151(); + o.examples = buildUnnamed3307(); } buildCounterDictlayerdataDictWordsSensesDefinitions--; return o; @@ -903,19 +863,19 @@ buildCounterDictlayerdataDictWordsSensesDefinitions++; if (buildCounterDictlayerdataDictWordsSensesDefinitions < 3) { unittest.expect(o.definition, unittest.equals('foo')); - checkUnnamed3151(o.examples); + checkUnnamed3307(o.examples); } buildCounterDictlayerdataDictWordsSensesDefinitions--; } -buildUnnamed3152() { +buildUnnamed3308() { var o = new core.List<api.DictlayerdataDictWordsSensesDefinitions>(); o.add(buildDictlayerdataDictWordsSensesDefinitions()); o.add(buildDictlayerdataDictWordsSensesDefinitions()); return o; } -checkUnnamed3152(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { +checkUnnamed3308(core.List<api.DictlayerdataDictWordsSensesDefinitions> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesDefinitions(o[0]); checkDictlayerdataDictWordsSensesDefinitions(o[1]); @@ -987,14 +947,14 @@ buildCounterDictlayerdataDictWordsSensesSynonyms--; } -buildUnnamed3153() { +buildUnnamed3309() { var o = new core.List<api.DictlayerdataDictWordsSensesSynonyms>(); o.add(buildDictlayerdataDictWordsSensesSynonyms()); o.add(buildDictlayerdataDictWordsSensesSynonyms()); return o; } -checkUnnamed3153(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { +checkUnnamed3309(core.List<api.DictlayerdataDictWordsSensesSynonyms> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSensesSynonyms(o[0]); checkDictlayerdataDictWordsSensesSynonyms(o[1]); @@ -1005,14 +965,14 @@ var o = new api.DictlayerdataDictWordsSenses(); buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - o.conjugations = buildUnnamed3150(); - o.definitions = buildUnnamed3152(); + o.conjugations = buildUnnamed3306(); + o.definitions = buildUnnamed3308(); o.partOfSpeech = "foo"; o.pronunciation = "foo"; o.pronunciationUrl = "foo"; o.source = buildDictlayerdataDictWordsSensesSource(); o.syllabification = "foo"; - o.synonyms = buildUnnamed3153(); + o.synonyms = buildUnnamed3309(); } buildCounterDictlayerdataDictWordsSenses--; return o; @@ -1021,26 +981,26 @@ checkDictlayerdataDictWordsSenses(api.DictlayerdataDictWordsSenses o) { buildCounterDictlayerdataDictWordsSenses++; if (buildCounterDictlayerdataDictWordsSenses < 3) { - checkUnnamed3150(o.conjugations); - checkUnnamed3152(o.definitions); + checkUnnamed3306(o.conjugations); + checkUnnamed3308(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')); - checkUnnamed3153(o.synonyms); + checkUnnamed3309(o.synonyms); } buildCounterDictlayerdataDictWordsSenses--; } -buildUnnamed3154() { +buildUnnamed3310() { var o = new core.List<api.DictlayerdataDictWordsSenses>(); o.add(buildDictlayerdataDictWordsSenses()); o.add(buildDictlayerdataDictWordsSenses()); return o; } -checkUnnamed3154(core.List<api.DictlayerdataDictWordsSenses> o) { +checkUnnamed3310(core.List<api.DictlayerdataDictWordsSenses> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWordsSenses(o[0]); checkDictlayerdataDictWordsSenses(o[1]); @@ -1072,9 +1032,9 @@ var o = new api.DictlayerdataDictWords(); buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - o.derivatives = buildUnnamed3148(); - o.examples = buildUnnamed3149(); - o.senses = buildUnnamed3154(); + o.derivatives = buildUnnamed3304(); + o.examples = buildUnnamed3305(); + o.senses = buildUnnamed3310(); o.source = buildDictlayerdataDictWordsSource(); } buildCounterDictlayerdataDictWords--; @@ -1084,22 +1044,22 @@ checkDictlayerdataDictWords(api.DictlayerdataDictWords o) { buildCounterDictlayerdataDictWords++; if (buildCounterDictlayerdataDictWords < 3) { - checkUnnamed3148(o.derivatives); - checkUnnamed3149(o.examples); - checkUnnamed3154(o.senses); + checkUnnamed3304(o.derivatives); + checkUnnamed3305(o.examples); + checkUnnamed3310(o.senses); checkDictlayerdataDictWordsSource(o.source); } buildCounterDictlayerdataDictWords--; } -buildUnnamed3155() { +buildUnnamed3311() { var o = new core.List<api.DictlayerdataDictWords>(); o.add(buildDictlayerdataDictWords()); o.add(buildDictlayerdataDictWords()); return o; } -checkUnnamed3155(core.List<api.DictlayerdataDictWords> o) { +checkUnnamed3311(core.List<api.DictlayerdataDictWords> o) { unittest.expect(o, unittest.hasLength(2)); checkDictlayerdataDictWords(o[0]); checkDictlayerdataDictWords(o[1]); @@ -1111,7 +1071,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { o.source = buildDictlayerdataDictSource(); - o.words = buildUnnamed3155(); + o.words = buildUnnamed3311(); } buildCounterDictlayerdataDict--; return o; @@ -1121,7 +1081,7 @@ buildCounterDictlayerdataDict++; if (buildCounterDictlayerdataDict < 3) { checkDictlayerdataDictSource(o.source); - checkUnnamed3155(o.words); + checkUnnamed3311(o.words); } buildCounterDictlayerdataDict--; } @@ -1179,14 +1139,14 @@ buildCounterDiscoveryclustersClustersBannerWithContentContainer--; } -buildUnnamed3156() { +buildUnnamed3312() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3156(core.List<api.Volume> o) { +checkUnnamed3312(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1203,7 +1163,7 @@ o.title = "foo"; o.totalVolumes = 42; o.uid = "foo"; - o.volumes = buildUnnamed3156(); + o.volumes = buildUnnamed3312(); } buildCounterDiscoveryclustersClusters--; return o; @@ -1218,19 +1178,19 @@ unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.totalVolumes, unittest.equals(42)); unittest.expect(o.uid, unittest.equals('foo')); - checkUnnamed3156(o.volumes); + checkUnnamed3312(o.volumes); } buildCounterDiscoveryclustersClusters--; } -buildUnnamed3157() { +buildUnnamed3313() { var o = new core.List<api.DiscoveryclustersClusters>(); o.add(buildDiscoveryclustersClusters()); o.add(buildDiscoveryclustersClusters()); return o; } -checkUnnamed3157(core.List<api.DiscoveryclustersClusters> o) { +checkUnnamed3313(core.List<api.DiscoveryclustersClusters> o) { unittest.expect(o, unittest.hasLength(2)); checkDiscoveryclustersClusters(o[0]); checkDiscoveryclustersClusters(o[1]); @@ -1241,7 +1201,7 @@ var o = new api.Discoveryclusters(); buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - o.clusters = buildUnnamed3157(); + o.clusters = buildUnnamed3313(); o.kind = "foo"; o.totalClusters = 42; } @@ -1252,7 +1212,7 @@ checkDiscoveryclusters(api.Discoveryclusters o) { buildCounterDiscoveryclusters++; if (buildCounterDiscoveryclusters < 3) { - checkUnnamed3157(o.clusters); + checkUnnamed3313(o.clusters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalClusters, unittest.equals(42)); } @@ -1300,14 +1260,14 @@ buildCounterDownloadAccessRestriction--; } -buildUnnamed3158() { +buildUnnamed3314() { var o = new core.List<api.DownloadAccessRestriction>(); o.add(buildDownloadAccessRestriction()); o.add(buildDownloadAccessRestriction()); return o; } -checkUnnamed3158(core.List<api.DownloadAccessRestriction> o) { +checkUnnamed3314(core.List<api.DownloadAccessRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDownloadAccessRestriction(o[0]); checkDownloadAccessRestriction(o[1]); @@ -1318,7 +1278,7 @@ var o = new api.DownloadAccesses(); buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - o.downloadAccessList = buildUnnamed3158(); + o.downloadAccessList = buildUnnamed3314(); o.kind = "foo"; } buildCounterDownloadAccesses--; @@ -1328,12 +1288,27 @@ checkDownloadAccesses(api.DownloadAccesses o) { buildCounterDownloadAccesses++; if (buildCounterDownloadAccesses < 3) { - checkUnnamed3158(o.downloadAccessList); + checkUnnamed3314(o.downloadAccessList); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDownloadAccesses--; } +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 buildCounterFamilyInfoMembership = 0; buildFamilyInfoMembership() { var o = new api.FamilyInfoMembership(); @@ -1382,6 +1357,41 @@ buildCounterFamilyInfo--; } +core.int buildCounterGeoAnnotationdata = 0; +buildGeoAnnotationdata() { + var o = new api.GeoAnnotationdata(); + buildCounterGeoAnnotationdata++; + if (buildCounterGeoAnnotationdata < 3) { + o.annotationType = "foo"; + o.data = buildGeolayerdata(); + o.encodedData = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.layerId = "foo"; + o.selfLink = "foo"; + o.updated = "foo"; + o.volumeId = "foo"; + } + buildCounterGeoAnnotationdata--; + return o; +} + +checkGeoAnnotationdata(api.GeoAnnotationdata o) { + buildCounterGeoAnnotationdata++; + if (buildCounterGeoAnnotationdata < 3) { + unittest.expect(o.annotationType, unittest.equals('foo')); + checkGeolayerdata(o.data); + unittest.expect(o.encodedData, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.layerId, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + unittest.expect(o.updated, unittest.equals('foo')); + unittest.expect(o.volumeId, unittest.equals('foo')); + } + buildCounterGeoAnnotationdata--; +} + core.int buildCounterGeolayerdataCommon = 0; buildGeolayerdataCommon() { var o = new api.GeolayerdataCommon(); @@ -1409,51 +1419,17 @@ buildCounterGeolayerdataCommon--; } -core.int buildCounterGeolayerdataGeoBoundary = 0; -buildGeolayerdataGeoBoundary() { - var o = new api.GeolayerdataGeoBoundary(); - buildCounterGeolayerdataGeoBoundary++; - if (buildCounterGeolayerdataGeoBoundary < 3) { - o.latitude = 42; - o.longitude = 42; - } - buildCounterGeolayerdataGeoBoundary--; +buildUnnamed3315() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkGeolayerdataGeoBoundary(api.GeolayerdataGeoBoundary o) { - buildCounterGeolayerdataGeoBoundary++; - if (buildCounterGeolayerdataGeoBoundary < 3) { - unittest.expect(o.latitude, unittest.equals(42)); - unittest.expect(o.longitude, unittest.equals(42)); - } - buildCounterGeolayerdataGeoBoundary--; -} - -buildUnnamed3159() { - var o = new core.List<api.GeolayerdataGeoBoundary>(); - o.add(buildGeolayerdataGeoBoundary()); - o.add(buildGeolayerdataGeoBoundary()); - return o; -} - -checkUnnamed3159(core.List<api.GeolayerdataGeoBoundary> o) { +checkUnnamed3315(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkGeolayerdataGeoBoundary(o[0]); - checkGeolayerdataGeoBoundary(o[1]); -} - -buildUnnamed3160() { - var o = new core.List<core.List<api.GeolayerdataGeoBoundary>>(); - o.add(buildUnnamed3159()); - o.add(buildUnnamed3159()); - return o; -} - -checkUnnamed3160(core.List<core.List<api.GeolayerdataGeoBoundary>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3159(o[0]); - checkUnnamed3159(o[1]); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } core.int buildCounterGeolayerdataGeoViewportHi = 0; @@ -1524,7 +1500,7 @@ var o = new api.GeolayerdataGeo(); buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - o.boundary = buildUnnamed3160(); + o.boundary = buildUnnamed3315(); o.cachePolicy = "foo"; o.countryCode = "foo"; o.latitude = 42.0; @@ -1540,7 +1516,7 @@ checkGeolayerdataGeo(api.GeolayerdataGeo o) { buildCounterGeolayerdataGeo++; if (buildCounterGeolayerdataGeo < 3) { - checkUnnamed3160(o.boundary); + checkUnnamed3315(o.boundary); unittest.expect(o.cachePolicy, unittest.equals('foo')); unittest.expect(o.countryCode, unittest.equals('foo')); unittest.expect(o.latitude, unittest.equals(42.0)); @@ -1575,14 +1551,14 @@ buildCounterGeolayerdata--; } -buildUnnamed3161() { +buildUnnamed3316() { var o = new core.List<api.Layersummary>(); o.add(buildLayersummary()); o.add(buildLayersummary()); return o; } -checkUnnamed3161(core.List<api.Layersummary> o) { +checkUnnamed3316(core.List<api.Layersummary> o) { unittest.expect(o, unittest.hasLength(2)); checkLayersummary(o[0]); checkLayersummary(o[1]); @@ -1593,7 +1569,7 @@ var o = new api.Layersummaries(); buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - o.items = buildUnnamed3161(); + o.items = buildUnnamed3316(); o.kind = "foo"; o.totalItems = 42; } @@ -1604,21 +1580,21 @@ checkLayersummaries(api.Layersummaries o) { buildCounterLayersummaries++; if (buildCounterLayersummaries < 3) { - checkUnnamed3161(o.items); + checkUnnamed3316(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } buildCounterLayersummaries--; } -buildUnnamed3162() { +buildUnnamed3317() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3162(core.List<core.String> o) { +checkUnnamed3317(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1630,7 +1606,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { o.annotationCount = 42; - o.annotationTypes = buildUnnamed3162(); + o.annotationTypes = buildUnnamed3317(); o.annotationsDataLink = "foo"; o.annotationsLink = "foo"; o.contentVersion = "foo"; @@ -1639,7 +1615,7 @@ o.kind = "foo"; o.layerId = "foo"; o.selfLink = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.volumeAnnotationsVersion = "foo"; o.volumeId = "foo"; } @@ -1651,7 +1627,7 @@ buildCounterLayersummary++; if (buildCounterLayersummary < 3) { unittest.expect(o.annotationCount, unittest.equals(42)); - checkUnnamed3162(o.annotationTypes); + checkUnnamed3317(o.annotationTypes); unittest.expect(o.annotationsDataLink, unittest.equals('foo')); unittest.expect(o.annotationsLink, unittest.equals('foo')); unittest.expect(o.contentVersion, unittest.equals('foo')); @@ -1660,8 +1636,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); unittest.expect(o.volumeAnnotationsVersion, unittest.equals('foo')); unittest.expect(o.volumeId, unittest.equals('foo')); } @@ -1695,14 +1670,14 @@ buildCounterMetadataItems--; } -buildUnnamed3163() { +buildUnnamed3318() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed3163(core.List<api.MetadataItems> o) { +checkUnnamed3318(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -1713,7 +1688,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.items = buildUnnamed3163(); + o.items = buildUnnamed3318(); o.kind = "foo"; } buildCounterMetadata--; @@ -1723,20 +1698,20 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed3163(o.items); + checkUnnamed3318(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed3164() { +buildUnnamed3319() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3164(core.List<core.String> o) { +checkUnnamed3319(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1748,7 +1723,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { o.body = "foo"; - o.crmExperimentIds = buildUnnamed3164(); + o.crmExperimentIds = buildUnnamed3319(); o.docId = "foo"; o.docType = "foo"; o.dontShowNotification = true; @@ -1772,7 +1747,7 @@ buildCounterNotification++; if (buildCounterNotification < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed3164(o.crmExperimentIds); + checkUnnamed3319(o.crmExperimentIds); unittest.expect(o.docId, unittest.equals('foo')); unittest.expect(o.docType, unittest.equals('foo')); unittest.expect(o.dontShowNotification, unittest.isTrue); @@ -1820,14 +1795,14 @@ buildCounterOffersItemsItems--; } -buildUnnamed3165() { +buildUnnamed3320() { var o = new core.List<api.OffersItemsItems>(); o.add(buildOffersItemsItems()); o.add(buildOffersItemsItems()); return o; } -checkUnnamed3165(core.List<api.OffersItemsItems> o) { +checkUnnamed3320(core.List<api.OffersItemsItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItemsItems(o[0]); checkOffersItemsItems(o[1]); @@ -1841,7 +1816,7 @@ o.artUrl = "foo"; o.gservicesKey = "foo"; o.id = "foo"; - o.items = buildUnnamed3165(); + o.items = buildUnnamed3320(); } buildCounterOffersItems--; return o; @@ -1853,19 +1828,19 @@ unittest.expect(o.artUrl, unittest.equals('foo')); unittest.expect(o.gservicesKey, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3165(o.items); + checkUnnamed3320(o.items); } buildCounterOffersItems--; } -buildUnnamed3166() { +buildUnnamed3321() { var o = new core.List<api.OffersItems>(); o.add(buildOffersItems()); o.add(buildOffersItems()); return o; } -checkUnnamed3166(core.List<api.OffersItems> o) { +checkUnnamed3321(core.List<api.OffersItems> o) { unittest.expect(o, unittest.hasLength(2)); checkOffersItems(o[0]); checkOffersItems(o[1]); @@ -1876,7 +1851,7 @@ var o = new api.Offers(); buildCounterOffers++; if (buildCounterOffers < 3) { - o.items = buildUnnamed3166(); + o.items = buildUnnamed3321(); o.kind = "foo"; } buildCounterOffers--; @@ -1886,7 +1861,7 @@ checkOffers(api.Offers o) { buildCounterOffers++; if (buildCounterOffers < 3) { - checkUnnamed3166(o.items); + checkUnnamed3321(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterOffers--; @@ -1902,7 +1877,7 @@ o.gbTextPosition = "foo"; o.kind = "foo"; o.pdfPosition = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.volumeId = "foo"; } buildCounterReadingPosition--; @@ -1917,34 +1892,33 @@ unittest.expect(o.gbTextPosition, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.pdfPosition, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); unittest.expect(o.volumeId, unittest.equals('foo')); } buildCounterReadingPosition--; } -core.int buildCounterRequestAccess = 0; -buildRequestAccess() { - var o = new api.RequestAccess(); - buildCounterRequestAccess++; - if (buildCounterRequestAccess < 3) { +core.int buildCounterRequestAccessData = 0; +buildRequestAccessData() { + var o = new api.RequestAccessData(); + buildCounterRequestAccessData++; + if (buildCounterRequestAccessData < 3) { o.concurrentAccess = buildConcurrentAccessRestriction(); o.downloadAccess = buildDownloadAccessRestriction(); o.kind = "foo"; } - buildCounterRequestAccess--; + buildCounterRequestAccessData--; return o; } -checkRequestAccess(api.RequestAccess o) { - buildCounterRequestAccess++; - if (buildCounterRequestAccess < 3) { +checkRequestAccessData(api.RequestAccessData o) { + buildCounterRequestAccessData++; + if (buildCounterRequestAccessData < 3) { checkConcurrentAccessRestriction(o.concurrentAccess); checkDownloadAccessRestriction(o.downloadAccess); unittest.expect(o.kind, unittest.equals('foo')); } - buildCounterRequestAccess--; + buildCounterRequestAccessData--; } core.int buildCounterReviewAuthor = 0; @@ -2026,14 +2000,74 @@ buildCounterReview--; } +core.int + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo = 0; +buildSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo() { + var o = new api.SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo(); + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo++; + if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo < + 3) { + o.amountInMicros = 42.0; + o.currencyCode = "foo"; + o.releaseNumber = "foo"; + o.releaseTime = "foo"; + } + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo--; + return o; +} + +checkSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo( + api.SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo o) { + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo++; + if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo < + 3) { + unittest.expect(o.amountInMicros, unittest.equals(42.0)); + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.releaseNumber, unittest.equals('foo')); + unittest.expect(o.releaseTime, unittest.equals('foo')); + } + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo--; +} + +core.int buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo = + 0; +buildSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo() { + var o = new api.SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo(); + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo++; + if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo < + 3) { + o.amountInMicros = 42.0; + o.currencyCode = "foo"; + o.releaseNumber = "foo"; + o.releaseTime = "foo"; + } + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo--; + return o; +} + +checkSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo( + api.SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo o) { + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo++; + if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo < + 3) { + unittest.expect(o.amountInMicros, unittest.equals(42.0)); + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.releaseNumber, unittest.equals('foo')); + unittest.expect(o.releaseTime, unittest.equals('foo')); + } + buildCounterSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo--; +} + core.int buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo = 0; buildSeriesSeriesSeriesSubscriptionReleaseInfo() { var o = new api.SeriesSeriesSeriesSubscriptionReleaseInfo(); buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo++; if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo < 3) { - o.cancellationTimestampUs = "foo"; - o.currentReleaseInfo = buildBooksSubscriptionReleaseInfo(); - o.nextReleaseInfo = buildBooksSubscriptionReleaseInfo(); + o.cancelTime = "foo"; + o.currentReleaseInfo = + buildSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo(); + o.nextReleaseInfo = + buildSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo(); o.seriesSubscriptionType = "foo"; } buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo--; @@ -2044,9 +2078,11 @@ api.SeriesSeriesSeriesSubscriptionReleaseInfo o) { buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo++; if (buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo < 3) { - unittest.expect(o.cancellationTimestampUs, unittest.equals('foo')); - checkBooksSubscriptionReleaseInfo(o.currentReleaseInfo); - checkBooksSubscriptionReleaseInfo(o.nextReleaseInfo); + unittest.expect(o.cancelTime, unittest.equals('foo')); + checkSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo( + o.currentReleaseInfo); + checkSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo( + o.nextReleaseInfo); unittest.expect(o.seriesSubscriptionType, unittest.equals('foo')); } buildCounterSeriesSeriesSeriesSubscriptionReleaseInfo--; @@ -2091,14 +2127,14 @@ buildCounterSeriesSeries--; } -buildUnnamed3167() { +buildUnnamed3322() { var o = new core.List<api.SeriesSeries>(); o.add(buildSeriesSeries()); o.add(buildSeriesSeries()); return o; } -checkUnnamed3167(core.List<api.SeriesSeries> o) { +checkUnnamed3322(core.List<api.SeriesSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkSeriesSeries(o[0]); checkSeriesSeries(o[1]); @@ -2110,7 +2146,7 @@ buildCounterSeries++; if (buildCounterSeries < 3) { o.kind = "foo"; - o.series = buildUnnamed3167(); + o.series = buildUnnamed3322(); } buildCounterSeries--; return o; @@ -2120,19 +2156,19 @@ buildCounterSeries++; if (buildCounterSeries < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3167(o.series); + checkUnnamed3322(o.series); } buildCounterSeries--; } -buildUnnamed3168() { +buildUnnamed3323() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3168(core.List<api.Volume> o) { +checkUnnamed3323(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -2144,7 +2180,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { o.kind = "foo"; - o.member = buildUnnamed3168(); + o.member = buildUnnamed3323(); o.nextPageToken = "foo"; } buildCounterSeriesmembership--; @@ -2155,7 +2191,7 @@ buildCounterSeriesmembership++; if (buildCounterSeriesmembership < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3168(o.member); + checkUnnamed3323(o.member); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSeriesmembership--; @@ -2444,14 +2480,14 @@ buildCounterVolumeLayerInfoLayers--; } -buildUnnamed3169() { +buildUnnamed3324() { var o = new core.List<api.VolumeLayerInfoLayers>(); o.add(buildVolumeLayerInfoLayers()); o.add(buildVolumeLayerInfoLayers()); return o; } -checkUnnamed3169(core.List<api.VolumeLayerInfoLayers> o) { +checkUnnamed3324(core.List<api.VolumeLayerInfoLayers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeLayerInfoLayers(o[0]); checkVolumeLayerInfoLayers(o[1]); @@ -2462,7 +2498,7 @@ var o = new api.VolumeLayerInfo(); buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - o.layers = buildUnnamed3169(); + o.layers = buildUnnamed3324(); } buildCounterVolumeLayerInfo--; return o; @@ -2471,7 +2507,7 @@ checkVolumeLayerInfo(api.VolumeLayerInfo o) { buildCounterVolumeLayerInfo++; if (buildCounterVolumeLayerInfo < 3) { - checkUnnamed3169(o.layers); + checkUnnamed3324(o.layers); } buildCounterVolumeLayerInfo--; } @@ -2607,14 +2643,14 @@ buildCounterVolumeSaleInfoOffers--; } -buildUnnamed3170() { +buildUnnamed3325() { var o = new core.List<api.VolumeSaleInfoOffers>(); o.add(buildVolumeSaleInfoOffers()); o.add(buildVolumeSaleInfoOffers()); return o; } -checkUnnamed3170(core.List<api.VolumeSaleInfoOffers> o) { +checkUnnamed3325(core.List<api.VolumeSaleInfoOffers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeSaleInfoOffers(o[0]); checkVolumeSaleInfoOffers(o[1]); @@ -2650,8 +2686,8 @@ o.country = "foo"; o.isEbook = true; o.listPrice = buildVolumeSaleInfoListPrice(); - o.offers = buildUnnamed3170(); - o.onSaleDate = core.DateTime.parse("2002-02-27T14:01:02"); + o.offers = buildUnnamed3325(); + o.onSaleDate = "foo"; o.retailPrice = buildVolumeSaleInfoRetailPrice(); o.saleability = "foo"; } @@ -2666,9 +2702,8 @@ unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.isEbook, unittest.isTrue); checkVolumeSaleInfoListPrice(o.listPrice); - checkUnnamed3170(o.offers); - unittest.expect(o.onSaleDate, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + checkUnnamed3325(o.offers); + unittest.expect(o.onSaleDate, unittest.equals('foo')); checkVolumeSaleInfoRetailPrice(o.retailPrice); unittest.expect(o.saleability, unittest.equals('foo')); } @@ -2702,7 +2737,7 @@ o.allowedCharacterCount = 42; o.limitType = "foo"; o.remainingCharacterCount = 42; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; } buildCounterVolumeUserInfoCopy--; return o; @@ -2714,8 +2749,7 @@ unittest.expect(o.allowedCharacterCount, unittest.equals(42)); unittest.expect(o.limitType, unittest.equals('foo')); unittest.expect(o.remainingCharacterCount, unittest.equals(42)); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); } buildCounterVolumeUserInfoCopy--; } @@ -2789,7 +2823,7 @@ var o = new api.VolumeUserInfo(); buildCounterVolumeUserInfo++; if (buildCounterVolumeUserInfo < 3) { - o.acquiredTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.acquiredTime = "foo"; o.acquisitionType = 42; o.copy = buildVolumeUserInfoCopy(); o.entitlementType = 42; @@ -2806,7 +2840,7 @@ o.rentalPeriod = buildVolumeUserInfoRentalPeriod(); o.rentalState = "foo"; o.review = buildReview(); - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.userUploadedVolumeInfo = buildVolumeUserInfoUserUploadedVolumeInfo(); } buildCounterVolumeUserInfo--; @@ -2816,8 +2850,7 @@ checkVolumeUserInfo(api.VolumeUserInfo o) { buildCounterVolumeUserInfo++; if (buildCounterVolumeUserInfo < 3) { - unittest.expect(o.acquiredTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.acquiredTime, unittest.equals('foo')); unittest.expect(o.acquisitionType, unittest.equals(42)); checkVolumeUserInfoCopy(o.copy); unittest.expect(o.entitlementType, unittest.equals(42)); @@ -2834,34 +2867,33 @@ checkVolumeUserInfoRentalPeriod(o.rentalPeriod); unittest.expect(o.rentalState, unittest.equals('foo')); checkReview(o.review); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); checkVolumeUserInfoUserUploadedVolumeInfo(o.userUploadedVolumeInfo); } buildCounterVolumeUserInfo--; } -buildUnnamed3171() { +buildUnnamed3326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3171(core.List<core.String> o) { +checkUnnamed3326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3172() { +buildUnnamed3327() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3172(core.List<core.String> o) { +checkUnnamed3327(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2941,14 +2973,14 @@ buildCounterVolumeVolumeInfoIndustryIdentifiers--; } -buildUnnamed3173() { +buildUnnamed3328() { var o = new core.List<api.VolumeVolumeInfoIndustryIdentifiers>(); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); o.add(buildVolumeVolumeInfoIndustryIdentifiers()); return o; } -checkUnnamed3173(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { +checkUnnamed3328(core.List<api.VolumeVolumeInfoIndustryIdentifiers> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeVolumeInfoIndustryIdentifiers(o[0]); checkVolumeVolumeInfoIndustryIdentifiers(o[1]); @@ -2980,22 +3012,43 @@ buildCounterVolumeVolumeInfoPanelizationSummary--; } +core.int buildCounterVolumeVolumeInfoReadingModes = 0; +buildVolumeVolumeInfoReadingModes() { + var o = new api.VolumeVolumeInfoReadingModes(); + buildCounterVolumeVolumeInfoReadingModes++; + if (buildCounterVolumeVolumeInfoReadingModes < 3) { + o.image = true; + o.text = true; + } + buildCounterVolumeVolumeInfoReadingModes--; + return o; +} + +checkVolumeVolumeInfoReadingModes(api.VolumeVolumeInfoReadingModes o) { + buildCounterVolumeVolumeInfoReadingModes++; + if (buildCounterVolumeVolumeInfoReadingModes < 3) { + unittest.expect(o.image, unittest.isTrue); + unittest.expect(o.text, unittest.isTrue); + } + buildCounterVolumeVolumeInfoReadingModes--; +} + core.int buildCounterVolumeVolumeInfo = 0; buildVolumeVolumeInfo() { var o = new api.VolumeVolumeInfo(); buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { o.allowAnonLogging = true; - o.authors = buildUnnamed3171(); + o.authors = buildUnnamed3326(); o.averageRating = 42.0; o.canonicalVolumeLink = "foo"; - o.categories = buildUnnamed3172(); + o.categories = buildUnnamed3327(); o.comicsContent = true; o.contentVersion = "foo"; o.description = "foo"; o.dimensions = buildVolumeVolumeInfoDimensions(); o.imageLinks = buildVolumeVolumeInfoImageLinks(); - o.industryIdentifiers = buildUnnamed3173(); + o.industryIdentifiers = buildUnnamed3328(); o.infoLink = "foo"; o.language = "foo"; o.mainCategory = "foo"; @@ -3008,11 +3061,7 @@ o.publishedDate = "foo"; o.publisher = "foo"; o.ratingsCount = 42; - o.readingModes = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo' - }; + o.readingModes = buildVolumeVolumeInfoReadingModes(); o.samplePageCount = 42; o.seriesInfo = buildVolumeseriesinfo(); o.subtitle = "foo"; @@ -3026,16 +3075,16 @@ buildCounterVolumeVolumeInfo++; if (buildCounterVolumeVolumeInfo < 3) { unittest.expect(o.allowAnonLogging, unittest.isTrue); - checkUnnamed3171(o.authors); + checkUnnamed3326(o.authors); unittest.expect(o.averageRating, unittest.equals(42.0)); unittest.expect(o.canonicalVolumeLink, unittest.equals('foo')); - checkUnnamed3172(o.categories); + checkUnnamed3327(o.categories); unittest.expect(o.comicsContent, unittest.isTrue); unittest.expect(o.contentVersion, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkVolumeVolumeInfoDimensions(o.dimensions); checkVolumeVolumeInfoImageLinks(o.imageLinks); - checkUnnamed3173(o.industryIdentifiers); + checkUnnamed3328(o.industryIdentifiers); unittest.expect(o.infoLink, unittest.equals('foo')); unittest.expect(o.language, unittest.equals('foo')); unittest.expect(o.mainCategory, unittest.equals('foo')); @@ -3048,11 +3097,7 @@ unittest.expect(o.publishedDate, unittest.equals('foo')); unittest.expect(o.publisher, unittest.equals('foo')); unittest.expect(o.ratingsCount, unittest.equals(42)); - var casted2 = (o.readingModes) 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')); + checkVolumeVolumeInfoReadingModes(o.readingModes); unittest.expect(o.samplePageCount, unittest.equals(42)); checkVolumeseriesinfo(o.seriesInfo); unittest.expect(o.subtitle, unittest.equals('foo')); @@ -3100,14 +3145,14 @@ buildCounterVolume--; } -buildUnnamed3174() { +buildUnnamed3329() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3174(core.List<api.Volume> o) { +checkUnnamed3329(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3118,7 +3163,7 @@ var o = new api.Volume2(); buildCounterVolume2++; if (buildCounterVolume2 < 3) { - o.items = buildUnnamed3174(); + o.items = buildUnnamed3329(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3129,7 +3174,7 @@ checkVolume2(api.Volume2 o) { buildCounterVolume2++; if (buildCounterVolume2 < 3) { - checkUnnamed3174(o.items); + checkUnnamed3329(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3161,14 +3206,14 @@ buildCounterVolumeannotationContentRanges--; } -buildUnnamed3175() { +buildUnnamed3330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3175(core.List<core.String> o) { +checkUnnamed3330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3188,10 +3233,10 @@ o.id = "foo"; o.kind = "foo"; o.layerId = "foo"; - o.pageIds = buildUnnamed3175(); + o.pageIds = buildUnnamed3330(); o.selectedText = "foo"; o.selfLink = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; o.volumeId = "foo"; } buildCounterVolumeannotation--; @@ -3210,24 +3255,23 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.layerId, unittest.equals('foo')); - checkUnnamed3175(o.pageIds); + checkUnnamed3330(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"))); + unittest.expect(o.updated, unittest.equals('foo')); unittest.expect(o.volumeId, unittest.equals('foo')); } buildCounterVolumeannotation--; } -buildUnnamed3176() { +buildUnnamed3331() { var o = new core.List<api.Volumeannotation>(); o.add(buildVolumeannotation()); o.add(buildVolumeannotation()); return o; } -checkUnnamed3176(core.List<api.Volumeannotation> o) { +checkUnnamed3331(core.List<api.Volumeannotation> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeannotation(o[0]); checkVolumeannotation(o[1]); @@ -3238,7 +3282,7 @@ var o = new api.Volumeannotations(); buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - o.items = buildUnnamed3176(); + o.items = buildUnnamed3331(); o.kind = "foo"; o.nextPageToken = "foo"; o.totalItems = 42; @@ -3251,7 +3295,7 @@ checkVolumeannotations(api.Volumeannotations o) { buildCounterVolumeannotations++; if (buildCounterVolumeannotations < 3) { - checkUnnamed3176(o.items); + checkUnnamed3331(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -3260,14 +3304,14 @@ buildCounterVolumeannotations--; } -buildUnnamed3177() { +buildUnnamed3332() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed3177(core.List<api.Volume> o) { +checkUnnamed3332(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -3278,7 +3322,7 @@ var o = new api.Volumes(); buildCounterVolumes++; if (buildCounterVolumes < 3) { - o.items = buildUnnamed3177(); + o.items = buildUnnamed3332(); o.kind = "foo"; o.totalItems = 42; } @@ -3289,7 +3333,7 @@ checkVolumes(api.Volumes o) { buildCounterVolumes++; if (buildCounterVolumes < 3) { - checkUnnamed3177(o.items); + checkUnnamed3332(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); } @@ -3318,14 +3362,14 @@ buildCounterVolumeseriesinfoVolumeSeriesIssue--; } -buildUnnamed3178() { +buildUnnamed3333() { var o = new core.List<api.VolumeseriesinfoVolumeSeriesIssue>(); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); o.add(buildVolumeseriesinfoVolumeSeriesIssue()); return o; } -checkUnnamed3178(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { +checkUnnamed3333(core.List<api.VolumeseriesinfoVolumeSeriesIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeriesIssue(o[0]); checkVolumeseriesinfoVolumeSeriesIssue(o[1]); @@ -3336,7 +3380,7 @@ var o = new api.VolumeseriesinfoVolumeSeries(); buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - o.issue = buildUnnamed3178(); + o.issue = buildUnnamed3333(); o.orderNumber = 42; o.seriesBookType = "foo"; o.seriesId = "foo"; @@ -3348,7 +3392,7 @@ checkVolumeseriesinfoVolumeSeries(api.VolumeseriesinfoVolumeSeries o) { buildCounterVolumeseriesinfoVolumeSeries++; if (buildCounterVolumeseriesinfoVolumeSeries < 3) { - checkUnnamed3178(o.issue); + checkUnnamed3333(o.issue); unittest.expect(o.orderNumber, unittest.equals(42)); unittest.expect(o.seriesBookType, unittest.equals('foo')); unittest.expect(o.seriesId, unittest.equals('foo')); @@ -3356,14 +3400,14 @@ buildCounterVolumeseriesinfoVolumeSeries--; } -buildUnnamed3179() { +buildUnnamed3334() { var o = new core.List<api.VolumeseriesinfoVolumeSeries>(); o.add(buildVolumeseriesinfoVolumeSeries()); o.add(buildVolumeseriesinfoVolumeSeries()); return o; } -checkUnnamed3179(core.List<api.VolumeseriesinfoVolumeSeries> o) { +checkUnnamed3334(core.List<api.VolumeseriesinfoVolumeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeseriesinfoVolumeSeries(o[0]); checkVolumeseriesinfoVolumeSeries(o[1]); @@ -3377,7 +3421,7 @@ o.bookDisplayNumber = "foo"; o.kind = "foo"; o.shortSeriesBookTitle = "foo"; - o.volumeSeries = buildUnnamed3179(); + o.volumeSeries = buildUnnamed3334(); } buildCounterVolumeseriesinfo--; return o; @@ -3389,162 +3433,162 @@ unittest.expect(o.bookDisplayNumber, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.shortSeriesBookTitle, unittest.equals('foo')); - checkUnnamed3179(o.volumeSeries); + checkUnnamed3334(o.volumeSeries); } buildCounterVolumeseriesinfo--; } -buildUnnamed3180() { +buildUnnamed3335() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3180(core.List<core.String> o) { +checkUnnamed3335(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3181() { +buildUnnamed3336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3181(core.List<core.String> o) { +checkUnnamed3336(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3182() { +buildUnnamed3337() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3182(core.List<core.String> o) { +checkUnnamed3337(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3183() { +buildUnnamed3338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3183(core.List<core.String> o) { +checkUnnamed3338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3184() { +buildUnnamed3339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3184(core.List<core.String> o) { +checkUnnamed3339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3185() { +buildUnnamed3340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3185(core.List<core.String> o) { +checkUnnamed3340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3186() { +buildUnnamed3341() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3186(core.List<core.String> o) { +checkUnnamed3341(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3187() { +buildUnnamed3342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3187(core.List<core.String> o) { +checkUnnamed3342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3188() { +buildUnnamed3343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3188(core.List<core.String> o) { +checkUnnamed3343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3189() { +buildUnnamed3344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3189(core.List<core.String> o) { +checkUnnamed3344(core.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() { +buildUnnamed3345() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3190(core.List<core.String> o) { +checkUnnamed3345(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3191() { +buildUnnamed3346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3191(core.List<core.String> o) { +checkUnnamed3346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3583,14 +3627,6 @@ }); }); - unittest.group("obj-schema-Annotationdata", () { - unittest.test("to-json--from-json", () { - var o = buildAnnotationdata(); - var od = new api.Annotationdata.fromJson(o.toJson()); - checkAnnotationdata(od); - }); - }); - unittest.group("obj-schema-Annotations", () { unittest.test("to-json--from-json", () { var o = buildAnnotations(); @@ -3639,14 +3675,6 @@ }); }); - unittest.group("obj-schema-BooksSubscriptionReleaseInfo", () { - unittest.test("to-json--from-json", () { - var o = buildBooksSubscriptionReleaseInfo(); - var od = new api.BooksSubscriptionReleaseInfo.fromJson(o.toJson()); - checkBooksSubscriptionReleaseInfo(od); - }); - }); - unittest.group("obj-schema-BooksVolumesRecommendedRateResponse", () { unittest.test("to-json--from-json", () { var o = buildBooksVolumesRecommendedRateResponse(); @@ -3695,6 +3723,14 @@ }); }); + unittest.group("obj-schema-DictionaryAnnotationdata", () { + unittest.test("to-json--from-json", () { + var o = buildDictionaryAnnotationdata(); + var od = new api.DictionaryAnnotationdata.fromJson(o.toJson()); + checkDictionaryAnnotationdata(od); + }); + }); + unittest.group("obj-schema-DictlayerdataCommon", () { unittest.test("to-json--from-json", () { var o = buildDictlayerdataCommon(); @@ -3893,6 +3929,14 @@ }); }); + 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-FamilyInfoMembership", () { unittest.test("to-json--from-json", () { var o = buildFamilyInfoMembership(); @@ -3909,6 +3953,14 @@ }); }); + unittest.group("obj-schema-GeoAnnotationdata", () { + unittest.test("to-json--from-json", () { + var o = buildGeoAnnotationdata(); + var od = new api.GeoAnnotationdata.fromJson(o.toJson()); + checkGeoAnnotationdata(od); + }); + }); + unittest.group("obj-schema-GeolayerdataCommon", () { unittest.test("to-json--from-json", () { var o = buildGeolayerdataCommon(); @@ -3917,14 +3969,6 @@ }); }); - unittest.group("obj-schema-GeolayerdataGeoBoundary", () { - unittest.test("to-json--from-json", () { - var o = buildGeolayerdataGeoBoundary(); - var od = new api.GeolayerdataGeoBoundary.fromJson(o.toJson()); - checkGeolayerdataGeoBoundary(od); - }); - }); - unittest.group("obj-schema-GeolayerdataGeoViewportHi", () { unittest.test("to-json--from-json", () { var o = buildGeolayerdataGeoViewportHi(); @@ -4037,11 +4081,11 @@ }); }); - unittest.group("obj-schema-RequestAccess", () { + unittest.group("obj-schema-RequestAccessData", () { unittest.test("to-json--from-json", () { - var o = buildRequestAccess(); - var od = new api.RequestAccess.fromJson(o.toJson()); - checkRequestAccess(od); + var o = buildRequestAccessData(); + var od = new api.RequestAccessData.fromJson(o.toJson()); + checkRequestAccessData(od); }); }); @@ -4069,6 +4113,31 @@ }); }); + unittest.group( + "obj-schema-SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo", + () { + unittest.test("to-json--from-json", () { + var o = + buildSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo(); + var od = new api + .SeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo.fromJson( + o.toJson()); + checkSeriesSeriesSeriesSubscriptionReleaseInfoCurrentReleaseInfo(od); + }); + }); + + unittest.group( + "obj-schema-SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo", + () { + unittest.test("to-json--from-json", () { + var o = buildSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo(); + var od = new api + .SeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo.fromJson( + o.toJson()); + checkSeriesSeriesSeriesSubscriptionReleaseInfoNextReleaseInfo(od); + }); + }); + unittest.group("obj-schema-SeriesSeriesSeriesSubscriptionReleaseInfo", () { unittest.test("to-json--from-json", () { var o = buildSeriesSeriesSeriesSubscriptionReleaseInfo(); @@ -4355,6 +4424,14 @@ }); }); + unittest.group("obj-schema-VolumeVolumeInfoReadingModes", () { + unittest.test("to-json--from-json", () { + var o = buildVolumeVolumeInfoReadingModes(); + var od = new api.VolumeVolumeInfoReadingModes.fromJson(o.toJson()); + checkVolumeVolumeInfoReadingModes(od); + }); + }); + unittest.group("obj-schema-VolumeVolumeInfo", () { unittest.test("to-json--from-json", () { var o = buildVolumeVolumeInfo(); @@ -4451,12 +4528,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("books/v1/users/")); + pathOffset += 15; index = path.indexOf("/bookshelves/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4518,12 +4592,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("books/v1/users/")); + pathOffset += 15; index = path.indexOf("/bookshelves", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4576,10 +4647,10 @@ new api.BooksApi(mock).bookshelves.volumes; var arg_userId = "foo"; var arg_shelf = "foo"; - var arg_maxResults = 42; + var arg_startIndex = 42; var arg_showPreorders = true; var arg_source = "foo"; - var arg_startIndex = 42; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4589,12 +4660,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("users/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("books/v1/users/")); + pathOffset += 15; index = path.indexOf("/bookshelves/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4632,13 +4700,13 @@ 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["showPreorders"].first, unittest.equals("$arg_showPreorders")); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(core.int.parse(queryMap["startIndex"].first), - unittest.equals(arg_startIndex)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4649,10 +4717,10 @@ }), true); res .list(arg_userId, arg_shelf, - maxResults: arg_maxResults, + startIndex: arg_startIndex, showPreorders: arg_showPreorders, source: arg_source, - startIndex: arg_startIndex, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolumes(response); @@ -4666,8 +4734,8 @@ api.CloudloadingResourceApi res = new api.BooksApi(mock).cloudloading; var arg_driveDocumentId = "foo"; var arg_mimeType = "foo"; - var arg_name = "foo"; var arg_uploadClientToken = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4677,12 +4745,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 20), - unittest.equals("cloudloading/addBook")); - pathOffset += 20; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("books/v1/cloudloading/addBook")); + pathOffset += 29; var query = (req.url).query; var queryOffset = 0; @@ -4706,9 +4771,9 @@ unittest.equals(arg_driveDocumentId)); unittest.expect( queryMap["mime_type"].first, unittest.equals(arg_mimeType)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["upload_client_token"].first, unittest.equals(arg_uploadClientToken)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4721,8 +4786,8 @@ .addBook( driveDocumentId: arg_driveDocumentId, mimeType: arg_mimeType, - name: arg_name, uploadClientToken: arg_uploadClientToken, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBooksCloudloadingResource(response); @@ -4742,12 +4807,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 23), - unittest.equals("cloudloading/deleteBook")); - pathOffset += 23; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("books/v1/cloudloading/deleteBook")); + pathOffset += 32; var query = (req.url).query; var queryOffset = 0; @@ -4774,12 +4836,14 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .deleteBook(arg_volumeId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .deleteBook(volumeId: arg_volumeId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--updateBook", () { @@ -4798,12 +4862,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 23), - unittest.equals("cloudloading/updateBook")); - pathOffset += 23; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("books/v1/cloudloading/updateBook")); + pathOffset += 32; var query = (req.url).query; var queryOffset = 0; @@ -4853,12 +4914,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 30), - unittest.equals("dictionary/listOfflineMetadata")); - pathOffset += 30; + unittest.expect(path.substring(pathOffset, pathOffset + 39), + unittest.equals("books/v1/dictionary/listOfflineMetadata")); + pathOffset += 39; var query = (req.url).query; var queryOffset = 0; @@ -4889,7 +4947,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .listOfflineMetadata(arg_cpksver, $fields: arg_$fields) + .listOfflineMetadata(cpksver: arg_cpksver, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMetadata(response); }))); @@ -4910,12 +4968,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("familysharing/getFamilyInfo")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("books/v1/familysharing/getFamilyInfo")); + pathOffset += 36; var query = (req.url).query; var queryOffset = 0; @@ -4954,9 +5009,9 @@ unittest.test("method--share", () { var mock = new HttpServerMock(); api.FamilysharingResourceApi res = new api.BooksApi(mock).familysharing; - var arg_docId = "foo"; var arg_source = "foo"; var arg_volumeId = "foo"; + var arg_docId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4966,12 +5021,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("familysharing/share")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("books/v1/familysharing/share")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -4991,33 +5043,35 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["docId"].first, unittest.equals(arg_docId)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + unittest.expect(queryMap["docId"].first, unittest.equals(arg_docId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .share( - docId: arg_docId, source: arg_source, volumeId: arg_volumeId, + docId: arg_docId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--unshare", () { var mock = new HttpServerMock(); api.FamilysharingResourceApi res = new api.BooksApi(mock).familysharing; + var arg_volumeId = "foo"; var arg_docId = "foo"; var arg_source = "foo"; - var arg_volumeId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5027,12 +5081,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("familysharing/unshare")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("books/v1/familysharing/unshare")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -5052,25 +5103,27 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["docId"].first, unittest.equals(arg_docId)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + unittest.expect(queryMap["docId"].first, unittest.equals(arg_docId)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .unshare( + volumeId: arg_volumeId, docId: arg_docId, source: arg_source, - volumeId: arg_volumeId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); }); @@ -5091,12 +5144,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layersummary/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5153,9 +5203,9 @@ var mock = new HttpServerMock(); api.LayersResourceApi res = new api.BooksApi(mock).layers; var arg_volumeId = "foo"; + var arg_pageToken = "foo"; var arg_contentVersion = "foo"; var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_source = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5166,12 +5216,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layersummary", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5200,12 +5247,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_contentVersion)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -5217,9 +5264,9 @@ }), true); res .list(arg_volumeId, + pageToken: arg_pageToken, contentVersion: arg_contentVersion, maxResults: arg_maxResults, - pageToken: arg_pageToken, source: arg_source, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -5237,12 +5284,12 @@ var arg_layerId = "foo"; var arg_annotationDataId = "foo"; var arg_contentVersion = "foo"; - var arg_allowWebDefinitions = true; - var arg_h = 42; var arg_locale = "foo"; + var arg_h = 42; + var arg_w = 42; + var arg_allowWebDefinitions = true; var arg_scale = 42; var arg_source = "foo"; - var arg_w = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5252,12 +5299,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layers/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5300,36 +5344,36 @@ } unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_contentVersion)); - unittest.expect(queryMap["allowWebDefinitions"].first, - unittest.equals("$arg_allowWebDefinitions")); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect( core.int.parse(queryMap["h"].first), unittest.equals(arg_h)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect( + core.int.parse(queryMap["w"].first), unittest.equals(arg_w)); + unittest.expect(queryMap["allowWebDefinitions"].first, + unittest.equals("$arg_allowWebDefinitions")); unittest.expect(core.int.parse(queryMap["scale"].first), unittest.equals(arg_scale)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect( - core.int.parse(queryMap["w"].first), unittest.equals(arg_w)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildAnnotationdata()); + var resp = convert.json.encode(buildDictionaryAnnotationdata()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .get(arg_volumeId, arg_layerId, arg_annotationDataId, - arg_contentVersion, - allowWebDefinitions: arg_allowWebDefinitions, - h: arg_h, + contentVersion: arg_contentVersion, locale: arg_locale, + h: arg_h, + w: arg_w, + allowWebDefinitions: arg_allowWebDefinitions, scale: arg_scale, source: arg_source, - w: arg_w, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkAnnotationdata(response); + checkDictionaryAnnotationdata(response); }))); }); @@ -5339,17 +5383,17 @@ new api.BooksApi(mock).layers.annotationData; var arg_volumeId = "foo"; var arg_layerId = "foo"; - var arg_contentVersion = "foo"; - var arg_annotationDataId = buildUnnamed3180(); - var arg_h = 42; - var arg_locale = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_scale = 42; - var arg_source = "foo"; + var arg_pageToken = "foo"; + var arg_locale = "foo"; + var arg_w = 42; + var arg_h = 42; var arg_updatedMax = "foo"; var arg_updatedMin = "foo"; - var arg_w = 42; + var arg_contentVersion = "foo"; + var arg_maxResults = 42; + var arg_annotationDataId = buildUnnamed3335(); + var arg_source = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5359,12 +5403,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layers/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5402,26 +5443,26 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["contentVersion"].first, - unittest.equals(arg_contentVersion)); - unittest.expect(queryMap["annotationDataId"], - unittest.equals(arg_annotationDataId)); - unittest.expect( - core.int.parse(queryMap["h"].first), unittest.equals(arg_h)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["scale"].first), unittest.equals(arg_scale)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect( + core.int.parse(queryMap["w"].first), unittest.equals(arg_w)); + unittest.expect( + core.int.parse(queryMap["h"].first), unittest.equals(arg_h)); unittest.expect( queryMap["updatedMax"].first, unittest.equals(arg_updatedMax)); unittest.expect( queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); - unittest.expect( - core.int.parse(queryMap["w"].first), unittest.equals(arg_w)); + unittest.expect(queryMap["contentVersion"].first, + unittest.equals(arg_contentVersion)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["annotationDataId"], + unittest.equals(arg_annotationDataId)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5431,17 +5472,18 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_volumeId, arg_layerId, arg_contentVersion, - annotationDataId: arg_annotationDataId, - h: arg_h, - locale: arg_locale, - maxResults: arg_maxResults, - pageToken: arg_pageToken, + .list(arg_volumeId, arg_layerId, scale: arg_scale, - source: arg_source, + pageToken: arg_pageToken, + locale: arg_locale, + w: arg_w, + h: arg_h, updatedMax: arg_updatedMax, updatedMin: arg_updatedMin, - w: arg_w, + contentVersion: arg_contentVersion, + maxResults: arg_maxResults, + annotationDataId: arg_annotationDataId, + source: arg_source, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAnnotationsdata(response); @@ -5468,12 +5510,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layers/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5538,18 +5577,18 @@ new api.BooksApi(mock).layers.volumeAnnotations; var arg_volumeId = "foo"; var arg_layerId = "foo"; - var arg_contentVersion = "foo"; - var arg_endOffset = "foo"; - var arg_endPosition = "foo"; var arg_locale = "foo"; var arg_maxResults = 42; + var arg_updatedMax = "foo"; var arg_pageToken = "foo"; + var arg_contentVersion = "foo"; + var arg_endPosition = "foo"; + var arg_updatedMin = "foo"; var arg_showDeleted = true; var arg_source = "foo"; var arg_startOffset = "foo"; + var arg_endOffset = "foo"; var arg_startPosition = "foo"; - var arg_updatedMax = "foo"; - var arg_updatedMin = "foo"; var arg_volumeAnnotationsVersion = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5560,12 +5599,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/layers/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5597,28 +5633,28 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["contentVersion"].first, - unittest.equals(arg_contentVersion)); - unittest.expect( - queryMap["endOffset"].first, unittest.equals(arg_endOffset)); - unittest.expect( - queryMap["endPosition"].first, unittest.equals(arg_endPosition)); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( + queryMap["updatedMax"].first, unittest.equals(arg_updatedMax)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["contentVersion"].first, + unittest.equals(arg_contentVersion)); + unittest.expect( + queryMap["endPosition"].first, unittest.equals(arg_endPosition)); + unittest.expect( + queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["startOffset"].first, unittest.equals(arg_startOffset)); + unittest.expect( + queryMap["endOffset"].first, unittest.equals(arg_endOffset)); unittest.expect(queryMap["startPosition"].first, unittest.equals(arg_startPosition)); - unittest.expect( - queryMap["updatedMax"].first, unittest.equals(arg_updatedMax)); - unittest.expect( - queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); unittest.expect(queryMap["volumeAnnotationsVersion"].first, unittest.equals(arg_volumeAnnotationsVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -5630,18 +5666,19 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_volumeId, arg_layerId, arg_contentVersion, - endOffset: arg_endOffset, - endPosition: arg_endPosition, + .list(arg_volumeId, arg_layerId, locale: arg_locale, maxResults: arg_maxResults, + updatedMax: arg_updatedMax, pageToken: arg_pageToken, + contentVersion: arg_contentVersion, + endPosition: arg_endPosition, + updatedMin: arg_updatedMin, showDeleted: arg_showDeleted, source: arg_source, startOffset: arg_startOffset, + endOffset: arg_endOffset, startPosition: arg_startPosition, - updatedMax: arg_updatedMax, - updatedMin: arg_updatedMin, volumeAnnotationsVersion: arg_volumeAnnotationsVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -5654,6 +5691,7 @@ unittest.test("method--getUserSettings", () { var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; + var arg_country = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5663,12 +5701,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 24), - unittest.equals("myconfig/getUserSettings")); - pathOffset += 24; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("books/v1/myconfig/getUserSettings")); + pathOffset += 33; var query = (req.url).query; var queryOffset = 0; @@ -5688,6 +5723,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["country"].first, unittest.equals(arg_country)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5697,7 +5734,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getUserSettings($fields: arg_$fields) + .getUserSettings(country: arg_country, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUsersettings(response); }))); @@ -5706,10 +5743,10 @@ unittest.test("method--releaseDownloadAccess", () { var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_volumeIds = buildUnnamed3181(); - var arg_cpksver = "foo"; var arg_locale = "foo"; var arg_source = "foo"; + var arg_volumeIds = buildUnnamed3336(); + var arg_cpksver = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5719,12 +5756,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 30), - unittest.equals("myconfig/releaseDownloadAccess")); - pathOffset += 30; + unittest.expect(path.substring(pathOffset, pathOffset + 39), + unittest.equals("books/v1/myconfig/releaseDownloadAccess")); + pathOffset += 39; var query = (req.url).query; var queryOffset = 0; @@ -5744,11 +5778,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds)); unittest.expect( queryMap["cpksver"].first, unittest.equals(arg_cpksver)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5758,8 +5792,12 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .releaseDownloadAccess(arg_volumeIds, arg_cpksver, - locale: arg_locale, source: arg_source, $fields: arg_$fields) + .releaseDownloadAccess( + locale: arg_locale, + source: arg_source, + volumeIds: arg_volumeIds, + cpksver: arg_cpksver, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDownloadAccesses(response); }))); @@ -5768,12 +5806,12 @@ unittest.test("method--requestAccess", () { var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_source = "foo"; - var arg_volumeId = "foo"; - var arg_nonce = "foo"; - var arg_cpksver = "foo"; var arg_licenseTypes = "foo"; var arg_locale = "foo"; + var arg_source = "foo"; + var arg_nonce = "foo"; + var arg_cpksver = "foo"; + var arg_volumeId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5783,12 +5821,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("myconfig/requestAccess")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/myconfig/requestAccess")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -5808,44 +5843,48 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( - queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + queryMap["licenseTypes"].first, unittest.equals(arg_licenseTypes)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["nonce"].first, unittest.equals(arg_nonce)); unittest.expect( queryMap["cpksver"].first, unittest.equals(arg_cpksver)); unittest.expect( - queryMap["licenseTypes"].first, unittest.equals(arg_licenseTypes)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + queryMap["volumeId"].first, unittest.equals(arg_volumeId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildRequestAccess()); + var resp = convert.json.encode(buildRequestAccessData()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .requestAccess(arg_source, arg_volumeId, arg_nonce, arg_cpksver, + .requestAccess( licenseTypes: arg_licenseTypes, locale: arg_locale, + source: arg_source, + nonce: arg_nonce, + cpksver: arg_cpksver, + volumeId: arg_volumeId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkRequestAccess(response); + checkRequestAccessData(response); }))); }); unittest.test("method--syncVolumeLicenses", () { var mock = new HttpServerMock(); api.MyconfigResourceApi res = new api.BooksApi(mock).myconfig; - var arg_source = "foo"; - var arg_nonce = "foo"; var arg_cpksver = "foo"; - var arg_features = buildUnnamed3182(); - var arg_includeNonComicsSeries = true; - var arg_locale = "foo"; + var arg_source = "foo"; + var arg_volumeIds = buildUnnamed3337(); + var arg_nonce = "foo"; var arg_showPreorders = true; - var arg_volumeIds = buildUnnamed3183(); + var arg_locale = "foo"; + var arg_includeNonComicsSeries = true; + var arg_features = buildUnnamed3338(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5855,12 +5894,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("myconfig/syncVolumeLicenses")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("books/v1/myconfig/syncVolumeLicenses")); + pathOffset += 36; var query = (req.url).query; var queryOffset = 0; @@ -5880,17 +5916,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(queryMap["nonce"].first, unittest.equals(arg_nonce)); unittest.expect( queryMap["cpksver"].first, unittest.equals(arg_cpksver)); - unittest.expect(queryMap["features"], unittest.equals(arg_features)); - unittest.expect(queryMap["includeNonComicsSeries"].first, - unittest.equals("$arg_includeNonComicsSeries")); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds)); + unittest.expect(queryMap["nonce"].first, unittest.equals(arg_nonce)); unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_showPreorders")); - unittest.expect(queryMap["volumeIds"], unittest.equals(arg_volumeIds)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["includeNonComicsSeries"].first, + unittest.equals("$arg_includeNonComicsSeries")); + unittest.expect(queryMap["features"], unittest.equals(arg_features)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5900,12 +5936,15 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .syncVolumeLicenses(arg_source, arg_nonce, arg_cpksver, - features: arg_features, - includeNonComicsSeries: arg_includeNonComicsSeries, - locale: arg_locale, - showPreorders: arg_showPreorders, + .syncVolumeLicenses( + cpksver: arg_cpksver, + source: arg_source, volumeIds: arg_volumeIds, + nonce: arg_nonce, + showPreorders: arg_showPreorders, + locale: arg_locale, + includeNonComicsSeries: arg_includeNonComicsSeries, + features: arg_features, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolumes(response); @@ -5928,12 +5967,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("myconfig/updateUserSettings")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("books/v1/myconfig/updateUserSettings")); + pathOffset += 36; var query = (req.url).query; var queryOffset = 0; @@ -5985,12 +6021,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/annotations/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/annotations/")); + pathOffset += 31; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_annotationId")); @@ -6019,12 +6052,14 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .delete(arg_annotationId, source: arg_source, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--insert", () { @@ -6032,10 +6067,10 @@ api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; var arg_request = buildAnnotation(); - var arg_annotationId = "foo"; - var arg_country = "foo"; var arg_showOnlySummaryInResponse = true; var arg_source = "foo"; + var arg_annotationId = "foo"; + var arg_country = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Annotation.fromJson(json); @@ -6048,12 +6083,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("mylibrary/annotations")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("books/v1/mylibrary/annotations")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -6073,13 +6105,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["showOnlySummaryInResponse"].first, + unittest.equals("$arg_showOnlySummaryInResponse")); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["annotationId"].first, unittest.equals(arg_annotationId)); unittest.expect( queryMap["country"].first, unittest.equals(arg_country)); - unittest.expect(queryMap["showOnlySummaryInResponse"].first, - unittest.equals("$arg_showOnlySummaryInResponse")); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6090,10 +6122,10 @@ }), true); res .insert(arg_request, - annotationId: arg_annotationId, - country: arg_country, showOnlySummaryInResponse: arg_showOnlySummaryInResponse, source: arg_source, + annotationId: arg_annotationId, + country: arg_country, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAnnotation(response); @@ -6104,16 +6136,16 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_contentVersion = "foo"; - var arg_layerId = "foo"; - var arg_layerIds = buildUnnamed3184(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_showDeleted = true; - var arg_source = "foo"; - var arg_updatedMax = "foo"; var arg_updatedMin = "foo"; var arg_volumeId = "foo"; + var arg_layerId = "foo"; + var arg_layerIds = buildUnnamed3339(); + var arg_contentVersion = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_updatedMax = "foo"; + var arg_showDeleted = true; + var arg_source = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6123,12 +6155,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("mylibrary/annotations")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("books/v1/mylibrary/annotations")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -6148,24 +6177,24 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["contentVersion"].first, - unittest.equals(arg_contentVersion)); + unittest.expect( + queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); + unittest.expect( + queryMap["volumeId"].first, unittest.equals(arg_volumeId)); unittest.expect( queryMap["layerId"].first, unittest.equals(arg_layerId)); unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds)); + unittest.expect(queryMap["contentVersion"].first, + unittest.equals(arg_contentVersion)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect( queryMap["updatedMax"].first, unittest.equals(arg_updatedMax)); unittest.expect( - queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); - unittest.expect( - queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6176,16 +6205,16 @@ }), true); res .list( - contentVersion: arg_contentVersion, - layerId: arg_layerId, - layerIds: arg_layerIds, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - showDeleted: arg_showDeleted, - source: arg_source, - updatedMax: arg_updatedMax, updatedMin: arg_updatedMin, volumeId: arg_volumeId, + layerId: arg_layerId, + layerIds: arg_layerIds, + contentVersion: arg_contentVersion, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + updatedMax: arg_updatedMax, + showDeleted: arg_showDeleted, + source: arg_source, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAnnotations(response); @@ -6196,8 +6225,8 @@ var mock = new HttpServerMock(); api.MylibraryAnnotationsResourceApi res = new api.BooksApi(mock).mylibrary.annotations; - var arg_layerIds = buildUnnamed3185(); var arg_volumeId = "foo"; + var arg_layerIds = buildUnnamed3340(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6207,12 +6236,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 29), - unittest.equals("mylibrary/annotations/summary")); - pathOffset += 29; + unittest.expect(path.substring(pathOffset, pathOffset + 38), + unittest.equals("books/v1/mylibrary/annotations/summary")); + pathOffset += 38; var query = (req.url).query; var queryOffset = 0; @@ -6232,9 +6258,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds)); unittest.expect( queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + unittest.expect(queryMap["layerIds"], unittest.equals(arg_layerIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6244,7 +6270,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .summary(arg_layerIds, arg_volumeId, $fields: arg_$fields) + .summary( + volumeId: arg_volumeId, + layerIds: arg_layerIds, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAnnotationsSummary(response); }))); @@ -6269,12 +6298,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/annotations/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/annotations/")); + pathOffset += 31; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_annotationId")); @@ -6322,8 +6348,8 @@ new api.BooksApi(mock).mylibrary.bookshelves; var arg_shelf = "foo"; var arg_volumeId = "foo"; - var arg_reason = "foo"; var arg_source = "foo"; + var arg_reason = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6333,12 +6359,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; index = path.indexOf("/addVolume", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6369,20 +6392,25 @@ } unittest.expect( queryMap["volumeId"].first, unittest.equals(arg_volumeId)); - unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .addVolume(arg_shelf, arg_volumeId, - reason: arg_reason, source: arg_source, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .addVolume(arg_shelf, + volumeId: arg_volumeId, + source: arg_source, + reason: arg_reason, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--clearVolumes", () { @@ -6400,12 +6428,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; index = path.indexOf("/clearVolumes", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6440,12 +6465,14 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .clearVolumes(arg_shelf, source: arg_source, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--get", () { @@ -6463,12 +6490,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_shelf")); @@ -6521,12 +6545,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("mylibrary/bookshelves")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("books/v1/mylibrary/bookshelves")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -6579,12 +6600,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; index = path.indexOf("/moveVolume", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6623,13 +6641,18 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .moveVolume(arg_shelf, arg_volumeId, arg_volumePosition, - source: arg_source, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .moveVolume(arg_shelf, + volumeId: arg_volumeId, + volumePosition: arg_volumePosition, + source: arg_source, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--removeVolume", () { @@ -6637,9 +6660,9 @@ api.MylibraryBookshelvesResourceApi res = new api.BooksApi(mock).mylibrary.bookshelves; var arg_shelf = "foo"; + var arg_source = "foo"; var arg_volumeId = "foo"; var arg_reason = "foo"; - var arg_source = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6649,12 +6672,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; index = path.indexOf("/removeVolume", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6683,22 +6703,27 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["volumeId"].first, unittest.equals(arg_volumeId)); unittest.expect(queryMap["reason"].first, unittest.equals(arg_reason)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .removeVolume(arg_shelf, arg_volumeId, - reason: arg_reason, source: arg_source, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .removeVolume(arg_shelf, + source: arg_source, + volumeId: arg_volumeId, + reason: arg_reason, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); }); @@ -6708,12 +6733,12 @@ api.MylibraryBookshelvesVolumesResourceApi res = new api.BooksApi(mock).mylibrary.bookshelves.volumes; var arg_shelf = "foo"; - var arg_country = "foo"; - var arg_maxResults = 42; - var arg_projection = "foo"; - var arg_q = "foo"; - var arg_showPreorders = true; var arg_source = "foo"; + var arg_country = "foo"; + var arg_q = "foo"; + var arg_projection = "foo"; + var arg_showPreorders = true; + var arg_maxResults = 42; var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -6724,12 +6749,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("mylibrary/bookshelves/")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/mylibrary/bookshelves/")); + pathOffset += 31; index = path.indexOf("/volumes", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6758,16 +6780,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect( queryMap["country"].first, unittest.equals(arg_country)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect(queryMap["showPreorders"].first, unittest.equals("$arg_showPreorders")); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + 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["fields"].first, unittest.equals(arg_$fields)); @@ -6780,12 +6802,12 @@ }), true); res .list(arg_shelf, - country: arg_country, - maxResults: arg_maxResults, - projection: arg_projection, - q: arg_q, - showPreorders: arg_showPreorders, source: arg_source, + country: arg_country, + q: arg_q, + projection: arg_projection, + showPreorders: arg_showPreorders, + maxResults: arg_maxResults, startIndex: arg_startIndex, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -6811,12 +6833,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("mylibrary/readingpositions/")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("books/v1/mylibrary/readingpositions/")); + pathOffset += 36; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_volumeId")); @@ -6866,11 +6885,11 @@ new api.BooksApi(mock).mylibrary.readingpositions; var arg_volumeId = "foo"; var arg_timestamp = "foo"; - var arg_position = "foo"; - var arg_action = "foo"; var arg_contentVersion = "foo"; - var arg_deviceCookie = "foo"; + var arg_action = "foo"; var arg_source = "foo"; + var arg_position = "foo"; + var arg_deviceCookie = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6880,12 +6899,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("mylibrary/readingpositions/")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("books/v1/mylibrary/readingpositions/")); + pathOffset += 36; index = path.indexOf("/setPosition", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6916,30 +6932,34 @@ } unittest.expect( queryMap["timestamp"].first, unittest.equals(arg_timestamp)); - unittest.expect( - queryMap["position"].first, unittest.equals(arg_position)); - unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); unittest.expect(queryMap["contentVersion"].first, unittest.equals(arg_contentVersion)); + unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect( + queryMap["position"].first, unittest.equals(arg_position)); unittest.expect( queryMap["deviceCookie"].first, unittest.equals(arg_deviceCookie)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .setPosition(arg_volumeId, arg_timestamp, arg_position, - action: arg_action, + .setPosition(arg_volumeId, + timestamp: arg_timestamp, contentVersion: arg_contentVersion, - deviceCookie: arg_deviceCookie, + action: arg_action, source: arg_source, + position: arg_position, + deviceCookie: arg_deviceCookie, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); }); @@ -6959,12 +6979,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("notification/get")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("books/v1/notification/get")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -6997,8 +7014,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_notificationId, - locale: arg_locale, source: arg_source, $fields: arg_$fields) + .get( + notificationId: arg_notificationId, + locale: arg_locale, + source: arg_source, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNotification(response); }))); @@ -7019,12 +7039,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 25), - unittest.equals("onboarding/listCategories")); - pathOffset += 25; + unittest.expect(path.substring(pathOffset, pathOffset + 34), + unittest.equals("books/v1/onboarding/listCategories")); + pathOffset += 34; var query = (req.url).query; var queryOffset = 0; @@ -7063,10 +7080,10 @@ unittest.test("method--listCategoryVolumes", () { var mock = new HttpServerMock(); api.OnboardingResourceApi res = new api.BooksApi(mock).onboarding; - var arg_categoryId = buildUnnamed3186(); + var arg_categoryId = buildUnnamed3341(); + var arg_pageSize = 42; var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -7077,12 +7094,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 30), - unittest.equals("onboarding/listCategoryVolumes")); - pathOffset += 30; + unittest.expect(path.substring(pathOffset, pathOffset + 39), + unittest.equals("books/v1/onboarding/listCategoryVolumes")); + pathOffset += 39; var query = (req.url).query; var queryOffset = 0; @@ -7104,11 +7118,11 @@ } unittest.expect( queryMap["categoryId"], unittest.equals(arg_categoryId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["maxAllowedMaturityRating"].first, unittest.equals(arg_maxAllowedMaturityRating)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -7122,9 +7136,9 @@ res .listCategoryVolumes( categoryId: arg_categoryId, + pageSize: arg_pageSize, locale: arg_locale, maxAllowedMaturityRating: arg_maxAllowedMaturityRating, - pageSize: arg_pageSize, pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -7138,9 +7152,9 @@ var mock = new HttpServerMock(); api.PersonalizedstreamResourceApi res = new api.BooksApi(mock).personalizedstream; - var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_source = "foo"; + var arg_locale = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7150,12 +7164,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("personalizedstream/get")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("books/v1/personalizedstream/get")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -7175,10 +7186,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["maxAllowedMaturityRating"].first, unittest.equals(arg_maxAllowedMaturityRating)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7189,9 +7200,9 @@ }), true); res .get( - locale: arg_locale, maxAllowedMaturityRating: arg_maxAllowedMaturityRating, source: arg_source, + locale: arg_locale, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiscoveryclusters(response); @@ -7203,14 +7214,14 @@ unittest.test("method--accept", () { var mock = new HttpServerMock(); api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; + var arg_volumeId = "foo"; + var arg_offerId = "foo"; + var arg_serial = "foo"; var arg_androidId = "foo"; + var arg_model = "foo"; var arg_device = "foo"; var arg_manufacturer = "foo"; - var arg_model = "foo"; - var arg_offerId = "foo"; var arg_product = "foo"; - var arg_serial = "foo"; - var arg_volumeId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7220,12 +7231,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("promooffer/accept")); - pathOffset += 17; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("books/v1/promooffer/accept")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -7246,50 +7254,52 @@ } } unittest.expect( + queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + unittest.expect( + queryMap["offerId"].first, unittest.equals(arg_offerId)); + unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); + unittest.expect( queryMap["androidId"].first, unittest.equals(arg_androidId)); + unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); unittest.expect(queryMap["device"].first, unittest.equals(arg_device)); unittest.expect( queryMap["manufacturer"].first, unittest.equals(arg_manufacturer)); - unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); - unittest.expect( - queryMap["offerId"].first, unittest.equals(arg_offerId)); unittest.expect( queryMap["product"].first, unittest.equals(arg_product)); - unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); - unittest.expect( - queryMap["volumeId"].first, unittest.equals(arg_volumeId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .accept( + volumeId: arg_volumeId, + offerId: arg_offerId, + serial: arg_serial, androidId: arg_androidId, + model: arg_model, device: arg_device, manufacturer: arg_manufacturer, - model: arg_model, - offerId: arg_offerId, product: arg_product, - serial: arg_serial, - volumeId: arg_volumeId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--dismiss", () { var mock = new HttpServerMock(); api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; var arg_androidId = "foo"; - var arg_device = "foo"; - var arg_manufacturer = "foo"; - var arg_model = "foo"; - var arg_offerId = "foo"; - var arg_product = "foo"; var arg_serial = "foo"; + var arg_product = "foo"; + var arg_model = "foo"; + var arg_manufacturer = "foo"; + var arg_device = "foo"; + var arg_offerId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7299,12 +7309,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 18), - unittest.equals("promooffer/dismiss")); - pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 27), + unittest.equals("books/v1/promooffer/dismiss")); + pathOffset += 27; var query = (req.url).query; var queryOffset = 0; @@ -7326,45 +7333,47 @@ } unittest.expect( queryMap["androidId"].first, unittest.equals(arg_androidId)); - unittest.expect(queryMap["device"].first, unittest.equals(arg_device)); - unittest.expect( - queryMap["manufacturer"].first, unittest.equals(arg_manufacturer)); - unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); - unittest.expect( - queryMap["offerId"].first, unittest.equals(arg_offerId)); + unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); unittest.expect( queryMap["product"].first, unittest.equals(arg_product)); - unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); + unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); + unittest.expect( + queryMap["manufacturer"].first, unittest.equals(arg_manufacturer)); + unittest.expect(queryMap["device"].first, unittest.equals(arg_device)); + unittest.expect( + queryMap["offerId"].first, unittest.equals(arg_offerId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildEmpty()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .dismiss( androidId: arg_androidId, - device: arg_device, - manufacturer: arg_manufacturer, - model: arg_model, - offerId: arg_offerId, - product: arg_product, serial: arg_serial, + product: arg_product, + model: arg_model, + manufacturer: arg_manufacturer, + device: arg_device, + offerId: arg_offerId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); }); unittest.test("method--get", () { var mock = new HttpServerMock(); api.PromoofferResourceApi res = new api.BooksApi(mock).promooffer; - var arg_androidId = "foo"; + var arg_serial = "foo"; + var arg_model = "foo"; var arg_device = "foo"; var arg_manufacturer = "foo"; - var arg_model = "foo"; var arg_product = "foo"; - var arg_serial = "foo"; + var arg_androidId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7374,12 +7383,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("promooffer/get")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 23), + unittest.equals("books/v1/promooffer/get")); + pathOffset += 23; var query = (req.url).query; var queryOffset = 0; @@ -7399,15 +7405,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["androidId"].first, unittest.equals(arg_androidId)); + unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); + unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); unittest.expect(queryMap["device"].first, unittest.equals(arg_device)); unittest.expect( queryMap["manufacturer"].first, unittest.equals(arg_manufacturer)); - unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); unittest.expect( queryMap["product"].first, unittest.equals(arg_product)); - unittest.expect(queryMap["serial"].first, unittest.equals(arg_serial)); + unittest.expect( + queryMap["androidId"].first, unittest.equals(arg_androidId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7418,12 +7424,12 @@ }), true); res .get( - androidId: arg_androidId, + serial: arg_serial, + model: arg_model, device: arg_device, manufacturer: arg_manufacturer, - model: arg_model, product: arg_product, - serial: arg_serial, + androidId: arg_androidId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOffers(response); @@ -7435,7 +7441,7 @@ unittest.test("method--get", () { var mock = new HttpServerMock(); api.SeriesResourceApi res = new api.BooksApi(mock).series; - var arg_seriesId = buildUnnamed3187(); + var arg_seriesId = buildUnnamed3342(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7445,12 +7451,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("series/get")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("books/v1/series/get")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -7480,7 +7483,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_seriesId, $fields: arg_$fields) + .get(seriesId: arg_seriesId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSeries(response); }))); @@ -7492,9 +7495,9 @@ var mock = new HttpServerMock(); api.SeriesMembershipResourceApi res = new api.BooksApi(mock).series.membership; + var arg_pageToken = "foo"; var arg_seriesId = "foo"; var arg_pageSize = 42; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7504,12 +7507,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("series/membership/get")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("books/v1/series/membership/get")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -7530,11 +7530,11 @@ } } unittest.expect( + queryMap["page_token"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["series_id"].first, unittest.equals(arg_seriesId)); unittest.expect(core.int.parse(queryMap["page_size"].first), unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["page_token"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7544,9 +7544,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_seriesId, - pageSize: arg_pageSize, + .get( pageToken: arg_pageToken, + seriesId: arg_seriesId, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSeriesmembership(response); @@ -7559,12 +7560,12 @@ var mock = new HttpServerMock(); api.VolumesResourceApi res = new api.BooksApi(mock).volumes; var arg_volumeId = "foo"; - var arg_country = "foo"; var arg_includeNonComicsSeries = true; - var arg_partner = "foo"; - var arg_projection = "foo"; - var arg_source = "foo"; var arg_userLibraryConsistentRead = true; + var arg_partner = "foo"; + var arg_country = "foo"; + var arg_source = "foo"; + var arg_projection = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7574,12 +7575,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_volumeId")); @@ -7602,17 +7600,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["country"].first, unittest.equals(arg_country)); unittest.expect(queryMap["includeNonComicsSeries"].first, unittest.equals("$arg_includeNonComicsSeries")); + unittest.expect(queryMap["user_library_consistent_read"].first, + unittest.equals("$arg_userLibraryConsistentRead")); unittest.expect( queryMap["partner"].first, unittest.equals(arg_partner)); unittest.expect( - queryMap["projection"].first, unittest.equals(arg_projection)); + queryMap["country"].first, unittest.equals(arg_country)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(queryMap["user_library_consistent_read"].first, - unittest.equals("$arg_userLibraryConsistentRead")); + unittest.expect( + queryMap["projection"].first, unittest.equals(arg_projection)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7623,12 +7621,12 @@ }), true); res .get(arg_volumeId, - country: arg_country, includeNonComicsSeries: arg_includeNonComicsSeries, - partner: arg_partner, - projection: arg_projection, - source: arg_source, userLibraryConsistentRead: arg_userLibraryConsistentRead, + partner: arg_partner, + country: arg_country, + source: arg_source, + projection: arg_projection, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolume(response); @@ -7638,20 +7636,20 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.VolumesResourceApi res = new api.BooksApi(mock).volumes; + var arg_startIndex = 42; var arg_q = "foo"; + var arg_maxResults = 42; + var arg_maxAllowedMaturityRating = "foo"; + var arg_showPreorders = true; + var arg_langRestrict = "foo"; + var arg_partner = "foo"; + var arg_projection = "foo"; + var arg_printType = "foo"; + var arg_orderBy = "foo"; + var arg_source = "foo"; + var arg_libraryRestrict = "foo"; var arg_download = "foo"; 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"; - var arg_printType = "foo"; - var arg_projection = "foo"; - var arg_showPreorders = true; - var arg_source = "foo"; - var arg_startIndex = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7661,12 +7659,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("volumes")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("books/v1/volumes")); + pathOffset += 16; var query = (req.url).query; var queryOffset = 0; @@ -7686,31 +7681,31 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["startIndex"].first), + unittest.equals(arg_startIndex)); unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); - unittest.expect( - queryMap["download"].first, unittest.equals(arg_download)); - 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["maxAllowedMaturityRating"].first, + unittest.equals(arg_maxAllowedMaturityRating)); + unittest.expect(queryMap["showPreorders"].first, + unittest.equals("$arg_showPreorders")); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["langRestrict"].first, unittest.equals(arg_langRestrict)); unittest.expect( queryMap["partner"].first, unittest.equals(arg_partner)); unittest.expect( + queryMap["projection"].first, unittest.equals(arg_projection)); + unittest.expect( queryMap["printType"].first, unittest.equals(arg_printType)); unittest.expect( - queryMap["projection"].first, unittest.equals(arg_projection)); - unittest.expect(queryMap["showPreorders"].first, - unittest.equals("$arg_showPreorders")); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(core.int.parse(queryMap["startIndex"].first), - unittest.equals(arg_startIndex)); + unittest.expect(queryMap["libraryRestrict"].first, + unittest.equals(arg_libraryRestrict)); + unittest.expect( + queryMap["download"].first, unittest.equals(arg_download)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7720,20 +7715,21 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_q, + .list( + startIndex: arg_startIndex, + q: arg_q, + maxResults: arg_maxResults, + maxAllowedMaturityRating: arg_maxAllowedMaturityRating, + showPreorders: arg_showPreorders, + langRestrict: arg_langRestrict, + partner: arg_partner, + projection: arg_projection, + printType: arg_printType, + orderBy: arg_orderBy, + source: arg_source, + libraryRestrict: arg_libraryRestrict, 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, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolumes(response); @@ -7748,9 +7744,9 @@ new api.BooksApi(mock).volumes.associated; var arg_volumeId = "foo"; var arg_association = "foo"; - var arg_locale = "foo"; var arg_maxAllowedMaturityRating = "foo"; var arg_source = "foo"; + var arg_locale = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7760,12 +7756,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("volumes/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("books/v1/volumes/")); + pathOffset += 17; index = path.indexOf("/associated", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -7796,10 +7789,10 @@ } unittest.expect( queryMap["association"].first, unittest.equals(arg_association)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["maxAllowedMaturityRating"].first, unittest.equals(arg_maxAllowedMaturityRating)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7811,9 +7804,9 @@ res .list(arg_volumeId, association: arg_association, - locale: arg_locale, maxAllowedMaturityRating: arg_maxAllowedMaturityRating, source: arg_source, + locale: arg_locale, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolumes(response); @@ -7826,13 +7819,13 @@ var mock = new HttpServerMock(); api.VolumesMybooksResourceApi res = new api.BooksApi(mock).volumes.mybooks; - var arg_acquireMethod = buildUnnamed3188(); + var arg_startIndex = 42; var arg_country = "foo"; + var arg_acquireMethod = buildUnnamed3343(); var arg_locale = "foo"; var arg_maxResults = 42; - var arg_processingState = buildUnnamed3189(); var arg_source = "foo"; - var arg_startIndex = 42; + var arg_processingState = buildUnnamed3344(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7842,154 +7835,8 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("volumes/mybooks")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["acquireMethod"], unittest.equals(arg_acquireMethod)); - unittest.expect( - queryMap["country"].first, unittest.equals(arg_country)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["processingState"], unittest.equals(arg_processingState)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(core.int.parse(queryMap["startIndex"].first), - unittest.equals(arg_startIndex)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildVolumes()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - acquireMethod: arg_acquireMethod, - country: arg_country, - locale: arg_locale, - maxResults: arg_maxResults, - processingState: arg_processingState, - source: arg_source, - startIndex: arg_startIndex, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkVolumes(response); - }))); - }); - }); - - unittest.group("resource-VolumesRecommendedResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.VolumesRecommendedResourceApi res = - new api.BooksApi(mock).volumes.recommended; - var arg_locale = "foo"; - var arg_maxAllowedMaturityRating = "foo"; - var arg_source = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("volumes/recommended")); - pathOffset += 19; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["locale"].first, unittest.equals(arg_locale)); - unittest.expect(queryMap["maxAllowedMaturityRating"].first, - unittest.equals(arg_maxAllowedMaturityRating)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildVolumes()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - locale: arg_locale, - maxAllowedMaturityRating: arg_maxAllowedMaturityRating, - source: arg_source, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkVolumes(response); - }))); - }); - - unittest.test("method--rate", () { - var mock = new HttpServerMock(); - api.VolumesRecommendedResourceApi res = - new api.BooksApi(mock).volumes.recommended; - var arg_rating = "foo"; - var arg_volumeId = "foo"; - var arg_locale = "foo"; - var arg_source = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; unittest.expect(path.substring(pathOffset, pathOffset + 24), - unittest.equals("volumes/recommended/rate")); + unittest.equals("books/v1/volumes/mybooks")); pathOffset += 24; var query = (req.url).query; @@ -8010,40 +7857,50 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), + unittest.equals(arg_startIndex)); unittest.expect( - queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + queryMap["country"].first, unittest.equals(arg_country)); + unittest.expect( + queryMap["acquireMethod"], unittest.equals(arg_acquireMethod)); unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect( + queryMap["processingState"], unittest.equals(arg_processingState)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = - convert.json.encode(buildBooksVolumesRecommendedRateResponse()); + var resp = convert.json.encode(buildVolumes()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .rate(arg_rating, arg_volumeId, - locale: arg_locale, source: arg_source, $fields: arg_$fields) + .list( + startIndex: arg_startIndex, + country: arg_country, + acquireMethod: arg_acquireMethod, + locale: arg_locale, + maxResults: arg_maxResults, + source: arg_source, + processingState: arg_processingState, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkBooksVolumesRecommendedRateResponse(response); + checkVolumes(response); }))); }); }); - unittest.group("resource-VolumesUseruploadedResourceApi", () { + unittest.group("resource-VolumesRecommendedResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); - api.VolumesUseruploadedResourceApi res = - new api.BooksApi(mock).volumes.useruploaded; - var arg_locale = "foo"; - var arg_maxResults = 42; - var arg_processingState = buildUnnamed3190(); + api.VolumesRecommendedResourceApi res = + new api.BooksApi(mock).volumes.recommended; + var arg_maxAllowedMaturityRating = "foo"; var arg_source = "foo"; - var arg_startIndex = 42; - var arg_volumeId = buildUnnamed3191(); + var arg_locale = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8053,12 +7910,71 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("books/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 20), - unittest.equals("volumes/useruploaded")); - pathOffset += 20; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("books/v1/volumes/recommended")); + pathOffset += 28; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["maxAllowedMaturityRating"].first, + unittest.equals(arg_maxAllowedMaturityRating)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildVolumes()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + maxAllowedMaturityRating: arg_maxAllowedMaturityRating, + source: arg_source, + locale: arg_locale, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkVolumes(response); + }))); + }); + + unittest.test("method--rate", () { + var mock = new HttpServerMock(); + api.VolumesRecommendedResourceApi res = + new api.BooksApi(mock).volumes.recommended; + var arg_locale = "foo"; + var arg_source = "foo"; + var arg_rating = "foo"; + var arg_volumeId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("books/v1/volumes/recommended/rate")); + pathOffset += 33; var query = (req.url).query; var queryOffset = 0; @@ -8079,14 +7995,83 @@ } } unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); + unittest.expect(queryMap["rating"].first, unittest.equals(arg_rating)); + unittest.expect( + queryMap["volumeId"].first, unittest.equals(arg_volumeId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildBooksVolumesRecommendedRateResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .rate( + locale: arg_locale, + source: arg_source, + rating: arg_rating, + volumeId: arg_volumeId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBooksVolumesRecommendedRateResponse(response); + }))); + }); + }); + + unittest.group("resource-VolumesUseruploadedResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.VolumesUseruploadedResourceApi res = + new api.BooksApi(mock).volumes.useruploaded; + var arg_startIndex = 42; + var arg_locale = "foo"; + var arg_maxResults = 42; + var arg_processingState = buildUnnamed3345(); + var arg_volumeId = buildUnnamed3346(); + var arg_source = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("books/v1/volumes/useruploaded")); + pathOffset += 29; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["startIndex"].first), + unittest.equals(arg_startIndex)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["processingState"], unittest.equals(arg_processingState)); - unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); - unittest.expect(core.int.parse(queryMap["startIndex"].first), - unittest.equals(arg_startIndex)); unittest.expect(queryMap["volumeId"], unittest.equals(arg_volumeId)); + unittest.expect(queryMap["source"].first, unittest.equals(arg_source)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8097,12 +8082,12 @@ }), true); res .list( + startIndex: arg_startIndex, locale: arg_locale, maxResults: arg_maxResults, processingState: arg_processingState, - source: arg_source, - startIndex: arg_startIndex, volumeId: arg_volumeId, + source: arg_source, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVolumes(response);
diff --git a/generated/googleapis/test/calendar/v3_test.dart b/generated/googleapis/test/calendar/v3_test.dart index ad4890b..01792d6 100644 --- a/generated/googleapis/test/calendar/v3_test.dart +++ b/generated/googleapis/test/calendar/v3_test.dart
@@ -2134,10 +2134,10 @@ var mock = new HttpServerMock(); api.AclResourceApi res = new api.CalendarApi(mock).acl; var arg_calendarId = "foo"; - var arg_maxResults = 42; + var arg_syncToken = "foo"; var arg_pageToken = "foo"; var arg_showDeleted = true; - var arg_syncToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2181,14 +2181,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2199,10 +2199,10 @@ }), true); res .list(arg_calendarId, - maxResults: arg_maxResults, + syncToken: arg_syncToken, pageToken: arg_pageToken, showDeleted: arg_showDeleted, - syncToken: arg_syncToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAcl(response); @@ -2363,9 +2363,9 @@ var arg_request = buildChannel(); var arg_calendarId = "foo"; var arg_maxResults = 42; + var arg_syncToken = "foo"; var arg_pageToken = "foo"; var arg_showDeleted = true; - var arg_syncToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); @@ -2415,11 +2415,11 @@ unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2431,9 +2431,9 @@ res .watch(arg_request, arg_calendarId, maxResults: arg_maxResults, + syncToken: arg_syncToken, pageToken: arg_pageToken, showDeleted: arg_showDeleted, - syncToken: arg_syncToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannel(response); @@ -2616,11 +2616,11 @@ var mock = new HttpServerMock(); api.CalendarListResourceApi res = new api.CalendarApi(mock).calendarList; var arg_maxResults = 42; - var arg_minAccessRole = "foo"; - var arg_pageToken = "foo"; var arg_showDeleted = true; - var arg_showHidden = true; var arg_syncToken = "foo"; + var arg_minAccessRole = "foo"; + var arg_showHidden = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2657,16 +2657,16 @@ } unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect(queryMap["minAccessRole"].first, - unittest.equals(arg_minAccessRole)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect(queryMap["minAccessRole"].first, + unittest.equals(arg_minAccessRole)); + unittest.expect( queryMap["showHidden"].first, unittest.equals("$arg_showHidden")); unittest.expect( - queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2678,11 +2678,11 @@ res .list( maxResults: arg_maxResults, - minAccessRole: arg_minAccessRole, - pageToken: arg_pageToken, showDeleted: arg_showDeleted, - showHidden: arg_showHidden, syncToken: arg_syncToken, + minAccessRole: arg_minAccessRole, + showHidden: arg_showHidden, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCalendarList(response); @@ -2821,12 +2821,12 @@ var mock = new HttpServerMock(); api.CalendarListResourceApi res = new api.CalendarApi(mock).calendarList; var arg_request = buildChannel(); + var arg_syncToken = "foo"; var arg_maxResults = 42; + var arg_showHidden = true; + var arg_showDeleted = true; var arg_minAccessRole = "foo"; var arg_pageToken = "foo"; - var arg_showDeleted = true; - var arg_showHidden = true; - var arg_syncToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); @@ -2864,18 +2864,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["showHidden"].first, unittest.equals("$arg_showHidden")); + unittest.expect( + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect(queryMap["minAccessRole"].first, unittest.equals(arg_minAccessRole)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["showHidden"].first, unittest.equals("$arg_showHidden")); - unittest.expect( - queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2886,12 +2886,12 @@ }), true); res .watch(arg_request, + syncToken: arg_syncToken, maxResults: arg_maxResults, + showHidden: arg_showHidden, + showDeleted: arg_showDeleted, minAccessRole: arg_minAccessRole, pageToken: arg_pageToken, - showDeleted: arg_showDeleted, - showHidden: arg_showHidden, - syncToken: arg_syncToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannel(response); @@ -3435,8 +3435,8 @@ var arg_calendarId = "foo"; var arg_eventId = "foo"; var arg_alwaysIncludeEmail = true; - var arg_maxAttendees = 42; var arg_timeZone = "foo"; + var arg_maxAttendees = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3485,10 +3485,10 @@ } unittest.expect(queryMap["alwaysIncludeEmail"].first, unittest.equals("$arg_alwaysIncludeEmail")); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); unittest.expect( queryMap["timeZone"].first, unittest.equals(arg_timeZone)); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3500,8 +3500,8 @@ res .get(arg_calendarId, arg_eventId, alwaysIncludeEmail: arg_alwaysIncludeEmail, - maxAttendees: arg_maxAttendees, timeZone: arg_timeZone, + maxAttendees: arg_maxAttendees, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvent(response); @@ -3513,8 +3513,8 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_request = buildEvent(); var arg_calendarId = "foo"; - var arg_conferenceDataVersion = 42; var arg_supportsAttachments = true; + var arg_conferenceDataVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Event.fromJson(json); @@ -3561,10 +3561,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), - unittest.equals(arg_conferenceDataVersion)); unittest.expect(queryMap["supportsAttachments"].first, unittest.equals("$arg_supportsAttachments")); + unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), + unittest.equals(arg_conferenceDataVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3575,8 +3575,8 @@ }), true); res .import(arg_request, arg_calendarId, - conferenceDataVersion: arg_conferenceDataVersion, supportsAttachments: arg_supportsAttachments, + conferenceDataVersion: arg_conferenceDataVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvent(response); @@ -3588,10 +3588,10 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_request = buildEvent(); var arg_calendarId = "foo"; - var arg_conferenceDataVersion = 42; - var arg_maxAttendees = 42; - var arg_sendNotifications = true; var arg_sendUpdates = "foo"; + var arg_sendNotifications = true; + var arg_maxAttendees = 42; + var arg_conferenceDataVersion = 42; var arg_supportsAttachments = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3639,14 +3639,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), - unittest.equals(arg_conferenceDataVersion)); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); - unittest.expect(queryMap["sendNotifications"].first, - unittest.equals("$arg_sendNotifications")); unittest.expect( queryMap["sendUpdates"].first, unittest.equals(arg_sendUpdates)); + unittest.expect(queryMap["sendNotifications"].first, + unittest.equals("$arg_sendNotifications")); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); + unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), + unittest.equals(arg_conferenceDataVersion)); unittest.expect(queryMap["supportsAttachments"].first, unittest.equals("$arg_supportsAttachments")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3659,10 +3659,10 @@ }), true); res .insert(arg_request, arg_calendarId, - conferenceDataVersion: arg_conferenceDataVersion, - maxAttendees: arg_maxAttendees, - sendNotifications: arg_sendNotifications, sendUpdates: arg_sendUpdates, + sendNotifications: arg_sendNotifications, + maxAttendees: arg_maxAttendees, + conferenceDataVersion: arg_conferenceDataVersion, supportsAttachments: arg_supportsAttachments, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3675,14 +3675,14 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_calendarId = "foo"; var arg_eventId = "foo"; + var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); var arg_alwaysIncludeEmail = true; - var arg_maxAttendees = 42; var arg_maxResults = 42; var arg_originalStart = "foo"; - var arg_pageToken = "foo"; var arg_showDeleted = true; - var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_pageToken = "foo"; + var arg_maxAttendees = 42; var arg_timeZone = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3736,22 +3736,22 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.DateTime.parse(queryMap["timeMin"].first), + unittest.equals(arg_timeMin)); + unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), + unittest.equals(arg_timeMax)); unittest.expect(queryMap["alwaysIncludeEmail"].first, unittest.equals("$arg_alwaysIncludeEmail")); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect(queryMap["originalStart"].first, unittest.equals(arg_originalStart)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), - unittest.equals(arg_timeMax)); - unittest.expect(core.DateTime.parse(queryMap["timeMin"].first), - unittest.equals(arg_timeMin)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); unittest.expect( queryMap["timeZone"].first, unittest.equals(arg_timeZone)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3764,14 +3764,14 @@ }), true); res .instances(arg_calendarId, arg_eventId, + timeMin: arg_timeMin, + timeMax: arg_timeMax, alwaysIncludeEmail: arg_alwaysIncludeEmail, - maxAttendees: arg_maxAttendees, maxResults: arg_maxResults, originalStart: arg_originalStart, - pageToken: arg_pageToken, showDeleted: arg_showDeleted, - timeMax: arg_timeMax, - timeMin: arg_timeMin, + pageToken: arg_pageToken, + maxAttendees: arg_maxAttendees, timeZone: arg_timeZone, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3784,22 +3784,22 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_calendarId = "foo"; var arg_alwaysIncludeEmail = true; + var arg_singleEvents = true; + var arg_sharedExtendedProperty = buildUnnamed36(); var arg_iCalUID = "foo"; var arg_maxAttendees = 42; - var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed36(); - var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed37(); var arg_showDeleted = true; - var arg_showHiddenInvitations = true; - var arg_singleEvents = true; + var arg_privateExtendedProperty = buildUnnamed37(); var arg_syncToken = "foo"; - var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_q = "foo"; + var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); var arg_timeZone = "foo"; var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_orderBy = "foo"; + var arg_maxResults = 42; + var arg_pageToken = "foo"; + var arg_showHiddenInvitations = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3845,37 +3845,37 @@ } unittest.expect(queryMap["alwaysIncludeEmail"].first, unittest.equals("$arg_alwaysIncludeEmail")); + unittest.expect(queryMap["singleEvents"].first, + unittest.equals("$arg_singleEvents")); + unittest.expect(queryMap["sharedExtendedProperty"], + unittest.equals(arg_sharedExtendedProperty)); unittest.expect( queryMap["iCalUID"].first, unittest.equals(arg_iCalUID)); unittest.expect(core.int.parse(queryMap["maxAttendees"].first), unittest.equals(arg_maxAttendees)); - 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)); - unittest.expect(queryMap["privateExtendedProperty"], - unittest.equals(arg_privateExtendedProperty)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); - unittest.expect(queryMap["sharedExtendedProperty"], - unittest.equals(arg_sharedExtendedProperty)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect(queryMap["showHiddenInvitations"].first, - unittest.equals("$arg_showHiddenInvitations")); - unittest.expect(queryMap["singleEvents"].first, - unittest.equals("$arg_singleEvents")); + unittest.expect(queryMap["privateExtendedProperty"], + unittest.equals(arg_privateExtendedProperty)); unittest.expect( queryMap["syncToken"].first, unittest.equals(arg_syncToken)); - unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), - unittest.equals(arg_timeMax)); unittest.expect(core.DateTime.parse(queryMap["timeMin"].first), unittest.equals(arg_timeMin)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), + unittest.equals(arg_timeMax)); unittest.expect( queryMap["timeZone"].first, unittest.equals(arg_timeZone)); unittest.expect(core.DateTime.parse(queryMap["updatedMin"].first), unittest.equals(arg_updatedMin)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["showHiddenInvitations"].first, + unittest.equals("$arg_showHiddenInvitations")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3887,22 +3887,22 @@ res .list(arg_calendarId, alwaysIncludeEmail: arg_alwaysIncludeEmail, + singleEvents: arg_singleEvents, + sharedExtendedProperty: arg_sharedExtendedProperty, iCalUID: arg_iCalUID, maxAttendees: arg_maxAttendees, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - privateExtendedProperty: arg_privateExtendedProperty, - q: arg_q, - sharedExtendedProperty: arg_sharedExtendedProperty, showDeleted: arg_showDeleted, - showHiddenInvitations: arg_showHiddenInvitations, - singleEvents: arg_singleEvents, + privateExtendedProperty: arg_privateExtendedProperty, syncToken: arg_syncToken, - timeMax: arg_timeMax, timeMin: arg_timeMin, + q: arg_q, + timeMax: arg_timeMax, timeZone: arg_timeZone, updatedMin: arg_updatedMin, + orderBy: arg_orderBy, + maxResults: arg_maxResults, + pageToken: arg_pageToken, + showHiddenInvitations: arg_showHiddenInvitations, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvents(response); @@ -3999,12 +3999,12 @@ var arg_request = buildEvent(); var arg_calendarId = "foo"; var arg_eventId = "foo"; - var arg_alwaysIncludeEmail = true; - var arg_conferenceDataVersion = 42; - var arg_maxAttendees = 42; + var arg_supportsAttachments = true; var arg_sendNotifications = true; var arg_sendUpdates = "foo"; - var arg_supportsAttachments = true; + var arg_maxAttendees = 42; + var arg_conferenceDataVersion = 42; + var arg_alwaysIncludeEmail = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Event.fromJson(json); @@ -4054,18 +4054,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["alwaysIncludeEmail"].first, - unittest.equals("$arg_alwaysIncludeEmail")); - unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), - unittest.equals(arg_conferenceDataVersion)); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); + unittest.expect(queryMap["supportsAttachments"].first, + unittest.equals("$arg_supportsAttachments")); unittest.expect(queryMap["sendNotifications"].first, unittest.equals("$arg_sendNotifications")); unittest.expect( queryMap["sendUpdates"].first, unittest.equals(arg_sendUpdates)); - unittest.expect(queryMap["supportsAttachments"].first, - unittest.equals("$arg_supportsAttachments")); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); + unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), + unittest.equals(arg_conferenceDataVersion)); + unittest.expect(queryMap["alwaysIncludeEmail"].first, + unittest.equals("$arg_alwaysIncludeEmail")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4076,12 +4076,12 @@ }), true); res .patch(arg_request, arg_calendarId, arg_eventId, - alwaysIncludeEmail: arg_alwaysIncludeEmail, - conferenceDataVersion: arg_conferenceDataVersion, - maxAttendees: arg_maxAttendees, + supportsAttachments: arg_supportsAttachments, sendNotifications: arg_sendNotifications, sendUpdates: arg_sendUpdates, - supportsAttachments: arg_supportsAttachments, + maxAttendees: arg_maxAttendees, + conferenceDataVersion: arg_conferenceDataVersion, + alwaysIncludeEmail: arg_alwaysIncludeEmail, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvent(response); @@ -4093,8 +4093,8 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_calendarId = "foo"; var arg_text = "foo"; - var arg_sendNotifications = true; var arg_sendUpdates = "foo"; + var arg_sendNotifications = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4139,10 +4139,10 @@ } } unittest.expect(queryMap["text"].first, unittest.equals(arg_text)); - unittest.expect(queryMap["sendNotifications"].first, - unittest.equals("$arg_sendNotifications")); unittest.expect( queryMap["sendUpdates"].first, unittest.equals(arg_sendUpdates)); + unittest.expect(queryMap["sendNotifications"].first, + unittest.equals("$arg_sendNotifications")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4153,8 +4153,8 @@ }), true); res .quickAdd(arg_calendarId, arg_text, - sendNotifications: arg_sendNotifications, sendUpdates: arg_sendUpdates, + sendNotifications: arg_sendNotifications, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvent(response); @@ -4167,12 +4167,12 @@ var arg_request = buildEvent(); var arg_calendarId = "foo"; var arg_eventId = "foo"; - var arg_alwaysIncludeEmail = true; var arg_conferenceDataVersion = 42; - var arg_maxAttendees = 42; var arg_sendNotifications = true; var arg_sendUpdates = "foo"; var arg_supportsAttachments = true; + var arg_alwaysIncludeEmail = true; + var arg_maxAttendees = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Event.fromJson(json); @@ -4222,18 +4222,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["alwaysIncludeEmail"].first, - unittest.equals("$arg_alwaysIncludeEmail")); unittest.expect(core.int.parse(queryMap["conferenceDataVersion"].first), unittest.equals(arg_conferenceDataVersion)); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); unittest.expect(queryMap["sendNotifications"].first, unittest.equals("$arg_sendNotifications")); unittest.expect( queryMap["sendUpdates"].first, unittest.equals(arg_sendUpdates)); unittest.expect(queryMap["supportsAttachments"].first, unittest.equals("$arg_supportsAttachments")); + unittest.expect(queryMap["alwaysIncludeEmail"].first, + unittest.equals("$arg_alwaysIncludeEmail")); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4244,12 +4244,12 @@ }), true); res .update(arg_request, arg_calendarId, arg_eventId, - alwaysIncludeEmail: arg_alwaysIncludeEmail, conferenceDataVersion: arg_conferenceDataVersion, - maxAttendees: arg_maxAttendees, sendNotifications: arg_sendNotifications, sendUpdates: arg_sendUpdates, supportsAttachments: arg_supportsAttachments, + alwaysIncludeEmail: arg_alwaysIncludeEmail, + maxAttendees: arg_maxAttendees, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEvent(response); @@ -4261,22 +4261,22 @@ api.EventsResourceApi res = new api.CalendarApi(mock).events; var arg_request = buildChannel(); var arg_calendarId = "foo"; - var arg_alwaysIncludeEmail = true; - var arg_iCalUID = "foo"; - var arg_maxAttendees = 42; var arg_maxResults = 42; + var arg_sharedExtendedProperty = buildUnnamed38(); + var arg_maxAttendees = 42; var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_privateExtendedProperty = buildUnnamed38(); - var arg_q = "foo"; - var arg_sharedExtendedProperty = buildUnnamed39(); + var arg_iCalUID = "foo"; var arg_showDeleted = true; - var arg_showHiddenInvitations = true; + var arg_pageToken = "foo"; var arg_singleEvents = true; + var arg_showHiddenInvitations = true; var arg_syncToken = "foo"; - var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_q = "foo"; + var arg_privateExtendedProperty = buildUnnamed39(); var arg_timeZone = "foo"; + var arg_timeMin = core.DateTime.parse("2002-02-27T14:01:02"); + var arg_alwaysIncludeEmail = true; + var arg_timeMax = core.DateTime.parse("2002-02-27T14:01:02"); var arg_updatedMin = core.DateTime.parse("2002-02-27T14:01:02"); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4324,37 +4324,37 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["alwaysIncludeEmail"].first, - unittest.equals("$arg_alwaysIncludeEmail")); - unittest.expect( - queryMap["iCalUID"].first, unittest.equals(arg_iCalUID)); - unittest.expect(core.int.parse(queryMap["maxAttendees"].first), - unittest.equals(arg_maxAttendees)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["sharedExtendedProperty"], + unittest.equals(arg_sharedExtendedProperty)); + unittest.expect(core.int.parse(queryMap["maxAttendees"].first), + unittest.equals(arg_maxAttendees)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["privateExtendedProperty"], - unittest.equals(arg_privateExtendedProperty)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); - unittest.expect(queryMap["sharedExtendedProperty"], - unittest.equals(arg_sharedExtendedProperty)); + queryMap["iCalUID"].first, unittest.equals(arg_iCalUID)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect(queryMap["showHiddenInvitations"].first, - unittest.equals("$arg_showHiddenInvitations")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["singleEvents"].first, unittest.equals("$arg_singleEvents")); + unittest.expect(queryMap["showHiddenInvitations"].first, + unittest.equals("$arg_showHiddenInvitations")); unittest.expect( queryMap["syncToken"].first, unittest.equals(arg_syncToken)); - unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), - unittest.equals(arg_timeMax)); - unittest.expect(core.DateTime.parse(queryMap["timeMin"].first), - unittest.equals(arg_timeMin)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect(queryMap["privateExtendedProperty"], + unittest.equals(arg_privateExtendedProperty)); unittest.expect( queryMap["timeZone"].first, unittest.equals(arg_timeZone)); + unittest.expect(core.DateTime.parse(queryMap["timeMin"].first), + unittest.equals(arg_timeMin)); + unittest.expect(queryMap["alwaysIncludeEmail"].first, + unittest.equals("$arg_alwaysIncludeEmail")); + unittest.expect(core.DateTime.parse(queryMap["timeMax"].first), + unittest.equals(arg_timeMax)); unittest.expect(core.DateTime.parse(queryMap["updatedMin"].first), unittest.equals(arg_updatedMin)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4367,22 +4367,22 @@ }), true); res .watch(arg_request, arg_calendarId, - alwaysIncludeEmail: arg_alwaysIncludeEmail, - iCalUID: arg_iCalUID, - maxAttendees: arg_maxAttendees, maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - privateExtendedProperty: arg_privateExtendedProperty, - q: arg_q, sharedExtendedProperty: arg_sharedExtendedProperty, + maxAttendees: arg_maxAttendees, + orderBy: arg_orderBy, + iCalUID: arg_iCalUID, showDeleted: arg_showDeleted, - showHiddenInvitations: arg_showHiddenInvitations, + pageToken: arg_pageToken, singleEvents: arg_singleEvents, + showHiddenInvitations: arg_showHiddenInvitations, syncToken: arg_syncToken, - timeMax: arg_timeMax, - timeMin: arg_timeMin, + q: arg_q, + privateExtendedProperty: arg_privateExtendedProperty, timeZone: arg_timeZone, + timeMin: arg_timeMin, + alwaysIncludeEmail: arg_alwaysIncludeEmail, + timeMax: arg_timeMax, updatedMin: arg_updatedMin, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4510,8 +4510,8 @@ var mock = new HttpServerMock(); api.SettingsResourceApi res = new api.CalendarApi(mock).settings; var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_syncToken = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4549,9 +4549,9 @@ unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4563,8 +4563,8 @@ res .list( maxResults: arg_maxResults, - pageToken: arg_pageToken, syncToken: arg_syncToken, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSettings(response); @@ -4576,8 +4576,8 @@ api.SettingsResourceApi res = new api.CalendarApi(mock).settings; var arg_request = buildChannel(); var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_syncToken = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Channel.fromJson(json); @@ -4618,9 +4618,9 @@ unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4632,8 +4632,8 @@ res .watch(arg_request, maxResults: arg_maxResults, - pageToken: arg_pageToken, syncToken: arg_syncToken, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannel(response);
diff --git a/generated/googleapis/test/chat/v1_test.dart b/generated/googleapis/test/chat/v1_test.dart index bdbcec6..69a08b3 100644 --- a/generated/googleapis/test/chat/v1_test.dart +++ b/generated/googleapis/test/chat/v1_test.dart
@@ -98,6 +98,7 @@ buildCounterAnnotation++; if (buildCounterAnnotation < 3) { o.length = 42; + o.slashCommand = buildSlashCommandMetadata(); o.startIndex = 42; o.type = "foo"; o.userMention = buildUserMentionMetadata(); @@ -110,6 +111,7 @@ buildCounterAnnotation++; if (buildCounterAnnotation < 3) { unittest.expect(o.length, unittest.equals(42)); + checkSlashCommandMetadata(o.slashCommand); unittest.expect(o.startIndex, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); checkUserMentionMetadata(o.userMention); @@ -117,6 +119,58 @@ buildCounterAnnotation--; } +core.int buildCounterAttachment = 0; +buildAttachment() { + var o = new api.Attachment(); + buildCounterAttachment++; + if (buildCounterAttachment < 3) { + o.attachmentDataRef = buildAttachmentDataRef(); + o.contentName = "foo"; + o.contentType = "foo"; + o.downloadUri = "foo"; + o.driveDataRef = buildDriveDataRef(); + o.name = "foo"; + o.source = "foo"; + o.thumbnailUri = "foo"; + } + buildCounterAttachment--; + return o; +} + +checkAttachment(api.Attachment o) { + buildCounterAttachment++; + if (buildCounterAttachment < 3) { + checkAttachmentDataRef(o.attachmentDataRef); + unittest.expect(o.contentName, unittest.equals('foo')); + unittest.expect(o.contentType, unittest.equals('foo')); + unittest.expect(o.downloadUri, unittest.equals('foo')); + checkDriveDataRef(o.driveDataRef); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.source, unittest.equals('foo')); + unittest.expect(o.thumbnailUri, unittest.equals('foo')); + } + buildCounterAttachment--; +} + +core.int buildCounterAttachmentDataRef = 0; +buildAttachmentDataRef() { + var o = new api.AttachmentDataRef(); + buildCounterAttachmentDataRef++; + if (buildCounterAttachmentDataRef < 3) { + o.resourceName = "foo"; + } + buildCounterAttachmentDataRef--; + return o; +} + +checkAttachmentDataRef(api.AttachmentDataRef o) { + buildCounterAttachmentDataRef++; + if (buildCounterAttachmentDataRef < 3) { + unittest.expect(o.resourceName, unittest.equals('foo')); + } + buildCounterAttachmentDataRef--; +} + core.int buildCounterButton = 0; buildButton() { var o = new api.Button(); @@ -138,27 +192,27 @@ buildCounterButton--; } -buildUnnamed3359() { +buildUnnamed3521() { var o = new core.List<api.CardAction>(); o.add(buildCardAction()); o.add(buildCardAction()); return o; } -checkUnnamed3359(core.List<api.CardAction> o) { +checkUnnamed3521(core.List<api.CardAction> o) { unittest.expect(o, unittest.hasLength(2)); checkCardAction(o[0]); checkCardAction(o[1]); } -buildUnnamed3360() { +buildUnnamed3522() { var o = new core.List<api.Section>(); o.add(buildSection()); o.add(buildSection()); return o; } -checkUnnamed3360(core.List<api.Section> o) { +checkUnnamed3522(core.List<api.Section> o) { unittest.expect(o, unittest.hasLength(2)); checkSection(o[0]); checkSection(o[1]); @@ -169,10 +223,10 @@ var o = new api.Card(); buildCounterCard++; if (buildCounterCard < 3) { - o.cardActions = buildUnnamed3359(); + o.cardActions = buildUnnamed3521(); o.header = buildCardHeader(); o.name = "foo"; - o.sections = buildUnnamed3360(); + o.sections = buildUnnamed3522(); } buildCounterCard--; return o; @@ -181,10 +235,10 @@ checkCard(api.Card o) { buildCounterCard++; if (buildCounterCard < 3) { - checkUnnamed3359(o.cardActions); + checkUnnamed3521(o.cardActions); checkCardHeader(o.header); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3360(o.sections); + checkUnnamed3522(o.sections); } buildCounterCard--; } @@ -270,6 +324,25 @@ buildCounterDeprecatedEvent--; } +core.int buildCounterDriveDataRef = 0; +buildDriveDataRef() { + var o = new api.DriveDataRef(); + buildCounterDriveDataRef++; + if (buildCounterDriveDataRef < 3) { + o.driveFileId = "foo"; + } + buildCounterDriveDataRef--; + return o; +} + +checkDriveDataRef(api.DriveDataRef o) { + buildCounterDriveDataRef++; + if (buildCounterDriveDataRef < 3) { + unittest.expect(o.driveFileId, unittest.equals('foo')); + } + buildCounterDriveDataRef--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -285,14 +358,14 @@ buildCounterEmpty--; } -buildUnnamed3361() { +buildUnnamed3523() { var o = new core.List<api.ActionParameter>(); o.add(buildActionParameter()); o.add(buildActionParameter()); return o; } -checkUnnamed3361(core.List<api.ActionParameter> o) { +checkUnnamed3523(core.List<api.ActionParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkActionParameter(o[0]); checkActionParameter(o[1]); @@ -304,7 +377,7 @@ buildCounterFormAction++; if (buildCounterFormAction < 3) { o.actionMethodName = "foo"; - o.parameters = buildUnnamed3361(); + o.parameters = buildUnnamed3523(); } buildCounterFormAction--; return o; @@ -314,7 +387,7 @@ buildCounterFormAction++; if (buildCounterFormAction < 3) { unittest.expect(o.actionMethodName, unittest.equals('foo')); - checkUnnamed3361(o.parameters); + checkUnnamed3523(o.parameters); } buildCounterFormAction--; } @@ -400,14 +473,14 @@ buildCounterKeyValue--; } -buildUnnamed3362() { +buildUnnamed3524() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed3362(core.List<api.Membership> o) { +checkUnnamed3524(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); @@ -418,7 +491,7 @@ var o = new api.ListMembershipsResponse(); buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - o.memberships = buildUnnamed3362(); + o.memberships = buildUnnamed3524(); o.nextPageToken = "foo"; } buildCounterListMembershipsResponse--; @@ -428,20 +501,20 @@ checkListMembershipsResponse(api.ListMembershipsResponse o) { buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - checkUnnamed3362(o.memberships); + checkUnnamed3524(o.memberships); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMembershipsResponse--; } -buildUnnamed3363() { +buildUnnamed3525() { var o = new core.List<api.Space>(); o.add(buildSpace()); o.add(buildSpace()); return o; } -checkUnnamed3363(core.List<api.Space> o) { +checkUnnamed3525(core.List<api.Space> o) { unittest.expect(o, unittest.hasLength(2)); checkSpace(o[0]); checkSpace(o[1]); @@ -453,7 +526,7 @@ buildCounterListSpacesResponse++; if (buildCounterListSpacesResponse < 3) { o.nextPageToken = "foo"; - o.spaces = buildUnnamed3363(); + o.spaces = buildUnnamed3525(); } buildCounterListSpacesResponse--; return o; @@ -463,11 +536,30 @@ buildCounterListSpacesResponse++; if (buildCounterListSpacesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3363(o.spaces); + checkUnnamed3525(o.spaces); } buildCounterListSpacesResponse--; } +core.int buildCounterMedia = 0; +buildMedia() { + var o = new api.Media(); + buildCounterMedia++; + if (buildCounterMedia < 3) { + o.resourceName = "foo"; + } + buildCounterMedia--; + return o; +} + +checkMedia(api.Media o) { + buildCounterMedia++; + if (buildCounterMedia < 3) { + unittest.expect(o.resourceName, unittest.equals('foo')); + } + buildCounterMedia--; +} + core.int buildCounterMembership = 0; buildMembership() { var o = new api.Membership(); @@ -493,27 +585,40 @@ buildCounterMembership--; } -buildUnnamed3364() { +buildUnnamed3526() { var o = new core.List<api.Annotation>(); o.add(buildAnnotation()); o.add(buildAnnotation()); return o; } -checkUnnamed3364(core.List<api.Annotation> o) { +checkUnnamed3526(core.List<api.Annotation> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotation(o[0]); checkAnnotation(o[1]); } -buildUnnamed3365() { +buildUnnamed3527() { + var o = new core.List<api.Attachment>(); + o.add(buildAttachment()); + o.add(buildAttachment()); + return o; +} + +checkUnnamed3527(core.List<api.Attachment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAttachment(o[0]); + checkAttachment(o[1]); +} + +buildUnnamed3528() { var o = new core.List<api.Card>(); o.add(buildCard()); o.add(buildCard()); return o; } -checkUnnamed3365(core.List<api.Card> o) { +checkUnnamed3528(core.List<api.Card> o) { unittest.expect(o, unittest.hasLength(2)); checkCard(o[0]); checkCard(o[1]); @@ -525,14 +630,16 @@ buildCounterMessage++; if (buildCounterMessage < 3) { o.actionResponse = buildActionResponse(); - o.annotations = buildUnnamed3364(); + o.annotations = buildUnnamed3526(); o.argumentText = "foo"; - o.cards = buildUnnamed3365(); + o.attachment = buildUnnamed3527(); + o.cards = buildUnnamed3528(); o.createTime = "foo"; o.fallbackText = "foo"; o.name = "foo"; o.previewText = "foo"; o.sender = buildUser(); + o.slashCommand = buildSlashCommand(); o.space = buildSpace(); o.text = "foo"; o.thread = buildThread(); @@ -545,14 +652,16 @@ buildCounterMessage++; if (buildCounterMessage < 3) { checkActionResponse(o.actionResponse); - checkUnnamed3364(o.annotations); + checkUnnamed3526(o.annotations); unittest.expect(o.argumentText, unittest.equals('foo')); - checkUnnamed3365(o.cards); + checkUnnamed3527(o.attachment); + checkUnnamed3528(o.cards); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.fallbackText, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.previewText, unittest.equals('foo')); checkUser(o.sender); + checkSlashCommand(o.slashCommand); checkSpace(o.space); unittest.expect(o.text, unittest.equals('foo')); checkThread(o.thread); @@ -600,14 +709,14 @@ buildCounterOpenLink--; } -buildUnnamed3366() { +buildUnnamed3529() { var o = new core.List<api.WidgetMarkup>(); o.add(buildWidgetMarkup()); o.add(buildWidgetMarkup()); return o; } -checkUnnamed3366(core.List<api.WidgetMarkup> o) { +checkUnnamed3529(core.List<api.WidgetMarkup> o) { unittest.expect(o, unittest.hasLength(2)); checkWidgetMarkup(o[0]); checkWidgetMarkup(o[1]); @@ -619,7 +728,7 @@ buildCounterSection++; if (buildCounterSection < 3) { o.header = "foo"; - o.widgets = buildUnnamed3366(); + o.widgets = buildUnnamed3529(); } buildCounterSection--; return o; @@ -629,11 +738,57 @@ buildCounterSection++; if (buildCounterSection < 3) { unittest.expect(o.header, unittest.equals('foo')); - checkUnnamed3366(o.widgets); + checkUnnamed3529(o.widgets); } buildCounterSection--; } +core.int buildCounterSlashCommand = 0; +buildSlashCommand() { + var o = new api.SlashCommand(); + buildCounterSlashCommand++; + if (buildCounterSlashCommand < 3) { + o.commandId = "foo"; + } + buildCounterSlashCommand--; + return o; +} + +checkSlashCommand(api.SlashCommand o) { + buildCounterSlashCommand++; + if (buildCounterSlashCommand < 3) { + unittest.expect(o.commandId, unittest.equals('foo')); + } + buildCounterSlashCommand--; +} + +core.int buildCounterSlashCommandMetadata = 0; +buildSlashCommandMetadata() { + var o = new api.SlashCommandMetadata(); + buildCounterSlashCommandMetadata++; + if (buildCounterSlashCommandMetadata < 3) { + o.bot = buildUser(); + o.commandId = "foo"; + o.commandName = "foo"; + o.triggersDialog = true; + o.type = "foo"; + } + buildCounterSlashCommandMetadata--; + return o; +} + +checkSlashCommandMetadata(api.SlashCommandMetadata o) { + buildCounterSlashCommandMetadata++; + if (buildCounterSlashCommandMetadata < 3) { + checkUser(o.bot); + unittest.expect(o.commandId, unittest.equals('foo')); + unittest.expect(o.commandName, unittest.equals('foo')); + unittest.expect(o.triggersDialog, unittest.isTrue); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterSlashCommandMetadata--; +} + core.int buildCounterSpace = 0; buildSpace() { var o = new api.Space(); @@ -641,6 +796,8 @@ if (buildCounterSpace < 3) { o.displayName = "foo"; o.name = "foo"; + o.singleUserBotDm = true; + o.threaded = true; o.type = "foo"; } buildCounterSpace--; @@ -652,6 +809,8 @@ if (buildCounterSpace < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.singleUserBotDm, unittest.isTrue); + unittest.expect(o.threaded, unittest.isTrue); unittest.expect(o.type, unittest.equals('foo')); } buildCounterSpace--; @@ -762,14 +921,14 @@ buildCounterUserMentionMetadata--; } -buildUnnamed3367() { +buildUnnamed3530() { var o = new core.List<api.Button>(); o.add(buildButton()); o.add(buildButton()); return o; } -checkUnnamed3367(core.List<api.Button> o) { +checkUnnamed3530(core.List<api.Button> o) { unittest.expect(o, unittest.hasLength(2)); checkButton(o[0]); checkButton(o[1]); @@ -780,7 +939,7 @@ var o = new api.WidgetMarkup(); buildCounterWidgetMarkup++; if (buildCounterWidgetMarkup < 3) { - o.buttons = buildUnnamed3367(); + o.buttons = buildUnnamed3530(); o.image = buildImage(); o.keyValue = buildKeyValue(); o.textParagraph = buildTextParagraph(); @@ -792,7 +951,7 @@ checkWidgetMarkup(api.WidgetMarkup o) { buildCounterWidgetMarkup++; if (buildCounterWidgetMarkup < 3) { - checkUnnamed3367(o.buttons); + checkUnnamed3530(o.buttons); checkImage(o.image); checkKeyValue(o.keyValue); checkTextParagraph(o.textParagraph); @@ -825,6 +984,22 @@ }); }); + unittest.group("obj-schema-Attachment", () { + unittest.test("to-json--from-json", () { + var o = buildAttachment(); + var od = new api.Attachment.fromJson(o.toJson()); + checkAttachment(od); + }); + }); + + unittest.group("obj-schema-AttachmentDataRef", () { + unittest.test("to-json--from-json", () { + var o = buildAttachmentDataRef(); + var od = new api.AttachmentDataRef.fromJson(o.toJson()); + checkAttachmentDataRef(od); + }); + }); + unittest.group("obj-schema-Button", () { unittest.test("to-json--from-json", () { var o = buildButton(); @@ -865,6 +1040,14 @@ }); }); + unittest.group("obj-schema-DriveDataRef", () { + unittest.test("to-json--from-json", () { + var o = buildDriveDataRef(); + var od = new api.DriveDataRef.fromJson(o.toJson()); + checkDriveDataRef(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -921,6 +1104,14 @@ }); }); + unittest.group("obj-schema-Media", () { + unittest.test("to-json--from-json", () { + var o = buildMedia(); + var od = new api.Media.fromJson(o.toJson()); + checkMedia(od); + }); + }); + unittest.group("obj-schema-Membership", () { unittest.test("to-json--from-json", () { var o = buildMembership(); @@ -961,6 +1152,22 @@ }); }); + unittest.group("obj-schema-SlashCommand", () { + unittest.test("to-json--from-json", () { + var o = buildSlashCommand(); + var od = new api.SlashCommand.fromJson(o.toJson()); + checkSlashCommand(od); + }); + }); + + unittest.group("obj-schema-SlashCommandMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildSlashCommandMetadata(); + var od = new api.SlashCommandMetadata.fromJson(o.toJson()); + checkSlashCommandMetadata(od); + }); + }); + unittest.group("obj-schema-Space", () { unittest.test("to-json--from-json", () { var o = buildSpace(); @@ -1017,6 +1224,62 @@ }); }); + unittest.group("resource-MediaResourceApi", () { + unittest.test("method--download", () { + // TODO: Implement tests for media upload; + // TODO: Implement tests for media download; + + var mock = new HttpServerMock(); + api.MediaResourceApi res = new api.ChatApi(mock).media; + var arg_resourceName = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("v1/media/")); + pathOffset += 9; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildMedia()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .download(arg_resourceName, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkMedia(response); + }))); + }); + }); + unittest.group("resource-SpacesResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -1184,8 +1447,8 @@ var mock = new HttpServerMock(); api.SpacesMembersResourceApi res = new api.ChatApi(mock).spaces.members; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1218,10 +1481,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1232,8 +1495,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMembershipsResponse(response); @@ -1462,4 +1725,58 @@ }))); }); }); + + unittest.group("resource-SpacesMessagesAttachmentsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.SpacesMessagesAttachmentsResourceApi res = + new api.ChatApi(mock).spaces.messages.attachments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAttachment()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAttachment(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/civicinfo/v2_test.dart b/generated/googleapis/test/civicinfo/v2_test.dart index 3e1e873..325ef8b 100644 --- a/generated/googleapis/test/civicinfo/v2_test.dart +++ b/generated/googleapis/test/civicinfo/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4629() { +buildUnnamed4970() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed4629(core.List<api.Source> o) { +checkUnnamed4970(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -72,7 +72,7 @@ o.id = "foo"; o.localJurisdiction = buildAdministrationRegion(); o.name = "foo"; - o.sources = buildUnnamed4629(); + o.sources = buildUnnamed4970(); } buildCounterAdministrationRegion--; return o; @@ -85,45 +85,32 @@ unittest.expect(o.id, unittest.equals('foo')); checkAdministrationRegion(o.localJurisdiction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4629(o.sources); + checkUnnamed4970(o.sources); } buildCounterAdministrationRegion--; } -buildUnnamed4630() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4630(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4631() { +buildUnnamed4971() { var o = new core.List<api.ElectionOfficial>(); o.add(buildElectionOfficial()); o.add(buildElectionOfficial()); return o; } -checkUnnamed4631(core.List<api.ElectionOfficial> o) { +checkUnnamed4971(core.List<api.ElectionOfficial> o) { unittest.expect(o, unittest.hasLength(2)); checkElectionOfficial(o[0]); checkElectionOfficial(o[1]); } -buildUnnamed4632() { +buildUnnamed4972() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4632(core.List<core.String> o) { +checkUnnamed4972(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -135,18 +122,19 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { o.absenteeVotingInfoUrl = "foo"; - o.addressLines = buildUnnamed4630(); o.ballotInfoUrl = "foo"; o.correspondenceAddress = buildSimpleAddressType(); o.electionInfoUrl = "foo"; - o.electionOfficials = buildUnnamed4631(); + o.electionNoticeText = "foo"; + o.electionNoticeUrl = "foo"; + o.electionOfficials = buildUnnamed4971(); o.electionRegistrationConfirmationUrl = "foo"; o.electionRegistrationUrl = "foo"; o.electionRulesUrl = "foo"; o.hoursOfOperation = "foo"; o.name = "foo"; o.physicalAddress = buildSimpleAddressType(); - o.voterServices = buildUnnamed4632(); + o.voterServices = buildUnnamed4972(); o.votingLocationFinderUrl = "foo"; } buildCounterAdministrativeBody--; @@ -157,11 +145,12 @@ buildCounterAdministrativeBody++; if (buildCounterAdministrativeBody < 3) { unittest.expect(o.absenteeVotingInfoUrl, unittest.equals('foo')); - checkUnnamed4630(o.addressLines); unittest.expect(o.ballotInfoUrl, unittest.equals('foo')); checkSimpleAddressType(o.correspondenceAddress); unittest.expect(o.electionInfoUrl, unittest.equals('foo')); - checkUnnamed4631(o.electionOfficials); + unittest.expect(o.electionNoticeText, unittest.equals('foo')); + unittest.expect(o.electionNoticeUrl, unittest.equals('foo')); + checkUnnamed4971(o.electionOfficials); unittest.expect( o.electionRegistrationConfirmationUrl, unittest.equals('foo')); unittest.expect(o.electionRegistrationUrl, unittest.equals('foo')); @@ -169,20 +158,20 @@ unittest.expect(o.hoursOfOperation, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkSimpleAddressType(o.physicalAddress); - checkUnnamed4632(o.voterServices); + checkUnnamed4972(o.voterServices); unittest.expect(o.votingLocationFinderUrl, unittest.equals('foo')); } buildCounterAdministrativeBody--; } -buildUnnamed4633() { +buildUnnamed4973() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed4633(core.List<api.Channel> o) { +checkUnnamed4973(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -194,7 +183,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { o.candidateUrl = "foo"; - o.channels = buildUnnamed4633(); + o.channels = buildUnnamed4973(); o.email = "foo"; o.name = "foo"; o.orderOnBallot = "foo"; @@ -210,7 +199,7 @@ buildCounterCandidate++; if (buildCounterCandidate < 3) { unittest.expect(o.candidateUrl, unittest.equals('foo')); - checkUnnamed4633(o.channels); + checkUnnamed4973(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 +231,79 @@ buildCounterChannel--; } -buildUnnamed4634() { +buildUnnamed4974() { var o = new core.List<api.Candidate>(); o.add(buildCandidate()); o.add(buildCandidate()); return o; } -checkUnnamed4634(core.List<api.Candidate> o) { +checkUnnamed4974(core.List<api.Candidate> o) { unittest.expect(o, unittest.hasLength(2)); checkCandidate(o[0]); checkCandidate(o[1]); } -buildUnnamed4635() { +buildUnnamed4975() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4635(core.List<core.String> o) { +checkUnnamed4975(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4636() { +buildUnnamed4976() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4636(core.List<core.String> o) { +checkUnnamed4976(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4637() { +buildUnnamed4977() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4637(core.List<core.String> o) { +checkUnnamed4977(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4638() { +buildUnnamed4978() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4978(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4979() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed4638(core.List<api.Source> o) { +checkUnnamed4979(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -314,16 +316,17 @@ if (buildCounterContest < 3) { o.ballotPlacement = "foo"; o.ballotTitle = "foo"; - o.candidates = buildUnnamed4634(); + o.candidates = buildUnnamed4974(); o.district = buildElectoralDistrict(); o.electorateSpecifications = "foo"; o.id = "foo"; - o.level = buildUnnamed4635(); + o.level = buildUnnamed4975(); o.numberElected = "foo"; o.numberVotingFor = "foo"; o.office = "foo"; + o.primaryParties = buildUnnamed4976(); o.primaryParty = "foo"; - o.referendumBallotResponses = buildUnnamed4636(); + o.referendumBallotResponses = buildUnnamed4977(); o.referendumBrief = "foo"; o.referendumConStatement = "foo"; o.referendumEffectOfAbstain = "foo"; @@ -333,8 +336,8 @@ o.referendumText = "foo"; o.referendumTitle = "foo"; o.referendumUrl = "foo"; - o.roles = buildUnnamed4637(); - o.sources = buildUnnamed4638(); + o.roles = buildUnnamed4978(); + o.sources = buildUnnamed4979(); o.special = "foo"; o.type = "foo"; } @@ -347,16 +350,17 @@ if (buildCounterContest < 3) { unittest.expect(o.ballotPlacement, unittest.equals('foo')); unittest.expect(o.ballotTitle, unittest.equals('foo')); - checkUnnamed4634(o.candidates); + checkUnnamed4974(o.candidates); checkElectoralDistrict(o.district); unittest.expect(o.electorateSpecifications, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4635(o.level); + checkUnnamed4975(o.level); unittest.expect(o.numberElected, unittest.equals('foo')); unittest.expect(o.numberVotingFor, unittest.equals('foo')); unittest.expect(o.office, unittest.equals('foo')); + checkUnnamed4976(o.primaryParties); unittest.expect(o.primaryParty, unittest.equals('foo')); - checkUnnamed4636(o.referendumBallotResponses); + checkUnnamed4977(o.referendumBallotResponses); unittest.expect(o.referendumBrief, unittest.equals('foo')); unittest.expect(o.referendumConStatement, unittest.equals('foo')); unittest.expect(o.referendumEffectOfAbstain, unittest.equals('foo')); @@ -366,80 +370,22 @@ unittest.expect(o.referendumText, unittest.equals('foo')); unittest.expect(o.referendumTitle, unittest.equals('foo')); unittest.expect(o.referendumUrl, unittest.equals('foo')); - checkUnnamed4637(o.roles); - checkUnnamed4638(o.sources); + checkUnnamed4978(o.roles); + checkUnnamed4979(o.sources); unittest.expect(o.special, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterContest--; } -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--; -} - -buildUnnamed4639() { +buildUnnamed4980() { var o = new core.List<api.DivisionSearchResult>(); o.add(buildDivisionSearchResult()); o.add(buildDivisionSearchResult()); return o; } -checkUnnamed4639(core.List<api.DivisionSearchResult> o) { +checkUnnamed4980(core.List<api.DivisionSearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkDivisionSearchResult(o[0]); checkDivisionSearchResult(o[1]); @@ -451,7 +397,7 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed4639(); + o.results = buildUnnamed4980(); } buildCounterDivisionSearchResponse--; return o; @@ -461,19 +407,19 @@ buildCounterDivisionSearchResponse++; if (buildCounterDivisionSearchResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4639(o.results); + checkUnnamed4980(o.results); } buildCounterDivisionSearchResponse--; } -buildUnnamed4640() { +buildUnnamed4981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4640(core.List<core.String> o) { +checkUnnamed4981(core.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,7 +430,7 @@ var o = new api.DivisionSearchResult(); buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - o.aliases = buildUnnamed4640(); + o.aliases = buildUnnamed4981(); o.name = "foo"; o.ocdId = "foo"; } @@ -495,7 +441,7 @@ checkDivisionSearchResult(api.DivisionSearchResult o) { buildCounterDivisionSearchResult++; if (buildCounterDivisionSearchResult < 3) { - checkUnnamed4640(o.aliases); + checkUnnamed4981(o.aliases); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ocdId, unittest.equals('foo')); } @@ -554,33 +500,14 @@ buildCounterElectionOfficial--; } -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--; -} - -buildUnnamed4641() { +buildUnnamed4982() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed4641(core.List<api.Election> o) { +checkUnnamed4982(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); @@ -591,7 +518,7 @@ var o = new api.ElectionsQueryResponse(); buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - o.elections = buildUnnamed4641(); + o.elections = buildUnnamed4982(); o.kind = "foo"; } buildCounterElectionsQueryResponse--; @@ -601,7 +528,7 @@ checkElectionsQueryResponse(api.ElectionsQueryResponse o) { buildCounterElectionsQueryResponse++; if (buildCounterElectionsQueryResponse < 3) { - checkUnnamed4641(o.elections); + checkUnnamed4982(o.elections); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterElectionsQueryResponse--; @@ -613,7 +540,6 @@ buildCounterElectoralDistrict++; if (buildCounterElectoralDistrict < 3) { o.id = "foo"; - o.kgForeignKey = "foo"; o.name = "foo"; o.scope = "foo"; } @@ -625,53 +551,33 @@ buildCounterElectoralDistrict++; if (buildCounterElectoralDistrict < 3) { unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kgForeignKey, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.scope, unittest.equals('foo')); } buildCounterElectoralDistrict--; } -core.int buildCounterFieldMetadataProto = 0; -buildFieldMetadataProto() { - var o = new api.FieldMetadataProto(); - buildCounterFieldMetadataProto++; - if (buildCounterFieldMetadataProto < 3) { - o.internal = buildInternalFieldMetadataProto(); - } - buildCounterFieldMetadataProto--; - return o; -} - -checkFieldMetadataProto(api.FieldMetadataProto o) { - buildCounterFieldMetadataProto++; - if (buildCounterFieldMetadataProto < 3) { - checkInternalFieldMetadataProto(o.internal); - } - buildCounterFieldMetadataProto--; -} - -buildUnnamed4642() { +buildUnnamed4983() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4642(core.List<core.String> o) { +checkUnnamed4983(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4643() { +buildUnnamed4984() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4643(core.List<core.int> o) { +checkUnnamed4984(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)); @@ -682,9 +588,9 @@ var o = new api.GeographicDivision(); buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - o.alsoKnownAs = buildUnnamed4642(); + o.alsoKnownAs = buildUnnamed4983(); o.name = "foo"; - o.officeIndices = buildUnnamed4643(); + o.officeIndices = buildUnnamed4984(); } buildCounterGeographicDivision--; return o; @@ -693,102 +599,60 @@ checkGeographicDivision(api.GeographicDivision o) { buildCounterGeographicDivision++; if (buildCounterGeographicDivision < 3) { - checkUnnamed4642(o.alsoKnownAs); + checkUnnamed4983(o.alsoKnownAs); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4643(o.officeIndices); + checkUnnamed4984(o.officeIndices); } buildCounterGeographicDivision--; } -core.int buildCounterInternalFieldMetadataProto = 0; -buildInternalFieldMetadataProto() { - var o = new api.InternalFieldMetadataProto(); - buildCounterInternalFieldMetadataProto++; - if (buildCounterInternalFieldMetadataProto < 3) { - o.isAuto = true; - o.sourceSummary = buildInternalSourceSummaryProto(); - } - buildCounterInternalFieldMetadataProto--; - return o; -} - -checkInternalFieldMetadataProto(api.InternalFieldMetadataProto o) { - buildCounterInternalFieldMetadataProto++; - if (buildCounterInternalFieldMetadataProto < 3) { - unittest.expect(o.isAuto, unittest.isTrue); - checkInternalSourceSummaryProto(o.sourceSummary); - } - buildCounterInternalFieldMetadataProto--; -} - -core.int buildCounterInternalSourceSummaryProto = 0; -buildInternalSourceSummaryProto() { - var o = new api.InternalSourceSummaryProto(); - buildCounterInternalSourceSummaryProto++; - if (buildCounterInternalSourceSummaryProto < 3) { - o.dataset = "foo"; - o.provider = "foo"; - } - buildCounterInternalSourceSummaryProto--; - return o; -} - -checkInternalSourceSummaryProto(api.InternalSourceSummaryProto o) { - buildCounterInternalSourceSummaryProto++; - if (buildCounterInternalSourceSummaryProto < 3) { - unittest.expect(o.dataset, unittest.equals('foo')); - unittest.expect(o.provider, unittest.equals('foo')); - } - buildCounterInternalSourceSummaryProto--; -} - -buildUnnamed4644() { +buildUnnamed4985() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4644(core.List<core.String> o) { +checkUnnamed4985(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4645() { +buildUnnamed4986() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4645(core.List<core.int> o) { +checkUnnamed4986(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)); } -buildUnnamed4646() { +buildUnnamed4987() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4646(core.List<core.String> o) { +checkUnnamed4987(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4647() { +buildUnnamed4988() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed4647(core.List<api.Source> o) { +checkUnnamed4988(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -800,11 +664,11 @@ buildCounterOffice++; if (buildCounterOffice < 3) { o.divisionId = "foo"; - o.levels = buildUnnamed4644(); + o.levels = buildUnnamed4985(); o.name = "foo"; - o.officialIndices = buildUnnamed4645(); - o.roles = buildUnnamed4646(); - o.sources = buildUnnamed4647(); + o.officialIndices = buildUnnamed4986(); + o.roles = buildUnnamed4987(); + o.sources = buildUnnamed4988(); } buildCounterOffice--; return o; @@ -814,75 +678,75 @@ buildCounterOffice++; if (buildCounterOffice < 3) { unittest.expect(o.divisionId, unittest.equals('foo')); - checkUnnamed4644(o.levels); + checkUnnamed4985(o.levels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4645(o.officialIndices); - checkUnnamed4646(o.roles); - checkUnnamed4647(o.sources); + checkUnnamed4986(o.officialIndices); + checkUnnamed4987(o.roles); + checkUnnamed4988(o.sources); } buildCounterOffice--; } -buildUnnamed4648() { +buildUnnamed4989() { var o = new core.List<api.SimpleAddressType>(); o.add(buildSimpleAddressType()); o.add(buildSimpleAddressType()); return o; } -checkUnnamed4648(core.List<api.SimpleAddressType> o) { +checkUnnamed4989(core.List<api.SimpleAddressType> o) { unittest.expect(o, unittest.hasLength(2)); checkSimpleAddressType(o[0]); checkSimpleAddressType(o[1]); } -buildUnnamed4649() { +buildUnnamed4990() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed4649(core.List<api.Channel> o) { +checkUnnamed4990(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); } -buildUnnamed4650() { +buildUnnamed4991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4650(core.List<core.String> o) { +checkUnnamed4991(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4651() { +buildUnnamed4992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4651(core.List<core.String> o) { +checkUnnamed4992(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4652() { +buildUnnamed4993() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4652(core.List<core.String> o) { +checkUnnamed4993(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -893,14 +757,14 @@ var o = new api.Official(); buildCounterOfficial++; if (buildCounterOfficial < 3) { - o.address = buildUnnamed4648(); - o.channels = buildUnnamed4649(); - o.emails = buildUnnamed4650(); + o.address = buildUnnamed4989(); + o.channels = buildUnnamed4990(); + o.emails = buildUnnamed4991(); o.name = "foo"; o.party = "foo"; - o.phones = buildUnnamed4651(); + o.phones = buildUnnamed4992(); o.photoUrl = "foo"; - o.urls = buildUnnamed4652(); + o.urls = buildUnnamed4993(); } buildCounterOfficial--; return o; @@ -909,49 +773,26 @@ checkOfficial(api.Official o) { buildCounterOfficial++; if (buildCounterOfficial < 3) { - checkUnnamed4648(o.address); - checkUnnamed4649(o.channels); - checkUnnamed4650(o.emails); + checkUnnamed4989(o.address); + checkUnnamed4990(o.channels); + checkUnnamed4991(o.emails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.party, unittest.equals('foo')); - checkUnnamed4651(o.phones); + checkUnnamed4992(o.phones); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed4652(o.urls); + checkUnnamed4993(o.urls); } buildCounterOfficial--; } -core.int buildCounterPointProto = 0; -buildPointProto() { - var o = new api.PointProto(); - buildCounterPointProto++; - if (buildCounterPointProto < 3) { - o.latE7 = 42; - o.lngE7 = 42; - o.metadata = buildFieldMetadataProto(); - } - buildCounterPointProto--; - return o; -} - -checkPointProto(api.PointProto o) { - buildCounterPointProto++; - if (buildCounterPointProto < 3) { - unittest.expect(o.latE7, unittest.equals(42)); - unittest.expect(o.lngE7, unittest.equals(42)); - checkFieldMetadataProto(o.metadata); - } - buildCounterPointProto--; -} - -buildUnnamed4653() { +buildUnnamed4994() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed4653(core.List<api.Source> o) { +checkUnnamed4994(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -970,7 +811,7 @@ o.name = "foo"; o.notes = "foo"; o.pollingHours = "foo"; - o.sources = buildUnnamed4653(); + o.sources = buildUnnamed4994(); o.startDate = "foo"; o.voterServices = "foo"; } @@ -989,154 +830,47 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.pollingHours, unittest.equals('foo')); - checkUnnamed4653(o.sources); + checkUnnamed4994(o.sources); unittest.expect(o.startDate, unittest.equals('foo')); unittest.expect(o.voterServices, unittest.equals('foo')); } buildCounterPollingLocation--; } -buildUnnamed4654() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4654(core.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 = buildUnnamed4654(); - o.administrativeAreaName = "foo"; - o.countryName = "foo"; - o.countryNameCode = "foo"; - o.dependentLocalityName = "foo"; - o.dependentThoroughfareName = "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.thoroughfareName = "foo"; - o.thoroughfareNumber = "foo"; - } - buildCounterPostalAddress--; - return o; -} - -checkPostalAddress(api.PostalAddress o) { - buildCounterPostalAddress++; - if (buildCounterPostalAddress < 3) { - checkUnnamed4654(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.dependentThoroughfareName, 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.thoroughfareName, unittest.equals('foo')); - unittest.expect(o.thoroughfareNumber, unittest.equals('foo')); - } - buildCounterPostalAddress--; -} - -core.int buildCounterProvenance = 0; -buildProvenance() { - var o = new api.Provenance(); - buildCounterProvenance++; - if (buildCounterProvenance < 3) { - o.collidedSegmentSource = buildStreetSegmentList(); - o.ctclContestUuid = "foo"; - o.ctclOfficeUuid = "foo"; - o.datasetId = "foo"; - o.precinctId = "foo"; - o.precinctSplitId = "foo"; - o.tsStreetSegmentId = "foo"; - o.vip5PrecinctId = "foo"; - o.vip5StreetSegmentId = "foo"; - o.vipStreetSegmentId = "foo"; - } - buildCounterProvenance--; - return o; -} - -checkProvenance(api.Provenance o) { - buildCounterProvenance++; - if (buildCounterProvenance < 3) { - checkStreetSegmentList(o.collidedSegmentSource); - unittest.expect(o.ctclContestUuid, unittest.equals('foo')); - unittest.expect(o.ctclOfficeUuid, unittest.equals('foo')); - unittest.expect(o.datasetId, unittest.equals('foo')); - unittest.expect(o.precinctId, unittest.equals('foo')); - unittest.expect(o.precinctSplitId, unittest.equals('foo')); - unittest.expect(o.tsStreetSegmentId, unittest.equals('foo')); - unittest.expect(o.vip5PrecinctId, unittest.equals('foo')); - unittest.expect(o.vip5StreetSegmentId, unittest.equals('foo')); - unittest.expect(o.vipStreetSegmentId, unittest.equals('foo')); - } - buildCounterProvenance--; -} - -buildUnnamed4655() { +buildUnnamed4995() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed4655(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed4995(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed4656() { +buildUnnamed4996() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed4656(core.List<api.Office> o) { +checkUnnamed4996(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed4657() { +buildUnnamed4997() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed4657(core.List<api.Official> o) { +checkUnnamed4997(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1147,9 +881,9 @@ var o = new api.RepresentativeInfoData(); buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - o.divisions = buildUnnamed4655(); - o.offices = buildUnnamed4656(); - o.officials = buildUnnamed4657(); + o.divisions = buildUnnamed4995(); + o.offices = buildUnnamed4996(); + o.officials = buildUnnamed4997(); } buildCounterRepresentativeInfoData--; return o; @@ -1158,66 +892,47 @@ checkRepresentativeInfoData(api.RepresentativeInfoData o) { buildCounterRepresentativeInfoData++; if (buildCounterRepresentativeInfoData < 3) { - checkUnnamed4655(o.divisions); - checkUnnamed4656(o.offices); - checkUnnamed4657(o.officials); + checkUnnamed4995(o.divisions); + checkUnnamed4996(o.offices); + checkUnnamed4997(o.officials); } buildCounterRepresentativeInfoData--; } -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--; -} - -buildUnnamed4658() { +buildUnnamed4998() { var o = new core.Map<core.String, api.GeographicDivision>(); o["x"] = buildGeographicDivision(); o["y"] = buildGeographicDivision(); return o; } -checkUnnamed4658(core.Map<core.String, api.GeographicDivision> o) { +checkUnnamed4998(core.Map<core.String, api.GeographicDivision> o) { unittest.expect(o, unittest.hasLength(2)); checkGeographicDivision(o["x"]); checkGeographicDivision(o["y"]); } -buildUnnamed4659() { +buildUnnamed4999() { var o = new core.List<api.Office>(); o.add(buildOffice()); o.add(buildOffice()); return o; } -checkUnnamed4659(core.List<api.Office> o) { +checkUnnamed4999(core.List<api.Office> o) { unittest.expect(o, unittest.hasLength(2)); checkOffice(o[0]); checkOffice(o[1]); } -buildUnnamed4660() { +buildUnnamed5000() { var o = new core.List<api.Official>(); o.add(buildOfficial()); o.add(buildOfficial()); return o; } -checkUnnamed4660(core.List<api.Official> o) { +checkUnnamed5000(core.List<api.Official> o) { unittest.expect(o, unittest.hasLength(2)); checkOfficial(o[0]); checkOfficial(o[1]); @@ -1228,11 +943,11 @@ var o = new api.RepresentativeInfoResponse(); buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - o.divisions = buildUnnamed4658(); + o.divisions = buildUnnamed4998(); o.kind = "foo"; o.normalizedInput = buildSimpleAddressType(); - o.offices = buildUnnamed4659(); - o.officials = buildUnnamed4660(); + o.offices = buildUnnamed4999(); + o.officials = buildUnnamed5000(); } buildCounterRepresentativeInfoResponse--; return o; @@ -1241,11 +956,11 @@ checkRepresentativeInfoResponse(api.RepresentativeInfoResponse o) { buildCounterRepresentativeInfoResponse++; if (buildCounterRepresentativeInfoResponse < 3) { - checkUnnamed4658(o.divisions); + checkUnnamed4998(o.divisions); unittest.expect(o.kind, unittest.equals('foo')); checkSimpleAddressType(o.normalizedInput); - checkUnnamed4659(o.offices); - checkUnnamed4660(o.officials); + checkUnnamed4999(o.offices); + checkUnnamed5000(o.officials); } buildCounterRepresentativeInfoResponse--; } @@ -1302,356 +1017,79 @@ buildCounterSource--; } -buildUnnamed4661() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4661(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4662() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4662(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4663() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4663(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4664() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4664(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4665() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4665(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4666() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4666(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed4667() { - var o = new core.List<api.Provenance>(); - o.add(buildProvenance()); - o.add(buildProvenance()); - return o; -} - -checkUnnamed4667(core.List<api.Provenance> o) { - unittest.expect(o, unittest.hasLength(2)); - checkProvenance(o[0]); - checkProvenance(o[1]); -} - -buildUnnamed4668() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed4668(core.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 buildCounterStreetSegment = 0; -buildStreetSegment() { - var o = new api.StreetSegment(); - buildCounterStreetSegment++; - if (buildCounterStreetSegment < 3) { - o.administrationRegionIds = buildUnnamed4661(); - o.beforeGeocodeId = "foo"; - o.catalistUniquePrecinctCode = "foo"; - o.city = "foo"; - o.cityCouncilDistrict = "foo"; - o.congressionalDistrict = "foo"; - o.contestIds = buildUnnamed4662(); - o.countyCouncilDistrict = "foo"; - o.countyFips = "foo"; - o.datasetId = "foo"; - o.earlyVoteSiteByIds = buildUnnamed4663(); - o.endHouseNumber = "foo"; - o.geocodedPoint = buildPointProto(); - o.geographicDivisionOcdIds = buildUnnamed4664(); - o.id = "foo"; - o.judicialDistrict = "foo"; - o.mailOnly = true; - o.municipalDistrict = "foo"; - o.ncoaAddress = "foo"; - o.oddOrEvens = buildUnnamed4665(); - o.originalId = "foo"; - o.pollinglocationByIds = buildUnnamed4666(); - o.precinctName = "foo"; - o.precinctOcdId = "foo"; - o.provenances = buildUnnamed4667(); - o.published = true; - o.schoolDistrict = "foo"; - o.startHouseNumber = "foo"; - o.startLatE7 = 42; - o.startLngE7 = 42; - o.state = "foo"; - o.stateHouseDistrict = "foo"; - o.stateSenateDistrict = "foo"; - o.streetName = "foo"; - o.subAdministrativeAreaName = "foo"; - o.surrogateId = "foo"; - o.targetsmartUniquePrecinctCode = "foo"; - o.townshipDistrict = "foo"; - o.unitNumber = "foo"; - o.unitType = "foo"; - o.vanPrecinctCode = "foo"; - o.voterGeographicDivisionOcdIds = buildUnnamed4668(); - o.wardDistrict = "foo"; - o.wildcard = true; - o.zip = "foo"; - } - buildCounterStreetSegment--; - return o; -} - -checkStreetSegment(api.StreetSegment o) { - buildCounterStreetSegment++; - if (buildCounterStreetSegment < 3) { - checkUnnamed4661(o.administrationRegionIds); - unittest.expect(o.beforeGeocodeId, unittest.equals('foo')); - unittest.expect(o.catalistUniquePrecinctCode, unittest.equals('foo')); - unittest.expect(o.city, unittest.equals('foo')); - unittest.expect(o.cityCouncilDistrict, unittest.equals('foo')); - unittest.expect(o.congressionalDistrict, unittest.equals('foo')); - checkUnnamed4662(o.contestIds); - unittest.expect(o.countyCouncilDistrict, unittest.equals('foo')); - unittest.expect(o.countyFips, unittest.equals('foo')); - unittest.expect(o.datasetId, unittest.equals('foo')); - checkUnnamed4663(o.earlyVoteSiteByIds); - unittest.expect(o.endHouseNumber, unittest.equals('foo')); - checkPointProto(o.geocodedPoint); - checkUnnamed4664(o.geographicDivisionOcdIds); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.judicialDistrict, unittest.equals('foo')); - unittest.expect(o.mailOnly, unittest.isTrue); - unittest.expect(o.municipalDistrict, unittest.equals('foo')); - unittest.expect(o.ncoaAddress, unittest.equals('foo')); - checkUnnamed4665(o.oddOrEvens); - unittest.expect(o.originalId, unittest.equals('foo')); - checkUnnamed4666(o.pollinglocationByIds); - unittest.expect(o.precinctName, unittest.equals('foo')); - unittest.expect(o.precinctOcdId, unittest.equals('foo')); - checkUnnamed4667(o.provenances); - unittest.expect(o.published, unittest.isTrue); - unittest.expect(o.schoolDistrict, unittest.equals('foo')); - unittest.expect(o.startHouseNumber, unittest.equals('foo')); - unittest.expect(o.startLatE7, unittest.equals(42)); - unittest.expect(o.startLngE7, unittest.equals(42)); - unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.stateHouseDistrict, unittest.equals('foo')); - unittest.expect(o.stateSenateDistrict, unittest.equals('foo')); - unittest.expect(o.streetName, unittest.equals('foo')); - unittest.expect(o.subAdministrativeAreaName, unittest.equals('foo')); - unittest.expect(o.surrogateId, unittest.equals('foo')); - unittest.expect(o.targetsmartUniquePrecinctCode, unittest.equals('foo')); - unittest.expect(o.townshipDistrict, unittest.equals('foo')); - unittest.expect(o.unitNumber, unittest.equals('foo')); - unittest.expect(o.unitType, unittest.equals('foo')); - unittest.expect(o.vanPrecinctCode, unittest.equals('foo')); - checkUnnamed4668(o.voterGeographicDivisionOcdIds); - unittest.expect(o.wardDistrict, unittest.equals('foo')); - unittest.expect(o.wildcard, unittest.isTrue); - unittest.expect(o.zip, unittest.equals('foo')); - } - buildCounterStreetSegment--; -} - -buildUnnamed4669() { - var o = new core.List<api.StreetSegment>(); - o.add(buildStreetSegment()); - o.add(buildStreetSegment()); - return o; -} - -checkUnnamed4669(core.List<api.StreetSegment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStreetSegment(o[0]); - checkStreetSegment(o[1]); -} - -core.int buildCounterStreetSegmentList = 0; -buildStreetSegmentList() { - var o = new api.StreetSegmentList(); - buildCounterStreetSegmentList++; - if (buildCounterStreetSegmentList < 3) { - o.segments = buildUnnamed4669(); - } - buildCounterStreetSegmentList--; - return o; -} - -checkStreetSegmentList(api.StreetSegmentList o) { - buildCounterStreetSegmentList++; - if (buildCounterStreetSegmentList < 3) { - checkUnnamed4669(o.segments); - } - buildCounterStreetSegmentList--; -} - -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--; -} - -buildUnnamed4670() { +buildUnnamed5001() { var o = new core.List<api.Contest>(); o.add(buildContest()); o.add(buildContest()); return o; } -checkUnnamed4670(core.List<api.Contest> o) { +checkUnnamed5001(core.List<api.Contest> o) { unittest.expect(o, unittest.hasLength(2)); checkContest(o[0]); checkContest(o[1]); } -buildUnnamed4671() { +buildUnnamed5002() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed4671(core.List<api.PollingLocation> o) { +checkUnnamed5002(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed4672() { +buildUnnamed5003() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed4672(core.List<api.PollingLocation> o) { +checkUnnamed5003(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed4673() { +buildUnnamed5004() { var o = new core.List<api.Election>(); o.add(buildElection()); o.add(buildElection()); return o; } -checkUnnamed4673(core.List<api.Election> o) { +checkUnnamed5004(core.List<api.Election> o) { unittest.expect(o, unittest.hasLength(2)); checkElection(o[0]); checkElection(o[1]); } -buildUnnamed4674() { +buildUnnamed5005() { var o = new core.List<api.PollingLocation>(); o.add(buildPollingLocation()); o.add(buildPollingLocation()); return o; } -checkUnnamed4674(core.List<api.PollingLocation> o) { +checkUnnamed5005(core.List<api.PollingLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkPollingLocation(o[0]); checkPollingLocation(o[1]); } -buildUnnamed4675() { - var o = new core.List<api.StreetSegment>(); - o.add(buildStreetSegment()); - o.add(buildStreetSegment()); - return o; -} - -checkUnnamed4675(core.List<api.StreetSegment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkStreetSegment(o[0]); - checkStreetSegment(o[1]); -} - -buildUnnamed4676() { +buildUnnamed5006() { var o = new core.List<api.AdministrationRegion>(); o.add(buildAdministrationRegion()); o.add(buildAdministrationRegion()); return o; } -checkUnnamed4676(core.List<api.AdministrationRegion> o) { +checkUnnamed5006(core.List<api.AdministrationRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkAdministrationRegion(o[0]); checkAdministrationRegion(o[1]); @@ -1662,18 +1100,17 @@ var o = new api.VoterInfoResponse(); buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - o.contests = buildUnnamed4670(); - o.dropOffLocations = buildUnnamed4671(); - o.earlyVoteSites = buildUnnamed4672(); + o.contests = buildUnnamed5001(); + o.dropOffLocations = buildUnnamed5002(); + o.earlyVoteSites = buildUnnamed5003(); o.election = buildElection(); o.kind = "foo"; o.mailOnly = true; o.normalizedInput = buildSimpleAddressType(); - o.otherElections = buildUnnamed4673(); - o.pollingLocations = buildUnnamed4674(); + o.otherElections = buildUnnamed5004(); + o.pollingLocations = buildUnnamed5005(); o.precinctId = "foo"; - o.segments = buildUnnamed4675(); - o.state = buildUnnamed4676(); + o.state = buildUnnamed5006(); } buildCounterVoterInfoResponse--; return o; @@ -1682,94 +1119,68 @@ checkVoterInfoResponse(api.VoterInfoResponse o) { buildCounterVoterInfoResponse++; if (buildCounterVoterInfoResponse < 3) { - checkUnnamed4670(o.contests); - checkUnnamed4671(o.dropOffLocations); - checkUnnamed4672(o.earlyVoteSites); + checkUnnamed5001(o.contests); + checkUnnamed5002(o.dropOffLocations); + checkUnnamed5003(o.earlyVoteSites); checkElection(o.election); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.mailOnly, unittest.isTrue); checkSimpleAddressType(o.normalizedInput); - checkUnnamed4673(o.otherElections); - checkUnnamed4674(o.pollingLocations); + checkUnnamed5004(o.otherElections); + checkUnnamed5005(o.pollingLocations); unittest.expect(o.precinctId, unittest.equals('foo')); - checkUnnamed4675(o.segments); - checkUnnamed4676(o.state); + checkUnnamed5006(o.state); } buildCounterVoterInfoResponse--; } -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--; -} - -buildUnnamed4677() { +buildUnnamed5007() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4677(core.List<core.String> o) { +checkUnnamed5007(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4678() { +buildUnnamed5008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4678(core.List<core.String> o) { +checkUnnamed5008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4679() { +buildUnnamed5009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4679(core.List<core.String> o) { +checkUnnamed5009(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4680() { +buildUnnamed5010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4680(core.List<core.String> o) { +checkUnnamed5010(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1816,30 +1227,6 @@ }); }); - 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(); @@ -1872,14 +1259,6 @@ }); }); - 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(); @@ -1896,14 +1275,6 @@ }); }); - unittest.group("obj-schema-FieldMetadataProto", () { - unittest.test("to-json--from-json", () { - var o = buildFieldMetadataProto(); - var od = new api.FieldMetadataProto.fromJson(o.toJson()); - checkFieldMetadataProto(od); - }); - }); - unittest.group("obj-schema-GeographicDivision", () { unittest.test("to-json--from-json", () { var o = buildGeographicDivision(); @@ -1912,22 +1283,6 @@ }); }); - unittest.group("obj-schema-InternalFieldMetadataProto", () { - unittest.test("to-json--from-json", () { - var o = buildInternalFieldMetadataProto(); - var od = new api.InternalFieldMetadataProto.fromJson(o.toJson()); - checkInternalFieldMetadataProto(od); - }); - }); - - unittest.group("obj-schema-InternalSourceSummaryProto", () { - unittest.test("to-json--from-json", () { - var o = buildInternalSourceSummaryProto(); - var od = new api.InternalSourceSummaryProto.fromJson(o.toJson()); - checkInternalSourceSummaryProto(od); - }); - }); - unittest.group("obj-schema-Office", () { unittest.test("to-json--from-json", () { var o = buildOffice(); @@ -1944,14 +1299,6 @@ }); }); - unittest.group("obj-schema-PointProto", () { - unittest.test("to-json--from-json", () { - var o = buildPointProto(); - var od = new api.PointProto.fromJson(o.toJson()); - checkPointProto(od); - }); - }); - unittest.group("obj-schema-PollingLocation", () { unittest.test("to-json--from-json", () { var o = buildPollingLocation(); @@ -1960,22 +1307,6 @@ }); }); - 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-Provenance", () { - unittest.test("to-json--from-json", () { - var o = buildProvenance(); - var od = new api.Provenance.fromJson(o.toJson()); - checkProvenance(od); - }); - }); - unittest.group("obj-schema-RepresentativeInfoData", () { unittest.test("to-json--from-json", () { var o = buildRepresentativeInfoData(); @@ -1984,14 +1315,6 @@ }); }); - 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(); @@ -2016,30 +1339,6 @@ }); }); - unittest.group("obj-schema-StreetSegment", () { - unittest.test("to-json--from-json", () { - var o = buildStreetSegment(); - var od = new api.StreetSegment.fromJson(o.toJson()); - checkStreetSegment(od); - }); - }); - - unittest.group("obj-schema-StreetSegmentList", () { - unittest.test("to-json--from-json", () { - var o = buildStreetSegmentList(); - var od = new api.StreetSegmentList.fromJson(o.toJson()); - checkStreetSegmentList(od); - }); - }); - - 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(); @@ -2048,25 +1347,13 @@ }); }); - 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"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DivisionSearchRequest.fromJson(json); - checkDivisionSearchRequest(obj); - var path = (req.url).path; var pathOffset = 0; var index; @@ -2074,12 +1361,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("civicinfo/v2/")); - pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("divisions")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("civicinfo/v2/divisions")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -2109,7 +1393,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .search(arg_request, query: arg_query, $fields: arg_$fields) + .search(query: arg_query, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDivisionSearchResponse(response); }))); @@ -2120,12 +1404,8 @@ unittest.test("method--electionQuery", () { var mock = new HttpServerMock(); api.ElectionsResourceApi res = new api.CivicinfoApi(mock).elections; - var arg_request = buildElectionsQueryRequest(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.ElectionsQueryRequest.fromJson(json); - checkElectionsQueryRequest(obj); - var path = (req.url).path; var pathOffset = 0; var index; @@ -2133,12 +1413,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("civicinfo/v2/")); - pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("elections")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("civicinfo/v2/elections")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -2167,7 +1444,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .electionQuery(arg_request, $fields: arg_$fields) + .electionQuery($fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkElectionsQueryResponse(response); }))); @@ -2176,16 +1453,12 @@ unittest.test("method--voterInfoQuery", () { 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; + var arg_officialOnly = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.VoterInfoRequest.fromJson(json); - checkVoterInfoRequest(obj); - var path = (req.url).path; var pathOffset = 0; var index; @@ -2193,12 +1466,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("civicinfo/v2/")); - pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("voterinfo")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("civicinfo/v2/voterinfo")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -2222,10 +1492,10 @@ queryMap["address"].first, unittest.equals(arg_address)); unittest.expect( queryMap["electionId"].first, unittest.equals(arg_electionId)); - unittest.expect(queryMap["officialOnly"].first, - unittest.equals("$arg_officialOnly")); unittest.expect(queryMap["returnAllAvailableData"].first, unittest.equals("$arg_returnAllAvailableData")); + unittest.expect(queryMap["officialOnly"].first, + unittest.equals("$arg_officialOnly")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2235,10 +1505,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .voterInfoQuery(arg_request, arg_address, + .voterInfoQuery(arg_address, electionId: arg_electionId, - officialOnly: arg_officialOnly, returnAllAvailableData: arg_returnAllAvailableData, + officialOnly: arg_officialOnly, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVoterInfoResponse(response); @@ -2251,16 +1521,12 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; - var arg_request = buildRepresentativeInfoRequest(); var arg_address = "foo"; + var arg_roles = buildUnnamed5007(); var arg_includeOffices = true; - var arg_levels = buildUnnamed4677(); - var arg_roles = buildUnnamed4678(); + var arg_levels = buildUnnamed5008(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.RepresentativeInfoRequest.fromJson(json); - checkRepresentativeInfoRequest(obj); - var path = (req.url).path; var pathOffset = 0; var index; @@ -2268,12 +1534,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("civicinfo/v2/")); - pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("representatives")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("civicinfo/v2/representatives")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -2295,10 +1558,10 @@ } unittest.expect( queryMap["address"].first, unittest.equals(arg_address)); + unittest.expect(queryMap["roles"], unittest.equals(arg_roles)); unittest.expect(queryMap["includeOffices"].first, unittest.equals("$arg_includeOffices")); unittest.expect(queryMap["levels"], unittest.equals(arg_levels)); - unittest.expect(queryMap["roles"], unittest.equals(arg_roles)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2308,11 +1571,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .representativeInfoByAddress(arg_request, + .representativeInfoByAddress( address: arg_address, + roles: arg_roles, includeOffices: arg_includeOffices, levels: arg_levels, - roles: arg_roles, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRepresentativeInfoResponse(response); @@ -2323,16 +1586,12 @@ var mock = new HttpServerMock(); api.RepresentativesResourceApi res = new api.CivicinfoApi(mock).representatives; - var arg_request = buildDivisionRepresentativeInfoRequest(); var arg_ocdId = "foo"; - var arg_levels = buildUnnamed4679(); var arg_recursive = true; - var arg_roles = buildUnnamed4680(); + var arg_levels = buildUnnamed5009(); + var arg_roles = buildUnnamed5010(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DivisionRepresentativeInfoRequest.fromJson(json); - checkDivisionRepresentativeInfoRequest(obj); - var path = (req.url).path; var pathOffset = 0; var index; @@ -2340,12 +1599,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("civicinfo/v2/")); - pathOffset += 13; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("representatives/")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("civicinfo/v2/representatives/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_ocdId")); @@ -2368,9 +1624,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["levels"], unittest.equals(arg_levels)); unittest.expect( queryMap["recursive"].first, unittest.equals("$arg_recursive")); + unittest.expect(queryMap["levels"], unittest.equals(arg_levels)); unittest.expect(queryMap["roles"], unittest.equals(arg_roles)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2381,9 +1637,9 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .representativeInfoByDivision(arg_request, arg_ocdId, - levels: arg_levels, + .representativeInfoByDivision(arg_ocdId, recursive: arg_recursive, + levels: arg_levels, roles: arg_roles, $fields: arg_$fields) .then(unittest.expectAsync1(((response) {
diff --git a/generated/googleapis/test/classroom/v1_test.dart b/generated/googleapis/test/classroom/v1_test.dart index bf63a10..a9a67d5 100644 --- a/generated/googleapis/test/classroom/v1_test.dart +++ b/generated/googleapis/test/classroom/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2490() { +buildUnnamed2609() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed2490(core.List<api.Material> o) { +checkUnnamed2609(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -75,7 +75,7 @@ o.creatorUserId = "foo"; o.id = "foo"; o.individualStudentsOptions = buildIndividualStudentsOptions(); - o.materials = buildUnnamed2490(); + o.materials = buildUnnamed2609(); o.scheduledTime = "foo"; o.state = "foo"; o.text = "foo"; @@ -95,7 +95,7 @@ unittest.expect(o.creatorUserId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkIndividualStudentsOptions(o.individualStudentsOptions); - checkUnnamed2490(o.materials); + checkUnnamed2609(o.materials); unittest.expect(o.scheduledTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.text, unittest.equals('foo')); @@ -123,14 +123,14 @@ buildCounterAssignment--; } -buildUnnamed2491() { +buildUnnamed2610() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed2491(core.List<api.Attachment> o) { +checkUnnamed2610(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -141,7 +141,7 @@ var o = new api.AssignmentSubmission(); buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - o.attachments = buildUnnamed2491(); + o.attachments = buildUnnamed2610(); } buildCounterAssignmentSubmission--; return o; @@ -150,7 +150,7 @@ checkAssignmentSubmission(api.AssignmentSubmission o) { buildCounterAssignmentSubmission++; if (buildCounterAssignmentSubmission < 3) { - checkUnnamed2491(o.attachments); + checkUnnamed2610(o.attachments); } buildCounterAssignmentSubmission--; } @@ -199,14 +199,14 @@ buildCounterCloudPubsubTopic--; } -buildUnnamed2492() { +buildUnnamed2611() { var o = new core.List<api.CourseMaterialSet>(); o.add(buildCourseMaterialSet()); o.add(buildCourseMaterialSet()); return o; } -checkUnnamed2492(core.List<api.CourseMaterialSet> o) { +checkUnnamed2611(core.List<api.CourseMaterialSet> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterialSet(o[0]); checkCourseMaterialSet(o[1]); @@ -220,7 +220,7 @@ o.alternateLink = "foo"; o.calendarId = "foo"; o.courseGroupEmail = "foo"; - o.courseMaterialSets = buildUnnamed2492(); + o.courseMaterialSets = buildUnnamed2611(); o.courseState = "foo"; o.creationTime = "foo"; o.description = "foo"; @@ -246,7 +246,7 @@ unittest.expect(o.alternateLink, unittest.equals('foo')); unittest.expect(o.calendarId, unittest.equals('foo')); unittest.expect(o.courseGroupEmail, unittest.equals('foo')); - checkUnnamed2492(o.courseMaterialSets); + checkUnnamed2611(o.courseMaterialSets); unittest.expect(o.courseState, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -309,14 +309,14 @@ buildCounterCourseMaterial--; } -buildUnnamed2493() { +buildUnnamed2612() { var o = new core.List<api.CourseMaterial>(); o.add(buildCourseMaterial()); o.add(buildCourseMaterial()); return o; } -checkUnnamed2493(core.List<api.CourseMaterial> o) { +checkUnnamed2612(core.List<api.CourseMaterial> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseMaterial(o[0]); checkCourseMaterial(o[1]); @@ -327,7 +327,7 @@ var o = new api.CourseMaterialSet(); buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - o.materials = buildUnnamed2493(); + o.materials = buildUnnamed2612(); o.title = "foo"; } buildCounterCourseMaterialSet--; @@ -337,7 +337,7 @@ checkCourseMaterialSet(api.CourseMaterialSet o) { buildCounterCourseMaterialSet++; if (buildCounterCourseMaterialSet < 3) { - checkUnnamed2493(o.materials); + checkUnnamed2612(o.materials); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCourseMaterialSet--; @@ -362,14 +362,14 @@ buildCounterCourseRosterChangesInfo--; } -buildUnnamed2494() { +buildUnnamed2613() { var o = new core.List<api.Material>(); o.add(buildMaterial()); o.add(buildMaterial()); return o; } -checkUnnamed2494(core.List<api.Material> o) { +checkUnnamed2613(core.List<api.Material> o) { unittest.expect(o, unittest.hasLength(2)); checkMaterial(o[0]); checkMaterial(o[1]); @@ -392,7 +392,7 @@ o.dueTime = buildTimeOfDay(); o.id = "foo"; o.individualStudentsOptions = buildIndividualStudentsOptions(); - o.materials = buildUnnamed2494(); + o.materials = buildUnnamed2613(); o.maxPoints = 42.0; o.multipleChoiceQuestion = buildMultipleChoiceQuestion(); o.scheduledTime = "foo"; @@ -422,7 +422,7 @@ checkTimeOfDay(o.dueTime); unittest.expect(o.id, unittest.equals('foo')); checkIndividualStudentsOptions(o.individualStudentsOptions); - checkUnnamed2494(o.materials); + checkUnnamed2613(o.materials); unittest.expect(o.maxPoints, unittest.equals(42.0)); checkMultipleChoiceQuestion(o.multipleChoiceQuestion); unittest.expect(o.scheduledTime, unittest.equals('foo')); @@ -455,6 +455,64 @@ buildCounterCourseWorkChangesInfo--; } +buildUnnamed2614() { + var o = new core.List<api.Material>(); + o.add(buildMaterial()); + o.add(buildMaterial()); + return o; +} + +checkUnnamed2614(core.List<api.Material> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMaterial(o[0]); + checkMaterial(o[1]); +} + +core.int buildCounterCourseWorkMaterial = 0; +buildCourseWorkMaterial() { + var o = new api.CourseWorkMaterial(); + buildCounterCourseWorkMaterial++; + if (buildCounterCourseWorkMaterial < 3) { + o.alternateLink = "foo"; + o.assigneeMode = "foo"; + o.courseId = "foo"; + o.creationTime = "foo"; + o.creatorUserId = "foo"; + o.description = "foo"; + o.id = "foo"; + o.individualStudentsOptions = buildIndividualStudentsOptions(); + o.materials = buildUnnamed2614(); + o.scheduledTime = "foo"; + o.state = "foo"; + o.title = "foo"; + o.topicId = "foo"; + o.updateTime = "foo"; + } + buildCounterCourseWorkMaterial--; + return o; +} + +checkCourseWorkMaterial(api.CourseWorkMaterial o) { + buildCounterCourseWorkMaterial++; + if (buildCounterCourseWorkMaterial < 3) { + unittest.expect(o.alternateLink, unittest.equals('foo')); + unittest.expect(o.assigneeMode, unittest.equals('foo')); + unittest.expect(o.courseId, unittest.equals('foo')); + unittest.expect(o.creationTime, unittest.equals('foo')); + unittest.expect(o.creatorUserId, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + checkIndividualStudentsOptions(o.individualStudentsOptions); + checkUnnamed2614(o.materials); + unittest.expect(o.scheduledTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.topicId, unittest.equals('foo')); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterCourseWorkMaterial--; +} + core.int buildCounterDate = 0; buildDate() { var o = new api.Date(); @@ -687,14 +745,14 @@ buildCounterGuardianInvitation--; } -buildUnnamed2495() { +buildUnnamed2615() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2495(core.List<core.String> 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')); @@ -705,7 +763,7 @@ var o = new api.IndividualStudentsOptions(); buildCounterIndividualStudentsOptions++; if (buildCounterIndividualStudentsOptions < 3) { - o.studentIds = buildUnnamed2495(); + o.studentIds = buildUnnamed2615(); } buildCounterIndividualStudentsOptions--; return o; @@ -714,7 +772,7 @@ checkIndividualStudentsOptions(api.IndividualStudentsOptions o) { buildCounterIndividualStudentsOptions++; if (buildCounterIndividualStudentsOptions < 3) { - checkUnnamed2495(o.studentIds); + checkUnnamed2615(o.studentIds); } buildCounterIndividualStudentsOptions--; } @@ -767,14 +825,14 @@ buildCounterLink--; } -buildUnnamed2496() { +buildUnnamed2616() { var o = new core.List<api.Announcement>(); o.add(buildAnnouncement()); o.add(buildAnnouncement()); return o; } -checkUnnamed2496(core.List<api.Announcement> o) { +checkUnnamed2616(core.List<api.Announcement> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnouncement(o[0]); checkAnnouncement(o[1]); @@ -785,7 +843,7 @@ var o = new api.ListAnnouncementsResponse(); buildCounterListAnnouncementsResponse++; if (buildCounterListAnnouncementsResponse < 3) { - o.announcements = buildUnnamed2496(); + o.announcements = buildUnnamed2616(); o.nextPageToken = "foo"; } buildCounterListAnnouncementsResponse--; @@ -795,20 +853,20 @@ checkListAnnouncementsResponse(api.ListAnnouncementsResponse o) { buildCounterListAnnouncementsResponse++; if (buildCounterListAnnouncementsResponse < 3) { - checkUnnamed2496(o.announcements); + checkUnnamed2616(o.announcements); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAnnouncementsResponse--; } -buildUnnamed2497() { +buildUnnamed2617() { var o = new core.List<api.CourseAlias>(); o.add(buildCourseAlias()); o.add(buildCourseAlias()); return o; } -checkUnnamed2497(core.List<api.CourseAlias> o) { +checkUnnamed2617(core.List<api.CourseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseAlias(o[0]); checkCourseAlias(o[1]); @@ -819,7 +877,7 @@ var o = new api.ListCourseAliasesResponse(); buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - o.aliases = buildUnnamed2497(); + o.aliases = buildUnnamed2617(); o.nextPageToken = "foo"; } buildCounterListCourseAliasesResponse--; @@ -829,20 +887,54 @@ checkListCourseAliasesResponse(api.ListCourseAliasesResponse o) { buildCounterListCourseAliasesResponse++; if (buildCounterListCourseAliasesResponse < 3) { - checkUnnamed2497(o.aliases); + checkUnnamed2617(o.aliases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseAliasesResponse--; } -buildUnnamed2498() { +buildUnnamed2618() { + var o = new core.List<api.CourseWorkMaterial>(); + o.add(buildCourseWorkMaterial()); + o.add(buildCourseWorkMaterial()); + return o; +} + +checkUnnamed2618(core.List<api.CourseWorkMaterial> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCourseWorkMaterial(o[0]); + checkCourseWorkMaterial(o[1]); +} + +core.int buildCounterListCourseWorkMaterialResponse = 0; +buildListCourseWorkMaterialResponse() { + var o = new api.ListCourseWorkMaterialResponse(); + buildCounterListCourseWorkMaterialResponse++; + if (buildCounterListCourseWorkMaterialResponse < 3) { + o.courseWorkMaterial = buildUnnamed2618(); + o.nextPageToken = "foo"; + } + buildCounterListCourseWorkMaterialResponse--; + return o; +} + +checkListCourseWorkMaterialResponse(api.ListCourseWorkMaterialResponse o) { + buildCounterListCourseWorkMaterialResponse++; + if (buildCounterListCourseWorkMaterialResponse < 3) { + checkUnnamed2618(o.courseWorkMaterial); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListCourseWorkMaterialResponse--; +} + +buildUnnamed2619() { var o = new core.List<api.CourseWork>(); o.add(buildCourseWork()); o.add(buildCourseWork()); return o; } -checkUnnamed2498(core.List<api.CourseWork> o) { +checkUnnamed2619(core.List<api.CourseWork> o) { unittest.expect(o, unittest.hasLength(2)); checkCourseWork(o[0]); checkCourseWork(o[1]); @@ -853,7 +945,7 @@ var o = new api.ListCourseWorkResponse(); buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - o.courseWork = buildUnnamed2498(); + o.courseWork = buildUnnamed2619(); o.nextPageToken = "foo"; } buildCounterListCourseWorkResponse--; @@ -863,20 +955,20 @@ checkListCourseWorkResponse(api.ListCourseWorkResponse o) { buildCounterListCourseWorkResponse++; if (buildCounterListCourseWorkResponse < 3) { - checkUnnamed2498(o.courseWork); + checkUnnamed2619(o.courseWork); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCourseWorkResponse--; } -buildUnnamed2499() { +buildUnnamed2620() { var o = new core.List<api.Course>(); o.add(buildCourse()); o.add(buildCourse()); return o; } -checkUnnamed2499(core.List<api.Course> o) { +checkUnnamed2620(core.List<api.Course> o) { unittest.expect(o, unittest.hasLength(2)); checkCourse(o[0]); checkCourse(o[1]); @@ -887,7 +979,7 @@ var o = new api.ListCoursesResponse(); buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - o.courses = buildUnnamed2499(); + o.courses = buildUnnamed2620(); o.nextPageToken = "foo"; } buildCounterListCoursesResponse--; @@ -897,20 +989,20 @@ checkListCoursesResponse(api.ListCoursesResponse o) { buildCounterListCoursesResponse++; if (buildCounterListCoursesResponse < 3) { - checkUnnamed2499(o.courses); + checkUnnamed2620(o.courses); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCoursesResponse--; } -buildUnnamed2500() { +buildUnnamed2621() { var o = new core.List<api.GuardianInvitation>(); o.add(buildGuardianInvitation()); o.add(buildGuardianInvitation()); return o; } -checkUnnamed2500(core.List<api.GuardianInvitation> o) { +checkUnnamed2621(core.List<api.GuardianInvitation> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardianInvitation(o[0]); checkGuardianInvitation(o[1]); @@ -921,7 +1013,7 @@ var o = new api.ListGuardianInvitationsResponse(); buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - o.guardianInvitations = buildUnnamed2500(); + o.guardianInvitations = buildUnnamed2621(); o.nextPageToken = "foo"; } buildCounterListGuardianInvitationsResponse--; @@ -931,20 +1023,20 @@ checkListGuardianInvitationsResponse(api.ListGuardianInvitationsResponse o) { buildCounterListGuardianInvitationsResponse++; if (buildCounterListGuardianInvitationsResponse < 3) { - checkUnnamed2500(o.guardianInvitations); + checkUnnamed2621(o.guardianInvitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardianInvitationsResponse--; } -buildUnnamed2501() { +buildUnnamed2622() { var o = new core.List<api.Guardian>(); o.add(buildGuardian()); o.add(buildGuardian()); return o; } -checkUnnamed2501(core.List<api.Guardian> o) { +checkUnnamed2622(core.List<api.Guardian> o) { unittest.expect(o, unittest.hasLength(2)); checkGuardian(o[0]); checkGuardian(o[1]); @@ -955,7 +1047,7 @@ var o = new api.ListGuardiansResponse(); buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - o.guardians = buildUnnamed2501(); + o.guardians = buildUnnamed2622(); o.nextPageToken = "foo"; } buildCounterListGuardiansResponse--; @@ -965,20 +1057,20 @@ checkListGuardiansResponse(api.ListGuardiansResponse o) { buildCounterListGuardiansResponse++; if (buildCounterListGuardiansResponse < 3) { - checkUnnamed2501(o.guardians); + checkUnnamed2622(o.guardians); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGuardiansResponse--; } -buildUnnamed2502() { +buildUnnamed2623() { var o = new core.List<api.Invitation>(); o.add(buildInvitation()); o.add(buildInvitation()); return o; } -checkUnnamed2502(core.List<api.Invitation> o) { +checkUnnamed2623(core.List<api.Invitation> o) { unittest.expect(o, unittest.hasLength(2)); checkInvitation(o[0]); checkInvitation(o[1]); @@ -989,7 +1081,7 @@ var o = new api.ListInvitationsResponse(); buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - o.invitations = buildUnnamed2502(); + o.invitations = buildUnnamed2623(); o.nextPageToken = "foo"; } buildCounterListInvitationsResponse--; @@ -999,20 +1091,20 @@ checkListInvitationsResponse(api.ListInvitationsResponse o) { buildCounterListInvitationsResponse++; if (buildCounterListInvitationsResponse < 3) { - checkUnnamed2502(o.invitations); + checkUnnamed2623(o.invitations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInvitationsResponse--; } -buildUnnamed2503() { +buildUnnamed2624() { var o = new core.List<api.StudentSubmission>(); o.add(buildStudentSubmission()); o.add(buildStudentSubmission()); return o; } -checkUnnamed2503(core.List<api.StudentSubmission> o) { +checkUnnamed2624(core.List<api.StudentSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkStudentSubmission(o[0]); checkStudentSubmission(o[1]); @@ -1024,7 +1116,7 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { o.nextPageToken = "foo"; - o.studentSubmissions = buildUnnamed2503(); + o.studentSubmissions = buildUnnamed2624(); } buildCounterListStudentSubmissionsResponse--; return o; @@ -1034,19 +1126,19 @@ buildCounterListStudentSubmissionsResponse++; if (buildCounterListStudentSubmissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2503(o.studentSubmissions); + checkUnnamed2624(o.studentSubmissions); } buildCounterListStudentSubmissionsResponse--; } -buildUnnamed2504() { +buildUnnamed2625() { var o = new core.List<api.Student>(); o.add(buildStudent()); o.add(buildStudent()); return o; } -checkUnnamed2504(core.List<api.Student> o) { +checkUnnamed2625(core.List<api.Student> o) { unittest.expect(o, unittest.hasLength(2)); checkStudent(o[0]); checkStudent(o[1]); @@ -1058,7 +1150,7 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { o.nextPageToken = "foo"; - o.students = buildUnnamed2504(); + o.students = buildUnnamed2625(); } buildCounterListStudentsResponse--; return o; @@ -1068,19 +1160,19 @@ buildCounterListStudentsResponse++; if (buildCounterListStudentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2504(o.students); + checkUnnamed2625(o.students); } buildCounterListStudentsResponse--; } -buildUnnamed2505() { +buildUnnamed2626() { var o = new core.List<api.Teacher>(); o.add(buildTeacher()); o.add(buildTeacher()); return o; } -checkUnnamed2505(core.List<api.Teacher> o) { +checkUnnamed2626(core.List<api.Teacher> o) { unittest.expect(o, unittest.hasLength(2)); checkTeacher(o[0]); checkTeacher(o[1]); @@ -1092,7 +1184,7 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { o.nextPageToken = "foo"; - o.teachers = buildUnnamed2505(); + o.teachers = buildUnnamed2626(); } buildCounterListTeachersResponse--; return o; @@ -1102,19 +1194,19 @@ buildCounterListTeachersResponse++; if (buildCounterListTeachersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2505(o.teachers); + checkUnnamed2626(o.teachers); } buildCounterListTeachersResponse--; } -buildUnnamed2506() { +buildUnnamed2627() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed2506(core.List<api.Topic> o) { +checkUnnamed2627(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -1126,7 +1218,7 @@ buildCounterListTopicResponse++; if (buildCounterListTopicResponse < 3) { o.nextPageToken = "foo"; - o.topic = buildUnnamed2506(); + o.topic = buildUnnamed2627(); } buildCounterListTopicResponse--; return o; @@ -1136,7 +1228,7 @@ buildCounterListTopicResponse++; if (buildCounterListTopicResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2506(o.topic); + checkUnnamed2627(o.topic); } buildCounterListTopicResponse--; } @@ -1188,14 +1280,14 @@ buildCounterModifyAnnouncementAssigneesRequest--; } -buildUnnamed2507() { +buildUnnamed2628() { var o = new core.List<api.Attachment>(); o.add(buildAttachment()); o.add(buildAttachment()); return o; } -checkUnnamed2507(core.List<api.Attachment> o) { +checkUnnamed2628(core.List<api.Attachment> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachment(o[0]); checkAttachment(o[1]); @@ -1206,7 +1298,7 @@ var o = new api.ModifyAttachmentsRequest(); buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - o.addAttachments = buildUnnamed2507(); + o.addAttachments = buildUnnamed2628(); } buildCounterModifyAttachmentsRequest--; return o; @@ -1215,7 +1307,7 @@ checkModifyAttachmentsRequest(api.ModifyAttachmentsRequest o) { buildCounterModifyAttachmentsRequest++; if (buildCounterModifyAttachmentsRequest < 3) { - checkUnnamed2507(o.addAttachments); + checkUnnamed2628(o.addAttachments); } buildCounterModifyAttachmentsRequest--; } @@ -1241,27 +1333,27 @@ buildCounterModifyCourseWorkAssigneesRequest--; } -buildUnnamed2508() { +buildUnnamed2629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2508(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')); } -buildUnnamed2509() { +buildUnnamed2630() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2509(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')); @@ -1272,8 +1364,8 @@ var o = new api.ModifyIndividualStudentsOptions(); buildCounterModifyIndividualStudentsOptions++; if (buildCounterModifyIndividualStudentsOptions < 3) { - o.addStudentIds = buildUnnamed2508(); - o.removeStudentIds = buildUnnamed2509(); + o.addStudentIds = buildUnnamed2629(); + o.removeStudentIds = buildUnnamed2630(); } buildCounterModifyIndividualStudentsOptions--; return o; @@ -1282,20 +1374,20 @@ checkModifyIndividualStudentsOptions(api.ModifyIndividualStudentsOptions o) { buildCounterModifyIndividualStudentsOptions++; if (buildCounterModifyIndividualStudentsOptions < 3) { - checkUnnamed2508(o.addStudentIds); - checkUnnamed2509(o.removeStudentIds); + checkUnnamed2629(o.addStudentIds); + checkUnnamed2630(o.removeStudentIds); } buildCounterModifyIndividualStudentsOptions--; } -buildUnnamed2510() { +buildUnnamed2631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2510(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')); @@ -1306,7 +1398,7 @@ var o = new api.MultipleChoiceQuestion(); buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - o.choices = buildUnnamed2510(); + o.choices = buildUnnamed2631(); } buildCounterMultipleChoiceQuestion--; return o; @@ -1315,7 +1407,7 @@ checkMultipleChoiceQuestion(api.MultipleChoiceQuestion o) { buildCounterMultipleChoiceQuestion++; if (buildCounterMultipleChoiceQuestion < 3) { - checkUnnamed2510(o.choices); + checkUnnamed2631(o.choices); } buildCounterMultipleChoiceQuestion--; } @@ -1505,14 +1597,14 @@ buildCounterStudent--; } -buildUnnamed2511() { +buildUnnamed2632() { var o = new core.List<api.SubmissionHistory>(); o.add(buildSubmissionHistory()); o.add(buildSubmissionHistory()); return o; } -checkUnnamed2511(core.List<api.SubmissionHistory> o) { +checkUnnamed2632(core.List<api.SubmissionHistory> o) { unittest.expect(o, unittest.hasLength(2)); checkSubmissionHistory(o[0]); checkSubmissionHistory(o[1]); @@ -1537,7 +1629,7 @@ o.multipleChoiceSubmission = buildMultipleChoiceSubmission(); o.shortAnswerSubmission = buildShortAnswerSubmission(); o.state = "foo"; - o.submissionHistory = buildUnnamed2511(); + o.submissionHistory = buildUnnamed2632(); o.updateTime = "foo"; o.userId = "foo"; } @@ -1562,7 +1654,7 @@ checkMultipleChoiceSubmission(o.multipleChoiceSubmission); checkShortAnswerSubmission(o.shortAnswerSubmission); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2511(o.submissionHistory); + checkUnnamed2632(o.submissionHistory); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.userId, unittest.equals('foo')); } @@ -1678,14 +1770,14 @@ buildCounterTurnInStudentSubmissionRequest--; } -buildUnnamed2512() { +buildUnnamed2633() { var o = new core.List<api.GlobalPermission>(); o.add(buildGlobalPermission()); o.add(buildGlobalPermission()); return o; } -checkUnnamed2512(core.List<api.GlobalPermission> o) { +checkUnnamed2633(core.List<api.GlobalPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkGlobalPermission(o[0]); checkGlobalPermission(o[1]); @@ -1699,7 +1791,7 @@ o.emailAddress = "foo"; o.id = "foo"; o.name = buildName(); - o.permissions = buildUnnamed2512(); + o.permissions = buildUnnamed2633(); o.photoUrl = "foo"; o.verifiedTeacher = true; } @@ -1713,7 +1805,7 @@ unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkName(o.name); - checkUnnamed2512(o.permissions); + checkUnnamed2633(o.permissions); unittest.expect(o.photoUrl, unittest.equals('foo')); unittest.expect(o.verifiedTeacher, unittest.isTrue); } @@ -1745,66 +1837,79 @@ buildCounterYouTubeVideo--; } -buildUnnamed2513() { +buildUnnamed2634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2513(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')); } -buildUnnamed2514() { +buildUnnamed2635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2514(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')); } -buildUnnamed2515() { +buildUnnamed2636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2515(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')); } -buildUnnamed2516() { +buildUnnamed2637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2516(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')); } -buildUnnamed2517() { +buildUnnamed2638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2517(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')); +} + +buildUnnamed2639() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); @@ -1907,6 +2012,14 @@ }); }); + unittest.group("obj-schema-CourseWorkMaterial", () { + unittest.test("to-json--from-json", () { + var o = buildCourseWorkMaterial(); + var od = new api.CourseWorkMaterial.fromJson(o.toJson()); + checkCourseWorkMaterial(od); + }); + }); + unittest.group("obj-schema-Date", () { unittest.test("to-json--from-json", () { var o = buildDate(); @@ -2027,6 +2140,14 @@ }); }); + unittest.group("obj-schema-ListCourseWorkMaterialResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCourseWorkMaterialResponse(); + var od = new api.ListCourseWorkMaterialResponse.fromJson(o.toJson()); + checkListCourseWorkMaterialResponse(od); + }); + }); + unittest.group("obj-schema-ListCourseWorkResponse", () { unittest.test("to-json--from-json", () { var o = buildListCourseWorkResponse(); @@ -2446,10 +2567,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CoursesResourceApi res = new api.ClassroomApi(mock).courses; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_teacherId = "foo"; - var arg_courseStates = buildUnnamed2513(); + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_courseStates = buildUnnamed2634(); var arg_studentId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2483,11 +2604,11 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["teacherId"].first, unittest.equals(arg_teacherId)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["teacherId"].first, unittest.equals(arg_teacherId)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["courseStates"], unittest.equals(arg_courseStates)); unittest.expect( @@ -2502,9 +2623,9 @@ }), true); res .list( - pageToken: arg_pageToken, - pageSize: arg_pageSize, teacherId: arg_teacherId, + pageSize: arg_pageSize, + pageToken: arg_pageToken, courseStates: arg_courseStates, studentId: arg_studentId, $fields: arg_$fields) @@ -2766,8 +2887,8 @@ api.CoursesAliasesResourceApi res = new api.ClassroomApi(mock).courses.aliases; var arg_courseId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2808,10 +2929,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2822,8 +2943,8 @@ }), true); res .list(arg_courseId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCourseAliasesResponse(response); @@ -3029,10 +3150,10 @@ api.CoursesAnnouncementsResourceApi res = new api.ClassroomApi(mock).courses.announcements; var arg_courseId = "foo"; - var arg_announcementStates = buildUnnamed2514(); - var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_announcementStates = buildUnnamed2635(); + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3073,14 +3194,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["announcementStates"], - unittest.equals(arg_announcementStates)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["announcementStates"], + unittest.equals(arg_announcementStates)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3091,10 +3212,10 @@ }), true); res .list(arg_courseId, - announcementStates: arg_announcementStates, - orderBy: arg_orderBy, pageToken: arg_pageToken, pageSize: arg_pageSize, + announcementStates: arg_announcementStates, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAnnouncementsResponse(response); @@ -3447,10 +3568,10 @@ api.CoursesCourseWorkResourceApi res = new api.ClassroomApi(mock).courses.courseWork; var arg_courseId = "foo"; + var arg_courseWorkStates = buildUnnamed2636(); + var arg_pageSize = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_courseWorkStates = buildUnnamed2515(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3491,14 +3612,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["courseWorkStates"], + unittest.equals(arg_courseWorkStates)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["courseWorkStates"], - unittest.equals(arg_courseWorkStates)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3509,10 +3630,10 @@ }), true); res .list(arg_courseId, + courseWorkStates: arg_courseWorkStates, + pageSize: arg_pageSize, orderBy: arg_orderBy, pageToken: arg_pageToken, - pageSize: arg_pageSize, - courseWorkStates: arg_courseWorkStates, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCourseWorkResponse(response); @@ -3748,11 +3869,11 @@ new api.ClassroomApi(mock).courses.courseWork.studentSubmissions; var arg_courseId = "foo"; var arg_courseWorkId = "foo"; + var arg_states = buildUnnamed2637(); var arg_userId = "foo"; + var arg_pageSize = 42; var arg_late = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_states = buildUnnamed2516(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3802,13 +3923,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["late"].first, unittest.equals(arg_late)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3819,11 +3940,11 @@ }), true); res .list(arg_courseId, arg_courseWorkId, + states: arg_states, userId: arg_userId, + pageSize: arg_pageSize, late: arg_late, pageToken: arg_pageToken, - pageSize: arg_pageSize, - states: arg_states, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListStudentSubmissionsResponse(response); @@ -4254,6 +4375,357 @@ }); }); + unittest.group("resource-CoursesCourseWorkMaterialsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.CoursesCourseWorkMaterialsResourceApi res = + new api.ClassroomApi(mock).courses.courseWorkMaterials; + var arg_request = buildCourseWorkMaterial(); + var arg_courseId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CourseWorkMaterial.fromJson(json); + checkCourseWorkMaterial(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/courses/")); + pathOffset += 11; + index = path.indexOf("/courseWorkMaterials", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_courseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/courseWorkMaterials")); + pathOffset += 20; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCourseWorkMaterial()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_courseId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCourseWorkMaterial(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.CoursesCourseWorkMaterialsResourceApi res = + new api.ClassroomApi(mock).courses.courseWorkMaterials; + var arg_courseId = "foo"; + var arg_id = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("v1/courses/")); + pathOffset += 11; + index = path.indexOf("/courseWorkMaterials/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_courseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("/courseWorkMaterials/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_courseId, arg_id, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.CoursesCourseWorkMaterialsResourceApi res = + new api.ClassroomApi(mock).courses.courseWorkMaterials; + var arg_courseId = "foo"; + var arg_id = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("v1/courses/")); + pathOffset += 11; + index = path.indexOf("/courseWorkMaterials/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_courseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("/courseWorkMaterials/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCourseWorkMaterial()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_courseId, arg_id, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCourseWorkMaterial(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.CoursesCourseWorkMaterialsResourceApi res = + new api.ClassroomApi(mock).courses.courseWorkMaterials; + var arg_courseId = "foo"; + var arg_courseWorkMaterialStates = buildUnnamed2638(); + var arg_materialLink = "foo"; + var arg_materialDriveId = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("v1/courses/")); + pathOffset += 11; + index = path.indexOf("/courseWorkMaterials", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_courseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/courseWorkMaterials")); + pathOffset += 20; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["courseWorkMaterialStates"], + unittest.equals(arg_courseWorkMaterialStates)); + unittest.expect( + queryMap["materialLink"].first, unittest.equals(arg_materialLink)); + unittest.expect(queryMap["materialDriveId"].first, + unittest.equals(arg_materialDriveId)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListCourseWorkMaterialResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_courseId, + courseWorkMaterialStates: arg_courseWorkMaterialStates, + materialLink: arg_materialLink, + materialDriveId: arg_materialDriveId, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListCourseWorkMaterialResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.CoursesCourseWorkMaterialsResourceApi res = + new api.ClassroomApi(mock).courses.courseWorkMaterials; + var arg_request = buildCourseWorkMaterial(); + var arg_courseId = "foo"; + var arg_id = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CourseWorkMaterial.fromJson(json); + checkCourseWorkMaterial(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/courses/")); + pathOffset += 11; + index = path.indexOf("/courseWorkMaterials/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_courseId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("/courseWorkMaterials/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCourseWorkMaterial()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_courseId, arg_id, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCourseWorkMaterial(response); + }))); + }); + }); + unittest.group("resource-CoursesStudentsResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -5341,10 +5813,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.InvitationsResourceApi res = new api.ClassroomApi(mock).invitations; - var arg_userId = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; + var arg_userId = "foo"; var arg_courseId = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5376,13 +5848,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); + unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); unittest.expect( queryMap["courseId"].first, unittest.equals(arg_courseId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5393,10 +5865,10 @@ }), true); res .list( - userId: arg_userId, pageToken: arg_pageToken, - pageSize: arg_pageSize, + userId: arg_userId, courseId: arg_courseId, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInvitationsResponse(response); @@ -5703,9 +6175,9 @@ api.UserProfilesGuardianInvitationsResourceApi res = new api.ClassroomApi(mock).userProfiles.guardianInvitations; var arg_studentId = "foo"; - var arg_pageToken = "foo"; + var arg_states = buildUnnamed2639(); var arg_invitedEmailAddress = "foo"; - var arg_states = buildUnnamed2517(); + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5747,11 +6219,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["states"], unittest.equals(arg_states)); unittest.expect(queryMap["invitedEmailAddress"].first, unittest.equals(arg_invitedEmailAddress)); - unittest.expect(queryMap["states"], unittest.equals(arg_states)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -5764,9 +6236,9 @@ }), true); res .list(arg_studentId, - pageToken: arg_pageToken, - invitedEmailAddress: arg_invitedEmailAddress, states: arg_states, + invitedEmailAddress: arg_invitedEmailAddress, + pageToken: arg_pageToken, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -5981,9 +6453,9 @@ api.UserProfilesGuardiansResourceApi res = new api.ClassroomApi(mock).userProfiles.guardians; var arg_studentId = "foo"; - var arg_pageToken = "foo"; - var arg_invitedEmailAddress = "foo"; var arg_pageSize = 42; + var arg_invitedEmailAddress = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6024,12 +6496,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["invitedEmailAddress"].first, - unittest.equals(arg_invitedEmailAddress)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["invitedEmailAddress"].first, + unittest.equals(arg_invitedEmailAddress)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6040,9 +6512,9 @@ }), true); res .list(arg_studentId, - pageToken: arg_pageToken, - invitedEmailAddress: arg_invitedEmailAddress, pageSize: arg_pageSize, + invitedEmailAddress: arg_invitedEmailAddress, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGuardiansResponse(response);
diff --git a/generated/googleapis/test/cloudasset/v1_test.dart b/generated/googleapis/test/cloudasset/v1_test.dart index 240b61c..068175f 100644 --- a/generated/googleapis/test/cloudasset/v1_test.dart +++ b/generated/googleapis/test/cloudasset/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3058() { +buildUnnamed3189() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3058(core.List<core.String> o) { +checkUnnamed3189(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3059() { +buildUnnamed3190() { var o = new core.List<api.GoogleCloudOrgpolicyV1Policy>(); o.add(buildGoogleCloudOrgpolicyV1Policy()); o.add(buildGoogleCloudOrgpolicyV1Policy()); return o; } -checkUnnamed3059(core.List<api.GoogleCloudOrgpolicyV1Policy> o) { +checkUnnamed3190(core.List<api.GoogleCloudOrgpolicyV1Policy> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudOrgpolicyV1Policy(o[0]); checkGoogleCloudOrgpolicyV1Policy(o[1]); @@ -83,14 +83,15 @@ if (buildCounterAsset < 3) { o.accessLevel = buildGoogleIdentityAccesscontextmanagerV1AccessLevel(); o.accessPolicy = buildGoogleIdentityAccesscontextmanagerV1AccessPolicy(); - o.ancestors = buildUnnamed3058(); + o.ancestors = buildUnnamed3189(); o.assetType = "foo"; o.iamPolicy = buildPolicy(); o.name = "foo"; - o.orgPolicy = buildUnnamed3059(); + o.orgPolicy = buildUnnamed3190(); o.resource = buildResource(); o.servicePerimeter = buildGoogleIdentityAccesscontextmanagerV1ServicePerimeter(); + o.updateTime = "foo"; } buildCounterAsset--; return o; @@ -101,26 +102,27 @@ if (buildCounterAsset < 3) { checkGoogleIdentityAccesscontextmanagerV1AccessLevel(o.accessLevel); checkGoogleIdentityAccesscontextmanagerV1AccessPolicy(o.accessPolicy); - checkUnnamed3058(o.ancestors); + checkUnnamed3189(o.ancestors); unittest.expect(o.assetType, unittest.equals('foo')); checkPolicy(o.iamPolicy); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3059(o.orgPolicy); + checkUnnamed3190(o.orgPolicy); checkResource(o.resource); checkGoogleIdentityAccesscontextmanagerV1ServicePerimeter( o.servicePerimeter); + unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterAsset--; } -buildUnnamed3060() { +buildUnnamed3191() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3060(core.List<api.AuditLogConfig> o) { +checkUnnamed3191(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -131,7 +133,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3060(); + o.auditLogConfigs = buildUnnamed3191(); o.service = "foo"; } buildCounterAuditConfig--; @@ -141,20 +143,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3060(o.auditLogConfigs); + checkUnnamed3191(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3061() { +buildUnnamed3192() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3061(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')); @@ -165,7 +167,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3061(); + o.exemptedMembers = buildUnnamed3192(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -175,20 +177,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3061(o.exemptedMembers); + checkUnnamed3192(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed3062() { +buildUnnamed3193() { var o = new core.List<api.TemporalAsset>(); o.add(buildTemporalAsset()); o.add(buildTemporalAsset()); return o; } -checkUnnamed3062(core.List<api.TemporalAsset> o) { +checkUnnamed3193(core.List<api.TemporalAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkTemporalAsset(o[0]); checkTemporalAsset(o[1]); @@ -199,7 +201,7 @@ var o = new api.BatchGetAssetsHistoryResponse(); buildCounterBatchGetAssetsHistoryResponse++; if (buildCounterBatchGetAssetsHistoryResponse < 3) { - o.assets = buildUnnamed3062(); + o.assets = buildUnnamed3193(); } buildCounterBatchGetAssetsHistoryResponse--; return o; @@ -208,7 +210,7 @@ checkBatchGetAssetsHistoryResponse(api.BatchGetAssetsHistoryResponse o) { buildCounterBatchGetAssetsHistoryResponse++; if (buildCounterBatchGetAssetsHistoryResponse < 3) { - checkUnnamed3062(o.assets); + checkUnnamed3193(o.assets); } buildCounterBatchGetAssetsHistoryResponse--; } @@ -220,6 +222,8 @@ if (buildCounterBigQueryDestination < 3) { o.dataset = "foo"; o.force = true; + o.partitionSpec = buildPartitionSpec(); + o.separateTablesPerAssetType = true; o.table = "foo"; } buildCounterBigQueryDestination--; @@ -231,19 +235,21 @@ if (buildCounterBigQueryDestination < 3) { unittest.expect(o.dataset, unittest.equals('foo')); unittest.expect(o.force, unittest.isTrue); + checkPartitionSpec(o.partitionSpec); + unittest.expect(o.separateTablesPerAssetType, unittest.isTrue); unittest.expect(o.table, unittest.equals('foo')); } buildCounterBigQueryDestination--; } -buildUnnamed3063() { +buildUnnamed3194() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3063(core.List<core.String> 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')); @@ -255,7 +261,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed3063(); + o.members = buildUnnamed3194(); o.role = "foo"; } buildCounterBinding--; @@ -266,7 +272,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed3063(o.members); + checkUnnamed3194(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -308,14 +314,46 @@ buildCounterEmpty--; } -buildUnnamed3064() { +buildUnnamed3195() { + var o = new core.Map<core.String, api.Permissions>(); + o["x"] = buildPermissions(); + o["y"] = buildPermissions(); + return o; +} + +checkUnnamed3195(core.Map<core.String, api.Permissions> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPermissions(o["x"]); + checkPermissions(o["y"]); +} + +core.int buildCounterExplanation = 0; +buildExplanation() { + var o = new api.Explanation(); + buildCounterExplanation++; + if (buildCounterExplanation < 3) { + o.matchedPermissions = buildUnnamed3195(); + } + buildCounterExplanation--; + return o; +} + +checkExplanation(api.Explanation o) { + buildCounterExplanation++; + if (buildCounterExplanation < 3) { + checkUnnamed3195(o.matchedPermissions); + } + buildCounterExplanation--; +} + +buildUnnamed3196() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3064(core.List<core.String> o) { +checkUnnamed3196(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -326,7 +364,7 @@ var o = new api.ExportAssetsRequest(); buildCounterExportAssetsRequest++; if (buildCounterExportAssetsRequest < 3) { - o.assetTypes = buildUnnamed3064(); + o.assetTypes = buildUnnamed3196(); o.contentType = "foo"; o.outputConfig = buildOutputConfig(); o.readTime = "foo"; @@ -338,7 +376,7 @@ checkExportAssetsRequest(api.ExportAssetsRequest o) { buildCounterExportAssetsRequest++; if (buildCounterExportAssetsRequest < 3) { - checkUnnamed3064(o.assetTypes); + checkUnnamed3196(o.assetTypes); unittest.expect(o.contentType, unittest.equals('foo')); checkOutputConfig(o.outputConfig); unittest.expect(o.readTime, unittest.equals('foo')); @@ -371,27 +409,27 @@ buildCounterExpr--; } -buildUnnamed3065() { +buildUnnamed3197() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3065(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')); } -buildUnnamed3066() { +buildUnnamed3198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3066(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')); @@ -402,8 +440,9 @@ var o = new api.Feed(); buildCounterFeed++; if (buildCounterFeed < 3) { - o.assetNames = buildUnnamed3065(); - o.assetTypes = buildUnnamed3066(); + o.assetNames = buildUnnamed3197(); + o.assetTypes = buildUnnamed3198(); + o.condition = buildExpr(); o.contentType = "foo"; o.feedOutputConfig = buildFeedOutputConfig(); o.name = "foo"; @@ -415,8 +454,9 @@ checkFeed(api.Feed o) { buildCounterFeed++; if (buildCounterFeed < 3) { - checkUnnamed3065(o.assetNames); - checkUnnamed3066(o.assetTypes); + checkUnnamed3197(o.assetNames); + checkUnnamed3198(o.assetTypes); + checkExpr(o.condition); unittest.expect(o.contentType, unittest.equals('foo')); checkFeedOutputConfig(o.feedOutputConfig); unittest.expect(o.name, unittest.equals('foo')); @@ -484,27 +524,27 @@ buildCounterGoogleCloudOrgpolicyV1BooleanPolicy--; } -buildUnnamed3067() { +buildUnnamed3199() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3067(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')); } -buildUnnamed3068() { +buildUnnamed3200() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3068(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')); @@ -516,8 +556,8 @@ buildCounterGoogleCloudOrgpolicyV1ListPolicy++; if (buildCounterGoogleCloudOrgpolicyV1ListPolicy < 3) { o.allValues = "foo"; - o.allowedValues = buildUnnamed3067(); - o.deniedValues = buildUnnamed3068(); + o.allowedValues = buildUnnamed3199(); + o.deniedValues = buildUnnamed3200(); o.inheritFromParent = true; o.suggestedValue = "foo"; } @@ -529,8 +569,8 @@ buildCounterGoogleCloudOrgpolicyV1ListPolicy++; if (buildCounterGoogleCloudOrgpolicyV1ListPolicy < 3) { unittest.expect(o.allValues, unittest.equals('foo')); - checkUnnamed3067(o.allowedValues); - checkUnnamed3068(o.deniedValues); + checkUnnamed3199(o.allowedValues); + checkUnnamed3200(o.deniedValues); unittest.expect(o.inheritFromParent, unittest.isTrue); unittest.expect(o.suggestedValue, unittest.equals('foo')); } @@ -638,14 +678,14 @@ buildCounterGoogleIdentityAccesscontextmanagerV1AccessPolicy--; } -buildUnnamed3069() { +buildUnnamed3201() { var o = new core.List<api.GoogleIdentityAccesscontextmanagerV1Condition>(); o.add(buildGoogleIdentityAccesscontextmanagerV1Condition()); o.add(buildGoogleIdentityAccesscontextmanagerV1Condition()); return o; } -checkUnnamed3069( +checkUnnamed3201( core.List<api.GoogleIdentityAccesscontextmanagerV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIdentityAccesscontextmanagerV1Condition(o[0]); @@ -658,7 +698,7 @@ buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel++; if (buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel < 3) { o.combiningFunction = "foo"; - o.conditions = buildUnnamed3069(); + o.conditions = buildUnnamed3201(); } buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel--; return o; @@ -669,58 +709,58 @@ buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel++; if (buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel < 3) { unittest.expect(o.combiningFunction, unittest.equals('foo')); - checkUnnamed3069(o.conditions); + checkUnnamed3201(o.conditions); } buildCounterGoogleIdentityAccesscontextmanagerV1BasicLevel--; } -buildUnnamed3070() { +buildUnnamed3202() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3070(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')); } -buildUnnamed3071() { +buildUnnamed3203() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3071(core.List<core.String> o) { +checkUnnamed3203(core.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() { +buildUnnamed3204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3072(core.List<core.String> o) { +checkUnnamed3204(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3073() { +buildUnnamed3205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3073(core.List<core.String> o) { +checkUnnamed3205(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -732,11 +772,11 @@ buildCounterGoogleIdentityAccesscontextmanagerV1Condition++; if (buildCounterGoogleIdentityAccesscontextmanagerV1Condition < 3) { o.devicePolicy = buildGoogleIdentityAccesscontextmanagerV1DevicePolicy(); - o.ipSubnetworks = buildUnnamed3070(); - o.members = buildUnnamed3071(); + o.ipSubnetworks = buildUnnamed3202(); + o.members = buildUnnamed3203(); o.negate = true; - o.regions = buildUnnamed3072(); - o.requiredAccessLevels = buildUnnamed3073(); + o.regions = buildUnnamed3204(); + o.requiredAccessLevels = buildUnnamed3205(); } buildCounterGoogleIdentityAccesscontextmanagerV1Condition--; return o; @@ -747,11 +787,11 @@ buildCounterGoogleIdentityAccesscontextmanagerV1Condition++; if (buildCounterGoogleIdentityAccesscontextmanagerV1Condition < 3) { checkGoogleIdentityAccesscontextmanagerV1DevicePolicy(o.devicePolicy); - checkUnnamed3070(o.ipSubnetworks); - checkUnnamed3071(o.members); + checkUnnamed3202(o.ipSubnetworks); + checkUnnamed3203(o.members); unittest.expect(o.negate, unittest.isTrue); - checkUnnamed3072(o.regions); - checkUnnamed3073(o.requiredAccessLevels); + checkUnnamed3204(o.regions); + checkUnnamed3205(o.requiredAccessLevels); } buildCounterGoogleIdentityAccesscontextmanagerV1Condition--; } @@ -776,40 +816,40 @@ buildCounterGoogleIdentityAccesscontextmanagerV1CustomLevel--; } -buildUnnamed3074() { +buildUnnamed3206() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3074(core.List<core.String> o) { +checkUnnamed3206(core.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() { +buildUnnamed3207() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3075(core.List<core.String> o) { +checkUnnamed3207(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3076() { +buildUnnamed3208() { var o = new core.List<api.GoogleIdentityAccesscontextmanagerV1OsConstraint>(); o.add(buildGoogleIdentityAccesscontextmanagerV1OsConstraint()); o.add(buildGoogleIdentityAccesscontextmanagerV1OsConstraint()); return o; } -checkUnnamed3076( +checkUnnamed3208( core.List<api.GoogleIdentityAccesscontextmanagerV1OsConstraint> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIdentityAccesscontextmanagerV1OsConstraint(o[0]); @@ -821,9 +861,9 @@ var o = new api.GoogleIdentityAccesscontextmanagerV1DevicePolicy(); buildCounterGoogleIdentityAccesscontextmanagerV1DevicePolicy++; if (buildCounterGoogleIdentityAccesscontextmanagerV1DevicePolicy < 3) { - o.allowedDeviceManagementLevels = buildUnnamed3074(); - o.allowedEncryptionStatuses = buildUnnamed3075(); - o.osConstraints = buildUnnamed3076(); + o.allowedDeviceManagementLevels = buildUnnamed3206(); + o.allowedEncryptionStatuses = buildUnnamed3207(); + o.osConstraints = buildUnnamed3208(); o.requireAdminApproval = true; o.requireCorpOwned = true; o.requireScreenlock = true; @@ -836,9 +876,9 @@ api.GoogleIdentityAccesscontextmanagerV1DevicePolicy o) { buildCounterGoogleIdentityAccesscontextmanagerV1DevicePolicy++; if (buildCounterGoogleIdentityAccesscontextmanagerV1DevicePolicy < 3) { - checkUnnamed3074(o.allowedDeviceManagementLevels); - checkUnnamed3075(o.allowedEncryptionStatuses); - checkUnnamed3076(o.osConstraints); + checkUnnamed3206(o.allowedDeviceManagementLevels); + checkUnnamed3207(o.allowedEncryptionStatuses); + checkUnnamed3208(o.osConstraints); unittest.expect(o.requireAdminApproval, unittest.isTrue); unittest.expect(o.requireCorpOwned, unittest.isTrue); unittest.expect(o.requireScreenlock, unittest.isTrue); @@ -903,40 +943,40 @@ buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeter--; } -buildUnnamed3077() { +buildUnnamed3209() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3077(core.List<core.String> o) { +checkUnnamed3209(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3078() { +buildUnnamed3210() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3078(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')); } -buildUnnamed3079() { +buildUnnamed3211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3079(core.List<core.String> o) { +checkUnnamed3211(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -949,9 +989,9 @@ buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig++; if (buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig < 3) { - o.accessLevels = buildUnnamed3077(); - o.resources = buildUnnamed3078(); - o.restrictedServices = buildUnnamed3079(); + o.accessLevels = buildUnnamed3209(); + o.resources = buildUnnamed3210(); + o.restrictedServices = buildUnnamed3211(); o.vpcAccessibleServices = buildGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices(); } @@ -964,23 +1004,23 @@ buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig++; if (buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig < 3) { - checkUnnamed3077(o.accessLevels); - checkUnnamed3078(o.resources); - checkUnnamed3079(o.restrictedServices); + checkUnnamed3209(o.accessLevels); + checkUnnamed3210(o.resources); + checkUnnamed3211(o.restrictedServices); checkGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices( o.vpcAccessibleServices); } buildCounterGoogleIdentityAccesscontextmanagerV1ServicePerimeterConfig--; } -buildUnnamed3080() { +buildUnnamed3212() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3080(core.List<core.String> o) { +checkUnnamed3212(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -993,7 +1033,7 @@ buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices++; if (buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices < 3) { - o.allowedServices = buildUnnamed3080(); + o.allowedServices = buildUnnamed3212(); o.enableRestriction = true; } buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices--; @@ -1005,20 +1045,45 @@ buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices++; if (buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices < 3) { - checkUnnamed3080(o.allowedServices); + checkUnnamed3212(o.allowedServices); unittest.expect(o.enableRestriction, unittest.isTrue); } buildCounterGoogleIdentityAccesscontextmanagerV1VpcAccessibleServices--; } -buildUnnamed3081() { +core.int buildCounterIamPolicySearchResult = 0; +buildIamPolicySearchResult() { + var o = new api.IamPolicySearchResult(); + buildCounterIamPolicySearchResult++; + if (buildCounterIamPolicySearchResult < 3) { + o.explanation = buildExplanation(); + o.policy = buildPolicy(); + o.project = "foo"; + o.resource = "foo"; + } + buildCounterIamPolicySearchResult--; + return o; +} + +checkIamPolicySearchResult(api.IamPolicySearchResult o) { + buildCounterIamPolicySearchResult++; + if (buildCounterIamPolicySearchResult < 3) { + checkExplanation(o.explanation); + checkPolicy(o.policy); + unittest.expect(o.project, unittest.equals('foo')); + unittest.expect(o.resource, unittest.equals('foo')); + } + buildCounterIamPolicySearchResult--; +} + +buildUnnamed3213() { var o = new core.List<api.Feed>(); o.add(buildFeed()); o.add(buildFeed()); return o; } -checkUnnamed3081(core.List<api.Feed> o) { +checkUnnamed3213(core.List<api.Feed> o) { unittest.expect(o, unittest.hasLength(2)); checkFeed(o[0]); checkFeed(o[1]); @@ -1029,7 +1094,7 @@ var o = new api.ListFeedsResponse(); buildCounterListFeedsResponse++; if (buildCounterListFeedsResponse < 3) { - o.feeds = buildUnnamed3081(); + o.feeds = buildUnnamed3213(); } buildCounterListFeedsResponse--; return o; @@ -1038,12 +1103,12 @@ checkListFeedsResponse(api.ListFeedsResponse o) { buildCounterListFeedsResponse++; if (buildCounterListFeedsResponse < 3) { - checkUnnamed3081(o.feeds); + checkUnnamed3213(o.feeds); } buildCounterListFeedsResponse--; } -buildUnnamed3082() { +buildUnnamed3214() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1058,7 +1123,7 @@ return o; } -checkUnnamed3082(core.Map<core.String, core.Object> o) { +checkUnnamed3214(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)); @@ -1072,7 +1137,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3083() { +buildUnnamed3215() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1087,7 +1152,7 @@ return o; } -checkUnnamed3083(core.Map<core.String, core.Object> o) { +checkUnnamed3215(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)); @@ -1108,9 +1173,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3082(); + o.metadata = buildUnnamed3214(); o.name = "foo"; - o.response = buildUnnamed3083(); + o.response = buildUnnamed3215(); } buildCounterOperation--; return o; @@ -1121,9 +1186,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3082(o.metadata); + checkUnnamed3214(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3083(o.response); + checkUnnamed3215(o.response); } buildCounterOperation--; } @@ -1149,27 +1214,78 @@ buildCounterOutputConfig--; } -buildUnnamed3084() { +core.int buildCounterPartitionSpec = 0; +buildPartitionSpec() { + var o = new api.PartitionSpec(); + buildCounterPartitionSpec++; + if (buildCounterPartitionSpec < 3) { + o.partitionKey = "foo"; + } + buildCounterPartitionSpec--; + return o; +} + +checkPartitionSpec(api.PartitionSpec o) { + buildCounterPartitionSpec++; + if (buildCounterPartitionSpec < 3) { + unittest.expect(o.partitionKey, unittest.equals('foo')); + } + buildCounterPartitionSpec--; +} + +buildUnnamed3216() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3216(core.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 buildCounterPermissions = 0; +buildPermissions() { + var o = new api.Permissions(); + buildCounterPermissions++; + if (buildCounterPermissions < 3) { + o.permissions = buildUnnamed3216(); + } + buildCounterPermissions--; + return o; +} + +checkPermissions(api.Permissions o) { + buildCounterPermissions++; + if (buildCounterPermissions < 3) { + checkUnnamed3216(o.permissions); + } + buildCounterPermissions--; +} + +buildUnnamed3217() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3084(core.List<api.AuditConfig> o) { +checkUnnamed3217(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3085() { +buildUnnamed3218() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3085(core.List<api.Binding> o) { +checkUnnamed3218(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1180,8 +1296,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3084(); - o.bindings = buildUnnamed3085(); + o.auditConfigs = buildUnnamed3217(); + o.bindings = buildUnnamed3218(); o.etag = "foo"; o.version = 42; } @@ -1192,8 +1308,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3084(o.auditConfigs); - checkUnnamed3085(o.bindings); + checkUnnamed3217(o.auditConfigs); + checkUnnamed3218(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1219,7 +1335,7 @@ buildCounterPubsubDestination--; } -buildUnnamed3086() { +buildUnnamed3219() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1234,7 +1350,7 @@ return o; } -checkUnnamed3086(core.Map<core.String, core.Object> o) { +checkUnnamed3219(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)); @@ -1253,9 +1369,10 @@ var o = new api.Resource(); buildCounterResource++; if (buildCounterResource < 3) { - o.data = buildUnnamed3086(); + o.data = buildUnnamed3219(); o.discoveryDocumentUri = "foo"; o.discoveryName = "foo"; + o.location = "foo"; o.parent = "foo"; o.resourceUrl = "foo"; o.version = "foo"; @@ -1267,9 +1384,10 @@ checkResource(api.Resource o) { buildCounterResource++; if (buildCounterResource < 3) { - checkUnnamed3086(o.data); + checkUnnamed3219(o.data); unittest.expect(o.discoveryDocumentUri, unittest.equals('foo')); unittest.expect(o.discoveryName, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.resourceUrl, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -1277,7 +1395,7 @@ buildCounterResource--; } -buildUnnamed3087() { +buildUnnamed3220() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1292,7 +1410,7 @@ return o; } -checkUnnamed3087(core.Map<core.String, core.Object> o) { +checkUnnamed3220(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)); @@ -1306,17 +1424,175 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3088() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3087()); - o.add(buildUnnamed3087()); +buildUnnamed3221() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; return o; } -checkUnnamed3088(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3221(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3087(o[0]); - checkUnnamed3087(o[1]); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], 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')); +} + +core.int buildCounterResourceSearchResult = 0; +buildResourceSearchResult() { + var o = new api.ResourceSearchResult(); + buildCounterResourceSearchResult++; + if (buildCounterResourceSearchResult < 3) { + o.additionalAttributes = buildUnnamed3220(); + o.assetType = "foo"; + o.description = "foo"; + o.displayName = "foo"; + o.labels = buildUnnamed3221(); + o.location = "foo"; + o.name = "foo"; + o.networkTags = buildUnnamed3222(); + o.project = "foo"; + } + buildCounterResourceSearchResult--; + return o; +} + +checkResourceSearchResult(api.ResourceSearchResult o) { + buildCounterResourceSearchResult++; + if (buildCounterResourceSearchResult < 3) { + checkUnnamed3220(o.additionalAttributes); + unittest.expect(o.assetType, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed3221(o.labels); + unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed3222(o.networkTags); + unittest.expect(o.project, unittest.equals('foo')); + } + buildCounterResourceSearchResult--; +} + +buildUnnamed3223() { + var o = new core.List<api.IamPolicySearchResult>(); + o.add(buildIamPolicySearchResult()); + o.add(buildIamPolicySearchResult()); + return o; +} + +checkUnnamed3223(core.List<api.IamPolicySearchResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkIamPolicySearchResult(o[0]); + checkIamPolicySearchResult(o[1]); +} + +core.int buildCounterSearchAllIamPoliciesResponse = 0; +buildSearchAllIamPoliciesResponse() { + var o = new api.SearchAllIamPoliciesResponse(); + buildCounterSearchAllIamPoliciesResponse++; + if (buildCounterSearchAllIamPoliciesResponse < 3) { + o.nextPageToken = "foo"; + o.results = buildUnnamed3223(); + } + buildCounterSearchAllIamPoliciesResponse--; + return o; +} + +checkSearchAllIamPoliciesResponse(api.SearchAllIamPoliciesResponse o) { + buildCounterSearchAllIamPoliciesResponse++; + if (buildCounterSearchAllIamPoliciesResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3223(o.results); + } + buildCounterSearchAllIamPoliciesResponse--; +} + +buildUnnamed3224() { + var o = new core.List<api.ResourceSearchResult>(); + o.add(buildResourceSearchResult()); + o.add(buildResourceSearchResult()); + return o; +} + +checkUnnamed3224(core.List<api.ResourceSearchResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkResourceSearchResult(o[0]); + checkResourceSearchResult(o[1]); +} + +core.int buildCounterSearchAllResourcesResponse = 0; +buildSearchAllResourcesResponse() { + var o = new api.SearchAllResourcesResponse(); + buildCounterSearchAllResourcesResponse++; + if (buildCounterSearchAllResourcesResponse < 3) { + o.nextPageToken = "foo"; + o.results = buildUnnamed3224(); + } + buildCounterSearchAllResourcesResponse--; + return o; +} + +checkSearchAllResourcesResponse(api.SearchAllResourcesResponse o) { + buildCounterSearchAllResourcesResponse++; + if (buildCounterSearchAllResourcesResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3224(o.results); + } + buildCounterSearchAllResourcesResponse--; +} + +buildUnnamed3225() { + 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; +} + +checkUnnamed3225(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')); +} + +buildUnnamed3226() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed3225()); + o.add(buildUnnamed3225()); + return o; +} + +checkUnnamed3226(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed3225(o[0]); + checkUnnamed3225(o[1]); } core.int buildCounterStatus = 0; @@ -1325,7 +1601,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3088(); + o.details = buildUnnamed3226(); o.message = "foo"; } buildCounterStatus--; @@ -1336,7 +1612,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3088(o.details); + checkUnnamed3226(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1349,6 +1625,8 @@ if (buildCounterTemporalAsset < 3) { o.asset = buildAsset(); o.deleted = true; + o.priorAsset = buildAsset(); + o.priorAssetState = "foo"; o.window = buildTimeWindow(); } buildCounterTemporalAsset--; @@ -1360,6 +1638,8 @@ if (buildCounterTemporalAsset < 3) { checkAsset(o.asset); unittest.expect(o.deleted, unittest.isTrue); + checkAsset(o.priorAsset); + unittest.expect(o.priorAssetState, unittest.equals('foo')); checkTimeWindow(o.window); } buildCounterTemporalAsset--; @@ -1407,14 +1687,27 @@ buildCounterUpdateFeedRequest--; } -buildUnnamed3089() { +buildUnnamed3227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3089(core.List<core.String> 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')); @@ -1485,6 +1778,14 @@ }); }); + unittest.group("obj-schema-Explanation", () { + unittest.test("to-json--from-json", () { + var o = buildExplanation(); + var od = new api.Explanation.fromJson(o.toJson()); + checkExplanation(od); + }); + }); + unittest.group("obj-schema-ExportAssetsRequest", () { unittest.test("to-json--from-json", () { var o = buildExportAssetsRequest(); @@ -1666,6 +1967,14 @@ }); }); + unittest.group("obj-schema-IamPolicySearchResult", () { + unittest.test("to-json--from-json", () { + var o = buildIamPolicySearchResult(); + var od = new api.IamPolicySearchResult.fromJson(o.toJson()); + checkIamPolicySearchResult(od); + }); + }); + unittest.group("obj-schema-ListFeedsResponse", () { unittest.test("to-json--from-json", () { var o = buildListFeedsResponse(); @@ -1690,6 +1999,22 @@ }); }); + unittest.group("obj-schema-PartitionSpec", () { + unittest.test("to-json--from-json", () { + var o = buildPartitionSpec(); + var od = new api.PartitionSpec.fromJson(o.toJson()); + checkPartitionSpec(od); + }); + }); + + unittest.group("obj-schema-Permissions", () { + unittest.test("to-json--from-json", () { + var o = buildPermissions(); + var od = new api.Permissions.fromJson(o.toJson()); + checkPermissions(od); + }); + }); + unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -1714,6 +2039,30 @@ }); }); + unittest.group("obj-schema-ResourceSearchResult", () { + unittest.test("to-json--from-json", () { + var o = buildResourceSearchResult(); + var od = new api.ResourceSearchResult.fromJson(o.toJson()); + checkResourceSearchResult(od); + }); + }); + + unittest.group("obj-schema-SearchAllIamPoliciesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchAllIamPoliciesResponse(); + var od = new api.SearchAllIamPoliciesResponse.fromJson(o.toJson()); + checkSearchAllIamPoliciesResponse(od); + }); + }); + + unittest.group("obj-schema-SearchAllResourcesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchAllResourcesResponse(); + var od = new api.SearchAllResourcesResponse.fromJson(o.toJson()); + checkSearchAllResourcesResponse(od); + }); + }); + unittest.group("obj-schema-Status", () { unittest.test("to-json--from-json", () { var o = buildStatus(); @@ -2070,9 +2419,9 @@ api.V1ResourceApi res = new api.CloudassetApi(mock).v1; var arg_parent = "foo"; var arg_contentType = "foo"; + var arg_assetNames = buildUnnamed3227(); var arg_readTimeWindow_endTime = "foo"; var arg_readTimeWindow_startTime = "foo"; - var arg_assetNames = buildUnnamed3089(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2107,12 +2456,12 @@ } unittest.expect( queryMap["contentType"].first, unittest.equals(arg_contentType)); + unittest.expect( + queryMap["assetNames"], unittest.equals(arg_assetNames)); unittest.expect(queryMap["readTimeWindow.endTime"].first, unittest.equals(arg_readTimeWindow_endTime)); unittest.expect(queryMap["readTimeWindow.startTime"].first, unittest.equals(arg_readTimeWindow_startTime)); - unittest.expect( - queryMap["assetNames"], unittest.equals(arg_assetNames)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2124,9 +2473,9 @@ res .batchGetAssetsHistory(arg_parent, contentType: arg_contentType, + assetNames: arg_assetNames, readTimeWindow_endTime: arg_readTimeWindow_endTime, readTimeWindow_startTime: arg_readTimeWindow_startTime, - assetNames: arg_assetNames, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetAssetsHistoryResponse(response); @@ -2187,5 +2536,139 @@ checkOperation(response); }))); }); + + unittest.test("method--searchAllIamPolicies", () { + var mock = new HttpServerMock(); + api.V1ResourceApi res = new api.CloudassetApi(mock).v1; + var arg_scope = "foo"; + var arg_query = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["query"].first, unittest.equals(arg_query)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearchAllIamPoliciesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .searchAllIamPolicies(arg_scope, + query: arg_query, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearchAllIamPoliciesResponse(response); + }))); + }); + + unittest.test("method--searchAllResources", () { + var mock = new HttpServerMock(); + api.V1ResourceApi res = new api.CloudassetApi(mock).v1; + var arg_scope = "foo"; + var arg_pageToken = "foo"; + var arg_query = "foo"; + var arg_orderBy = "foo"; + var arg_assetTypes = buildUnnamed3228(); + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["assetTypes"], unittest.equals(arg_assetTypes)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearchAllResourcesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .searchAllResources(arg_scope, + pageToken: arg_pageToken, + query: arg_query, + orderBy: arg_orderBy, + assetTypes: arg_assetTypes, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearchAllResourcesResponse(response); + }))); + }); }); }
diff --git a/generated/googleapis/test/cloudbilling/v1_test.dart b/generated/googleapis/test/cloudbilling/v1_test.dart index 28ab1fa..8cc310b 100644 --- a/generated/googleapis/test/cloudbilling/v1_test.dart +++ b/generated/googleapis/test/cloudbilling/v1_test.dart
@@ -73,14 +73,14 @@ buildCounterAggregationInfo--; } -buildUnnamed838() { +buildUnnamed859() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed838(core.List<api.AuditLogConfig> o) { +checkUnnamed859(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -91,7 +91,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed838(); + o.auditLogConfigs = buildUnnamed859(); o.service = "foo"; } buildCounterAuditConfig--; @@ -101,20 +101,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed838(o.auditLogConfigs); + checkUnnamed859(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed839() { +buildUnnamed860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed839(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')); @@ -125,7 +125,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed839(); + o.exemptedMembers = buildUnnamed860(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -135,7 +135,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed839(o.exemptedMembers); + checkUnnamed860(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -166,14 +166,14 @@ buildCounterBillingAccount--; } -buildUnnamed840() { +buildUnnamed861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed840(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')); @@ -185,7 +185,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed840(); + o.members = buildUnnamed861(); o.role = "foo"; } buildCounterBinding--; @@ -196,7 +196,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed840(o.members); + checkUnnamed861(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -252,14 +252,48 @@ buildCounterExpr--; } -buildUnnamed841() { +buildUnnamed862() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterGeoTaxonomy = 0; +buildGeoTaxonomy() { + var o = new api.GeoTaxonomy(); + buildCounterGeoTaxonomy++; + if (buildCounterGeoTaxonomy < 3) { + o.regions = buildUnnamed862(); + o.type = "foo"; + } + buildCounterGeoTaxonomy--; + return o; +} + +checkGeoTaxonomy(api.GeoTaxonomy o) { + buildCounterGeoTaxonomy++; + if (buildCounterGeoTaxonomy < 3) { + checkUnnamed862(o.regions); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterGeoTaxonomy--; +} + +buildUnnamed863() { var o = new core.List<api.BillingAccount>(); o.add(buildBillingAccount()); o.add(buildBillingAccount()); return o; } -checkUnnamed841(core.List<api.BillingAccount> o) { +checkUnnamed863(core.List<api.BillingAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingAccount(o[0]); checkBillingAccount(o[1]); @@ -270,7 +304,7 @@ var o = new api.ListBillingAccountsResponse(); buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - o.billingAccounts = buildUnnamed841(); + o.billingAccounts = buildUnnamed863(); o.nextPageToken = "foo"; } buildCounterListBillingAccountsResponse--; @@ -280,20 +314,20 @@ checkListBillingAccountsResponse(api.ListBillingAccountsResponse o) { buildCounterListBillingAccountsResponse++; if (buildCounterListBillingAccountsResponse < 3) { - checkUnnamed841(o.billingAccounts); + checkUnnamed863(o.billingAccounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBillingAccountsResponse--; } -buildUnnamed842() { +buildUnnamed864() { var o = new core.List<api.ProjectBillingInfo>(); o.add(buildProjectBillingInfo()); o.add(buildProjectBillingInfo()); return o; } -checkUnnamed842(core.List<api.ProjectBillingInfo> o) { +checkUnnamed864(core.List<api.ProjectBillingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkProjectBillingInfo(o[0]); checkProjectBillingInfo(o[1]); @@ -305,7 +339,7 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { o.nextPageToken = "foo"; - o.projectBillingInfo = buildUnnamed842(); + o.projectBillingInfo = buildUnnamed864(); } buildCounterListProjectBillingInfoResponse--; return o; @@ -315,19 +349,19 @@ buildCounterListProjectBillingInfoResponse++; if (buildCounterListProjectBillingInfoResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed842(o.projectBillingInfo); + checkUnnamed864(o.projectBillingInfo); } buildCounterListProjectBillingInfoResponse--; } -buildUnnamed843() { +buildUnnamed865() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed843(core.List<api.Service> o) { +checkUnnamed865(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -339,7 +373,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed843(); + o.services = buildUnnamed865(); } buildCounterListServicesResponse--; return o; @@ -349,19 +383,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed843(o.services); + checkUnnamed865(o.services); } buildCounterListServicesResponse--; } -buildUnnamed844() { +buildUnnamed866() { var o = new core.List<api.Sku>(); o.add(buildSku()); o.add(buildSku()); return o; } -checkUnnamed844(core.List<api.Sku> o) { +checkUnnamed866(core.List<api.Sku> o) { unittest.expect(o, unittest.hasLength(2)); checkSku(o[0]); checkSku(o[1]); @@ -373,7 +407,7 @@ buildCounterListSkusResponse++; if (buildCounterListSkusResponse < 3) { o.nextPageToken = "foo"; - o.skus = buildUnnamed844(); + o.skus = buildUnnamed866(); } buildCounterListSkusResponse--; return o; @@ -383,7 +417,7 @@ buildCounterListSkusResponse++; if (buildCounterListSkusResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed844(o.skus); + checkUnnamed866(o.skus); } buildCounterListSkusResponse--; } @@ -411,27 +445,27 @@ buildCounterMoney--; } -buildUnnamed845() { +buildUnnamed867() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed845(core.List<api.AuditConfig> o) { +checkUnnamed867(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed846() { +buildUnnamed868() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed846(core.List<api.Binding> o) { +checkUnnamed868(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -442,8 +476,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed845(); - o.bindings = buildUnnamed846(); + o.auditConfigs = buildUnnamed867(); + o.bindings = buildUnnamed868(); o.etag = "foo"; o.version = 42; } @@ -454,22 +488,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed845(o.auditConfigs); - checkUnnamed846(o.bindings); + checkUnnamed867(o.auditConfigs); + checkUnnamed868(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed847() { +buildUnnamed869() { var o = new core.List<api.TierRate>(); o.add(buildTierRate()); o.add(buildTierRate()); return o; } -checkUnnamed847(core.List<api.TierRate> o) { +checkUnnamed869(core.List<api.TierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkTierRate(o[0]); checkTierRate(o[1]); @@ -484,7 +518,7 @@ o.baseUnitConversionFactor = 42.0; o.baseUnitDescription = "foo"; o.displayQuantity = 42.0; - o.tieredRates = buildUnnamed847(); + o.tieredRates = buildUnnamed869(); o.usageUnit = "foo"; o.usageUnitDescription = "foo"; } @@ -499,7 +533,7 @@ unittest.expect(o.baseUnitConversionFactor, unittest.equals(42.0)); unittest.expect(o.baseUnitDescription, unittest.equals('foo')); unittest.expect(o.displayQuantity, unittest.equals(42.0)); - checkUnnamed847(o.tieredRates); + checkUnnamed869(o.tieredRates); unittest.expect(o.usageUnit, unittest.equals('foo')); unittest.expect(o.usageUnitDescription, unittest.equals('foo')); } @@ -604,27 +638,27 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed848() { +buildUnnamed870() { var o = new core.List<api.PricingInfo>(); o.add(buildPricingInfo()); o.add(buildPricingInfo()); return o; } -checkUnnamed848(core.List<api.PricingInfo> o) { +checkUnnamed870(core.List<api.PricingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingInfo(o[0]); checkPricingInfo(o[1]); } -buildUnnamed849() { +buildUnnamed871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed849(core.List<core.String> o) { +checkUnnamed871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -637,10 +671,11 @@ if (buildCounterSku < 3) { o.category = buildCategory(); o.description = "foo"; + o.geoTaxonomy = buildGeoTaxonomy(); o.name = "foo"; - o.pricingInfo = buildUnnamed848(); + o.pricingInfo = buildUnnamed870(); o.serviceProviderName = "foo"; - o.serviceRegions = buildUnnamed849(); + o.serviceRegions = buildUnnamed871(); o.skuId = "foo"; } buildCounterSku--; @@ -652,23 +687,24 @@ if (buildCounterSku < 3) { checkCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); + checkGeoTaxonomy(o.geoTaxonomy); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed848(o.pricingInfo); + checkUnnamed870(o.pricingInfo); unittest.expect(o.serviceProviderName, unittest.equals('foo')); - checkUnnamed849(o.serviceRegions); + checkUnnamed871(o.serviceRegions); unittest.expect(o.skuId, unittest.equals('foo')); } buildCounterSku--; } -buildUnnamed850() { +buildUnnamed872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed850(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')); @@ -679,7 +715,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed850(); + o.permissions = buildUnnamed872(); } buildCounterTestIamPermissionsRequest--; return o; @@ -688,19 +724,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed850(o.permissions); + checkUnnamed872(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed851() { +buildUnnamed873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed851(core.List<core.String> o) { +checkUnnamed873(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -711,7 +747,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed851(); + o.permissions = buildUnnamed873(); } buildCounterTestIamPermissionsResponse--; return o; @@ -720,7 +756,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed851(o.permissions); + checkUnnamed873(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -803,6 +839,14 @@ }); }); + unittest.group("obj-schema-GeoTaxonomy", () { + unittest.test("to-json--from-json", () { + var o = buildGeoTaxonomy(); + var od = new api.GeoTaxonomy.fromJson(o.toJson()); + checkGeoTaxonomy(od); + }); + }); + unittest.group("obj-schema-ListBillingAccountsResponse", () { unittest.test("to-json--from-json", () { var o = buildListBillingAccountsResponse(); @@ -1093,9 +1137,9 @@ var mock = new HttpServerMock(); api.BillingAccountsResourceApi res = new api.CloudbillingApi(mock).billingAccounts; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1127,11 +1171,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1142,9 +1186,9 @@ }), true); res .list( + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBillingAccountsResponse(response); @@ -1330,8 +1374,8 @@ api.BillingAccountsProjectsResourceApi res = new api.CloudbillingApi(mock).billingAccounts.projects; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1364,10 +1408,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1378,8 +1422,8 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListProjectBillingInfoResponse(response); @@ -1561,8 +1605,8 @@ api.ServicesSkusResourceApi res = new api.CloudbillingApi(mock).services.skus; var arg_parent = "foo"; - var arg_currencyCode = "foo"; var arg_endTime = "foo"; + var arg_currencyCode = "foo"; var arg_pageToken = "foo"; var arg_startTime = "foo"; var arg_pageSize = 42; @@ -1599,10 +1643,10 @@ } } unittest.expect( - queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); - unittest.expect( queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect( + queryMap["currencyCode"].first, unittest.equals(arg_currencyCode)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["startTime"].first, unittest.equals(arg_startTime)); @@ -1618,8 +1662,8 @@ }), true); res .list(arg_parent, - currencyCode: arg_currencyCode, endTime: arg_endTime, + currencyCode: arg_currencyCode, pageToken: arg_pageToken, startTime: arg_startTime, pageSize: arg_pageSize,
diff --git a/generated/googleapis/test/cloudbuild/v1_test.dart b/generated/googleapis/test/cloudbuild/v1_test.dart index 62da9ad..798e991 100644 --- a/generated/googleapis/test/cloudbuild/v1_test.dart +++ b/generated/googleapis/test/cloudbuild/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2405() { +buildUnnamed2517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2405(core.List<core.String> o) { +checkUnnamed2517(core.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 @@ buildCounterArtifactObjects++; if (buildCounterArtifactObjects < 3) { o.location = "foo"; - o.paths = buildUnnamed2405(); + o.paths = buildUnnamed2517(); o.timing = buildTimeSpan(); } buildCounterArtifactObjects--; @@ -80,20 +80,20 @@ buildCounterArtifactObjects++; if (buildCounterArtifactObjects < 3) { unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed2405(o.paths); + checkUnnamed2517(o.paths); checkTimeSpan(o.timing); } buildCounterArtifactObjects--; } -buildUnnamed2406() { +buildUnnamed2518() { var o = new core.List<api.FileHashes>(); o.add(buildFileHashes()); o.add(buildFileHashes()); return o; } -checkUnnamed2406(core.List<api.FileHashes> o) { +checkUnnamed2518(core.List<api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o[0]); checkFileHashes(o[1]); @@ -104,7 +104,7 @@ var o = new api.ArtifactResult(); buildCounterArtifactResult++; if (buildCounterArtifactResult < 3) { - o.fileHash = buildUnnamed2406(); + o.fileHash = buildUnnamed2518(); o.location = "foo"; } buildCounterArtifactResult--; @@ -114,20 +114,20 @@ checkArtifactResult(api.ArtifactResult o) { buildCounterArtifactResult++; if (buildCounterArtifactResult < 3) { - checkUnnamed2406(o.fileHash); + checkUnnamed2518(o.fileHash); unittest.expect(o.location, unittest.equals('foo')); } buildCounterArtifactResult--; } -buildUnnamed2407() { +buildUnnamed2519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2407(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')); @@ -138,7 +138,7 @@ var o = new api.Artifacts(); buildCounterArtifacts++; if (buildCounterArtifacts < 3) { - o.images = buildUnnamed2407(); + o.images = buildUnnamed2519(); o.objects = buildArtifactObjects(); } buildCounterArtifacts--; @@ -148,85 +148,85 @@ checkArtifacts(api.Artifacts o) { buildCounterArtifacts++; if (buildCounterArtifacts < 3) { - checkUnnamed2407(o.images); + checkUnnamed2519(o.images); checkArtifactObjects(o.objects); } buildCounterArtifacts--; } -buildUnnamed2408() { +buildUnnamed2520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2408(core.List<core.String> o) { +checkUnnamed2520(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2409() { +buildUnnamed2521() { var o = new core.List<api.Secret>(); o.add(buildSecret()); o.add(buildSecret()); return o; } -checkUnnamed2409(core.List<api.Secret> o) { +checkUnnamed2521(core.List<api.Secret> o) { unittest.expect(o, unittest.hasLength(2)); checkSecret(o[0]); checkSecret(o[1]); } -buildUnnamed2410() { +buildUnnamed2522() { var o = new core.List<api.BuildStep>(); o.add(buildBuildStep()); o.add(buildBuildStep()); return o; } -checkUnnamed2410(core.List<api.BuildStep> o) { +checkUnnamed2522(core.List<api.BuildStep> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildStep(o[0]); checkBuildStep(o[1]); } -buildUnnamed2411() { +buildUnnamed2523() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2411(core.Map<core.String, core.String> o) { +checkUnnamed2523(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')); } -buildUnnamed2412() { +buildUnnamed2524() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2412(core.List<core.String> o) { +checkUnnamed2524(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2413() { +buildUnnamed2525() { var o = new core.Map<core.String, api.TimeSpan>(); o["x"] = buildTimeSpan(); o["y"] = buildTimeSpan(); return o; } -checkUnnamed2413(core.Map<core.String, api.TimeSpan> o) { +checkUnnamed2525(core.Map<core.String, api.TimeSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSpan(o["x"]); checkTimeSpan(o["y"]); @@ -242,24 +242,26 @@ o.createTime = "foo"; o.finishTime = "foo"; o.id = "foo"; - o.images = buildUnnamed2408(); + o.images = buildUnnamed2520(); o.logUrl = "foo"; o.logsBucket = "foo"; + o.name = "foo"; o.options = buildBuildOptions(); o.projectId = "foo"; o.queueTtl = "foo"; o.results = buildResults(); - o.secrets = buildUnnamed2409(); + o.secrets = buildUnnamed2521(); + o.serviceAccount = "foo"; o.source = buildSource(); o.sourceProvenance = buildSourceProvenance(); o.startTime = "foo"; o.status = "foo"; o.statusDetail = "foo"; - o.steps = buildUnnamed2410(); - o.substitutions = buildUnnamed2411(); - o.tags = buildUnnamed2412(); + o.steps = buildUnnamed2522(); + o.substitutions = buildUnnamed2523(); + o.tags = buildUnnamed2524(); o.timeout = "foo"; - o.timing = buildUnnamed2413(); + o.timing = buildUnnamed2525(); } buildCounterBuild--; return o; @@ -273,24 +275,26 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.finishTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2408(o.images); + checkUnnamed2520(o.images); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.logsBucket, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); checkBuildOptions(o.options); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.queueTtl, unittest.equals('foo')); checkResults(o.results); - checkUnnamed2409(o.secrets); + checkUnnamed2521(o.secrets); + unittest.expect(o.serviceAccount, unittest.equals('foo')); checkSource(o.source); checkSourceProvenance(o.sourceProvenance); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.statusDetail, unittest.equals('foo')); - checkUnnamed2410(o.steps); - checkUnnamed2411(o.substitutions); - checkUnnamed2412(o.tags); + checkUnnamed2522(o.steps); + checkUnnamed2523(o.substitutions); + checkUnnamed2524(o.tags); unittest.expect(o.timeout, unittest.equals('foo')); - checkUnnamed2413(o.timing); + checkUnnamed2525(o.timing); } buildCounterBuild--; } @@ -314,53 +318,53 @@ buildCounterBuildOperationMetadata--; } -buildUnnamed2414() { +buildUnnamed2526() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2414(core.List<core.String> o) { +checkUnnamed2526(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2415() { +buildUnnamed2527() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2415(core.List<core.String> o) { +checkUnnamed2527(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2416() { +buildUnnamed2528() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2416(core.List<core.String> o) { +checkUnnamed2528(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2417() { +buildUnnamed2529() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2417(core.List<api.Volume> o) { +checkUnnamed2529(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -372,15 +376,16 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { o.diskSizeGb = "foo"; - o.env = buildUnnamed2414(); + o.dynamicSubstitutions = true; + o.env = buildUnnamed2526(); o.logStreamingOption = "foo"; o.logging = "foo"; o.machineType = "foo"; o.requestedVerifyOption = "foo"; - o.secretEnv = buildUnnamed2415(); - o.sourceProvenanceHash = buildUnnamed2416(); + o.secretEnv = buildUnnamed2527(); + o.sourceProvenanceHash = buildUnnamed2528(); o.substitutionOption = "foo"; - o.volumes = buildUnnamed2417(); + o.volumes = buildUnnamed2529(); o.workerPool = "foo"; } buildCounterBuildOptions--; @@ -391,80 +396,81 @@ buildCounterBuildOptions++; if (buildCounterBuildOptions < 3) { unittest.expect(o.diskSizeGb, unittest.equals('foo')); - checkUnnamed2414(o.env); + unittest.expect(o.dynamicSubstitutions, unittest.isTrue); + checkUnnamed2526(o.env); unittest.expect(o.logStreamingOption, unittest.equals('foo')); unittest.expect(o.logging, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.requestedVerifyOption, unittest.equals('foo')); - checkUnnamed2415(o.secretEnv); - checkUnnamed2416(o.sourceProvenanceHash); + checkUnnamed2527(o.secretEnv); + checkUnnamed2528(o.sourceProvenanceHash); unittest.expect(o.substitutionOption, unittest.equals('foo')); - checkUnnamed2417(o.volumes); + checkUnnamed2529(o.volumes); unittest.expect(o.workerPool, unittest.equals('foo')); } buildCounterBuildOptions--; } -buildUnnamed2418() { +buildUnnamed2530() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2418(core.List<core.String> o) { +checkUnnamed2530(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2419() { +buildUnnamed2531() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2419(core.List<core.String> o) { +checkUnnamed2531(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2420() { +buildUnnamed2532() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2420(core.List<core.String> o) { +checkUnnamed2532(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2421() { +buildUnnamed2533() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed2421(core.List<api.Volume> o) { +checkUnnamed2533(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); } -buildUnnamed2422() { +buildUnnamed2534() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2422(core.List<core.String> o) { +checkUnnamed2534(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -475,19 +481,19 @@ var o = new api.BuildStep(); buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - o.args = buildUnnamed2418(); + o.args = buildUnnamed2530(); o.dir = "foo"; o.entrypoint = "foo"; - o.env = buildUnnamed2419(); + o.env = buildUnnamed2531(); o.id = "foo"; o.name = "foo"; o.pullTiming = buildTimeSpan(); - o.secretEnv = buildUnnamed2420(); + o.secretEnv = buildUnnamed2532(); o.status = "foo"; o.timeout = "foo"; o.timing = buildTimeSpan(); - o.volumes = buildUnnamed2421(); - o.waitFor = buildUnnamed2422(); + o.volumes = buildUnnamed2533(); + o.waitFor = buildUnnamed2534(); } buildCounterBuildStep--; return o; @@ -496,70 +502,70 @@ checkBuildStep(api.BuildStep o) { buildCounterBuildStep++; if (buildCounterBuildStep < 3) { - checkUnnamed2418(o.args); + checkUnnamed2530(o.args); unittest.expect(o.dir, unittest.equals('foo')); unittest.expect(o.entrypoint, unittest.equals('foo')); - checkUnnamed2419(o.env); + checkUnnamed2531(o.env); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkTimeSpan(o.pullTiming); - checkUnnamed2420(o.secretEnv); + checkUnnamed2532(o.secretEnv); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.timeout, unittest.equals('foo')); checkTimeSpan(o.timing); - checkUnnamed2421(o.volumes); - checkUnnamed2422(o.waitFor); + checkUnnamed2533(o.volumes); + checkUnnamed2534(o.waitFor); } buildCounterBuildStep--; } -buildUnnamed2423() { +buildUnnamed2535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2423(core.List<core.String> o) { +checkUnnamed2535(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2424() { +buildUnnamed2536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2424(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')); } -buildUnnamed2425() { +buildUnnamed2537() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2425(core.Map<core.String, core.String> o) { +checkUnnamed2537(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')); } -buildUnnamed2426() { +buildUnnamed2538() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2426(core.List<core.String> o) { +checkUnnamed2538(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -577,11 +583,11 @@ o.filename = "foo"; o.github = buildGitHubEventsConfig(); o.id = "foo"; - o.ignoredFiles = buildUnnamed2423(); - o.includedFiles = buildUnnamed2424(); + o.ignoredFiles = buildUnnamed2535(); + o.includedFiles = buildUnnamed2536(); o.name = "foo"; - o.substitutions = buildUnnamed2425(); - o.tags = buildUnnamed2426(); + o.substitutions = buildUnnamed2537(); + o.tags = buildUnnamed2538(); o.triggerTemplate = buildRepoSource(); } buildCounterBuildTrigger--; @@ -598,11 +604,11 @@ unittest.expect(o.filename, unittest.equals('foo')); checkGitHubEventsConfig(o.github); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2423(o.ignoredFiles); - checkUnnamed2424(o.includedFiles); + checkUnnamed2535(o.ignoredFiles); + checkUnnamed2536(o.includedFiles); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2425(o.substitutions); - checkUnnamed2426(o.tags); + checkUnnamed2537(o.substitutions); + checkUnnamed2538(o.tags); checkRepoSource(o.triggerTemplate); } buildCounterBuildTrigger--; @@ -635,14 +641,22 @@ buildCancelBuildRequest() { var o = new api.CancelBuildRequest(); buildCounterCancelBuildRequest++; - if (buildCounterCancelBuildRequest < 3) {} + if (buildCounterCancelBuildRequest < 3) { + o.id = "foo"; + o.name = "foo"; + o.projectId = "foo"; + } buildCounterCancelBuildRequest--; return o; } checkCancelBuildRequest(api.CancelBuildRequest o) { buildCounterCancelBuildRequest++; - if (buildCounterCancelBuildRequest < 3) {} + if (buildCounterCancelBuildRequest < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + } buildCounterCancelBuildRequest--; } @@ -676,14 +690,14 @@ buildCounterEmpty--; } -buildUnnamed2427() { +buildUnnamed2539() { var o = new core.List<api.Hash>(); o.add(buildHash()); o.add(buildHash()); return o; } -checkUnnamed2427(core.List<api.Hash> o) { +checkUnnamed2539(core.List<api.Hash> o) { unittest.expect(o, unittest.hasLength(2)); checkHash(o[0]); checkHash(o[1]); @@ -694,7 +708,7 @@ var o = new api.FileHashes(); buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - o.fileHash = buildUnnamed2427(); + o.fileHash = buildUnnamed2539(); } buildCounterFileHashes--; return o; @@ -703,7 +717,7 @@ checkFileHashes(api.FileHashes o) { buildCounterFileHashes++; if (buildCounterFileHashes < 3) { - checkUnnamed2427(o.fileHash); + checkUnnamed2539(o.fileHash); } buildCounterFileHashes--; } @@ -735,6 +749,25 @@ buildCounterGitHubEventsConfig--; } +core.int buildCounterHTTPDelivery = 0; +buildHTTPDelivery() { + var o = new api.HTTPDelivery(); + buildCounterHTTPDelivery++; + if (buildCounterHTTPDelivery < 3) { + o.uri = "foo"; + } + buildCounterHTTPDelivery--; + return o; +} + +checkHTTPDelivery(api.HTTPDelivery o) { + buildCounterHTTPDelivery++; + if (buildCounterHTTPDelivery < 3) { + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterHTTPDelivery--; +} + core.int buildCounterHash = 0; buildHash() { var o = new api.Hash(); @@ -756,14 +789,14 @@ buildCounterHash--; } -buildUnnamed2428() { +buildUnnamed2540() { var o = new core.List<api.BuildTrigger>(); o.add(buildBuildTrigger()); o.add(buildBuildTrigger()); return o; } -checkUnnamed2428(core.List<api.BuildTrigger> o) { +checkUnnamed2540(core.List<api.BuildTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildTrigger(o[0]); checkBuildTrigger(o[1]); @@ -775,7 +808,7 @@ buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { o.nextPageToken = "foo"; - o.triggers = buildUnnamed2428(); + o.triggers = buildUnnamed2540(); } buildCounterListBuildTriggersResponse--; return o; @@ -785,19 +818,19 @@ buildCounterListBuildTriggersResponse++; if (buildCounterListBuildTriggersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2428(o.triggers); + checkUnnamed2540(o.triggers); } buildCounterListBuildTriggersResponse--; } -buildUnnamed2429() { +buildUnnamed2541() { var o = new core.List<api.Build>(); o.add(buildBuild()); o.add(buildBuild()); return o; } -checkUnnamed2429(core.List<api.Build> o) { +checkUnnamed2541(core.List<api.Build> o) { unittest.expect(o, unittest.hasLength(2)); checkBuild(o[0]); checkBuild(o[1]); @@ -808,7 +841,7 @@ var o = new api.ListBuildsResponse(); buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - o.builds = buildUnnamed2429(); + o.builds = buildUnnamed2541(); o.nextPageToken = "foo"; } buildCounterListBuildsResponse--; @@ -818,47 +851,13 @@ checkListBuildsResponse(api.ListBuildsResponse o) { buildCounterListBuildsResponse++; if (buildCounterListBuildsResponse < 3) { - checkUnnamed2429(o.builds); + checkUnnamed2541(o.builds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBuildsResponse--; } -buildUnnamed2430() { - var o = new core.List<api.Operation>(); - o.add(buildOperation()); - o.add(buildOperation()); - return o; -} - -checkUnnamed2430(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 = buildUnnamed2430(); - } - buildCounterListOperationsResponse--; - return o; -} - -checkListOperationsResponse(api.ListOperationsResponse o) { - buildCounterListOperationsResponse++; - if (buildCounterListOperationsResponse < 3) { - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2430(o.operations); - } - buildCounterListOperationsResponse--; -} - -buildUnnamed2431() { +buildUnnamed2542() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -873,7 +872,7 @@ return o; } -checkUnnamed2431(core.Map<core.String, core.Object> o) { +checkUnnamed2542(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)); @@ -887,7 +886,154 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2432() { +core.int buildCounterNotification = 0; +buildNotification() { + var o = new api.Notification(); + buildCounterNotification++; + if (buildCounterNotification < 3) { + o.filter = "foo"; + o.httpDelivery = buildHTTPDelivery(); + o.slackDelivery = buildSlackDelivery(); + o.smtpDelivery = buildSMTPDelivery(); + o.structDelivery = buildUnnamed2542(); + } + buildCounterNotification--; + return o; +} + +checkNotification(api.Notification o) { + buildCounterNotification++; + if (buildCounterNotification < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + checkHTTPDelivery(o.httpDelivery); + checkSlackDelivery(o.slackDelivery); + checkSMTPDelivery(o.smtpDelivery); + checkUnnamed2542(o.structDelivery); + } + buildCounterNotification--; +} + +core.int buildCounterNotifierConfig = 0; +buildNotifierConfig() { + var o = new api.NotifierConfig(); + buildCounterNotifierConfig++; + if (buildCounterNotifierConfig < 3) { + o.apiVersion = "foo"; + o.kind = "foo"; + o.metadata = buildNotifierMetadata(); + o.spec = buildNotifierSpec(); + } + buildCounterNotifierConfig--; + return o; +} + +checkNotifierConfig(api.NotifierConfig o) { + buildCounterNotifierConfig++; + if (buildCounterNotifierConfig < 3) { + unittest.expect(o.apiVersion, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + checkNotifierMetadata(o.metadata); + checkNotifierSpec(o.spec); + } + buildCounterNotifierConfig--; +} + +core.int buildCounterNotifierMetadata = 0; +buildNotifierMetadata() { + var o = new api.NotifierMetadata(); + buildCounterNotifierMetadata++; + if (buildCounterNotifierMetadata < 3) { + o.name = "foo"; + o.notifier = "foo"; + } + buildCounterNotifierMetadata--; + return o; +} + +checkNotifierMetadata(api.NotifierMetadata o) { + buildCounterNotifierMetadata++; + if (buildCounterNotifierMetadata < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.notifier, unittest.equals('foo')); + } + buildCounterNotifierMetadata--; +} + +core.int buildCounterNotifierSecret = 0; +buildNotifierSecret() { + var o = new api.NotifierSecret(); + buildCounterNotifierSecret++; + if (buildCounterNotifierSecret < 3) { + o.name = "foo"; + o.value = "foo"; + } + buildCounterNotifierSecret--; + return o; +} + +checkNotifierSecret(api.NotifierSecret o) { + buildCounterNotifierSecret++; + if (buildCounterNotifierSecret < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterNotifierSecret--; +} + +core.int buildCounterNotifierSecretRef = 0; +buildNotifierSecretRef() { + var o = new api.NotifierSecretRef(); + buildCounterNotifierSecretRef++; + if (buildCounterNotifierSecretRef < 3) { + o.secretRef = "foo"; + } + buildCounterNotifierSecretRef--; + return o; +} + +checkNotifierSecretRef(api.NotifierSecretRef o) { + buildCounterNotifierSecretRef++; + if (buildCounterNotifierSecretRef < 3) { + unittest.expect(o.secretRef, unittest.equals('foo')); + } + buildCounterNotifierSecretRef--; +} + +buildUnnamed2543() { + var o = new core.List<api.NotifierSecret>(); + o.add(buildNotifierSecret()); + o.add(buildNotifierSecret()); + return o; +} + +checkUnnamed2543(core.List<api.NotifierSecret> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNotifierSecret(o[0]); + checkNotifierSecret(o[1]); +} + +core.int buildCounterNotifierSpec = 0; +buildNotifierSpec() { + var o = new api.NotifierSpec(); + buildCounterNotifierSpec++; + if (buildCounterNotifierSpec < 3) { + o.notification = buildNotification(); + o.secrets = buildUnnamed2543(); + } + buildCounterNotifierSpec--; + return o; +} + +checkNotifierSpec(api.NotifierSpec o) { + buildCounterNotifierSpec++; + if (buildCounterNotifierSpec < 3) { + checkNotification(o.notification); + checkUnnamed2543(o.secrets); + } + buildCounterNotifierSpec--; +} + +buildUnnamed2544() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -902,7 +1048,7 @@ return o; } -checkUnnamed2432(core.Map<core.String, core.Object> o) { +checkUnnamed2544(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)); @@ -916,6 +1062,35 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } +buildUnnamed2545() { + 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; +} + +checkUnnamed2545(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted5 = (o["x"]) as core.Map; + unittest.expect(casted5, unittest.hasLength(3)); + unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted5["bool"], unittest.equals(true)); + unittest.expect(casted5["string"], unittest.equals('foo')); + var casted6 = (o["y"]) as core.Map; + unittest.expect(casted6, unittest.hasLength(3)); + unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted6["bool"], unittest.equals(true)); + unittest.expect(casted6["string"], unittest.equals('foo')); +} + core.int buildCounterOperation = 0; buildOperation() { var o = new api.Operation(); @@ -923,9 +1098,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2431(); + o.metadata = buildUnnamed2544(); o.name = "foo"; - o.response = buildUnnamed2432(); + o.response = buildUnnamed2545(); } buildCounterOperation--; return o; @@ -936,9 +1111,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2431(o.metadata); + checkUnnamed2544(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2432(o.response); + checkUnnamed2545(o.response); } buildCounterOperation--; } @@ -989,14 +1164,14 @@ buildCounterPushFilter--; } -buildUnnamed2433() { +buildUnnamed2546() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2433(core.Map<core.String, core.String> o) { +checkUnnamed2546(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')); @@ -1013,7 +1188,7 @@ o.invertRegex = true; o.projectId = "foo"; o.repoName = "foo"; - o.substitutions = buildUnnamed2433(); + o.substitutions = buildUnnamed2546(); o.tagName = "foo"; } buildCounterRepoSource--; @@ -1029,46 +1204,46 @@ unittest.expect(o.invertRegex, unittest.isTrue); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.repoName, unittest.equals('foo')); - checkUnnamed2433(o.substitutions); + checkUnnamed2546(o.substitutions); unittest.expect(o.tagName, unittest.equals('foo')); } buildCounterRepoSource--; } -buildUnnamed2434() { +buildUnnamed2547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2434(core.List<core.String> o) { +checkUnnamed2547(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2435() { +buildUnnamed2548() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2435(core.List<core.String> o) { +checkUnnamed2548(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2436() { +buildUnnamed2549() { var o = new core.List<api.BuiltImage>(); o.add(buildBuiltImage()); o.add(buildBuiltImage()); return o; } -checkUnnamed2436(core.List<api.BuiltImage> o) { +checkUnnamed2549(core.List<api.BuiltImage> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltImage(o[0]); checkBuiltImage(o[1]); @@ -1081,9 +1256,9 @@ if (buildCounterResults < 3) { o.artifactManifest = "foo"; o.artifactTiming = buildTimeSpan(); - o.buildStepImages = buildUnnamed2434(); - o.buildStepOutputs = buildUnnamed2435(); - o.images = buildUnnamed2436(); + o.buildStepImages = buildUnnamed2547(); + o.buildStepOutputs = buildUnnamed2548(); + o.images = buildUnnamed2549(); o.numArtifacts = "foo"; } buildCounterResults--; @@ -1095,9 +1270,9 @@ if (buildCounterResults < 3) { unittest.expect(o.artifactManifest, unittest.equals('foo')); checkTimeSpan(o.artifactTiming); - checkUnnamed2434(o.buildStepImages); - checkUnnamed2435(o.buildStepOutputs); - checkUnnamed2436(o.images); + checkUnnamed2547(o.buildStepImages); + checkUnnamed2548(o.buildStepOutputs); + checkUnnamed2549(o.images); unittest.expect(o.numArtifacts, unittest.equals('foo')); } buildCounterResults--; @@ -1107,25 +1282,75 @@ buildRetryBuildRequest() { var o = new api.RetryBuildRequest(); buildCounterRetryBuildRequest++; - if (buildCounterRetryBuildRequest < 3) {} + if (buildCounterRetryBuildRequest < 3) { + o.id = "foo"; + o.name = "foo"; + o.projectId = "foo"; + } buildCounterRetryBuildRequest--; return o; } checkRetryBuildRequest(api.RetryBuildRequest o) { buildCounterRetryBuildRequest++; - if (buildCounterRetryBuildRequest < 3) {} + if (buildCounterRetryBuildRequest < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.projectId, unittest.equals('foo')); + } buildCounterRetryBuildRequest--; } -buildUnnamed2437() { +buildUnnamed2550() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterSMTPDelivery = 0; +buildSMTPDelivery() { + var o = new api.SMTPDelivery(); + buildCounterSMTPDelivery++; + if (buildCounterSMTPDelivery < 3) { + o.fromAddress = "foo"; + o.password = buildNotifierSecretRef(); + o.port = "foo"; + o.recipientAddresses = buildUnnamed2550(); + o.senderAddress = "foo"; + o.server = "foo"; + } + buildCounterSMTPDelivery--; + return o; +} + +checkSMTPDelivery(api.SMTPDelivery o) { + buildCounterSMTPDelivery++; + if (buildCounterSMTPDelivery < 3) { + unittest.expect(o.fromAddress, unittest.equals('foo')); + checkNotifierSecretRef(o.password); + unittest.expect(o.port, unittest.equals('foo')); + checkUnnamed2550(o.recipientAddresses); + unittest.expect(o.senderAddress, unittest.equals('foo')); + unittest.expect(o.server, unittest.equals('foo')); + } + buildCounterSMTPDelivery--; +} + +buildUnnamed2551() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2437(core.Map<core.String, core.String> o) { +checkUnnamed2551(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')); @@ -1137,7 +1362,7 @@ buildCounterSecret++; if (buildCounterSecret < 3) { o.kmsKeyName = "foo"; - o.secretEnv = buildUnnamed2437(); + o.secretEnv = buildUnnamed2551(); } buildCounterSecret--; return o; @@ -1147,11 +1372,30 @@ buildCounterSecret++; if (buildCounterSecret < 3) { unittest.expect(o.kmsKeyName, unittest.equals('foo')); - checkUnnamed2437(o.secretEnv); + checkUnnamed2551(o.secretEnv); } buildCounterSecret--; } +core.int buildCounterSlackDelivery = 0; +buildSlackDelivery() { + var o = new api.SlackDelivery(); + buildCounterSlackDelivery++; + if (buildCounterSlackDelivery < 3) { + o.webhookUri = buildNotifierSecretRef(); + } + buildCounterSlackDelivery--; + return o; +} + +checkSlackDelivery(api.SlackDelivery o) { + buildCounterSlackDelivery++; + if (buildCounterSlackDelivery < 3) { + checkNotifierSecretRef(o.webhookUri); + } + buildCounterSlackDelivery--; +} + core.int buildCounterSource = 0; buildSource() { var o = new api.Source(); @@ -1173,14 +1417,14 @@ buildCounterSource--; } -buildUnnamed2438() { +buildUnnamed2552() { var o = new core.Map<core.String, api.FileHashes>(); o["x"] = buildFileHashes(); o["y"] = buildFileHashes(); return o; } -checkUnnamed2438(core.Map<core.String, api.FileHashes> o) { +checkUnnamed2552(core.Map<core.String, api.FileHashes> o) { unittest.expect(o, unittest.hasLength(2)); checkFileHashes(o["x"]); checkFileHashes(o["y"]); @@ -1191,7 +1435,7 @@ var o = new api.SourceProvenance(); buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - o.fileHashes = buildUnnamed2438(); + o.fileHashes = buildUnnamed2552(); o.resolvedRepoSource = buildRepoSource(); o.resolvedStorageSource = buildStorageSource(); } @@ -1202,14 +1446,14 @@ checkSourceProvenance(api.SourceProvenance o) { buildCounterSourceProvenance++; if (buildCounterSourceProvenance < 3) { - checkUnnamed2438(o.fileHashes); + checkUnnamed2552(o.fileHashes); checkRepoSource(o.resolvedRepoSource); checkStorageSource(o.resolvedStorageSource); } buildCounterSourceProvenance--; } -buildUnnamed2439() { +buildUnnamed2553() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1224,31 +1468,31 @@ return o; } -checkUnnamed2439(core.Map<core.String, core.Object> o) { +checkUnnamed2553(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted5 = (o["x"]) as core.Map; - unittest.expect(casted5, unittest.hasLength(3)); - unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted5["bool"], unittest.equals(true)); - unittest.expect(casted5["string"], unittest.equals('foo')); - var casted6 = (o["y"]) as core.Map; - unittest.expect(casted6, unittest.hasLength(3)); - unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted6["bool"], unittest.equals(true)); - unittest.expect(casted6["string"], unittest.equals('foo')); + var casted7 = (o["x"]) as core.Map; + unittest.expect(casted7, unittest.hasLength(3)); + unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted7["bool"], unittest.equals(true)); + unittest.expect(casted7["string"], unittest.equals('foo')); + var casted8 = (o["y"]) as core.Map; + unittest.expect(casted8, unittest.hasLength(3)); + unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted8["bool"], unittest.equals(true)); + unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2440() { +buildUnnamed2554() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2439()); - o.add(buildUnnamed2439()); + o.add(buildUnnamed2553()); + o.add(buildUnnamed2553()); return o; } -checkUnnamed2440(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2554(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2439(o[0]); - checkUnnamed2439(o[1]); + checkUnnamed2553(o[0]); + checkUnnamed2553(o[1]); } core.int buildCounterStatus = 0; @@ -1257,7 +1501,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2440(); + o.details = buildUnnamed2554(); o.message = "foo"; } buildCounterStatus--; @@ -1268,7 +1512,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2440(o.details); + checkUnnamed2554(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1452,6 +1696,14 @@ }); }); + unittest.group("obj-schema-HTTPDelivery", () { + unittest.test("to-json--from-json", () { + var o = buildHTTPDelivery(); + var od = new api.HTTPDelivery.fromJson(o.toJson()); + checkHTTPDelivery(od); + }); + }); + unittest.group("obj-schema-Hash", () { unittest.test("to-json--from-json", () { var o = buildHash(); @@ -1476,11 +1728,51 @@ }); }); - unittest.group("obj-schema-ListOperationsResponse", () { + unittest.group("obj-schema-Notification", () { unittest.test("to-json--from-json", () { - var o = buildListOperationsResponse(); - var od = new api.ListOperationsResponse.fromJson(o.toJson()); - checkListOperationsResponse(od); + var o = buildNotification(); + var od = new api.Notification.fromJson(o.toJson()); + checkNotification(od); + }); + }); + + unittest.group("obj-schema-NotifierConfig", () { + unittest.test("to-json--from-json", () { + var o = buildNotifierConfig(); + var od = new api.NotifierConfig.fromJson(o.toJson()); + checkNotifierConfig(od); + }); + }); + + unittest.group("obj-schema-NotifierMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildNotifierMetadata(); + var od = new api.NotifierMetadata.fromJson(o.toJson()); + checkNotifierMetadata(od); + }); + }); + + unittest.group("obj-schema-NotifierSecret", () { + unittest.test("to-json--from-json", () { + var o = buildNotifierSecret(); + var od = new api.NotifierSecret.fromJson(o.toJson()); + checkNotifierSecret(od); + }); + }); + + unittest.group("obj-schema-NotifierSecretRef", () { + unittest.test("to-json--from-json", () { + var o = buildNotifierSecretRef(); + var od = new api.NotifierSecretRef.fromJson(o.toJson()); + checkNotifierSecretRef(od); + }); + }); + + unittest.group("obj-schema-NotifierSpec", () { + unittest.test("to-json--from-json", () { + var o = buildNotifierSpec(); + var od = new api.NotifierSpec.fromJson(o.toJson()); + checkNotifierSpec(od); }); }); @@ -1532,6 +1824,14 @@ }); }); + unittest.group("obj-schema-SMTPDelivery", () { + unittest.test("to-json--from-json", () { + var o = buildSMTPDelivery(); + var od = new api.SMTPDelivery.fromJson(o.toJson()); + checkSMTPDelivery(od); + }); + }); + unittest.group("obj-schema-Secret", () { unittest.test("to-json--from-json", () { var o = buildSecret(); @@ -1540,6 +1840,14 @@ }); }); + unittest.group("obj-schema-SlackDelivery", () { + unittest.test("to-json--from-json", () { + var o = buildSlackDelivery(); + var od = new api.SlackDelivery.fromJson(o.toJson()); + checkSlackDelivery(od); + }); + }); + unittest.group("obj-schema-Source", () { unittest.test("to-json--from-json", () { var o = buildSource(); @@ -1694,69 +2002,6 @@ checkOperation(response); }))); }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.OperationsResourceApi res = new api.CloudbuildApi(mock).operations; - var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - 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, - filter: arg_filter, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkListOperationsResponse(response); - }))); - }); }); unittest.group("resource-ProjectsBuildsResourceApi", () { @@ -1840,6 +2085,7 @@ new api.CloudbuildApi(mock).projects.builds; var arg_request = buildBuild(); var arg_projectId = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Build.fromJson(json); @@ -1883,6 +2129,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1892,7 +2139,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_projectId, $fields: arg_$fields) + .create(arg_request, arg_projectId, + parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -1904,6 +2152,7 @@ new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; var arg_id = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1947,6 +2196,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1956,7 +2206,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_projectId, arg_id, $fields: arg_$fields) + .get(arg_projectId, arg_id, name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBuild(response); }))); @@ -1967,9 +2217,10 @@ api.ProjectsBuildsResourceApi res = new api.CloudbuildApi(mock).projects.builds; var arg_projectId = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_parent = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2010,11 +2261,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2025,9 +2277,10 @@ }), true); res .list(arg_projectId, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, + parent: arg_parent, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBuildsResponse(response); @@ -2109,6 +2362,416 @@ }); }); + unittest.group("resource-ProjectsLocationsBuildsResourceApi", () { + unittest.test("method--cancel", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBuildsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.builds; + var arg_request = buildCancelBuildRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.CancelBuildRequest.fromJson(json); + checkCancelBuildRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBuild()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .cancel(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBuild(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBuildsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.builds; + var arg_request = buildBuild(); + var arg_parent = "foo"; + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Build.fromJson(json); + checkBuild(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, + projectId: arg_projectId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBuildsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.builds; + var arg_name = "foo"; + var arg_projectId = "foo"; + var arg_id = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBuild()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, + projectId: arg_projectId, id: arg_id, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBuild(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBuildsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.builds; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_projectId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListBuildsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageSize: arg_pageSize, + filter: arg_filter, + pageToken: arg_pageToken, + projectId: arg_projectId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListBuildsResponse(response); + }))); + }); + + unittest.test("method--retry", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBuildsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.builds; + var arg_request = buildRetryBuildRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RetryBuildRequest.fromJson(json); + checkRetryBuildRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .retry(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsOperationsResourceApi", () { + unittest.test("method--cancel", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsOperationsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsOperationsResourceApi res = + new api.CloudbuildApi(mock).projects.locations.operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-ProjectsTriggersResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/clouddebugger/v2_test.dart b/generated/googleapis/test/clouddebugger/v2_test.dart index a8a1315..9b8f063 100644 --- a/generated/googleapis/test/clouddebugger/v2_test.dart +++ b/generated/googleapis/test/clouddebugger/v2_test.dart
@@ -71,66 +71,66 @@ buildCounterAliasContext--; } -buildUnnamed2519() { +buildUnnamed2641() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2519(core.List<api.Variable> o) { +checkUnnamed2641(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed2520() { +buildUnnamed2642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2520(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')); } -buildUnnamed2521() { +buildUnnamed2643() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2521(core.Map<core.String, core.String> o) { +checkUnnamed2643(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')); } -buildUnnamed2522() { +buildUnnamed2644() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed2522(core.List<api.StackFrame> o) { +checkUnnamed2644(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); } -buildUnnamed2523() { +buildUnnamed2645() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2523(core.List<api.Variable> o) { +checkUnnamed2645(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -145,20 +145,20 @@ o.canaryExpireTime = "foo"; o.condition = "foo"; o.createTime = "foo"; - o.evaluatedExpressions = buildUnnamed2519(); - o.expressions = buildUnnamed2520(); + o.evaluatedExpressions = buildUnnamed2641(); + o.expressions = buildUnnamed2642(); o.finalTime = "foo"; o.id = "foo"; o.isFinalState = true; - o.labels = buildUnnamed2521(); + o.labels = buildUnnamed2643(); o.location = buildSourceLocation(); o.logLevel = "foo"; o.logMessageFormat = "foo"; - o.stackFrames = buildUnnamed2522(); + o.stackFrames = buildUnnamed2644(); o.state = "foo"; o.status = buildStatusMessage(); o.userEmail = "foo"; - o.variableTable = buildUnnamed2523(); + o.variableTable = buildUnnamed2645(); } buildCounterBreakpoint--; return o; @@ -171,20 +171,20 @@ unittest.expect(o.canaryExpireTime, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2519(o.evaluatedExpressions); - checkUnnamed2520(o.expressions); + checkUnnamed2641(o.evaluatedExpressions); + checkUnnamed2642(o.expressions); unittest.expect(o.finalTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isFinalState, unittest.isTrue); - checkUnnamed2521(o.labels); + checkUnnamed2643(o.labels); checkSourceLocation(o.location); unittest.expect(o.logLevel, unittest.equals('foo')); unittest.expect(o.logMessageFormat, unittest.equals('foo')); - checkUnnamed2522(o.stackFrames); + checkUnnamed2644(o.stackFrames); unittest.expect(o.state, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.userEmail, unittest.equals('foo')); - checkUnnamed2523(o.variableTable); + checkUnnamed2645(o.variableTable); } buildCounterBreakpoint--; } @@ -256,40 +256,40 @@ buildCounterCloudWorkspaceSourceContext--; } -buildUnnamed2524() { +buildUnnamed2646() { var o = new core.List<api.ExtendedSourceContext>(); o.add(buildExtendedSourceContext()); o.add(buildExtendedSourceContext()); return o; } -checkUnnamed2524(core.List<api.ExtendedSourceContext> o) { +checkUnnamed2646(core.List<api.ExtendedSourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedSourceContext(o[0]); checkExtendedSourceContext(o[1]); } -buildUnnamed2525() { +buildUnnamed2647() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2525(core.Map<core.String, core.String> o) { +checkUnnamed2647(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')); } -buildUnnamed2526() { +buildUnnamed2648() { var o = new core.List<api.SourceContext>(); o.add(buildSourceContext()); o.add(buildSourceContext()); return o; } -checkUnnamed2526(core.List<api.SourceContext> o) { +checkUnnamed2648(core.List<api.SourceContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceContext(o[0]); checkSourceContext(o[1]); @@ -303,13 +303,13 @@ o.agentVersion = "foo"; o.canaryMode = "foo"; o.description = "foo"; - o.extSourceContexts = buildUnnamed2524(); + o.extSourceContexts = buildUnnamed2646(); o.id = "foo"; o.isDisabled = true; o.isInactive = true; - o.labels = buildUnnamed2525(); + o.labels = buildUnnamed2647(); o.project = "foo"; - o.sourceContexts = buildUnnamed2526(); + o.sourceContexts = buildUnnamed2648(); o.status = buildStatusMessage(); o.uniquifier = "foo"; } @@ -323,13 +323,13 @@ unittest.expect(o.agentVersion, unittest.equals('foo')); unittest.expect(o.canaryMode, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2524(o.extSourceContexts); + checkUnnamed2646(o.extSourceContexts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isDisabled, unittest.isTrue); unittest.expect(o.isInactive, unittest.isTrue); - checkUnnamed2525(o.labels); + checkUnnamed2647(o.labels); unittest.expect(o.project, unittest.equals('foo')); - checkUnnamed2526(o.sourceContexts); + checkUnnamed2648(o.sourceContexts); checkStatusMessage(o.status); unittest.expect(o.uniquifier, unittest.equals('foo')); } @@ -351,14 +351,14 @@ buildCounterEmpty--; } -buildUnnamed2527() { +buildUnnamed2649() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2527(core.Map<core.String, core.String> o) { +checkUnnamed2649(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')); @@ -370,7 +370,7 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { o.context = buildSourceContext(); - o.labels = buildUnnamed2527(); + o.labels = buildUnnamed2649(); } buildCounterExtendedSourceContext--; return o; @@ -380,19 +380,19 @@ buildCounterExtendedSourceContext++; if (buildCounterExtendedSourceContext < 3) { checkSourceContext(o.context); - checkUnnamed2527(o.labels); + checkUnnamed2649(o.labels); } buildCounterExtendedSourceContext--; } -buildUnnamed2528() { +buildUnnamed2650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2528(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')); @@ -404,7 +404,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { o.format = "foo"; - o.parameters = buildUnnamed2528(); + o.parameters = buildUnnamed2650(); } buildCounterFormatMessage--; return o; @@ -414,7 +414,7 @@ buildCounterFormatMessage++; if (buildCounterFormatMessage < 3) { unittest.expect(o.format, unittest.equals('foo')); - checkUnnamed2528(o.parameters); + checkUnnamed2650(o.parameters); } buildCounterFormatMessage--; } @@ -486,14 +486,14 @@ buildCounterGitSourceContext--; } -buildUnnamed2529() { +buildUnnamed2651() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed2529(core.List<api.Breakpoint> o) { +checkUnnamed2651(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -504,7 +504,7 @@ var o = new api.ListActiveBreakpointsResponse(); buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed2529(); + o.breakpoints = buildUnnamed2651(); o.nextWaitToken = "foo"; o.waitExpired = true; } @@ -515,21 +515,21 @@ checkListActiveBreakpointsResponse(api.ListActiveBreakpointsResponse o) { buildCounterListActiveBreakpointsResponse++; if (buildCounterListActiveBreakpointsResponse < 3) { - checkUnnamed2529(o.breakpoints); + checkUnnamed2651(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); unittest.expect(o.waitExpired, unittest.isTrue); } buildCounterListActiveBreakpointsResponse--; } -buildUnnamed2530() { +buildUnnamed2652() { var o = new core.List<api.Breakpoint>(); o.add(buildBreakpoint()); o.add(buildBreakpoint()); return o; } -checkUnnamed2530(core.List<api.Breakpoint> o) { +checkUnnamed2652(core.List<api.Breakpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkBreakpoint(o[0]); checkBreakpoint(o[1]); @@ -540,7 +540,7 @@ var o = new api.ListBreakpointsResponse(); buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - o.breakpoints = buildUnnamed2530(); + o.breakpoints = buildUnnamed2652(); o.nextWaitToken = "foo"; } buildCounterListBreakpointsResponse--; @@ -550,20 +550,20 @@ checkListBreakpointsResponse(api.ListBreakpointsResponse o) { buildCounterListBreakpointsResponse++; if (buildCounterListBreakpointsResponse < 3) { - checkUnnamed2530(o.breakpoints); + checkUnnamed2652(o.breakpoints); unittest.expect(o.nextWaitToken, unittest.equals('foo')); } buildCounterListBreakpointsResponse--; } -buildUnnamed2531() { +buildUnnamed2653() { var o = new core.List<api.Debuggee>(); o.add(buildDebuggee()); o.add(buildDebuggee()); return o; } -checkUnnamed2531(core.List<api.Debuggee> o) { +checkUnnamed2653(core.List<api.Debuggee> o) { unittest.expect(o, unittest.hasLength(2)); checkDebuggee(o[0]); checkDebuggee(o[1]); @@ -574,7 +574,7 @@ var o = new api.ListDebuggeesResponse(); buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - o.debuggees = buildUnnamed2531(); + o.debuggees = buildUnnamed2653(); } buildCounterListDebuggeesResponse--; return o; @@ -583,7 +583,7 @@ checkListDebuggeesResponse(api.ListDebuggeesResponse o) { buildCounterListDebuggeesResponse++; if (buildCounterListDebuggeesResponse < 3) { - checkUnnamed2531(o.debuggees); + checkUnnamed2653(o.debuggees); } buildCounterListDebuggeesResponse--; } @@ -737,27 +737,27 @@ buildCounterSourceLocation--; } -buildUnnamed2532() { +buildUnnamed2654() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2532(core.List<api.Variable> o) { +checkUnnamed2654(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed2533() { +buildUnnamed2655() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2533(core.List<api.Variable> o) { +checkUnnamed2655(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -768,9 +768,9 @@ var o = new api.StackFrame(); buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - o.arguments = buildUnnamed2532(); + o.arguments = buildUnnamed2654(); o.function = "foo"; - o.locals = buildUnnamed2533(); + o.locals = buildUnnamed2655(); o.location = buildSourceLocation(); } buildCounterStackFrame--; @@ -780,9 +780,9 @@ checkStackFrame(api.StackFrame o) { buildCounterStackFrame++; if (buildCounterStackFrame < 3) { - checkUnnamed2532(o.arguments); + checkUnnamed2654(o.arguments); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed2533(o.locals); + checkUnnamed2655(o.locals); checkSourceLocation(o.location); } buildCounterStackFrame--; @@ -845,14 +845,14 @@ buildCounterUpdateActiveBreakpointResponse--; } -buildUnnamed2534() { +buildUnnamed2656() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed2534(core.List<api.Variable> o) { +checkUnnamed2656(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -863,7 +863,7 @@ var o = new api.Variable(); buildCounterVariable++; if (buildCounterVariable < 3) { - o.members = buildUnnamed2534(); + o.members = buildUnnamed2656(); o.name = "foo"; o.status = buildStatusMessage(); o.type = "foo"; @@ -877,7 +877,7 @@ checkVariable(api.Variable o) { buildCounterVariable++; if (buildCounterVariable < 3) { - checkUnnamed2534(o.members); + checkUnnamed2656(o.members); unittest.expect(o.name, unittest.equals('foo')); checkStatusMessage(o.status); unittest.expect(o.type, unittest.equals('foo')); @@ -1167,8 +1167,8 @@ new api.ClouddebuggerApi(mock).controller.debuggees.breakpoints; var arg_debuggeeId = "foo"; var arg_agentId = "foo"; - var arg_successOnTimeout = true; var arg_waitToken = "foo"; + var arg_successOnTimeout = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1211,10 +1211,10 @@ } unittest.expect( queryMap["agentId"].first, unittest.equals(arg_agentId)); - unittest.expect(queryMap["successOnTimeout"].first, - unittest.equals("$arg_successOnTimeout")); unittest.expect( queryMap["waitToken"].first, unittest.equals(arg_waitToken)); + unittest.expect(queryMap["successOnTimeout"].first, + unittest.equals("$arg_successOnTimeout")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1226,8 +1226,8 @@ res .list(arg_debuggeeId, agentId: arg_agentId, - successOnTimeout: arg_successOnTimeout, waitToken: arg_waitToken, + successOnTimeout: arg_successOnTimeout, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListActiveBreakpointsResponse(response); @@ -1308,9 +1308,9 @@ var mock = new HttpServerMock(); api.DebuggerDebuggeesResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees; - var arg_clientVersion = "foo"; - var arg_includeInactive = true; var arg_project = "foo"; + var arg_includeInactive = true; + var arg_clientVersion = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1342,12 +1342,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["clientVersion"].first, - unittest.equals(arg_clientVersion)); - unittest.expect(queryMap["includeInactive"].first, - unittest.equals("$arg_includeInactive")); unittest.expect( queryMap["project"].first, unittest.equals(arg_project)); + unittest.expect(queryMap["includeInactive"].first, + unittest.equals("$arg_includeInactive")); + unittest.expect(queryMap["clientVersion"].first, + unittest.equals(arg_clientVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1358,9 +1358,9 @@ }), true); res .list( - clientVersion: arg_clientVersion, - includeInactive: arg_includeInactive, project: arg_project, + includeInactive: arg_includeInactive, + clientVersion: arg_clientVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDebuggeesResponse(response); @@ -1510,12 +1510,12 @@ api.DebuggerDebuggeesBreakpointsResourceApi res = new api.ClouddebuggerApi(mock).debugger.debuggees.breakpoints; var arg_debuggeeId = "foo"; - var arg_includeInactive = true; - var arg_includeAllUsers = true; - var arg_stripResults = true; var arg_waitToken = "foo"; - var arg_clientVersion = "foo"; + var arg_includeAllUsers = true; var arg_action_value = "foo"; + var arg_clientVersion = "foo"; + var arg_includeInactive = true; + var arg_stripResults = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1556,18 +1556,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeInactive"].first, - unittest.equals("$arg_includeInactive")); - unittest.expect(queryMap["includeAllUsers"].first, - unittest.equals("$arg_includeAllUsers")); - unittest.expect(queryMap["stripResults"].first, - unittest.equals("$arg_stripResults")); unittest.expect( queryMap["waitToken"].first, unittest.equals(arg_waitToken)); - unittest.expect(queryMap["clientVersion"].first, - unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["includeAllUsers"].first, + unittest.equals("$arg_includeAllUsers")); unittest.expect( queryMap["action.value"].first, unittest.equals(arg_action_value)); + unittest.expect(queryMap["clientVersion"].first, + unittest.equals(arg_clientVersion)); + unittest.expect(queryMap["includeInactive"].first, + unittest.equals("$arg_includeInactive")); + unittest.expect(queryMap["stripResults"].first, + unittest.equals("$arg_stripResults")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1578,12 +1578,12 @@ }), true); res .list(arg_debuggeeId, - includeInactive: arg_includeInactive, - includeAllUsers: arg_includeAllUsers, - stripResults: arg_stripResults, waitToken: arg_waitToken, - clientVersion: arg_clientVersion, + includeAllUsers: arg_includeAllUsers, action_value: arg_action_value, + clientVersion: arg_clientVersion, + includeInactive: arg_includeInactive, + stripResults: arg_stripResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBreakpointsResponse(response);
diff --git a/generated/googleapis/test/cloudfunctions/v1_test.dart b/generated/googleapis/test/cloudfunctions/v1_test.dart index 2f9478d..2fdf0ec 100644 --- a/generated/googleapis/test/cloudfunctions/v1_test.dart +++ b/generated/googleapis/test/cloudfunctions/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2994() { +buildUnnamed3125() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2994(core.List<api.AuditLogConfig> o) { +checkUnnamed3125(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2994(); + o.auditLogConfigs = buildUnnamed3125(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,20 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2994(o.auditLogConfigs); + checkUnnamed3125(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2995() { +buildUnnamed3126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2995(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')); @@ -102,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2995(); + o.exemptedMembers = buildUnnamed3126(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -112,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2995(o.exemptedMembers); + checkUnnamed3126(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed2996() { +buildUnnamed3127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2996(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')); @@ -137,7 +137,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed2996(); + o.members = buildUnnamed3127(); o.role = "foo"; } buildCounterBinding--; @@ -148,7 +148,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed2996(o.members); + checkUnnamed3127(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -196,27 +196,40 @@ buildCounterCallFunctionResponse--; } -buildUnnamed2997() { +buildUnnamed3128() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2997(core.Map<core.String, core.String> o) { +checkUnnamed3128(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')); } -buildUnnamed2998() { +buildUnnamed3129() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2998(core.Map<core.String, core.String> o) { +checkUnnamed3129(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')); +} + +buildUnnamed3130() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3130(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')); @@ -228,13 +241,15 @@ buildCounterCloudFunction++; if (buildCounterCloudFunction < 3) { o.availableMemoryMb = 42; + o.buildEnvironmentVariables = buildUnnamed3128(); + o.buildId = "foo"; o.description = "foo"; o.entryPoint = "foo"; - o.environmentVariables = buildUnnamed2997(); + o.environmentVariables = buildUnnamed3129(); o.eventTrigger = buildEventTrigger(); o.httpsTrigger = buildHttpsTrigger(); o.ingressSettings = "foo"; - o.labels = buildUnnamed2998(); + o.labels = buildUnnamed3130(); o.maxInstances = 42; o.name = "foo"; o.network = "foo"; @@ -258,13 +273,15 @@ buildCounterCloudFunction++; if (buildCounterCloudFunction < 3) { unittest.expect(o.availableMemoryMb, unittest.equals(42)); + checkUnnamed3128(o.buildEnvironmentVariables); + unittest.expect(o.buildId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.entryPoint, unittest.equals('foo')); - checkUnnamed2997(o.environmentVariables); + checkUnnamed3129(o.environmentVariables); checkEventTrigger(o.eventTrigger); checkHttpsTrigger(o.httpsTrigger); unittest.expect(o.ingressSettings, unittest.equals('foo')); - checkUnnamed2998(o.labels); + checkUnnamed3130(o.labels); unittest.expect(o.maxInstances, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -443,27 +460,27 @@ buildCounterHttpsTrigger--; } -buildUnnamed2999() { +buildUnnamed3131() { var o = new core.List<api.CloudFunction>(); o.add(buildCloudFunction()); o.add(buildCloudFunction()); return o; } -checkUnnamed2999(core.List<api.CloudFunction> o) { +checkUnnamed3131(core.List<api.CloudFunction> o) { unittest.expect(o, unittest.hasLength(2)); checkCloudFunction(o[0]); checkCloudFunction(o[1]); } -buildUnnamed3000() { +buildUnnamed3132() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3000(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')); @@ -474,9 +491,9 @@ var o = new api.ListFunctionsResponse(); buildCounterListFunctionsResponse++; if (buildCounterListFunctionsResponse < 3) { - o.functions = buildUnnamed2999(); + o.functions = buildUnnamed3131(); o.nextPageToken = "foo"; - o.unreachable = buildUnnamed3000(); + o.unreachable = buildUnnamed3132(); } buildCounterListFunctionsResponse--; return o; @@ -485,21 +502,21 @@ checkListFunctionsResponse(api.ListFunctionsResponse o) { buildCounterListFunctionsResponse++; if (buildCounterListFunctionsResponse < 3) { - checkUnnamed2999(o.functions); + checkUnnamed3131(o.functions); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3000(o.unreachable); + checkUnnamed3132(o.unreachable); } buildCounterListFunctionsResponse--; } -buildUnnamed3001() { +buildUnnamed3133() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3001(core.List<api.Location> o) { +checkUnnamed3133(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -510,7 +527,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3001(); + o.locations = buildUnnamed3133(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -520,20 +537,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3001(o.locations); + checkUnnamed3133(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3002() { +buildUnnamed3134() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3002(core.List<api.Operation> o) { +checkUnnamed3134(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -545,7 +562,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3002(); + o.operations = buildUnnamed3134(); } buildCounterListOperationsResponse--; return o; @@ -555,25 +572,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3002(o.operations); + checkUnnamed3134(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3003() { +buildUnnamed3135() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3003(core.Map<core.String, core.String> o) { +checkUnnamed3135(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')); } -buildUnnamed3004() { +buildUnnamed3136() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -588,7 +605,7 @@ return o; } -checkUnnamed3004(core.Map<core.String, core.Object> o) { +checkUnnamed3136(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)); @@ -608,9 +625,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed3003(); + o.labels = buildUnnamed3135(); o.locationId = "foo"; - o.metadata = buildUnnamed3004(); + o.metadata = buildUnnamed3136(); o.name = "foo"; } buildCounterLocation--; @@ -621,15 +638,15 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3003(o.labels); + checkUnnamed3135(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3004(o.metadata); + checkUnnamed3136(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed3005() { +buildUnnamed3137() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -644,7 +661,7 @@ return o; } -checkUnnamed3005(core.Map<core.String, core.Object> o) { +checkUnnamed3137(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)); @@ -658,7 +675,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3006() { +buildUnnamed3138() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -673,7 +690,7 @@ return o; } -checkUnnamed3006(core.Map<core.String, core.Object> o) { +checkUnnamed3138(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)); @@ -694,9 +711,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3005(); + o.metadata = buildUnnamed3137(); o.name = "foo"; - o.response = buildUnnamed3006(); + o.response = buildUnnamed3138(); } buildCounterOperation--; return o; @@ -707,14 +724,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3005(o.metadata); + checkUnnamed3137(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3006(o.response); + checkUnnamed3138(o.response); } buildCounterOperation--; } -buildUnnamed3007() { +buildUnnamed3139() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -729,7 +746,7 @@ return o; } -checkUnnamed3007(core.Map<core.String, core.Object> o) { +checkUnnamed3139(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)); @@ -748,7 +765,8 @@ var o = new api.OperationMetadataV1(); buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { - o.request = buildUnnamed3007(); + o.buildId = "foo"; + o.request = buildUnnamed3139(); o.target = "foo"; o.type = "foo"; o.updateTime = "foo"; @@ -761,7 +779,8 @@ checkOperationMetadataV1(api.OperationMetadataV1 o) { buildCounterOperationMetadataV1++; if (buildCounterOperationMetadataV1 < 3) { - checkUnnamed3007(o.request); + unittest.expect(o.buildId, unittest.equals('foo')); + checkUnnamed3139(o.request); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -770,83 +789,27 @@ buildCounterOperationMetadataV1--; } -buildUnnamed3008() { - 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; -} - -checkUnnamed3008(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')); -} - -core.int buildCounterOperationMetadataV1Beta2 = 0; -buildOperationMetadataV1Beta2() { - var o = new api.OperationMetadataV1Beta2(); - buildCounterOperationMetadataV1Beta2++; - if (buildCounterOperationMetadataV1Beta2 < 3) { - o.request = buildUnnamed3008(); - o.target = "foo"; - o.type = "foo"; - o.updateTime = "foo"; - o.versionId = "foo"; - } - buildCounterOperationMetadataV1Beta2--; - return o; -} - -checkOperationMetadataV1Beta2(api.OperationMetadataV1Beta2 o) { - buildCounterOperationMetadataV1Beta2++; - if (buildCounterOperationMetadataV1Beta2 < 3) { - checkUnnamed3008(o.request); - unittest.expect(o.target, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.updateTime, unittest.equals('foo')); - unittest.expect(o.versionId, unittest.equals('foo')); - } - buildCounterOperationMetadataV1Beta2--; -} - -buildUnnamed3009() { +buildUnnamed3140() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3009(core.List<api.AuditConfig> o) { +checkUnnamed3140(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3010() { +buildUnnamed3141() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3010(core.List<api.Binding> o) { +checkUnnamed3141(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -857,8 +820,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3009(); - o.bindings = buildUnnamed3010(); + o.auditConfigs = buildUnnamed3140(); + o.bindings = buildUnnamed3141(); o.etag = "foo"; o.version = 42; } @@ -869,8 +832,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3009(o.auditConfigs); - checkUnnamed3010(o.bindings); + checkUnnamed3140(o.auditConfigs); + checkUnnamed3141(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -934,7 +897,7 @@ buildCounterSourceRepository--; } -buildUnnamed3011() { +buildUnnamed3142() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -949,31 +912,31 @@ return o; } -checkUnnamed3011(core.Map<core.String, core.Object> o) { +checkUnnamed3142(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')); + 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')); } -buildUnnamed3012() { +buildUnnamed3143() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3011()); - o.add(buildUnnamed3011()); + o.add(buildUnnamed3142()); + o.add(buildUnnamed3142()); return o; } -checkUnnamed3012(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3143(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3011(o[0]); - checkUnnamed3011(o[1]); + checkUnnamed3142(o[0]); + checkUnnamed3142(o[1]); } core.int buildCounterStatus = 0; @@ -982,7 +945,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3012(); + o.details = buildUnnamed3143(); o.message = "foo"; } buildCounterStatus--; @@ -993,20 +956,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3012(o.details); + checkUnnamed3143(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3013() { +buildUnnamed3144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3013(core.List<core.String> 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')); @@ -1017,7 +980,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3013(); + o.permissions = buildUnnamed3144(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1026,19 +989,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3013(o.permissions); + checkUnnamed3144(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3014() { +buildUnnamed3145() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3014(core.List<core.String> 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')); @@ -1049,7 +1012,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3014(); + o.permissions = buildUnnamed3145(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1058,7 +1021,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3014(o.permissions); + checkUnnamed3145(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1224,14 +1187,6 @@ }); }); - unittest.group("obj-schema-OperationMetadataV1Beta2", () { - unittest.test("to-json--from-json", () { - var o = buildOperationMetadataV1Beta2(); - var od = new api.OperationMetadataV1Beta2.fromJson(o.toJson()); - checkOperationMetadataV1Beta2(od); - }); - }); - unittest.group("obj-schema-Policy", () { unittest.test("to-json--from-json", () { var o = buildPolicy(); @@ -1345,10 +1300,10 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.CloudfunctionsApi(mock).operations; - var arg_filter = "foo"; - var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1380,12 +1335,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1396,10 +1351,10 @@ }), true); res .list( - filter: arg_filter, - name: arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, + pageToken: arg_pageToken, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -1414,8 +1369,8 @@ new api.CloudfunctionsApi(mock).projects.locations; var arg_name = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1449,10 +1404,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1464,8 +1419,8 @@ res .list(arg_name, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response);
diff --git a/generated/googleapis/test/cloudidentity/v1_test.dart b/generated/googleapis/test/cloudidentity/v1_test.dart index e46dc86..9160137 100644 --- a/generated/googleapis/test/cloudidentity/v1_test.dart +++ b/generated/googleapis/test/cloudidentity/v1_test.dart
@@ -71,14 +71,686 @@ buildCounterEntityKey--; } -buildUnnamed2564() { +core.int buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes = 0; +buildGoogleAppsCloudidentityDevicesV1AndroidAttributes() { + var o = new api.GoogleAppsCloudidentityDevicesV1AndroidAttributes(); + buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes++; + if (buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes < 3) { + o.enabledUnknownSources = true; + o.ownerProfileAccount = true; + o.ownershipPrivilege = "foo"; + o.supportsWorkProfile = true; + } + buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1AndroidAttributes( + api.GoogleAppsCloudidentityDevicesV1AndroidAttributes o) { + buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes++; + if (buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes < 3) { + unittest.expect(o.enabledUnknownSources, unittest.isTrue); + unittest.expect(o.ownerProfileAccount, unittest.isTrue); + unittest.expect(o.ownershipPrivilege, unittest.equals('foo')); + unittest.expect(o.supportsWorkProfile, unittest.isTrue); + } + buildCounterGoogleAppsCloudidentityDevicesV1AndroidAttributes--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest = + 0; +buildGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest < + 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest( + api.GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest < + 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse < + 3) { + o.deviceUser = buildGoogleAppsCloudidentityDevicesV1DeviceUser(); + } + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse( + api.GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse < + 3) { + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o.deviceUser); + } + buildCounterGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest = 0; +buildGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest < 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest( + api.GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest < 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse < 3) { + o.deviceUser = buildGoogleAppsCloudidentityDevicesV1DeviceUser(); + } + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse( + api.GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse < 3) { + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o.deviceUser); + } + buildCounterGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest = + 0; +buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest < 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest( + api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest < 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse < + 3) { + o.device = buildGoogleAppsCloudidentityDevicesV1Device(); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse( + api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse < + 3) { + checkGoogleAppsCloudidentityDevicesV1Device(o.device); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse--; +} + +core.int + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest = 0; +buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest < + 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest( + api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest < + 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest--; +} + +core.int + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse() { + var o = + new api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse < + 3) { + o.deviceUser = buildGoogleAppsCloudidentityDevicesV1DeviceUser(); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse( + api.GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse < + 3) { + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o.deviceUser); + } + buildCounterGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse--; +} + +buildUnnamed2686() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2687() { + var o = new core.Map<core.String, + api.GoogleAppsCloudidentityDevicesV1CustomAttributeValue>(); + o["x"] = buildGoogleAppsCloudidentityDevicesV1CustomAttributeValue(); + o["y"] = buildGoogleAppsCloudidentityDevicesV1CustomAttributeValue(); + return o; +} + +checkUnnamed2687( + core.Map<core.String, + api.GoogleAppsCloudidentityDevicesV1CustomAttributeValue> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCloudidentityDevicesV1CustomAttributeValue(o["x"]); + checkGoogleAppsCloudidentityDevicesV1CustomAttributeValue(o["y"]); +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ClientState = 0; +buildGoogleAppsCloudidentityDevicesV1ClientState() { + var o = new api.GoogleAppsCloudidentityDevicesV1ClientState(); + buildCounterGoogleAppsCloudidentityDevicesV1ClientState++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ClientState < 3) { + o.assetTags = buildUnnamed2686(); + o.complianceState = "foo"; + o.createTime = "foo"; + o.customId = "foo"; + o.etag = "foo"; + o.healthScore = "foo"; + o.keyValuePairs = buildUnnamed2687(); + o.lastUpdateTime = "foo"; + o.managed = "foo"; + o.name = "foo"; + o.ownerType = "foo"; + o.scoreReason = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1ClientState--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ClientState( + api.GoogleAppsCloudidentityDevicesV1ClientState o) { + buildCounterGoogleAppsCloudidentityDevicesV1ClientState++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ClientState < 3) { + checkUnnamed2686(o.assetTags); + unittest.expect(o.complianceState, unittest.equals('foo')); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.customId, unittest.equals('foo')); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.healthScore, unittest.equals('foo')); + checkUnnamed2687(o.keyValuePairs); + unittest.expect(o.lastUpdateTime, unittest.equals('foo')); + unittest.expect(o.managed, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.ownerType, unittest.equals('foo')); + unittest.expect(o.scoreReason, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1ClientState--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue = 0; +buildGoogleAppsCloudidentityDevicesV1CustomAttributeValue() { + var o = new api.GoogleAppsCloudidentityDevicesV1CustomAttributeValue(); + buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue < 3) { + o.boolValue = true; + o.numberValue = 42.0; + o.stringValue = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1CustomAttributeValue( + api.GoogleAppsCloudidentityDevicesV1CustomAttributeValue o) { + buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue++; + if (buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue < 3) { + unittest.expect(o.boolValue, unittest.isTrue); + unittest.expect(o.numberValue, unittest.equals(42.0)); + unittest.expect(o.stringValue, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1CustomAttributeValue--; +} + +buildUnnamed2688() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed2689() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2689(core.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 buildCounterGoogleAppsCloudidentityDevicesV1Device = 0; +buildGoogleAppsCloudidentityDevicesV1Device() { + var o = new api.GoogleAppsCloudidentityDevicesV1Device(); + buildCounterGoogleAppsCloudidentityDevicesV1Device++; + if (buildCounterGoogleAppsCloudidentityDevicesV1Device < 3) { + o.androidSpecificAttributes = + buildGoogleAppsCloudidentityDevicesV1AndroidAttributes(); + o.assetTag = "foo"; + o.basebandVersion = "foo"; + o.bootloaderVersion = "foo"; + o.brand = "foo"; + o.buildNumber = "foo"; + o.compromisedState = "foo"; + o.createTime = "foo"; + o.deviceType = "foo"; + o.enabledDeveloperOptions = true; + o.enabledUsbDebugging = true; + o.encryptionState = "foo"; + o.imei = "foo"; + o.kernelVersion = "foo"; + o.lastSyncTime = "foo"; + o.managementState = "foo"; + o.manufacturer = "foo"; + o.meid = "foo"; + o.model = "foo"; + o.name = "foo"; + o.networkOperator = "foo"; + o.osVersion = "foo"; + o.otherAccounts = buildUnnamed2688(); + o.ownerType = "foo"; + o.releaseVersion = "foo"; + o.securityPatchTime = "foo"; + o.serialNumber = "foo"; + o.wifiMacAddresses = buildUnnamed2689(); + } + buildCounterGoogleAppsCloudidentityDevicesV1Device--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1Device( + api.GoogleAppsCloudidentityDevicesV1Device o) { + buildCounterGoogleAppsCloudidentityDevicesV1Device++; + if (buildCounterGoogleAppsCloudidentityDevicesV1Device < 3) { + checkGoogleAppsCloudidentityDevicesV1AndroidAttributes( + o.androidSpecificAttributes); + unittest.expect(o.assetTag, unittest.equals('foo')); + 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.compromisedState, unittest.equals('foo')); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.deviceType, unittest.equals('foo')); + unittest.expect(o.enabledDeveloperOptions, unittest.isTrue); + unittest.expect(o.enabledUsbDebugging, unittest.isTrue); + unittest.expect(o.encryptionState, unittest.equals('foo')); + unittest.expect(o.imei, unittest.equals('foo')); + unittest.expect(o.kernelVersion, unittest.equals('foo')); + unittest.expect(o.lastSyncTime, unittest.equals('foo')); + unittest.expect(o.managementState, unittest.equals('foo')); + unittest.expect(o.manufacturer, unittest.equals('foo')); + unittest.expect(o.meid, unittest.equals('foo')); + unittest.expect(o.model, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.networkOperator, unittest.equals('foo')); + unittest.expect(o.osVersion, unittest.equals('foo')); + checkUnnamed2688(o.otherAccounts); + unittest.expect(o.ownerType, unittest.equals('foo')); + unittest.expect(o.releaseVersion, unittest.equals('foo')); + unittest.expect(o.securityPatchTime, unittest.equals('foo')); + unittest.expect(o.serialNumber, unittest.equals('foo')); + checkUnnamed2689(o.wifiMacAddresses); + } + buildCounterGoogleAppsCloudidentityDevicesV1Device--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser = 0; +buildGoogleAppsCloudidentityDevicesV1DeviceUser() { + var o = new api.GoogleAppsCloudidentityDevicesV1DeviceUser(); + buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser++; + if (buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser < 3) { + o.compromisedState = "foo"; + o.createTime = "foo"; + o.firstSyncTime = "foo"; + o.languageCode = "foo"; + o.lastSyncTime = "foo"; + o.managementState = "foo"; + o.name = "foo"; + o.passwordState = "foo"; + o.userAgent = "foo"; + o.userEmail = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1DeviceUser( + api.GoogleAppsCloudidentityDevicesV1DeviceUser o) { + buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser++; + if (buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser < 3) { + unittest.expect(o.compromisedState, unittest.equals('foo')); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.firstSyncTime, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.lastSyncTime, unittest.equals('foo')); + unittest.expect(o.managementState, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.passwordState, unittest.equals('foo')); + unittest.expect(o.userAgent, unittest.equals('foo')); + unittest.expect(o.userEmail, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1DeviceUser--; +} + +buildUnnamed2690() { + var o = new core.List<api.GoogleAppsCloudidentityDevicesV1ClientState>(); + o.add(buildGoogleAppsCloudidentityDevicesV1ClientState()); + o.add(buildGoogleAppsCloudidentityDevicesV1ClientState()); + return o; +} + +checkUnnamed2690(core.List<api.GoogleAppsCloudidentityDevicesV1ClientState> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCloudidentityDevicesV1ClientState(o[0]); + checkGoogleAppsCloudidentityDevicesV1ClientState(o[1]); +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1ListClientStatesResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1ListClientStatesResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse < + 3) { + o.clientStates = buildUnnamed2690(); + o.nextPageToken = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ListClientStatesResponse( + api.GoogleAppsCloudidentityDevicesV1ListClientStatesResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse < + 3) { + checkUnnamed2690(o.clientStates); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1ListClientStatesResponse--; +} + +buildUnnamed2691() { + var o = new core.List<api.GoogleAppsCloudidentityDevicesV1DeviceUser>(); + o.add(buildGoogleAppsCloudidentityDevicesV1DeviceUser()); + o.add(buildGoogleAppsCloudidentityDevicesV1DeviceUser()); + return o; +} + +checkUnnamed2691(core.List<api.GoogleAppsCloudidentityDevicesV1DeviceUser> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o[0]); + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o[1]); +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse < 3) { + o.deviceUsers = buildUnnamed2691(); + o.nextPageToken = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse( + api.GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse < 3) { + checkUnnamed2691(o.deviceUsers); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse--; +} + +buildUnnamed2692() { + var o = new core.List<api.GoogleAppsCloudidentityDevicesV1Device>(); + o.add(buildGoogleAppsCloudidentityDevicesV1Device()); + o.add(buildGoogleAppsCloudidentityDevicesV1Device()); + return o; +} + +checkUnnamed2692(core.List<api.GoogleAppsCloudidentityDevicesV1Device> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleAppsCloudidentityDevicesV1Device(o[0]); + checkGoogleAppsCloudidentityDevicesV1Device(o[1]); +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse = 0; +buildGoogleAppsCloudidentityDevicesV1ListDevicesResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1ListDevicesResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse < 3) { + o.devices = buildUnnamed2692(); + o.nextPageToken = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1ListDevicesResponse( + api.GoogleAppsCloudidentityDevicesV1ListDevicesResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse < 3) { + checkUnnamed2692(o.devices); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1ListDevicesResponse--; +} + +buildUnnamed2693() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2693(core.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 + buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse = + 0; +buildGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse() { + var o = + new api.GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse < + 3) { + o.customer = "foo"; + o.names = buildUnnamed2693(); + o.nextPageToken = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse( + api.GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse < + 3) { + unittest.expect(o.customer, unittest.equals('foo')); + checkUnnamed2693(o.names); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest = 0; +buildGoogleAppsCloudidentityDevicesV1WipeDeviceRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1WipeDeviceRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest < 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1WipeDeviceRequest( + api.GoogleAppsCloudidentityDevicesV1WipeDeviceRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest < 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceRequest--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse = 0; +buildGoogleAppsCloudidentityDevicesV1WipeDeviceResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1WipeDeviceResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse < 3) { + o.device = buildGoogleAppsCloudidentityDevicesV1Device(); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1WipeDeviceResponse( + api.GoogleAppsCloudidentityDevicesV1WipeDeviceResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse < 3) { + checkGoogleAppsCloudidentityDevicesV1Device(o.device); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceResponse--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest = 0; +buildGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest() { + var o = new api.GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest(); + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest < 3) { + o.customer = "foo"; + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest( + api.GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest o) { + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest < 3) { + unittest.expect(o.customer, unittest.equals('foo')); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest--; +} + +core.int buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse = 0; +buildGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse() { + var o = new api.GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse(); + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse < 3) { + o.deviceUser = buildGoogleAppsCloudidentityDevicesV1DeviceUser(); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse--; + return o; +} + +checkGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse( + api.GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse o) { + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse++; + if (buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse < 3) { + checkGoogleAppsCloudidentityDevicesV1DeviceUser(o.deviceUser); + } + buildCounterGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse--; +} + +buildUnnamed2694() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2564(core.Map<core.String, core.String> o) { +checkUnnamed2694(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')); @@ -93,7 +765,7 @@ o.description = "foo"; o.displayName = "foo"; o.groupKey = buildEntityKey(); - o.labels = buildUnnamed2564(); + o.labels = buildUnnamed2694(); o.name = "foo"; o.parent = "foo"; o.updateTime = "foo"; @@ -109,7 +781,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); checkEntityKey(o.groupKey); - checkUnnamed2564(o.labels); + checkUnnamed2694(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -117,14 +789,14 @@ buildCounterGroup--; } -buildUnnamed2565() { +buildUnnamed2695() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed2565(core.List<api.Group> o) { +checkUnnamed2695(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -135,7 +807,7 @@ var o = new api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.groups = buildUnnamed2565(); + o.groups = buildUnnamed2695(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -145,20 +817,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed2565(o.groups); + checkUnnamed2695(o.groups); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed2566() { +buildUnnamed2696() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed2566(core.List<api.Membership> o) { +checkUnnamed2696(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); @@ -169,7 +841,7 @@ var o = new api.ListMembershipsResponse(); buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - o.memberships = buildUnnamed2566(); + o.memberships = buildUnnamed2696(); o.nextPageToken = "foo"; } buildCounterListMembershipsResponse--; @@ -179,7 +851,7 @@ checkListMembershipsResponse(api.ListMembershipsResponse o) { buildCounterListMembershipsResponse++; if (buildCounterListMembershipsResponse < 3) { - checkUnnamed2566(o.memberships); + checkUnnamed2696(o.memberships); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMembershipsResponse--; @@ -223,14 +895,14 @@ buildCounterLookupMembershipNameResponse--; } -buildUnnamed2567() { +buildUnnamed2697() { var o = new core.List<api.MembershipRole>(); o.add(buildMembershipRole()); o.add(buildMembershipRole()); return o; } -checkUnnamed2567(core.List<api.MembershipRole> o) { +checkUnnamed2697(core.List<api.MembershipRole> o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipRole(o[0]); checkMembershipRole(o[1]); @@ -244,7 +916,8 @@ o.createTime = "foo"; o.name = "foo"; o.preferredMemberKey = buildEntityKey(); - o.roles = buildUnnamed2567(); + o.roles = buildUnnamed2697(); + o.type = "foo"; o.updateTime = "foo"; } buildCounterMembership--; @@ -257,7 +930,8 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkEntityKey(o.preferredMemberKey); - checkUnnamed2567(o.roles); + checkUnnamed2697(o.roles); + unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterMembership--; @@ -282,7 +956,73 @@ buildCounterMembershipRole--; } -buildUnnamed2568() { +buildUnnamed2698() { + var o = new core.List<api.MembershipRole>(); + o.add(buildMembershipRole()); + o.add(buildMembershipRole()); + return o; +} + +checkUnnamed2698(core.List<api.MembershipRole> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMembershipRole(o[0]); + checkMembershipRole(o[1]); +} + +buildUnnamed2699() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2699(core.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 buildCounterModifyMembershipRolesRequest = 0; +buildModifyMembershipRolesRequest() { + var o = new api.ModifyMembershipRolesRequest(); + buildCounterModifyMembershipRolesRequest++; + if (buildCounterModifyMembershipRolesRequest < 3) { + o.addRoles = buildUnnamed2698(); + o.removeRoles = buildUnnamed2699(); + } + buildCounterModifyMembershipRolesRequest--; + return o; +} + +checkModifyMembershipRolesRequest(api.ModifyMembershipRolesRequest o) { + buildCounterModifyMembershipRolesRequest++; + if (buildCounterModifyMembershipRolesRequest < 3) { + checkUnnamed2698(o.addRoles); + checkUnnamed2699(o.removeRoles); + } + buildCounterModifyMembershipRolesRequest--; +} + +core.int buildCounterModifyMembershipRolesResponse = 0; +buildModifyMembershipRolesResponse() { + var o = new api.ModifyMembershipRolesResponse(); + buildCounterModifyMembershipRolesResponse++; + if (buildCounterModifyMembershipRolesResponse < 3) { + o.membership = buildMembership(); + } + buildCounterModifyMembershipRolesResponse--; + return o; +} + +checkModifyMembershipRolesResponse(api.ModifyMembershipRolesResponse o) { + buildCounterModifyMembershipRolesResponse++; + if (buildCounterModifyMembershipRolesResponse < 3) { + checkMembership(o.membership); + } + buildCounterModifyMembershipRolesResponse--; +} + +buildUnnamed2700() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -297,7 +1037,7 @@ return o; } -checkUnnamed2568(core.Map<core.String, core.Object> o) { +checkUnnamed2700(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)); @@ -311,7 +1051,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2569() { +buildUnnamed2701() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -326,7 +1066,7 @@ return o; } -checkUnnamed2569(core.Map<core.String, core.Object> o) { +checkUnnamed2701(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)); @@ -347,9 +1087,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2568(); + o.metadata = buildUnnamed2700(); o.name = "foo"; - o.response = buildUnnamed2569(); + o.response = buildUnnamed2701(); } buildCounterOperation--; return o; @@ -360,21 +1100,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2568(o.metadata); + checkUnnamed2700(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2569(o.response); + checkUnnamed2701(o.response); } buildCounterOperation--; } -buildUnnamed2570() { +buildUnnamed2702() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed2570(core.List<api.Group> o) { +checkUnnamed2702(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -385,7 +1125,7 @@ var o = new api.SearchGroupsResponse(); buildCounterSearchGroupsResponse++; if (buildCounterSearchGroupsResponse < 3) { - o.groups = buildUnnamed2570(); + o.groups = buildUnnamed2702(); o.nextPageToken = "foo"; } buildCounterSearchGroupsResponse--; @@ -395,13 +1135,13 @@ checkSearchGroupsResponse(api.SearchGroupsResponse o) { buildCounterSearchGroupsResponse++; if (buildCounterSearchGroupsResponse < 3) { - checkUnnamed2570(o.groups); + checkUnnamed2702(o.groups); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchGroupsResponse--; } -buildUnnamed2571() { +buildUnnamed2703() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -416,7 +1156,7 @@ return o; } -checkUnnamed2571(core.Map<core.String, core.Object> o) { +checkUnnamed2703(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)); @@ -430,17 +1170,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2572() { +buildUnnamed2704() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2571()); - o.add(buildUnnamed2571()); + o.add(buildUnnamed2703()); + o.add(buildUnnamed2703()); return o; } -checkUnnamed2572(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2704(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2571(o[0]); - checkUnnamed2571(o[1]); + checkUnnamed2703(o[0]); + checkUnnamed2703(o[1]); } core.int buildCounterStatus = 0; @@ -449,7 +1189,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2572(); + o.details = buildUnnamed2704(); o.message = "foo"; } buildCounterStatus--; @@ -460,7 +1200,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2572(o.details); + checkUnnamed2704(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -475,6 +1215,241 @@ }); }); + unittest.group("obj-schema-GoogleAppsCloudidentityDevicesV1AndroidAttributes", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1AndroidAttributes(); + var od = + new api.GoogleAppsCloudidentityDevicesV1AndroidAttributes.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1AndroidAttributes(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest(); + var od = new api + .GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ApproveDeviceUserResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest(); + var od = new api + .GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1BlockDeviceUserResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest(); + var od = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest(); + var od = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleAppsCloudidentityDevicesV1ClientState", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ClientState(); + var od = new api.GoogleAppsCloudidentityDevicesV1ClientState.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ClientState(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1CustomAttributeValue", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1CustomAttributeValue(); + var od = + new api.GoogleAppsCloudidentityDevicesV1CustomAttributeValue.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1CustomAttributeValue(od); + }); + }); + + unittest.group("obj-schema-GoogleAppsCloudidentityDevicesV1Device", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1Device(); + var od = + new api.GoogleAppsCloudidentityDevicesV1Device.fromJson(o.toJson()); + checkGoogleAppsCloudidentityDevicesV1Device(od); + }); + }); + + unittest.group("obj-schema-GoogleAppsCloudidentityDevicesV1DeviceUser", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1DeviceUser(); + var od = new api.GoogleAppsCloudidentityDevicesV1DeviceUser.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1DeviceUser(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1ListClientStatesResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ListClientStatesResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1ListClientStatesResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ListClientStatesResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1ListDevicesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1ListDevicesResponse(); + var od = + new api.GoogleAppsCloudidentityDevicesV1ListDevicesResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1ListDevicesResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleAppsCloudidentityDevicesV1WipeDeviceRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1WipeDeviceRequest(); + var od = + new api.GoogleAppsCloudidentityDevicesV1WipeDeviceRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1WipeDeviceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1WipeDeviceResponse(); + var od = + new api.GoogleAppsCloudidentityDevicesV1WipeDeviceResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest(); + var od = new api + .GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse(); + var od = new api + .GoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse.fromJson( + o.toJson()); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceUserResponse(od); + }); + }); + unittest.group("obj-schema-Group", () { unittest.test("to-json--from-json", () { var o = buildGroup(); @@ -531,6 +1506,22 @@ }); }); + unittest.group("obj-schema-ModifyMembershipRolesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildModifyMembershipRolesRequest(); + var od = new api.ModifyMembershipRolesRequest.fromJson(o.toJson()); + checkModifyMembershipRolesRequest(od); + }); + }); + + unittest.group("obj-schema-ModifyMembershipRolesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildModifyMembershipRolesResponse(); + var od = new api.ModifyMembershipRolesResponse.fromJson(o.toJson()); + checkModifyMembershipRolesResponse(od); + }); + }); + unittest.group("obj-schema-Operation", () { unittest.test("to-json--from-json", () { var o = buildOperation(); @@ -555,11 +1546,1057 @@ }); }); + unittest.group("resource-DevicesResourceApi", () { + unittest.test("method--cancelWipe", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .cancelWipe(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_request = buildGoogleAppsCloudidentityDevicesV1Device(); + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.GoogleAppsCloudidentityDevicesV1Device.fromJson(json); + checkGoogleAppsCloudidentityDevicesV1Device(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 + 10), + unittest.equals("v1/devices")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleAppsCloudidentityDevicesV1Device()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1Device(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_view = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_customer = "foo"; + var arg_orderBy = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("v1/devices")); + pathOffset += 10; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["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)); + unittest.expect( + queryMap["customer"].first, unittest.equals(arg_customer)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleAppsCloudidentityDevicesV1ListDevicesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + view: arg_view, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + customer: arg_customer, + orderBy: arg_orderBy, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1ListDevicesResponse(response); + }))); + }); + + unittest.test("method--wipe", () { + var mock = new HttpServerMock(); + api.DevicesResourceApi res = new api.CloudidentityApi(mock).devices; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1WipeDeviceRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleAppsCloudidentityDevicesV1WipeDeviceRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .wipe(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-DevicesDeviceUsersResourceApi", () { + unittest.test("method--approve", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1ApproveDeviceUserRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .approve(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--block", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1BlockDeviceUserRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .block(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--cancelWipe", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1CancelWipeDeviceUserRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .cancelWipe(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleAppsCloudidentityDevicesV1DeviceUser()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1DeviceUser(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_customer = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["customer"].first, unittest.equals(arg_customer)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode( + buildGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + customer: arg_customer, + pageSize: arg_pageSize, + filter: arg_filter, + orderBy: arg_orderBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1ListDeviceUsersResponse(response); + }))); + }); + + unittest.test("method--lookup", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_parent = "foo"; + var arg_rawResourceId = "foo"; + var arg_userId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_androidId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["rawResourceId"].first, + unittest.equals(arg_rawResourceId)); + unittest.expect(queryMap["userId"].first, unittest.equals(arg_userId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["androidId"].first, unittest.equals(arg_androidId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode( + buildGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .lookup(arg_parent, + rawResourceId: arg_rawResourceId, + userId: arg_userId, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + androidId: arg_androidId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1LookupSelfDeviceUsersResponse( + response); + }))); + }); + + unittest.test("method--wipe", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers; + var arg_request = + buildGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest.fromJson( + json); + checkGoogleAppsCloudidentityDevicesV1WipeDeviceUserRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .wipe(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-DevicesDeviceUsersClientStatesResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersClientStatesResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers.clientStates; + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleAppsCloudidentityDevicesV1ClientState()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, customer: arg_customer, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1ClientState(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersClientStatesResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers.clientStates; + var arg_parent = "foo"; + var arg_customer = "foo"; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode( + buildGoogleAppsCloudidentityDevicesV1ListClientStatesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + customer: arg_customer, + filter: arg_filter, + pageToken: arg_pageToken, + orderBy: arg_orderBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleAppsCloudidentityDevicesV1ListClientStatesResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.DevicesDeviceUsersClientStatesResourceApi res = + new api.CloudidentityApi(mock).devices.deviceUsers.clientStates; + var arg_request = buildGoogleAppsCloudidentityDevicesV1ClientState(); + var arg_name = "foo"; + var arg_customer = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleAppsCloudidentityDevicesV1ClientState.fromJson(json); + checkGoogleAppsCloudidentityDevicesV1ClientState(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["customer"].first, unittest.equals(arg_customer)); + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + customer: arg_customer, + updateMask: arg_updateMask, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-GroupsResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.CloudidentityApi(mock).groups; var arg_request = buildGroup(); + var arg_initialGroupConfig = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Group.fromJson(json); @@ -594,6 +2631,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["initialGroupConfig"].first, + unittest.equals(arg_initialGroupConfig)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -603,7 +2642,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, $fields: arg_$fields) + .create(arg_request, + initialGroupConfig: arg_initialGroupConfig, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); }))); @@ -714,10 +2754,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.CloudidentityApi(mock).groups; + var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_view = "foo"; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -749,12 +2789,12 @@ 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["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -765,10 +2805,10 @@ }), true); res .list( + pageSize: arg_pageSize, pageToken: arg_pageToken, view: arg_view, parent: arg_parent, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGroupsResponse(response); @@ -896,9 +2936,9 @@ var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.CloudidentityApi(mock).groups; var arg_pageToken = "foo"; - var arg_view = "foo"; var arg_query = "foo"; var arg_pageSize = 42; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -932,10 +2972,10 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -947,9 +2987,9 @@ res .search( pageToken: arg_pageToken, - view: arg_view, query: arg_query, pageSize: arg_pageSize, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearchGroupsResponse(response); @@ -1123,9 +3163,9 @@ api.GroupsMembershipsResourceApi res = new api.CloudidentityApi(mock).groups.memberships; var arg_parent = "foo"; + var arg_view = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; - var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1158,11 +3198,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + 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)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1173,9 +3213,9 @@ }), true); res .list(arg_parent, + view: arg_view, pageSize: arg_pageSize, pageToken: arg_pageToken, - view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMembershipsResponse(response); @@ -1242,5 +3282,61 @@ checkLookupMembershipNameResponse(response); }))); }); + + unittest.test("method--modifyMembershipRoles", () { + var mock = new HttpServerMock(); + api.GroupsMembershipsResourceApi res = + new api.CloudidentityApi(mock).groups.memberships; + var arg_request = buildModifyMembershipRolesRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ModifyMembershipRolesRequest.fromJson(json); + checkModifyMembershipRolesRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildModifyMembershipRolesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .modifyMembershipRoles(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkModifyMembershipRolesResponse(response); + }))); + }); }); }
diff --git a/generated/googleapis/test/cloudiot/v1_test.dart b/generated/googleapis/test/cloudiot/v1_test.dart index 5a38b88..ef54094 100644 --- a/generated/googleapis/test/cloudiot/v1_test.dart +++ b/generated/googleapis/test/cloudiot/v1_test.dart
@@ -86,14 +86,14 @@ buildCounterBindDeviceToGatewayResponse--; } -buildUnnamed121() { +buildUnnamed102() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed121(core.List<core.String> o) { +checkUnnamed102(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -104,8 +104,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed121(); + o.members = buildUnnamed102(); o.role = "foo"; } buildCounterBinding--; @@ -115,34 +116,35 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed121(o.members); + checkUnnamed102(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed122() { +buildUnnamed103() { var o = new core.List<api.DeviceCredential>(); o.add(buildDeviceCredential()); o.add(buildDeviceCredential()); return o; } -checkUnnamed122(core.List<api.DeviceCredential> o) { +checkUnnamed103(core.List<api.DeviceCredential> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceCredential(o[0]); checkDeviceCredential(o[1]); } -buildUnnamed123() { +buildUnnamed104() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed123(core.Map<core.String, core.String> o) { +checkUnnamed104(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')); @@ -155,7 +157,7 @@ if (buildCounterDevice < 3) { o.blocked = true; o.config = buildDeviceConfig(); - o.credentials = buildUnnamed122(); + o.credentials = buildUnnamed103(); o.gatewayConfig = buildGatewayConfig(); o.id = "foo"; o.lastConfigAckTime = "foo"; @@ -166,7 +168,7 @@ o.lastHeartbeatTime = "foo"; o.lastStateTime = "foo"; o.logLevel = "foo"; - o.metadata = buildUnnamed123(); + o.metadata = buildUnnamed104(); o.name = "foo"; o.numId = "foo"; o.state = buildDeviceState(); @@ -180,7 +182,7 @@ if (buildCounterDevice < 3) { unittest.expect(o.blocked, unittest.isTrue); checkDeviceConfig(o.config); - checkUnnamed122(o.credentials); + checkUnnamed103(o.credentials); checkGatewayConfig(o.gatewayConfig); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.lastConfigAckTime, unittest.equals('foo')); @@ -191,7 +193,7 @@ unittest.expect(o.lastHeartbeatTime, unittest.equals('foo')); unittest.expect(o.lastStateTime, unittest.equals('foo')); unittest.expect(o.logLevel, unittest.equals('foo')); - checkUnnamed123(o.metadata); + checkUnnamed104(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numId, unittest.equals('foo')); checkDeviceState(o.state); @@ -245,27 +247,27 @@ buildCounterDeviceCredential--; } -buildUnnamed124() { +buildUnnamed105() { var o = new core.List<api.RegistryCredential>(); o.add(buildRegistryCredential()); o.add(buildRegistryCredential()); return o; } -checkUnnamed124(core.List<api.RegistryCredential> o) { +checkUnnamed105(core.List<api.RegistryCredential> o) { unittest.expect(o, unittest.hasLength(2)); checkRegistryCredential(o[0]); checkRegistryCredential(o[1]); } -buildUnnamed125() { +buildUnnamed106() { var o = new core.List<api.EventNotificationConfig>(); o.add(buildEventNotificationConfig()); o.add(buildEventNotificationConfig()); return o; } -checkUnnamed125(core.List<api.EventNotificationConfig> o) { +checkUnnamed106(core.List<api.EventNotificationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkEventNotificationConfig(o[0]); checkEventNotificationConfig(o[1]); @@ -276,8 +278,8 @@ var o = new api.DeviceRegistry(); buildCounterDeviceRegistry++; if (buildCounterDeviceRegistry < 3) { - o.credentials = buildUnnamed124(); - o.eventNotificationConfigs = buildUnnamed125(); + o.credentials = buildUnnamed105(); + o.eventNotificationConfigs = buildUnnamed106(); o.httpConfig = buildHttpConfig(); o.id = "foo"; o.logLevel = "foo"; @@ -292,8 +294,8 @@ checkDeviceRegistry(api.DeviceRegistry o) { buildCounterDeviceRegistry++; if (buildCounterDeviceRegistry < 3) { - checkUnnamed124(o.credentials); - checkUnnamed125(o.eventNotificationConfigs); + checkUnnamed105(o.credentials); + checkUnnamed106(o.eventNotificationConfigs); checkHttpConfig(o.httpConfig); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.logLevel, unittest.equals('foo')); @@ -468,14 +470,14 @@ buildCounterHttpConfig--; } -buildUnnamed126() { +buildUnnamed107() { var o = new core.List<api.DeviceConfig>(); o.add(buildDeviceConfig()); o.add(buildDeviceConfig()); return o; } -checkUnnamed126(core.List<api.DeviceConfig> o) { +checkUnnamed107(core.List<api.DeviceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceConfig(o[0]); checkDeviceConfig(o[1]); @@ -486,7 +488,7 @@ var o = new api.ListDeviceConfigVersionsResponse(); buildCounterListDeviceConfigVersionsResponse++; if (buildCounterListDeviceConfigVersionsResponse < 3) { - o.deviceConfigs = buildUnnamed126(); + o.deviceConfigs = buildUnnamed107(); } buildCounterListDeviceConfigVersionsResponse--; return o; @@ -495,19 +497,19 @@ checkListDeviceConfigVersionsResponse(api.ListDeviceConfigVersionsResponse o) { buildCounterListDeviceConfigVersionsResponse++; if (buildCounterListDeviceConfigVersionsResponse < 3) { - checkUnnamed126(o.deviceConfigs); + checkUnnamed107(o.deviceConfigs); } buildCounterListDeviceConfigVersionsResponse--; } -buildUnnamed127() { +buildUnnamed108() { var o = new core.List<api.DeviceRegistry>(); o.add(buildDeviceRegistry()); o.add(buildDeviceRegistry()); return o; } -checkUnnamed127(core.List<api.DeviceRegistry> o) { +checkUnnamed108(core.List<api.DeviceRegistry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceRegistry(o[0]); checkDeviceRegistry(o[1]); @@ -518,7 +520,7 @@ var o = new api.ListDeviceRegistriesResponse(); buildCounterListDeviceRegistriesResponse++; if (buildCounterListDeviceRegistriesResponse < 3) { - o.deviceRegistries = buildUnnamed127(); + o.deviceRegistries = buildUnnamed108(); o.nextPageToken = "foo"; } buildCounterListDeviceRegistriesResponse--; @@ -528,20 +530,20 @@ checkListDeviceRegistriesResponse(api.ListDeviceRegistriesResponse o) { buildCounterListDeviceRegistriesResponse++; if (buildCounterListDeviceRegistriesResponse < 3) { - checkUnnamed127(o.deviceRegistries); + checkUnnamed108(o.deviceRegistries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDeviceRegistriesResponse--; } -buildUnnamed128() { +buildUnnamed109() { var o = new core.List<api.DeviceState>(); o.add(buildDeviceState()); o.add(buildDeviceState()); return o; } -checkUnnamed128(core.List<api.DeviceState> o) { +checkUnnamed109(core.List<api.DeviceState> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceState(o[0]); checkDeviceState(o[1]); @@ -552,7 +554,7 @@ var o = new api.ListDeviceStatesResponse(); buildCounterListDeviceStatesResponse++; if (buildCounterListDeviceStatesResponse < 3) { - o.deviceStates = buildUnnamed128(); + o.deviceStates = buildUnnamed109(); } buildCounterListDeviceStatesResponse--; return o; @@ -561,19 +563,19 @@ checkListDeviceStatesResponse(api.ListDeviceStatesResponse o) { buildCounterListDeviceStatesResponse++; if (buildCounterListDeviceStatesResponse < 3) { - checkUnnamed128(o.deviceStates); + checkUnnamed109(o.deviceStates); } buildCounterListDeviceStatesResponse--; } -buildUnnamed129() { +buildUnnamed110() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed129(core.List<api.Device> o) { +checkUnnamed110(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -584,7 +586,7 @@ var o = new api.ListDevicesResponse(); buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - o.devices = buildUnnamed129(); + o.devices = buildUnnamed110(); o.nextPageToken = "foo"; } buildCounterListDevicesResponse--; @@ -594,7 +596,7 @@ checkListDevicesResponse(api.ListDevicesResponse o) { buildCounterListDevicesResponse++; if (buildCounterListDevicesResponse < 3) { - checkUnnamed129(o.devices); + checkUnnamed110(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDevicesResponse--; @@ -640,14 +642,14 @@ buildCounterMqttConfig--; } -buildUnnamed130() { +buildUnnamed111() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed130(core.List<api.Binding> o) { +checkUnnamed111(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -658,7 +660,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed130(); + o.bindings = buildUnnamed111(); o.etag = "foo"; o.version = 42; } @@ -669,7 +671,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed130(o.bindings); + checkUnnamed111(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -813,7 +815,7 @@ buildCounterStateNotificationConfig--; } -buildUnnamed131() { +buildUnnamed112() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -828,7 +830,7 @@ return o; } -checkUnnamed131(core.Map<core.String, core.Object> o) { +checkUnnamed112(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)); @@ -842,17 +844,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed132() { +buildUnnamed113() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed131()); - o.add(buildUnnamed131()); + o.add(buildUnnamed112()); + o.add(buildUnnamed112()); return o; } -checkUnnamed132(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed113(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed131(o[0]); - checkUnnamed131(o[1]); + checkUnnamed112(o[0]); + checkUnnamed112(o[1]); } core.int buildCounterStatus = 0; @@ -861,7 +863,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed132(); + o.details = buildUnnamed113(); o.message = "foo"; } buildCounterStatus--; @@ -872,20 +874,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed132(o.details); + checkUnnamed113(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed133() { +buildUnnamed114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed133(core.List<core.String> o) { +checkUnnamed114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -896,7 +898,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed133(); + o.permissions = buildUnnamed114(); } buildCounterTestIamPermissionsRequest--; return o; @@ -905,19 +907,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed133(o.permissions); + checkUnnamed114(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed134() { +buildUnnamed115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed134(core.List<core.String> o) { +checkUnnamed115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -928,7 +930,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed134(); + o.permissions = buildUnnamed115(); } buildCounterTestIamPermissionsResponse--; return o; @@ -937,7 +939,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed134(o.permissions); + checkUnnamed115(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1007,53 +1009,53 @@ buildCounterX509CertificateDetails--; } -buildUnnamed135() { +buildUnnamed116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed135(core.List<core.String> o) { +checkUnnamed116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed136() { +buildUnnamed117() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed136(core.List<core.String> o) { +checkUnnamed117(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed137() { +buildUnnamed118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed137(core.List<core.String> o) { +checkUnnamed118(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed138() { +buildUnnamed119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed138(core.List<core.String> o) { +checkUnnamed119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2073,14 +2075,14 @@ api.ProjectsLocationsRegistriesDevicesResourceApi res = new api.CloudiotApi(mock).projects.locations.registries.devices; var arg_parent = "foo"; - var arg_deviceIds = buildUnnamed135(); + var arg_deviceIds = buildUnnamed116(); var arg_gatewayListOptions_associationsDeviceId = "foo"; - var arg_deviceNumIds = buildUnnamed136(); - var arg_gatewayListOptions_gatewayType = "foo"; - var arg_gatewayListOptions_associationsGatewayId = "foo"; - var arg_fieldMask = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_gatewayListOptions_gatewayType = "foo"; + var arg_fieldMask = "foo"; + var arg_gatewayListOptions_associationsGatewayId = "foo"; + var arg_deviceNumIds = buildUnnamed117(); + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2117,19 +2119,19 @@ unittest.expect( queryMap["gatewayListOptions.associationsDeviceId"].first, unittest.equals(arg_gatewayListOptions_associationsDeviceId)); - unittest.expect( - queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["gatewayListOptions.gatewayType"].first, unittest.equals(arg_gatewayListOptions_gatewayType)); unittest.expect( + queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); + unittest.expect( queryMap["gatewayListOptions.associationsGatewayId"].first, unittest.equals(arg_gatewayListOptions_associationsGatewayId)); unittest.expect( - queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); + queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2143,14 +2145,14 @@ deviceIds: arg_deviceIds, gatewayListOptions_associationsDeviceId: arg_gatewayListOptions_associationsDeviceId, - deviceNumIds: arg_deviceNumIds, + pageSize: arg_pageSize, gatewayListOptions_gatewayType: arg_gatewayListOptions_gatewayType, + fieldMask: arg_fieldMask, gatewayListOptions_associationsGatewayId: arg_gatewayListOptions_associationsGatewayId, - fieldMask: arg_fieldMask, + deviceNumIds: arg_deviceNumIds, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDevicesResponse(response); @@ -2640,14 +2642,14 @@ .groups .devices; var arg_parent = "foo"; - var arg_deviceNumIds = buildUnnamed137(); - var arg_gatewayListOptions_associationsDeviceId = "foo"; - var arg_gatewayListOptions_gatewayType = "foo"; - var arg_gatewayListOptions_associationsGatewayId = "foo"; - var arg_pageToken = "foo"; - var arg_fieldMask = "foo"; var arg_pageSize = 42; - var arg_deviceIds = buildUnnamed138(); + var arg_deviceIds = buildUnnamed118(); + var arg_pageToken = "foo"; + var arg_deviceNumIds = buildUnnamed119(); + var arg_gatewayListOptions_gatewayType = "foo"; + var arg_gatewayListOptions_associationsDeviceId = "foo"; + var arg_fieldMask = "foo"; + var arg_gatewayListOptions_associationsGatewayId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2680,23 +2682,23 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); - unittest.expect( - queryMap["gatewayListOptions.associationsDeviceId"].first, - unittest.equals(arg_gatewayListOptions_associationsDeviceId)); - unittest.expect(queryMap["gatewayListOptions.gatewayType"].first, - unittest.equals(arg_gatewayListOptions_gatewayType)); - unittest.expect( - queryMap["gatewayListOptions.associationsGatewayId"].first, - unittest.equals(arg_gatewayListOptions_associationsGatewayId)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["deviceIds"], unittest.equals(arg_deviceIds)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["deviceNumIds"], unittest.equals(arg_deviceNumIds)); + unittest.expect(queryMap["gatewayListOptions.gatewayType"].first, + unittest.equals(arg_gatewayListOptions_gatewayType)); + unittest.expect( + queryMap["gatewayListOptions.associationsDeviceId"].first, + unittest.equals(arg_gatewayListOptions_associationsDeviceId)); + unittest.expect( + queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); + unittest.expect( + queryMap["gatewayListOptions.associationsGatewayId"].first, + unittest.equals(arg_gatewayListOptions_associationsGatewayId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2707,17 +2709,17 @@ }), true); res .list(arg_parent, - deviceNumIds: arg_deviceNumIds, - gatewayListOptions_associationsDeviceId: - arg_gatewayListOptions_associationsDeviceId, - gatewayListOptions_gatewayType: - arg_gatewayListOptions_gatewayType, - gatewayListOptions_associationsGatewayId: - arg_gatewayListOptions_associationsGatewayId, - pageToken: arg_pageToken, - fieldMask: arg_fieldMask, pageSize: arg_pageSize, deviceIds: arg_deviceIds, + pageToken: arg_pageToken, + deviceNumIds: arg_deviceNumIds, + gatewayListOptions_gatewayType: + arg_gatewayListOptions_gatewayType, + gatewayListOptions_associationsDeviceId: + arg_gatewayListOptions_associationsDeviceId, + fieldMask: arg_fieldMask, + gatewayListOptions_associationsGatewayId: + arg_gatewayListOptions_associationsGatewayId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDevicesResponse(response);
diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart index f31d07e..983f246 100644 --- a/generated/googleapis/test/cloudkms/v1_test.dart +++ b/generated/googleapis/test/cloudkms/v1_test.dart
@@ -56,6 +56,7 @@ buildCounterAsymmetricDecryptRequest++; if (buildCounterAsymmetricDecryptRequest < 3) { o.ciphertext = "foo"; + o.ciphertextCrc32c = "foo"; } buildCounterAsymmetricDecryptRequest--; return o; @@ -65,6 +66,7 @@ buildCounterAsymmetricDecryptRequest++; if (buildCounterAsymmetricDecryptRequest < 3) { unittest.expect(o.ciphertext, unittest.equals('foo')); + unittest.expect(o.ciphertextCrc32c, unittest.equals('foo')); } buildCounterAsymmetricDecryptRequest--; } @@ -75,6 +77,8 @@ buildCounterAsymmetricDecryptResponse++; if (buildCounterAsymmetricDecryptResponse < 3) { o.plaintext = "foo"; + o.plaintextCrc32c = "foo"; + o.verifiedCiphertextCrc32c = true; } buildCounterAsymmetricDecryptResponse--; return o; @@ -84,6 +88,8 @@ buildCounterAsymmetricDecryptResponse++; if (buildCounterAsymmetricDecryptResponse < 3) { unittest.expect(o.plaintext, unittest.equals('foo')); + unittest.expect(o.plaintextCrc32c, unittest.equals('foo')); + unittest.expect(o.verifiedCiphertextCrc32c, unittest.isTrue); } buildCounterAsymmetricDecryptResponse--; } @@ -94,6 +100,7 @@ buildCounterAsymmetricSignRequest++; if (buildCounterAsymmetricSignRequest < 3) { o.digest = buildDigest(); + o.digestCrc32c = "foo"; } buildCounterAsymmetricSignRequest--; return o; @@ -103,6 +110,7 @@ buildCounterAsymmetricSignRequest++; if (buildCounterAsymmetricSignRequest < 3) { checkDigest(o.digest); + unittest.expect(o.digestCrc32c, unittest.equals('foo')); } buildCounterAsymmetricSignRequest--; } @@ -112,7 +120,10 @@ var o = new api.AsymmetricSignResponse(); buildCounterAsymmetricSignResponse++; if (buildCounterAsymmetricSignResponse < 3) { + o.name = "foo"; o.signature = "foo"; + o.signatureCrc32c = "foo"; + o.verifiedDigestCrc32c = true; } buildCounterAsymmetricSignResponse--; return o; @@ -121,19 +132,22 @@ checkAsymmetricSignResponse(api.AsymmetricSignResponse o) { buildCounterAsymmetricSignResponse++; if (buildCounterAsymmetricSignResponse < 3) { + unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.signature, unittest.equals('foo')); + unittest.expect(o.signatureCrc32c, unittest.equals('foo')); + unittest.expect(o.verifiedDigestCrc32c, unittest.isTrue); } buildCounterAsymmetricSignResponse--; } -buildUnnamed4977() { +buildUnnamed5354() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed4977(core.List<api.AuditLogConfig> o) { +checkUnnamed5354(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -144,7 +158,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed4977(); + o.auditLogConfigs = buildUnnamed5354(); o.service = "foo"; } buildCounterAuditConfig--; @@ -154,20 +168,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed4977(o.auditLogConfigs); + checkUnnamed5354(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed4978() { +buildUnnamed5355() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4978(core.List<core.String> o) { +checkUnnamed5355(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -178,7 +192,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed4978(); + o.exemptedMembers = buildUnnamed5355(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -188,20 +202,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed4978(o.exemptedMembers); + checkUnnamed5355(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed4979() { +buildUnnamed5356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4979(core.List<core.String> o) { +checkUnnamed5356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -212,8 +226,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed4979(); + o.members = buildUnnamed5356(); o.role = "foo"; } buildCounterBinding--; @@ -223,21 +238,84 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed4979(o.members); + checkUnnamed5356(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed4980() { +buildUnnamed5357() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5357(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed5358() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5358(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed5359() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5359(core.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 buildCounterCertificateChains = 0; +buildCertificateChains() { + var o = new api.CertificateChains(); + buildCounterCertificateChains++; + if (buildCounterCertificateChains < 3) { + o.caviumCerts = buildUnnamed5357(); + o.googleCardCerts = buildUnnamed5358(); + o.googlePartitionCerts = buildUnnamed5359(); + } + buildCounterCertificateChains--; + return o; +} + +checkCertificateChains(api.CertificateChains o) { + buildCounterCertificateChains++; + if (buildCounterCertificateChains < 3) { + checkUnnamed5357(o.caviumCerts); + checkUnnamed5358(o.googleCardCerts); + checkUnnamed5359(o.googlePartitionCerts); + } + buildCounterCertificateChains--; +} + +buildUnnamed5360() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4980(core.Map<core.String, core.String> o) { +checkUnnamed5360(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')); @@ -249,7 +327,7 @@ buildCounterCryptoKey++; if (buildCounterCryptoKey < 3) { o.createTime = "foo"; - o.labels = buildUnnamed4980(); + o.labels = buildUnnamed5360(); o.name = "foo"; o.nextRotationTime = "foo"; o.primary = buildCryptoKeyVersion(); @@ -265,7 +343,7 @@ buildCounterCryptoKey++; if (buildCounterCryptoKey < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed4980(o.labels); + checkUnnamed5360(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nextRotationTime, unittest.equals('foo')); checkCryptoKeyVersion(o.primary); @@ -346,7 +424,9 @@ buildCounterDecryptRequest++; if (buildCounterDecryptRequest < 3) { o.additionalAuthenticatedData = "foo"; + o.additionalAuthenticatedDataCrc32c = "foo"; o.ciphertext = "foo"; + o.ciphertextCrc32c = "foo"; } buildCounterDecryptRequest--; return o; @@ -356,7 +436,10 @@ buildCounterDecryptRequest++; if (buildCounterDecryptRequest < 3) { unittest.expect(o.additionalAuthenticatedData, unittest.equals('foo')); + unittest.expect( + o.additionalAuthenticatedDataCrc32c, unittest.equals('foo')); unittest.expect(o.ciphertext, unittest.equals('foo')); + unittest.expect(o.ciphertextCrc32c, unittest.equals('foo')); } buildCounterDecryptRequest--; } @@ -367,6 +450,7 @@ buildCounterDecryptResponse++; if (buildCounterDecryptResponse < 3) { o.plaintext = "foo"; + o.plaintextCrc32c = "foo"; } buildCounterDecryptResponse--; return o; @@ -376,6 +460,7 @@ buildCounterDecryptResponse++; if (buildCounterDecryptResponse < 3) { unittest.expect(o.plaintext, unittest.equals('foo')); + unittest.expect(o.plaintextCrc32c, unittest.equals('foo')); } buildCounterDecryptResponse--; } @@ -424,7 +509,9 @@ buildCounterEncryptRequest++; if (buildCounterEncryptRequest < 3) { o.additionalAuthenticatedData = "foo"; + o.additionalAuthenticatedDataCrc32c = "foo"; o.plaintext = "foo"; + o.plaintextCrc32c = "foo"; } buildCounterEncryptRequest--; return o; @@ -434,7 +521,10 @@ buildCounterEncryptRequest++; if (buildCounterEncryptRequest < 3) { unittest.expect(o.additionalAuthenticatedData, unittest.equals('foo')); + unittest.expect( + o.additionalAuthenticatedDataCrc32c, unittest.equals('foo')); unittest.expect(o.plaintext, unittest.equals('foo')); + unittest.expect(o.plaintextCrc32c, unittest.equals('foo')); } buildCounterEncryptRequest--; } @@ -445,7 +535,10 @@ buildCounterEncryptResponse++; if (buildCounterEncryptResponse < 3) { o.ciphertext = "foo"; + o.ciphertextCrc32c = "foo"; o.name = "foo"; + o.verifiedAdditionalAuthenticatedDataCrc32c = true; + o.verifiedPlaintextCrc32c = true; } buildCounterEncryptResponse--; return o; @@ -455,7 +548,11 @@ buildCounterEncryptResponse++; if (buildCounterEncryptResponse < 3) { unittest.expect(o.ciphertext, unittest.equals('foo')); + unittest.expect(o.ciphertextCrc32c, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect( + o.verifiedAdditionalAuthenticatedDataCrc32c, unittest.isTrue); + unittest.expect(o.verifiedPlaintextCrc32c, unittest.isTrue); } buildCounterEncryptResponse--; } @@ -569,6 +666,7 @@ var o = new api.KeyOperationAttestation(); buildCounterKeyOperationAttestation++; if (buildCounterKeyOperationAttestation < 3) { + o.certChains = buildCertificateChains(); o.content = "foo"; o.format = "foo"; } @@ -579,6 +677,7 @@ checkKeyOperationAttestation(api.KeyOperationAttestation o) { buildCounterKeyOperationAttestation++; if (buildCounterKeyOperationAttestation < 3) { + checkCertificateChains(o.certChains); unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -606,14 +705,14 @@ buildCounterKeyRing--; } -buildUnnamed4981() { +buildUnnamed5361() { var o = new core.List<api.CryptoKeyVersion>(); o.add(buildCryptoKeyVersion()); o.add(buildCryptoKeyVersion()); return o; } -checkUnnamed4981(core.List<api.CryptoKeyVersion> o) { +checkUnnamed5361(core.List<api.CryptoKeyVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKeyVersion(o[0]); checkCryptoKeyVersion(o[1]); @@ -624,7 +723,7 @@ var o = new api.ListCryptoKeyVersionsResponse(); buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - o.cryptoKeyVersions = buildUnnamed4981(); + o.cryptoKeyVersions = buildUnnamed5361(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -635,21 +734,21 @@ checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { buildCounterListCryptoKeyVersionsResponse++; if (buildCounterListCryptoKeyVersionsResponse < 3) { - checkUnnamed4981(o.cryptoKeyVersions); + checkUnnamed5361(o.cryptoKeyVersions); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeyVersionsResponse--; } -buildUnnamed4982() { +buildUnnamed5362() { var o = new core.List<api.CryptoKey>(); o.add(buildCryptoKey()); o.add(buildCryptoKey()); return o; } -checkUnnamed4982(core.List<api.CryptoKey> o) { +checkUnnamed5362(core.List<api.CryptoKey> o) { unittest.expect(o, unittest.hasLength(2)); checkCryptoKey(o[0]); checkCryptoKey(o[1]); @@ -660,7 +759,7 @@ var o = new api.ListCryptoKeysResponse(); buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - o.cryptoKeys = buildUnnamed4982(); + o.cryptoKeys = buildUnnamed5362(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -671,21 +770,21 @@ checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { buildCounterListCryptoKeysResponse++; if (buildCounterListCryptoKeysResponse < 3) { - checkUnnamed4982(o.cryptoKeys); + checkUnnamed5362(o.cryptoKeys); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListCryptoKeysResponse--; } -buildUnnamed4983() { +buildUnnamed5363() { var o = new core.List<api.ImportJob>(); o.add(buildImportJob()); o.add(buildImportJob()); return o; } -checkUnnamed4983(core.List<api.ImportJob> o) { +checkUnnamed5363(core.List<api.ImportJob> o) { unittest.expect(o, unittest.hasLength(2)); checkImportJob(o[0]); checkImportJob(o[1]); @@ -696,7 +795,7 @@ var o = new api.ListImportJobsResponse(); buildCounterListImportJobsResponse++; if (buildCounterListImportJobsResponse < 3) { - o.importJobs = buildUnnamed4983(); + o.importJobs = buildUnnamed5363(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -707,21 +806,21 @@ checkListImportJobsResponse(api.ListImportJobsResponse o) { buildCounterListImportJobsResponse++; if (buildCounterListImportJobsResponse < 3) { - checkUnnamed4983(o.importJobs); + checkUnnamed5363(o.importJobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListImportJobsResponse--; } -buildUnnamed4984() { +buildUnnamed5364() { var o = new core.List<api.KeyRing>(); o.add(buildKeyRing()); o.add(buildKeyRing()); return o; } -checkUnnamed4984(core.List<api.KeyRing> o) { +checkUnnamed5364(core.List<api.KeyRing> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRing(o[0]); checkKeyRing(o[1]); @@ -732,7 +831,7 @@ var o = new api.ListKeyRingsResponse(); buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - o.keyRings = buildUnnamed4984(); + o.keyRings = buildUnnamed5364(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -743,21 +842,21 @@ checkListKeyRingsResponse(api.ListKeyRingsResponse o) { buildCounterListKeyRingsResponse++; if (buildCounterListKeyRingsResponse < 3) { - checkUnnamed4984(o.keyRings); + checkUnnamed5364(o.keyRings); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListKeyRingsResponse--; } -buildUnnamed4985() { +buildUnnamed5365() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed4985(core.List<api.Location> o) { +checkUnnamed5365(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -768,7 +867,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed4985(); + o.locations = buildUnnamed5365(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -778,26 +877,26 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed4985(o.locations); + checkUnnamed5365(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed4986() { +buildUnnamed5366() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4986(core.Map<core.String, core.String> o) { +checkUnnamed5366(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')); } -buildUnnamed4987() { +buildUnnamed5367() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -812,7 +911,7 @@ return o; } -checkUnnamed4987(core.Map<core.String, core.Object> o) { +checkUnnamed5367(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)); @@ -832,9 +931,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed4986(); + o.labels = buildUnnamed5366(); o.locationId = "foo"; - o.metadata = buildUnnamed4987(); + o.metadata = buildUnnamed5367(); o.name = "foo"; } buildCounterLocation--; @@ -845,9 +944,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4986(o.labels); + checkUnnamed5366(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed4987(o.metadata); + checkUnnamed5367(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -874,27 +973,27 @@ buildCounterLocationMetadata--; } -buildUnnamed4988() { +buildUnnamed5368() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed4988(core.List<api.AuditConfig> o) { +checkUnnamed5368(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed4989() { +buildUnnamed5369() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed4989(core.List<api.Binding> o) { +checkUnnamed5369(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -905,8 +1004,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed4988(); - o.bindings = buildUnnamed4989(); + o.auditConfigs = buildUnnamed5368(); + o.bindings = buildUnnamed5369(); o.etag = "foo"; o.version = 42; } @@ -917,8 +1016,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed4988(o.auditConfigs); - checkUnnamed4989(o.bindings); + checkUnnamed5368(o.auditConfigs); + checkUnnamed5369(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -931,7 +1030,9 @@ buildCounterPublicKey++; if (buildCounterPublicKey < 3) { o.algorithm = "foo"; + o.name = "foo"; o.pem = "foo"; + o.pemCrc32c = "foo"; } buildCounterPublicKey--; return o; @@ -941,7 +1042,9 @@ buildCounterPublicKey++; if (buildCounterPublicKey < 3) { unittest.expect(o.algorithm, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.pem, unittest.equals('foo')); + unittest.expect(o.pemCrc32c, unittest.equals('foo')); } buildCounterPublicKey--; } @@ -982,14 +1085,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed4990() { +buildUnnamed5370() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4990(core.List<core.String> o) { +checkUnnamed5370(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1000,7 +1103,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed4990(); + o.permissions = buildUnnamed5370(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1009,19 +1112,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed4990(o.permissions); + checkUnnamed5370(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed4991() { +buildUnnamed5371() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4991(core.List<core.String> o) { +checkUnnamed5371(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1032,7 +1135,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed4991(); + o.permissions = buildUnnamed5371(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1041,7 +1144,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed4991(o.permissions); + checkUnnamed5371(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1142,6 +1245,14 @@ }); }); + unittest.group("obj-schema-CertificateChains", () { + unittest.test("to-json--from-json", () { + var o = buildCertificateChains(); + var od = new api.CertificateChains.fromJson(o.toJson()); + checkCertificateChains(od); + }); + }); + unittest.group("obj-schema-CryptoKey", () { unittest.test("to-json--from-json", () { var o = buildCryptoKey(); @@ -1678,8 +1789,8 @@ api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_orderBy = "foo"; var arg_$fields = "foo"; @@ -1714,9 +1825,9 @@ 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)); unittest.expect( @@ -1731,8 +1842,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, pageToken: arg_pageToken, orderBy: arg_orderBy, $fields: arg_$fields) @@ -2149,10 +2260,10 @@ new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_orderBy = "foo"; var arg_versionView = "foo"; + var arg_orderBy = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2187,13 +2298,13 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["versionView"].first, unittest.equals(arg_versionView)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["versionView"].first, unittest.equals(arg_versionView)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2205,10 +2316,10 @@ res .list(arg_parent, filter: arg_filter, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - orderBy: arg_orderBy, versionView: arg_versionView, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCryptoKeysResponse(response); @@ -2876,11 +2987,11 @@ .cryptoKeys .cryptoKeyVersions; var arg_parent = "foo"; - var arg_orderBy = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_view = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2913,14 +3024,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2931,11 +3042,11 @@ }), true); res .list(arg_parent, - orderBy: arg_orderBy, - filter: arg_filter, - pageToken: arg_pageToken, - pageSize: arg_pageSize, view: arg_view, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCryptoKeyVersionsResponse(response); @@ -3246,10 +3357,10 @@ api.ProjectsLocationsKeyRingsImportJobsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.importJobs; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3282,13 +3393,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3299,10 +3410,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, - pageSize: arg_pageSize, filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListImportJobsResponse(response);
diff --git a/generated/googleapis/test/cloudprofiler/v2_test.dart b/generated/googleapis/test/cloudprofiler/v2_test.dart index 23c4976..527c3f0 100644 --- a/generated/googleapis/test/cloudprofiler/v2_test.dart +++ b/generated/googleapis/test/cloudprofiler/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4689() { +buildUnnamed5018() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4689(core.List<core.String> o) { +checkUnnamed5018(core.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 @@ buildCounterCreateProfileRequest++; if (buildCounterCreateProfileRequest < 3) { o.deployment = buildDeployment(); - o.profileType = buildUnnamed4689(); + o.profileType = buildUnnamed5018(); } buildCounterCreateProfileRequest--; return o; @@ -79,19 +79,19 @@ buildCounterCreateProfileRequest++; if (buildCounterCreateProfileRequest < 3) { checkDeployment(o.deployment); - checkUnnamed4689(o.profileType); + checkUnnamed5018(o.profileType); } buildCounterCreateProfileRequest--; } -buildUnnamed4690() { +buildUnnamed5019() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4690(core.Map<core.String, core.String> o) { +checkUnnamed5019(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')); @@ -102,7 +102,7 @@ var o = new api.Deployment(); buildCounterDeployment++; if (buildCounterDeployment < 3) { - o.labels = buildUnnamed4690(); + o.labels = buildUnnamed5019(); o.projectId = "foo"; o.target = "foo"; } @@ -113,21 +113,21 @@ checkDeployment(api.Deployment o) { buildCounterDeployment++; if (buildCounterDeployment < 3) { - checkUnnamed4690(o.labels); + checkUnnamed5019(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterDeployment--; } -buildUnnamed4691() { +buildUnnamed5020() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4691(core.Map<core.String, core.String> o) { +checkUnnamed5020(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')); @@ -140,7 +140,7 @@ if (buildCounterProfile < 3) { o.deployment = buildDeployment(); o.duration = "foo"; - o.labels = buildUnnamed4691(); + o.labels = buildUnnamed5020(); o.name = "foo"; o.profileBytes = "foo"; o.profileType = "foo"; @@ -154,7 +154,7 @@ if (buildCounterProfile < 3) { checkDeployment(o.deployment); unittest.expect(o.duration, unittest.equals('foo')); - checkUnnamed4691(o.labels); + checkUnnamed5020(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.profileBytes, unittest.equals('foo')); unittest.expect(o.profileType, unittest.equals('foo'));
diff --git a/generated/googleapis/test/cloudresourcemanager/v1_test.dart b/generated/googleapis/test/cloudresourcemanager/v1_test.dart index 651b80f..c31e9b5 100644 --- a/generated/googleapis/test/cloudresourcemanager/v1_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterAncestor--; } -buildUnnamed3015() { +buildUnnamed3146() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3015(core.List<api.AuditLogConfig> o) { +checkUnnamed3146(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -87,7 +87,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3015(); + o.auditLogConfigs = buildUnnamed3146(); o.service = "foo"; } buildCounterAuditConfig--; @@ -97,20 +97,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3015(o.auditLogConfigs); + checkUnnamed3146(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3016() { +buildUnnamed3147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3016(core.List<core.String> o) { +checkUnnamed3147(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -121,7 +121,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3016(); + o.exemptedMembers = buildUnnamed3147(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -131,20 +131,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3016(o.exemptedMembers); + checkUnnamed3147(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed3017() { +buildUnnamed3148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3017(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')); @@ -155,8 +155,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed3017(); + o.members = buildUnnamed3148(); o.role = "foo"; } buildCounterBinding--; @@ -166,8 +167,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed3017(o.members); + checkUnnamed3148(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -358,14 +360,14 @@ buildCounterGetAncestryRequest--; } -buildUnnamed3018() { +buildUnnamed3149() { var o = new core.List<api.Ancestor>(); o.add(buildAncestor()); o.add(buildAncestor()); return o; } -checkUnnamed3018(core.List<api.Ancestor> o) { +checkUnnamed3149(core.List<api.Ancestor> o) { unittest.expect(o, unittest.hasLength(2)); checkAncestor(o[0]); checkAncestor(o[1]); @@ -376,7 +378,7 @@ var o = new api.GetAncestryResponse(); buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - o.ancestor = buildUnnamed3018(); + o.ancestor = buildUnnamed3149(); } buildCounterGetAncestryResponse--; return o; @@ -385,7 +387,7 @@ checkGetAncestryResponse(api.GetAncestryResponse o) { buildCounterGetAncestryResponse++; if (buildCounterGetAncestryResponse < 3) { - checkUnnamed3018(o.ancestor); + checkUnnamed3149(o.ancestor); } buildCounterGetAncestryResponse--; } @@ -466,14 +468,14 @@ buildCounterGetPolicyOptions--; } -buildUnnamed3019() { +buildUnnamed3150() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3019(core.List<core.String> o) { +checkUnnamed3150(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -489,7 +491,7 @@ o.origin = "foo"; o.parent = "foo"; o.reason = "foo"; - o.restrictions = buildUnnamed3019(); + o.restrictions = buildUnnamed3150(); } buildCounterLien--; return o; @@ -503,7 +505,7 @@ unittest.expect(o.origin, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.reason, unittest.equals('foo')); - checkUnnamed3019(o.restrictions); + checkUnnamed3150(o.restrictions); } buildCounterLien--; } @@ -530,14 +532,14 @@ buildCounterListAvailableOrgPolicyConstraintsRequest--; } -buildUnnamed3020() { +buildUnnamed3151() { var o = new core.List<api.Constraint>(); o.add(buildConstraint()); o.add(buildConstraint()); return o; } -checkUnnamed3020(core.List<api.Constraint> o) { +checkUnnamed3151(core.List<api.Constraint> o) { unittest.expect(o, unittest.hasLength(2)); checkConstraint(o[0]); checkConstraint(o[1]); @@ -548,7 +550,7 @@ var o = new api.ListAvailableOrgPolicyConstraintsResponse(); buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - o.constraints = buildUnnamed3020(); + o.constraints = buildUnnamed3151(); o.nextPageToken = "foo"; } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -559,7 +561,7 @@ api.ListAvailableOrgPolicyConstraintsResponse o) { buildCounterListAvailableOrgPolicyConstraintsResponse++; if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { - checkUnnamed3020(o.constraints); + checkUnnamed3151(o.constraints); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAvailableOrgPolicyConstraintsResponse--; @@ -586,14 +588,14 @@ buildCounterListConstraint--; } -buildUnnamed3021() { +buildUnnamed3152() { var o = new core.List<api.Lien>(); o.add(buildLien()); o.add(buildLien()); return o; } -checkUnnamed3021(core.List<api.Lien> o) { +checkUnnamed3152(core.List<api.Lien> o) { unittest.expect(o, unittest.hasLength(2)); checkLien(o[0]); checkLien(o[1]); @@ -604,7 +606,7 @@ var o = new api.ListLiensResponse(); buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - o.liens = buildUnnamed3021(); + o.liens = buildUnnamed3152(); o.nextPageToken = "foo"; } buildCounterListLiensResponse--; @@ -614,7 +616,7 @@ checkListLiensResponse(api.ListLiensResponse o) { buildCounterListLiensResponse++; if (buildCounterListLiensResponse < 3) { - checkUnnamed3021(o.liens); + checkUnnamed3152(o.liens); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLiensResponse--; @@ -641,14 +643,14 @@ buildCounterListOrgPoliciesRequest--; } -buildUnnamed3022() { +buildUnnamed3153() { var o = new core.List<api.OrgPolicy>(); o.add(buildOrgPolicy()); o.add(buildOrgPolicy()); return o; } -checkUnnamed3022(core.List<api.OrgPolicy> o) { +checkUnnamed3153(core.List<api.OrgPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkOrgPolicy(o[0]); checkOrgPolicy(o[1]); @@ -660,7 +662,7 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed3022(); + o.policies = buildUnnamed3153(); } buildCounterListOrgPoliciesResponse--; return o; @@ -670,32 +672,32 @@ buildCounterListOrgPoliciesResponse++; if (buildCounterListOrgPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3022(o.policies); + checkUnnamed3153(o.policies); } buildCounterListOrgPoliciesResponse--; } -buildUnnamed3023() { +buildUnnamed3154() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3023(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')); } -buildUnnamed3024() { +buildUnnamed3155() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3024(core.List<core.String> o) { +checkUnnamed3155(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -707,8 +709,8 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { o.allValues = "foo"; - o.allowedValues = buildUnnamed3023(); - o.deniedValues = buildUnnamed3024(); + o.allowedValues = buildUnnamed3154(); + o.deniedValues = buildUnnamed3155(); o.inheritFromParent = true; o.suggestedValue = "foo"; } @@ -720,22 +722,22 @@ buildCounterListPolicy++; if (buildCounterListPolicy < 3) { unittest.expect(o.allValues, unittest.equals('foo')); - checkUnnamed3023(o.allowedValues); - checkUnnamed3024(o.deniedValues); + checkUnnamed3154(o.allowedValues); + checkUnnamed3155(o.deniedValues); unittest.expect(o.inheritFromParent, unittest.isTrue); unittest.expect(o.suggestedValue, unittest.equals('foo')); } buildCounterListPolicy--; } -buildUnnamed3025() { +buildUnnamed3156() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed3025(core.List<api.Project> o) { +checkUnnamed3156(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -747,7 +749,7 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { o.nextPageToken = "foo"; - o.projects = buildUnnamed3025(); + o.projects = buildUnnamed3156(); } buildCounterListProjectsResponse--; return o; @@ -757,12 +759,12 @@ buildCounterListProjectsResponse++; if (buildCounterListProjectsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3025(o.projects); + checkUnnamed3156(o.projects); } buildCounterListProjectsResponse--; } -buildUnnamed3026() { +buildUnnamed3157() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -777,7 +779,7 @@ return o; } -checkUnnamed3026(core.Map<core.String, core.Object> o) { +checkUnnamed3157(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)); @@ -791,7 +793,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3027() { +buildUnnamed3158() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -806,7 +808,7 @@ return o; } -checkUnnamed3027(core.Map<core.String, core.Object> o) { +checkUnnamed3158(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)); @@ -827,9 +829,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3026(); + o.metadata = buildUnnamed3157(); o.name = "foo"; - o.response = buildUnnamed3027(); + o.response = buildUnnamed3158(); } buildCounterOperation--; return o; @@ -840,9 +842,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3026(o.metadata); + checkUnnamed3157(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3027(o.response); + checkUnnamed3158(o.response); } buildCounterOperation--; } @@ -924,27 +926,27 @@ buildCounterOrganizationOwner--; } -buildUnnamed3028() { +buildUnnamed3159() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3028(core.List<api.AuditConfig> o) { +checkUnnamed3159(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3029() { +buildUnnamed3160() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3029(core.List<api.Binding> o) { +checkUnnamed3160(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -955,8 +957,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3028(); - o.bindings = buildUnnamed3029(); + o.auditConfigs = buildUnnamed3159(); + o.bindings = buildUnnamed3160(); o.etag = "foo"; o.version = 42; } @@ -967,22 +969,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3028(o.auditConfigs); - checkUnnamed3029(o.bindings); + checkUnnamed3159(o.auditConfigs); + checkUnnamed3160(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3030() { +buildUnnamed3161() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3030(core.Map<core.String, core.String> o) { +checkUnnamed3161(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')); @@ -994,7 +996,7 @@ buildCounterProject++; if (buildCounterProject < 3) { o.createTime = "foo"; - o.labels = buildUnnamed3030(); + o.labels = buildUnnamed3161(); o.lifecycleState = "foo"; o.name = "foo"; o.parent = buildResourceId(); @@ -1009,7 +1011,7 @@ buildCounterProject++; if (buildCounterProject < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3030(o.labels); + checkUnnamed3161(o.labels); unittest.expect(o.lifecycleState, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkResourceId(o.parent); @@ -1101,14 +1103,14 @@ buildCounterSearchOrganizationsRequest--; } -buildUnnamed3031() { +buildUnnamed3162() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed3031(core.List<api.Organization> o) { +checkUnnamed3162(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); @@ -1120,7 +1122,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { o.nextPageToken = "foo"; - o.organizations = buildUnnamed3031(); + o.organizations = buildUnnamed3162(); } buildCounterSearchOrganizationsResponse--; return o; @@ -1130,7 +1132,7 @@ buildCounterSearchOrganizationsResponse++; if (buildCounterSearchOrganizationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3031(o.organizations); + checkUnnamed3162(o.organizations); } buildCounterSearchOrganizationsResponse--; } @@ -1175,7 +1177,7 @@ buildCounterSetOrgPolicyRequest--; } -buildUnnamed3032() { +buildUnnamed3163() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1190,7 +1192,7 @@ return o; } -checkUnnamed3032(core.Map<core.String, core.Object> o) { +checkUnnamed3163(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)); @@ -1204,17 +1206,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3033() { +buildUnnamed3164() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3032()); - o.add(buildUnnamed3032()); + o.add(buildUnnamed3163()); + o.add(buildUnnamed3163()); return o; } -checkUnnamed3033(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3164(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3032(o[0]); - checkUnnamed3032(o[1]); + checkUnnamed3163(o[0]); + checkUnnamed3163(o[1]); } core.int buildCounterStatus = 0; @@ -1223,7 +1225,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3033(); + o.details = buildUnnamed3164(); o.message = "foo"; } buildCounterStatus--; @@ -1234,20 +1236,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3033(o.details); + checkUnnamed3164(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3034() { +buildUnnamed3165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3034(core.List<core.String> o) { +checkUnnamed3165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1258,7 +1260,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3034(); + o.permissions = buildUnnamed3165(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1267,19 +1269,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3034(o.permissions); + checkUnnamed3165(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3035() { +buildUnnamed3166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3035(core.List<core.String> o) { +checkUnnamed3166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1290,7 +1292,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3035(); + o.permissions = buildUnnamed3166(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1299,7 +1301,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3035(o.permissions); + checkUnnamed3166(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2176,8 +2178,8 @@ var mock = new HttpServerMock(); api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_parent = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2211,9 +2213,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2225,8 +2227,8 @@ res .list( pageToken: arg_pageToken, - pageSize: arg_pageSize, parent: arg_parent, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLiensResponse(response); @@ -3369,8 +3371,8 @@ api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projects; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3403,10 +3405,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3418,8 +3420,8 @@ res .list( filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListProjectsResponse(response);
diff --git a/generated/googleapis/test/cloudresourcemanager/v2_test.dart b/generated/googleapis/test/cloudresourcemanager/v2_test.dart index 4b6f027..5acec11 100644 --- a/generated/googleapis/test/cloudresourcemanager/v2_test.dart +++ b/generated/googleapis/test/cloudresourcemanager/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4488() { +buildUnnamed4833() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed4488(core.List<api.AuditLogConfig> o) { +checkUnnamed4833(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed4488(); + o.auditLogConfigs = buildUnnamed4833(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,20 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed4488(o.auditLogConfigs); + checkUnnamed4833(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed4489() { +buildUnnamed4834() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4489(core.List<core.String> o) { +checkUnnamed4834(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -102,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed4489(); + o.exemptedMembers = buildUnnamed4834(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -112,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed4489(o.exemptedMembers); + checkUnnamed4834(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed4490() { +buildUnnamed4835() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4490(core.List<core.String> o) { +checkUnnamed4835(core.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,8 +136,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed4490(); + o.members = buildUnnamed4835(); o.role = "foo"; } buildCounterBinding--; @@ -147,8 +148,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed4490(o.members); + checkUnnamed4835(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -288,14 +290,14 @@ buildCounterGetPolicyOptions--; } -buildUnnamed4491() { +buildUnnamed4836() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4491(core.List<api.Folder> o) { +checkUnnamed4836(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -306,7 +308,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folders = buildUnnamed4491(); + o.folders = buildUnnamed4836(); o.nextPageToken = "foo"; } buildCounterListFoldersResponse--; @@ -316,7 +318,7 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed4491(o.folders); + checkUnnamed4836(o.folders); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFoldersResponse--; @@ -341,7 +343,7 @@ buildCounterMoveFolderRequest--; } -buildUnnamed4492() { +buildUnnamed4837() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -356,7 +358,7 @@ return o; } -checkUnnamed4492(core.Map<core.String, core.Object> o) { +checkUnnamed4837(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)); @@ -370,7 +372,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4493() { +buildUnnamed4838() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -385,7 +387,7 @@ return o; } -checkUnnamed4493(core.Map<core.String, core.Object> o) { +checkUnnamed4838(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)); @@ -406,9 +408,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4492(); + o.metadata = buildUnnamed4837(); o.name = "foo"; - o.response = buildUnnamed4493(); + o.response = buildUnnamed4838(); } buildCounterOperation--; return o; @@ -419,34 +421,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4492(o.metadata); + checkUnnamed4837(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4493(o.response); + checkUnnamed4838(o.response); } buildCounterOperation--; } -buildUnnamed4494() { +buildUnnamed4839() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed4494(core.List<api.AuditConfig> o) { +checkUnnamed4839(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed4495() { +buildUnnamed4840() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed4495(core.List<api.Binding> o) { +checkUnnamed4840(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -457,8 +459,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed4494(); - o.bindings = buildUnnamed4495(); + o.auditConfigs = buildUnnamed4839(); + o.bindings = buildUnnamed4840(); o.etag = "foo"; o.version = 42; } @@ -469,8 +471,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed4494(o.auditConfigs); - checkUnnamed4495(o.bindings); + checkUnnamed4839(o.auditConfigs); + checkUnnamed4840(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -523,14 +525,14 @@ buildCounterSearchFoldersRequest--; } -buildUnnamed4496() { +buildUnnamed4841() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4496(core.List<api.Folder> o) { +checkUnnamed4841(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -541,7 +543,7 @@ var o = new api.SearchFoldersResponse(); buildCounterSearchFoldersResponse++; if (buildCounterSearchFoldersResponse < 3) { - o.folders = buildUnnamed4496(); + o.folders = buildUnnamed4841(); o.nextPageToken = "foo"; } buildCounterSearchFoldersResponse--; @@ -551,7 +553,7 @@ checkSearchFoldersResponse(api.SearchFoldersResponse o) { buildCounterSearchFoldersResponse++; if (buildCounterSearchFoldersResponse < 3) { - checkUnnamed4496(o.folders); + checkUnnamed4841(o.folders); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchFoldersResponse--; @@ -578,7 +580,7 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed4497() { +buildUnnamed4842() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -593,7 +595,7 @@ return o; } -checkUnnamed4497(core.Map<core.String, core.Object> o) { +checkUnnamed4842(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)); @@ -607,17 +609,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4498() { +buildUnnamed4843() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4497()); - o.add(buildUnnamed4497()); + o.add(buildUnnamed4842()); + o.add(buildUnnamed4842()); return o; } -checkUnnamed4498(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4843(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4497(o[0]); - checkUnnamed4497(o[1]); + checkUnnamed4842(o[0]); + checkUnnamed4842(o[1]); } core.int buildCounterStatus = 0; @@ -626,7 +628,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4498(); + o.details = buildUnnamed4843(); o.message = "foo"; } buildCounterStatus--; @@ -637,20 +639,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4498(o.details); + checkUnnamed4843(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed4499() { +buildUnnamed4844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4499(core.List<core.String> o) { +checkUnnamed4844(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -661,7 +663,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed4499(); + o.permissions = buildUnnamed4844(); } buildCounterTestIamPermissionsRequest--; return o; @@ -670,19 +672,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed4499(o.permissions); + checkUnnamed4844(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed4500() { +buildUnnamed4845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4500(core.List<core.String> o) { +checkUnnamed4845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -693,7 +695,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed4500(); + o.permissions = buildUnnamed4845(); } buildCounterTestIamPermissionsResponse--; return o; @@ -702,7 +704,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed4500(o.permissions); + checkUnnamed4845(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1112,10 +1114,10 @@ var mock = new HttpServerMock(); api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders; - var arg_showDeleted = true; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_showDeleted = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1147,13 +1149,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1164,10 +1166,10 @@ }), true); res .list( - showDeleted: arg_showDeleted, - pageToken: arg_pageToken, pageSize: arg_pageSize, parent: arg_parent, + pageToken: arg_pageToken, + showDeleted: arg_showDeleted, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListFoldersResponse(response);
diff --git a/generated/googleapis/test/cloudscheduler/v1_test.dart b/generated/googleapis/test/cloudscheduler/v1_test.dart index e2bef50..a2c5a8a 100644 --- a/generated/googleapis/test/cloudscheduler/v1_test.dart +++ b/generated/googleapis/test/cloudscheduler/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3926() { +buildUnnamed4125() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3926(core.Map<core.String, core.String> o) { +checkUnnamed4125(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')); @@ -70,7 +70,7 @@ if (buildCounterAppEngineHttpTarget < 3) { o.appEngineRouting = buildAppEngineRouting(); o.body = "foo"; - o.headers = buildUnnamed3926(); + o.headers = buildUnnamed4125(); o.httpMethod = "foo"; o.relativeUri = "foo"; } @@ -83,7 +83,7 @@ if (buildCounterAppEngineHttpTarget < 3) { checkAppEngineRouting(o.appEngineRouting); unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed3926(o.headers); + checkUnnamed4125(o.headers); unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.relativeUri, unittest.equals('foo')); } @@ -130,14 +130,14 @@ buildCounterEmpty--; } -buildUnnamed3927() { +buildUnnamed4126() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3927(core.Map<core.String, core.String> o) { +checkUnnamed4126(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')); @@ -149,7 +149,7 @@ buildCounterHttpTarget++; if (buildCounterHttpTarget < 3) { o.body = "foo"; - o.headers = buildUnnamed3927(); + o.headers = buildUnnamed4126(); o.httpMethod = "foo"; o.oauthToken = buildOAuthToken(); o.oidcToken = buildOidcToken(); @@ -163,7 +163,7 @@ buildCounterHttpTarget++; if (buildCounterHttpTarget < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed3927(o.headers); + checkUnnamed4126(o.headers); unittest.expect(o.httpMethod, unittest.equals('foo')); checkOAuthToken(o.oauthToken); checkOidcToken(o.oidcToken); @@ -217,14 +217,14 @@ buildCounterJob--; } -buildUnnamed3928() { +buildUnnamed4127() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3928(core.List<api.Job> o) { +checkUnnamed4127(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -235,7 +235,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3928(); + o.jobs = buildUnnamed4127(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -245,20 +245,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3928(o.jobs); + checkUnnamed4127(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed3929() { +buildUnnamed4128() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3929(core.List<api.Location> o) { +checkUnnamed4128(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -269,7 +269,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3929(); + o.locations = buildUnnamed4128(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -279,26 +279,26 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3929(o.locations); + checkUnnamed4128(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3930() { +buildUnnamed4129() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3930(core.Map<core.String, core.String> o) { +checkUnnamed4129(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')); } -buildUnnamed3931() { +buildUnnamed4130() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -313,7 +313,7 @@ return o; } -checkUnnamed3931(core.Map<core.String, core.Object> o) { +checkUnnamed4130(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)); @@ -333,9 +333,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed3930(); + o.labels = buildUnnamed4129(); o.locationId = "foo"; - o.metadata = buildUnnamed3931(); + o.metadata = buildUnnamed4130(); o.name = "foo"; } buildCounterLocation--; @@ -346,9 +346,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3930(o.labels); + checkUnnamed4129(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3931(o.metadata); + checkUnnamed4130(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -411,14 +411,14 @@ buildCounterPauseJobRequest--; } -buildUnnamed3932() { +buildUnnamed4131() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3932(core.Map<core.String, core.String> o) { +checkUnnamed4131(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')); @@ -429,9 +429,10 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed3932(); + o.attributes = buildUnnamed4131(); o.data = "foo"; o.messageId = "foo"; + o.orderingKey = "foo"; o.publishTime = "foo"; } buildCounterPubsubMessage--; @@ -441,22 +442,23 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed3932(o.attributes); + checkUnnamed4131(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); + unittest.expect(o.orderingKey, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); } buildCounterPubsubMessage--; } -buildUnnamed3933() { +buildUnnamed4132() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3933(core.Map<core.String, core.String> o) { +checkUnnamed4132(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')); @@ -467,7 +469,7 @@ var o = new api.PubsubTarget(); buildCounterPubsubTarget++; if (buildCounterPubsubTarget < 3) { - o.attributes = buildUnnamed3933(); + o.attributes = buildUnnamed4132(); o.data = "foo"; o.topicName = "foo"; } @@ -478,7 +480,7 @@ checkPubsubTarget(api.PubsubTarget o) { buildCounterPubsubTarget++; if (buildCounterPubsubTarget < 3) { - checkUnnamed3933(o.attributes); + checkUnnamed4132(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.topicName, unittest.equals('foo')); } @@ -542,7 +544,7 @@ buildCounterRunJobRequest--; } -buildUnnamed3934() { +buildUnnamed4133() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -557,7 +559,7 @@ return o; } -checkUnnamed3934(core.Map<core.String, core.Object> o) { +checkUnnamed4133(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)); @@ -571,17 +573,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3935() { +buildUnnamed4134() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3934()); - o.add(buildUnnamed3934()); + o.add(buildUnnamed4133()); + o.add(buildUnnamed4133()); return o; } -checkUnnamed3935(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4134(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3934(o[0]); - checkUnnamed3934(o[1]); + checkUnnamed4133(o[0]); + checkUnnamed4133(o[1]); } core.int buildCounterStatus = 0; @@ -590,7 +592,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3935(); + o.details = buildUnnamed4134(); o.message = "foo"; } buildCounterStatus--; @@ -601,7 +603,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3935(o.details); + checkUnnamed4134(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -802,9 +804,9 @@ api.ProjectsLocationsResourceApi res = new api.CloudschedulerApi(mock).projects.locations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -837,11 +839,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -852,9 +854,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1028,8 +1030,8 @@ api.ProjectsLocationsJobsResourceApi res = new api.CloudschedulerApi(mock).projects.locations.jobs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1062,10 +1064,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1076,8 +1078,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListJobsResponse(response);
diff --git a/generated/googleapis/test/cloudsearch/v1_test.dart b/generated/googleapis/test/cloudsearch/v1_test.dart index 9d5419b..7d03be4 100644 --- a/generated/googleapis/test/cloudsearch/v1_test.dart +++ b/generated/googleapis/test/cloudsearch/v1_test.dart
@@ -107,14 +107,14 @@ buildCounterCheckAccessResponse--; } -buildUnnamed4268() { +buildUnnamed4507() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed4268(core.List<api.Filter> o) { +checkUnnamed4507(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -126,7 +126,7 @@ buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { o.logicOperator = "foo"; - o.subFilters = buildUnnamed4268(); + o.subFilters = buildUnnamed4507(); } buildCounterCompositeFilter--; return o; @@ -136,19 +136,19 @@ buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { unittest.expect(o.logicOperator, unittest.equals('foo')); - checkUnnamed4268(o.subFilters); + checkUnnamed4507(o.subFilters); } buildCounterCompositeFilter--; } -buildUnnamed4269() { +buildUnnamed4508() { var o = new core.List<api.ItemCountByStatus>(); o.add(buildItemCountByStatus()); o.add(buildItemCountByStatus()); return o; } -checkUnnamed4269(core.List<api.ItemCountByStatus> o) { +checkUnnamed4508(core.List<api.ItemCountByStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkItemCountByStatus(o[0]); checkItemCountByStatus(o[1]); @@ -160,7 +160,7 @@ buildCounterCustomerIndexStats++; if (buildCounterCustomerIndexStats < 3) { o.date = buildDate(); - o.itemCountByStatus = buildUnnamed4269(); + o.itemCountByStatus = buildUnnamed4508(); } buildCounterCustomerIndexStats--; return o; @@ -170,19 +170,19 @@ buildCounterCustomerIndexStats++; if (buildCounterCustomerIndexStats < 3) { checkDate(o.date); - checkUnnamed4269(o.itemCountByStatus); + checkUnnamed4508(o.itemCountByStatus); } buildCounterCustomerIndexStats--; } -buildUnnamed4270() { +buildUnnamed4509() { var o = new core.List<api.QueryCountByStatus>(); o.add(buildQueryCountByStatus()); o.add(buildQueryCountByStatus()); return o; } -checkUnnamed4270(core.List<api.QueryCountByStatus> o) { +checkUnnamed4509(core.List<api.QueryCountByStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryCountByStatus(o[0]); checkQueryCountByStatus(o[1]); @@ -194,7 +194,7 @@ buildCounterCustomerQueryStats++; if (buildCounterCustomerQueryStats < 3) { o.date = buildDate(); - o.queryCountByStatus = buildUnnamed4270(); + o.queryCountByStatus = buildUnnamed4509(); } buildCounterCustomerQueryStats--; return o; @@ -204,7 +204,7 @@ buildCounterCustomerQueryStats++; if (buildCounterCustomerQueryStats < 3) { checkDate(o.date); - checkUnnamed4270(o.queryCountByStatus); + checkUnnamed4509(o.queryCountByStatus); } buildCounterCustomerQueryStats--; } @@ -255,40 +255,40 @@ buildCounterCustomerUserStats--; } -buildUnnamed4271() { +buildUnnamed4510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4271(core.List<core.String> o) { +checkUnnamed4510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4272() { +buildUnnamed4511() { var o = new core.List<api.GSuitePrincipal>(); o.add(buildGSuitePrincipal()); o.add(buildGSuitePrincipal()); return o; } -checkUnnamed4272(core.List<api.GSuitePrincipal> o) { +checkUnnamed4511(core.List<api.GSuitePrincipal> o) { unittest.expect(o, unittest.hasLength(2)); checkGSuitePrincipal(o[0]); checkGSuitePrincipal(o[1]); } -buildUnnamed4273() { +buildUnnamed4512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4273(core.List<core.String> o) { +checkUnnamed4512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -302,10 +302,10 @@ o.disableModifications = true; o.disableServing = true; o.displayName = "foo"; - o.indexingServiceAccounts = buildUnnamed4271(); - o.itemsVisibility = buildUnnamed4272(); + o.indexingServiceAccounts = buildUnnamed4510(); + o.itemsVisibility = buildUnnamed4511(); o.name = "foo"; - o.operationIds = buildUnnamed4273(); + o.operationIds = buildUnnamed4512(); o.shortName = "foo"; } buildCounterDataSource--; @@ -318,23 +318,23 @@ unittest.expect(o.disableModifications, unittest.isTrue); unittest.expect(o.disableServing, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4271(o.indexingServiceAccounts); - checkUnnamed4272(o.itemsVisibility); + checkUnnamed4510(o.indexingServiceAccounts); + checkUnnamed4511(o.itemsVisibility); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4273(o.operationIds); + checkUnnamed4512(o.operationIds); unittest.expect(o.shortName, unittest.equals('foo')); } buildCounterDataSource--; } -buildUnnamed4274() { +buildUnnamed4513() { var o = new core.List<api.ItemCountByStatus>(); o.add(buildItemCountByStatus()); o.add(buildItemCountByStatus()); return o; } -checkUnnamed4274(core.List<api.ItemCountByStatus> o) { +checkUnnamed4513(core.List<api.ItemCountByStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkItemCountByStatus(o[0]); checkItemCountByStatus(o[1]); @@ -346,7 +346,7 @@ buildCounterDataSourceIndexStats++; if (buildCounterDataSourceIndexStats < 3) { o.date = buildDate(); - o.itemCountByStatus = buildUnnamed4274(); + o.itemCountByStatus = buildUnnamed4513(); } buildCounterDataSourceIndexStats--; return o; @@ -356,19 +356,19 @@ buildCounterDataSourceIndexStats++; if (buildCounterDataSourceIndexStats < 3) { checkDate(o.date); - checkUnnamed4274(o.itemCountByStatus); + checkUnnamed4513(o.itemCountByStatus); } buildCounterDataSourceIndexStats--; } -buildUnnamed4275() { +buildUnnamed4514() { var o = new core.List<api.FilterOptions>(); o.add(buildFilterOptions()); o.add(buildFilterOptions()); return o; } -checkUnnamed4275(core.List<api.FilterOptions> o) { +checkUnnamed4514(core.List<api.FilterOptions> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterOptions(o[0]); checkFilterOptions(o[1]); @@ -379,7 +379,7 @@ var o = new api.DataSourceRestriction(); buildCounterDataSourceRestriction++; if (buildCounterDataSourceRestriction < 3) { - o.filterOptions = buildUnnamed4275(); + o.filterOptions = buildUnnamed4514(); o.source = buildSource(); } buildCounterDataSourceRestriction--; @@ -389,7 +389,7 @@ checkDataSourceRestriction(api.DataSourceRestriction o) { buildCounterDataSourceRestriction++; if (buildCounterDataSourceRestriction < 3) { - checkUnnamed4275(o.filterOptions); + checkUnnamed4514(o.filterOptions); checkSource(o.source); } buildCounterDataSourceRestriction--; @@ -460,14 +460,14 @@ buildCounterDatePropertyOptions--; } -buildUnnamed4276() { +buildUnnamed4515() { var o = new core.List<api.Date>(); o.add(buildDate()); o.add(buildDate()); return o; } -checkUnnamed4276(core.List<api.Date> o) { +checkUnnamed4515(core.List<api.Date> o) { unittest.expect(o, unittest.hasLength(2)); checkDate(o[0]); checkDate(o[1]); @@ -478,7 +478,7 @@ var o = new api.DateValues(); buildCounterDateValues++; if (buildCounterDateValues < 3) { - o.values = buildUnnamed4276(); + o.values = buildUnnamed4515(); } buildCounterDateValues--; return o; @@ -487,7 +487,7 @@ checkDateValues(api.DateValues o) { buildCounterDateValues++; if (buildCounterDateValues < 3) { - checkUnnamed4276(o.values); + checkUnnamed4515(o.values); } buildCounterDateValues--; } @@ -591,14 +591,14 @@ buildCounterDoublePropertyOptions--; } -buildUnnamed4277() { +buildUnnamed4516() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed4277(core.List<core.double> o) { +checkUnnamed4516(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)); @@ -609,7 +609,7 @@ var o = new api.DoubleValues(); buildCounterDoubleValues++; if (buildCounterDoubleValues < 3) { - o.values = buildUnnamed4277(); + o.values = buildUnnamed4516(); } buildCounterDoubleValues--; return o; @@ -618,7 +618,7 @@ checkDoubleValues(api.DoubleValues o) { buildCounterDoubleValues++; if (buildCounterDoubleValues < 3) { - checkUnnamed4277(o.values); + checkUnnamed4516(o.values); } buildCounterDoubleValues--; } @@ -737,14 +737,14 @@ buildCounterEnumOperatorOptions--; } -buildUnnamed4278() { +buildUnnamed4517() { var o = new core.List<api.EnumValuePair>(); o.add(buildEnumValuePair()); o.add(buildEnumValuePair()); return o; } -checkUnnamed4278(core.List<api.EnumValuePair> o) { +checkUnnamed4517(core.List<api.EnumValuePair> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValuePair(o[0]); checkEnumValuePair(o[1]); @@ -757,7 +757,7 @@ if (buildCounterEnumPropertyOptions < 3) { o.operatorOptions = buildEnumOperatorOptions(); o.orderedRanking = "foo"; - o.possibleValues = buildUnnamed4278(); + o.possibleValues = buildUnnamed4517(); } buildCounterEnumPropertyOptions--; return o; @@ -768,7 +768,7 @@ if (buildCounterEnumPropertyOptions < 3) { checkEnumOperatorOptions(o.operatorOptions); unittest.expect(o.orderedRanking, unittest.equals('foo')); - checkUnnamed4278(o.possibleValues); + checkUnnamed4517(o.possibleValues); } buildCounterEnumPropertyOptions--; } @@ -794,14 +794,14 @@ buildCounterEnumValuePair--; } -buildUnnamed4279() { +buildUnnamed4518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4279(core.List<core.String> o) { +checkUnnamed4518(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -812,7 +812,7 @@ var o = new api.EnumValues(); buildCounterEnumValues++; if (buildCounterEnumValues < 3) { - o.values = buildUnnamed4279(); + o.values = buildUnnamed4518(); } buildCounterEnumValues--; return o; @@ -821,19 +821,19 @@ checkEnumValues(api.EnumValues o) { buildCounterEnumValues++; if (buildCounterEnumValues < 3) { - checkUnnamed4279(o.values); + checkUnnamed4518(o.values); } buildCounterEnumValues--; } -buildUnnamed4280() { +buildUnnamed4519() { var o = new core.List<api.ErrorMessage>(); o.add(buildErrorMessage()); o.add(buildErrorMessage()); return o; } -checkUnnamed4280(core.List<api.ErrorMessage> o) { +checkUnnamed4519(core.List<api.ErrorMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorMessage(o[0]); checkErrorMessage(o[1]); @@ -844,7 +844,7 @@ var o = new api.ErrorInfo(); buildCounterErrorInfo++; if (buildCounterErrorInfo < 3) { - o.errorMessages = buildUnnamed4280(); + o.errorMessages = buildUnnamed4519(); } buildCounterErrorInfo--; return o; @@ -853,7 +853,7 @@ checkErrorInfo(api.ErrorInfo o) { buildCounterErrorInfo++; if (buildCounterErrorInfo < 3) { - checkUnnamed4280(o.errorMessages); + checkUnnamed4519(o.errorMessages); } buildCounterErrorInfo--; } @@ -927,14 +927,14 @@ buildCounterFacetOptions--; } -buildUnnamed4281() { +buildUnnamed4520() { var o = new core.List<api.FacetBucket>(); o.add(buildFacetBucket()); o.add(buildFacetBucket()); return o; } -checkUnnamed4281(core.List<api.FacetBucket> o) { +checkUnnamed4520(core.List<api.FacetBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkFacetBucket(o[0]); checkFacetBucket(o[1]); @@ -945,7 +945,7 @@ var o = new api.FacetResult(); buildCounterFacetResult++; if (buildCounterFacetResult < 3) { - o.buckets = buildUnnamed4281(); + o.buckets = buildUnnamed4520(); o.objectType = "foo"; o.operatorName = "foo"; o.sourceName = "foo"; @@ -957,7 +957,7 @@ checkFacetResult(api.FacetResult o) { buildCounterFacetResult++; if (buildCounterFacetResult < 3) { - checkUnnamed4281(o.buckets); + checkUnnamed4520(o.buckets); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.operatorName, unittest.equals('foo')); unittest.expect(o.sourceName, unittest.equals('foo')); @@ -1072,14 +1072,14 @@ buildCounterGSuitePrincipal--; } -buildUnnamed4282() { +buildUnnamed4521() { var o = new core.List<api.CustomerIndexStats>(); o.add(buildCustomerIndexStats()); o.add(buildCustomerIndexStats()); return o; } -checkUnnamed4282(core.List<api.CustomerIndexStats> o) { +checkUnnamed4521(core.List<api.CustomerIndexStats> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerIndexStats(o[0]); checkCustomerIndexStats(o[1]); @@ -1090,7 +1090,7 @@ var o = new api.GetCustomerIndexStatsResponse(); buildCounterGetCustomerIndexStatsResponse++; if (buildCounterGetCustomerIndexStatsResponse < 3) { - o.stats = buildUnnamed4282(); + o.stats = buildUnnamed4521(); } buildCounterGetCustomerIndexStatsResponse--; return o; @@ -1099,19 +1099,19 @@ checkGetCustomerIndexStatsResponse(api.GetCustomerIndexStatsResponse o) { buildCounterGetCustomerIndexStatsResponse++; if (buildCounterGetCustomerIndexStatsResponse < 3) { - checkUnnamed4282(o.stats); + checkUnnamed4521(o.stats); } buildCounterGetCustomerIndexStatsResponse--; } -buildUnnamed4283() { +buildUnnamed4522() { var o = new core.List<api.CustomerQueryStats>(); o.add(buildCustomerQueryStats()); o.add(buildCustomerQueryStats()); return o; } -checkUnnamed4283(core.List<api.CustomerQueryStats> o) { +checkUnnamed4522(core.List<api.CustomerQueryStats> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerQueryStats(o[0]); checkCustomerQueryStats(o[1]); @@ -1122,7 +1122,7 @@ var o = new api.GetCustomerQueryStatsResponse(); buildCounterGetCustomerQueryStatsResponse++; if (buildCounterGetCustomerQueryStatsResponse < 3) { - o.stats = buildUnnamed4283(); + o.stats = buildUnnamed4522(); } buildCounterGetCustomerQueryStatsResponse--; return o; @@ -1131,19 +1131,19 @@ checkGetCustomerQueryStatsResponse(api.GetCustomerQueryStatsResponse o) { buildCounterGetCustomerQueryStatsResponse++; if (buildCounterGetCustomerQueryStatsResponse < 3) { - checkUnnamed4283(o.stats); + checkUnnamed4522(o.stats); } buildCounterGetCustomerQueryStatsResponse--; } -buildUnnamed4284() { +buildUnnamed4523() { var o = new core.List<api.CustomerSessionStats>(); o.add(buildCustomerSessionStats()); o.add(buildCustomerSessionStats()); return o; } -checkUnnamed4284(core.List<api.CustomerSessionStats> o) { +checkUnnamed4523(core.List<api.CustomerSessionStats> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerSessionStats(o[0]); checkCustomerSessionStats(o[1]); @@ -1154,7 +1154,7 @@ var o = new api.GetCustomerSessionStatsResponse(); buildCounterGetCustomerSessionStatsResponse++; if (buildCounterGetCustomerSessionStatsResponse < 3) { - o.stats = buildUnnamed4284(); + o.stats = buildUnnamed4523(); } buildCounterGetCustomerSessionStatsResponse--; return o; @@ -1163,19 +1163,19 @@ checkGetCustomerSessionStatsResponse(api.GetCustomerSessionStatsResponse o) { buildCounterGetCustomerSessionStatsResponse++; if (buildCounterGetCustomerSessionStatsResponse < 3) { - checkUnnamed4284(o.stats); + checkUnnamed4523(o.stats); } buildCounterGetCustomerSessionStatsResponse--; } -buildUnnamed4285() { +buildUnnamed4524() { var o = new core.List<api.CustomerUserStats>(); o.add(buildCustomerUserStats()); o.add(buildCustomerUserStats()); return o; } -checkUnnamed4285(core.List<api.CustomerUserStats> o) { +checkUnnamed4524(core.List<api.CustomerUserStats> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerUserStats(o[0]); checkCustomerUserStats(o[1]); @@ -1186,7 +1186,7 @@ var o = new api.GetCustomerUserStatsResponse(); buildCounterGetCustomerUserStatsResponse++; if (buildCounterGetCustomerUserStatsResponse < 3) { - o.stats = buildUnnamed4285(); + o.stats = buildUnnamed4524(); } buildCounterGetCustomerUserStatsResponse--; return o; @@ -1195,19 +1195,19 @@ checkGetCustomerUserStatsResponse(api.GetCustomerUserStatsResponse o) { buildCounterGetCustomerUserStatsResponse++; if (buildCounterGetCustomerUserStatsResponse < 3) { - checkUnnamed4285(o.stats); + checkUnnamed4524(o.stats); } buildCounterGetCustomerUserStatsResponse--; } -buildUnnamed4286() { +buildUnnamed4525() { var o = new core.List<api.DataSourceIndexStats>(); o.add(buildDataSourceIndexStats()); o.add(buildDataSourceIndexStats()); return o; } -checkUnnamed4286(core.List<api.DataSourceIndexStats> o) { +checkUnnamed4525(core.List<api.DataSourceIndexStats> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceIndexStats(o[0]); checkDataSourceIndexStats(o[1]); @@ -1218,7 +1218,7 @@ var o = new api.GetDataSourceIndexStatsResponse(); buildCounterGetDataSourceIndexStatsResponse++; if (buildCounterGetDataSourceIndexStatsResponse < 3) { - o.stats = buildUnnamed4286(); + o.stats = buildUnnamed4525(); } buildCounterGetDataSourceIndexStatsResponse--; return o; @@ -1227,19 +1227,19 @@ checkGetDataSourceIndexStatsResponse(api.GetDataSourceIndexStatsResponse o) { buildCounterGetDataSourceIndexStatsResponse++; if (buildCounterGetDataSourceIndexStatsResponse < 3) { - checkUnnamed4286(o.stats); + checkUnnamed4525(o.stats); } buildCounterGetDataSourceIndexStatsResponse--; } -buildUnnamed4287() { +buildUnnamed4526() { var o = new core.List<api.SearchApplicationQueryStats>(); o.add(buildSearchApplicationQueryStats()); o.add(buildSearchApplicationQueryStats()); return o; } -checkUnnamed4287(core.List<api.SearchApplicationQueryStats> o) { +checkUnnamed4526(core.List<api.SearchApplicationQueryStats> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchApplicationQueryStats(o[0]); checkSearchApplicationQueryStats(o[1]); @@ -1250,7 +1250,7 @@ var o = new api.GetSearchApplicationQueryStatsResponse(); buildCounterGetSearchApplicationQueryStatsResponse++; if (buildCounterGetSearchApplicationQueryStatsResponse < 3) { - o.stats = buildUnnamed4287(); + o.stats = buildUnnamed4526(); } buildCounterGetSearchApplicationQueryStatsResponse--; return o; @@ -1260,19 +1260,19 @@ api.GetSearchApplicationQueryStatsResponse o) { buildCounterGetSearchApplicationQueryStatsResponse++; if (buildCounterGetSearchApplicationQueryStatsResponse < 3) { - checkUnnamed4287(o.stats); + checkUnnamed4526(o.stats); } buildCounterGetSearchApplicationQueryStatsResponse--; } -buildUnnamed4288() { +buildUnnamed4527() { var o = new core.List<api.SearchApplicationSessionStats>(); o.add(buildSearchApplicationSessionStats()); o.add(buildSearchApplicationSessionStats()); return o; } -checkUnnamed4288(core.List<api.SearchApplicationSessionStats> o) { +checkUnnamed4527(core.List<api.SearchApplicationSessionStats> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchApplicationSessionStats(o[0]); checkSearchApplicationSessionStats(o[1]); @@ -1283,7 +1283,7 @@ var o = new api.GetSearchApplicationSessionStatsResponse(); buildCounterGetSearchApplicationSessionStatsResponse++; if (buildCounterGetSearchApplicationSessionStatsResponse < 3) { - o.stats = buildUnnamed4288(); + o.stats = buildUnnamed4527(); } buildCounterGetSearchApplicationSessionStatsResponse--; return o; @@ -1293,19 +1293,19 @@ api.GetSearchApplicationSessionStatsResponse o) { buildCounterGetSearchApplicationSessionStatsResponse++; if (buildCounterGetSearchApplicationSessionStatsResponse < 3) { - checkUnnamed4288(o.stats); + checkUnnamed4527(o.stats); } buildCounterGetSearchApplicationSessionStatsResponse--; } -buildUnnamed4289() { +buildUnnamed4528() { var o = new core.List<api.SearchApplicationUserStats>(); o.add(buildSearchApplicationUserStats()); o.add(buildSearchApplicationUserStats()); return o; } -checkUnnamed4289(core.List<api.SearchApplicationUserStats> o) { +checkUnnamed4528(core.List<api.SearchApplicationUserStats> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchApplicationUserStats(o[0]); checkSearchApplicationUserStats(o[1]); @@ -1316,7 +1316,7 @@ var o = new api.GetSearchApplicationUserStatsResponse(); buildCounterGetSearchApplicationUserStatsResponse++; if (buildCounterGetSearchApplicationUserStatsResponse < 3) { - o.stats = buildUnnamed4289(); + o.stats = buildUnnamed4528(); } buildCounterGetSearchApplicationUserStatsResponse--; return o; @@ -1326,7 +1326,7 @@ api.GetSearchApplicationUserStatsResponse o) { buildCounterGetSearchApplicationUserStatsResponse++; if (buildCounterGetSearchApplicationUserStatsResponse < 3) { - checkUnnamed4289(o.stats); + checkUnnamed4528(o.stats); } buildCounterGetSearchApplicationUserStatsResponse--; } @@ -1371,14 +1371,14 @@ buildCounterHtmlPropertyOptions--; } -buildUnnamed4290() { +buildUnnamed4529() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4290(core.List<core.String> o) { +checkUnnamed4529(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1389,7 +1389,7 @@ var o = new api.HtmlValues(); buildCounterHtmlValues++; if (buildCounterHtmlValues < 3) { - o.values = buildUnnamed4290(); + o.values = buildUnnamed4529(); } buildCounterHtmlValues--; return o; @@ -1398,7 +1398,7 @@ checkHtmlValues(api.HtmlValues o) { buildCounterHtmlValues++; if (buildCounterHtmlValues < 3) { - checkUnnamed4290(o.values); + checkUnnamed4529(o.values); } buildCounterHtmlValues--; } @@ -1497,14 +1497,14 @@ buildCounterIntegerPropertyOptions--; } -buildUnnamed4291() { +buildUnnamed4530() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4291(core.List<core.String> o) { +checkUnnamed4530(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1515,7 +1515,7 @@ var o = new api.IntegerValues(); buildCounterIntegerValues++; if (buildCounterIntegerValues < 3) { - o.values = buildUnnamed4291(); + o.values = buildUnnamed4530(); } buildCounterIntegerValues--; return o; @@ -1524,7 +1524,7 @@ checkIntegerValues(api.IntegerValues o) { buildCounterIntegerValues++; if (buildCounterIntegerValues < 3) { - checkUnnamed4291(o.values); + checkUnnamed4530(o.values); } buildCounterIntegerValues--; } @@ -1589,40 +1589,40 @@ buildCounterItem--; } -buildUnnamed4292() { +buildUnnamed4531() { var o = new core.List<api.Principal>(); o.add(buildPrincipal()); o.add(buildPrincipal()); return o; } -checkUnnamed4292(core.List<api.Principal> o) { +checkUnnamed4531(core.List<api.Principal> o) { unittest.expect(o, unittest.hasLength(2)); checkPrincipal(o[0]); checkPrincipal(o[1]); } -buildUnnamed4293() { +buildUnnamed4532() { var o = new core.List<api.Principal>(); o.add(buildPrincipal()); o.add(buildPrincipal()); return o; } -checkUnnamed4293(core.List<api.Principal> o) { +checkUnnamed4532(core.List<api.Principal> o) { unittest.expect(o, unittest.hasLength(2)); checkPrincipal(o[0]); checkPrincipal(o[1]); } -buildUnnamed4294() { +buildUnnamed4533() { var o = new core.List<api.Principal>(); o.add(buildPrincipal()); o.add(buildPrincipal()); return o; } -checkUnnamed4294(core.List<api.Principal> o) { +checkUnnamed4533(core.List<api.Principal> o) { unittest.expect(o, unittest.hasLength(2)); checkPrincipal(o[0]); checkPrincipal(o[1]); @@ -1634,10 +1634,10 @@ buildCounterItemAcl++; if (buildCounterItemAcl < 3) { o.aclInheritanceType = "foo"; - o.deniedReaders = buildUnnamed4292(); + o.deniedReaders = buildUnnamed4531(); o.inheritAclFrom = "foo"; - o.owners = buildUnnamed4293(); - o.readers = buildUnnamed4294(); + o.owners = buildUnnamed4532(); + o.readers = buildUnnamed4533(); } buildCounterItemAcl--; return o; @@ -1647,10 +1647,10 @@ buildCounterItemAcl++; if (buildCounterItemAcl < 3) { unittest.expect(o.aclInheritanceType, unittest.equals('foo')); - checkUnnamed4292(o.deniedReaders); + checkUnnamed4531(o.deniedReaders); unittest.expect(o.inheritAclFrom, unittest.equals('foo')); - checkUnnamed4293(o.owners); - checkUnnamed4294(o.readers); + checkUnnamed4532(o.owners); + checkUnnamed4533(o.readers); } buildCounterItemAcl--; } @@ -1701,27 +1701,27 @@ buildCounterItemCountByStatus--; } -buildUnnamed4295() { +buildUnnamed4534() { var o = new core.List<api.Interaction>(); o.add(buildInteraction()); o.add(buildInteraction()); return o; } -checkUnnamed4295(core.List<api.Interaction> o) { +checkUnnamed4534(core.List<api.Interaction> o) { unittest.expect(o, unittest.hasLength(2)); checkInteraction(o[0]); checkInteraction(o[1]); } -buildUnnamed4296() { +buildUnnamed4535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4296(core.List<core.String> o) { +checkUnnamed4535(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1736,8 +1736,8 @@ o.contentLanguage = "foo"; o.createTime = "foo"; o.hash = "foo"; - o.interactions = buildUnnamed4295(); - o.keywords = buildUnnamed4296(); + o.interactions = buildUnnamed4534(); + o.keywords = buildUnnamed4535(); o.mimeType = "foo"; o.objectType = "foo"; o.searchQualityMetadata = buildSearchQualityMetadata(); @@ -1756,8 +1756,8 @@ unittest.expect(o.contentLanguage, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.hash, unittest.equals('foo')); - checkUnnamed4295(o.interactions); - checkUnnamed4296(o.keywords); + checkUnnamed4534(o.interactions); + checkUnnamed4535(o.keywords); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); checkSearchQualityMetadata(o.searchQualityMetadata); @@ -1768,27 +1768,27 @@ buildCounterItemMetadata--; } -buildUnnamed4297() { +buildUnnamed4536() { var o = new core.List<api.ProcessingError>(); o.add(buildProcessingError()); o.add(buildProcessingError()); return o; } -checkUnnamed4297(core.List<api.ProcessingError> o) { +checkUnnamed4536(core.List<api.ProcessingError> o) { unittest.expect(o, unittest.hasLength(2)); checkProcessingError(o[0]); checkProcessingError(o[1]); } -buildUnnamed4298() { +buildUnnamed4537() { var o = new core.List<api.RepositoryError>(); o.add(buildRepositoryError()); o.add(buildRepositoryError()); return o; } -checkUnnamed4298(core.List<api.RepositoryError> o) { +checkUnnamed4537(core.List<api.RepositoryError> o) { unittest.expect(o, unittest.hasLength(2)); checkRepositoryError(o[0]); checkRepositoryError(o[1]); @@ -1800,8 +1800,8 @@ buildCounterItemStatus++; if (buildCounterItemStatus < 3) { o.code = "foo"; - o.processingErrors = buildUnnamed4297(); - o.repositoryErrors = buildUnnamed4298(); + o.processingErrors = buildUnnamed4536(); + o.repositoryErrors = buildUnnamed4537(); } buildCounterItemStatus--; return o; @@ -1811,8 +1811,8 @@ buildCounterItemStatus++; if (buildCounterItemStatus < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed4297(o.processingErrors); - checkUnnamed4298(o.repositoryErrors); + checkUnnamed4536(o.processingErrors); + checkUnnamed4537(o.repositoryErrors); } buildCounterItemStatus--; } @@ -1838,14 +1838,14 @@ buildCounterItemStructuredData--; } -buildUnnamed4299() { +buildUnnamed4538() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed4299(core.List<api.DataSource> o) { +checkUnnamed4538(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -1857,7 +1857,7 @@ buildCounterListDataSourceResponse++; if (buildCounterListDataSourceResponse < 3) { o.nextPageToken = "foo"; - o.sources = buildUnnamed4299(); + o.sources = buildUnnamed4538(); } buildCounterListDataSourceResponse--; return o; @@ -1867,19 +1867,19 @@ buildCounterListDataSourceResponse++; if (buildCounterListDataSourceResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4299(o.sources); + checkUnnamed4538(o.sources); } buildCounterListDataSourceResponse--; } -buildUnnamed4300() { +buildUnnamed4539() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4300(core.List<core.String> o) { +checkUnnamed4539(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1890,7 +1890,7 @@ var o = new api.ListItemNamesForUnmappedIdentityResponse(); buildCounterListItemNamesForUnmappedIdentityResponse++; if (buildCounterListItemNamesForUnmappedIdentityResponse < 3) { - o.itemNames = buildUnnamed4300(); + o.itemNames = buildUnnamed4539(); o.nextPageToken = "foo"; } buildCounterListItemNamesForUnmappedIdentityResponse--; @@ -1901,20 +1901,20 @@ api.ListItemNamesForUnmappedIdentityResponse o) { buildCounterListItemNamesForUnmappedIdentityResponse++; if (buildCounterListItemNamesForUnmappedIdentityResponse < 3) { - checkUnnamed4300(o.itemNames); + checkUnnamed4539(o.itemNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListItemNamesForUnmappedIdentityResponse--; } -buildUnnamed4301() { +buildUnnamed4540() { var o = new core.List<api.Item>(); o.add(buildItem()); o.add(buildItem()); return o; } -checkUnnamed4301(core.List<api.Item> o) { +checkUnnamed4540(core.List<api.Item> o) { unittest.expect(o, unittest.hasLength(2)); checkItem(o[0]); checkItem(o[1]); @@ -1925,7 +1925,7 @@ var o = new api.ListItemsResponse(); buildCounterListItemsResponse++; if (buildCounterListItemsResponse < 3) { - o.items = buildUnnamed4301(); + o.items = buildUnnamed4540(); o.nextPageToken = "foo"; } buildCounterListItemsResponse--; @@ -1935,20 +1935,54 @@ checkListItemsResponse(api.ListItemsResponse o) { buildCounterListItemsResponse++; if (buildCounterListItemsResponse < 3) { - checkUnnamed4301(o.items); + checkUnnamed4540(o.items); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListItemsResponse--; } -buildUnnamed4302() { +buildUnnamed4541() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed4541(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 = buildUnnamed4541(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4541(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed4542() { var o = new core.List<api.QuerySource>(); o.add(buildQuerySource()); o.add(buildQuerySource()); return o; } -checkUnnamed4302(core.List<api.QuerySource> o) { +checkUnnamed4542(core.List<api.QuerySource> o) { unittest.expect(o, unittest.hasLength(2)); checkQuerySource(o[0]); checkQuerySource(o[1]); @@ -1960,7 +1994,7 @@ buildCounterListQuerySourcesResponse++; if (buildCounterListQuerySourcesResponse < 3) { o.nextPageToken = "foo"; - o.sources = buildUnnamed4302(); + o.sources = buildUnnamed4542(); } buildCounterListQuerySourcesResponse--; return o; @@ -1970,19 +2004,19 @@ buildCounterListQuerySourcesResponse++; if (buildCounterListQuerySourcesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4302(o.sources); + checkUnnamed4542(o.sources); } buildCounterListQuerySourcesResponse--; } -buildUnnamed4303() { +buildUnnamed4543() { var o = new core.List<api.SearchApplication>(); o.add(buildSearchApplication()); o.add(buildSearchApplication()); return o; } -checkUnnamed4303(core.List<api.SearchApplication> o) { +checkUnnamed4543(core.List<api.SearchApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchApplication(o[0]); checkSearchApplication(o[1]); @@ -1994,7 +2028,7 @@ buildCounterListSearchApplicationsResponse++; if (buildCounterListSearchApplicationsResponse < 3) { o.nextPageToken = "foo"; - o.searchApplications = buildUnnamed4303(); + o.searchApplications = buildUnnamed4543(); } buildCounterListSearchApplicationsResponse--; return o; @@ -2004,19 +2038,19 @@ buildCounterListSearchApplicationsResponse++; if (buildCounterListSearchApplicationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4303(o.searchApplications); + checkUnnamed4543(o.searchApplications); } buildCounterListSearchApplicationsResponse--; } -buildUnnamed4304() { +buildUnnamed4544() { var o = new core.List<api.UnmappedIdentity>(); o.add(buildUnmappedIdentity()); o.add(buildUnmappedIdentity()); return o; } -checkUnnamed4304(core.List<api.UnmappedIdentity> o) { +checkUnnamed4544(core.List<api.UnmappedIdentity> o) { unittest.expect(o, unittest.hasLength(2)); checkUnmappedIdentity(o[0]); checkUnmappedIdentity(o[1]); @@ -2028,7 +2062,7 @@ buildCounterListUnmappedIdentitiesResponse++; if (buildCounterListUnmappedIdentitiesResponse < 3) { o.nextPageToken = "foo"; - o.unmappedIdentities = buildUnnamed4304(); + o.unmappedIdentities = buildUnnamed4544(); } buildCounterListUnmappedIdentitiesResponse--; return o; @@ -2038,7 +2072,7 @@ buildCounterListUnmappedIdentitiesResponse++; if (buildCounterListUnmappedIdentitiesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4304(o.unmappedIdentities); + checkUnnamed4544(o.unmappedIdentities); } buildCounterListUnmappedIdentitiesResponse--; } @@ -2083,14 +2117,14 @@ buildCounterMedia--; } -buildUnnamed4305() { +buildUnnamed4545() { var o = new core.List<api.NamedProperty>(); o.add(buildNamedProperty()); o.add(buildNamedProperty()); return o; } -checkUnnamed4305(core.List<api.NamedProperty> o) { +checkUnnamed4545(core.List<api.NamedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedProperty(o[0]); checkNamedProperty(o[1]); @@ -2103,7 +2137,7 @@ if (buildCounterMetadata < 3) { o.createTime = "foo"; o.displayOptions = buildResultDisplayMetadata(); - o.fields = buildUnnamed4305(); + o.fields = buildUnnamed4545(); o.mimeType = "foo"; o.objectType = "foo"; o.owner = buildPerson(); @@ -2119,7 +2153,7 @@ if (buildCounterMetadata < 3) { unittest.expect(o.createTime, unittest.equals('foo')); checkResultDisplayMetadata(o.displayOptions); - checkUnnamed4305(o.fields); + checkUnnamed4545(o.fields); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); checkPerson(o.owner); @@ -2129,14 +2163,14 @@ buildCounterMetadata--; } -buildUnnamed4306() { +buildUnnamed4546() { var o = new core.List<api.DisplayedProperty>(); o.add(buildDisplayedProperty()); o.add(buildDisplayedProperty()); return o; } -checkUnnamed4306(core.List<api.DisplayedProperty> o) { +checkUnnamed4546(core.List<api.DisplayedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkDisplayedProperty(o[0]); checkDisplayedProperty(o[1]); @@ -2147,7 +2181,7 @@ var o = new api.Metaline(); buildCounterMetaline++; if (buildCounterMetaline < 3) { - o.properties = buildUnnamed4306(); + o.properties = buildUnnamed4546(); } buildCounterMetaline--; return o; @@ -2156,7 +2190,7 @@ checkMetaline(api.Metaline o) { buildCounterMetaline++; if (buildCounterMetaline < 3) { - checkUnnamed4306(o.properties); + checkUnnamed4546(o.properties); } buildCounterMetaline--; } @@ -2217,14 +2251,14 @@ buildCounterNamedProperty--; } -buildUnnamed4307() { +buildUnnamed4547() { var o = new core.List<api.PropertyDefinition>(); o.add(buildPropertyDefinition()); o.add(buildPropertyDefinition()); return o; } -checkUnnamed4307(core.List<api.PropertyDefinition> o) { +checkUnnamed4547(core.List<api.PropertyDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyDefinition(o[0]); checkPropertyDefinition(o[1]); @@ -2237,7 +2271,7 @@ if (buildCounterObjectDefinition < 3) { o.name = "foo"; o.options = buildObjectOptions(); - o.propertyDefinitions = buildUnnamed4307(); + o.propertyDefinitions = buildUnnamed4547(); } buildCounterObjectDefinition--; return o; @@ -2248,19 +2282,19 @@ if (buildCounterObjectDefinition < 3) { unittest.expect(o.name, unittest.equals('foo')); checkObjectOptions(o.options); - checkUnnamed4307(o.propertyDefinitions); + checkUnnamed4547(o.propertyDefinitions); } buildCounterObjectDefinition--; } -buildUnnamed4308() { +buildUnnamed4548() { var o = new core.List<api.Metaline>(); o.add(buildMetaline()); o.add(buildMetaline()); return o; } -checkUnnamed4308(core.List<api.Metaline> o) { +checkUnnamed4548(core.List<api.Metaline> o) { unittest.expect(o, unittest.hasLength(2)); checkMetaline(o[0]); checkMetaline(o[1]); @@ -2271,7 +2305,7 @@ var o = new api.ObjectDisplayOptions(); buildCounterObjectDisplayOptions++; if (buildCounterObjectDisplayOptions < 3) { - o.metalines = buildUnnamed4308(); + o.metalines = buildUnnamed4548(); o.objectDisplayLabel = "foo"; } buildCounterObjectDisplayOptions--; @@ -2281,7 +2315,7 @@ checkObjectDisplayOptions(api.ObjectDisplayOptions o) { buildCounterObjectDisplayOptions++; if (buildCounterObjectDisplayOptions < 3) { - checkUnnamed4308(o.metalines); + checkUnnamed4548(o.metalines); unittest.expect(o.objectDisplayLabel, unittest.equals('foo')); } buildCounterObjectDisplayOptions--; @@ -2308,14 +2342,14 @@ buildCounterObjectOptions--; } -buildUnnamed4309() { +buildUnnamed4549() { var o = new core.List<api.PropertyDefinition>(); o.add(buildPropertyDefinition()); o.add(buildPropertyDefinition()); return o; } -checkUnnamed4309(core.List<api.PropertyDefinition> o) { +checkUnnamed4549(core.List<api.PropertyDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyDefinition(o[0]); checkPropertyDefinition(o[1]); @@ -2326,7 +2360,7 @@ var o = new api.ObjectPropertyOptions(); buildCounterObjectPropertyOptions++; if (buildCounterObjectPropertyOptions < 3) { - o.subobjectProperties = buildUnnamed4309(); + o.subobjectProperties = buildUnnamed4549(); } buildCounterObjectPropertyOptions--; return o; @@ -2335,19 +2369,19 @@ checkObjectPropertyOptions(api.ObjectPropertyOptions o) { buildCounterObjectPropertyOptions++; if (buildCounterObjectPropertyOptions < 3) { - checkUnnamed4309(o.subobjectProperties); + checkUnnamed4549(o.subobjectProperties); } buildCounterObjectPropertyOptions--; } -buildUnnamed4310() { +buildUnnamed4550() { var o = new core.List<api.StructuredDataObject>(); o.add(buildStructuredDataObject()); o.add(buildStructuredDataObject()); return o; } -checkUnnamed4310(core.List<api.StructuredDataObject> o) { +checkUnnamed4550(core.List<api.StructuredDataObject> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuredDataObject(o[0]); checkStructuredDataObject(o[1]); @@ -2358,7 +2392,7 @@ var o = new api.ObjectValues(); buildCounterObjectValues++; if (buildCounterObjectValues < 3) { - o.values = buildUnnamed4310(); + o.values = buildUnnamed4550(); } buildCounterObjectValues--; return o; @@ -2367,12 +2401,12 @@ checkObjectValues(api.ObjectValues o) { buildCounterObjectValues++; if (buildCounterObjectValues < 3) { - checkUnnamed4310(o.values); + checkUnnamed4550(o.values); } buildCounterObjectValues--; } -buildUnnamed4311() { +buildUnnamed4551() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2387,7 +2421,7 @@ return o; } -checkUnnamed4311(core.Map<core.String, core.Object> o) { +checkUnnamed4551(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)); @@ -2401,7 +2435,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4312() { +buildUnnamed4552() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2416,7 +2450,7 @@ return o; } -checkUnnamed4312(core.Map<core.String, core.Object> o) { +checkUnnamed4552(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)); @@ -2437,9 +2471,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4311(); + o.metadata = buildUnnamed4551(); o.name = "foo"; - o.response = buildUnnamed4312(); + o.response = buildUnnamed4552(); } buildCounterOperation--; return o; @@ -2450,9 +2484,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4311(o.metadata); + checkUnnamed4551(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4312(o.response); + checkUnnamed4552(o.response); } buildCounterOperation--; } @@ -2476,40 +2510,40 @@ buildCounterPeopleSuggestion--; } -buildUnnamed4313() { +buildUnnamed4553() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed4313(core.List<api.EmailAddress> o) { +checkUnnamed4553(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed4314() { +buildUnnamed4554() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed4314(core.List<api.Name> o) { +checkUnnamed4554(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed4315() { +buildUnnamed4555() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed4315(core.List<api.Photo> o) { +checkUnnamed4555(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); @@ -2520,11 +2554,11 @@ var o = new api.Person(); buildCounterPerson++; if (buildCounterPerson < 3) { - o.emailAddresses = buildUnnamed4313(); + o.emailAddresses = buildUnnamed4553(); o.name = "foo"; o.obfuscatedId = "foo"; - o.personNames = buildUnnamed4314(); - o.photos = buildUnnamed4315(); + o.personNames = buildUnnamed4554(); + o.photos = buildUnnamed4555(); } buildCounterPerson--; return o; @@ -2533,11 +2567,11 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed4313(o.emailAddresses); + checkUnnamed4553(o.emailAddresses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.obfuscatedId, unittest.equals('foo')); - checkUnnamed4314(o.personNames); - checkUnnamed4315(o.photos); + checkUnnamed4554(o.personNames); + checkUnnamed4555(o.photos); } buildCounterPerson--; } @@ -2561,14 +2595,14 @@ buildCounterPhoto--; } -buildUnnamed4316() { +buildUnnamed4556() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4316(core.List<core.String> o) { +checkUnnamed4556(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2583,7 +2617,7 @@ o.debugOptions = buildDebugOptions(); o.limit = 42; o.queue = "foo"; - o.statusCodes = buildUnnamed4316(); + o.statusCodes = buildUnnamed4556(); } buildCounterPollItemsRequest--; return o; @@ -2596,19 +2630,19 @@ checkDebugOptions(o.debugOptions); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.queue, unittest.equals('foo')); - checkUnnamed4316(o.statusCodes); + checkUnnamed4556(o.statusCodes); } buildCounterPollItemsRequest--; } -buildUnnamed4317() { +buildUnnamed4557() { var o = new core.List<api.Item>(); o.add(buildItem()); o.add(buildItem()); return o; } -checkUnnamed4317(core.List<api.Item> o) { +checkUnnamed4557(core.List<api.Item> o) { unittest.expect(o, unittest.hasLength(2)); checkItem(o[0]); checkItem(o[1]); @@ -2619,7 +2653,7 @@ var o = new api.PollItemsResponse(); buildCounterPollItemsResponse++; if (buildCounterPollItemsResponse < 3) { - o.items = buildUnnamed4317(); + o.items = buildUnnamed4557(); } buildCounterPollItemsResponse--; return o; @@ -2628,7 +2662,7 @@ checkPollItemsResponse(api.PollItemsResponse o) { buildCounterPollItemsResponse++; if (buildCounterPollItemsResponse < 3) { - checkUnnamed4317(o.items); + checkUnnamed4557(o.items); } buildCounterPollItemsResponse--; } @@ -2656,14 +2690,14 @@ buildCounterPrincipal--; } -buildUnnamed4318() { +buildUnnamed4558() { var o = new core.List<api.FieldViolation>(); o.add(buildFieldViolation()); o.add(buildFieldViolation()); return o; } -checkUnnamed4318(core.List<api.FieldViolation> o) { +checkUnnamed4558(core.List<api.FieldViolation> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldViolation(o[0]); checkFieldViolation(o[1]); @@ -2676,7 +2710,7 @@ if (buildCounterProcessingError < 3) { o.code = "foo"; o.errorMessage = "foo"; - o.fieldViolations = buildUnnamed4318(); + o.fieldViolations = buildUnnamed4558(); } buildCounterProcessingError--; return o; @@ -2687,7 +2721,7 @@ if (buildCounterProcessingError < 3) { unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.errorMessage, unittest.equals('foo')); - checkUnnamed4318(o.fieldViolations); + checkUnnamed4558(o.fieldViolations); } buildCounterProcessingError--; } @@ -2900,14 +2934,14 @@ buildCounterQueryItem--; } -buildUnnamed4319() { +buildUnnamed4559() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4319(core.List<core.String> o) { +checkUnnamed4559(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2919,7 +2953,7 @@ buildCounterQueryOperator++; if (buildCounterQueryOperator < 3) { o.displayName = "foo"; - o.enumValues = buildUnnamed4319(); + o.enumValues = buildUnnamed4559(); o.greaterThanOperatorName = "foo"; o.isFacetable = true; o.isRepeatable = true; @@ -2939,7 +2973,7 @@ buildCounterQueryOperator++; if (buildCounterQueryOperator < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4319(o.enumValues); + checkUnnamed4559(o.enumValues); unittest.expect(o.greaterThanOperatorName, unittest.equals('foo')); unittest.expect(o.isFacetable, unittest.isTrue); unittest.expect(o.isRepeatable, unittest.isTrue); @@ -2954,14 +2988,14 @@ buildCounterQueryOperator--; } -buildUnnamed4320() { +buildUnnamed4560() { var o = new core.List<api.QueryOperator>(); o.add(buildQueryOperator()); o.add(buildQueryOperator()); return o; } -checkUnnamed4320(core.List<api.QueryOperator> o) { +checkUnnamed4560(core.List<api.QueryOperator> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryOperator(o[0]); checkQueryOperator(o[1]); @@ -2973,7 +3007,7 @@ buildCounterQuerySource++; if (buildCounterQuerySource < 3) { o.displayName = "foo"; - o.operators = buildUnnamed4320(); + o.operators = buildUnnamed4560(); o.shortName = "foo"; o.source = buildSource(); } @@ -2985,7 +3019,7 @@ buildCounterQuerySource++; if (buildCounterQuerySource < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4320(o.operators); + checkUnnamed4560(o.operators); unittest.expect(o.shortName, unittest.equals('foo')); checkSource(o.source); } @@ -3120,14 +3154,14 @@ buildCounterRestrictItem--; } -buildUnnamed4321() { +buildUnnamed4561() { var o = new core.List<api.SourceResultCount>(); o.add(buildSourceResultCount()); o.add(buildSourceResultCount()); return o; } -checkUnnamed4321(core.List<api.SourceResultCount> o) { +checkUnnamed4561(core.List<api.SourceResultCount> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceResultCount(o[0]); checkSourceResultCount(o[1]); @@ -3138,7 +3172,7 @@ var o = new api.ResultCounts(); buildCounterResultCounts++; if (buildCounterResultCounts < 3) { - o.sourceResultCounts = buildUnnamed4321(); + o.sourceResultCounts = buildUnnamed4561(); } buildCounterResultCounts--; return o; @@ -3147,7 +3181,7 @@ checkResultCounts(api.ResultCounts o) { buildCounterResultCounts++; if (buildCounterResultCounts < 3) { - checkUnnamed4321(o.sourceResultCounts); + checkUnnamed4561(o.sourceResultCounts); } buildCounterResultCounts--; } @@ -3194,14 +3228,14 @@ buildCounterResultDisplayField--; } -buildUnnamed4322() { +buildUnnamed4562() { var o = new core.List<api.ResultDisplayField>(); o.add(buildResultDisplayField()); o.add(buildResultDisplayField()); return o; } -checkUnnamed4322(core.List<api.ResultDisplayField> o) { +checkUnnamed4562(core.List<api.ResultDisplayField> o) { unittest.expect(o, unittest.hasLength(2)); checkResultDisplayField(o[0]); checkResultDisplayField(o[1]); @@ -3212,7 +3246,7 @@ var o = new api.ResultDisplayLine(); buildCounterResultDisplayLine++; if (buildCounterResultDisplayLine < 3) { - o.fields = buildUnnamed4322(); + o.fields = buildUnnamed4562(); } buildCounterResultDisplayLine--; return o; @@ -3221,19 +3255,19 @@ checkResultDisplayLine(api.ResultDisplayLine o) { buildCounterResultDisplayLine++; if (buildCounterResultDisplayLine < 3) { - checkUnnamed4322(o.fields); + checkUnnamed4562(o.fields); } buildCounterResultDisplayLine--; } -buildUnnamed4323() { +buildUnnamed4563() { var o = new core.List<api.ResultDisplayLine>(); o.add(buildResultDisplayLine()); o.add(buildResultDisplayLine()); return o; } -checkUnnamed4323(core.List<api.ResultDisplayLine> o) { +checkUnnamed4563(core.List<api.ResultDisplayLine> o) { unittest.expect(o, unittest.hasLength(2)); checkResultDisplayLine(o[0]); checkResultDisplayLine(o[1]); @@ -3244,7 +3278,7 @@ var o = new api.ResultDisplayMetadata(); buildCounterResultDisplayMetadata++; if (buildCounterResultDisplayMetadata < 3) { - o.metalines = buildUnnamed4323(); + o.metalines = buildUnnamed4563(); o.objectTypeLabel = "foo"; } buildCounterResultDisplayMetadata--; @@ -3254,7 +3288,7 @@ checkResultDisplayMetadata(api.ResultDisplayMetadata o) { buildCounterResultDisplayMetadata++; if (buildCounterResultDisplayMetadata < 3) { - checkUnnamed4323(o.metalines); + checkUnnamed4563(o.metalines); unittest.expect(o.objectTypeLabel, unittest.equals('foo')); } buildCounterResultDisplayMetadata--; @@ -3279,27 +3313,27 @@ buildCounterRetrievalImportance--; } -buildUnnamed4324() { +buildUnnamed4564() { var o = new core.List<api.ObjectDefinition>(); o.add(buildObjectDefinition()); o.add(buildObjectDefinition()); return o; } -checkUnnamed4324(core.List<api.ObjectDefinition> o) { +checkUnnamed4564(core.List<api.ObjectDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectDefinition(o[0]); checkObjectDefinition(o[1]); } -buildUnnamed4325() { +buildUnnamed4565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4325(core.List<core.String> o) { +checkUnnamed4565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3310,8 +3344,8 @@ var o = new api.Schema(); buildCounterSchema++; if (buildCounterSchema < 3) { - o.objectDefinitions = buildUnnamed4324(); - o.operationIds = buildUnnamed4325(); + o.objectDefinitions = buildUnnamed4564(); + o.operationIds = buildUnnamed4565(); } buildCounterSchema--; return o; @@ -3320,8 +3354,8 @@ checkSchema(api.Schema o) { buildCounterSchema++; if (buildCounterSchema < 3) { - checkUnnamed4324(o.objectDefinitions); - checkUnnamed4325(o.operationIds); + checkUnnamed4564(o.objectDefinitions); + checkUnnamed4565(o.operationIds); } buildCounterSchema--; } @@ -3347,53 +3381,53 @@ buildCounterScoringConfig--; } -buildUnnamed4326() { +buildUnnamed4566() { var o = new core.List<api.DataSourceRestriction>(); o.add(buildDataSourceRestriction()); o.add(buildDataSourceRestriction()); return o; } -checkUnnamed4326(core.List<api.DataSourceRestriction> o) { +checkUnnamed4566(core.List<api.DataSourceRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceRestriction(o[0]); checkDataSourceRestriction(o[1]); } -buildUnnamed4327() { +buildUnnamed4567() { var o = new core.List<api.FacetOptions>(); o.add(buildFacetOptions()); o.add(buildFacetOptions()); return o; } -checkUnnamed4327(core.List<api.FacetOptions> o) { +checkUnnamed4567(core.List<api.FacetOptions> o) { unittest.expect(o, unittest.hasLength(2)); checkFacetOptions(o[0]); checkFacetOptions(o[1]); } -buildUnnamed4328() { +buildUnnamed4568() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4328(core.List<core.String> o) { +checkUnnamed4568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4329() { +buildUnnamed4569() { var o = new core.List<api.SourceConfig>(); o.add(buildSourceConfig()); o.add(buildSourceConfig()); return o; } -checkUnnamed4329(core.List<api.SourceConfig> o) { +checkUnnamed4569(core.List<api.SourceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceConfig(o[0]); checkSourceConfig(o[1]); @@ -3404,14 +3438,14 @@ var o = new api.SearchApplication(); buildCounterSearchApplication++; if (buildCounterSearchApplication < 3) { - o.dataSourceRestrictions = buildUnnamed4326(); - o.defaultFacetOptions = buildUnnamed4327(); + o.dataSourceRestrictions = buildUnnamed4566(); + o.defaultFacetOptions = buildUnnamed4567(); o.defaultSortOptions = buildSortOptions(); o.displayName = "foo"; o.name = "foo"; - o.operationIds = buildUnnamed4328(); + o.operationIds = buildUnnamed4568(); o.scoringConfig = buildScoringConfig(); - o.sourceConfig = buildUnnamed4329(); + o.sourceConfig = buildUnnamed4569(); } buildCounterSearchApplication--; return o; @@ -3420,26 +3454,26 @@ checkSearchApplication(api.SearchApplication o) { buildCounterSearchApplication++; if (buildCounterSearchApplication < 3) { - checkUnnamed4326(o.dataSourceRestrictions); - checkUnnamed4327(o.defaultFacetOptions); + checkUnnamed4566(o.dataSourceRestrictions); + checkUnnamed4567(o.defaultFacetOptions); checkSortOptions(o.defaultSortOptions); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4328(o.operationIds); + checkUnnamed4568(o.operationIds); checkScoringConfig(o.scoringConfig); - checkUnnamed4329(o.sourceConfig); + checkUnnamed4569(o.sourceConfig); } buildCounterSearchApplication--; } -buildUnnamed4330() { +buildUnnamed4570() { var o = new core.List<api.QueryCountByStatus>(); o.add(buildQueryCountByStatus()); o.add(buildQueryCountByStatus()); return o; } -checkUnnamed4330(core.List<api.QueryCountByStatus> o) { +checkUnnamed4570(core.List<api.QueryCountByStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryCountByStatus(o[0]); checkQueryCountByStatus(o[1]); @@ -3451,7 +3485,7 @@ buildCounterSearchApplicationQueryStats++; if (buildCounterSearchApplicationQueryStats < 3) { o.date = buildDate(); - o.queryCountByStatus = buildUnnamed4330(); + o.queryCountByStatus = buildUnnamed4570(); } buildCounterSearchApplicationQueryStats--; return o; @@ -3461,7 +3495,7 @@ buildCounterSearchApplicationQueryStats++; if (buildCounterSearchApplicationQueryStats < 3) { checkDate(o.date); - checkUnnamed4330(o.queryCountByStatus); + checkUnnamed4570(o.queryCountByStatus); } buildCounterSearchApplicationQueryStats--; } @@ -3535,14 +3569,14 @@ buildCounterSearchItemsByViewUrlRequest--; } -buildUnnamed4331() { +buildUnnamed4571() { var o = new core.List<api.Item>(); o.add(buildItem()); o.add(buildItem()); return o; } -checkUnnamed4331(core.List<api.Item> o) { +checkUnnamed4571(core.List<api.Item> o) { unittest.expect(o, unittest.hasLength(2)); checkItem(o[0]); checkItem(o[1]); @@ -3553,7 +3587,7 @@ var o = new api.SearchItemsByViewUrlResponse(); buildCounterSearchItemsByViewUrlResponse++; if (buildCounterSearchItemsByViewUrlResponse < 3) { - o.items = buildUnnamed4331(); + o.items = buildUnnamed4571(); o.nextPageToken = "foo"; } buildCounterSearchItemsByViewUrlResponse--; @@ -3563,7 +3597,7 @@ checkSearchItemsByViewUrlResponse(api.SearchItemsByViewUrlResponse o) { buildCounterSearchItemsByViewUrlResponse++; if (buildCounterSearchItemsByViewUrlResponse < 3) { - checkUnnamed4331(o.items); + checkUnnamed4571(o.items); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSearchItemsByViewUrlResponse--; @@ -3588,27 +3622,27 @@ buildCounterSearchQualityMetadata--; } -buildUnnamed4332() { +buildUnnamed4572() { var o = new core.List<api.DataSourceRestriction>(); o.add(buildDataSourceRestriction()); o.add(buildDataSourceRestriction()); return o; } -checkUnnamed4332(core.List<api.DataSourceRestriction> o) { +checkUnnamed4572(core.List<api.DataSourceRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceRestriction(o[0]); checkDataSourceRestriction(o[1]); } -buildUnnamed4333() { +buildUnnamed4573() { var o = new core.List<api.FacetOptions>(); o.add(buildFacetOptions()); o.add(buildFacetOptions()); return o; } -checkUnnamed4333(core.List<api.FacetOptions> o) { +checkUnnamed4573(core.List<api.FacetOptions> o) { unittest.expect(o, unittest.hasLength(2)); checkFacetOptions(o[0]); checkFacetOptions(o[1]); @@ -3619,8 +3653,8 @@ var o = new api.SearchRequest(); buildCounterSearchRequest++; if (buildCounterSearchRequest < 3) { - o.dataSourceRestrictions = buildUnnamed4332(); - o.facetOptions = buildUnnamed4333(); + o.dataSourceRestrictions = buildUnnamed4572(); + o.facetOptions = buildUnnamed4573(); o.pageSize = 42; o.query = "foo"; o.queryInterpretationOptions = buildQueryInterpretationOptions(); @@ -3635,8 +3669,8 @@ checkSearchRequest(api.SearchRequest o) { buildCounterSearchRequest++; if (buildCounterSearchRequest < 3) { - checkUnnamed4332(o.dataSourceRestrictions); - checkUnnamed4333(o.facetOptions); + checkUnnamed4572(o.dataSourceRestrictions); + checkUnnamed4573(o.facetOptions); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.query, unittest.equals('foo')); checkQueryInterpretationOptions(o.queryInterpretationOptions); @@ -3647,53 +3681,53 @@ buildCounterSearchRequest--; } -buildUnnamed4334() { +buildUnnamed4574() { var o = new core.List<api.FacetResult>(); o.add(buildFacetResult()); o.add(buildFacetResult()); return o; } -checkUnnamed4334(core.List<api.FacetResult> o) { +checkUnnamed4574(core.List<api.FacetResult> o) { unittest.expect(o, unittest.hasLength(2)); checkFacetResult(o[0]); checkFacetResult(o[1]); } -buildUnnamed4335() { +buildUnnamed4575() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed4335(core.List<api.SearchResult> o) { +checkUnnamed4575(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); } -buildUnnamed4336() { +buildUnnamed4576() { var o = new core.List<api.SpellResult>(); o.add(buildSpellResult()); o.add(buildSpellResult()); return o; } -checkUnnamed4336(core.List<api.SpellResult> o) { +checkUnnamed4576(core.List<api.SpellResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpellResult(o[0]); checkSpellResult(o[1]); } -buildUnnamed4337() { +buildUnnamed4577() { var o = new core.List<api.StructuredResult>(); o.add(buildStructuredResult()); o.add(buildStructuredResult()); return o; } -checkUnnamed4337(core.List<api.StructuredResult> o) { +checkUnnamed4577(core.List<api.StructuredResult> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuredResult(o[0]); checkStructuredResult(o[1]); @@ -3706,15 +3740,15 @@ if (buildCounterSearchResponse < 3) { o.debugInfo = buildResponseDebugInfo(); o.errorInfo = buildErrorInfo(); - o.facetResults = buildUnnamed4334(); + o.facetResults = buildUnnamed4574(); o.hasMoreResults = true; o.queryInterpretation = buildQueryInterpretation(); o.resultCountEstimate = "foo"; o.resultCountExact = "foo"; o.resultCounts = buildResultCounts(); - o.results = buildUnnamed4335(); - o.spellResults = buildUnnamed4336(); - o.structuredResults = buildUnnamed4337(); + o.results = buildUnnamed4575(); + o.spellResults = buildUnnamed4576(); + o.structuredResults = buildUnnamed4577(); } buildCounterSearchResponse--; return o; @@ -3725,27 +3759,27 @@ if (buildCounterSearchResponse < 3) { checkResponseDebugInfo(o.debugInfo); checkErrorInfo(o.errorInfo); - checkUnnamed4334(o.facetResults); + checkUnnamed4574(o.facetResults); unittest.expect(o.hasMoreResults, unittest.isTrue); checkQueryInterpretation(o.queryInterpretation); unittest.expect(o.resultCountEstimate, unittest.equals('foo')); unittest.expect(o.resultCountExact, unittest.equals('foo')); checkResultCounts(o.resultCounts); - checkUnnamed4335(o.results); - checkUnnamed4336(o.spellResults); - checkUnnamed4337(o.structuredResults); + checkUnnamed4575(o.results); + checkUnnamed4576(o.spellResults); + checkUnnamed4577(o.structuredResults); } buildCounterSearchResponse--; } -buildUnnamed4338() { +buildUnnamed4578() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed4338(core.List<api.SearchResult> o) { +checkUnnamed4578(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -3756,7 +3790,7 @@ var o = new api.SearchResult(); buildCounterSearchResult++; if (buildCounterSearchResult < 3) { - o.clusteredResults = buildUnnamed4338(); + o.clusteredResults = buildUnnamed4578(); o.debugInfo = buildResultDebugInfo(); o.metadata = buildMetadata(); o.snippet = buildSnippet(); @@ -3770,7 +3804,7 @@ checkSearchResult(api.SearchResult o) { buildCounterSearchResult++; if (buildCounterSearchResult < 3) { - checkUnnamed4338(o.clusteredResults); + checkUnnamed4578(o.clusteredResults); checkResultDebugInfo(o.debugInfo); checkMetadata(o.metadata); checkSnippet(o.snippet); @@ -3780,14 +3814,14 @@ buildCounterSearchResult--; } -buildUnnamed4339() { +buildUnnamed4579() { var o = new core.List<api.MatchRange>(); o.add(buildMatchRange()); o.add(buildMatchRange()); return o; } -checkUnnamed4339(core.List<api.MatchRange> o) { +checkUnnamed4579(core.List<api.MatchRange> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchRange(o[0]); checkMatchRange(o[1]); @@ -3798,7 +3832,7 @@ var o = new api.Snippet(); buildCounterSnippet++; if (buildCounterSnippet < 3) { - o.matchRanges = buildUnnamed4339(); + o.matchRanges = buildUnnamed4579(); o.snippet = "foo"; } buildCounterSnippet--; @@ -3808,7 +3842,7 @@ checkSnippet(api.Snippet o) { buildCounterSnippet++; if (buildCounterSnippet < 3) { - checkUnnamed4339(o.matchRanges); + checkUnnamed4579(o.matchRanges); unittest.expect(o.snippet, unittest.equals('foo')); } buildCounterSnippet--; @@ -3984,7 +4018,7 @@ buildCounterStartUploadItemRequest--; } -buildUnnamed4340() { +buildUnnamed4580() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -3999,7 +4033,7 @@ return o; } -checkUnnamed4340(core.Map<core.String, core.Object> o) { +checkUnnamed4580(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)); @@ -4013,17 +4047,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4341() { +buildUnnamed4581() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4340()); - o.add(buildUnnamed4340()); + o.add(buildUnnamed4580()); + o.add(buildUnnamed4580()); return o; } -checkUnnamed4341(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4581(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4340(o[0]); - checkUnnamed4340(o[1]); + checkUnnamed4580(o[0]); + checkUnnamed4580(o[1]); } core.int buildCounterStatus = 0; @@ -4032,7 +4066,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4341(); + o.details = buildUnnamed4581(); o.message = "foo"; } buildCounterStatus--; @@ -4043,20 +4077,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4341(o.details); + checkUnnamed4581(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed4342() { +buildUnnamed4582() { var o = new core.List<api.NamedProperty>(); o.add(buildNamedProperty()); o.add(buildNamedProperty()); return o; } -checkUnnamed4342(core.List<api.NamedProperty> o) { +checkUnnamed4582(core.List<api.NamedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedProperty(o[0]); checkNamedProperty(o[1]); @@ -4067,7 +4101,7 @@ var o = new api.StructuredDataObject(); buildCounterStructuredDataObject++; if (buildCounterStructuredDataObject < 3) { - o.properties = buildUnnamed4342(); + o.properties = buildUnnamed4582(); } buildCounterStructuredDataObject--; return o; @@ -4076,7 +4110,7 @@ checkStructuredDataObject(api.StructuredDataObject o) { buildCounterStructuredDataObject++; if (buildCounterStructuredDataObject < 3) { - checkUnnamed4342(o.properties); + checkUnnamed4582(o.properties); } buildCounterStructuredDataObject--; } @@ -4100,14 +4134,14 @@ buildCounterStructuredResult--; } -buildUnnamed4343() { +buildUnnamed4583() { var o = new core.List<api.DataSourceRestriction>(); o.add(buildDataSourceRestriction()); o.add(buildDataSourceRestriction()); return o; } -checkUnnamed4343(core.List<api.DataSourceRestriction> o) { +checkUnnamed4583(core.List<api.DataSourceRestriction> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSourceRestriction(o[0]); checkDataSourceRestriction(o[1]); @@ -4118,7 +4152,7 @@ var o = new api.SuggestRequest(); buildCounterSuggestRequest++; if (buildCounterSuggestRequest < 3) { - o.dataSourceRestrictions = buildUnnamed4343(); + o.dataSourceRestrictions = buildUnnamed4583(); o.query = "foo"; o.requestOptions = buildRequestOptions(); } @@ -4129,21 +4163,21 @@ checkSuggestRequest(api.SuggestRequest o) { buildCounterSuggestRequest++; if (buildCounterSuggestRequest < 3) { - checkUnnamed4343(o.dataSourceRestrictions); + checkUnnamed4583(o.dataSourceRestrictions); unittest.expect(o.query, unittest.equals('foo')); checkRequestOptions(o.requestOptions); } buildCounterSuggestRequest--; } -buildUnnamed4344() { +buildUnnamed4584() { var o = new core.List<api.SuggestResult>(); o.add(buildSuggestResult()); o.add(buildSuggestResult()); return o; } -checkUnnamed4344(core.List<api.SuggestResult> o) { +checkUnnamed4584(core.List<api.SuggestResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestResult(o[0]); checkSuggestResult(o[1]); @@ -4154,7 +4188,7 @@ var o = new api.SuggestResponse(); buildCounterSuggestResponse++; if (buildCounterSuggestResponse < 3) { - o.suggestResults = buildUnnamed4344(); + o.suggestResults = buildUnnamed4584(); } buildCounterSuggestResponse--; return o; @@ -4163,7 +4197,7 @@ checkSuggestResponse(api.SuggestResponse o) { buildCounterSuggestResponse++; if (buildCounterSuggestResponse < 3) { - checkUnnamed4344(o.suggestResults); + checkUnnamed4584(o.suggestResults); } buildCounterSuggestResponse--; } @@ -4235,14 +4269,14 @@ buildCounterTextPropertyOptions--; } -buildUnnamed4345() { +buildUnnamed4585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4345(core.List<core.String> o) { +checkUnnamed4585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4253,7 +4287,7 @@ var o = new api.TextValues(); buildCounterTextValues++; if (buildCounterTextValues < 3) { - o.values = buildUnnamed4345(); + o.values = buildUnnamed4585(); } buildCounterTextValues--; return o; @@ -4262,7 +4296,7 @@ checkTextValues(api.TextValues o) { buildCounterTextValues++; if (buildCounterTextValues < 3) { - checkUnnamed4345(o.values); + checkUnnamed4585(o.values); } buildCounterTextValues--; } @@ -4309,14 +4343,14 @@ buildCounterTimestampPropertyOptions--; } -buildUnnamed4346() { +buildUnnamed4586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4346(core.List<core.String> o) { +checkUnnamed4586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4327,7 +4361,7 @@ var o = new api.TimestampValues(); buildCounterTimestampValues++; if (buildCounterTimestampValues < 3) { - o.values = buildUnnamed4346(); + o.values = buildUnnamed4586(); } buildCounterTimestampValues--; return o; @@ -4336,7 +4370,7 @@ checkTimestampValues(api.TimestampValues o) { buildCounterTimestampValues++; if (buildCounterTimestampValues < 3) { - checkUnnamed4346(o.values); + checkUnnamed4586(o.values); } buildCounterTimestampValues--; } @@ -5039,6 +5073,14 @@ }); }); + 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-ListQuerySourcesResponse", () { unittest.test("to-json--from-json", () { var o = buildListQuerySourcesResponse(); @@ -5836,9 +5878,9 @@ api.DebugDatasourcesItemsUnmappedidsResourceApi res = new api.CloudsearchApi(mock).debug.datasources.items.unmappedids; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_debugOptions_enableDebugging = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5871,12 +5913,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["debugOptions.enableDebugging"].first, unittest.equals("$arg_debugOptions_enableDebugging")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5887,9 +5929,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, debugOptions_enableDebugging: arg_debugOptions_enableDebugging, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUnmappedIdentitiesResponse(response); @@ -5903,11 +5945,11 @@ api.DebugIdentitysourcesItemsResourceApi res = new api.CloudsearchApi(mock).debug.identitysources.items; var arg_parent = "foo"; + var arg_pageToken = "foo"; var arg_groupResourceName = "foo"; var arg_userResourceName = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_debugOptions_enableDebugging = true; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5940,16 +5982,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["groupResourceName"].first, unittest.equals(arg_groupResourceName)); unittest.expect(queryMap["userResourceName"].first, unittest.equals(arg_userResourceName)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["debugOptions.enableDebugging"].first, unittest.equals("$arg_debugOptions_enableDebugging")); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5961,11 +6003,11 @@ }), true); res .listForunmappedidentity(arg_parent, + pageToken: arg_pageToken, groupResourceName: arg_groupResourceName, userResourceName: arg_userResourceName, - pageToken: arg_pageToken, - pageSize: arg_pageSize, debugOptions_enableDebugging: arg_debugOptions_enableDebugging, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListItemNamesForUnmappedIdentityResponse(response); @@ -5979,10 +6021,10 @@ api.DebugIdentitysourcesUnmappedidsResourceApi res = new api.CloudsearchApi(mock).debug.identitysources.unmappedids; var arg_parent = "foo"; + var arg_debugOptions_enableDebugging = true; + var arg_resolutionStatusCode = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_resolutionStatusCode = "foo"; - var arg_debugOptions_enableDebugging = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6015,14 +6057,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["debugOptions.enableDebugging"].first, + unittest.equals("$arg_debugOptions_enableDebugging")); + unittest.expect(queryMap["resolutionStatusCode"].first, + unittest.equals(arg_resolutionStatusCode)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["resolutionStatusCode"].first, - unittest.equals(arg_resolutionStatusCode)); - unittest.expect(queryMap["debugOptions.enableDebugging"].first, - unittest.equals("$arg_debugOptions_enableDebugging")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6033,10 +6075,10 @@ }), true); res .list(arg_parent, + debugOptions_enableDebugging: arg_debugOptions_enableDebugging, + resolutionStatusCode: arg_resolutionStatusCode, pageToken: arg_pageToken, pageSize: arg_pageSize, - resolutionStatusCode: arg_resolutionStatusCode, - debugOptions_enableDebugging: arg_debugOptions_enableDebugging, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUnmappedIdentitiesResponse(response); @@ -6222,9 +6264,9 @@ api.IndexingDatasourcesItemsResourceApi res = new api.CloudsearchApi(mock).indexing.datasources.items; var arg_name = "foo"; - var arg_connectorName = "foo"; - var arg_version = "foo"; var arg_debugOptions_enableDebugging = true; + var arg_version = "foo"; + var arg_connectorName = "foo"; var arg_mode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -6258,12 +6300,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["connectorName"].first, - unittest.equals(arg_connectorName)); - unittest.expect( - queryMap["version"].first, unittest.equals(arg_version)); unittest.expect(queryMap["debugOptions.enableDebugging"].first, unittest.equals("$arg_debugOptions_enableDebugging")); + unittest.expect( + queryMap["version"].first, unittest.equals(arg_version)); + unittest.expect(queryMap["connectorName"].first, + unittest.equals(arg_connectorName)); unittest.expect(queryMap["mode"].first, unittest.equals(arg_mode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -6275,9 +6317,9 @@ }), true); res .delete(arg_name, - connectorName: arg_connectorName, - version: arg_version, debugOptions_enableDebugging: arg_debugOptions_enableDebugging, + version: arg_version, + connectorName: arg_connectorName, mode: arg_mode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -6463,11 +6505,11 @@ api.IndexingDatasourcesItemsResourceApi res = new api.CloudsearchApi(mock).indexing.datasources.items; var arg_name = "foo"; + var arg_brief = true; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_debugOptions_enableDebugging = true; var arg_connectorName = "foo"; - var arg_brief = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6500,6 +6542,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["brief"].first, unittest.equals("$arg_brief")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -6508,7 +6551,6 @@ unittest.equals("$arg_debugOptions_enableDebugging")); unittest.expect(queryMap["connectorName"].first, unittest.equals(arg_connectorName)); - unittest.expect(queryMap["brief"].first, unittest.equals("$arg_brief")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6519,11 +6561,11 @@ }), true); res .list(arg_name, + brief: arg_brief, pageToken: arg_pageToken, pageSize: arg_pageSize, debugOptions_enableDebugging: arg_debugOptions_enableDebugging, connectorName: arg_connectorName, - brief: arg_brief, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListItemsResponse(response); @@ -6868,6 +6910,72 @@ }); }); + unittest.group("resource-OperationsLroResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OperationsLroResourceApi res = + new api.CloudsearchApi(mock).operations.lro; + var arg_name = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListOperationsResponse(response); + }))); + }); + }); + unittest.group("resource-QueryResourceApi", () { unittest.test("method--search", () { var mock = new HttpServerMock(); @@ -6981,11 +7089,11 @@ var mock = new HttpServerMock(); api.QuerySourcesResourceApi res = new api.CloudsearchApi(mock).query.sources; - var arg_requestOptions_languageCode = "foo"; - var arg_requestOptions_searchApplicationId = "foo"; - var arg_requestOptions_timeZone = "foo"; - var arg_pageToken = "foo"; var arg_requestOptions_debugOptions_enableDebugging = true; + var arg_requestOptions_timeZone = "foo"; + var arg_requestOptions_languageCode = "foo"; + var arg_pageToken = "foo"; + var arg_requestOptions_searchApplicationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7017,18 +7125,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["requestOptions.languageCode"].first, - unittest.equals(arg_requestOptions_languageCode)); - unittest.expect(queryMap["requestOptions.searchApplicationId"].first, - unittest.equals(arg_requestOptions_searchApplicationId)); - unittest.expect(queryMap["requestOptions.timeZone"].first, - unittest.equals(arg_requestOptions_timeZone)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["requestOptions.debugOptions.enableDebugging"].first, unittest .equals("$arg_requestOptions_debugOptions_enableDebugging")); + unittest.expect(queryMap["requestOptions.timeZone"].first, + unittest.equals(arg_requestOptions_timeZone)); + unittest.expect(queryMap["requestOptions.languageCode"].first, + unittest.equals(arg_requestOptions_languageCode)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["requestOptions.searchApplicationId"].first, + unittest.equals(arg_requestOptions_searchApplicationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7039,13 +7147,13 @@ }), true); res .list( - requestOptions_languageCode: arg_requestOptions_languageCode, - requestOptions_searchApplicationId: - arg_requestOptions_searchApplicationId, - requestOptions_timeZone: arg_requestOptions_timeZone, - pageToken: arg_pageToken, requestOptions_debugOptions_enableDebugging: arg_requestOptions_debugOptions_enableDebugging, + requestOptions_timeZone: arg_requestOptions_timeZone, + requestOptions_languageCode: arg_requestOptions_languageCode, + pageToken: arg_pageToken, + requestOptions_searchApplicationId: + arg_requestOptions_searchApplicationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListQuerySourcesResponse(response); @@ -7226,9 +7334,9 @@ var mock = new HttpServerMock(); api.SettingsDatasourcesResourceApi res = new api.CloudsearchApi(mock).settings.datasources; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_debugOptions_enableDebugging = true; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7260,12 +7368,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["debugOptions.enableDebugging"].first, unittest.equals("$arg_debugOptions_enableDebugging")); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7276,9 +7384,9 @@ }), true); res .list( - pageToken: arg_pageToken, - pageSize: arg_pageSize, debugOptions_enableDebugging: arg_debugOptions_enableDebugging, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDataSourceResponse(response); @@ -7515,9 +7623,9 @@ var mock = new HttpServerMock(); api.SettingsSearchapplicationsResourceApi res = new api.CloudsearchApi(mock).settings.searchapplications; - var arg_debugOptions_enableDebugging = true; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_debugOptions_enableDebugging = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7549,12 +7657,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["debugOptions.enableDebugging"].first, - unittest.equals("$arg_debugOptions_enableDebugging")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["debugOptions.enableDebugging"].first, + unittest.equals("$arg_debugOptions_enableDebugging")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7565,9 +7673,9 @@ }), true); res .list( - debugOptions_enableDebugging: arg_debugOptions_enableDebugging, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + debugOptions_enableDebugging: arg_debugOptions_enableDebugging, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSearchApplicationsResponse(response); @@ -7691,12 +7799,12 @@ unittest.test("method--getIndex", () { var mock = new HttpServerMock(); api.StatsResourceApi res = new api.CloudsearchApi(mock).stats; - var arg_toDate_year = 42; var arg_fromDate_month = 42; - var arg_fromDate_day = 42; - var arg_fromDate_year = 42; - var arg_toDate_day = 42; var arg_toDate_month = 42; + var arg_fromDate_year = 42; + var arg_fromDate_day = 42; + var arg_toDate_year = 42; + var arg_toDate_day = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7728,18 +7836,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["toDate.year"].first), - unittest.equals(arg_toDate_year)); unittest.expect(core.int.parse(queryMap["fromDate.month"].first), unittest.equals(arg_fromDate_month)); - unittest.expect(core.int.parse(queryMap["fromDate.day"].first), - unittest.equals(arg_fromDate_day)); - unittest.expect(core.int.parse(queryMap["fromDate.year"].first), - unittest.equals(arg_fromDate_year)); - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); unittest.expect(core.int.parse(queryMap["toDate.month"].first), unittest.equals(arg_toDate_month)); + unittest.expect(core.int.parse(queryMap["fromDate.year"].first), + unittest.equals(arg_fromDate_year)); + unittest.expect(core.int.parse(queryMap["fromDate.day"].first), + unittest.equals(arg_fromDate_day)); + unittest.expect(core.int.parse(queryMap["toDate.year"].first), + unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7750,12 +7858,12 @@ }), true); res .getIndex( - toDate_year: arg_toDate_year, fromDate_month: arg_fromDate_month, - fromDate_day: arg_fromDate_day, - fromDate_year: arg_fromDate_year, - toDate_day: arg_toDate_day, toDate_month: arg_toDate_month, + fromDate_year: arg_fromDate_year, + fromDate_day: arg_fromDate_day, + toDate_year: arg_toDate_year, + toDate_day: arg_toDate_day, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetCustomerIndexStatsResponse(response); @@ -7765,12 +7873,12 @@ unittest.test("method--getQuery", () { var mock = new HttpServerMock(); api.StatsResourceApi res = new api.CloudsearchApi(mock).stats; - var arg_fromDate_year = 42; - var arg_toDate_day = 42; var arg_toDate_month = 42; - var arg_toDate_year = 42; - var arg_fromDate_month = 42; var arg_fromDate_day = 42; + var arg_toDate_day = 42; + var arg_fromDate_year = 42; + var arg_fromDate_month = 42; + var arg_toDate_year = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7802,18 +7910,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["fromDate.year"].first), - unittest.equals(arg_fromDate_year)); - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); unittest.expect(core.int.parse(queryMap["toDate.month"].first), unittest.equals(arg_toDate_month)); - unittest.expect(core.int.parse(queryMap["toDate.year"].first), - unittest.equals(arg_toDate_year)); - unittest.expect(core.int.parse(queryMap["fromDate.month"].first), - unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); + unittest.expect(core.int.parse(queryMap["fromDate.year"].first), + unittest.equals(arg_fromDate_year)); + unittest.expect(core.int.parse(queryMap["fromDate.month"].first), + unittest.equals(arg_fromDate_month)); + unittest.expect(core.int.parse(queryMap["toDate.year"].first), + unittest.equals(arg_toDate_year)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7824,12 +7932,12 @@ }), true); res .getQuery( - fromDate_year: arg_fromDate_year, - toDate_day: arg_toDate_day, toDate_month: arg_toDate_month, - toDate_year: arg_toDate_year, - fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, + toDate_day: arg_toDate_day, + fromDate_year: arg_fromDate_year, + fromDate_month: arg_fromDate_month, + toDate_year: arg_toDate_year, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetCustomerQueryStatsResponse(response); @@ -7839,12 +7947,12 @@ unittest.test("method--getSession", () { var mock = new HttpServerMock(); api.StatsResourceApi res = new api.CloudsearchApi(mock).stats; - var arg_fromDate_month = 42; var arg_fromDate_day = 42; var arg_fromDate_year = 42; var arg_toDate_day = 42; - var arg_toDate_month = 42; var arg_toDate_year = 42; + var arg_toDate_month = 42; + var arg_fromDate_month = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7876,18 +7984,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["fromDate.month"].first), - unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); unittest.expect(core.int.parse(queryMap["fromDate.year"].first), unittest.equals(arg_fromDate_year)); unittest.expect(core.int.parse(queryMap["toDate.day"].first), unittest.equals(arg_toDate_day)); - unittest.expect(core.int.parse(queryMap["toDate.month"].first), - unittest.equals(arg_toDate_month)); unittest.expect(core.int.parse(queryMap["toDate.year"].first), unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.month"].first), + unittest.equals(arg_toDate_month)); + unittest.expect(core.int.parse(queryMap["fromDate.month"].first), + unittest.equals(arg_fromDate_month)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7898,12 +8006,12 @@ }), true); res .getSession( - fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, fromDate_year: arg_fromDate_year, toDate_day: arg_toDate_day, - toDate_month: arg_toDate_month, toDate_year: arg_toDate_year, + toDate_month: arg_toDate_month, + fromDate_month: arg_fromDate_month, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetCustomerSessionStatsResponse(response); @@ -7913,12 +8021,12 @@ unittest.test("method--getUser", () { var mock = new HttpServerMock(); api.StatsResourceApi res = new api.CloudsearchApi(mock).stats; - var arg_toDate_day = 42; - var arg_toDate_month = 42; - var arg_toDate_year = 42; var arg_fromDate_month = 42; var arg_fromDate_day = 42; var arg_fromDate_year = 42; + var arg_toDate_day = 42; + var arg_toDate_year = 42; + var arg_toDate_month = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7950,18 +8058,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); - unittest.expect(core.int.parse(queryMap["toDate.month"].first), - unittest.equals(arg_toDate_month)); - unittest.expect(core.int.parse(queryMap["toDate.year"].first), - unittest.equals(arg_toDate_year)); unittest.expect(core.int.parse(queryMap["fromDate.month"].first), unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); unittest.expect(core.int.parse(queryMap["fromDate.year"].first), unittest.equals(arg_fromDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); + unittest.expect(core.int.parse(queryMap["toDate.year"].first), + unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.month"].first), + unittest.equals(arg_toDate_month)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7972,12 +8080,12 @@ }), true); res .getUser( - toDate_day: arg_toDate_day, - toDate_month: arg_toDate_month, - toDate_year: arg_toDate_year, fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, fromDate_year: arg_fromDate_year, + toDate_day: arg_toDate_day, + toDate_year: arg_toDate_year, + toDate_month: arg_toDate_month, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetCustomerUserStatsResponse(response); @@ -7991,12 +8099,12 @@ api.StatsIndexDatasourcesResourceApi res = new api.CloudsearchApi(mock).stats.index.datasources; var arg_name = "foo"; + var arg_toDate_day = 42; + var arg_fromDate_month = 42; var arg_toDate_month = 42; var arg_toDate_year = 42; - var arg_fromDate_month = 42; var arg_fromDate_day = 42; var arg_fromDate_year = 42; - var arg_toDate_day = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8029,18 +8137,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); + unittest.expect(core.int.parse(queryMap["fromDate.month"].first), + unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["toDate.month"].first), unittest.equals(arg_toDate_month)); unittest.expect(core.int.parse(queryMap["toDate.year"].first), unittest.equals(arg_toDate_year)); - unittest.expect(core.int.parse(queryMap["fromDate.month"].first), - unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); unittest.expect(core.int.parse(queryMap["fromDate.year"].first), unittest.equals(arg_fromDate_year)); - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8051,12 +8159,12 @@ }), true); res .get(arg_name, + toDate_day: arg_toDate_day, + fromDate_month: arg_fromDate_month, toDate_month: arg_toDate_month, toDate_year: arg_toDate_year, - fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, fromDate_year: arg_fromDate_year, - toDate_day: arg_toDate_day, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetDataSourceIndexStatsResponse(response); @@ -8070,11 +8178,11 @@ api.StatsQuerySearchapplicationsResourceApi res = new api.CloudsearchApi(mock).stats.query.searchapplications; var arg_name = "foo"; - var arg_toDate_day = 42; - var arg_toDate_month = 42; var arg_toDate_year = 42; + var arg_toDate_day = 42; var arg_fromDate_month = 42; var arg_fromDate_day = 42; + var arg_toDate_month = 42; var arg_fromDate_year = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -8108,16 +8216,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); - unittest.expect(core.int.parse(queryMap["toDate.month"].first), - unittest.equals(arg_toDate_month)); unittest.expect(core.int.parse(queryMap["toDate.year"].first), unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); unittest.expect(core.int.parse(queryMap["fromDate.month"].first), unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); + unittest.expect(core.int.parse(queryMap["toDate.month"].first), + unittest.equals(arg_toDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.year"].first), unittest.equals(arg_fromDate_year)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -8131,11 +8239,11 @@ }), true); res .get(arg_name, - toDate_day: arg_toDate_day, - toDate_month: arg_toDate_month, toDate_year: arg_toDate_year, + toDate_day: arg_toDate_day, fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, + toDate_month: arg_toDate_month, fromDate_year: arg_fromDate_year, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -8150,12 +8258,12 @@ api.StatsSessionSearchapplicationsResourceApi res = new api.CloudsearchApi(mock).stats.session.searchapplications; var arg_name = "foo"; - var arg_fromDate_month = 42; - var arg_fromDate_day = 42; var arg_fromDate_year = 42; - var arg_toDate_day = 42; - var arg_toDate_month = 42; var arg_toDate_year = 42; + var arg_toDate_month = 42; + var arg_fromDate_day = 42; + var arg_toDate_day = 42; + var arg_fromDate_month = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8188,18 +8296,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["fromDate.month"].first), - unittest.equals(arg_fromDate_month)); - unittest.expect(core.int.parse(queryMap["fromDate.day"].first), - unittest.equals(arg_fromDate_day)); unittest.expect(core.int.parse(queryMap["fromDate.year"].first), unittest.equals(arg_fromDate_year)); - unittest.expect(core.int.parse(queryMap["toDate.day"].first), - unittest.equals(arg_toDate_day)); - unittest.expect(core.int.parse(queryMap["toDate.month"].first), - unittest.equals(arg_toDate_month)); unittest.expect(core.int.parse(queryMap["toDate.year"].first), unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.month"].first), + unittest.equals(arg_toDate_month)); + unittest.expect(core.int.parse(queryMap["fromDate.day"].first), + unittest.equals(arg_fromDate_day)); + unittest.expect(core.int.parse(queryMap["toDate.day"].first), + unittest.equals(arg_toDate_day)); + unittest.expect(core.int.parse(queryMap["fromDate.month"].first), + unittest.equals(arg_fromDate_month)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8211,12 +8319,12 @@ }), true); res .get(arg_name, - fromDate_month: arg_fromDate_month, - fromDate_day: arg_fromDate_day, fromDate_year: arg_fromDate_year, - toDate_day: arg_toDate_day, - toDate_month: arg_toDate_month, toDate_year: arg_toDate_year, + toDate_month: arg_toDate_month, + fromDate_day: arg_fromDate_day, + toDate_day: arg_toDate_day, + fromDate_month: arg_fromDate_month, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetSearchApplicationSessionStatsResponse(response); @@ -8230,12 +8338,12 @@ api.StatsUserSearchapplicationsResourceApi res = new api.CloudsearchApi(mock).stats.user.searchapplications; var arg_name = "foo"; - var arg_fromDate_year = 42; var arg_toDate_day = 42; - var arg_toDate_month = 42; - var arg_toDate_year = 42; var arg_fromDate_month = 42; var arg_fromDate_day = 42; + var arg_fromDate_year = 42; + var arg_toDate_year = 42; + var arg_toDate_month = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8268,18 +8376,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["fromDate.year"].first), - unittest.equals(arg_fromDate_year)); unittest.expect(core.int.parse(queryMap["toDate.day"].first), unittest.equals(arg_toDate_day)); - unittest.expect(core.int.parse(queryMap["toDate.month"].first), - unittest.equals(arg_toDate_month)); - unittest.expect(core.int.parse(queryMap["toDate.year"].first), - unittest.equals(arg_toDate_year)); unittest.expect(core.int.parse(queryMap["fromDate.month"].first), unittest.equals(arg_fromDate_month)); unittest.expect(core.int.parse(queryMap["fromDate.day"].first), unittest.equals(arg_fromDate_day)); + unittest.expect(core.int.parse(queryMap["fromDate.year"].first), + unittest.equals(arg_fromDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.year"].first), + unittest.equals(arg_toDate_year)); + unittest.expect(core.int.parse(queryMap["toDate.month"].first), + unittest.equals(arg_toDate_month)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8291,12 +8399,12 @@ }), true); res .get(arg_name, - fromDate_year: arg_fromDate_year, toDate_day: arg_toDate_day, - toDate_month: arg_toDate_month, - toDate_year: arg_toDate_year, fromDate_month: arg_fromDate_month, fromDate_day: arg_fromDate_day, + fromDate_year: arg_fromDate_year, + toDate_year: arg_toDate_year, + toDate_month: arg_toDate_month, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetSearchApplicationUserStatsResponse(response);
diff --git a/generated/googleapis/test/cloudshell/v1_test.dart b/generated/googleapis/test/cloudshell/v1_test.dart index 33ffbec..a88b21a 100644 --- a/generated/googleapis/test/cloudshell/v1_test.dart +++ b/generated/googleapis/test/cloudshell/v1_test.dart
@@ -50,6 +50,112 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAddPublicKeyMetadata = 0; +buildAddPublicKeyMetadata() { + var o = new api.AddPublicKeyMetadata(); + buildCounterAddPublicKeyMetadata++; + if (buildCounterAddPublicKeyMetadata < 3) {} + buildCounterAddPublicKeyMetadata--; + return o; +} + +checkAddPublicKeyMetadata(api.AddPublicKeyMetadata o) { + buildCounterAddPublicKeyMetadata++; + if (buildCounterAddPublicKeyMetadata < 3) {} + buildCounterAddPublicKeyMetadata--; +} + +core.int buildCounterAddPublicKeyRequest = 0; +buildAddPublicKeyRequest() { + var o = new api.AddPublicKeyRequest(); + buildCounterAddPublicKeyRequest++; + if (buildCounterAddPublicKeyRequest < 3) { + o.key = "foo"; + } + buildCounterAddPublicKeyRequest--; + return o; +} + +checkAddPublicKeyRequest(api.AddPublicKeyRequest o) { + buildCounterAddPublicKeyRequest++; + if (buildCounterAddPublicKeyRequest < 3) { + unittest.expect(o.key, unittest.equals('foo')); + } + buildCounterAddPublicKeyRequest--; +} + +core.int buildCounterAddPublicKeyResponse = 0; +buildAddPublicKeyResponse() { + var o = new api.AddPublicKeyResponse(); + buildCounterAddPublicKeyResponse++; + if (buildCounterAddPublicKeyResponse < 3) { + o.key = "foo"; + } + buildCounterAddPublicKeyResponse--; + return o; +} + +checkAddPublicKeyResponse(api.AddPublicKeyResponse o) { + buildCounterAddPublicKeyResponse++; + if (buildCounterAddPublicKeyResponse < 3) { + unittest.expect(o.key, unittest.equals('foo')); + } + buildCounterAddPublicKeyResponse--; +} + +core.int buildCounterAuthorizeEnvironmentMetadata = 0; +buildAuthorizeEnvironmentMetadata() { + var o = new api.AuthorizeEnvironmentMetadata(); + buildCounterAuthorizeEnvironmentMetadata++; + if (buildCounterAuthorizeEnvironmentMetadata < 3) {} + buildCounterAuthorizeEnvironmentMetadata--; + return o; +} + +checkAuthorizeEnvironmentMetadata(api.AuthorizeEnvironmentMetadata o) { + buildCounterAuthorizeEnvironmentMetadata++; + if (buildCounterAuthorizeEnvironmentMetadata < 3) {} + buildCounterAuthorizeEnvironmentMetadata--; +} + +core.int buildCounterAuthorizeEnvironmentRequest = 0; +buildAuthorizeEnvironmentRequest() { + var o = new api.AuthorizeEnvironmentRequest(); + buildCounterAuthorizeEnvironmentRequest++; + if (buildCounterAuthorizeEnvironmentRequest < 3) { + o.accessToken = "foo"; + o.expireTime = "foo"; + o.idToken = "foo"; + } + buildCounterAuthorizeEnvironmentRequest--; + return o; +} + +checkAuthorizeEnvironmentRequest(api.AuthorizeEnvironmentRequest o) { + buildCounterAuthorizeEnvironmentRequest++; + if (buildCounterAuthorizeEnvironmentRequest < 3) { + unittest.expect(o.accessToken, unittest.equals('foo')); + unittest.expect(o.expireTime, unittest.equals('foo')); + unittest.expect(o.idToken, unittest.equals('foo')); + } + buildCounterAuthorizeEnvironmentRequest--; +} + +core.int buildCounterAuthorizeEnvironmentResponse = 0; +buildAuthorizeEnvironmentResponse() { + var o = new api.AuthorizeEnvironmentResponse(); + buildCounterAuthorizeEnvironmentResponse++; + if (buildCounterAuthorizeEnvironmentResponse < 3) {} + buildCounterAuthorizeEnvironmentResponse--; + return o; +} + +checkAuthorizeEnvironmentResponse(api.AuthorizeEnvironmentResponse o) { + buildCounterAuthorizeEnvironmentResponse++; + if (buildCounterAuthorizeEnvironmentResponse < 3) {} + buildCounterAuthorizeEnvironmentResponse--; +} + core.int buildCounterCancelOperationRequest = 0; buildCancelOperationRequest() { var o = new api.CancelOperationRequest(); @@ -65,6 +171,36 @@ buildCounterCancelOperationRequest--; } +core.int buildCounterCreateEnvironmentMetadata = 0; +buildCreateEnvironmentMetadata() { + var o = new api.CreateEnvironmentMetadata(); + buildCounterCreateEnvironmentMetadata++; + if (buildCounterCreateEnvironmentMetadata < 3) {} + buildCounterCreateEnvironmentMetadata--; + return o; +} + +checkCreateEnvironmentMetadata(api.CreateEnvironmentMetadata o) { + buildCounterCreateEnvironmentMetadata++; + if (buildCounterCreateEnvironmentMetadata < 3) {} + buildCounterCreateEnvironmentMetadata--; +} + +core.int buildCounterDeleteEnvironmentMetadata = 0; +buildDeleteEnvironmentMetadata() { + var o = new api.DeleteEnvironmentMetadata(); + buildCounterDeleteEnvironmentMetadata++; + if (buildCounterDeleteEnvironmentMetadata < 3) {} + buildCounterDeleteEnvironmentMetadata--; + return o; +} + +checkDeleteEnvironmentMetadata(api.DeleteEnvironmentMetadata o) { + buildCounterDeleteEnvironmentMetadata++; + if (buildCounterDeleteEnvironmentMetadata < 3) {} + buildCounterDeleteEnvironmentMetadata--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -80,30 +216,17 @@ buildCounterEmpty--; } -buildUnnamed4682() { - var o = new core.List<api.PublicKey>(); - o.add(buildPublicKey()); - o.add(buildPublicKey()); +buildUnnamed5011() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); return o; } -checkUnnamed4682(core.List<api.PublicKey> o) { +checkUnnamed5011(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); - checkPublicKey(o[0]); - checkPublicKey(o[1]); -} - -buildUnnamed4683() { - var o = new core.List<core.int>(); - o.add(42); - o.add(42); - return o; -} - -checkUnnamed4683(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)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); } core.int buildCounterEnvironment = 0; @@ -114,15 +237,12 @@ o.dockerImage = "foo"; o.id = "foo"; o.name = "foo"; - o.publicKeys = buildUnnamed4682(); - o.size = "foo"; + o.publicKeys = buildUnnamed5011(); o.sshHost = "foo"; o.sshPort = 42; o.sshUsername = "foo"; o.state = "foo"; - o.vmSizeExpireTime = "foo"; o.webHost = "foo"; - o.webPorts = buildUnnamed4683(); } buildCounterEnvironment--; return o; @@ -134,27 +254,24 @@ unittest.expect(o.dockerImage, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4682(o.publicKeys); - unittest.expect(o.size, unittest.equals('foo')); + checkUnnamed5011(o.publicKeys); unittest.expect(o.sshHost, unittest.equals('foo')); unittest.expect(o.sshPort, unittest.equals(42)); unittest.expect(o.sshUsername, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); - unittest.expect(o.vmSizeExpireTime, unittest.equals('foo')); unittest.expect(o.webHost, unittest.equals('foo')); - checkUnnamed4683(o.webPorts); } buildCounterEnvironment--; } -buildUnnamed4684() { +buildUnnamed5012() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4684(core.List<api.Operation> o) { +checkUnnamed5012(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -166,7 +283,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4684(); + o.operations = buildUnnamed5012(); } buildCounterListOperationsResponse--; return o; @@ -176,12 +293,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4684(o.operations); + checkUnnamed5012(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4685() { +buildUnnamed5013() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -196,7 +313,7 @@ return o; } -checkUnnamed4685(core.Map<core.String, core.Object> o) { +checkUnnamed5013(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)); @@ -210,7 +327,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4686() { +buildUnnamed5014() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -225,7 +342,7 @@ return o; } -checkUnnamed4686(core.Map<core.String, core.Object> o) { +checkUnnamed5014(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)); @@ -246,9 +363,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4685(); + o.metadata = buildUnnamed5013(); o.name = "foo"; - o.response = buildUnnamed4686(); + o.response = buildUnnamed5014(); } buildCounterOperation--; return o; @@ -259,34 +376,60 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4685(o.metadata); + checkUnnamed5013(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4686(o.response); + checkUnnamed5014(o.response); } buildCounterOperation--; } -core.int buildCounterPublicKey = 0; -buildPublicKey() { - var o = new api.PublicKey(); - buildCounterPublicKey++; - if (buildCounterPublicKey < 3) { - o.format = "foo"; - o.key = "foo"; - o.name = "foo"; - } - buildCounterPublicKey--; +core.int buildCounterRemovePublicKeyMetadata = 0; +buildRemovePublicKeyMetadata() { + var o = new api.RemovePublicKeyMetadata(); + buildCounterRemovePublicKeyMetadata++; + if (buildCounterRemovePublicKeyMetadata < 3) {} + buildCounterRemovePublicKeyMetadata--; return o; } -checkPublicKey(api.PublicKey o) { - buildCounterPublicKey++; - if (buildCounterPublicKey < 3) { - unittest.expect(o.format, unittest.equals('foo')); - unittest.expect(o.key, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); +checkRemovePublicKeyMetadata(api.RemovePublicKeyMetadata o) { + buildCounterRemovePublicKeyMetadata++; + if (buildCounterRemovePublicKeyMetadata < 3) {} + buildCounterRemovePublicKeyMetadata--; +} + +core.int buildCounterRemovePublicKeyRequest = 0; +buildRemovePublicKeyRequest() { + var o = new api.RemovePublicKeyRequest(); + buildCounterRemovePublicKeyRequest++; + if (buildCounterRemovePublicKeyRequest < 3) { + o.key = "foo"; } - buildCounterPublicKey--; + buildCounterRemovePublicKeyRequest--; + return o; +} + +checkRemovePublicKeyRequest(api.RemovePublicKeyRequest o) { + buildCounterRemovePublicKeyRequest++; + if (buildCounterRemovePublicKeyRequest < 3) { + unittest.expect(o.key, unittest.equals('foo')); + } + buildCounterRemovePublicKeyRequest--; +} + +core.int buildCounterRemovePublicKeyResponse = 0; +buildRemovePublicKeyResponse() { + var o = new api.RemovePublicKeyResponse(); + buildCounterRemovePublicKeyResponse++; + if (buildCounterRemovePublicKeyResponse < 3) {} + buildCounterRemovePublicKeyResponse--; + return o; +} + +checkRemovePublicKeyResponse(api.RemovePublicKeyResponse o) { + buildCounterRemovePublicKeyResponse++; + if (buildCounterRemovePublicKeyResponse < 3) {} + buildCounterRemovePublicKeyResponse--; } core.int buildCounterStartEnvironmentMetadata = 0; @@ -308,6 +451,40 @@ buildCounterStartEnvironmentMetadata--; } +buildUnnamed5015() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5015(core.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 buildCounterStartEnvironmentRequest = 0; +buildStartEnvironmentRequest() { + var o = new api.StartEnvironmentRequest(); + buildCounterStartEnvironmentRequest++; + if (buildCounterStartEnvironmentRequest < 3) { + o.accessToken = "foo"; + o.publicKeys = buildUnnamed5015(); + } + buildCounterStartEnvironmentRequest--; + return o; +} + +checkStartEnvironmentRequest(api.StartEnvironmentRequest o) { + buildCounterStartEnvironmentRequest++; + if (buildCounterStartEnvironmentRequest < 3) { + unittest.expect(o.accessToken, unittest.equals('foo')); + checkUnnamed5015(o.publicKeys); + } + buildCounterStartEnvironmentRequest--; +} + core.int buildCounterStartEnvironmentResponse = 0; buildStartEnvironmentResponse() { var o = new api.StartEnvironmentResponse(); @@ -327,7 +504,7 @@ buildCounterStartEnvironmentResponse--; } -buildUnnamed4687() { +buildUnnamed5016() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -342,7 +519,7 @@ return o; } -checkUnnamed4687(core.Map<core.String, core.Object> o) { +checkUnnamed5016(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)); @@ -356,17 +533,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4688() { +buildUnnamed5017() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4687()); - o.add(buildUnnamed4687()); + o.add(buildUnnamed5016()); + o.add(buildUnnamed5016()); return o; } -checkUnnamed4688(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed5017(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4687(o[0]); - checkUnnamed4687(o[1]); + checkUnnamed5016(o[0]); + checkUnnamed5016(o[1]); } core.int buildCounterStatus = 0; @@ -375,7 +552,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4688(); + o.details = buildUnnamed5017(); o.message = "foo"; } buildCounterStatus--; @@ -386,13 +563,61 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4688(o.details); + checkUnnamed5017(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } main() { + unittest.group("obj-schema-AddPublicKeyMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildAddPublicKeyMetadata(); + var od = new api.AddPublicKeyMetadata.fromJson(o.toJson()); + checkAddPublicKeyMetadata(od); + }); + }); + + unittest.group("obj-schema-AddPublicKeyRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddPublicKeyRequest(); + var od = new api.AddPublicKeyRequest.fromJson(o.toJson()); + checkAddPublicKeyRequest(od); + }); + }); + + unittest.group("obj-schema-AddPublicKeyResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddPublicKeyResponse(); + var od = new api.AddPublicKeyResponse.fromJson(o.toJson()); + checkAddPublicKeyResponse(od); + }); + }); + + unittest.group("obj-schema-AuthorizeEnvironmentMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildAuthorizeEnvironmentMetadata(); + var od = new api.AuthorizeEnvironmentMetadata.fromJson(o.toJson()); + checkAuthorizeEnvironmentMetadata(od); + }); + }); + + unittest.group("obj-schema-AuthorizeEnvironmentRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAuthorizeEnvironmentRequest(); + var od = new api.AuthorizeEnvironmentRequest.fromJson(o.toJson()); + checkAuthorizeEnvironmentRequest(od); + }); + }); + + unittest.group("obj-schema-AuthorizeEnvironmentResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAuthorizeEnvironmentResponse(); + var od = new api.AuthorizeEnvironmentResponse.fromJson(o.toJson()); + checkAuthorizeEnvironmentResponse(od); + }); + }); + unittest.group("obj-schema-CancelOperationRequest", () { unittest.test("to-json--from-json", () { var o = buildCancelOperationRequest(); @@ -401,6 +626,22 @@ }); }); + unittest.group("obj-schema-CreateEnvironmentMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildCreateEnvironmentMetadata(); + var od = new api.CreateEnvironmentMetadata.fromJson(o.toJson()); + checkCreateEnvironmentMetadata(od); + }); + }); + + unittest.group("obj-schema-DeleteEnvironmentMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteEnvironmentMetadata(); + var od = new api.DeleteEnvironmentMetadata.fromJson(o.toJson()); + checkDeleteEnvironmentMetadata(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -433,11 +674,27 @@ }); }); - unittest.group("obj-schema-PublicKey", () { + unittest.group("obj-schema-RemovePublicKeyMetadata", () { unittest.test("to-json--from-json", () { - var o = buildPublicKey(); - var od = new api.PublicKey.fromJson(o.toJson()); - checkPublicKey(od); + var o = buildRemovePublicKeyMetadata(); + var od = new api.RemovePublicKeyMetadata.fromJson(o.toJson()); + checkRemovePublicKeyMetadata(od); + }); + }); + + unittest.group("obj-schema-RemovePublicKeyRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRemovePublicKeyRequest(); + var od = new api.RemovePublicKeyRequest.fromJson(o.toJson()); + checkRemovePublicKeyRequest(od); + }); + }); + + unittest.group("obj-schema-RemovePublicKeyResponse", () { + unittest.test("to-json--from-json", () { + var o = buildRemovePublicKeyResponse(); + var od = new api.RemovePublicKeyResponse.fromJson(o.toJson()); + checkRemovePublicKeyResponse(od); }); }); @@ -449,6 +706,14 @@ }); }); + unittest.group("obj-schema-StartEnvironmentRequest", () { + unittest.test("to-json--from-json", () { + var o = buildStartEnvironmentRequest(); + var od = new api.StartEnvironmentRequest.fromJson(o.toJson()); + checkStartEnvironmentRequest(od); + }); + }); + unittest.group("obj-schema-StartEnvironmentResponse", () { unittest.test("to-json--from-json", () { var o = buildStartEnvironmentResponse(); @@ -628,8 +893,8 @@ api.OperationsResourceApi res = new api.CloudshellApi(mock).operations; var arg_name = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -663,10 +928,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -678,12 +943,290 @@ res .list(arg_name, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); }))); }); }); + + unittest.group("resource-UsersEnvironmentsResourceApi", () { + unittest.test("method--addPublicKey", () { + var mock = new HttpServerMock(); + api.UsersEnvironmentsResourceApi res = + new api.CloudshellApi(mock).users.environments; + var arg_request = buildAddPublicKeyRequest(); + var arg_environment = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AddPublicKeyRequest.fromJson(json); + checkAddPublicKeyRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .addPublicKey(arg_request, arg_environment, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--authorize", () { + var mock = new HttpServerMock(); + api.UsersEnvironmentsResourceApi res = + new api.CloudshellApi(mock).users.environments; + var arg_request = buildAuthorizeEnvironmentRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AuthorizeEnvironmentRequest.fromJson(json); + checkAuthorizeEnvironmentRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .authorize(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.UsersEnvironmentsResourceApi res = + new api.CloudshellApi(mock).users.environments; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildEnvironment()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEnvironment(response); + }))); + }); + + unittest.test("method--removePublicKey", () { + var mock = new HttpServerMock(); + api.UsersEnvironmentsResourceApi res = + new api.CloudshellApi(mock).users.environments; + var arg_request = buildRemovePublicKeyRequest(); + var arg_environment = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RemovePublicKeyRequest.fromJson(json); + checkRemovePublicKeyRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .removePublicKey(arg_request, arg_environment, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--start", () { + var mock = new HttpServerMock(); + api.UsersEnvironmentsResourceApi res = + new api.CloudshellApi(mock).users.environments; + var arg_request = buildStartEnvironmentRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.StartEnvironmentRequest.fromJson(json); + checkStartEnvironmentRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .start(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/cloudtasks/v2_test.dart b/generated/googleapis/test/cloudtasks/v2_test.dart index 79f3ac7..37bb6a1 100644 --- a/generated/googleapis/test/cloudtasks/v2_test.dart +++ b/generated/googleapis/test/cloudtasks/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2176() { +buildUnnamed2284() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2176(core.Map<core.String, core.String> o) { +checkUnnamed2284(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')); @@ -70,7 +70,7 @@ if (buildCounterAppEngineHttpRequest < 3) { o.appEngineRouting = buildAppEngineRouting(); o.body = "foo"; - o.headers = buildUnnamed2176(); + o.headers = buildUnnamed2284(); o.httpMethod = "foo"; o.relativeUri = "foo"; } @@ -83,7 +83,7 @@ if (buildCounterAppEngineHttpRequest < 3) { checkAppEngineRouting(o.appEngineRouting); unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed2176(o.headers); + checkUnnamed2284(o.headers); unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.relativeUri, unittest.equals('foo')); } @@ -140,14 +140,14 @@ buildCounterAttempt--; } -buildUnnamed2177() { +buildUnnamed2285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2177(core.List<core.String> o) { +checkUnnamed2285(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -158,8 +158,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed2177(); + o.members = buildUnnamed2285(); o.role = "foo"; } buildCounterBinding--; @@ -169,8 +170,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed2177(o.members); + checkUnnamed2285(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -275,14 +277,14 @@ buildCounterGetPolicyOptions--; } -buildUnnamed2178() { +buildUnnamed2286() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2178(core.Map<core.String, core.String> o) { +checkUnnamed2286(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')); @@ -294,7 +296,7 @@ buildCounterHttpRequest++; if (buildCounterHttpRequest < 3) { o.body = "foo"; - o.headers = buildUnnamed2178(); + o.headers = buildUnnamed2286(); o.httpMethod = "foo"; o.oauthToken = buildOAuthToken(); o.oidcToken = buildOidcToken(); @@ -308,7 +310,7 @@ buildCounterHttpRequest++; if (buildCounterHttpRequest < 3) { unittest.expect(o.body, unittest.equals('foo')); - checkUnnamed2178(o.headers); + checkUnnamed2286(o.headers); unittest.expect(o.httpMethod, unittest.equals('foo')); checkOAuthToken(o.oauthToken); checkOidcToken(o.oidcToken); @@ -317,14 +319,14 @@ buildCounterHttpRequest--; } -buildUnnamed2179() { +buildUnnamed2287() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2179(core.List<api.Location> o) { +checkUnnamed2287(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -335,7 +337,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed2179(); + o.locations = buildUnnamed2287(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -345,20 +347,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed2179(o.locations); + checkUnnamed2287(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed2180() { +buildUnnamed2288() { var o = new core.List<api.Queue>(); o.add(buildQueue()); o.add(buildQueue()); return o; } -checkUnnamed2180(core.List<api.Queue> o) { +checkUnnamed2288(core.List<api.Queue> o) { unittest.expect(o, unittest.hasLength(2)); checkQueue(o[0]); checkQueue(o[1]); @@ -370,7 +372,7 @@ buildCounterListQueuesResponse++; if (buildCounterListQueuesResponse < 3) { o.nextPageToken = "foo"; - o.queues = buildUnnamed2180(); + o.queues = buildUnnamed2288(); } buildCounterListQueuesResponse--; return o; @@ -380,19 +382,19 @@ buildCounterListQueuesResponse++; if (buildCounterListQueuesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2180(o.queues); + checkUnnamed2288(o.queues); } buildCounterListQueuesResponse--; } -buildUnnamed2181() { +buildUnnamed2289() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed2181(core.List<api.Task> o) { +checkUnnamed2289(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -404,7 +406,7 @@ buildCounterListTasksResponse++; if (buildCounterListTasksResponse < 3) { o.nextPageToken = "foo"; - o.tasks = buildUnnamed2181(); + o.tasks = buildUnnamed2289(); } buildCounterListTasksResponse--; return o; @@ -414,25 +416,25 @@ buildCounterListTasksResponse++; if (buildCounterListTasksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2181(o.tasks); + checkUnnamed2289(o.tasks); } buildCounterListTasksResponse--; } -buildUnnamed2182() { +buildUnnamed2290() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2182(core.Map<core.String, core.String> o) { +checkUnnamed2290(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')); } -buildUnnamed2183() { +buildUnnamed2291() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -447,7 +449,7 @@ return o; } -checkUnnamed2183(core.Map<core.String, core.Object> o) { +checkUnnamed2291(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)); @@ -467,9 +469,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed2182(); + o.labels = buildUnnamed2290(); o.locationId = "foo"; - o.metadata = buildUnnamed2183(); + o.metadata = buildUnnamed2291(); o.name = "foo"; } buildCounterLocation--; @@ -480,9 +482,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2182(o.labels); + checkUnnamed2290(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed2183(o.metadata); + checkUnnamed2291(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -545,14 +547,14 @@ buildCounterPauseQueueRequest--; } -buildUnnamed2184() { +buildUnnamed2292() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2184(core.List<api.Binding> o) { +checkUnnamed2292(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -563,7 +565,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2184(); + o.bindings = buildUnnamed2292(); o.etag = "foo"; o.version = 42; } @@ -574,7 +576,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2184(o.bindings); + checkUnnamed2292(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -749,7 +751,7 @@ buildCounterStackdriverLoggingConfig--; } -buildUnnamed2185() { +buildUnnamed2293() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -764,7 +766,7 @@ return o; } -checkUnnamed2185(core.Map<core.String, core.Object> o) { +checkUnnamed2293(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)); @@ -778,17 +780,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2186() { +buildUnnamed2294() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2185()); - o.add(buildUnnamed2185()); + o.add(buildUnnamed2293()); + o.add(buildUnnamed2293()); return o; } -checkUnnamed2186(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2294(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2185(o[0]); - checkUnnamed2185(o[1]); + checkUnnamed2293(o[0]); + checkUnnamed2293(o[1]); } core.int buildCounterStatus = 0; @@ -797,7 +799,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2186(); + o.details = buildUnnamed2294(); o.message = "foo"; } buildCounterStatus--; @@ -808,7 +810,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2186(o.details); + checkUnnamed2294(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -853,14 +855,14 @@ buildCounterTask--; } -buildUnnamed2187() { +buildUnnamed2295() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2187(core.List<core.String> o) { +checkUnnamed2295(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -871,7 +873,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2187(); + o.permissions = buildUnnamed2295(); } buildCounterTestIamPermissionsRequest--; return o; @@ -880,19 +882,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2187(o.permissions); + checkUnnamed2295(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2188() { +buildUnnamed2296() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2188(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')); @@ -903,7 +905,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2188(); + o.permissions = buildUnnamed2296(); } buildCounterTestIamPermissionsResponse--; return o; @@ -912,7 +914,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2188(o.permissions); + checkUnnamed2296(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1217,8 +1219,8 @@ new api.CloudtasksApi(mock).projects.locations; var arg_name = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1253,9 +1255,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1267,8 +1269,8 @@ res .list(arg_name, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1499,8 +1501,8 @@ new api.CloudtasksApi(mock).projects.locations.queues; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1534,10 +1536,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1549,8 +1551,8 @@ res .list(arg_parent, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListQueuesResponse(response); @@ -2067,8 +2069,8 @@ api.ProjectsLocationsQueuesTasksResourceApi res = new api.CloudtasksApi(mock).projects.locations.queues.tasks; var arg_parent = "foo"; - var arg_responseView = "foo"; var arg_pageToken = "foo"; + var arg_responseView = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2103,9 +2105,9 @@ } } unittest.expect( - queryMap["responseView"].first, unittest.equals(arg_responseView)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["responseView"].first, unittest.equals(arg_responseView)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2118,8 +2120,8 @@ }), true); res .list(arg_parent, - responseView: arg_responseView, pageToken: arg_pageToken, + responseView: arg_responseView, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) {
diff --git a/generated/googleapis/test/cloudtrace/v2_test.dart b/generated/googleapis/test/cloudtrace/v2_test.dart index a219789..070e60a 100644 --- a/generated/googleapis/test/cloudtrace/v2_test.dart +++ b/generated/googleapis/test/cloudtrace/v2_test.dart
@@ -94,14 +94,14 @@ buildCounterAttributeValue--; } -buildUnnamed523() { +buildUnnamed542() { var o = new core.Map<core.String, api.AttributeValue>(); o["x"] = buildAttributeValue(); o["y"] = buildAttributeValue(); return o; } -checkUnnamed523(core.Map<core.String, api.AttributeValue> o) { +checkUnnamed542(core.Map<core.String, api.AttributeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkAttributeValue(o["x"]); checkAttributeValue(o["y"]); @@ -112,7 +112,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed523(); + o.attributeMap = buildUnnamed542(); o.droppedAttributesCount = 42; } buildCounterAttributes--; @@ -122,20 +122,20 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed523(o.attributeMap); + checkUnnamed542(o.attributeMap); unittest.expect(o.droppedAttributesCount, unittest.equals(42)); } buildCounterAttributes--; } -buildUnnamed524() { +buildUnnamed543() { var o = new core.List<api.Span>(); o.add(buildSpan()); o.add(buildSpan()); return o; } -checkUnnamed524(core.List<api.Span> o) { +checkUnnamed543(core.List<api.Span> o) { unittest.expect(o, unittest.hasLength(2)); checkSpan(o[0]); checkSpan(o[1]); @@ -146,7 +146,7 @@ var o = new api.BatchWriteSpansRequest(); buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - o.spans = buildUnnamed524(); + o.spans = buildUnnamed543(); } buildCounterBatchWriteSpansRequest--; return o; @@ -155,7 +155,7 @@ checkBatchWriteSpansRequest(api.BatchWriteSpansRequest o) { buildCounterBatchWriteSpansRequest++; if (buildCounterBatchWriteSpansRequest < 3) { - checkUnnamed524(o.spans); + checkUnnamed543(o.spans); } buildCounterBatchWriteSpansRequest--; } @@ -200,14 +200,14 @@ buildCounterLink--; } -buildUnnamed525() { +buildUnnamed544() { var o = new core.List<api.Link>(); o.add(buildLink()); o.add(buildLink()); return o; } -checkUnnamed525(core.List<api.Link> o) { +checkUnnamed544(core.List<api.Link> o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -219,7 +219,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { o.droppedLinksCount = 42; - o.link = buildUnnamed525(); + o.link = buildUnnamed544(); } buildCounterLinks--; return o; @@ -229,7 +229,7 @@ buildCounterLinks++; if (buildCounterLinks < 3) { unittest.expect(o.droppedLinksCount, unittest.equals(42)); - checkUnnamed525(o.link); + checkUnnamed544(o.link); } buildCounterLinks--; } @@ -356,14 +356,14 @@ buildCounterStackFrame--; } -buildUnnamed526() { +buildUnnamed545() { var o = new core.List<api.StackFrame>(); o.add(buildStackFrame()); o.add(buildStackFrame()); return o; } -checkUnnamed526(core.List<api.StackFrame> o) { +checkUnnamed545(core.List<api.StackFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkStackFrame(o[0]); checkStackFrame(o[1]); @@ -375,7 +375,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { o.droppedFramesCount = 42; - o.frame = buildUnnamed526(); + o.frame = buildUnnamed545(); } buildCounterStackFrames--; return o; @@ -385,7 +385,7 @@ buildCounterStackFrames++; if (buildCounterStackFrames < 3) { unittest.expect(o.droppedFramesCount, unittest.equals(42)); - checkUnnamed526(o.frame); + checkUnnamed545(o.frame); } buildCounterStackFrames--; } @@ -411,7 +411,7 @@ buildCounterStackTrace--; } -buildUnnamed527() { +buildUnnamed546() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -426,7 +426,7 @@ return o; } -checkUnnamed527(core.Map<core.String, core.Object> o) { +checkUnnamed546(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)); @@ -440,17 +440,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed528() { +buildUnnamed547() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed527()); - o.add(buildUnnamed527()); + o.add(buildUnnamed546()); + o.add(buildUnnamed546()); return o; } -checkUnnamed528(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed547(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed527(o[0]); - checkUnnamed527(o[1]); + checkUnnamed546(o[0]); + checkUnnamed546(o[1]); } core.int buildCounterStatus = 0; @@ -459,7 +459,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed528(); + o.details = buildUnnamed547(); o.message = "foo"; } buildCounterStatus--; @@ -470,7 +470,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed528(o.details); + checkUnnamed547(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -499,14 +499,14 @@ buildCounterTimeEvent--; } -buildUnnamed529() { +buildUnnamed548() { var o = new core.List<api.TimeEvent>(); o.add(buildTimeEvent()); o.add(buildTimeEvent()); return o; } -checkUnnamed529(core.List<api.TimeEvent> o) { +checkUnnamed548(core.List<api.TimeEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeEvent(o[0]); checkTimeEvent(o[1]); @@ -519,7 +519,7 @@ if (buildCounterTimeEvents < 3) { o.droppedAnnotationsCount = 42; o.droppedMessageEventsCount = 42; - o.timeEvent = buildUnnamed529(); + o.timeEvent = buildUnnamed548(); } buildCounterTimeEvents--; return o; @@ -530,7 +530,7 @@ if (buildCounterTimeEvents < 3) { unittest.expect(o.droppedAnnotationsCount, unittest.equals(42)); unittest.expect(o.droppedMessageEventsCount, unittest.equals(42)); - checkUnnamed529(o.timeEvent); + checkUnnamed548(o.timeEvent); } buildCounterTimeEvents--; }
diff --git a/generated/googleapis/test/composer/v1_test.dart b/generated/googleapis/test/composer/v1_test.dart index e899550..cb6eac5 100644 --- a/generated/googleapis/test/composer/v1_test.dart +++ b/generated/googleapis/test/composer/v1_test.dart
@@ -65,14 +65,14 @@ buildCounterEmpty--; } -buildUnnamed2573() { +buildUnnamed2705() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2573(core.Map<core.String, core.String> o) { +checkUnnamed2705(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')); @@ -85,7 +85,7 @@ if (buildCounterEnvironment < 3) { o.config = buildEnvironmentConfig(); o.createTime = "foo"; - o.labels = buildUnnamed2573(); + o.labels = buildUnnamed2705(); o.name = "foo"; o.state = "foo"; o.updateTime = "foo"; @@ -100,7 +100,7 @@ if (buildCounterEnvironment < 3) { checkEnvironmentConfig(o.config); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2573(o.labels); + checkUnnamed2705(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -167,14 +167,14 @@ buildCounterIPAllocationPolicy--; } -buildUnnamed2574() { +buildUnnamed2706() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2574(core.List<core.String> o) { +checkUnnamed2706(core.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 @@ if (buildCounterImageVersion < 3) { o.imageVersionId = "foo"; o.isDefault = true; - o.supportedPythonVersions = buildUnnamed2574(); + o.supportedPythonVersions = buildUnnamed2706(); } buildCounterImageVersion--; return o; @@ -198,19 +198,19 @@ if (buildCounterImageVersion < 3) { unittest.expect(o.imageVersionId, unittest.equals('foo')); unittest.expect(o.isDefault, unittest.isTrue); - checkUnnamed2574(o.supportedPythonVersions); + checkUnnamed2706(o.supportedPythonVersions); } buildCounterImageVersion--; } -buildUnnamed2575() { +buildUnnamed2707() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed2575(core.List<api.Environment> o) { +checkUnnamed2707(core.List<api.Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironment(o[0]); checkEnvironment(o[1]); @@ -221,7 +221,7 @@ var o = new api.ListEnvironmentsResponse(); buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - o.environments = buildUnnamed2575(); + o.environments = buildUnnamed2707(); o.nextPageToken = "foo"; } buildCounterListEnvironmentsResponse--; @@ -231,20 +231,20 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed2575(o.environments); + checkUnnamed2707(o.environments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListEnvironmentsResponse--; } -buildUnnamed2576() { +buildUnnamed2708() { var o = new core.List<api.ImageVersion>(); o.add(buildImageVersion()); o.add(buildImageVersion()); return o; } -checkUnnamed2576(core.List<api.ImageVersion> o) { +checkUnnamed2708(core.List<api.ImageVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkImageVersion(o[0]); checkImageVersion(o[1]); @@ -255,7 +255,7 @@ var o = new api.ListImageVersionsResponse(); buildCounterListImageVersionsResponse++; if (buildCounterListImageVersionsResponse < 3) { - o.imageVersions = buildUnnamed2576(); + o.imageVersions = buildUnnamed2708(); o.nextPageToken = "foo"; } buildCounterListImageVersionsResponse--; @@ -265,20 +265,20 @@ checkListImageVersionsResponse(api.ListImageVersionsResponse o) { buildCounterListImageVersionsResponse++; if (buildCounterListImageVersionsResponse < 3) { - checkUnnamed2576(o.imageVersions); + checkUnnamed2708(o.imageVersions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListImageVersionsResponse--; } -buildUnnamed2577() { +buildUnnamed2709() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2577(core.List<api.Operation> o) { +checkUnnamed2709(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -290,7 +290,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2577(); + o.operations = buildUnnamed2709(); } buildCounterListOperationsResponse--; return o; @@ -300,32 +300,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2577(o.operations); + checkUnnamed2709(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2578() { +buildUnnamed2710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2578(core.List<core.String> o) { +checkUnnamed2710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2579() { +buildUnnamed2711() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2579(core.List<core.String> o) { +checkUnnamed2711(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -341,10 +341,10 @@ o.location = "foo"; o.machineType = "foo"; o.network = "foo"; - o.oauthScopes = buildUnnamed2578(); + o.oauthScopes = buildUnnamed2710(); o.serviceAccount = "foo"; o.subnetwork = "foo"; - o.tags = buildUnnamed2579(); + o.tags = buildUnnamed2711(); } buildCounterNodeConfig--; return o; @@ -358,15 +358,15 @@ unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed2578(o.oauthScopes); + checkUnnamed2710(o.oauthScopes); unittest.expect(o.serviceAccount, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); - checkUnnamed2579(o.tags); + checkUnnamed2711(o.tags); } buildCounterNodeConfig--; } -buildUnnamed2580() { +buildUnnamed2712() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -381,7 +381,7 @@ return o; } -checkUnnamed2580(core.Map<core.String, core.Object> o) { +checkUnnamed2712(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)); @@ -395,7 +395,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2581() { +buildUnnamed2713() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -410,7 +410,7 @@ return o; } -checkUnnamed2581(core.Map<core.String, core.Object> o) { +checkUnnamed2713(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)); @@ -431,9 +431,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2580(); + o.metadata = buildUnnamed2712(); o.name = "foo"; - o.response = buildUnnamed2581(); + o.response = buildUnnamed2713(); } buildCounterOperation--; return o; @@ -444,9 +444,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2580(o.metadata); + checkUnnamed2712(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2581(o.response); + checkUnnamed2713(o.response); } buildCounterOperation--; } @@ -530,40 +530,40 @@ buildCounterPrivateEnvironmentConfig--; } -buildUnnamed2582() { +buildUnnamed2714() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2582(core.Map<core.String, core.String> o) { +checkUnnamed2714(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')); } -buildUnnamed2583() { +buildUnnamed2715() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2583(core.Map<core.String, core.String> o) { +checkUnnamed2715(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')); } -buildUnnamed2584() { +buildUnnamed2716() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2584(core.Map<core.String, core.String> o) { +checkUnnamed2716(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')); @@ -574,10 +574,10 @@ var o = new api.SoftwareConfig(); buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { - o.airflowConfigOverrides = buildUnnamed2582(); - o.envVariables = buildUnnamed2583(); + o.airflowConfigOverrides = buildUnnamed2714(); + o.envVariables = buildUnnamed2715(); o.imageVersion = "foo"; - o.pypiPackages = buildUnnamed2584(); + o.pypiPackages = buildUnnamed2716(); o.pythonVersion = "foo"; } buildCounterSoftwareConfig--; @@ -587,16 +587,16 @@ checkSoftwareConfig(api.SoftwareConfig o) { buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { - checkUnnamed2582(o.airflowConfigOverrides); - checkUnnamed2583(o.envVariables); + checkUnnamed2714(o.airflowConfigOverrides); + checkUnnamed2715(o.envVariables); unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed2584(o.pypiPackages); + checkUnnamed2716(o.pypiPackages); unittest.expect(o.pythonVersion, unittest.equals('foo')); } buildCounterSoftwareConfig--; } -buildUnnamed2585() { +buildUnnamed2717() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -611,7 +611,7 @@ return o; } -checkUnnamed2585(core.Map<core.String, core.Object> o) { +checkUnnamed2717(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)); @@ -625,17 +625,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2586() { +buildUnnamed2718() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2585()); - o.add(buildUnnamed2585()); + o.add(buildUnnamed2717()); + o.add(buildUnnamed2717()); return o; } -checkUnnamed2586(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2718(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2585(o[0]); - checkUnnamed2585(o[1]); + checkUnnamed2717(o[0]); + checkUnnamed2717(o[1]); } core.int buildCounterStatus = 0; @@ -644,7 +644,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2586(); + o.details = buildUnnamed2718(); o.message = "foo"; } buildCounterStatus--; @@ -655,7 +655,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2586(o.details); + checkUnnamed2718(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -948,8 +948,8 @@ api.ProjectsLocationsEnvironmentsResourceApi res = new api.ComposerApi(mock).projects.locations.environments; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -982,10 +982,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -996,8 +996,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListEnvironmentsResponse(response); @@ -1071,8 +1071,8 @@ api.ProjectsLocationsImageVersionsResourceApi res = new api.ComposerApi(mock).projects.locations.imageVersions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1105,10 +1105,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1119,8 +1119,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListImageVersionsResponse(response); @@ -1238,9 +1238,9 @@ api.ProjectsLocationsOperationsResourceApi res = new api.ComposerApi(mock).projects.locations.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1273,11 +1273,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1288,9 +1288,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/compute/v1_test.dart b/generated/googleapis/test/compute/v1_test.dart index cef6cd7..801fc0e 100644 --- a/generated/googleapis/test/compute/v1_test.dart +++ b/generated/googleapis/test/compute/v1_test.dart
@@ -106,19 +106,32 @@ buildCounterAcceleratorType--; } -buildUnnamed1653() { +buildUnnamed1701() { var o = new core.Map<core.String, api.AcceleratorTypesScopedList>(); o["x"] = buildAcceleratorTypesScopedList(); o["y"] = buildAcceleratorTypesScopedList(); return o; } -checkUnnamed1653(core.Map<core.String, api.AcceleratorTypesScopedList> o) { +checkUnnamed1701(core.Map<core.String, api.AcceleratorTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedList(o["x"]); checkAcceleratorTypesScopedList(o["y"]); } +buildUnnamed1702() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1702(core.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 buildCounterAcceleratorTypeAggregatedListWarningData = 0; buildAcceleratorTypeAggregatedListWarningData() { var o = new api.AcceleratorTypeAggregatedListWarningData(); @@ -141,14 +154,14 @@ buildCounterAcceleratorTypeAggregatedListWarningData--; } -buildUnnamed1654() { +buildUnnamed1703() { var o = new core.List<api.AcceleratorTypeAggregatedListWarningData>(); o.add(buildAcceleratorTypeAggregatedListWarningData()); o.add(buildAcceleratorTypeAggregatedListWarningData()); return o; } -checkUnnamed1654(core.List<api.AcceleratorTypeAggregatedListWarningData> o) { +checkUnnamed1703(core.List<api.AcceleratorTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypeAggregatedListWarningData(o[0]); checkAcceleratorTypeAggregatedListWarningData(o[1]); @@ -160,7 +173,7 @@ buildCounterAcceleratorTypeAggregatedListWarning++; if (buildCounterAcceleratorTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1654(); + o.data = buildUnnamed1703(); o.message = "foo"; } buildCounterAcceleratorTypeAggregatedListWarning--; @@ -172,7 +185,7 @@ buildCounterAcceleratorTypeAggregatedListWarning++; if (buildCounterAcceleratorTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1654(o.data); + checkUnnamed1703(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypeAggregatedListWarning--; @@ -184,10 +197,11 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1653(); + o.items = buildUnnamed1701(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1702(); o.warning = buildAcceleratorTypeAggregatedListWarning(); } buildCounterAcceleratorTypeAggregatedList--; @@ -198,23 +212,24 @@ buildCounterAcceleratorTypeAggregatedList++; if (buildCounterAcceleratorTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1653(o.items); + checkUnnamed1701(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1702(o.unreachables); checkAcceleratorTypeAggregatedListWarning(o.warning); } buildCounterAcceleratorTypeAggregatedList--; } -buildUnnamed1655() { +buildUnnamed1704() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed1655(core.List<api.AcceleratorType> o) { +checkUnnamed1704(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -241,14 +256,14 @@ buildCounterAcceleratorTypeListWarningData--; } -buildUnnamed1656() { +buildUnnamed1705() { var o = new core.List<api.AcceleratorTypeListWarningData>(); o.add(buildAcceleratorTypeListWarningData()); o.add(buildAcceleratorTypeListWarningData()); return o; } -checkUnnamed1656(core.List<api.AcceleratorTypeListWarningData> o) { +checkUnnamed1705(core.List<api.AcceleratorTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypeListWarningData(o[0]); checkAcceleratorTypeListWarningData(o[1]); @@ -260,7 +275,7 @@ buildCounterAcceleratorTypeListWarning++; if (buildCounterAcceleratorTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1656(); + o.data = buildUnnamed1705(); o.message = "foo"; } buildCounterAcceleratorTypeListWarning--; @@ -271,7 +286,7 @@ buildCounterAcceleratorTypeListWarning++; if (buildCounterAcceleratorTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1656(o.data); + checkUnnamed1705(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypeListWarning--; @@ -283,7 +298,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed1655(); + o.items = buildUnnamed1704(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -297,7 +312,7 @@ buildCounterAcceleratorTypeList++; if (buildCounterAcceleratorTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1655(o.items); + checkUnnamed1704(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -306,14 +321,14 @@ buildCounterAcceleratorTypeList--; } -buildUnnamed1657() { +buildUnnamed1706() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed1657(core.List<api.AcceleratorType> o) { +checkUnnamed1706(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); @@ -341,14 +356,14 @@ buildCounterAcceleratorTypesScopedListWarningData--; } -buildUnnamed1658() { +buildUnnamed1707() { var o = new core.List<api.AcceleratorTypesScopedListWarningData>(); o.add(buildAcceleratorTypesScopedListWarningData()); o.add(buildAcceleratorTypesScopedListWarningData()); return o; } -checkUnnamed1658(core.List<api.AcceleratorTypesScopedListWarningData> o) { +checkUnnamed1707(core.List<api.AcceleratorTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorTypesScopedListWarningData(o[0]); checkAcceleratorTypesScopedListWarningData(o[1]); @@ -360,7 +375,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1658(); + o.data = buildUnnamed1707(); o.message = "foo"; } buildCounterAcceleratorTypesScopedListWarning--; @@ -372,7 +387,7 @@ buildCounterAcceleratorTypesScopedListWarning++; if (buildCounterAcceleratorTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1658(o.data); + checkUnnamed1707(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAcceleratorTypesScopedListWarning--; @@ -383,7 +398,7 @@ var o = new api.AcceleratorTypesScopedList(); buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - o.acceleratorTypes = buildUnnamed1657(); + o.acceleratorTypes = buildUnnamed1706(); o.warning = buildAcceleratorTypesScopedListWarning(); } buildCounterAcceleratorTypesScopedList--; @@ -393,7 +408,7 @@ checkAcceleratorTypesScopedList(api.AcceleratorTypesScopedList o) { buildCounterAcceleratorTypesScopedList++; if (buildCounterAcceleratorTypesScopedList < 3) { - checkUnnamed1657(o.acceleratorTypes); + checkUnnamed1706(o.acceleratorTypes); checkAcceleratorTypesScopedListWarning(o.warning); } buildCounterAcceleratorTypesScopedList--; @@ -430,14 +445,14 @@ buildCounterAccessConfig--; } -buildUnnamed1659() { +buildUnnamed1708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1659(core.List<core.String> o) { +checkUnnamed1708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -464,7 +479,7 @@ o.selfLink = "foo"; o.status = "foo"; o.subnetwork = "foo"; - o.users = buildUnnamed1659(); + o.users = buildUnnamed1708(); } buildCounterAddress--; return o; @@ -489,24 +504,37 @@ unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); - checkUnnamed1659(o.users); + checkUnnamed1708(o.users); } buildCounterAddress--; } -buildUnnamed1660() { +buildUnnamed1709() { var o = new core.Map<core.String, api.AddressesScopedList>(); o["x"] = buildAddressesScopedList(); o["y"] = buildAddressesScopedList(); return o; } -checkUnnamed1660(core.Map<core.String, api.AddressesScopedList> o) { +checkUnnamed1709(core.Map<core.String, api.AddressesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedList(o["x"]); checkAddressesScopedList(o["y"]); } +buildUnnamed1710() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterAddressAggregatedListWarningData = 0; buildAddressAggregatedListWarningData() { var o = new api.AddressAggregatedListWarningData(); @@ -528,14 +556,14 @@ buildCounterAddressAggregatedListWarningData--; } -buildUnnamed1661() { +buildUnnamed1711() { var o = new core.List<api.AddressAggregatedListWarningData>(); o.add(buildAddressAggregatedListWarningData()); o.add(buildAddressAggregatedListWarningData()); return o; } -checkUnnamed1661(core.List<api.AddressAggregatedListWarningData> o) { +checkUnnamed1711(core.List<api.AddressAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressAggregatedListWarningData(o[0]); checkAddressAggregatedListWarningData(o[1]); @@ -547,7 +575,7 @@ buildCounterAddressAggregatedListWarning++; if (buildCounterAddressAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1661(); + o.data = buildUnnamed1711(); o.message = "foo"; } buildCounterAddressAggregatedListWarning--; @@ -558,7 +586,7 @@ buildCounterAddressAggregatedListWarning++; if (buildCounterAddressAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1661(o.data); + checkUnnamed1711(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressAggregatedListWarning--; @@ -570,10 +598,11 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1660(); + o.items = buildUnnamed1709(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1710(); o.warning = buildAddressAggregatedListWarning(); } buildCounterAddressAggregatedList--; @@ -584,23 +613,24 @@ buildCounterAddressAggregatedList++; if (buildCounterAddressAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1660(o.items); + checkUnnamed1709(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1710(o.unreachables); checkAddressAggregatedListWarning(o.warning); } buildCounterAddressAggregatedList--; } -buildUnnamed1662() { +buildUnnamed1712() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed1662(core.List<api.Address> o) { +checkUnnamed1712(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -627,14 +657,14 @@ buildCounterAddressListWarningData--; } -buildUnnamed1663() { +buildUnnamed1713() { var o = new core.List<api.AddressListWarningData>(); o.add(buildAddressListWarningData()); o.add(buildAddressListWarningData()); return o; } -checkUnnamed1663(core.List<api.AddressListWarningData> o) { +checkUnnamed1713(core.List<api.AddressListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressListWarningData(o[0]); checkAddressListWarningData(o[1]); @@ -646,7 +676,7 @@ buildCounterAddressListWarning++; if (buildCounterAddressListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1663(); + o.data = buildUnnamed1713(); o.message = "foo"; } buildCounterAddressListWarning--; @@ -657,7 +687,7 @@ buildCounterAddressListWarning++; if (buildCounterAddressListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1663(o.data); + checkUnnamed1713(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressListWarning--; @@ -669,7 +699,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { o.id = "foo"; - o.items = buildUnnamed1662(); + o.items = buildUnnamed1712(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -683,7 +713,7 @@ buildCounterAddressList++; if (buildCounterAddressList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1662(o.items); + checkUnnamed1712(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -692,14 +722,14 @@ buildCounterAddressList--; } -buildUnnamed1664() { +buildUnnamed1714() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed1664(core.List<api.Address> o) { +checkUnnamed1714(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); @@ -726,14 +756,14 @@ buildCounterAddressesScopedListWarningData--; } -buildUnnamed1665() { +buildUnnamed1715() { var o = new core.List<api.AddressesScopedListWarningData>(); o.add(buildAddressesScopedListWarningData()); o.add(buildAddressesScopedListWarningData()); return o; } -checkUnnamed1665(core.List<api.AddressesScopedListWarningData> o) { +checkUnnamed1715(core.List<api.AddressesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAddressesScopedListWarningData(o[0]); checkAddressesScopedListWarningData(o[1]); @@ -745,7 +775,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1665(); + o.data = buildUnnamed1715(); o.message = "foo"; } buildCounterAddressesScopedListWarning--; @@ -756,7 +786,7 @@ buildCounterAddressesScopedListWarning++; if (buildCounterAddressesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1665(o.data); + checkUnnamed1715(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAddressesScopedListWarning--; @@ -767,7 +797,7 @@ var o = new api.AddressesScopedList(); buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - o.addresses = buildUnnamed1664(); + o.addresses = buildUnnamed1714(); o.warning = buildAddressesScopedListWarning(); } buildCounterAddressesScopedList--; @@ -777,7 +807,7 @@ checkAddressesScopedList(api.AddressesScopedList o) { buildCounterAddressesScopedList++; if (buildCounterAddressesScopedList < 3) { - checkUnnamed1664(o.addresses); + checkUnnamed1714(o.addresses); checkAddressesScopedListWarning(o.warning); } buildCounterAddressesScopedList--; @@ -832,20 +862,20 @@ buildCounterAllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk--; } -buildUnnamed1666() { +buildUnnamed1716() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed1666(core.List<api.AcceleratorConfig> o) { +checkUnnamed1716(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed1667() { +buildUnnamed1717() { var o = new core.List< api.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk>(); o.add( @@ -855,7 +885,7 @@ return o; } -checkUnnamed1667( +checkUnnamed1717( core.List< api.AllocationSpecificSKUAllocationAllocatedInstancePropertiesReservedDisk> o) { @@ -873,8 +903,8 @@ buildCounterAllocationSpecificSKUAllocationReservedInstanceProperties++; if (buildCounterAllocationSpecificSKUAllocationReservedInstanceProperties < 3) { - o.guestAccelerators = buildUnnamed1666(); - o.localSsds = buildUnnamed1667(); + o.guestAccelerators = buildUnnamed1716(); + o.localSsds = buildUnnamed1717(); o.machineType = "foo"; o.minCpuPlatform = "foo"; } @@ -887,8 +917,8 @@ buildCounterAllocationSpecificSKUAllocationReservedInstanceProperties++; if (buildCounterAllocationSpecificSKUAllocationReservedInstanceProperties < 3) { - checkUnnamed1666(o.guestAccelerators); - checkUnnamed1667(o.localSsds); + checkUnnamed1716(o.guestAccelerators); + checkUnnamed1717(o.localSsds); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); } @@ -920,27 +950,27 @@ buildCounterAllocationSpecificSKUReservation--; } -buildUnnamed1668() { +buildUnnamed1718() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed1668(core.List<api.GuestOsFeature> o) { +checkUnnamed1718(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed1669() { +buildUnnamed1719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1669(core.List<core.String> o) { +checkUnnamed1719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -956,12 +986,12 @@ o.deviceName = "foo"; o.diskEncryptionKey = buildCustomerEncryptionKey(); o.diskSizeGb = "foo"; - o.guestOsFeatures = buildUnnamed1668(); + o.guestOsFeatures = buildUnnamed1718(); o.index = 42; o.initializeParams = buildAttachedDiskInitializeParams(); o.interface = "foo"; o.kind = "foo"; - o.licenses = buildUnnamed1669(); + o.licenses = buildUnnamed1719(); o.mode = "foo"; o.shieldedInstanceInitialState = buildInitialStateConfig(); o.source = "foo"; @@ -979,12 +1009,12 @@ unittest.expect(o.deviceName, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey); unittest.expect(o.diskSizeGb, unittest.equals('foo')); - checkUnnamed1668(o.guestOsFeatures); + checkUnnamed1718(o.guestOsFeatures); unittest.expect(o.index, unittest.equals(42)); checkAttachedDiskInitializeParams(o.initializeParams); unittest.expect(o.interface, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1669(o.licenses); + checkUnnamed1719(o.licenses); unittest.expect(o.mode, unittest.equals('foo')); checkInitialStateConfig(o.shieldedInstanceInitialState); unittest.expect(o.source, unittest.equals('foo')); @@ -993,27 +1023,27 @@ buildCounterAttachedDisk--; } -buildUnnamed1670() { +buildUnnamed1720() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1670(core.Map<core.String, core.String> o) { +checkUnnamed1720(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')); } -buildUnnamed1671() { +buildUnnamed1721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1671(core.List<core.String> o) { +checkUnnamed1721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1028,9 +1058,9 @@ o.diskName = "foo"; o.diskSizeGb = "foo"; o.diskType = "foo"; - o.labels = buildUnnamed1670(); + o.labels = buildUnnamed1720(); o.onUpdateAction = "foo"; - o.resourcePolicies = buildUnnamed1671(); + o.resourcePolicies = buildUnnamed1721(); o.sourceImage = "foo"; o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); o.sourceSnapshot = "foo"; @@ -1047,9 +1077,9 @@ unittest.expect(o.diskName, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.diskType, unittest.equals('foo')); - checkUnnamed1670(o.labels); + checkUnnamed1720(o.labels); unittest.expect(o.onUpdateAction, unittest.equals('foo')); - checkUnnamed1671(o.resourcePolicies); + checkUnnamed1721(o.resourcePolicies); unittest.expect(o.sourceImage, unittest.equals('foo')); checkCustomerEncryptionKey(o.sourceImageEncryptionKey); unittest.expect(o.sourceSnapshot, unittest.equals('foo')); @@ -1058,27 +1088,27 @@ buildCounterAttachedDiskInitializeParams--; } -buildUnnamed1672() { +buildUnnamed1722() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1672(core.List<api.AuditLogConfig> o) { +checkUnnamed1722(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } -buildUnnamed1673() { +buildUnnamed1723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1673(core.List<core.String> 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')); @@ -1089,8 +1119,8 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1672(); - o.exemptedMembers = buildUnnamed1673(); + o.auditLogConfigs = buildUnnamed1722(); + o.exemptedMembers = buildUnnamed1723(); o.service = "foo"; } buildCounterAuditConfig--; @@ -1100,21 +1130,21 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1672(o.auditLogConfigs); - checkUnnamed1673(o.exemptedMembers); + checkUnnamed1722(o.auditLogConfigs); + checkUnnamed1723(o.exemptedMembers); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1674() { +buildUnnamed1724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1674(core.List<core.String> o) { +checkUnnamed1724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1125,7 +1155,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1674(); + o.exemptedMembers = buildUnnamed1724(); o.ignoreChildExemptions = true; o.logType = "foo"; } @@ -1136,7 +1166,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1674(o.exemptedMembers); + checkUnnamed1724(o.exemptedMembers); unittest.expect(o.ignoreChildExemptions, unittest.isTrue); unittest.expect(o.logType, unittest.equals('foo')); } @@ -1162,14 +1192,14 @@ buildCounterAuthorizationLoggingOptions--; } -buildUnnamed1675() { +buildUnnamed1725() { var o = new core.List<api.AutoscalerStatusDetails>(); o.add(buildAutoscalerStatusDetails()); o.add(buildAutoscalerStatusDetails()); return o; } -checkUnnamed1675(core.List<api.AutoscalerStatusDetails> o) { +checkUnnamed1725(core.List<api.AutoscalerStatusDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerStatusDetails(o[0]); checkAutoscalerStatusDetails(o[1]); @@ -1190,7 +1220,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.statusDetails = buildUnnamed1675(); + o.statusDetails = buildUnnamed1725(); o.target = "foo"; o.zone = "foo"; } @@ -1211,26 +1241,39 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1675(o.statusDetails); + checkUnnamed1725(o.statusDetails); unittest.expect(o.target, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterAutoscaler--; } -buildUnnamed1676() { +buildUnnamed1726() { var o = new core.Map<core.String, api.AutoscalersScopedList>(); o["x"] = buildAutoscalersScopedList(); o["y"] = buildAutoscalersScopedList(); return o; } -checkUnnamed1676(core.Map<core.String, api.AutoscalersScopedList> o) { +checkUnnamed1726(core.Map<core.String, api.AutoscalersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedList(o["x"]); checkAutoscalersScopedList(o["y"]); } +buildUnnamed1727() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1727(core.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 buildCounterAutoscalerAggregatedListWarningData = 0; buildAutoscalerAggregatedListWarningData() { var o = new api.AutoscalerAggregatedListWarningData(); @@ -1253,14 +1296,14 @@ buildCounterAutoscalerAggregatedListWarningData--; } -buildUnnamed1677() { +buildUnnamed1728() { var o = new core.List<api.AutoscalerAggregatedListWarningData>(); o.add(buildAutoscalerAggregatedListWarningData()); o.add(buildAutoscalerAggregatedListWarningData()); return o; } -checkUnnamed1677(core.List<api.AutoscalerAggregatedListWarningData> o) { +checkUnnamed1728(core.List<api.AutoscalerAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerAggregatedListWarningData(o[0]); checkAutoscalerAggregatedListWarningData(o[1]); @@ -1272,7 +1315,7 @@ buildCounterAutoscalerAggregatedListWarning++; if (buildCounterAutoscalerAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1677(); + o.data = buildUnnamed1728(); o.message = "foo"; } buildCounterAutoscalerAggregatedListWarning--; @@ -1283,7 +1326,7 @@ buildCounterAutoscalerAggregatedListWarning++; if (buildCounterAutoscalerAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1677(o.data); + checkUnnamed1728(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalerAggregatedListWarning--; @@ -1295,10 +1338,11 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1676(); + o.items = buildUnnamed1726(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1727(); o.warning = buildAutoscalerAggregatedListWarning(); } buildCounterAutoscalerAggregatedList--; @@ -1309,23 +1353,24 @@ buildCounterAutoscalerAggregatedList++; if (buildCounterAutoscalerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1676(o.items); + checkUnnamed1726(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1727(o.unreachables); checkAutoscalerAggregatedListWarning(o.warning); } buildCounterAutoscalerAggregatedList--; } -buildUnnamed1678() { +buildUnnamed1729() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed1678(core.List<api.Autoscaler> o) { +checkUnnamed1729(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -1352,14 +1397,14 @@ buildCounterAutoscalerListWarningData--; } -buildUnnamed1679() { +buildUnnamed1730() { var o = new core.List<api.AutoscalerListWarningData>(); o.add(buildAutoscalerListWarningData()); o.add(buildAutoscalerListWarningData()); return o; } -checkUnnamed1679(core.List<api.AutoscalerListWarningData> o) { +checkUnnamed1730(core.List<api.AutoscalerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalerListWarningData(o[0]); checkAutoscalerListWarningData(o[1]); @@ -1371,7 +1416,7 @@ buildCounterAutoscalerListWarning++; if (buildCounterAutoscalerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1679(); + o.data = buildUnnamed1730(); o.message = "foo"; } buildCounterAutoscalerListWarning--; @@ -1382,7 +1427,7 @@ buildCounterAutoscalerListWarning++; if (buildCounterAutoscalerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1679(o.data); + checkUnnamed1730(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalerListWarning--; @@ -1394,7 +1439,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed1678(); + o.items = buildUnnamed1729(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1408,7 +1453,7 @@ buildCounterAutoscalerList++; if (buildCounterAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1678(o.items); + checkUnnamed1729(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1438,14 +1483,14 @@ buildCounterAutoscalerStatusDetails--; } -buildUnnamed1680() { +buildUnnamed1731() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed1680(core.List<api.Autoscaler> o) { +checkUnnamed1731(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -1472,14 +1517,14 @@ buildCounterAutoscalersScopedListWarningData--; } -buildUnnamed1681() { +buildUnnamed1732() { var o = new core.List<api.AutoscalersScopedListWarningData>(); o.add(buildAutoscalersScopedListWarningData()); o.add(buildAutoscalersScopedListWarningData()); return o; } -checkUnnamed1681(core.List<api.AutoscalersScopedListWarningData> o) { +checkUnnamed1732(core.List<api.AutoscalersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalersScopedListWarningData(o[0]); checkAutoscalersScopedListWarningData(o[1]); @@ -1491,7 +1536,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1681(); + o.data = buildUnnamed1732(); o.message = "foo"; } buildCounterAutoscalersScopedListWarning--; @@ -1502,7 +1547,7 @@ buildCounterAutoscalersScopedListWarning++; if (buildCounterAutoscalersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1681(o.data); + checkUnnamed1732(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterAutoscalersScopedListWarning--; @@ -1513,7 +1558,7 @@ var o = new api.AutoscalersScopedList(); buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - o.autoscalers = buildUnnamed1680(); + o.autoscalers = buildUnnamed1731(); o.warning = buildAutoscalersScopedListWarning(); } buildCounterAutoscalersScopedList--; @@ -1523,20 +1568,20 @@ checkAutoscalersScopedList(api.AutoscalersScopedList o) { buildCounterAutoscalersScopedList++; if (buildCounterAutoscalersScopedList < 3) { - checkUnnamed1680(o.autoscalers); + checkUnnamed1731(o.autoscalers); checkAutoscalersScopedListWarning(o.warning); } buildCounterAutoscalersScopedList--; } -buildUnnamed1682() { +buildUnnamed1733() { var o = new core.List<api.AutoscalingPolicyCustomMetricUtilization>(); o.add(buildAutoscalingPolicyCustomMetricUtilization()); o.add(buildAutoscalingPolicyCustomMetricUtilization()); return o; } -checkUnnamed1682(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { +checkUnnamed1733(core.List<api.AutoscalingPolicyCustomMetricUtilization> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicyCustomMetricUtilization(o[0]); checkAutoscalingPolicyCustomMetricUtilization(o[1]); @@ -1549,12 +1594,13 @@ if (buildCounterAutoscalingPolicy < 3) { o.coolDownPeriodSec = 42; o.cpuUtilization = buildAutoscalingPolicyCpuUtilization(); - o.customMetricUtilizations = buildUnnamed1682(); + o.customMetricUtilizations = buildUnnamed1733(); o.loadBalancingUtilization = buildAutoscalingPolicyLoadBalancingUtilization(); o.maxNumReplicas = 42; o.minNumReplicas = 42; o.mode = "foo"; + o.scaleInControl = buildAutoscalingPolicyScaleInControl(); } buildCounterAutoscalingPolicy--; return o; @@ -1565,11 +1611,12 @@ if (buildCounterAutoscalingPolicy < 3) { unittest.expect(o.coolDownPeriodSec, unittest.equals(42)); checkAutoscalingPolicyCpuUtilization(o.cpuUtilization); - checkUnnamed1682(o.customMetricUtilizations); + checkUnnamed1733(o.customMetricUtilizations); checkAutoscalingPolicyLoadBalancingUtilization(o.loadBalancingUtilization); unittest.expect(o.maxNumReplicas, unittest.equals(42)); unittest.expect(o.minNumReplicas, unittest.equals(42)); unittest.expect(o.mode, unittest.equals('foo')); + checkAutoscalingPolicyScaleInControl(o.scaleInControl); } buildCounterAutoscalingPolicy--; } @@ -1637,6 +1684,27 @@ buildCounterAutoscalingPolicyLoadBalancingUtilization--; } +core.int buildCounterAutoscalingPolicyScaleInControl = 0; +buildAutoscalingPolicyScaleInControl() { + var o = new api.AutoscalingPolicyScaleInControl(); + buildCounterAutoscalingPolicyScaleInControl++; + if (buildCounterAutoscalingPolicyScaleInControl < 3) { + o.maxScaledInReplicas = buildFixedOrPercent(); + o.timeWindowSec = 42; + } + buildCounterAutoscalingPolicyScaleInControl--; + return o; +} + +checkAutoscalingPolicyScaleInControl(api.AutoscalingPolicyScaleInControl o) { + buildCounterAutoscalingPolicyScaleInControl++; + if (buildCounterAutoscalingPolicyScaleInControl < 3) { + checkFixedOrPercent(o.maxScaledInReplicas); + unittest.expect(o.timeWindowSec, unittest.equals(42)); + } + buildCounterAutoscalingPolicyScaleInControl--; +} + core.int buildCounterBackend = 0; buildBackend() { var o = new api.Backend(); @@ -1713,14 +1781,14 @@ buildCounterBackendBucket--; } -buildUnnamed1683() { +buildUnnamed1734() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1683(core.List<core.String> o) { +checkUnnamed1734(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1732,7 +1800,7 @@ buildCounterBackendBucketCdnPolicy++; if (buildCounterBackendBucketCdnPolicy < 3) { o.signedUrlCacheMaxAgeSec = "foo"; - o.signedUrlKeyNames = buildUnnamed1683(); + o.signedUrlKeyNames = buildUnnamed1734(); } buildCounterBackendBucketCdnPolicy--; return o; @@ -1742,19 +1810,19 @@ buildCounterBackendBucketCdnPolicy++; if (buildCounterBackendBucketCdnPolicy < 3) { unittest.expect(o.signedUrlCacheMaxAgeSec, unittest.equals('foo')); - checkUnnamed1683(o.signedUrlKeyNames); + checkUnnamed1734(o.signedUrlKeyNames); } buildCounterBackendBucketCdnPolicy--; } -buildUnnamed1684() { +buildUnnamed1735() { var o = new core.List<api.BackendBucket>(); o.add(buildBackendBucket()); o.add(buildBackendBucket()); return o; } -checkUnnamed1684(core.List<api.BackendBucket> o) { +checkUnnamed1735(core.List<api.BackendBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucket(o[0]); checkBackendBucket(o[1]); @@ -1781,14 +1849,14 @@ buildCounterBackendBucketListWarningData--; } -buildUnnamed1685() { +buildUnnamed1736() { var o = new core.List<api.BackendBucketListWarningData>(); o.add(buildBackendBucketListWarningData()); o.add(buildBackendBucketListWarningData()); return o; } -checkUnnamed1685(core.List<api.BackendBucketListWarningData> o) { +checkUnnamed1736(core.List<api.BackendBucketListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendBucketListWarningData(o[0]); checkBackendBucketListWarningData(o[1]); @@ -1800,7 +1868,7 @@ buildCounterBackendBucketListWarning++; if (buildCounterBackendBucketListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1685(); + o.data = buildUnnamed1736(); o.message = "foo"; } buildCounterBackendBucketListWarning--; @@ -1811,7 +1879,7 @@ buildCounterBackendBucketListWarning++; if (buildCounterBackendBucketListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1685(o.data); + checkUnnamed1736(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendBucketListWarning--; @@ -1823,7 +1891,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { o.id = "foo"; - o.items = buildUnnamed1684(); + o.items = buildUnnamed1735(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -1837,7 +1905,7 @@ buildCounterBackendBucketList++; if (buildCounterBackendBucketList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1684(o.items); + checkUnnamed1735(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1846,40 +1914,40 @@ buildCounterBackendBucketList--; } -buildUnnamed1686() { +buildUnnamed1737() { var o = new core.List<api.Backend>(); o.add(buildBackend()); o.add(buildBackend()); return o; } -checkUnnamed1686(core.List<api.Backend> o) { +checkUnnamed1737(core.List<api.Backend> o) { unittest.expect(o, unittest.hasLength(2)); checkBackend(o[0]); checkBackend(o[1]); } -buildUnnamed1687() { +buildUnnamed1738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1687(core.List<core.String> o) { +checkUnnamed1738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1688() { +buildUnnamed1739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1688(core.List<core.String> o) { +checkUnnamed1739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1891,18 +1959,18 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { o.affinityCookieTtlSec = 42; - o.backends = buildUnnamed1686(); + o.backends = buildUnnamed1737(); o.cdnPolicy = buildBackendServiceCdnPolicy(); o.circuitBreakers = buildCircuitBreakers(); o.connectionDraining = buildConnectionDraining(); o.consistentHash = buildConsistentHashLoadBalancerSettings(); o.creationTimestamp = "foo"; - o.customRequestHeaders = buildUnnamed1687(); + o.customRequestHeaders = buildUnnamed1738(); o.description = "foo"; o.enableCDN = true; o.failoverPolicy = buildBackendServiceFailoverPolicy(); o.fingerprint = "foo"; - o.healthChecks = buildUnnamed1688(); + o.healthChecks = buildUnnamed1739(); o.iap = buildBackendServiceIAP(); o.id = "foo"; o.kind = "foo"; @@ -1929,18 +1997,18 @@ buildCounterBackendService++; if (buildCounterBackendService < 3) { unittest.expect(o.affinityCookieTtlSec, unittest.equals(42)); - checkUnnamed1686(o.backends); + checkUnnamed1737(o.backends); checkBackendServiceCdnPolicy(o.cdnPolicy); checkCircuitBreakers(o.circuitBreakers); checkConnectionDraining(o.connectionDraining); checkConsistentHashLoadBalancerSettings(o.consistentHash); unittest.expect(o.creationTimestamp, unittest.equals('foo')); - checkUnnamed1687(o.customRequestHeaders); + checkUnnamed1738(o.customRequestHeaders); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.enableCDN, unittest.isTrue); checkBackendServiceFailoverPolicy(o.failoverPolicy); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1688(o.healthChecks); + checkUnnamed1739(o.healthChecks); checkBackendServiceIAP(o.iap); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -1962,19 +2030,32 @@ buildCounterBackendService--; } -buildUnnamed1689() { +buildUnnamed1740() { var o = new core.Map<core.String, api.BackendServicesScopedList>(); o["x"] = buildBackendServicesScopedList(); o["y"] = buildBackendServicesScopedList(); return o; } -checkUnnamed1689(core.Map<core.String, api.BackendServicesScopedList> o) { +checkUnnamed1740(core.Map<core.String, api.BackendServicesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedList(o["x"]); checkBackendServicesScopedList(o["y"]); } +buildUnnamed1741() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1741(core.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 buildCounterBackendServiceAggregatedListWarningData = 0; buildBackendServiceAggregatedListWarningData() { var o = new api.BackendServiceAggregatedListWarningData(); @@ -1997,14 +2078,14 @@ buildCounterBackendServiceAggregatedListWarningData--; } -buildUnnamed1690() { +buildUnnamed1742() { var o = new core.List<api.BackendServiceAggregatedListWarningData>(); o.add(buildBackendServiceAggregatedListWarningData()); o.add(buildBackendServiceAggregatedListWarningData()); return o; } -checkUnnamed1690(core.List<api.BackendServiceAggregatedListWarningData> o) { +checkUnnamed1742(core.List<api.BackendServiceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceAggregatedListWarningData(o[0]); checkBackendServiceAggregatedListWarningData(o[1]); @@ -2016,7 +2097,7 @@ buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1690(); + o.data = buildUnnamed1742(); o.message = "foo"; } buildCounterBackendServiceAggregatedListWarning--; @@ -2028,7 +2109,7 @@ buildCounterBackendServiceAggregatedListWarning++; if (buildCounterBackendServiceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1690(o.data); + checkUnnamed1742(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServiceAggregatedListWarning--; @@ -2040,10 +2121,11 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1689(); + o.items = buildUnnamed1740(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1741(); o.warning = buildBackendServiceAggregatedListWarning(); } buildCounterBackendServiceAggregatedList--; @@ -2054,23 +2136,24 @@ buildCounterBackendServiceAggregatedList++; if (buildCounterBackendServiceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1689(o.items); + checkUnnamed1740(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1741(o.unreachables); checkBackendServiceAggregatedListWarning(o.warning); } buildCounterBackendServiceAggregatedList--; } -buildUnnamed1691() { +buildUnnamed1743() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1691(core.List<core.String> o) { +checkUnnamed1743(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2083,7 +2166,7 @@ if (buildCounterBackendServiceCdnPolicy < 3) { o.cacheKeyPolicy = buildCacheKeyPolicy(); o.signedUrlCacheMaxAgeSec = "foo"; - o.signedUrlKeyNames = buildUnnamed1691(); + o.signedUrlKeyNames = buildUnnamed1743(); } buildCounterBackendServiceCdnPolicy--; return o; @@ -2094,7 +2177,7 @@ if (buildCounterBackendServiceCdnPolicy < 3) { checkCacheKeyPolicy(o.cacheKeyPolicy); unittest.expect(o.signedUrlCacheMaxAgeSec, unittest.equals('foo')); - checkUnnamed1691(o.signedUrlKeyNames); + checkUnnamed1743(o.signedUrlKeyNames); } buildCounterBackendServiceCdnPolicy--; } @@ -2122,14 +2205,27 @@ buildCounterBackendServiceFailoverPolicy--; } -buildUnnamed1692() { +buildUnnamed1744() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1744(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')); +} + +buildUnnamed1745() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed1692(core.List<api.HealthStatus> o) { +checkUnnamed1745(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -2140,7 +2236,8 @@ var o = new api.BackendServiceGroupHealth(); buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - o.healthStatus = buildUnnamed1692(); + o.annotations = buildUnnamed1744(); + o.healthStatus = buildUnnamed1745(); o.kind = "foo"; } buildCounterBackendServiceGroupHealth--; @@ -2150,7 +2247,8 @@ checkBackendServiceGroupHealth(api.BackendServiceGroupHealth o) { buildCounterBackendServiceGroupHealth++; if (buildCounterBackendServiceGroupHealth < 3) { - checkUnnamed1692(o.healthStatus); + checkUnnamed1744(o.annotations); + checkUnnamed1745(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBackendServiceGroupHealth--; @@ -2181,14 +2279,14 @@ buildCounterBackendServiceIAP--; } -buildUnnamed1693() { +buildUnnamed1746() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed1693(core.List<api.BackendService> o) { +checkUnnamed1746(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -2215,14 +2313,14 @@ buildCounterBackendServiceListWarningData--; } -buildUnnamed1694() { +buildUnnamed1747() { var o = new core.List<api.BackendServiceListWarningData>(); o.add(buildBackendServiceListWarningData()); o.add(buildBackendServiceListWarningData()); return o; } -checkUnnamed1694(core.List<api.BackendServiceListWarningData> o) { +checkUnnamed1747(core.List<api.BackendServiceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServiceListWarningData(o[0]); checkBackendServiceListWarningData(o[1]); @@ -2234,7 +2332,7 @@ buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1694(); + o.data = buildUnnamed1747(); o.message = "foo"; } buildCounterBackendServiceListWarning--; @@ -2245,7 +2343,7 @@ buildCounterBackendServiceListWarning++; if (buildCounterBackendServiceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1694(o.data); + checkUnnamed1747(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServiceListWarning--; @@ -2257,7 +2355,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { o.id = "foo"; - o.items = buildUnnamed1693(); + o.items = buildUnnamed1746(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2271,7 +2369,7 @@ buildCounterBackendServiceList++; if (buildCounterBackendServiceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1693(o.items); + checkUnnamed1746(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2320,14 +2418,14 @@ buildCounterBackendServiceReference--; } -buildUnnamed1695() { +buildUnnamed1748() { var o = new core.List<api.BackendService>(); o.add(buildBackendService()); o.add(buildBackendService()); return o; } -checkUnnamed1695(core.List<api.BackendService> o) { +checkUnnamed1748(core.List<api.BackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendService(o[0]); checkBackendService(o[1]); @@ -2355,14 +2453,14 @@ buildCounterBackendServicesScopedListWarningData--; } -buildUnnamed1696() { +buildUnnamed1749() { var o = new core.List<api.BackendServicesScopedListWarningData>(); o.add(buildBackendServicesScopedListWarningData()); o.add(buildBackendServicesScopedListWarningData()); return o; } -checkUnnamed1696(core.List<api.BackendServicesScopedListWarningData> o) { +checkUnnamed1749(core.List<api.BackendServicesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendServicesScopedListWarningData(o[0]); checkBackendServicesScopedListWarningData(o[1]); @@ -2374,7 +2472,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1696(); + o.data = buildUnnamed1749(); o.message = "foo"; } buildCounterBackendServicesScopedListWarning--; @@ -2385,7 +2483,7 @@ buildCounterBackendServicesScopedListWarning++; if (buildCounterBackendServicesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1696(o.data); + checkUnnamed1749(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterBackendServicesScopedListWarning--; @@ -2396,7 +2494,7 @@ var o = new api.BackendServicesScopedList(); buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - o.backendServices = buildUnnamed1695(); + o.backendServices = buildUnnamed1748(); o.warning = buildBackendServicesScopedListWarning(); } buildCounterBackendServicesScopedList--; @@ -2406,20 +2504,20 @@ checkBackendServicesScopedList(api.BackendServicesScopedList o) { buildCounterBackendServicesScopedList++; if (buildCounterBackendServicesScopedList < 3) { - checkUnnamed1695(o.backendServices); + checkUnnamed1748(o.backendServices); checkBackendServicesScopedListWarning(o.warning); } buildCounterBackendServicesScopedList--; } -buildUnnamed1697() { +buildUnnamed1750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1697(core.List<core.String> o) { +checkUnnamed1750(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2430,8 +2528,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed1697(); + o.members = buildUnnamed1750(); o.role = "foo"; } buildCounterBinding--; @@ -2441,8 +2540,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed1697(o.members); + checkUnnamed1750(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -2469,27 +2569,27 @@ buildCounterCacheInvalidationRule--; } -buildUnnamed1698() { +buildUnnamed1751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1698(core.List<core.String> o) { +checkUnnamed1751(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1699() { +buildUnnamed1752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1699(core.List<core.String> o) { +checkUnnamed1752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2503,8 +2603,8 @@ o.includeHost = true; o.includeProtocol = true; o.includeQueryString = true; - o.queryStringBlacklist = buildUnnamed1698(); - o.queryStringWhitelist = buildUnnamed1699(); + o.queryStringBlacklist = buildUnnamed1751(); + o.queryStringWhitelist = buildUnnamed1752(); } buildCounterCacheKeyPolicy--; return o; @@ -2516,8 +2616,8 @@ unittest.expect(o.includeHost, unittest.isTrue); unittest.expect(o.includeProtocol, unittest.isTrue); unittest.expect(o.includeQueryString, unittest.isTrue); - checkUnnamed1698(o.queryStringBlacklist); - checkUnnamed1699(o.queryStringWhitelist); + checkUnnamed1751(o.queryStringBlacklist); + checkUnnamed1752(o.queryStringWhitelist); } buildCounterCacheKeyPolicy--; } @@ -2549,27 +2649,27 @@ buildCounterCircuitBreakers--; } -buildUnnamed1700() { +buildUnnamed1753() { var o = new core.List<api.Reservation>(); o.add(buildReservation()); o.add(buildReservation()); return o; } -checkUnnamed1700(core.List<api.Reservation> o) { +checkUnnamed1753(core.List<api.Reservation> o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); } -buildUnnamed1701() { +buildUnnamed1754() { var o = new core.List<api.ResourceCommitment>(); o.add(buildResourceCommitment()); o.add(buildResourceCommitment()); return o; } -checkUnnamed1701(core.List<api.ResourceCommitment> o) { +checkUnnamed1754(core.List<api.ResourceCommitment> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceCommitment(o[0]); checkResourceCommitment(o[1]); @@ -2580,16 +2680,18 @@ var o = new api.Commitment(); buildCounterCommitment++; if (buildCounterCommitment < 3) { + o.category = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; o.endTimestamp = "foo"; o.id = "foo"; o.kind = "foo"; + o.licenseResource = buildLicenseResourceCommitment(); o.name = "foo"; o.plan = "foo"; o.region = "foo"; - o.reservations = buildUnnamed1700(); - o.resources = buildUnnamed1701(); + o.reservations = buildUnnamed1753(); + o.resources = buildUnnamed1754(); o.selfLink = "foo"; o.startTimestamp = "foo"; o.status = "foo"; @@ -2602,16 +2704,18 @@ checkCommitment(api.Commitment o) { buildCounterCommitment++; if (buildCounterCommitment < 3) { + unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.endTimestamp, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + checkLicenseResourceCommitment(o.licenseResource); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.plan, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1700(o.reservations); - checkUnnamed1701(o.resources); + checkUnnamed1753(o.reservations); + checkUnnamed1754(o.resources); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.startTimestamp, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); @@ -2620,19 +2724,32 @@ buildCounterCommitment--; } -buildUnnamed1702() { +buildUnnamed1755() { var o = new core.Map<core.String, api.CommitmentsScopedList>(); o["x"] = buildCommitmentsScopedList(); o["y"] = buildCommitmentsScopedList(); return o; } -checkUnnamed1702(core.Map<core.String, api.CommitmentsScopedList> o) { +checkUnnamed1755(core.Map<core.String, api.CommitmentsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedList(o["x"]); checkCommitmentsScopedList(o["y"]); } +buildUnnamed1756() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1756(core.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 buildCounterCommitmentAggregatedListWarningData = 0; buildCommitmentAggregatedListWarningData() { var o = new api.CommitmentAggregatedListWarningData(); @@ -2655,14 +2772,14 @@ buildCounterCommitmentAggregatedListWarningData--; } -buildUnnamed1703() { +buildUnnamed1757() { var o = new core.List<api.CommitmentAggregatedListWarningData>(); o.add(buildCommitmentAggregatedListWarningData()); o.add(buildCommitmentAggregatedListWarningData()); return o; } -checkUnnamed1703(core.List<api.CommitmentAggregatedListWarningData> o) { +checkUnnamed1757(core.List<api.CommitmentAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentAggregatedListWarningData(o[0]); checkCommitmentAggregatedListWarningData(o[1]); @@ -2674,7 +2791,7 @@ buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1703(); + o.data = buildUnnamed1757(); o.message = "foo"; } buildCounterCommitmentAggregatedListWarning--; @@ -2685,7 +2802,7 @@ buildCounterCommitmentAggregatedListWarning++; if (buildCounterCommitmentAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1703(o.data); + checkUnnamed1757(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentAggregatedListWarning--; @@ -2697,10 +2814,11 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1702(); + o.items = buildUnnamed1755(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1756(); o.warning = buildCommitmentAggregatedListWarning(); } buildCounterCommitmentAggregatedList--; @@ -2711,23 +2829,24 @@ buildCounterCommitmentAggregatedList++; if (buildCounterCommitmentAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1702(o.items); + checkUnnamed1755(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1756(o.unreachables); checkCommitmentAggregatedListWarning(o.warning); } buildCounterCommitmentAggregatedList--; } -buildUnnamed1704() { +buildUnnamed1758() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed1704(core.List<api.Commitment> o) { +checkUnnamed1758(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -2754,14 +2873,14 @@ buildCounterCommitmentListWarningData--; } -buildUnnamed1705() { +buildUnnamed1759() { var o = new core.List<api.CommitmentListWarningData>(); o.add(buildCommitmentListWarningData()); o.add(buildCommitmentListWarningData()); return o; } -checkUnnamed1705(core.List<api.CommitmentListWarningData> o) { +checkUnnamed1759(core.List<api.CommitmentListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentListWarningData(o[0]); checkCommitmentListWarningData(o[1]); @@ -2773,7 +2892,7 @@ buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1705(); + o.data = buildUnnamed1759(); o.message = "foo"; } buildCounterCommitmentListWarning--; @@ -2784,7 +2903,7 @@ buildCounterCommitmentListWarning++; if (buildCounterCommitmentListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1705(o.data); + checkUnnamed1759(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentListWarning--; @@ -2796,7 +2915,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { o.id = "foo"; - o.items = buildUnnamed1704(); + o.items = buildUnnamed1758(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2810,7 +2929,7 @@ buildCounterCommitmentList++; if (buildCounterCommitmentList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1704(o.items); + checkUnnamed1758(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2819,14 +2938,14 @@ buildCounterCommitmentList--; } -buildUnnamed1706() { +buildUnnamed1760() { var o = new core.List<api.Commitment>(); o.add(buildCommitment()); o.add(buildCommitment()); return o; } -checkUnnamed1706(core.List<api.Commitment> o) { +checkUnnamed1760(core.List<api.Commitment> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitment(o[0]); checkCommitment(o[1]); @@ -2853,14 +2972,14 @@ buildCounterCommitmentsScopedListWarningData--; } -buildUnnamed1707() { +buildUnnamed1761() { var o = new core.List<api.CommitmentsScopedListWarningData>(); o.add(buildCommitmentsScopedListWarningData()); o.add(buildCommitmentsScopedListWarningData()); return o; } -checkUnnamed1707(core.List<api.CommitmentsScopedListWarningData> o) { +checkUnnamed1761(core.List<api.CommitmentsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkCommitmentsScopedListWarningData(o[0]); checkCommitmentsScopedListWarningData(o[1]); @@ -2872,7 +2991,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1707(); + o.data = buildUnnamed1761(); o.message = "foo"; } buildCounterCommitmentsScopedListWarning--; @@ -2883,7 +3002,7 @@ buildCounterCommitmentsScopedListWarning++; if (buildCounterCommitmentsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1707(o.data); + checkUnnamed1761(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterCommitmentsScopedListWarning--; @@ -2894,7 +3013,7 @@ var o = new api.CommitmentsScopedList(); buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - o.commitments = buildUnnamed1706(); + o.commitments = buildUnnamed1760(); o.warning = buildCommitmentsScopedListWarning(); } buildCounterCommitmentsScopedList--; @@ -2904,20 +3023,20 @@ checkCommitmentsScopedList(api.CommitmentsScopedList o) { buildCounterCommitmentsScopedList++; if (buildCounterCommitmentsScopedList < 3) { - checkUnnamed1706(o.commitments); + checkUnnamed1760(o.commitments); checkCommitmentsScopedListWarning(o.warning); } buildCounterCommitmentsScopedList--; } -buildUnnamed1708() { +buildUnnamed1762() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1708(core.List<core.String> o) { +checkUnnamed1762(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2932,7 +3051,7 @@ o.op = "foo"; o.svc = "foo"; o.sys = "foo"; - o.values = buildUnnamed1708(); + o.values = buildUnnamed1762(); } buildCounterCondition--; return o; @@ -2945,11 +3064,30 @@ unittest.expect(o.op, unittest.equals('foo')); unittest.expect(o.svc, unittest.equals('foo')); unittest.expect(o.sys, unittest.equals('foo')); - checkUnnamed1708(o.values); + checkUnnamed1762(o.values); } buildCounterCondition--; } +core.int buildCounterConfidentialInstanceConfig = 0; +buildConfidentialInstanceConfig() { + var o = new api.ConfidentialInstanceConfig(); + buildCounterConfidentialInstanceConfig++; + if (buildCounterConfidentialInstanceConfig < 3) { + o.enableConfidentialCompute = true; + } + buildCounterConfidentialInstanceConfig--; + return o; +} + +checkConfidentialInstanceConfig(api.ConfidentialInstanceConfig o) { + buildCounterConfidentialInstanceConfig++; + if (buildCounterConfidentialInstanceConfig < 3) { + unittest.expect(o.enableConfidentialCompute, unittest.isTrue); + } + buildCounterConfidentialInstanceConfig--; +} + core.int buildCounterConnectionDraining = 0; buildConnectionDraining() { var o = new api.ConnectionDraining(); @@ -3017,66 +3155,66 @@ buildCounterConsistentHashLoadBalancerSettingsHttpCookie--; } -buildUnnamed1709() { +buildUnnamed1763() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1709(core.List<core.String> o) { +checkUnnamed1763(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1710() { +buildUnnamed1764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1710(core.List<core.String> o) { +checkUnnamed1764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1711() { +buildUnnamed1765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1711(core.List<core.String> o) { +checkUnnamed1765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1712() { +buildUnnamed1766() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1712(core.List<core.String> o) { +checkUnnamed1766(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1713() { +buildUnnamed1767() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1713(core.List<core.String> o) { +checkUnnamed1767(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3088,12 +3226,12 @@ buildCounterCorsPolicy++; if (buildCounterCorsPolicy < 3) { o.allowCredentials = true; - o.allowHeaders = buildUnnamed1709(); - o.allowMethods = buildUnnamed1710(); - o.allowOriginRegexes = buildUnnamed1711(); - o.allowOrigins = buildUnnamed1712(); + o.allowHeaders = buildUnnamed1763(); + o.allowMethods = buildUnnamed1764(); + o.allowOriginRegexes = buildUnnamed1765(); + o.allowOrigins = buildUnnamed1766(); o.disabled = true; - o.exposeHeaders = buildUnnamed1713(); + o.exposeHeaders = buildUnnamed1767(); o.maxAge = 42; } buildCounterCorsPolicy--; @@ -3104,12 +3242,12 @@ buildCounterCorsPolicy++; if (buildCounterCorsPolicy < 3) { unittest.expect(o.allowCredentials, unittest.isTrue); - checkUnnamed1709(o.allowHeaders); - checkUnnamed1710(o.allowMethods); - checkUnnamed1711(o.allowOriginRegexes); - checkUnnamed1712(o.allowOrigins); + checkUnnamed1763(o.allowHeaders); + checkUnnamed1764(o.allowMethods); + checkUnnamed1765(o.allowOriginRegexes); + checkUnnamed1766(o.allowOrigins); unittest.expect(o.disabled, unittest.isTrue); - checkUnnamed1713(o.exposeHeaders); + checkUnnamed1767(o.exposeHeaders); unittest.expect(o.maxAge, unittest.equals(42)); } buildCounterCorsPolicy--; @@ -3189,92 +3327,92 @@ buildCounterDeprecationStatus--; } -buildUnnamed1714() { +buildUnnamed1768() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed1714(core.List<api.GuestOsFeature> o) { +checkUnnamed1768(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed1715() { +buildUnnamed1769() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1715(core.Map<core.String, core.String> o) { +checkUnnamed1769(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')); } -buildUnnamed1716() { +buildUnnamed1770() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1716(core.List<core.String> o) { +checkUnnamed1770(core.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() { +buildUnnamed1771() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1717(core.List<core.String> o) { +checkUnnamed1771(core.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() { +buildUnnamed1772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1718(core.List<core.String> o) { +checkUnnamed1772(core.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() { +buildUnnamed1773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1719(core.List<core.String> o) { +checkUnnamed1773(core.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() { +buildUnnamed1774() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1720(core.List<core.String> o) { +checkUnnamed1774(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3288,23 +3426,25 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.diskEncryptionKey = buildCustomerEncryptionKey(); - o.guestOsFeatures = buildUnnamed1714(); + o.guestOsFeatures = buildUnnamed1768(); o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed1715(); + o.labels = buildUnnamed1769(); o.lastAttachTimestamp = "foo"; o.lastDetachTimestamp = "foo"; - o.licenseCodes = buildUnnamed1716(); - o.licenses = buildUnnamed1717(); + o.licenseCodes = buildUnnamed1770(); + o.licenses = buildUnnamed1771(); o.name = "foo"; o.options = "foo"; o.physicalBlockSizeBytes = "foo"; o.region = "foo"; - o.replicaZones = buildUnnamed1718(); - o.resourcePolicies = buildUnnamed1719(); + o.replicaZones = buildUnnamed1772(); + o.resourcePolicies = buildUnnamed1773(); o.selfLink = "foo"; o.sizeGb = "foo"; + o.sourceDisk = "foo"; + o.sourceDiskId = "foo"; o.sourceImage = "foo"; o.sourceImageEncryptionKey = buildCustomerEncryptionKey(); o.sourceImageId = "foo"; @@ -3313,7 +3453,7 @@ o.sourceSnapshotId = "foo"; o.status = "foo"; o.type = "foo"; - o.users = buildUnnamed1720(); + o.users = buildUnnamed1774(); o.zone = "foo"; } buildCounterDisk--; @@ -3326,23 +3466,25 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkCustomerEncryptionKey(o.diskEncryptionKey); - checkUnnamed1714(o.guestOsFeatures); + checkUnnamed1768(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1715(o.labels); + checkUnnamed1769(o.labels); unittest.expect(o.lastAttachTimestamp, unittest.equals('foo')); unittest.expect(o.lastDetachTimestamp, unittest.equals('foo')); - checkUnnamed1716(o.licenseCodes); - checkUnnamed1717(o.licenses); + checkUnnamed1770(o.licenseCodes); + checkUnnamed1771(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.options, unittest.equals('foo')); unittest.expect(o.physicalBlockSizeBytes, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1718(o.replicaZones); - checkUnnamed1719(o.resourcePolicies); + checkUnnamed1772(o.replicaZones); + checkUnnamed1773(o.resourcePolicies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sizeGb, unittest.equals('foo')); + unittest.expect(o.sourceDisk, unittest.equals('foo')); + unittest.expect(o.sourceDiskId, unittest.equals('foo')); unittest.expect(o.sourceImage, unittest.equals('foo')); checkCustomerEncryptionKey(o.sourceImageEncryptionKey); unittest.expect(o.sourceImageId, unittest.equals('foo')); @@ -3351,25 +3493,38 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed1720(o.users); + checkUnnamed1774(o.users); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterDisk--; } -buildUnnamed1721() { +buildUnnamed1775() { var o = new core.Map<core.String, api.DisksScopedList>(); o["x"] = buildDisksScopedList(); o["y"] = buildDisksScopedList(); return o; } -checkUnnamed1721(core.Map<core.String, api.DisksScopedList> o) { +checkUnnamed1775(core.Map<core.String, api.DisksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedList(o["x"]); checkDisksScopedList(o["y"]); } +buildUnnamed1776() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1776(core.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 buildCounterDiskAggregatedListWarningData = 0; buildDiskAggregatedListWarningData() { var o = new api.DiskAggregatedListWarningData(); @@ -3391,14 +3546,14 @@ buildCounterDiskAggregatedListWarningData--; } -buildUnnamed1722() { +buildUnnamed1777() { var o = new core.List<api.DiskAggregatedListWarningData>(); o.add(buildDiskAggregatedListWarningData()); o.add(buildDiskAggregatedListWarningData()); return o; } -checkUnnamed1722(core.List<api.DiskAggregatedListWarningData> o) { +checkUnnamed1777(core.List<api.DiskAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskAggregatedListWarningData(o[0]); checkDiskAggregatedListWarningData(o[1]); @@ -3410,7 +3565,7 @@ buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1722(); + o.data = buildUnnamed1777(); o.message = "foo"; } buildCounterDiskAggregatedListWarning--; @@ -3421,7 +3576,7 @@ buildCounterDiskAggregatedListWarning++; if (buildCounterDiskAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1722(o.data); + checkUnnamed1777(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskAggregatedListWarning--; @@ -3433,10 +3588,11 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1721(); + o.items = buildUnnamed1775(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1776(); o.warning = buildDiskAggregatedListWarning(); } buildCounterDiskAggregatedList--; @@ -3447,10 +3603,11 @@ buildCounterDiskAggregatedList++; if (buildCounterDiskAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1721(o.items); + checkUnnamed1775(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1776(o.unreachables); checkDiskAggregatedListWarning(o.warning); } buildCounterDiskAggregatedList--; @@ -3481,14 +3638,14 @@ buildCounterDiskInstantiationConfig--; } -buildUnnamed1723() { +buildUnnamed1778() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed1723(core.List<api.Disk> o) { +checkUnnamed1778(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -3515,14 +3672,14 @@ buildCounterDiskListWarningData--; } -buildUnnamed1724() { +buildUnnamed1779() { var o = new core.List<api.DiskListWarningData>(); o.add(buildDiskListWarningData()); o.add(buildDiskListWarningData()); return o; } -checkUnnamed1724(core.List<api.DiskListWarningData> o) { +checkUnnamed1779(core.List<api.DiskListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskListWarningData(o[0]); checkDiskListWarningData(o[1]); @@ -3534,7 +3691,7 @@ buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1724(); + o.data = buildUnnamed1779(); o.message = "foo"; } buildCounterDiskListWarning--; @@ -3545,7 +3702,7 @@ buildCounterDiskListWarning++; if (buildCounterDiskListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1724(o.data); + checkUnnamed1779(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskListWarning--; @@ -3557,7 +3714,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { o.id = "foo"; - o.items = buildUnnamed1723(); + o.items = buildUnnamed1778(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3571,7 +3728,7 @@ buildCounterDiskList++; if (buildCounterDiskList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1723(o.items); + checkUnnamed1778(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3640,19 +3797,32 @@ buildCounterDiskType--; } -buildUnnamed1725() { +buildUnnamed1780() { var o = new core.Map<core.String, api.DiskTypesScopedList>(); o["x"] = buildDiskTypesScopedList(); o["y"] = buildDiskTypesScopedList(); return o; } -checkUnnamed1725(core.Map<core.String, api.DiskTypesScopedList> o) { +checkUnnamed1780(core.Map<core.String, api.DiskTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedList(o["x"]); checkDiskTypesScopedList(o["y"]); } +buildUnnamed1781() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1781(core.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 buildCounterDiskTypeAggregatedListWarningData = 0; buildDiskTypeAggregatedListWarningData() { var o = new api.DiskTypeAggregatedListWarningData(); @@ -3675,14 +3845,14 @@ buildCounterDiskTypeAggregatedListWarningData--; } -buildUnnamed1726() { +buildUnnamed1782() { var o = new core.List<api.DiskTypeAggregatedListWarningData>(); o.add(buildDiskTypeAggregatedListWarningData()); o.add(buildDiskTypeAggregatedListWarningData()); return o; } -checkUnnamed1726(core.List<api.DiskTypeAggregatedListWarningData> o) { +checkUnnamed1782(core.List<api.DiskTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeAggregatedListWarningData(o[0]); checkDiskTypeAggregatedListWarningData(o[1]); @@ -3694,7 +3864,7 @@ buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1726(); + o.data = buildUnnamed1782(); o.message = "foo"; } buildCounterDiskTypeAggregatedListWarning--; @@ -3705,7 +3875,7 @@ buildCounterDiskTypeAggregatedListWarning++; if (buildCounterDiskTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1726(o.data); + checkUnnamed1782(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypeAggregatedListWarning--; @@ -3717,10 +3887,11 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1725(); + o.items = buildUnnamed1780(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1781(); o.warning = buildDiskTypeAggregatedListWarning(); } buildCounterDiskTypeAggregatedList--; @@ -3731,23 +3902,24 @@ buildCounterDiskTypeAggregatedList++; if (buildCounterDiskTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1725(o.items); + checkUnnamed1780(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1781(o.unreachables); checkDiskTypeAggregatedListWarning(o.warning); } buildCounterDiskTypeAggregatedList--; } -buildUnnamed1727() { +buildUnnamed1783() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed1727(core.List<api.DiskType> o) { +checkUnnamed1783(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -3774,14 +3946,14 @@ buildCounterDiskTypeListWarningData--; } -buildUnnamed1728() { +buildUnnamed1784() { var o = new core.List<api.DiskTypeListWarningData>(); o.add(buildDiskTypeListWarningData()); o.add(buildDiskTypeListWarningData()); return o; } -checkUnnamed1728(core.List<api.DiskTypeListWarningData> o) { +checkUnnamed1784(core.List<api.DiskTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypeListWarningData(o[0]); checkDiskTypeListWarningData(o[1]); @@ -3793,7 +3965,7 @@ buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1728(); + o.data = buildUnnamed1784(); o.message = "foo"; } buildCounterDiskTypeListWarning--; @@ -3804,7 +3976,7 @@ buildCounterDiskTypeListWarning++; if (buildCounterDiskTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1728(o.data); + checkUnnamed1784(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypeListWarning--; @@ -3816,7 +3988,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed1727(); + o.items = buildUnnamed1783(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -3830,7 +4002,7 @@ buildCounterDiskTypeList++; if (buildCounterDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1727(o.items); + checkUnnamed1783(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -3839,14 +4011,14 @@ buildCounterDiskTypeList--; } -buildUnnamed1729() { +buildUnnamed1785() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed1729(core.List<api.DiskType> o) { +checkUnnamed1785(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -3873,14 +4045,14 @@ buildCounterDiskTypesScopedListWarningData--; } -buildUnnamed1730() { +buildUnnamed1786() { var o = new core.List<api.DiskTypesScopedListWarningData>(); o.add(buildDiskTypesScopedListWarningData()); o.add(buildDiskTypesScopedListWarningData()); return o; } -checkUnnamed1730(core.List<api.DiskTypesScopedListWarningData> o) { +checkUnnamed1786(core.List<api.DiskTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskTypesScopedListWarningData(o[0]); checkDiskTypesScopedListWarningData(o[1]); @@ -3892,7 +4064,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1730(); + o.data = buildUnnamed1786(); o.message = "foo"; } buildCounterDiskTypesScopedListWarning--; @@ -3903,7 +4075,7 @@ buildCounterDiskTypesScopedListWarning++; if (buildCounterDiskTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1730(o.data); + checkUnnamed1786(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDiskTypesScopedListWarning--; @@ -3914,7 +4086,7 @@ var o = new api.DiskTypesScopedList(); buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - o.diskTypes = buildUnnamed1729(); + o.diskTypes = buildUnnamed1785(); o.warning = buildDiskTypesScopedListWarning(); } buildCounterDiskTypesScopedList--; @@ -3924,20 +4096,20 @@ checkDiskTypesScopedList(api.DiskTypesScopedList o) { buildCounterDiskTypesScopedList++; if (buildCounterDiskTypesScopedList < 3) { - checkUnnamed1729(o.diskTypes); + checkUnnamed1785(o.diskTypes); checkDiskTypesScopedListWarning(o.warning); } buildCounterDiskTypesScopedList--; } -buildUnnamed1731() { +buildUnnamed1787() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1731(core.List<core.String> o) { +checkUnnamed1787(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3948,7 +4120,7 @@ var o = new api.DisksAddResourcePoliciesRequest(); buildCounterDisksAddResourcePoliciesRequest++; if (buildCounterDisksAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1731(); + o.resourcePolicies = buildUnnamed1787(); } buildCounterDisksAddResourcePoliciesRequest--; return o; @@ -3957,19 +4129,19 @@ checkDisksAddResourcePoliciesRequest(api.DisksAddResourcePoliciesRequest o) { buildCounterDisksAddResourcePoliciesRequest++; if (buildCounterDisksAddResourcePoliciesRequest < 3) { - checkUnnamed1731(o.resourcePolicies); + checkUnnamed1787(o.resourcePolicies); } buildCounterDisksAddResourcePoliciesRequest--; } -buildUnnamed1732() { +buildUnnamed1788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1732(core.List<core.String> o) { +checkUnnamed1788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3980,7 +4152,7 @@ var o = new api.DisksRemoveResourcePoliciesRequest(); buildCounterDisksRemoveResourcePoliciesRequest++; if (buildCounterDisksRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1732(); + o.resourcePolicies = buildUnnamed1788(); } buildCounterDisksRemoveResourcePoliciesRequest--; return o; @@ -3990,7 +4162,7 @@ api.DisksRemoveResourcePoliciesRequest o) { buildCounterDisksRemoveResourcePoliciesRequest++; if (buildCounterDisksRemoveResourcePoliciesRequest < 3) { - checkUnnamed1732(o.resourcePolicies); + checkUnnamed1788(o.resourcePolicies); } buildCounterDisksRemoveResourcePoliciesRequest--; } @@ -4014,14 +4186,14 @@ buildCounterDisksResizeRequest--; } -buildUnnamed1733() { +buildUnnamed1789() { var o = new core.List<api.Disk>(); o.add(buildDisk()); o.add(buildDisk()); return o; } -checkUnnamed1733(core.List<api.Disk> o) { +checkUnnamed1789(core.List<api.Disk> o) { unittest.expect(o, unittest.hasLength(2)); checkDisk(o[0]); checkDisk(o[1]); @@ -4048,14 +4220,14 @@ buildCounterDisksScopedListWarningData--; } -buildUnnamed1734() { +buildUnnamed1790() { var o = new core.List<api.DisksScopedListWarningData>(); o.add(buildDisksScopedListWarningData()); o.add(buildDisksScopedListWarningData()); return o; } -checkUnnamed1734(core.List<api.DisksScopedListWarningData> o) { +checkUnnamed1790(core.List<api.DisksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkDisksScopedListWarningData(o[0]); checkDisksScopedListWarningData(o[1]); @@ -4067,7 +4239,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1734(); + o.data = buildUnnamed1790(); o.message = "foo"; } buildCounterDisksScopedListWarning--; @@ -4078,7 +4250,7 @@ buildCounterDisksScopedListWarning++; if (buildCounterDisksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1734(o.data); + checkUnnamed1790(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDisksScopedListWarning--; @@ -4089,7 +4261,7 @@ var o = new api.DisksScopedList(); buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - o.disks = buildUnnamed1733(); + o.disks = buildUnnamed1789(); o.warning = buildDisksScopedListWarning(); } buildCounterDisksScopedList--; @@ -4099,7 +4271,7 @@ checkDisksScopedList(api.DisksScopedList o) { buildCounterDisksScopedList++; if (buildCounterDisksScopedList < 3) { - checkUnnamed1733(o.disks); + checkUnnamed1789(o.disks); checkDisksScopedListWarning(o.warning); } buildCounterDisksScopedList--; @@ -4124,14 +4296,14 @@ buildCounterDisplayDevice--; } -buildUnnamed1735() { +buildUnnamed1791() { var o = new core.List<api.DistributionPolicyZoneConfiguration>(); o.add(buildDistributionPolicyZoneConfiguration()); o.add(buildDistributionPolicyZoneConfiguration()); return o; } -checkUnnamed1735(core.List<api.DistributionPolicyZoneConfiguration> o) { +checkUnnamed1791(core.List<api.DistributionPolicyZoneConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkDistributionPolicyZoneConfiguration(o[0]); checkDistributionPolicyZoneConfiguration(o[1]); @@ -4142,7 +4314,7 @@ var o = new api.DistributionPolicy(); buildCounterDistributionPolicy++; if (buildCounterDistributionPolicy < 3) { - o.zones = buildUnnamed1735(); + o.zones = buildUnnamed1791(); } buildCounterDistributionPolicy--; return o; @@ -4151,7 +4323,7 @@ checkDistributionPolicy(api.DistributionPolicy o) { buildCounterDistributionPolicy++; if (buildCounterDistributionPolicy < 3) { - checkUnnamed1735(o.zones); + checkUnnamed1791(o.zones); } buildCounterDistributionPolicy--; } @@ -4224,14 +4396,14 @@ buildCounterExchangedPeeringRoute--; } -buildUnnamed1736() { +buildUnnamed1792() { var o = new core.List<api.ExchangedPeeringRoute>(); o.add(buildExchangedPeeringRoute()); o.add(buildExchangedPeeringRoute()); return o; } -checkUnnamed1736(core.List<api.ExchangedPeeringRoute> o) { +checkUnnamed1792(core.List<api.ExchangedPeeringRoute> o) { unittest.expect(o, unittest.hasLength(2)); checkExchangedPeeringRoute(o[0]); checkExchangedPeeringRoute(o[1]); @@ -4259,14 +4431,14 @@ buildCounterExchangedPeeringRoutesListWarningData--; } -buildUnnamed1737() { +buildUnnamed1793() { var o = new core.List<api.ExchangedPeeringRoutesListWarningData>(); o.add(buildExchangedPeeringRoutesListWarningData()); o.add(buildExchangedPeeringRoutesListWarningData()); return o; } -checkUnnamed1737(core.List<api.ExchangedPeeringRoutesListWarningData> o) { +checkUnnamed1793(core.List<api.ExchangedPeeringRoutesListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkExchangedPeeringRoutesListWarningData(o[0]); checkExchangedPeeringRoutesListWarningData(o[1]); @@ -4278,7 +4450,7 @@ buildCounterExchangedPeeringRoutesListWarning++; if (buildCounterExchangedPeeringRoutesListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1737(); + o.data = buildUnnamed1793(); o.message = "foo"; } buildCounterExchangedPeeringRoutesListWarning--; @@ -4290,7 +4462,7 @@ buildCounterExchangedPeeringRoutesListWarning++; if (buildCounterExchangedPeeringRoutesListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1737(o.data); + checkUnnamed1793(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterExchangedPeeringRoutesListWarning--; @@ -4302,7 +4474,7 @@ buildCounterExchangedPeeringRoutesList++; if (buildCounterExchangedPeeringRoutesList < 3) { o.id = "foo"; - o.items = buildUnnamed1736(); + o.items = buildUnnamed1792(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4316,7 +4488,7 @@ buildCounterExchangedPeeringRoutesList++; if (buildCounterExchangedPeeringRoutesList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1736(o.items); + checkUnnamed1792(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4350,27 +4522,27 @@ buildCounterExpr--; } -buildUnnamed1738() { +buildUnnamed1794() { var o = new core.List<api.ExternalVpnGatewayInterface>(); o.add(buildExternalVpnGatewayInterface()); o.add(buildExternalVpnGatewayInterface()); return o; } -checkUnnamed1738(core.List<api.ExternalVpnGatewayInterface> o) { +checkUnnamed1794(core.List<api.ExternalVpnGatewayInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGatewayInterface(o[0]); checkExternalVpnGatewayInterface(o[1]); } -buildUnnamed1739() { +buildUnnamed1795() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1739(core.Map<core.String, core.String> o) { +checkUnnamed1795(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')); @@ -4384,10 +4556,10 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed1738(); + o.interfaces = buildUnnamed1794(); o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed1739(); + o.labels = buildUnnamed1795(); o.name = "foo"; o.redundancyType = "foo"; o.selfLink = "foo"; @@ -4402,10 +4574,10 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1738(o.interfaces); + checkUnnamed1794(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1739(o.labels); + checkUnnamed1795(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.redundancyType, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4434,14 +4606,14 @@ buildCounterExternalVpnGatewayInterface--; } -buildUnnamed1740() { +buildUnnamed1796() { var o = new core.List<api.ExternalVpnGateway>(); o.add(buildExternalVpnGateway()); o.add(buildExternalVpnGateway()); return o; } -checkUnnamed1740(core.List<api.ExternalVpnGateway> o) { +checkUnnamed1796(core.List<api.ExternalVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGateway(o[0]); checkExternalVpnGateway(o[1]); @@ -4469,14 +4641,14 @@ buildCounterExternalVpnGatewayListWarningData--; } -buildUnnamed1741() { +buildUnnamed1797() { var o = new core.List<api.ExternalVpnGatewayListWarningData>(); o.add(buildExternalVpnGatewayListWarningData()); o.add(buildExternalVpnGatewayListWarningData()); return o; } -checkUnnamed1741(core.List<api.ExternalVpnGatewayListWarningData> o) { +checkUnnamed1797(core.List<api.ExternalVpnGatewayListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkExternalVpnGatewayListWarningData(o[0]); checkExternalVpnGatewayListWarningData(o[1]); @@ -4488,7 +4660,7 @@ buildCounterExternalVpnGatewayListWarning++; if (buildCounterExternalVpnGatewayListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1741(); + o.data = buildUnnamed1797(); o.message = "foo"; } buildCounterExternalVpnGatewayListWarning--; @@ -4499,7 +4671,7 @@ buildCounterExternalVpnGatewayListWarning++; if (buildCounterExternalVpnGatewayListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1741(o.data); + checkUnnamed1797(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterExternalVpnGatewayListWarning--; @@ -4512,7 +4684,7 @@ if (buildCounterExternalVpnGatewayList < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1740(); + o.items = buildUnnamed1796(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4527,7 +4699,7 @@ if (buildCounterExternalVpnGatewayList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1740(o.items); + checkUnnamed1796(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4557,14 +4729,14 @@ buildCounterFileContentBuffer--; } -buildUnnamed1742() { +buildUnnamed1798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1742(core.List<core.String> o) { +checkUnnamed1798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4576,7 +4748,7 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed1742(); + o.ports = buildUnnamed1798(); } buildCounterFirewallAllowed--; return o; @@ -4586,32 +4758,32 @@ buildCounterFirewallAllowed++; if (buildCounterFirewallAllowed < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed1742(o.ports); + checkUnnamed1798(o.ports); } buildCounterFirewallAllowed--; } -buildUnnamed1743() { +buildUnnamed1799() { var o = new core.List<api.FirewallAllowed>(); o.add(buildFirewallAllowed()); o.add(buildFirewallAllowed()); return o; } -checkUnnamed1743(core.List<api.FirewallAllowed> o) { +checkUnnamed1799(core.List<api.FirewallAllowed> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallAllowed(o[0]); checkFirewallAllowed(o[1]); } -buildUnnamed1744() { +buildUnnamed1800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1744(core.List<core.String> o) { +checkUnnamed1800(core.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 +4795,7 @@ buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { o.IPProtocol = "foo"; - o.ports = buildUnnamed1744(); + o.ports = buildUnnamed1800(); } buildCounterFirewallDenied--; return o; @@ -4633,97 +4805,97 @@ buildCounterFirewallDenied++; if (buildCounterFirewallDenied < 3) { unittest.expect(o.IPProtocol, unittest.equals('foo')); - checkUnnamed1744(o.ports); + checkUnnamed1800(o.ports); } buildCounterFirewallDenied--; } -buildUnnamed1745() { +buildUnnamed1801() { var o = new core.List<api.FirewallDenied>(); o.add(buildFirewallDenied()); o.add(buildFirewallDenied()); return o; } -checkUnnamed1745(core.List<api.FirewallDenied> o) { +checkUnnamed1801(core.List<api.FirewallDenied> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallDenied(o[0]); checkFirewallDenied(o[1]); } -buildUnnamed1746() { +buildUnnamed1802() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1746(core.List<core.String> 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')); } -buildUnnamed1747() { +buildUnnamed1803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1747(core.List<core.String> 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')); } -buildUnnamed1748() { +buildUnnamed1804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1748(core.List<core.String> 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')); } -buildUnnamed1749() { +buildUnnamed1805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1749(core.List<core.String> 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')); } -buildUnnamed1750() { +buildUnnamed1806() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1750(core.List<core.String> 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')); } -buildUnnamed1751() { +buildUnnamed1807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1751(core.List<core.String> 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')); @@ -4734,11 +4906,11 @@ var o = new api.Firewall(); buildCounterFirewall++; if (buildCounterFirewall < 3) { - o.allowed = buildUnnamed1743(); + o.allowed = buildUnnamed1799(); o.creationTimestamp = "foo"; - o.denied = buildUnnamed1745(); + o.denied = buildUnnamed1801(); o.description = "foo"; - o.destinationRanges = buildUnnamed1746(); + o.destinationRanges = buildUnnamed1802(); o.direction = "foo"; o.disabled = true; o.id = "foo"; @@ -4748,11 +4920,11 @@ o.network = "foo"; o.priority = 42; o.selfLink = "foo"; - o.sourceRanges = buildUnnamed1747(); - o.sourceServiceAccounts = buildUnnamed1748(); - o.sourceTags = buildUnnamed1749(); - o.targetServiceAccounts = buildUnnamed1750(); - o.targetTags = buildUnnamed1751(); + o.sourceRanges = buildUnnamed1803(); + o.sourceServiceAccounts = buildUnnamed1804(); + o.sourceTags = buildUnnamed1805(); + o.targetServiceAccounts = buildUnnamed1806(); + o.targetTags = buildUnnamed1807(); } buildCounterFirewall--; return o; @@ -4761,11 +4933,11 @@ checkFirewall(api.Firewall o) { buildCounterFirewall++; if (buildCounterFirewall < 3) { - checkUnnamed1743(o.allowed); + checkUnnamed1799(o.allowed); unittest.expect(o.creationTimestamp, unittest.equals('foo')); - checkUnnamed1745(o.denied); + checkUnnamed1801(o.denied); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1746(o.destinationRanges); + checkUnnamed1802(o.destinationRanges); unittest.expect(o.direction, unittest.equals('foo')); unittest.expect(o.disabled, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); @@ -4775,23 +4947,23 @@ unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed1747(o.sourceRanges); - checkUnnamed1748(o.sourceServiceAccounts); - checkUnnamed1749(o.sourceTags); - checkUnnamed1750(o.targetServiceAccounts); - checkUnnamed1751(o.targetTags); + checkUnnamed1803(o.sourceRanges); + checkUnnamed1804(o.sourceServiceAccounts); + checkUnnamed1805(o.sourceTags); + checkUnnamed1806(o.targetServiceAccounts); + checkUnnamed1807(o.targetTags); } buildCounterFirewall--; } -buildUnnamed1752() { +buildUnnamed1808() { var o = new core.List<api.Firewall>(); o.add(buildFirewall()); o.add(buildFirewall()); return o; } -checkUnnamed1752(core.List<api.Firewall> o) { +checkUnnamed1808(core.List<api.Firewall> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewall(o[0]); checkFirewall(o[1]); @@ -4818,14 +4990,14 @@ buildCounterFirewallListWarningData--; } -buildUnnamed1753() { +buildUnnamed1809() { var o = new core.List<api.FirewallListWarningData>(); o.add(buildFirewallListWarningData()); o.add(buildFirewallListWarningData()); return o; } -checkUnnamed1753(core.List<api.FirewallListWarningData> o) { +checkUnnamed1809(core.List<api.FirewallListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkFirewallListWarningData(o[0]); checkFirewallListWarningData(o[1]); @@ -4837,7 +5009,7 @@ buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1753(); + o.data = buildUnnamed1809(); o.message = "foo"; } buildCounterFirewallListWarning--; @@ -4848,7 +5020,7 @@ buildCounterFirewallListWarning++; if (buildCounterFirewallListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1753(o.data); + checkUnnamed1809(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterFirewallListWarning--; @@ -4860,7 +5032,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { o.id = "foo"; - o.items = buildUnnamed1752(); + o.items = buildUnnamed1808(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -4874,7 +5046,7 @@ buildCounterFirewallList++; if (buildCounterFirewallList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1752(o.items); + checkUnnamed1808(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -4889,6 +5061,7 @@ buildCounterFirewallLogConfig++; if (buildCounterFirewallLogConfig < 3) { o.enable = true; + o.metadata = "foo"; } buildCounterFirewallLogConfig--; return o; @@ -4898,6 +5071,7 @@ buildCounterFirewallLogConfig++; if (buildCounterFirewallLogConfig < 3) { unittest.expect(o.enable, unittest.isTrue); + unittest.expect(o.metadata, unittest.equals('foo')); } buildCounterFirewallLogConfig--; } @@ -4925,27 +5099,27 @@ buildCounterFixedOrPercent--; } -buildUnnamed1754() { +buildUnnamed1810() { var o = new core.List<api.MetadataFilter>(); o.add(buildMetadataFilter()); o.add(buildMetadataFilter()); return o; } -checkUnnamed1754(core.List<api.MetadataFilter> o) { +checkUnnamed1810(core.List<api.MetadataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilter(o[0]); checkMetadataFilter(o[1]); } -buildUnnamed1755() { +buildUnnamed1811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1755(core.List<core.String> 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')); @@ -4969,12 +5143,12 @@ o.isMirroringCollector = true; o.kind = "foo"; o.loadBalancingScheme = "foo"; - o.metadataFilters = buildUnnamed1754(); + o.metadataFilters = buildUnnamed1810(); o.name = "foo"; o.network = "foo"; o.networkTier = "foo"; o.portRange = "foo"; - o.ports = buildUnnamed1755(); + o.ports = buildUnnamed1811(); o.region = "foo"; o.selfLink = "foo"; o.serviceLabel = "foo"; @@ -5002,12 +5176,12 @@ unittest.expect(o.isMirroringCollector, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.loadBalancingScheme, unittest.equals('foo')); - checkUnnamed1754(o.metadataFilters); + checkUnnamed1810(o.metadataFilters); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.networkTier, unittest.equals('foo')); unittest.expect(o.portRange, unittest.equals('foo')); - checkUnnamed1755(o.ports); + checkUnnamed1811(o.ports); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.serviceLabel, unittest.equals('foo')); @@ -5018,19 +5192,32 @@ buildCounterForwardingRule--; } -buildUnnamed1756() { +buildUnnamed1812() { var o = new core.Map<core.String, api.ForwardingRulesScopedList>(); o["x"] = buildForwardingRulesScopedList(); o["y"] = buildForwardingRulesScopedList(); return o; } -checkUnnamed1756(core.Map<core.String, api.ForwardingRulesScopedList> o) { +checkUnnamed1812(core.Map<core.String, api.ForwardingRulesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedList(o["x"]); checkForwardingRulesScopedList(o["y"]); } +buildUnnamed1813() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1813(core.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 buildCounterForwardingRuleAggregatedListWarningData = 0; buildForwardingRuleAggregatedListWarningData() { var o = new api.ForwardingRuleAggregatedListWarningData(); @@ -5053,14 +5240,14 @@ buildCounterForwardingRuleAggregatedListWarningData--; } -buildUnnamed1757() { +buildUnnamed1814() { var o = new core.List<api.ForwardingRuleAggregatedListWarningData>(); o.add(buildForwardingRuleAggregatedListWarningData()); o.add(buildForwardingRuleAggregatedListWarningData()); return o; } -checkUnnamed1757(core.List<api.ForwardingRuleAggregatedListWarningData> o) { +checkUnnamed1814(core.List<api.ForwardingRuleAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleAggregatedListWarningData(o[0]); checkForwardingRuleAggregatedListWarningData(o[1]); @@ -5072,7 +5259,7 @@ buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1757(); + o.data = buildUnnamed1814(); o.message = "foo"; } buildCounterForwardingRuleAggregatedListWarning--; @@ -5084,7 +5271,7 @@ buildCounterForwardingRuleAggregatedListWarning++; if (buildCounterForwardingRuleAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1757(o.data); + checkUnnamed1814(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRuleAggregatedListWarning--; @@ -5096,10 +5283,11 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1756(); + o.items = buildUnnamed1812(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1813(); o.warning = buildForwardingRuleAggregatedListWarning(); } buildCounterForwardingRuleAggregatedList--; @@ -5110,23 +5298,24 @@ buildCounterForwardingRuleAggregatedList++; if (buildCounterForwardingRuleAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1756(o.items); + checkUnnamed1812(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1813(o.unreachables); checkForwardingRuleAggregatedListWarning(o.warning); } buildCounterForwardingRuleAggregatedList--; } -buildUnnamed1758() { +buildUnnamed1815() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed1758(core.List<api.ForwardingRule> o) { +checkUnnamed1815(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -5153,14 +5342,14 @@ buildCounterForwardingRuleListWarningData--; } -buildUnnamed1759() { +buildUnnamed1816() { var o = new core.List<api.ForwardingRuleListWarningData>(); o.add(buildForwardingRuleListWarningData()); o.add(buildForwardingRuleListWarningData()); return o; } -checkUnnamed1759(core.List<api.ForwardingRuleListWarningData> o) { +checkUnnamed1816(core.List<api.ForwardingRuleListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRuleListWarningData(o[0]); checkForwardingRuleListWarningData(o[1]); @@ -5172,7 +5361,7 @@ buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1759(); + o.data = buildUnnamed1816(); o.message = "foo"; } buildCounterForwardingRuleListWarning--; @@ -5183,7 +5372,7 @@ buildCounterForwardingRuleListWarning++; if (buildCounterForwardingRuleListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1759(o.data); + checkUnnamed1816(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRuleListWarning--; @@ -5195,7 +5384,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { o.id = "foo"; - o.items = buildUnnamed1758(); + o.items = buildUnnamed1815(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5209,7 +5398,7 @@ buildCounterForwardingRuleList++; if (buildCounterForwardingRuleList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1758(o.items); + checkUnnamed1815(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5237,14 +5426,14 @@ buildCounterForwardingRuleReference--; } -buildUnnamed1760() { +buildUnnamed1817() { var o = new core.List<api.ForwardingRule>(); o.add(buildForwardingRule()); o.add(buildForwardingRule()); return o; } -checkUnnamed1760(core.List<api.ForwardingRule> o) { +checkUnnamed1817(core.List<api.ForwardingRule> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRule(o[0]); checkForwardingRule(o[1]); @@ -5272,14 +5461,14 @@ buildCounterForwardingRulesScopedListWarningData--; } -buildUnnamed1761() { +buildUnnamed1818() { var o = new core.List<api.ForwardingRulesScopedListWarningData>(); o.add(buildForwardingRulesScopedListWarningData()); o.add(buildForwardingRulesScopedListWarningData()); return o; } -checkUnnamed1761(core.List<api.ForwardingRulesScopedListWarningData> o) { +checkUnnamed1818(core.List<api.ForwardingRulesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingRulesScopedListWarningData(o[0]); checkForwardingRulesScopedListWarningData(o[1]); @@ -5291,7 +5480,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1761(); + o.data = buildUnnamed1818(); o.message = "foo"; } buildCounterForwardingRulesScopedListWarning--; @@ -5302,7 +5491,7 @@ buildCounterForwardingRulesScopedListWarning++; if (buildCounterForwardingRulesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1761(o.data); + checkUnnamed1818(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterForwardingRulesScopedListWarning--; @@ -5313,7 +5502,7 @@ var o = new api.ForwardingRulesScopedList(); buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - o.forwardingRules = buildUnnamed1760(); + o.forwardingRules = buildUnnamed1817(); o.warning = buildForwardingRulesScopedListWarning(); } buildCounterForwardingRulesScopedList--; @@ -5323,20 +5512,45 @@ checkForwardingRulesScopedList(api.ForwardingRulesScopedList o) { buildCounterForwardingRulesScopedList++; if (buildCounterForwardingRulesScopedList < 3) { - checkUnnamed1760(o.forwardingRules); + checkUnnamed1817(o.forwardingRules); checkForwardingRulesScopedListWarning(o.warning); } buildCounterForwardingRulesScopedList--; } -buildUnnamed1762() { +core.int buildCounterGRPCHealthCheck = 0; +buildGRPCHealthCheck() { + var o = new api.GRPCHealthCheck(); + buildCounterGRPCHealthCheck++; + if (buildCounterGRPCHealthCheck < 3) { + o.grpcServiceName = "foo"; + o.port = 42; + o.portName = "foo"; + o.portSpecification = "foo"; + } + buildCounterGRPCHealthCheck--; + return o; +} + +checkGRPCHealthCheck(api.GRPCHealthCheck o) { + buildCounterGRPCHealthCheck++; + if (buildCounterGRPCHealthCheck < 3) { + unittest.expect(o.grpcServiceName, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.portName, unittest.equals('foo')); + unittest.expect(o.portSpecification, unittest.equals('foo')); + } + buildCounterGRPCHealthCheck--; +} + +buildUnnamed1819() { var o = new core.List<api.NetworkEndpoint>(); o.add(buildNetworkEndpoint()); o.add(buildNetworkEndpoint()); return o; } -checkUnnamed1762(core.List<api.NetworkEndpoint> o) { +checkUnnamed1819(core.List<api.NetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -5347,7 +5561,7 @@ var o = new api.GlobalNetworkEndpointGroupsAttachEndpointsRequest(); buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed1762(); + o.networkEndpoints = buildUnnamed1819(); } buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest--; return o; @@ -5357,19 +5571,19 @@ api.GlobalNetworkEndpointGroupsAttachEndpointsRequest o) { buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest < 3) { - checkUnnamed1762(o.networkEndpoints); + checkUnnamed1819(o.networkEndpoints); } buildCounterGlobalNetworkEndpointGroupsAttachEndpointsRequest--; } -buildUnnamed1763() { +buildUnnamed1820() { var o = new core.List<api.NetworkEndpoint>(); o.add(buildNetworkEndpoint()); o.add(buildNetworkEndpoint()); return o; } -checkUnnamed1763(core.List<api.NetworkEndpoint> o) { +checkUnnamed1820(core.List<api.NetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -5380,7 +5594,7 @@ var o = new api.GlobalNetworkEndpointGroupsDetachEndpointsRequest(); buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed1763(); + o.networkEndpoints = buildUnnamed1820(); } buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest--; return o; @@ -5390,19 +5604,19 @@ api.GlobalNetworkEndpointGroupsDetachEndpointsRequest o) { buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest < 3) { - checkUnnamed1763(o.networkEndpoints); + checkUnnamed1820(o.networkEndpoints); } buildCounterGlobalNetworkEndpointGroupsDetachEndpointsRequest--; } -buildUnnamed1764() { +buildUnnamed1821() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1764(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')); @@ -5414,7 +5628,7 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed1764(); + o.labels = buildUnnamed1821(); } buildCounterGlobalSetLabelsRequest--; return o; @@ -5424,19 +5638,19 @@ buildCounterGlobalSetLabelsRequest++; if (buildCounterGlobalSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1764(o.labels); + checkUnnamed1821(o.labels); } buildCounterGlobalSetLabelsRequest--; } -buildUnnamed1765() { +buildUnnamed1822() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1765(core.List<api.Binding> o) { +checkUnnamed1822(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -5447,7 +5661,7 @@ var o = new api.GlobalSetPolicyRequest(); buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - o.bindings = buildUnnamed1765(); + o.bindings = buildUnnamed1822(); o.etag = "foo"; o.policy = buildPolicy(); } @@ -5458,7 +5672,7 @@ checkGlobalSetPolicyRequest(api.GlobalSetPolicyRequest o) { buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - checkUnnamed1765(o.bindings); + checkUnnamed1822(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); checkPolicy(o.policy); } @@ -5517,14 +5731,14 @@ buildCounterGuestAttributesEntry--; } -buildUnnamed1766() { +buildUnnamed1823() { var o = new core.List<api.GuestAttributesEntry>(); o.add(buildGuestAttributesEntry()); o.add(buildGuestAttributesEntry()); return o; } -checkUnnamed1766(core.List<api.GuestAttributesEntry> o) { +checkUnnamed1823(core.List<api.GuestAttributesEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestAttributesEntry(o[0]); checkGuestAttributesEntry(o[1]); @@ -5535,7 +5749,7 @@ var o = new api.GuestAttributesValue(); buildCounterGuestAttributesValue++; if (buildCounterGuestAttributesValue < 3) { - o.items = buildUnnamed1766(); + o.items = buildUnnamed1823(); } buildCounterGuestAttributesValue--; return o; @@ -5544,7 +5758,7 @@ checkGuestAttributesValue(api.GuestAttributesValue o) { buildCounterGuestAttributesValue++; if (buildCounterGuestAttributesValue < 3) { - checkUnnamed1766(o.items); + checkUnnamed1823(o.items); } buildCounterGuestAttributesValue--; } @@ -5669,6 +5883,7 @@ o.checkIntervalSec = 42; o.creationTimestamp = "foo"; o.description = "foo"; + o.grpcHealthCheck = buildGRPCHealthCheck(); o.healthyThreshold = 42; o.http2HealthCheck = buildHTTP2HealthCheck(); o.httpHealthCheck = buildHTTPHealthCheck(); @@ -5694,6 +5909,7 @@ unittest.expect(o.checkIntervalSec, unittest.equals(42)); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + checkGRPCHealthCheck(o.grpcHealthCheck); unittest.expect(o.healthyThreshold, unittest.equals(42)); checkHTTP2HealthCheck(o.http2HealthCheck); checkHTTPHealthCheck(o.httpHealthCheck); @@ -5712,14 +5928,14 @@ buildCounterHealthCheck--; } -buildUnnamed1767() { +buildUnnamed1824() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed1767(core.List<api.HealthCheck> o) { +checkUnnamed1824(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -5746,14 +5962,14 @@ buildCounterHealthCheckListWarningData--; } -buildUnnamed1768() { +buildUnnamed1825() { var o = new core.List<api.HealthCheckListWarningData>(); o.add(buildHealthCheckListWarningData()); o.add(buildHealthCheckListWarningData()); return o; } -checkUnnamed1768(core.List<api.HealthCheckListWarningData> o) { +checkUnnamed1825(core.List<api.HealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckListWarningData(o[0]); checkHealthCheckListWarningData(o[1]); @@ -5765,7 +5981,7 @@ buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1768(); + o.data = buildUnnamed1825(); o.message = "foo"; } buildCounterHealthCheckListWarning--; @@ -5776,7 +5992,7 @@ buildCounterHealthCheckListWarning++; if (buildCounterHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1768(o.data); + checkUnnamed1825(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHealthCheckListWarning--; @@ -5788,7 +6004,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed1767(); + o.items = buildUnnamed1824(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -5802,7 +6018,7 @@ buildCounterHealthCheckList++; if (buildCounterHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1767(o.items); + checkUnnamed1824(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -5830,19 +6046,231 @@ buildCounterHealthCheckReference--; } -buildUnnamed1769() { +buildUnnamed1826() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1826(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1827() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1827(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1828() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterHealthCheckService = 0; +buildHealthCheckService() { + var o = new api.HealthCheckService(); + buildCounterHealthCheckService++; + if (buildCounterHealthCheckService < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.fingerprint = "foo"; + o.healthChecks = buildUnnamed1826(); + o.healthStatusAggregationPolicy = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.networkEndpointGroups = buildUnnamed1827(); + o.notificationEndpoints = buildUnnamed1828(); + o.region = "foo"; + o.selfLink = "foo"; + } + buildCounterHealthCheckService--; + return o; +} + +checkHealthCheckService(api.HealthCheckService o) { + buildCounterHealthCheckService++; + if (buildCounterHealthCheckService < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.fingerprint, unittest.equals('foo')); + checkUnnamed1826(o.healthChecks); + unittest.expect(o.healthStatusAggregationPolicy, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed1827(o.networkEndpointGroups); + checkUnnamed1828(o.notificationEndpoints); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + } + buildCounterHealthCheckService--; +} + +core.int buildCounterHealthCheckServiceReference = 0; +buildHealthCheckServiceReference() { + var o = new api.HealthCheckServiceReference(); + buildCounterHealthCheckServiceReference++; + if (buildCounterHealthCheckServiceReference < 3) { + o.healthCheckService = "foo"; + } + buildCounterHealthCheckServiceReference--; + return o; +} + +checkHealthCheckServiceReference(api.HealthCheckServiceReference o) { + buildCounterHealthCheckServiceReference++; + if (buildCounterHealthCheckServiceReference < 3) { + unittest.expect(o.healthCheckService, unittest.equals('foo')); + } + buildCounterHealthCheckServiceReference--; +} + +buildUnnamed1829() { + var o = new core.List<api.HealthCheckService>(); + o.add(buildHealthCheckService()); + o.add(buildHealthCheckService()); + return o; +} + +checkUnnamed1829(core.List<api.HealthCheckService> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHealthCheckService(o[0]); + checkHealthCheckService(o[1]); +} + +core.int buildCounterHealthCheckServicesListWarningData = 0; +buildHealthCheckServicesListWarningData() { + var o = new api.HealthCheckServicesListWarningData(); + buildCounterHealthCheckServicesListWarningData++; + if (buildCounterHealthCheckServicesListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterHealthCheckServicesListWarningData--; + return o; +} + +checkHealthCheckServicesListWarningData( + api.HealthCheckServicesListWarningData o) { + buildCounterHealthCheckServicesListWarningData++; + if (buildCounterHealthCheckServicesListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterHealthCheckServicesListWarningData--; +} + +buildUnnamed1830() { + var o = new core.List<api.HealthCheckServicesListWarningData>(); + o.add(buildHealthCheckServicesListWarningData()); + o.add(buildHealthCheckServicesListWarningData()); + return o; +} + +checkUnnamed1830(core.List<api.HealthCheckServicesListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHealthCheckServicesListWarningData(o[0]); + checkHealthCheckServicesListWarningData(o[1]); +} + +core.int buildCounterHealthCheckServicesListWarning = 0; +buildHealthCheckServicesListWarning() { + var o = new api.HealthCheckServicesListWarning(); + buildCounterHealthCheckServicesListWarning++; + if (buildCounterHealthCheckServicesListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed1830(); + o.message = "foo"; + } + buildCounterHealthCheckServicesListWarning--; + return o; +} + +checkHealthCheckServicesListWarning(api.HealthCheckServicesListWarning o) { + buildCounterHealthCheckServicesListWarning++; + if (buildCounterHealthCheckServicesListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed1830(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterHealthCheckServicesListWarning--; +} + +core.int buildCounterHealthCheckServicesList = 0; +buildHealthCheckServicesList() { + var o = new api.HealthCheckServicesList(); + buildCounterHealthCheckServicesList++; + if (buildCounterHealthCheckServicesList < 3) { + o.id = "foo"; + o.items = buildUnnamed1829(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildHealthCheckServicesListWarning(); + } + buildCounterHealthCheckServicesList--; + return o; +} + +checkHealthCheckServicesList(api.HealthCheckServicesList o) { + buildCounterHealthCheckServicesList++; + if (buildCounterHealthCheckServicesList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed1829(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkHealthCheckServicesListWarning(o.warning); + } + buildCounterHealthCheckServicesList--; +} + +buildUnnamed1831() { var o = new core.Map<core.String, api.HealthChecksScopedList>(); o["x"] = buildHealthChecksScopedList(); o["y"] = buildHealthChecksScopedList(); return o; } -checkUnnamed1769(core.Map<core.String, api.HealthChecksScopedList> o) { +checkUnnamed1831(core.Map<core.String, api.HealthChecksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksScopedList(o["x"]); checkHealthChecksScopedList(o["y"]); } +buildUnnamed1832() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1832(core.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 buildCounterHealthChecksAggregatedListWarningData = 0; buildHealthChecksAggregatedListWarningData() { var o = new api.HealthChecksAggregatedListWarningData(); @@ -5865,14 +6293,14 @@ buildCounterHealthChecksAggregatedListWarningData--; } -buildUnnamed1770() { +buildUnnamed1833() { var o = new core.List<api.HealthChecksAggregatedListWarningData>(); o.add(buildHealthChecksAggregatedListWarningData()); o.add(buildHealthChecksAggregatedListWarningData()); return o; } -checkUnnamed1770(core.List<api.HealthChecksAggregatedListWarningData> o) { +checkUnnamed1833(core.List<api.HealthChecksAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksAggregatedListWarningData(o[0]); checkHealthChecksAggregatedListWarningData(o[1]); @@ -5884,7 +6312,7 @@ buildCounterHealthChecksAggregatedListWarning++; if (buildCounterHealthChecksAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1770(); + o.data = buildUnnamed1833(); o.message = "foo"; } buildCounterHealthChecksAggregatedListWarning--; @@ -5896,7 +6324,7 @@ buildCounterHealthChecksAggregatedListWarning++; if (buildCounterHealthChecksAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1770(o.data); + checkUnnamed1833(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHealthChecksAggregatedListWarning--; @@ -5908,10 +6336,11 @@ buildCounterHealthChecksAggregatedList++; if (buildCounterHealthChecksAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1769(); + o.items = buildUnnamed1831(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1832(); o.warning = buildHealthChecksAggregatedListWarning(); } buildCounterHealthChecksAggregatedList--; @@ -5922,23 +6351,24 @@ buildCounterHealthChecksAggregatedList++; if (buildCounterHealthChecksAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1769(o.items); + checkUnnamed1831(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1832(o.unreachables); checkHealthChecksAggregatedListWarning(o.warning); } buildCounterHealthChecksAggregatedList--; } -buildUnnamed1771() { +buildUnnamed1834() { var o = new core.List<api.HealthCheck>(); o.add(buildHealthCheck()); o.add(buildHealthCheck()); return o; } -checkUnnamed1771(core.List<api.HealthCheck> o) { +checkUnnamed1834(core.List<api.HealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheck(o[0]); checkHealthCheck(o[1]); @@ -5966,14 +6396,14 @@ buildCounterHealthChecksScopedListWarningData--; } -buildUnnamed1772() { +buildUnnamed1835() { var o = new core.List<api.HealthChecksScopedListWarningData>(); o.add(buildHealthChecksScopedListWarningData()); o.add(buildHealthChecksScopedListWarningData()); return o; } -checkUnnamed1772(core.List<api.HealthChecksScopedListWarningData> o) { +checkUnnamed1835(core.List<api.HealthChecksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthChecksScopedListWarningData(o[0]); checkHealthChecksScopedListWarningData(o[1]); @@ -5985,7 +6415,7 @@ buildCounterHealthChecksScopedListWarning++; if (buildCounterHealthChecksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1772(); + o.data = buildUnnamed1835(); o.message = "foo"; } buildCounterHealthChecksScopedListWarning--; @@ -5996,7 +6426,7 @@ buildCounterHealthChecksScopedListWarning++; if (buildCounterHealthChecksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1772(o.data); + checkUnnamed1835(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHealthChecksScopedListWarning--; @@ -6007,7 +6437,7 @@ var o = new api.HealthChecksScopedList(); buildCounterHealthChecksScopedList++; if (buildCounterHealthChecksScopedList < 3) { - o.healthChecks = buildUnnamed1771(); + o.healthChecks = buildUnnamed1834(); o.warning = buildHealthChecksScopedListWarning(); } buildCounterHealthChecksScopedList--; @@ -6017,17 +6447,31 @@ checkHealthChecksScopedList(api.HealthChecksScopedList o) { buildCounterHealthChecksScopedList++; if (buildCounterHealthChecksScopedList < 3) { - checkUnnamed1771(o.healthChecks); + checkUnnamed1834(o.healthChecks); checkHealthChecksScopedListWarning(o.warning); } buildCounterHealthChecksScopedList--; } +buildUnnamed1836() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1836(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 buildCounterHealthStatus = 0; buildHealthStatus() { var o = new api.HealthStatus(); buildCounterHealthStatus++; if (buildCounterHealthStatus < 3) { + o.annotations = buildUnnamed1836(); o.healthState = "foo"; o.instance = "foo"; o.ipAddress = "foo"; @@ -6040,6 +6484,7 @@ checkHealthStatus(api.HealthStatus o) { buildCounterHealthStatus++; if (buildCounterHealthStatus < 3) { + checkUnnamed1836(o.annotations); unittest.expect(o.healthState, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); unittest.expect(o.ipAddress, unittest.equals('foo')); @@ -6056,6 +6501,7 @@ o.backendService = buildBackendServiceReference(); o.forwardingRule = buildForwardingRuleReference(); o.healthCheck = buildHealthCheckReference(); + o.healthCheckService = buildHealthCheckServiceReference(); o.healthState = "foo"; } buildCounterHealthStatusForNetworkEndpoint--; @@ -6068,19 +6514,20 @@ checkBackendServiceReference(o.backendService); checkForwardingRuleReference(o.forwardingRule); checkHealthCheckReference(o.healthCheck); + checkHealthCheckServiceReference(o.healthCheckService); unittest.expect(o.healthState, unittest.equals('foo')); } buildCounterHealthStatusForNetworkEndpoint--; } -buildUnnamed1773() { +buildUnnamed1837() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1773(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')); @@ -6092,7 +6539,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { o.description = "foo"; - o.hosts = buildUnnamed1773(); + o.hosts = buildUnnamed1837(); o.pathMatcher = "foo"; } buildCounterHostRule--; @@ -6103,7 +6550,7 @@ buildCounterHostRule++; if (buildCounterHostRule < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1773(o.hosts); + checkUnnamed1837(o.hosts); unittest.expect(o.pathMatcher, unittest.equals('foo')); } buildCounterHostRule--; @@ -6172,53 +6619,53 @@ buildCounterHttpFaultInjection--; } -buildUnnamed1774() { +buildUnnamed1838() { var o = new core.List<api.HttpHeaderOption>(); o.add(buildHttpHeaderOption()); o.add(buildHttpHeaderOption()); return o; } -checkUnnamed1774(core.List<api.HttpHeaderOption> o) { +checkUnnamed1838(core.List<api.HttpHeaderOption> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderOption(o[0]); checkHttpHeaderOption(o[1]); } -buildUnnamed1775() { +buildUnnamed1839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1775(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')); } -buildUnnamed1776() { +buildUnnamed1840() { var o = new core.List<api.HttpHeaderOption>(); o.add(buildHttpHeaderOption()); o.add(buildHttpHeaderOption()); return o; } -checkUnnamed1776(core.List<api.HttpHeaderOption> o) { +checkUnnamed1840(core.List<api.HttpHeaderOption> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderOption(o[0]); checkHttpHeaderOption(o[1]); } -buildUnnamed1777() { +buildUnnamed1841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1777(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')); @@ -6229,10 +6676,10 @@ var o = new api.HttpHeaderAction(); buildCounterHttpHeaderAction++; if (buildCounterHttpHeaderAction < 3) { - o.requestHeadersToAdd = buildUnnamed1774(); - o.requestHeadersToRemove = buildUnnamed1775(); - o.responseHeadersToAdd = buildUnnamed1776(); - o.responseHeadersToRemove = buildUnnamed1777(); + o.requestHeadersToAdd = buildUnnamed1838(); + o.requestHeadersToRemove = buildUnnamed1839(); + o.responseHeadersToAdd = buildUnnamed1840(); + o.responseHeadersToRemove = buildUnnamed1841(); } buildCounterHttpHeaderAction--; return o; @@ -6241,10 +6688,10 @@ checkHttpHeaderAction(api.HttpHeaderAction o) { buildCounterHttpHeaderAction++; if (buildCounterHttpHeaderAction < 3) { - checkUnnamed1774(o.requestHeadersToAdd); - checkUnnamed1775(o.requestHeadersToRemove); - checkUnnamed1776(o.responseHeadersToAdd); - checkUnnamed1777(o.responseHeadersToRemove); + checkUnnamed1838(o.requestHeadersToAdd); + checkUnnamed1839(o.requestHeadersToRemove); + checkUnnamed1840(o.responseHeadersToAdd); + checkUnnamed1841(o.responseHeadersToRemove); } buildCounterHttpHeaderAction--; } @@ -6348,14 +6795,14 @@ buildCounterHttpHealthCheck--; } -buildUnnamed1778() { +buildUnnamed1842() { var o = new core.List<api.HttpHealthCheck>(); o.add(buildHttpHealthCheck()); o.add(buildHttpHealthCheck()); return o; } -checkUnnamed1778(core.List<api.HttpHealthCheck> o) { +checkUnnamed1842(core.List<api.HttpHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheck(o[0]); checkHttpHealthCheck(o[1]); @@ -6382,14 +6829,14 @@ buildCounterHttpHealthCheckListWarningData--; } -buildUnnamed1779() { +buildUnnamed1843() { var o = new core.List<api.HttpHealthCheckListWarningData>(); o.add(buildHttpHealthCheckListWarningData()); o.add(buildHttpHealthCheckListWarningData()); return o; } -checkUnnamed1779(core.List<api.HttpHealthCheckListWarningData> o) { +checkUnnamed1843(core.List<api.HttpHealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHealthCheckListWarningData(o[0]); checkHttpHealthCheckListWarningData(o[1]); @@ -6401,7 +6848,7 @@ buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1779(); + o.data = buildUnnamed1843(); o.message = "foo"; } buildCounterHttpHealthCheckListWarning--; @@ -6412,7 +6859,7 @@ buildCounterHttpHealthCheckListWarning++; if (buildCounterHttpHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1779(o.data); + checkUnnamed1843(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHttpHealthCheckListWarning--; @@ -6424,7 +6871,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed1778(); + o.items = buildUnnamed1842(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6438,7 +6885,7 @@ buildCounterHttpHealthCheckList++; if (buildCounterHttpHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1778(o.items); + checkUnnamed1842(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6501,14 +6948,14 @@ buildCounterHttpRedirectAction--; } -buildUnnamed1780() { +buildUnnamed1844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1780(core.List<core.String> o) { +checkUnnamed1844(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6521,7 +6968,7 @@ if (buildCounterHttpRetryPolicy < 3) { o.numRetries = 42; o.perTryTimeout = buildDuration(); - o.retryConditions = buildUnnamed1780(); + o.retryConditions = buildUnnamed1844(); } buildCounterHttpRetryPolicy--; return o; @@ -6532,19 +6979,19 @@ if (buildCounterHttpRetryPolicy < 3) { unittest.expect(o.numRetries, unittest.equals(42)); checkDuration(o.perTryTimeout); - checkUnnamed1780(o.retryConditions); + checkUnnamed1844(o.retryConditions); } buildCounterHttpRetryPolicy--; } -buildUnnamed1781() { +buildUnnamed1845() { var o = new core.List<api.WeightedBackendService>(); o.add(buildWeightedBackendService()); o.add(buildWeightedBackendService()); return o; } -checkUnnamed1781(core.List<api.WeightedBackendService> o) { +checkUnnamed1845(core.List<api.WeightedBackendService> o) { unittest.expect(o, unittest.hasLength(2)); checkWeightedBackendService(o[0]); checkWeightedBackendService(o[1]); @@ -6561,7 +7008,7 @@ o.retryPolicy = buildHttpRetryPolicy(); o.timeout = buildDuration(); o.urlRewrite = buildUrlRewrite(); - o.weightedBackendServices = buildUnnamed1781(); + o.weightedBackendServices = buildUnnamed1845(); } buildCounterHttpRouteAction--; return o; @@ -6576,19 +7023,19 @@ checkHttpRetryPolicy(o.retryPolicy); checkDuration(o.timeout); checkUrlRewrite(o.urlRewrite); - checkUnnamed1781(o.weightedBackendServices); + checkUnnamed1845(o.weightedBackendServices); } buildCounterHttpRouteAction--; } -buildUnnamed1782() { +buildUnnamed1846() { var o = new core.List<api.HttpRouteRuleMatch>(); o.add(buildHttpRouteRuleMatch()); o.add(buildHttpRouteRuleMatch()); return o; } -checkUnnamed1782(core.List<api.HttpRouteRuleMatch> o) { +checkUnnamed1846(core.List<api.HttpRouteRuleMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRouteRuleMatch(o[0]); checkHttpRouteRuleMatch(o[1]); @@ -6601,7 +7048,7 @@ if (buildCounterHttpRouteRule < 3) { o.description = "foo"; o.headerAction = buildHttpHeaderAction(); - o.matchRules = buildUnnamed1782(); + o.matchRules = buildUnnamed1846(); o.priority = 42; o.routeAction = buildHttpRouteAction(); o.service = "foo"; @@ -6616,7 +7063,7 @@ if (buildCounterHttpRouteRule < 3) { unittest.expect(o.description, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction); - checkUnnamed1782(o.matchRules); + checkUnnamed1846(o.matchRules); unittest.expect(o.priority, unittest.equals(42)); checkHttpRouteAction(o.routeAction); unittest.expect(o.service, unittest.equals('foo')); @@ -6625,40 +7072,40 @@ buildCounterHttpRouteRule--; } -buildUnnamed1783() { +buildUnnamed1847() { var o = new core.List<api.HttpHeaderMatch>(); o.add(buildHttpHeaderMatch()); o.add(buildHttpHeaderMatch()); return o; } -checkUnnamed1783(core.List<api.HttpHeaderMatch> o) { +checkUnnamed1847(core.List<api.HttpHeaderMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpHeaderMatch(o[0]); checkHttpHeaderMatch(o[1]); } -buildUnnamed1784() { +buildUnnamed1848() { var o = new core.List<api.MetadataFilter>(); o.add(buildMetadataFilter()); o.add(buildMetadataFilter()); return o; } -checkUnnamed1784(core.List<api.MetadataFilter> o) { +checkUnnamed1848(core.List<api.MetadataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilter(o[0]); checkMetadataFilter(o[1]); } -buildUnnamed1785() { +buildUnnamed1849() { var o = new core.List<api.HttpQueryParameterMatch>(); o.add(buildHttpQueryParameterMatch()); o.add(buildHttpQueryParameterMatch()); return o; } -checkUnnamed1785(core.List<api.HttpQueryParameterMatch> o) { +checkUnnamed1849(core.List<api.HttpQueryParameterMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpQueryParameterMatch(o[0]); checkHttpQueryParameterMatch(o[1]); @@ -6670,11 +7117,11 @@ buildCounterHttpRouteRuleMatch++; if (buildCounterHttpRouteRuleMatch < 3) { o.fullPathMatch = "foo"; - o.headerMatches = buildUnnamed1783(); + o.headerMatches = buildUnnamed1847(); o.ignoreCase = true; - o.metadataFilters = buildUnnamed1784(); + o.metadataFilters = buildUnnamed1848(); o.prefixMatch = "foo"; - o.queryParameterMatches = buildUnnamed1785(); + o.queryParameterMatches = buildUnnamed1849(); o.regexMatch = "foo"; } buildCounterHttpRouteRuleMatch--; @@ -6685,11 +7132,11 @@ buildCounterHttpRouteRuleMatch++; if (buildCounterHttpRouteRuleMatch < 3) { unittest.expect(o.fullPathMatch, unittest.equals('foo')); - checkUnnamed1783(o.headerMatches); + checkUnnamed1847(o.headerMatches); unittest.expect(o.ignoreCase, unittest.isTrue); - checkUnnamed1784(o.metadataFilters); + checkUnnamed1848(o.metadataFilters); unittest.expect(o.prefixMatch, unittest.equals('foo')); - checkUnnamed1785(o.queryParameterMatches); + checkUnnamed1849(o.queryParameterMatches); unittest.expect(o.regexMatch, unittest.equals('foo')); } buildCounterHttpRouteRuleMatch--; @@ -6738,14 +7185,14 @@ buildCounterHttpsHealthCheck--; } -buildUnnamed1786() { +buildUnnamed1850() { var o = new core.List<api.HttpsHealthCheck>(); o.add(buildHttpsHealthCheck()); o.add(buildHttpsHealthCheck()); return o; } -checkUnnamed1786(core.List<api.HttpsHealthCheck> o) { +checkUnnamed1850(core.List<api.HttpsHealthCheck> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheck(o[0]); checkHttpsHealthCheck(o[1]); @@ -6772,14 +7219,14 @@ buildCounterHttpsHealthCheckListWarningData--; } -buildUnnamed1787() { +buildUnnamed1851() { var o = new core.List<api.HttpsHealthCheckListWarningData>(); o.add(buildHttpsHealthCheckListWarningData()); o.add(buildHttpsHealthCheckListWarningData()); return o; } -checkUnnamed1787(core.List<api.HttpsHealthCheckListWarningData> o) { +checkUnnamed1851(core.List<api.HttpsHealthCheckListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpsHealthCheckListWarningData(o[0]); checkHttpsHealthCheckListWarningData(o[1]); @@ -6791,7 +7238,7 @@ buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1787(); + o.data = buildUnnamed1851(); o.message = "foo"; } buildCounterHttpsHealthCheckListWarning--; @@ -6802,7 +7249,7 @@ buildCounterHttpsHealthCheckListWarning++; if (buildCounterHttpsHealthCheckListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1787(o.data); + checkUnnamed1851(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterHttpsHealthCheckListWarning--; @@ -6814,7 +7261,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { o.id = "foo"; - o.items = buildUnnamed1786(); + o.items = buildUnnamed1850(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -6828,7 +7275,7 @@ buildCounterHttpsHealthCheckList++; if (buildCounterHttpsHealthCheckList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1786(o.items); + checkUnnamed1850(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6837,53 +7284,53 @@ buildCounterHttpsHealthCheckList--; } -buildUnnamed1788() { +buildUnnamed1852() { var o = new core.List<api.GuestOsFeature>(); o.add(buildGuestOsFeature()); o.add(buildGuestOsFeature()); return o; } -checkUnnamed1788(core.List<api.GuestOsFeature> o) { +checkUnnamed1852(core.List<api.GuestOsFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGuestOsFeature(o[0]); checkGuestOsFeature(o[1]); } -buildUnnamed1789() { +buildUnnamed1853() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1789(core.Map<core.String, core.String> o) { +checkUnnamed1853(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')); } -buildUnnamed1790() { +buildUnnamed1854() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1790(core.List<core.String> o) { +checkUnnamed1854(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1791() { +buildUnnamed1855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1791(core.List<core.String> o) { +checkUnnamed1855(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6912,14 +7359,14 @@ buildCounterImageRawDisk--; } -buildUnnamed1792() { +buildUnnamed1856() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1792(core.List<core.String> o) { +checkUnnamed1856(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6936,14 +7383,14 @@ o.description = "foo"; o.diskSizeGb = "foo"; o.family = "foo"; - o.guestOsFeatures = buildUnnamed1788(); + o.guestOsFeatures = buildUnnamed1852(); o.id = "foo"; o.imageEncryptionKey = buildCustomerEncryptionKey(); o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed1789(); - o.licenseCodes = buildUnnamed1790(); - o.licenses = buildUnnamed1791(); + o.labels = buildUnnamed1853(); + o.licenseCodes = buildUnnamed1854(); + o.licenses = buildUnnamed1855(); o.name = "foo"; o.rawDisk = buildImageRawDisk(); o.selfLink = "foo"; @@ -6959,7 +7406,7 @@ o.sourceSnapshotId = "foo"; o.sourceType = "foo"; o.status = "foo"; - o.storageLocations = buildUnnamed1792(); + o.storageLocations = buildUnnamed1856(); } buildCounterImage--; return o; @@ -6974,14 +7421,14 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1788(o.guestOsFeatures); + checkUnnamed1852(o.guestOsFeatures); unittest.expect(o.id, unittest.equals('foo')); checkCustomerEncryptionKey(o.imageEncryptionKey); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1789(o.labels); - checkUnnamed1790(o.licenseCodes); - checkUnnamed1791(o.licenses); + checkUnnamed1853(o.labels); + checkUnnamed1854(o.licenseCodes); + checkUnnamed1855(o.licenses); unittest.expect(o.name, unittest.equals('foo')); checkImageRawDisk(o.rawDisk); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -6997,19 +7444,19 @@ unittest.expect(o.sourceSnapshotId, unittest.equals('foo')); unittest.expect(o.sourceType, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1792(o.storageLocations); + checkUnnamed1856(o.storageLocations); } buildCounterImage--; } -buildUnnamed1793() { +buildUnnamed1857() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed1793(core.List<api.Image> o) { +checkUnnamed1857(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); @@ -7036,14 +7483,14 @@ buildCounterImageListWarningData--; } -buildUnnamed1794() { +buildUnnamed1858() { var o = new core.List<api.ImageListWarningData>(); o.add(buildImageListWarningData()); o.add(buildImageListWarningData()); return o; } -checkUnnamed1794(core.List<api.ImageListWarningData> o) { +checkUnnamed1858(core.List<api.ImageListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkImageListWarningData(o[0]); checkImageListWarningData(o[1]); @@ -7055,7 +7502,7 @@ buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1794(); + o.data = buildUnnamed1858(); o.message = "foo"; } buildCounterImageListWarning--; @@ -7066,7 +7513,7 @@ buildCounterImageListWarning++; if (buildCounterImageListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1794(o.data); + checkUnnamed1858(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterImageListWarning--; @@ -7078,7 +7525,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { o.id = "foo"; - o.items = buildUnnamed1793(); + o.items = buildUnnamed1857(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7092,7 +7539,7 @@ buildCounterImageList++; if (buildCounterImageList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1793(o.items); + checkUnnamed1857(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7101,40 +7548,40 @@ buildCounterImageList--; } -buildUnnamed1795() { +buildUnnamed1859() { var o = new core.List<api.FileContentBuffer>(); o.add(buildFileContentBuffer()); o.add(buildFileContentBuffer()); return o; } -checkUnnamed1795(core.List<api.FileContentBuffer> o) { +checkUnnamed1859(core.List<api.FileContentBuffer> o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); } -buildUnnamed1796() { +buildUnnamed1860() { var o = new core.List<api.FileContentBuffer>(); o.add(buildFileContentBuffer()); o.add(buildFileContentBuffer()); return o; } -checkUnnamed1796(core.List<api.FileContentBuffer> o) { +checkUnnamed1860(core.List<api.FileContentBuffer> o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); } -buildUnnamed1797() { +buildUnnamed1861() { var o = new core.List<api.FileContentBuffer>(); o.add(buildFileContentBuffer()); o.add(buildFileContentBuffer()); return o; } -checkUnnamed1797(core.List<api.FileContentBuffer> o) { +checkUnnamed1861(core.List<api.FileContentBuffer> o) { unittest.expect(o, unittest.hasLength(2)); checkFileContentBuffer(o[0]); checkFileContentBuffer(o[1]); @@ -7145,9 +7592,9 @@ var o = new api.InitialStateConfig(); buildCounterInitialStateConfig++; if (buildCounterInitialStateConfig < 3) { - o.dbs = buildUnnamed1795(); - o.dbxs = buildUnnamed1796(); - o.keks = buildUnnamed1797(); + o.dbs = buildUnnamed1859(); + o.dbxs = buildUnnamed1860(); + o.keks = buildUnnamed1861(); o.pk = buildFileContentBuffer(); } buildCounterInitialStateConfig--; @@ -7157,87 +7604,87 @@ checkInitialStateConfig(api.InitialStateConfig o) { buildCounterInitialStateConfig++; if (buildCounterInitialStateConfig < 3) { - checkUnnamed1795(o.dbs); - checkUnnamed1796(o.dbxs); - checkUnnamed1797(o.keks); + checkUnnamed1859(o.dbs); + checkUnnamed1860(o.dbxs); + checkUnnamed1861(o.keks); checkFileContentBuffer(o.pk); } buildCounterInitialStateConfig--; } -buildUnnamed1798() { +buildUnnamed1862() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed1798(core.List<api.AttachedDisk> o) { +checkUnnamed1862(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed1799() { +buildUnnamed1863() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed1799(core.List<api.AcceleratorConfig> o) { +checkUnnamed1863(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed1800() { +buildUnnamed1864() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1800(core.Map<core.String, core.String> o) { +checkUnnamed1864(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')); } -buildUnnamed1801() { +buildUnnamed1865() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed1801(core.List<api.NetworkInterface> o) { +checkUnnamed1865(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed1802() { +buildUnnamed1866() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1802(core.List<core.String> o) { +checkUnnamed1866(core.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() { +buildUnnamed1867() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1803(core.List<api.ServiceAccount> o) { +checkUnnamed1867(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -7249,29 +7696,31 @@ buildCounterInstance++; if (buildCounterInstance < 3) { o.canIpForward = true; + o.confidentialInstanceConfig = buildConfidentialInstanceConfig(); o.cpuPlatform = "foo"; o.creationTimestamp = "foo"; o.deletionProtection = true; o.description = "foo"; - o.disks = buildUnnamed1798(); + o.disks = buildUnnamed1862(); o.displayDevice = buildDisplayDevice(); o.fingerprint = "foo"; - o.guestAccelerators = buildUnnamed1799(); + o.guestAccelerators = buildUnnamed1863(); o.hostname = "foo"; o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed1800(); + o.labels = buildUnnamed1864(); o.machineType = "foo"; o.metadata = buildMetadata(); o.minCpuPlatform = "foo"; o.name = "foo"; - o.networkInterfaces = buildUnnamed1801(); + o.networkInterfaces = buildUnnamed1865(); + o.privateIpv6GoogleAccess = "foo"; o.reservationAffinity = buildReservationAffinity(); - o.resourcePolicies = buildUnnamed1802(); + o.resourcePolicies = buildUnnamed1866(); o.scheduling = buildScheduling(); o.selfLink = "foo"; - o.serviceAccounts = buildUnnamed1803(); + o.serviceAccounts = buildUnnamed1867(); o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.shieldedInstanceIntegrityPolicy = buildShieldedInstanceIntegrityPolicy(); o.startRestricted = true; @@ -7288,29 +7737,31 @@ buildCounterInstance++; if (buildCounterInstance < 3) { unittest.expect(o.canIpForward, unittest.isTrue); + checkConfidentialInstanceConfig(o.confidentialInstanceConfig); unittest.expect(o.cpuPlatform, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.deletionProtection, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1798(o.disks); + checkUnnamed1862(o.disks); checkDisplayDevice(o.displayDevice); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1799(o.guestAccelerators); + checkUnnamed1863(o.guestAccelerators); unittest.expect(o.hostname, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1800(o.labels); + checkUnnamed1864(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1801(o.networkInterfaces); + checkUnnamed1865(o.networkInterfaces); + unittest.expect(o.privateIpv6GoogleAccess, unittest.equals('foo')); checkReservationAffinity(o.reservationAffinity); - checkUnnamed1802(o.resourcePolicies); + checkUnnamed1866(o.resourcePolicies); checkScheduling(o.scheduling); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed1803(o.serviceAccounts); + checkUnnamed1867(o.serviceAccounts); checkShieldedInstanceConfig(o.shieldedInstanceConfig); checkShieldedInstanceIntegrityPolicy(o.shieldedInstanceIntegrityPolicy); unittest.expect(o.startRestricted, unittest.isTrue); @@ -7322,19 +7773,32 @@ buildCounterInstance--; } -buildUnnamed1804() { +buildUnnamed1868() { var o = new core.Map<core.String, api.InstancesScopedList>(); o["x"] = buildInstancesScopedList(); o["y"] = buildInstancesScopedList(); return o; } -checkUnnamed1804(core.Map<core.String, api.InstancesScopedList> o) { +checkUnnamed1868(core.Map<core.String, api.InstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedList(o["x"]); checkInstancesScopedList(o["y"]); } +buildUnnamed1869() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterInstanceAggregatedListWarningData = 0; buildInstanceAggregatedListWarningData() { var o = new api.InstanceAggregatedListWarningData(); @@ -7357,14 +7821,14 @@ buildCounterInstanceAggregatedListWarningData--; } -buildUnnamed1805() { +buildUnnamed1870() { var o = new core.List<api.InstanceAggregatedListWarningData>(); o.add(buildInstanceAggregatedListWarningData()); o.add(buildInstanceAggregatedListWarningData()); return o; } -checkUnnamed1805(core.List<api.InstanceAggregatedListWarningData> o) { +checkUnnamed1870(core.List<api.InstanceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceAggregatedListWarningData(o[0]); checkInstanceAggregatedListWarningData(o[1]); @@ -7376,7 +7840,7 @@ buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1805(); + o.data = buildUnnamed1870(); o.message = "foo"; } buildCounterInstanceAggregatedListWarning--; @@ -7387,7 +7851,7 @@ buildCounterInstanceAggregatedListWarning++; if (buildCounterInstanceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1805(o.data); + checkUnnamed1870(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceAggregatedListWarning--; @@ -7399,10 +7863,11 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1804(); + o.items = buildUnnamed1868(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1869(); o.warning = buildInstanceAggregatedListWarning(); } buildCounterInstanceAggregatedList--; @@ -7413,23 +7878,24 @@ buildCounterInstanceAggregatedList++; if (buildCounterInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1804(o.items); + checkUnnamed1868(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1869(o.unreachables); checkInstanceAggregatedListWarning(o.warning); } buildCounterInstanceAggregatedList--; } -buildUnnamed1806() { +buildUnnamed1871() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed1806(core.List<api.NamedPort> o) { +checkUnnamed1871(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -7446,7 +7912,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed1806(); + o.namedPorts = buildUnnamed1871(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -7467,7 +7933,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1806(o.namedPorts); + checkUnnamed1871(o.namedPorts); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7478,19 +7944,32 @@ buildCounterInstanceGroup--; } -buildUnnamed1807() { +buildUnnamed1872() { var o = new core.Map<core.String, api.InstanceGroupsScopedList>(); o["x"] = buildInstanceGroupsScopedList(); o["y"] = buildInstanceGroupsScopedList(); return o; } -checkUnnamed1807(core.Map<core.String, api.InstanceGroupsScopedList> o) { +checkUnnamed1872(core.Map<core.String, api.InstanceGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedList(o["x"]); checkInstanceGroupsScopedList(o["y"]); } +buildUnnamed1873() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1873(core.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 buildCounterInstanceGroupAggregatedListWarningData = 0; buildInstanceGroupAggregatedListWarningData() { var o = new api.InstanceGroupAggregatedListWarningData(); @@ -7513,14 +7992,14 @@ buildCounterInstanceGroupAggregatedListWarningData--; } -buildUnnamed1808() { +buildUnnamed1874() { var o = new core.List<api.InstanceGroupAggregatedListWarningData>(); o.add(buildInstanceGroupAggregatedListWarningData()); o.add(buildInstanceGroupAggregatedListWarningData()); return o; } -checkUnnamed1808(core.List<api.InstanceGroupAggregatedListWarningData> o) { +checkUnnamed1874(core.List<api.InstanceGroupAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupAggregatedListWarningData(o[0]); checkInstanceGroupAggregatedListWarningData(o[1]); @@ -7532,7 +8011,7 @@ buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1808(); + o.data = buildUnnamed1874(); o.message = "foo"; } buildCounterInstanceGroupAggregatedListWarning--; @@ -7544,7 +8023,7 @@ buildCounterInstanceGroupAggregatedListWarning++; if (buildCounterInstanceGroupAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1808(o.data); + checkUnnamed1874(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupAggregatedListWarning--; @@ -7556,10 +8035,11 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1807(); + o.items = buildUnnamed1872(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1873(); o.warning = buildInstanceGroupAggregatedListWarning(); } buildCounterInstanceGroupAggregatedList--; @@ -7570,23 +8050,24 @@ buildCounterInstanceGroupAggregatedList++; if (buildCounterInstanceGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1807(o.items); + checkUnnamed1872(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1873(o.unreachables); checkInstanceGroupAggregatedListWarning(o.warning); } buildCounterInstanceGroupAggregatedList--; } -buildUnnamed1809() { +buildUnnamed1875() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed1809(core.List<api.InstanceGroup> o) { +checkUnnamed1875(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -7613,14 +8094,14 @@ buildCounterInstanceGroupListWarningData--; } -buildUnnamed1810() { +buildUnnamed1876() { var o = new core.List<api.InstanceGroupListWarningData>(); o.add(buildInstanceGroupListWarningData()); o.add(buildInstanceGroupListWarningData()); return o; } -checkUnnamed1810(core.List<api.InstanceGroupListWarningData> o) { +checkUnnamed1876(core.List<api.InstanceGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupListWarningData(o[0]); checkInstanceGroupListWarningData(o[1]); @@ -7632,7 +8113,7 @@ buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1810(); + o.data = buildUnnamed1876(); o.message = "foo"; } buildCounterInstanceGroupListWarning--; @@ -7643,7 +8124,7 @@ buildCounterInstanceGroupListWarning++; if (buildCounterInstanceGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1810(o.data); + checkUnnamed1876(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupListWarning--; @@ -7655,7 +8136,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed1809(); + o.items = buildUnnamed1875(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -7669,7 +8150,7 @@ buildCounterInstanceGroupList++; if (buildCounterInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1809(o.items); + checkUnnamed1875(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -7678,53 +8159,53 @@ buildCounterInstanceGroupList--; } -buildUnnamed1811() { +buildUnnamed1877() { var o = new core.List<api.InstanceGroupManagerAutoHealingPolicy>(); o.add(buildInstanceGroupManagerAutoHealingPolicy()); o.add(buildInstanceGroupManagerAutoHealingPolicy()); return o; } -checkUnnamed1811(core.List<api.InstanceGroupManagerAutoHealingPolicy> o) { +checkUnnamed1877(core.List<api.InstanceGroupManagerAutoHealingPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerAutoHealingPolicy(o[0]); checkInstanceGroupManagerAutoHealingPolicy(o[1]); } -buildUnnamed1812() { +buildUnnamed1878() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed1812(core.List<api.NamedPort> o) { +checkUnnamed1878(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); } -buildUnnamed1813() { +buildUnnamed1879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1813(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')); } -buildUnnamed1814() { +buildUnnamed1880() { var o = new core.List<api.InstanceGroupManagerVersion>(); o.add(buildInstanceGroupManagerVersion()); o.add(buildInstanceGroupManagerVersion()); return o; } -checkUnnamed1814(core.List<api.InstanceGroupManagerVersion> o) { +checkUnnamed1880(core.List<api.InstanceGroupManagerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerVersion(o[0]); checkInstanceGroupManagerVersion(o[1]); @@ -7735,7 +8216,7 @@ var o = new api.InstanceGroupManager(); buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - o.autoHealingPolicies = buildUnnamed1811(); + o.autoHealingPolicies = buildUnnamed1877(); o.baseInstanceName = "foo"; o.creationTimestamp = "foo"; o.currentActions = buildInstanceGroupManagerActionsSummary(); @@ -7747,14 +8228,15 @@ o.instanceTemplate = "foo"; o.kind = "foo"; o.name = "foo"; - o.namedPorts = buildUnnamed1812(); + o.namedPorts = buildUnnamed1878(); o.region = "foo"; o.selfLink = "foo"; + o.statefulPolicy = buildStatefulPolicy(); o.status = buildInstanceGroupManagerStatus(); - o.targetPools = buildUnnamed1813(); + o.targetPools = buildUnnamed1879(); o.targetSize = 42; o.updatePolicy = buildInstanceGroupManagerUpdatePolicy(); - o.versions = buildUnnamed1814(); + o.versions = buildUnnamed1880(); o.zone = "foo"; } buildCounterInstanceGroupManager--; @@ -7764,7 +8246,7 @@ checkInstanceGroupManager(api.InstanceGroupManager o) { buildCounterInstanceGroupManager++; if (buildCounterInstanceGroupManager < 3) { - checkUnnamed1811(o.autoHealingPolicies); + checkUnnamed1877(o.autoHealingPolicies); unittest.expect(o.baseInstanceName, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); checkInstanceGroupManagerActionsSummary(o.currentActions); @@ -7776,14 +8258,15 @@ unittest.expect(o.instanceTemplate, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1812(o.namedPorts); + checkUnnamed1878(o.namedPorts); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkStatefulPolicy(o.statefulPolicy); checkInstanceGroupManagerStatus(o.status); - checkUnnamed1813(o.targetPools); + checkUnnamed1879(o.targetPools); unittest.expect(o.targetSize, unittest.equals(42)); checkInstanceGroupManagerUpdatePolicy(o.updatePolicy); - checkUnnamed1814(o.versions); + checkUnnamed1880(o.versions); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterInstanceGroupManager--; @@ -7825,19 +8308,32 @@ buildCounterInstanceGroupManagerActionsSummary--; } -buildUnnamed1815() { +buildUnnamed1881() { var o = new core.Map<core.String, api.InstanceGroupManagersScopedList>(); o["x"] = buildInstanceGroupManagersScopedList(); o["y"] = buildInstanceGroupManagersScopedList(); return o; } -checkUnnamed1815(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { +checkUnnamed1881(core.Map<core.String, api.InstanceGroupManagersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedList(o["x"]); checkInstanceGroupManagersScopedList(o["y"]); } +buildUnnamed1882() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterInstanceGroupManagerAggregatedListWarningData = 0; buildInstanceGroupManagerAggregatedListWarningData() { var o = new api.InstanceGroupManagerAggregatedListWarningData(); @@ -7860,14 +8356,14 @@ buildCounterInstanceGroupManagerAggregatedListWarningData--; } -buildUnnamed1816() { +buildUnnamed1883() { var o = new core.List<api.InstanceGroupManagerAggregatedListWarningData>(); o.add(buildInstanceGroupManagerAggregatedListWarningData()); o.add(buildInstanceGroupManagerAggregatedListWarningData()); return o; } -checkUnnamed1816( +checkUnnamed1883( core.List<api.InstanceGroupManagerAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerAggregatedListWarningData(o[0]); @@ -7880,7 +8376,7 @@ buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1816(); + o.data = buildUnnamed1883(); o.message = "foo"; } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -7892,7 +8388,7 @@ buildCounterInstanceGroupManagerAggregatedListWarning++; if (buildCounterInstanceGroupManagerAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1816(o.data); + checkUnnamed1883(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagerAggregatedListWarning--; @@ -7904,10 +8400,11 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1815(); + o.items = buildUnnamed1881(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1882(); o.warning = buildInstanceGroupManagerAggregatedListWarning(); } buildCounterInstanceGroupManagerAggregatedList--; @@ -7919,10 +8416,11 @@ buildCounterInstanceGroupManagerAggregatedList++; if (buildCounterInstanceGroupManagerAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1815(o.items); + checkUnnamed1881(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1882(o.unreachables); checkInstanceGroupManagerAggregatedListWarning(o.warning); } buildCounterInstanceGroupManagerAggregatedList--; @@ -7950,14 +8448,14 @@ buildCounterInstanceGroupManagerAutoHealingPolicy--; } -buildUnnamed1817() { +buildUnnamed1884() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed1817(core.List<api.InstanceGroupManager> o) { +checkUnnamed1884(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -7985,14 +8483,14 @@ buildCounterInstanceGroupManagerListWarningData--; } -buildUnnamed1818() { +buildUnnamed1885() { var o = new core.List<api.InstanceGroupManagerListWarningData>(); o.add(buildInstanceGroupManagerListWarningData()); o.add(buildInstanceGroupManagerListWarningData()); return o; } -checkUnnamed1818(core.List<api.InstanceGroupManagerListWarningData> o) { +checkUnnamed1885(core.List<api.InstanceGroupManagerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagerListWarningData(o[0]); checkInstanceGroupManagerListWarningData(o[1]); @@ -8004,7 +8502,7 @@ buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1818(); + o.data = buildUnnamed1885(); o.message = "foo"; } buildCounterInstanceGroupManagerListWarning--; @@ -8015,7 +8513,7 @@ buildCounterInstanceGroupManagerListWarning++; if (buildCounterInstanceGroupManagerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1818(o.data); + checkUnnamed1885(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagerListWarning--; @@ -8027,7 +8525,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed1817(); + o.items = buildUnnamed1884(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8041,7 +8539,7 @@ buildCounterInstanceGroupManagerList++; if (buildCounterInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1817(o.items); + checkUnnamed1884(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8057,6 +8555,7 @@ if (buildCounterInstanceGroupManagerStatus < 3) { o.autoscaler = "foo"; o.isStable = true; + o.stateful = buildInstanceGroupManagerStatusStateful(); o.versionTarget = buildInstanceGroupManagerStatusVersionTarget(); } buildCounterInstanceGroupManagerStatus--; @@ -8068,11 +8567,56 @@ if (buildCounterInstanceGroupManagerStatus < 3) { unittest.expect(o.autoscaler, unittest.equals('foo')); unittest.expect(o.isStable, unittest.isTrue); + checkInstanceGroupManagerStatusStateful(o.stateful); checkInstanceGroupManagerStatusVersionTarget(o.versionTarget); } buildCounterInstanceGroupManagerStatus--; } +core.int buildCounterInstanceGroupManagerStatusStateful = 0; +buildInstanceGroupManagerStatusStateful() { + var o = new api.InstanceGroupManagerStatusStateful(); + buildCounterInstanceGroupManagerStatusStateful++; + if (buildCounterInstanceGroupManagerStatusStateful < 3) { + o.hasStatefulConfig = true; + o.perInstanceConfigs = + buildInstanceGroupManagerStatusStatefulPerInstanceConfigs(); + } + buildCounterInstanceGroupManagerStatusStateful--; + return o; +} + +checkInstanceGroupManagerStatusStateful( + api.InstanceGroupManagerStatusStateful o) { + buildCounterInstanceGroupManagerStatusStateful++; + if (buildCounterInstanceGroupManagerStatusStateful < 3) { + unittest.expect(o.hasStatefulConfig, unittest.isTrue); + checkInstanceGroupManagerStatusStatefulPerInstanceConfigs( + o.perInstanceConfigs); + } + buildCounterInstanceGroupManagerStatusStateful--; +} + +core.int buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs = 0; +buildInstanceGroupManagerStatusStatefulPerInstanceConfigs() { + var o = new api.InstanceGroupManagerStatusStatefulPerInstanceConfigs(); + buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs++; + if (buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs < 3) { + o.allEffective = true; + } + buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs--; + return o; +} + +checkInstanceGroupManagerStatusStatefulPerInstanceConfigs( + api.InstanceGroupManagerStatusStatefulPerInstanceConfigs o) { + buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs++; + if (buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs < 3) { + unittest.expect(o.allEffective, unittest.isTrue); + } + buildCounterInstanceGroupManagerStatusStatefulPerInstanceConfigs--; +} + core.int buildCounterInstanceGroupManagerStatusVersionTarget = 0; buildInstanceGroupManagerStatusVersionTarget() { var o = new api.InstanceGroupManagerStatusVersionTarget(); @@ -8145,14 +8689,14 @@ buildCounterInstanceGroupManagerVersion--; } -buildUnnamed1819() { +buildUnnamed1886() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1819(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')); @@ -8163,7 +8707,7 @@ var o = new api.InstanceGroupManagersAbandonInstancesRequest(); buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed1819(); + o.instances = buildUnnamed1886(); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -8173,19 +8717,19 @@ api.InstanceGroupManagersAbandonInstancesRequest o) { buildCounterInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed1819(o.instances); + checkUnnamed1886(o.instances); } buildCounterInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed1820() { +buildUnnamed1887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1820(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')); @@ -8196,7 +8740,7 @@ var o = new api.InstanceGroupManagersApplyUpdatesRequest(); buildCounterInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterInstanceGroupManagersApplyUpdatesRequest < 3) { - o.instances = buildUnnamed1820(); + o.instances = buildUnnamed1887(); o.minimalAction = "foo"; o.mostDisruptiveAllowedAction = "foo"; } @@ -8208,21 +8752,21 @@ api.InstanceGroupManagersApplyUpdatesRequest o) { buildCounterInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterInstanceGroupManagersApplyUpdatesRequest < 3) { - checkUnnamed1820(o.instances); + checkUnnamed1887(o.instances); unittest.expect(o.minimalAction, unittest.equals('foo')); unittest.expect(o.mostDisruptiveAllowedAction, unittest.equals('foo')); } buildCounterInstanceGroupManagersApplyUpdatesRequest--; } -buildUnnamed1821() { +buildUnnamed1888() { var o = new core.List<api.PerInstanceConfig>(); o.add(buildPerInstanceConfig()); o.add(buildPerInstanceConfig()); return o; } -checkUnnamed1821(core.List<api.PerInstanceConfig> o) { +checkUnnamed1888(core.List<api.PerInstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -8233,7 +8777,7 @@ var o = new api.InstanceGroupManagersCreateInstancesRequest(); buildCounterInstanceGroupManagersCreateInstancesRequest++; if (buildCounterInstanceGroupManagersCreateInstancesRequest < 3) { - o.instances = buildUnnamed1821(); + o.instances = buildUnnamed1888(); } buildCounterInstanceGroupManagersCreateInstancesRequest--; return o; @@ -8243,19 +8787,19 @@ api.InstanceGroupManagersCreateInstancesRequest o) { buildCounterInstanceGroupManagersCreateInstancesRequest++; if (buildCounterInstanceGroupManagersCreateInstancesRequest < 3) { - checkUnnamed1821(o.instances); + checkUnnamed1888(o.instances); } buildCounterInstanceGroupManagersCreateInstancesRequest--; } -buildUnnamed1822() { +buildUnnamed1889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1822(core.List<core.String> o) { +checkUnnamed1889(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8266,7 +8810,7 @@ var o = new api.InstanceGroupManagersDeleteInstancesRequest(); buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed1822(); + o.instances = buildUnnamed1889(); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -8276,19 +8820,52 @@ api.InstanceGroupManagersDeleteInstancesRequest o) { buildCounterInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed1822(o.instances); + checkUnnamed1889(o.instances); } buildCounterInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed1823() { +buildUnnamed1890() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +core.int buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq = 0; +buildInstanceGroupManagersDeletePerInstanceConfigsReq() { + var o = new api.InstanceGroupManagersDeletePerInstanceConfigsReq(); + buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq < 3) { + o.names = buildUnnamed1890(); + } + buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq--; + return o; +} + +checkInstanceGroupManagersDeletePerInstanceConfigsReq( + api.InstanceGroupManagersDeletePerInstanceConfigsReq o) { + buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq < 3) { + checkUnnamed1890(o.names); + } + buildCounterInstanceGroupManagersDeletePerInstanceConfigsReq--; +} + +buildUnnamed1891() { var o = new core.List<api.InstanceManagedByIgmError>(); o.add(buildInstanceManagedByIgmError()); o.add(buildInstanceManagedByIgmError()); return o; } -checkUnnamed1823(core.List<api.InstanceManagedByIgmError> o) { +checkUnnamed1891(core.List<api.InstanceManagedByIgmError> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceManagedByIgmError(o[0]); checkInstanceManagedByIgmError(o[1]); @@ -8299,7 +8876,7 @@ var o = new api.InstanceGroupManagersListErrorsResponse(); buildCounterInstanceGroupManagersListErrorsResponse++; if (buildCounterInstanceGroupManagersListErrorsResponse < 3) { - o.items = buildUnnamed1823(); + o.items = buildUnnamed1891(); o.nextPageToken = "foo"; } buildCounterInstanceGroupManagersListErrorsResponse--; @@ -8310,20 +8887,20 @@ api.InstanceGroupManagersListErrorsResponse o) { buildCounterInstanceGroupManagersListErrorsResponse++; if (buildCounterInstanceGroupManagersListErrorsResponse < 3) { - checkUnnamed1823(o.items); + checkUnnamed1891(o.items); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterInstanceGroupManagersListErrorsResponse--; } -buildUnnamed1824() { +buildUnnamed1892() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed1824(core.List<api.ManagedInstance> o) { +checkUnnamed1892(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -8334,7 +8911,7 @@ var o = new api.InstanceGroupManagersListManagedInstancesResponse(); buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - o.managedInstances = buildUnnamed1824(); + o.managedInstances = buildUnnamed1892(); o.nextPageToken = "foo"; } buildCounterInstanceGroupManagersListManagedInstancesResponse--; @@ -8345,20 +8922,155 @@ api.InstanceGroupManagersListManagedInstancesResponse o) { buildCounterInstanceGroupManagersListManagedInstancesResponse++; if (buildCounterInstanceGroupManagersListManagedInstancesResponse < 3) { - checkUnnamed1824(o.managedInstances); + checkUnnamed1892(o.managedInstances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterInstanceGroupManagersListManagedInstancesResponse--; } -buildUnnamed1825() { +buildUnnamed1893() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed1893(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData = 0; +buildInstanceGroupManagersListPerInstanceConfigsRespWarningData() { + var o = new api.InstanceGroupManagersListPerInstanceConfigsRespWarningData(); + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData < + 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData--; + return o; +} + +checkInstanceGroupManagersListPerInstanceConfigsRespWarningData( + api.InstanceGroupManagersListPerInstanceConfigsRespWarningData o) { + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData < + 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarningData--; +} + +buildUnnamed1894() { + var o = new core + .List<api.InstanceGroupManagersListPerInstanceConfigsRespWarningData>(); + o.add(buildInstanceGroupManagersListPerInstanceConfigsRespWarningData()); + o.add(buildInstanceGroupManagersListPerInstanceConfigsRespWarningData()); + return o; +} + +checkUnnamed1894( + core.List<api.InstanceGroupManagersListPerInstanceConfigsRespWarningData> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceGroupManagersListPerInstanceConfigsRespWarningData(o[0]); + checkInstanceGroupManagersListPerInstanceConfigsRespWarningData(o[1]); +} + +core.int buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning = 0; +buildInstanceGroupManagersListPerInstanceConfigsRespWarning() { + var o = new api.InstanceGroupManagersListPerInstanceConfigsRespWarning(); + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed1894(); + o.message = "foo"; + } + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning--; + return o; +} + +checkInstanceGroupManagersListPerInstanceConfigsRespWarning( + api.InstanceGroupManagersListPerInstanceConfigsRespWarning o) { + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed1894(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterInstanceGroupManagersListPerInstanceConfigsRespWarning--; +} + +core.int buildCounterInstanceGroupManagersListPerInstanceConfigsResp = 0; +buildInstanceGroupManagersListPerInstanceConfigsResp() { + var o = new api.InstanceGroupManagersListPerInstanceConfigsResp(); + buildCounterInstanceGroupManagersListPerInstanceConfigsResp++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsResp < 3) { + o.items = buildUnnamed1893(); + o.nextPageToken = "foo"; + o.warning = buildInstanceGroupManagersListPerInstanceConfigsRespWarning(); + } + buildCounterInstanceGroupManagersListPerInstanceConfigsResp--; + return o; +} + +checkInstanceGroupManagersListPerInstanceConfigsResp( + api.InstanceGroupManagersListPerInstanceConfigsResp o) { + buildCounterInstanceGroupManagersListPerInstanceConfigsResp++; + if (buildCounterInstanceGroupManagersListPerInstanceConfigsResp < 3) { + checkUnnamed1893(o.items); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkInstanceGroupManagersListPerInstanceConfigsRespWarning(o.warning); + } + buildCounterInstanceGroupManagersListPerInstanceConfigsResp--; +} + +buildUnnamed1895() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed1895(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq = 0; +buildInstanceGroupManagersPatchPerInstanceConfigsReq() { + var o = new api.InstanceGroupManagersPatchPerInstanceConfigsReq(); + buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq < 3) { + o.perInstanceConfigs = buildUnnamed1895(); + } + buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq--; + return o; +} + +checkInstanceGroupManagersPatchPerInstanceConfigsReq( + api.InstanceGroupManagersPatchPerInstanceConfigsReq o) { + buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq < 3) { + checkUnnamed1895(o.perInstanceConfigs); + } + buildCounterInstanceGroupManagersPatchPerInstanceConfigsReq--; +} + +buildUnnamed1896() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1825(core.List<core.String> o) { +checkUnnamed1896(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8369,7 +9081,7 @@ var o = new api.InstanceGroupManagersRecreateInstancesRequest(); buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - o.instances = buildUnnamed1825(); + o.instances = buildUnnamed1896(); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; return o; @@ -8379,19 +9091,19 @@ api.InstanceGroupManagersRecreateInstancesRequest o) { buildCounterInstanceGroupManagersRecreateInstancesRequest++; if (buildCounterInstanceGroupManagersRecreateInstancesRequest < 3) { - checkUnnamed1825(o.instances); + checkUnnamed1896(o.instances); } buildCounterInstanceGroupManagersRecreateInstancesRequest--; } -buildUnnamed1826() { +buildUnnamed1897() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed1826(core.List<api.InstanceGroupManager> o) { +checkUnnamed1897(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -8419,14 +9131,14 @@ buildCounterInstanceGroupManagersScopedListWarningData--; } -buildUnnamed1827() { +buildUnnamed1898() { var o = new core.List<api.InstanceGroupManagersScopedListWarningData>(); o.add(buildInstanceGroupManagersScopedListWarningData()); o.add(buildInstanceGroupManagersScopedListWarningData()); return o; } -checkUnnamed1827(core.List<api.InstanceGroupManagersScopedListWarningData> o) { +checkUnnamed1898(core.List<api.InstanceGroupManagersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManagersScopedListWarningData(o[0]); checkInstanceGroupManagersScopedListWarningData(o[1]); @@ -8438,7 +9150,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1827(); + o.data = buildUnnamed1898(); o.message = "foo"; } buildCounterInstanceGroupManagersScopedListWarning--; @@ -8450,7 +9162,7 @@ buildCounterInstanceGroupManagersScopedListWarning++; if (buildCounterInstanceGroupManagersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1827(o.data); + checkUnnamed1898(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupManagersScopedListWarning--; @@ -8461,7 +9173,7 @@ var o = new api.InstanceGroupManagersScopedList(); buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - o.instanceGroupManagers = buildUnnamed1826(); + o.instanceGroupManagers = buildUnnamed1897(); o.warning = buildInstanceGroupManagersScopedListWarning(); } buildCounterInstanceGroupManagersScopedList--; @@ -8471,7 +9183,7 @@ checkInstanceGroupManagersScopedList(api.InstanceGroupManagersScopedList o) { buildCounterInstanceGroupManagersScopedList++; if (buildCounterInstanceGroupManagersScopedList < 3) { - checkUnnamed1826(o.instanceGroupManagers); + checkUnnamed1897(o.instanceGroupManagers); checkInstanceGroupManagersScopedListWarning(o.warning); } buildCounterInstanceGroupManagersScopedList--; @@ -8497,14 +9209,14 @@ buildCounterInstanceGroupManagersSetInstanceTemplateRequest--; } -buildUnnamed1828() { +buildUnnamed1899() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1828(core.List<core.String> o) { +checkUnnamed1899(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8516,7 +9228,7 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed1828(); + o.targetPools = buildUnnamed1899(); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -8527,19 +9239,52 @@ buildCounterInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1828(o.targetPools); + checkUnnamed1899(o.targetPools); } buildCounterInstanceGroupManagersSetTargetPoolsRequest--; } -buildUnnamed1829() { +buildUnnamed1900() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed1900(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq = 0; +buildInstanceGroupManagersUpdatePerInstanceConfigsReq() { + var o = new api.InstanceGroupManagersUpdatePerInstanceConfigsReq(); + buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq < 3) { + o.perInstanceConfigs = buildUnnamed1900(); + } + buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq--; + return o; +} + +checkInstanceGroupManagersUpdatePerInstanceConfigsReq( + api.InstanceGroupManagersUpdatePerInstanceConfigsReq o) { + buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq++; + if (buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq < 3) { + checkUnnamed1900(o.perInstanceConfigs); + } + buildCounterInstanceGroupManagersUpdatePerInstanceConfigsReq--; +} + +buildUnnamed1901() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed1829(core.List<api.InstanceReference> o) { +checkUnnamed1901(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -8550,7 +9295,7 @@ var o = new api.InstanceGroupsAddInstancesRequest(); buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - o.instances = buildUnnamed1829(); + o.instances = buildUnnamed1901(); } buildCounterInstanceGroupsAddInstancesRequest--; return o; @@ -8560,19 +9305,19 @@ api.InstanceGroupsAddInstancesRequest o) { buildCounterInstanceGroupsAddInstancesRequest++; if (buildCounterInstanceGroupsAddInstancesRequest < 3) { - checkUnnamed1829(o.instances); + checkUnnamed1901(o.instances); } buildCounterInstanceGroupsAddInstancesRequest--; } -buildUnnamed1830() { +buildUnnamed1902() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed1830(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed1902(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -8600,14 +9345,14 @@ buildCounterInstanceGroupsListInstancesWarningData--; } -buildUnnamed1831() { +buildUnnamed1903() { var o = new core.List<api.InstanceGroupsListInstancesWarningData>(); o.add(buildInstanceGroupsListInstancesWarningData()); o.add(buildInstanceGroupsListInstancesWarningData()); return o; } -checkUnnamed1831(core.List<api.InstanceGroupsListInstancesWarningData> o) { +checkUnnamed1903(core.List<api.InstanceGroupsListInstancesWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsListInstancesWarningData(o[0]); checkInstanceGroupsListInstancesWarningData(o[1]); @@ -8619,7 +9364,7 @@ buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1831(); + o.data = buildUnnamed1903(); o.message = "foo"; } buildCounterInstanceGroupsListInstancesWarning--; @@ -8631,7 +9376,7 @@ buildCounterInstanceGroupsListInstancesWarning++; if (buildCounterInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1831(o.data); + checkUnnamed1903(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsListInstancesWarning--; @@ -8643,7 +9388,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed1830(); + o.items = buildUnnamed1902(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8657,7 +9402,7 @@ buildCounterInstanceGroupsListInstances++; if (buildCounterInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1830(o.items); + checkUnnamed1902(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8686,14 +9431,14 @@ buildCounterInstanceGroupsListInstancesRequest--; } -buildUnnamed1832() { +buildUnnamed1904() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed1832(core.List<api.InstanceReference> o) { +checkUnnamed1904(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -8704,7 +9449,7 @@ var o = new api.InstanceGroupsRemoveInstancesRequest(); buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - o.instances = buildUnnamed1832(); + o.instances = buildUnnamed1904(); } buildCounterInstanceGroupsRemoveInstancesRequest--; return o; @@ -8714,19 +9459,19 @@ api.InstanceGroupsRemoveInstancesRequest o) { buildCounterInstanceGroupsRemoveInstancesRequest++; if (buildCounterInstanceGroupsRemoveInstancesRequest < 3) { - checkUnnamed1832(o.instances); + checkUnnamed1904(o.instances); } buildCounterInstanceGroupsRemoveInstancesRequest--; } -buildUnnamed1833() { +buildUnnamed1905() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed1833(core.List<api.InstanceGroup> o) { +checkUnnamed1905(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -8754,14 +9499,14 @@ buildCounterInstanceGroupsScopedListWarningData--; } -buildUnnamed1834() { +buildUnnamed1906() { var o = new core.List<api.InstanceGroupsScopedListWarningData>(); o.add(buildInstanceGroupsScopedListWarningData()); o.add(buildInstanceGroupsScopedListWarningData()); return o; } -checkUnnamed1834(core.List<api.InstanceGroupsScopedListWarningData> o) { +checkUnnamed1906(core.List<api.InstanceGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupsScopedListWarningData(o[0]); checkInstanceGroupsScopedListWarningData(o[1]); @@ -8773,7 +9518,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1834(); + o.data = buildUnnamed1906(); o.message = "foo"; } buildCounterInstanceGroupsScopedListWarning--; @@ -8784,7 +9529,7 @@ buildCounterInstanceGroupsScopedListWarning++; if (buildCounterInstanceGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1834(o.data); + checkUnnamed1906(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceGroupsScopedListWarning--; @@ -8795,7 +9540,7 @@ var o = new api.InstanceGroupsScopedList(); buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - o.instanceGroups = buildUnnamed1833(); + o.instanceGroups = buildUnnamed1905(); o.warning = buildInstanceGroupsScopedListWarning(); } buildCounterInstanceGroupsScopedList--; @@ -8805,20 +9550,20 @@ checkInstanceGroupsScopedList(api.InstanceGroupsScopedList o) { buildCounterInstanceGroupsScopedList++; if (buildCounterInstanceGroupsScopedList < 3) { - checkUnnamed1833(o.instanceGroups); + checkUnnamed1905(o.instanceGroups); checkInstanceGroupsScopedListWarning(o.warning); } buildCounterInstanceGroupsScopedList--; } -buildUnnamed1835() { +buildUnnamed1907() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed1835(core.List<api.NamedPort> o) { +checkUnnamed1907(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -8830,7 +9575,7 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed1835(); + o.namedPorts = buildUnnamed1907(); } buildCounterInstanceGroupsSetNamedPortsRequest--; return o; @@ -8841,19 +9586,19 @@ buildCounterInstanceGroupsSetNamedPortsRequest++; if (buildCounterInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1835(o.namedPorts); + checkUnnamed1907(o.namedPorts); } buildCounterInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed1836() { +buildUnnamed1908() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1836(core.List<api.Instance> o) { +checkUnnamed1908(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -8880,14 +9625,14 @@ buildCounterInstanceListWarningData--; } -buildUnnamed1837() { +buildUnnamed1909() { var o = new core.List<api.InstanceListWarningData>(); o.add(buildInstanceListWarningData()); o.add(buildInstanceListWarningData()); return o; } -checkUnnamed1837(core.List<api.InstanceListWarningData> o) { +checkUnnamed1909(core.List<api.InstanceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListWarningData(o[0]); checkInstanceListWarningData(o[1]); @@ -8899,7 +9644,7 @@ buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1837(); + o.data = buildUnnamed1909(); o.message = "foo"; } buildCounterInstanceListWarning--; @@ -8910,7 +9655,7 @@ buildCounterInstanceListWarning++; if (buildCounterInstanceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1837(o.data); + checkUnnamed1909(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceListWarning--; @@ -8922,7 +9667,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed1836(); + o.items = buildUnnamed1908(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -8936,7 +9681,7 @@ buildCounterInstanceList++; if (buildCounterInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1836(o.items); + checkUnnamed1908(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -8945,14 +9690,14 @@ buildCounterInstanceList--; } -buildUnnamed1838() { +buildUnnamed1910() { var o = new core.List<api.Reference>(); o.add(buildReference()); o.add(buildReference()); return o; } -checkUnnamed1838(core.List<api.Reference> o) { +checkUnnamed1910(core.List<api.Reference> o) { unittest.expect(o, unittest.hasLength(2)); checkReference(o[0]); checkReference(o[1]); @@ -8979,14 +9724,14 @@ buildCounterInstanceListReferrersWarningData--; } -buildUnnamed1839() { +buildUnnamed1911() { var o = new core.List<api.InstanceListReferrersWarningData>(); o.add(buildInstanceListReferrersWarningData()); o.add(buildInstanceListReferrersWarningData()); return o; } -checkUnnamed1839(core.List<api.InstanceListReferrersWarningData> o) { +checkUnnamed1911(core.List<api.InstanceListReferrersWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceListReferrersWarningData(o[0]); checkInstanceListReferrersWarningData(o[1]); @@ -8998,7 +9743,7 @@ buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1839(); + o.data = buildUnnamed1911(); o.message = "foo"; } buildCounterInstanceListReferrersWarning--; @@ -9009,7 +9754,7 @@ buildCounterInstanceListReferrersWarning++; if (buildCounterInstanceListReferrersWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1839(o.data); + checkUnnamed1911(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceListReferrersWarning--; @@ -9021,7 +9766,7 @@ buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { o.id = "foo"; - o.items = buildUnnamed1838(); + o.items = buildUnnamed1910(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9035,7 +9780,7 @@ buildCounterInstanceListReferrers++; if (buildCounterInstanceListReferrers < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1838(o.items); + checkUnnamed1910(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9136,79 +9881,79 @@ buildCounterInstanceMoveRequest--; } -buildUnnamed1840() { +buildUnnamed1912() { var o = new core.List<api.AttachedDisk>(); o.add(buildAttachedDisk()); o.add(buildAttachedDisk()); return o; } -checkUnnamed1840(core.List<api.AttachedDisk> o) { +checkUnnamed1912(core.List<api.AttachedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkAttachedDisk(o[0]); checkAttachedDisk(o[1]); } -buildUnnamed1841() { +buildUnnamed1913() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed1841(core.List<api.AcceleratorConfig> o) { +checkUnnamed1913(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed1842() { +buildUnnamed1914() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1842(core.Map<core.String, core.String> o) { +checkUnnamed1914(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')); } -buildUnnamed1843() { +buildUnnamed1915() { var o = new core.List<api.NetworkInterface>(); o.add(buildNetworkInterface()); o.add(buildNetworkInterface()); return o; } -checkUnnamed1843(core.List<api.NetworkInterface> o) { +checkUnnamed1915(core.List<api.NetworkInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkInterface(o[0]); checkNetworkInterface(o[1]); } -buildUnnamed1844() { +buildUnnamed1916() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1844(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')); } -buildUnnamed1845() { +buildUnnamed1917() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1845(core.List<api.ServiceAccount> o) { +checkUnnamed1917(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -9220,18 +9965,20 @@ buildCounterInstanceProperties++; if (buildCounterInstanceProperties < 3) { o.canIpForward = true; + o.confidentialInstanceConfig = buildConfidentialInstanceConfig(); o.description = "foo"; - o.disks = buildUnnamed1840(); - o.guestAccelerators = buildUnnamed1841(); - o.labels = buildUnnamed1842(); + o.disks = buildUnnamed1912(); + o.guestAccelerators = buildUnnamed1913(); + o.labels = buildUnnamed1914(); o.machineType = "foo"; o.metadata = buildMetadata(); o.minCpuPlatform = "foo"; - o.networkInterfaces = buildUnnamed1843(); + o.networkInterfaces = buildUnnamed1915(); + o.privateIpv6GoogleAccess = "foo"; o.reservationAffinity = buildReservationAffinity(); - o.resourcePolicies = buildUnnamed1844(); + o.resourcePolicies = buildUnnamed1916(); o.scheduling = buildScheduling(); - o.serviceAccounts = buildUnnamed1845(); + o.serviceAccounts = buildUnnamed1917(); o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.tags = buildTags(); } @@ -9243,18 +9990,20 @@ buildCounterInstanceProperties++; if (buildCounterInstanceProperties < 3) { unittest.expect(o.canIpForward, unittest.isTrue); + checkConfidentialInstanceConfig(o.confidentialInstanceConfig); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1840(o.disks); - checkUnnamed1841(o.guestAccelerators); - checkUnnamed1842(o.labels); + checkUnnamed1912(o.disks); + checkUnnamed1913(o.guestAccelerators); + checkUnnamed1914(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); checkMetadata(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); - checkUnnamed1843(o.networkInterfaces); + checkUnnamed1915(o.networkInterfaces); + unittest.expect(o.privateIpv6GoogleAccess, unittest.equals('foo')); checkReservationAffinity(o.reservationAffinity); - checkUnnamed1844(o.resourcePolicies); + checkUnnamed1916(o.resourcePolicies); checkScheduling(o.scheduling); - checkUnnamed1845(o.serviceAccounts); + checkUnnamed1917(o.serviceAccounts); checkShieldedInstanceConfig(o.shieldedInstanceConfig); checkTags(o.tags); } @@ -9315,14 +10064,14 @@ buildCounterInstanceTemplate--; } -buildUnnamed1846() { +buildUnnamed1918() { var o = new core.List<api.InstanceTemplate>(); o.add(buildInstanceTemplate()); o.add(buildInstanceTemplate()); return o; } -checkUnnamed1846(core.List<api.InstanceTemplate> o) { +checkUnnamed1918(core.List<api.InstanceTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplate(o[0]); checkInstanceTemplate(o[1]); @@ -9349,14 +10098,14 @@ buildCounterInstanceTemplateListWarningData--; } -buildUnnamed1847() { +buildUnnamed1919() { var o = new core.List<api.InstanceTemplateListWarningData>(); o.add(buildInstanceTemplateListWarningData()); o.add(buildInstanceTemplateListWarningData()); return o; } -checkUnnamed1847(core.List<api.InstanceTemplateListWarningData> o) { +checkUnnamed1919(core.List<api.InstanceTemplateListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceTemplateListWarningData(o[0]); checkInstanceTemplateListWarningData(o[1]); @@ -9368,7 +10117,7 @@ buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1847(); + o.data = buildUnnamed1919(); o.message = "foo"; } buildCounterInstanceTemplateListWarning--; @@ -9379,7 +10128,7 @@ buildCounterInstanceTemplateListWarning++; if (buildCounterInstanceTemplateListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1847(o.data); + checkUnnamed1919(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstanceTemplateListWarning--; @@ -9391,7 +10140,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed1846(); + o.items = buildUnnamed1918(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -9405,7 +10154,7 @@ buildCounterInstanceTemplateList++; if (buildCounterInstanceTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1846(o.items); + checkUnnamed1918(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -9414,14 +10163,14 @@ buildCounterInstanceTemplateList--; } -buildUnnamed1848() { +buildUnnamed1920() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed1848(core.List<api.NamedPort> o) { +checkUnnamed1920(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -9433,7 +10182,7 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { o.instance = "foo"; - o.namedPorts = buildUnnamed1848(); + o.namedPorts = buildUnnamed1920(); o.status = "foo"; } buildCounterInstanceWithNamedPorts--; @@ -9444,20 +10193,20 @@ buildCounterInstanceWithNamedPorts++; if (buildCounterInstanceWithNamedPorts < 3) { unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed1848(o.namedPorts); + checkUnnamed1920(o.namedPorts); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInstanceWithNamedPorts--; } -buildUnnamed1849() { +buildUnnamed1921() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1849(core.List<core.String> o) { +checkUnnamed1921(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9468,7 +10217,7 @@ var o = new api.InstancesAddResourcePoliciesRequest(); buildCounterInstancesAddResourcePoliciesRequest++; if (buildCounterInstancesAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1849(); + o.resourcePolicies = buildUnnamed1921(); } buildCounterInstancesAddResourcePoliciesRequest--; return o; @@ -9478,19 +10227,19 @@ api.InstancesAddResourcePoliciesRequest o) { buildCounterInstancesAddResourcePoliciesRequest++; if (buildCounterInstancesAddResourcePoliciesRequest < 3) { - checkUnnamed1849(o.resourcePolicies); + checkUnnamed1921(o.resourcePolicies); } buildCounterInstancesAddResourcePoliciesRequest--; } -buildUnnamed1850() { +buildUnnamed1922() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1850(core.List<core.String> o) { +checkUnnamed1922(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9501,7 +10250,7 @@ var o = new api.InstancesRemoveResourcePoliciesRequest(); buildCounterInstancesRemoveResourcePoliciesRequest++; if (buildCounterInstancesRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1850(); + o.resourcePolicies = buildUnnamed1922(); } buildCounterInstancesRemoveResourcePoliciesRequest--; return o; @@ -9511,19 +10260,19 @@ api.InstancesRemoveResourcePoliciesRequest o) { buildCounterInstancesRemoveResourcePoliciesRequest++; if (buildCounterInstancesRemoveResourcePoliciesRequest < 3) { - checkUnnamed1850(o.resourcePolicies); + checkUnnamed1922(o.resourcePolicies); } buildCounterInstancesRemoveResourcePoliciesRequest--; } -buildUnnamed1851() { +buildUnnamed1923() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1851(core.List<api.Instance> o) { +checkUnnamed1923(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -9550,14 +10299,14 @@ buildCounterInstancesScopedListWarningData--; } -buildUnnamed1852() { +buildUnnamed1924() { var o = new core.List<api.InstancesScopedListWarningData>(); o.add(buildInstancesScopedListWarningData()); o.add(buildInstancesScopedListWarningData()); return o; } -checkUnnamed1852(core.List<api.InstancesScopedListWarningData> o) { +checkUnnamed1924(core.List<api.InstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInstancesScopedListWarningData(o[0]); checkInstancesScopedListWarningData(o[1]); @@ -9569,7 +10318,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1852(); + o.data = buildUnnamed1924(); o.message = "foo"; } buildCounterInstancesScopedListWarning--; @@ -9580,7 +10329,7 @@ buildCounterInstancesScopedListWarning++; if (buildCounterInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1852(o.data); + checkUnnamed1924(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInstancesScopedListWarning--; @@ -9591,7 +10340,7 @@ var o = new api.InstancesScopedList(); buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - o.instances = buildUnnamed1851(); + o.instances = buildUnnamed1923(); o.warning = buildInstancesScopedListWarning(); } buildCounterInstancesScopedList--; @@ -9601,20 +10350,20 @@ checkInstancesScopedList(api.InstancesScopedList o) { buildCounterInstancesScopedList++; if (buildCounterInstancesScopedList < 3) { - checkUnnamed1851(o.instances); + checkUnnamed1923(o.instances); checkInstancesScopedListWarning(o.warning); } buildCounterInstancesScopedList--; } -buildUnnamed1853() { +buildUnnamed1925() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1853(core.Map<core.String, core.String> o) { +checkUnnamed1925(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')); @@ -9626,7 +10375,7 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed1853(); + o.labels = buildUnnamed1925(); } buildCounterInstancesSetLabelsRequest--; return o; @@ -9636,19 +10385,19 @@ buildCounterInstancesSetLabelsRequest++; if (buildCounterInstancesSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1853(o.labels); + checkUnnamed1925(o.labels); } buildCounterInstancesSetLabelsRequest--; } -buildUnnamed1854() { +buildUnnamed1926() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed1854(core.List<api.AcceleratorConfig> o) { +checkUnnamed1926(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); @@ -9659,7 +10408,7 @@ var o = new api.InstancesSetMachineResourcesRequest(); buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - o.guestAccelerators = buildUnnamed1854(); + o.guestAccelerators = buildUnnamed1926(); } buildCounterInstancesSetMachineResourcesRequest--; return o; @@ -9669,7 +10418,7 @@ api.InstancesSetMachineResourcesRequest o) { buildCounterInstancesSetMachineResourcesRequest++; if (buildCounterInstancesSetMachineResourcesRequest < 3) { - checkUnnamed1854(o.guestAccelerators); + checkUnnamed1926(o.guestAccelerators); } buildCounterInstancesSetMachineResourcesRequest--; } @@ -9713,14 +10462,14 @@ buildCounterInstancesSetMinCpuPlatformRequest--; } -buildUnnamed1855() { +buildUnnamed1927() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1855(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')); @@ -9732,7 +10481,7 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { o.email = "foo"; - o.scopes = buildUnnamed1855(); + o.scopes = buildUnnamed1927(); } buildCounterInstancesSetServiceAccountRequest--; return o; @@ -9743,19 +10492,19 @@ buildCounterInstancesSetServiceAccountRequest++; if (buildCounterInstancesSetServiceAccountRequest < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed1855(o.scopes); + checkUnnamed1927(o.scopes); } buildCounterInstancesSetServiceAccountRequest--; } -buildUnnamed1856() { +buildUnnamed1928() { var o = new core.List<api.CustomerEncryptionKeyProtectedDisk>(); o.add(buildCustomerEncryptionKeyProtectedDisk()); o.add(buildCustomerEncryptionKeyProtectedDisk()); return o; } -checkUnnamed1856(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { +checkUnnamed1928(core.List<api.CustomerEncryptionKeyProtectedDisk> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomerEncryptionKeyProtectedDisk(o[0]); checkCustomerEncryptionKeyProtectedDisk(o[1]); @@ -9766,7 +10515,7 @@ var o = new api.InstancesStartWithEncryptionKeyRequest(); buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - o.disks = buildUnnamed1856(); + o.disks = buildUnnamed1928(); } buildCounterInstancesStartWithEncryptionKeyRequest--; return o; @@ -9776,7 +10525,7 @@ api.InstancesStartWithEncryptionKeyRequest o) { buildCounterInstancesStartWithEncryptionKeyRequest++; if (buildCounterInstancesStartWithEncryptionKeyRequest < 3) { - checkUnnamed1856(o.disks); + checkUnnamed1928(o.disks); } buildCounterInstancesStartWithEncryptionKeyRequest--; } @@ -9802,40 +10551,40 @@ buildCounterInt64RangeMatch--; } -buildUnnamed1857() { +buildUnnamed1929() { var o = new core.List<api.InterconnectCircuitInfo>(); o.add(buildInterconnectCircuitInfo()); o.add(buildInterconnectCircuitInfo()); return o; } -checkUnnamed1857(core.List<api.InterconnectCircuitInfo> o) { +checkUnnamed1929(core.List<api.InterconnectCircuitInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectCircuitInfo(o[0]); checkInterconnectCircuitInfo(o[1]); } -buildUnnamed1858() { +buildUnnamed1930() { var o = new core.List<api.InterconnectOutageNotification>(); o.add(buildInterconnectOutageNotification()); o.add(buildInterconnectOutageNotification()); return o; } -checkUnnamed1858(core.List<api.InterconnectOutageNotification> o) { +checkUnnamed1930(core.List<api.InterconnectOutageNotification> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectOutageNotification(o[0]); checkInterconnectOutageNotification(o[1]); } -buildUnnamed1859() { +buildUnnamed1931() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1859(core.List<core.String> o) { +checkUnnamed1931(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9847,15 +10596,15 @@ buildCounterInterconnect++; if (buildCounterInterconnect < 3) { o.adminEnabled = true; - o.circuitInfos = buildUnnamed1857(); + o.circuitInfos = buildUnnamed1929(); o.creationTimestamp = "foo"; o.customerName = "foo"; o.description = "foo"; - o.expectedOutages = buildUnnamed1858(); + o.expectedOutages = buildUnnamed1930(); o.googleIpAddress = "foo"; o.googleReferenceId = "foo"; o.id = "foo"; - o.interconnectAttachments = buildUnnamed1859(); + o.interconnectAttachments = buildUnnamed1931(); o.interconnectType = "foo"; o.kind = "foo"; o.linkType = "foo"; @@ -9877,15 +10626,15 @@ buildCounterInterconnect++; if (buildCounterInterconnect < 3) { unittest.expect(o.adminEnabled, unittest.isTrue); - checkUnnamed1857(o.circuitInfos); + checkUnnamed1929(o.circuitInfos); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.customerName, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1858(o.expectedOutages); + checkUnnamed1930(o.expectedOutages); unittest.expect(o.googleIpAddress, unittest.equals('foo')); unittest.expect(o.googleReferenceId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1859(o.interconnectAttachments); + checkUnnamed1931(o.interconnectAttachments); unittest.expect(o.interconnectType, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.linkType, unittest.equals('foo')); @@ -9902,14 +10651,14 @@ buildCounterInterconnect--; } -buildUnnamed1860() { +buildUnnamed1932() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1860(core.List<core.String> o) { +checkUnnamed1932(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9922,7 +10671,7 @@ if (buildCounterInterconnectAttachment < 3) { o.adminEnabled = true; o.bandwidth = "foo"; - o.candidateSubnets = buildUnnamed1860(); + o.candidateSubnets = buildUnnamed1932(); o.cloudRouterIpAddress = "foo"; o.creationTimestamp = "foo"; o.customerRouterIpAddress = "foo"; @@ -9954,7 +10703,7 @@ if (buildCounterInterconnectAttachment < 3) { unittest.expect(o.adminEnabled, unittest.isTrue); unittest.expect(o.bandwidth, unittest.equals('foo')); - checkUnnamed1860(o.candidateSubnets); + checkUnnamed1932(o.candidateSubnets); unittest.expect(o.cloudRouterIpAddress, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.customerRouterIpAddress, unittest.equals('foo')); @@ -9980,20 +10729,33 @@ buildCounterInterconnectAttachment--; } -buildUnnamed1861() { +buildUnnamed1933() { var o = new core.Map<core.String, api.InterconnectAttachmentsScopedList>(); o["x"] = buildInterconnectAttachmentsScopedList(); o["y"] = buildInterconnectAttachmentsScopedList(); return o; } -checkUnnamed1861( +checkUnnamed1933( core.Map<core.String, api.InterconnectAttachmentsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentsScopedList(o["x"]); checkInterconnectAttachmentsScopedList(o["y"]); } +buildUnnamed1934() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1934(core.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 buildCounterInterconnectAttachmentAggregatedListWarningData = 0; buildInterconnectAttachmentAggregatedListWarningData() { var o = new api.InterconnectAttachmentAggregatedListWarningData(); @@ -10016,14 +10778,14 @@ buildCounterInterconnectAttachmentAggregatedListWarningData--; } -buildUnnamed1862() { +buildUnnamed1935() { var o = new core.List<api.InterconnectAttachmentAggregatedListWarningData>(); o.add(buildInterconnectAttachmentAggregatedListWarningData()); o.add(buildInterconnectAttachmentAggregatedListWarningData()); return o; } -checkUnnamed1862( +checkUnnamed1935( core.List<api.InterconnectAttachmentAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentAggregatedListWarningData(o[0]); @@ -10036,7 +10798,7 @@ buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1862(); + o.data = buildUnnamed1935(); o.message = "foo"; } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -10048,7 +10810,7 @@ buildCounterInterconnectAttachmentAggregatedListWarning++; if (buildCounterInterconnectAttachmentAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1862(o.data); + checkUnnamed1935(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentAggregatedListWarning--; @@ -10060,10 +10822,11 @@ buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1861(); + o.items = buildUnnamed1933(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1934(); o.warning = buildInterconnectAttachmentAggregatedListWarning(); } buildCounterInterconnectAttachmentAggregatedList--; @@ -10075,23 +10838,24 @@ buildCounterInterconnectAttachmentAggregatedList++; if (buildCounterInterconnectAttachmentAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1861(o.items); + checkUnnamed1933(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1934(o.unreachables); checkInterconnectAttachmentAggregatedListWarning(o.warning); } buildCounterInterconnectAttachmentAggregatedList--; } -buildUnnamed1863() { +buildUnnamed1936() { var o = new core.List<api.InterconnectAttachment>(); o.add(buildInterconnectAttachment()); o.add(buildInterconnectAttachment()); return o; } -checkUnnamed1863(core.List<api.InterconnectAttachment> o) { +checkUnnamed1936(core.List<api.InterconnectAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -10119,14 +10883,14 @@ buildCounterInterconnectAttachmentListWarningData--; } -buildUnnamed1864() { +buildUnnamed1937() { var o = new core.List<api.InterconnectAttachmentListWarningData>(); o.add(buildInterconnectAttachmentListWarningData()); o.add(buildInterconnectAttachmentListWarningData()); return o; } -checkUnnamed1864(core.List<api.InterconnectAttachmentListWarningData> o) { +checkUnnamed1937(core.List<api.InterconnectAttachmentListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentListWarningData(o[0]); checkInterconnectAttachmentListWarningData(o[1]); @@ -10138,7 +10902,7 @@ buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1864(); + o.data = buildUnnamed1937(); o.message = "foo"; } buildCounterInterconnectAttachmentListWarning--; @@ -10150,7 +10914,7 @@ buildCounterInterconnectAttachmentListWarning++; if (buildCounterInterconnectAttachmentListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1864(o.data); + checkUnnamed1937(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentListWarning--; @@ -10162,7 +10926,7 @@ buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { o.id = "foo"; - o.items = buildUnnamed1863(); + o.items = buildUnnamed1936(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10176,7 +10940,7 @@ buildCounterInterconnectAttachmentList++; if (buildCounterInterconnectAttachmentList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1863(o.items); + checkUnnamed1936(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10229,14 +10993,14 @@ buildCounterInterconnectAttachmentPrivateInfo--; } -buildUnnamed1865() { +buildUnnamed1938() { var o = new core.List<api.InterconnectAttachment>(); o.add(buildInterconnectAttachment()); o.add(buildInterconnectAttachment()); return o; } -checkUnnamed1865(core.List<api.InterconnectAttachment> o) { +checkUnnamed1938(core.List<api.InterconnectAttachment> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachment(o[0]); checkInterconnectAttachment(o[1]); @@ -10264,14 +11028,14 @@ buildCounterInterconnectAttachmentsScopedListWarningData--; } -buildUnnamed1866() { +buildUnnamed1939() { var o = new core.List<api.InterconnectAttachmentsScopedListWarningData>(); o.add(buildInterconnectAttachmentsScopedListWarningData()); o.add(buildInterconnectAttachmentsScopedListWarningData()); return o; } -checkUnnamed1866( +checkUnnamed1939( core.List<api.InterconnectAttachmentsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectAttachmentsScopedListWarningData(o[0]); @@ -10284,7 +11048,7 @@ buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1866(); + o.data = buildUnnamed1939(); o.message = "foo"; } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -10296,7 +11060,7 @@ buildCounterInterconnectAttachmentsScopedListWarning++; if (buildCounterInterconnectAttachmentsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1866(o.data); + checkUnnamed1939(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectAttachmentsScopedListWarning--; @@ -10307,7 +11071,7 @@ var o = new api.InterconnectAttachmentsScopedList(); buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - o.interconnectAttachments = buildUnnamed1865(); + o.interconnectAttachments = buildUnnamed1938(); o.warning = buildInterconnectAttachmentsScopedListWarning(); } buildCounterInterconnectAttachmentsScopedList--; @@ -10318,7 +11082,7 @@ api.InterconnectAttachmentsScopedList o) { buildCounterInterconnectAttachmentsScopedList++; if (buildCounterInterconnectAttachmentsScopedList < 3) { - checkUnnamed1865(o.interconnectAttachments); + checkUnnamed1938(o.interconnectAttachments); checkInterconnectAttachmentsScopedListWarning(o.warning); } buildCounterInterconnectAttachmentsScopedList--; @@ -10347,27 +11111,27 @@ buildCounterInterconnectCircuitInfo--; } -buildUnnamed1867() { +buildUnnamed1940() { var o = new core.List<api.InterconnectDiagnosticsARPEntry>(); o.add(buildInterconnectDiagnosticsARPEntry()); o.add(buildInterconnectDiagnosticsARPEntry()); return o; } -checkUnnamed1867(core.List<api.InterconnectDiagnosticsARPEntry> o) { +checkUnnamed1940(core.List<api.InterconnectDiagnosticsARPEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsARPEntry(o[0]); checkInterconnectDiagnosticsARPEntry(o[1]); } -buildUnnamed1868() { +buildUnnamed1941() { var o = new core.List<api.InterconnectDiagnosticsLinkStatus>(); o.add(buildInterconnectDiagnosticsLinkStatus()); o.add(buildInterconnectDiagnosticsLinkStatus()); return o; } -checkUnnamed1868(core.List<api.InterconnectDiagnosticsLinkStatus> o) { +checkUnnamed1941(core.List<api.InterconnectDiagnosticsLinkStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsLinkStatus(o[0]); checkInterconnectDiagnosticsLinkStatus(o[1]); @@ -10378,8 +11142,8 @@ var o = new api.InterconnectDiagnostics(); buildCounterInterconnectDiagnostics++; if (buildCounterInterconnectDiagnostics < 3) { - o.arpCaches = buildUnnamed1867(); - o.links = buildUnnamed1868(); + o.arpCaches = buildUnnamed1940(); + o.links = buildUnnamed1941(); o.macAddress = "foo"; } buildCounterInterconnectDiagnostics--; @@ -10389,8 +11153,8 @@ checkInterconnectDiagnostics(api.InterconnectDiagnostics o) { buildCounterInterconnectDiagnostics++; if (buildCounterInterconnectDiagnostics < 3) { - checkUnnamed1867(o.arpCaches); - checkUnnamed1868(o.links); + checkUnnamed1940(o.arpCaches); + checkUnnamed1941(o.links); unittest.expect(o.macAddress, unittest.equals('foo')); } buildCounterInterconnectDiagnostics--; @@ -10463,14 +11227,14 @@ buildCounterInterconnectDiagnosticsLinkOpticalPower--; } -buildUnnamed1869() { +buildUnnamed1942() { var o = new core.List<api.InterconnectDiagnosticsARPEntry>(); o.add(buildInterconnectDiagnosticsARPEntry()); o.add(buildInterconnectDiagnosticsARPEntry()); return o; } -checkUnnamed1869(core.List<api.InterconnectDiagnosticsARPEntry> o) { +checkUnnamed1942(core.List<api.InterconnectDiagnosticsARPEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectDiagnosticsARPEntry(o[0]); checkInterconnectDiagnosticsARPEntry(o[1]); @@ -10481,7 +11245,7 @@ var o = new api.InterconnectDiagnosticsLinkStatus(); buildCounterInterconnectDiagnosticsLinkStatus++; if (buildCounterInterconnectDiagnosticsLinkStatus < 3) { - o.arpCaches = buildUnnamed1869(); + o.arpCaches = buildUnnamed1942(); o.circuitId = "foo"; o.googleDemarc = "foo"; o.lacpStatus = buildInterconnectDiagnosticsLinkLACPStatus(); @@ -10496,7 +11260,7 @@ api.InterconnectDiagnosticsLinkStatus o) { buildCounterInterconnectDiagnosticsLinkStatus++; if (buildCounterInterconnectDiagnosticsLinkStatus < 3) { - checkUnnamed1869(o.arpCaches); + checkUnnamed1942(o.arpCaches); unittest.expect(o.circuitId, unittest.equals('foo')); unittest.expect(o.googleDemarc, unittest.equals('foo')); checkInterconnectDiagnosticsLinkLACPStatus(o.lacpStatus); @@ -10506,14 +11270,14 @@ buildCounterInterconnectDiagnosticsLinkStatus--; } -buildUnnamed1870() { +buildUnnamed1943() { var o = new core.List<api.Interconnect>(); o.add(buildInterconnect()); o.add(buildInterconnect()); return o; } -checkUnnamed1870(core.List<api.Interconnect> o) { +checkUnnamed1943(core.List<api.Interconnect> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnect(o[0]); checkInterconnect(o[1]); @@ -10540,14 +11304,14 @@ buildCounterInterconnectListWarningData--; } -buildUnnamed1871() { +buildUnnamed1944() { var o = new core.List<api.InterconnectListWarningData>(); o.add(buildInterconnectListWarningData()); o.add(buildInterconnectListWarningData()); return o; } -checkUnnamed1871(core.List<api.InterconnectListWarningData> o) { +checkUnnamed1944(core.List<api.InterconnectListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectListWarningData(o[0]); checkInterconnectListWarningData(o[1]); @@ -10559,7 +11323,7 @@ buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1871(); + o.data = buildUnnamed1944(); o.message = "foo"; } buildCounterInterconnectListWarning--; @@ -10570,7 +11334,7 @@ buildCounterInterconnectListWarning++; if (buildCounterInterconnectListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1871(o.data); + checkUnnamed1944(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectListWarning--; @@ -10582,7 +11346,7 @@ buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { o.id = "foo"; - o.items = buildUnnamed1870(); + o.items = buildUnnamed1943(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10596,7 +11360,7 @@ buildCounterInterconnectList++; if (buildCounterInterconnectList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1870(o.items); + checkUnnamed1943(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10605,14 +11369,14 @@ buildCounterInterconnectList--; } -buildUnnamed1872() { +buildUnnamed1945() { var o = new core.List<api.InterconnectLocationRegionInfo>(); o.add(buildInterconnectLocationRegionInfo()); o.add(buildInterconnectLocationRegionInfo()); return o; } -checkUnnamed1872(core.List<api.InterconnectLocationRegionInfo> o) { +checkUnnamed1945(core.List<api.InterconnectLocationRegionInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationRegionInfo(o[0]); checkInterconnectLocationRegionInfo(o[1]); @@ -10635,7 +11399,7 @@ o.kind = "foo"; o.name = "foo"; o.peeringdbFacilityId = "foo"; - o.regionInfos = buildUnnamed1872(); + o.regionInfos = buildUnnamed1945(); o.selfLink = "foo"; o.status = "foo"; } @@ -10658,21 +11422,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peeringdbFacilityId, unittest.equals('foo')); - checkUnnamed1872(o.regionInfos); + checkUnnamed1945(o.regionInfos); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterInterconnectLocation--; } -buildUnnamed1873() { +buildUnnamed1946() { var o = new core.List<api.InterconnectLocation>(); o.add(buildInterconnectLocation()); o.add(buildInterconnectLocation()); return o; } -checkUnnamed1873(core.List<api.InterconnectLocation> o) { +checkUnnamed1946(core.List<api.InterconnectLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocation(o[0]); checkInterconnectLocation(o[1]); @@ -10700,14 +11464,14 @@ buildCounterInterconnectLocationListWarningData--; } -buildUnnamed1874() { +buildUnnamed1947() { var o = new core.List<api.InterconnectLocationListWarningData>(); o.add(buildInterconnectLocationListWarningData()); o.add(buildInterconnectLocationListWarningData()); return o; } -checkUnnamed1874(core.List<api.InterconnectLocationListWarningData> o) { +checkUnnamed1947(core.List<api.InterconnectLocationListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkInterconnectLocationListWarningData(o[0]); checkInterconnectLocationListWarningData(o[1]); @@ -10719,7 +11483,7 @@ buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1874(); + o.data = buildUnnamed1947(); o.message = "foo"; } buildCounterInterconnectLocationListWarning--; @@ -10730,7 +11494,7 @@ buildCounterInterconnectLocationListWarning++; if (buildCounterInterconnectLocationListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1874(o.data); + checkUnnamed1947(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterInterconnectLocationListWarning--; @@ -10742,7 +11506,7 @@ buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { o.id = "foo"; - o.items = buildUnnamed1873(); + o.items = buildUnnamed1946(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -10756,7 +11520,7 @@ buildCounterInterconnectLocationList++; if (buildCounterInterconnectLocationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1873(o.items); + checkUnnamed1946(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -10788,14 +11552,14 @@ buildCounterInterconnectLocationRegionInfo--; } -buildUnnamed1875() { +buildUnnamed1948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1875(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')); @@ -10806,7 +11570,7 @@ var o = new api.InterconnectOutageNotification(); buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - o.affectedCircuits = buildUnnamed1875(); + o.affectedCircuits = buildUnnamed1948(); o.description = "foo"; o.endTime = "foo"; o.issueType = "foo"; @@ -10822,7 +11586,7 @@ checkInterconnectOutageNotification(api.InterconnectOutageNotification o) { buildCounterInterconnectOutageNotification++; if (buildCounterInterconnectOutageNotification < 3) { - checkUnnamed1875(o.affectedCircuits); + checkUnnamed1948(o.affectedCircuits); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.issueType, unittest.equals('foo')); @@ -10891,14 +11655,14 @@ buildCounterLicense--; } -buildUnnamed1876() { +buildUnnamed1949() { var o = new core.List<api.LicenseCodeLicenseAlias>(); o.add(buildLicenseCodeLicenseAlias()); o.add(buildLicenseCodeLicenseAlias()); return o; } -checkUnnamed1876(core.List<api.LicenseCodeLicenseAlias> o) { +checkUnnamed1949(core.List<api.LicenseCodeLicenseAlias> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseCodeLicenseAlias(o[0]); checkLicenseCodeLicenseAlias(o[1]); @@ -10913,7 +11677,7 @@ o.description = "foo"; o.id = "foo"; o.kind = "foo"; - o.licenseAlias = buildUnnamed1876(); + o.licenseAlias = buildUnnamed1949(); o.name = "foo"; o.selfLink = "foo"; o.state = "foo"; @@ -10930,7 +11694,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1876(o.licenseAlias); + checkUnnamed1949(o.licenseAlias); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -10960,6 +11724,29 @@ buildCounterLicenseCodeLicenseAlias--; } +core.int buildCounterLicenseResourceCommitment = 0; +buildLicenseResourceCommitment() { + var o = new api.LicenseResourceCommitment(); + buildCounterLicenseResourceCommitment++; + if (buildCounterLicenseResourceCommitment < 3) { + o.amount = "foo"; + o.coresPerLicense = "foo"; + o.license = "foo"; + } + buildCounterLicenseResourceCommitment--; + return o; +} + +checkLicenseResourceCommitment(api.LicenseResourceCommitment o) { + buildCounterLicenseResourceCommitment++; + if (buildCounterLicenseResourceCommitment < 3) { + unittest.expect(o.amount, unittest.equals('foo')); + unittest.expect(o.coresPerLicense, unittest.equals('foo')); + unittest.expect(o.license, unittest.equals('foo')); + } + buildCounterLicenseResourceCommitment--; +} + core.int buildCounterLicenseResourceRequirements = 0; buildLicenseResourceRequirements() { var o = new api.LicenseResourceRequirements(); @@ -10981,14 +11768,14 @@ buildCounterLicenseResourceRequirements--; } -buildUnnamed1877() { +buildUnnamed1950() { var o = new core.List<api.License>(); o.add(buildLicense()); o.add(buildLicense()); return o; } -checkUnnamed1877(core.List<api.License> o) { +checkUnnamed1950(core.List<api.License> o) { unittest.expect(o, unittest.hasLength(2)); checkLicense(o[0]); checkLicense(o[1]); @@ -11015,14 +11802,14 @@ buildCounterLicensesListResponseWarningData--; } -buildUnnamed1878() { +buildUnnamed1951() { var o = new core.List<api.LicensesListResponseWarningData>(); o.add(buildLicensesListResponseWarningData()); o.add(buildLicensesListResponseWarningData()); return o; } -checkUnnamed1878(core.List<api.LicensesListResponseWarningData> o) { +checkUnnamed1951(core.List<api.LicensesListResponseWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkLicensesListResponseWarningData(o[0]); checkLicensesListResponseWarningData(o[1]); @@ -11034,7 +11821,7 @@ buildCounterLicensesListResponseWarning++; if (buildCounterLicensesListResponseWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1878(); + o.data = buildUnnamed1951(); o.message = "foo"; } buildCounterLicensesListResponseWarning--; @@ -11045,7 +11832,7 @@ buildCounterLicensesListResponseWarning++; if (buildCounterLicensesListResponseWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1878(o.data); + checkUnnamed1951(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterLicensesListResponseWarning--; @@ -11057,7 +11844,7 @@ buildCounterLicensesListResponse++; if (buildCounterLicensesListResponse < 3) { o.id = "foo"; - o.items = buildUnnamed1877(); + o.items = buildUnnamed1950(); o.nextPageToken = "foo"; o.selfLink = "foo"; o.warning = buildLicensesListResponseWarning(); @@ -11070,7 +11857,7 @@ buildCounterLicensesListResponse++; if (buildCounterLicensesListResponse < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1877(o.items); + checkUnnamed1950(o.items); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkLicensesListResponseWarning(o.warning); @@ -11122,14 +11909,14 @@ buildCounterLogConfigCloudAuditOptions--; } -buildUnnamed1879() { +buildUnnamed1952() { var o = new core.List<api.LogConfigCounterOptionsCustomField>(); o.add(buildLogConfigCounterOptionsCustomField()); o.add(buildLogConfigCounterOptionsCustomField()); return o; } -checkUnnamed1879(core.List<api.LogConfigCounterOptionsCustomField> o) { +checkUnnamed1952(core.List<api.LogConfigCounterOptionsCustomField> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfigCounterOptionsCustomField(o[0]); checkLogConfigCounterOptionsCustomField(o[1]); @@ -11140,7 +11927,7 @@ var o = new api.LogConfigCounterOptions(); buildCounterLogConfigCounterOptions++; if (buildCounterLogConfigCounterOptions < 3) { - o.customFields = buildUnnamed1879(); + o.customFields = buildUnnamed1952(); o.field = "foo"; o.metric = "foo"; } @@ -11151,7 +11938,7 @@ checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { buildCounterLogConfigCounterOptions++; if (buildCounterLogConfigCounterOptions < 3) { - checkUnnamed1879(o.customFields); + checkUnnamed1952(o.customFields); unittest.expect(o.field, unittest.equals('foo')); unittest.expect(o.metric, unittest.equals('foo')); } @@ -11199,6 +11986,40 @@ buildCounterLogConfigDataAccessOptions--; } +core.int buildCounterMachineTypeAccelerators = 0; +buildMachineTypeAccelerators() { + var o = new api.MachineTypeAccelerators(); + buildCounterMachineTypeAccelerators++; + if (buildCounterMachineTypeAccelerators < 3) { + o.guestAcceleratorCount = 42; + o.guestAcceleratorType = "foo"; + } + buildCounterMachineTypeAccelerators--; + return o; +} + +checkMachineTypeAccelerators(api.MachineTypeAccelerators o) { + buildCounterMachineTypeAccelerators++; + if (buildCounterMachineTypeAccelerators < 3) { + unittest.expect(o.guestAcceleratorCount, unittest.equals(42)); + unittest.expect(o.guestAcceleratorType, unittest.equals('foo')); + } + buildCounterMachineTypeAccelerators--; +} + +buildUnnamed1953() { + var o = new core.List<api.MachineTypeAccelerators>(); + o.add(buildMachineTypeAccelerators()); + o.add(buildMachineTypeAccelerators()); + return o; +} + +checkUnnamed1953(core.List<api.MachineTypeAccelerators> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMachineTypeAccelerators(o[0]); + checkMachineTypeAccelerators(o[1]); +} + core.int buildCounterMachineTypeScratchDisks = 0; buildMachineTypeScratchDisks() { var o = new api.MachineTypeScratchDisks(); @@ -11218,14 +12039,14 @@ buildCounterMachineTypeScratchDisks--; } -buildUnnamed1880() { +buildUnnamed1954() { var o = new core.List<api.MachineTypeScratchDisks>(); o.add(buildMachineTypeScratchDisks()); o.add(buildMachineTypeScratchDisks()); return o; } -checkUnnamed1880(core.List<api.MachineTypeScratchDisks> o) { +checkUnnamed1954(core.List<api.MachineTypeScratchDisks> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeScratchDisks(o[0]); checkMachineTypeScratchDisks(o[1]); @@ -11236,6 +12057,7 @@ var o = new api.MachineType(); buildCounterMachineType++; if (buildCounterMachineType < 3) { + o.accelerators = buildUnnamed1953(); o.creationTimestamp = "foo"; o.deprecated = buildDeprecationStatus(); o.description = "foo"; @@ -11248,7 +12070,7 @@ o.maximumPersistentDisksSizeGb = "foo"; o.memoryMb = 42; o.name = "foo"; - o.scratchDisks = buildUnnamed1880(); + o.scratchDisks = buildUnnamed1954(); o.selfLink = "foo"; o.zone = "foo"; } @@ -11259,6 +12081,7 @@ checkMachineType(api.MachineType o) { buildCounterMachineType++; if (buildCounterMachineType < 3) { + checkUnnamed1953(o.accelerators); unittest.expect(o.creationTimestamp, unittest.equals('foo')); checkDeprecationStatus(o.deprecated); unittest.expect(o.description, unittest.equals('foo')); @@ -11271,26 +12094,39 @@ unittest.expect(o.maximumPersistentDisksSizeGb, unittest.equals('foo')); unittest.expect(o.memoryMb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1880(o.scratchDisks); + checkUnnamed1954(o.scratchDisks); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterMachineType--; } -buildUnnamed1881() { +buildUnnamed1955() { var o = new core.Map<core.String, api.MachineTypesScopedList>(); o["x"] = buildMachineTypesScopedList(); o["y"] = buildMachineTypesScopedList(); return o; } -checkUnnamed1881(core.Map<core.String, api.MachineTypesScopedList> o) { +checkUnnamed1955(core.Map<core.String, api.MachineTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedList(o["x"]); checkMachineTypesScopedList(o["y"]); } +buildUnnamed1956() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1956(core.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 buildCounterMachineTypeAggregatedListWarningData = 0; buildMachineTypeAggregatedListWarningData() { var o = new api.MachineTypeAggregatedListWarningData(); @@ -11313,14 +12149,14 @@ buildCounterMachineTypeAggregatedListWarningData--; } -buildUnnamed1882() { +buildUnnamed1957() { var o = new core.List<api.MachineTypeAggregatedListWarningData>(); o.add(buildMachineTypeAggregatedListWarningData()); o.add(buildMachineTypeAggregatedListWarningData()); return o; } -checkUnnamed1882(core.List<api.MachineTypeAggregatedListWarningData> o) { +checkUnnamed1957(core.List<api.MachineTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeAggregatedListWarningData(o[0]); checkMachineTypeAggregatedListWarningData(o[1]); @@ -11332,7 +12168,7 @@ buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1882(); + o.data = buildUnnamed1957(); o.message = "foo"; } buildCounterMachineTypeAggregatedListWarning--; @@ -11343,7 +12179,7 @@ buildCounterMachineTypeAggregatedListWarning++; if (buildCounterMachineTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1882(o.data); + checkUnnamed1957(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypeAggregatedListWarning--; @@ -11355,10 +12191,11 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1881(); + o.items = buildUnnamed1955(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1956(); o.warning = buildMachineTypeAggregatedListWarning(); } buildCounterMachineTypeAggregatedList--; @@ -11369,23 +12206,24 @@ buildCounterMachineTypeAggregatedList++; if (buildCounterMachineTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1881(o.items); + checkUnnamed1955(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1956(o.unreachables); checkMachineTypeAggregatedListWarning(o.warning); } buildCounterMachineTypeAggregatedList--; } -buildUnnamed1883() { +buildUnnamed1958() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed1883(core.List<api.MachineType> o) { +checkUnnamed1958(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -11412,14 +12250,14 @@ buildCounterMachineTypeListWarningData--; } -buildUnnamed1884() { +buildUnnamed1959() { var o = new core.List<api.MachineTypeListWarningData>(); o.add(buildMachineTypeListWarningData()); o.add(buildMachineTypeListWarningData()); return o; } -checkUnnamed1884(core.List<api.MachineTypeListWarningData> o) { +checkUnnamed1959(core.List<api.MachineTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypeListWarningData(o[0]); checkMachineTypeListWarningData(o[1]); @@ -11431,7 +12269,7 @@ buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1884(); + o.data = buildUnnamed1959(); o.message = "foo"; } buildCounterMachineTypeListWarning--; @@ -11442,7 +12280,7 @@ buildCounterMachineTypeListWarning++; if (buildCounterMachineTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1884(o.data); + checkUnnamed1959(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypeListWarning--; @@ -11454,7 +12292,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed1883(); + o.items = buildUnnamed1958(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -11468,7 +12306,7 @@ buildCounterMachineTypeList++; if (buildCounterMachineTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1883(o.items); + checkUnnamed1958(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -11477,14 +12315,14 @@ buildCounterMachineTypeList--; } -buildUnnamed1885() { +buildUnnamed1960() { var o = new core.List<api.MachineType>(); o.add(buildMachineType()); o.add(buildMachineType()); return o; } -checkUnnamed1885(core.List<api.MachineType> o) { +checkUnnamed1960(core.List<api.MachineType> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineType(o[0]); checkMachineType(o[1]); @@ -11512,14 +12350,14 @@ buildCounterMachineTypesScopedListWarningData--; } -buildUnnamed1886() { +buildUnnamed1961() { var o = new core.List<api.MachineTypesScopedListWarningData>(); o.add(buildMachineTypesScopedListWarningData()); o.add(buildMachineTypesScopedListWarningData()); return o; } -checkUnnamed1886(core.List<api.MachineTypesScopedListWarningData> o) { +checkUnnamed1961(core.List<api.MachineTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkMachineTypesScopedListWarningData(o[0]); checkMachineTypesScopedListWarningData(o[1]); @@ -11531,7 +12369,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1886(); + o.data = buildUnnamed1961(); o.message = "foo"; } buildCounterMachineTypesScopedListWarning--; @@ -11542,7 +12380,7 @@ buildCounterMachineTypesScopedListWarning++; if (buildCounterMachineTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1886(o.data); + checkUnnamed1961(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterMachineTypesScopedListWarning--; @@ -11553,7 +12391,7 @@ var o = new api.MachineTypesScopedList(); buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - o.machineTypes = buildUnnamed1885(); + o.machineTypes = buildUnnamed1960(); o.warning = buildMachineTypesScopedListWarning(); } buildCounterMachineTypesScopedList--; @@ -11563,20 +12401,20 @@ checkMachineTypesScopedList(api.MachineTypesScopedList o) { buildCounterMachineTypesScopedList++; if (buildCounterMachineTypesScopedList < 3) { - checkUnnamed1885(o.machineTypes); + checkUnnamed1960(o.machineTypes); checkMachineTypesScopedListWarning(o.warning); } buildCounterMachineTypesScopedList--; } -buildUnnamed1887() { +buildUnnamed1962() { var o = new core.List<api.ManagedInstanceInstanceHealth>(); o.add(buildManagedInstanceInstanceHealth()); o.add(buildManagedInstanceInstanceHealth()); return o; } -checkUnnamed1887(core.List<api.ManagedInstanceInstanceHealth> o) { +checkUnnamed1962(core.List<api.ManagedInstanceInstanceHealth> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceInstanceHealth(o[0]); checkManagedInstanceInstanceHealth(o[1]); @@ -11590,9 +12428,11 @@ o.currentAction = "foo"; o.id = "foo"; o.instance = "foo"; - o.instanceHealth = buildUnnamed1887(); + o.instanceHealth = buildUnnamed1962(); o.instanceStatus = "foo"; o.lastAttempt = buildManagedInstanceLastAttempt(); + o.preservedStateFromConfig = buildPreservedState(); + o.preservedStateFromPolicy = buildPreservedState(); o.version = buildManagedInstanceVersion(); } buildCounterManagedInstance--; @@ -11605,9 +12445,11 @@ unittest.expect(o.currentAction, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); - checkUnnamed1887(o.instanceHealth); + checkUnnamed1962(o.instanceHealth); unittest.expect(o.instanceStatus, unittest.equals('foo')); checkManagedInstanceLastAttempt(o.lastAttempt); + checkPreservedState(o.preservedStateFromConfig); + checkPreservedState(o.preservedStateFromPolicy); checkManagedInstanceVersion(o.version); } buildCounterManagedInstance--; @@ -11658,14 +12500,14 @@ buildCounterManagedInstanceLastAttemptErrorsErrors--; } -buildUnnamed1888() { +buildUnnamed1963() { var o = new core.List<api.ManagedInstanceLastAttemptErrorsErrors>(); o.add(buildManagedInstanceLastAttemptErrorsErrors()); o.add(buildManagedInstanceLastAttemptErrorsErrors()); return o; } -checkUnnamed1888(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { +checkUnnamed1963(core.List<api.ManagedInstanceLastAttemptErrorsErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstanceLastAttemptErrorsErrors(o[0]); checkManagedInstanceLastAttemptErrorsErrors(o[1]); @@ -11676,7 +12518,7 @@ var o = new api.ManagedInstanceLastAttemptErrors(); buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - o.errors = buildUnnamed1888(); + o.errors = buildUnnamed1963(); } buildCounterManagedInstanceLastAttemptErrors--; return o; @@ -11685,7 +12527,7 @@ checkManagedInstanceLastAttemptErrors(api.ManagedInstanceLastAttemptErrors o) { buildCounterManagedInstanceLastAttemptErrors++; if (buildCounterManagedInstanceLastAttemptErrors < 3) { - checkUnnamed1888(o.errors); + checkUnnamed1963(o.errors); } buildCounterManagedInstanceLastAttemptErrors--; } @@ -11751,14 +12593,14 @@ buildCounterMetadataItems--; } -buildUnnamed1889() { +buildUnnamed1964() { var o = new core.List<api.MetadataItems>(); o.add(buildMetadataItems()); o.add(buildMetadataItems()); return o; } -checkUnnamed1889(core.List<api.MetadataItems> o) { +checkUnnamed1964(core.List<api.MetadataItems> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataItems(o[0]); checkMetadataItems(o[1]); @@ -11770,7 +12612,7 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed1889(); + o.items = buildUnnamed1964(); o.kind = "foo"; } buildCounterMetadata--; @@ -11781,20 +12623,20 @@ buildCounterMetadata++; if (buildCounterMetadata < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1889(o.items); + checkUnnamed1964(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterMetadata--; } -buildUnnamed1890() { +buildUnnamed1965() { var o = new core.List<api.MetadataFilterLabelMatch>(); o.add(buildMetadataFilterLabelMatch()); o.add(buildMetadataFilterLabelMatch()); return o; } -checkUnnamed1890(core.List<api.MetadataFilterLabelMatch> o) { +checkUnnamed1965(core.List<api.MetadataFilterLabelMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataFilterLabelMatch(o[0]); checkMetadataFilterLabelMatch(o[1]); @@ -11805,7 +12647,7 @@ var o = new api.MetadataFilter(); buildCounterMetadataFilter++; if (buildCounterMetadataFilter < 3) { - o.filterLabels = buildUnnamed1890(); + o.filterLabels = buildUnnamed1965(); o.filterMatchCriteria = "foo"; } buildCounterMetadataFilter--; @@ -11815,7 +12657,7 @@ checkMetadataFilter(api.MetadataFilter o) { buildCounterMetadataFilter++; if (buildCounterMetadataFilter < 3) { - checkUnnamed1890(o.filterLabels); + checkUnnamed1965(o.filterLabels); unittest.expect(o.filterMatchCriteria, unittest.equals('foo')); } buildCounterMetadataFilter--; @@ -11863,27 +12705,27 @@ buildCounterNamedPort--; } -buildUnnamed1891() { +buildUnnamed1966() { var o = new core.List<api.NetworkPeering>(); o.add(buildNetworkPeering()); o.add(buildNetworkPeering()); return o; } -checkUnnamed1891(core.List<api.NetworkPeering> o) { +checkUnnamed1966(core.List<api.NetworkPeering> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkPeering(o[0]); checkNetworkPeering(o[1]); } -buildUnnamed1892() { +buildUnnamed1967() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1892(core.List<core.String> o) { +checkUnnamed1967(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11901,11 +12743,12 @@ o.gatewayIPv4 = "foo"; o.id = "foo"; o.kind = "foo"; + o.mtu = 42; o.name = "foo"; - o.peerings = buildUnnamed1891(); + o.peerings = buildUnnamed1966(); o.routingConfig = buildNetworkRoutingConfig(); o.selfLink = "foo"; - o.subnetworks = buildUnnamed1892(); + o.subnetworks = buildUnnamed1967(); } buildCounterNetwork--; return o; @@ -11921,20 +12764,35 @@ unittest.expect(o.gatewayIPv4, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.mtu, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1891(o.peerings); + checkUnnamed1966(o.peerings); checkNetworkRoutingConfig(o.routingConfig); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed1892(o.subnetworks); + checkUnnamed1967(o.subnetworks); } buildCounterNetwork--; } +buildUnnamed1968() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1968(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 buildCounterNetworkEndpoint = 0; buildNetworkEndpoint() { var o = new api.NetworkEndpoint(); buildCounterNetworkEndpoint++; if (buildCounterNetworkEndpoint < 3) { + o.annotations = buildUnnamed1968(); o.fqdn = "foo"; o.instance = "foo"; o.ipAddress = "foo"; @@ -11947,6 +12805,7 @@ checkNetworkEndpoint(api.NetworkEndpoint o) { buildCounterNetworkEndpoint++; if (buildCounterNetworkEndpoint < 3) { + checkUnnamed1968(o.annotations); unittest.expect(o.fqdn, unittest.equals('foo')); unittest.expect(o.instance, unittest.equals('foo')); unittest.expect(o.ipAddress, unittest.equals('foo')); @@ -11955,11 +12814,28 @@ buildCounterNetworkEndpoint--; } +buildUnnamed1969() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1969(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 buildCounterNetworkEndpointGroup = 0; buildNetworkEndpointGroup() { var o = new api.NetworkEndpointGroup(); buildCounterNetworkEndpointGroup++; if (buildCounterNetworkEndpointGroup < 3) { + o.annotations = buildUnnamed1969(); + o.appEngine = buildNetworkEndpointGroupAppEngine(); + o.cloudFunction = buildNetworkEndpointGroupCloudFunction(); + o.cloudRun = buildNetworkEndpointGroupCloudRun(); o.creationTimestamp = "foo"; o.defaultPort = 42; o.description = "foo"; @@ -11968,6 +12844,7 @@ o.name = "foo"; o.network = "foo"; o.networkEndpointType = "foo"; + o.region = "foo"; o.selfLink = "foo"; o.size = 42; o.subnetwork = "foo"; @@ -11980,6 +12857,10 @@ checkNetworkEndpointGroup(api.NetworkEndpointGroup o) { buildCounterNetworkEndpointGroup++; if (buildCounterNetworkEndpointGroup < 3) { + checkUnnamed1969(o.annotations); + checkNetworkEndpointGroupAppEngine(o.appEngine); + checkNetworkEndpointGroupCloudFunction(o.cloudFunction); + checkNetworkEndpointGroupCloudRun(o.cloudRun); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.defaultPort, unittest.equals(42)); unittest.expect(o.description, unittest.equals('foo')); @@ -11988,6 +12869,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.networkEndpointType, 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')); @@ -11996,19 +12878,32 @@ buildCounterNetworkEndpointGroup--; } -buildUnnamed1893() { +buildUnnamed1970() { var o = new core.Map<core.String, api.NetworkEndpointGroupsScopedList>(); o["x"] = buildNetworkEndpointGroupsScopedList(); o["y"] = buildNetworkEndpointGroupsScopedList(); return o; } -checkUnnamed1893(core.Map<core.String, api.NetworkEndpointGroupsScopedList> o) { +checkUnnamed1970(core.Map<core.String, api.NetworkEndpointGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupsScopedList(o["x"]); checkNetworkEndpointGroupsScopedList(o["y"]); } +buildUnnamed1971() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterNetworkEndpointGroupAggregatedListWarningData = 0; buildNetworkEndpointGroupAggregatedListWarningData() { var o = new api.NetworkEndpointGroupAggregatedListWarningData(); @@ -12031,14 +12926,14 @@ buildCounterNetworkEndpointGroupAggregatedListWarningData--; } -buildUnnamed1894() { +buildUnnamed1972() { var o = new core.List<api.NetworkEndpointGroupAggregatedListWarningData>(); o.add(buildNetworkEndpointGroupAggregatedListWarningData()); o.add(buildNetworkEndpointGroupAggregatedListWarningData()); return o; } -checkUnnamed1894( +checkUnnamed1972( core.List<api.NetworkEndpointGroupAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupAggregatedListWarningData(o[0]); @@ -12051,7 +12946,7 @@ buildCounterNetworkEndpointGroupAggregatedListWarning++; if (buildCounterNetworkEndpointGroupAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1894(); + o.data = buildUnnamed1972(); o.message = "foo"; } buildCounterNetworkEndpointGroupAggregatedListWarning--; @@ -12063,7 +12958,7 @@ buildCounterNetworkEndpointGroupAggregatedListWarning++; if (buildCounterNetworkEndpointGroupAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1894(o.data); + checkUnnamed1972(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkEndpointGroupAggregatedListWarning--; @@ -12075,10 +12970,11 @@ buildCounterNetworkEndpointGroupAggregatedList++; if (buildCounterNetworkEndpointGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1893(); + o.items = buildUnnamed1970(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1971(); o.warning = buildNetworkEndpointGroupAggregatedListWarning(); } buildCounterNetworkEndpointGroupAggregatedList--; @@ -12090,23 +12986,92 @@ buildCounterNetworkEndpointGroupAggregatedList++; if (buildCounterNetworkEndpointGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1893(o.items); + checkUnnamed1970(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1971(o.unreachables); checkNetworkEndpointGroupAggregatedListWarning(o.warning); } buildCounterNetworkEndpointGroupAggregatedList--; } -buildUnnamed1895() { +core.int buildCounterNetworkEndpointGroupAppEngine = 0; +buildNetworkEndpointGroupAppEngine() { + var o = new api.NetworkEndpointGroupAppEngine(); + buildCounterNetworkEndpointGroupAppEngine++; + if (buildCounterNetworkEndpointGroupAppEngine < 3) { + o.service = "foo"; + o.urlMask = "foo"; + o.version = "foo"; + } + buildCounterNetworkEndpointGroupAppEngine--; + return o; +} + +checkNetworkEndpointGroupAppEngine(api.NetworkEndpointGroupAppEngine o) { + buildCounterNetworkEndpointGroupAppEngine++; + if (buildCounterNetworkEndpointGroupAppEngine < 3) { + unittest.expect(o.service, unittest.equals('foo')); + unittest.expect(o.urlMask, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterNetworkEndpointGroupAppEngine--; +} + +core.int buildCounterNetworkEndpointGroupCloudFunction = 0; +buildNetworkEndpointGroupCloudFunction() { + var o = new api.NetworkEndpointGroupCloudFunction(); + buildCounterNetworkEndpointGroupCloudFunction++; + if (buildCounterNetworkEndpointGroupCloudFunction < 3) { + o.function = "foo"; + o.urlMask = "foo"; + } + buildCounterNetworkEndpointGroupCloudFunction--; + return o; +} + +checkNetworkEndpointGroupCloudFunction( + api.NetworkEndpointGroupCloudFunction o) { + buildCounterNetworkEndpointGroupCloudFunction++; + if (buildCounterNetworkEndpointGroupCloudFunction < 3) { + unittest.expect(o.function, unittest.equals('foo')); + unittest.expect(o.urlMask, unittest.equals('foo')); + } + buildCounterNetworkEndpointGroupCloudFunction--; +} + +core.int buildCounterNetworkEndpointGroupCloudRun = 0; +buildNetworkEndpointGroupCloudRun() { + var o = new api.NetworkEndpointGroupCloudRun(); + buildCounterNetworkEndpointGroupCloudRun++; + if (buildCounterNetworkEndpointGroupCloudRun < 3) { + o.service = "foo"; + o.tag = "foo"; + o.urlMask = "foo"; + } + buildCounterNetworkEndpointGroupCloudRun--; + return o; +} + +checkNetworkEndpointGroupCloudRun(api.NetworkEndpointGroupCloudRun o) { + buildCounterNetworkEndpointGroupCloudRun++; + if (buildCounterNetworkEndpointGroupCloudRun < 3) { + unittest.expect(o.service, unittest.equals('foo')); + unittest.expect(o.tag, unittest.equals('foo')); + unittest.expect(o.urlMask, unittest.equals('foo')); + } + buildCounterNetworkEndpointGroupCloudRun--; +} + +buildUnnamed1973() { var o = new core.List<api.NetworkEndpointGroup>(); o.add(buildNetworkEndpointGroup()); o.add(buildNetworkEndpointGroup()); return o; } -checkUnnamed1895(core.List<api.NetworkEndpointGroup> o) { +checkUnnamed1973(core.List<api.NetworkEndpointGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroup(o[0]); checkNetworkEndpointGroup(o[1]); @@ -12134,14 +13099,14 @@ buildCounterNetworkEndpointGroupListWarningData--; } -buildUnnamed1896() { +buildUnnamed1974() { var o = new core.List<api.NetworkEndpointGroupListWarningData>(); o.add(buildNetworkEndpointGroupListWarningData()); o.add(buildNetworkEndpointGroupListWarningData()); return o; } -checkUnnamed1896(core.List<api.NetworkEndpointGroupListWarningData> o) { +checkUnnamed1974(core.List<api.NetworkEndpointGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupListWarningData(o[0]); checkNetworkEndpointGroupListWarningData(o[1]); @@ -12153,7 +13118,7 @@ buildCounterNetworkEndpointGroupListWarning++; if (buildCounterNetworkEndpointGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1896(); + o.data = buildUnnamed1974(); o.message = "foo"; } buildCounterNetworkEndpointGroupListWarning--; @@ -12164,7 +13129,7 @@ buildCounterNetworkEndpointGroupListWarning++; if (buildCounterNetworkEndpointGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1896(o.data); + checkUnnamed1974(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkEndpointGroupListWarning--; @@ -12176,7 +13141,7 @@ buildCounterNetworkEndpointGroupList++; if (buildCounterNetworkEndpointGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed1895(); + o.items = buildUnnamed1973(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12190,7 +13155,7 @@ buildCounterNetworkEndpointGroupList++; if (buildCounterNetworkEndpointGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1895(o.items); + checkUnnamed1973(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12199,14 +13164,14 @@ buildCounterNetworkEndpointGroupList--; } -buildUnnamed1897() { +buildUnnamed1975() { var o = new core.List<api.NetworkEndpoint>(); o.add(buildNetworkEndpoint()); o.add(buildNetworkEndpoint()); return o; } -checkUnnamed1897(core.List<api.NetworkEndpoint> o) { +checkUnnamed1975(core.List<api.NetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -12217,7 +13182,7 @@ var o = new api.NetworkEndpointGroupsAttachEndpointsRequest(); buildCounterNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsAttachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed1897(); + o.networkEndpoints = buildUnnamed1975(); } buildCounterNetworkEndpointGroupsAttachEndpointsRequest--; return o; @@ -12227,19 +13192,19 @@ api.NetworkEndpointGroupsAttachEndpointsRequest o) { buildCounterNetworkEndpointGroupsAttachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsAttachEndpointsRequest < 3) { - checkUnnamed1897(o.networkEndpoints); + checkUnnamed1975(o.networkEndpoints); } buildCounterNetworkEndpointGroupsAttachEndpointsRequest--; } -buildUnnamed1898() { +buildUnnamed1976() { var o = new core.List<api.NetworkEndpoint>(); o.add(buildNetworkEndpoint()); o.add(buildNetworkEndpoint()); return o; } -checkUnnamed1898(core.List<api.NetworkEndpoint> o) { +checkUnnamed1976(core.List<api.NetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); @@ -12250,7 +13215,7 @@ var o = new api.NetworkEndpointGroupsDetachEndpointsRequest(); buildCounterNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsDetachEndpointsRequest < 3) { - o.networkEndpoints = buildUnnamed1898(); + o.networkEndpoints = buildUnnamed1976(); } buildCounterNetworkEndpointGroupsDetachEndpointsRequest--; return o; @@ -12260,7 +13225,7 @@ api.NetworkEndpointGroupsDetachEndpointsRequest o) { buildCounterNetworkEndpointGroupsDetachEndpointsRequest++; if (buildCounterNetworkEndpointGroupsDetachEndpointsRequest < 3) { - checkUnnamed1898(o.networkEndpoints); + checkUnnamed1976(o.networkEndpoints); } buildCounterNetworkEndpointGroupsDetachEndpointsRequest--; } @@ -12285,14 +13250,14 @@ buildCounterNetworkEndpointGroupsListEndpointsRequest--; } -buildUnnamed1899() { +buildUnnamed1977() { var o = new core.List<api.NetworkEndpointWithHealthStatus>(); o.add(buildNetworkEndpointWithHealthStatus()); o.add(buildNetworkEndpointWithHealthStatus()); return o; } -checkUnnamed1899(core.List<api.NetworkEndpointWithHealthStatus> o) { +checkUnnamed1977(core.List<api.NetworkEndpointWithHealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointWithHealthStatus(o[0]); checkNetworkEndpointWithHealthStatus(o[1]); @@ -12320,7 +13285,7 @@ buildCounterNetworkEndpointGroupsListNetworkEndpointsWarningData--; } -buildUnnamed1900() { +buildUnnamed1978() { var o = new core.List<api.NetworkEndpointGroupsListNetworkEndpointsWarningData>(); o.add(buildNetworkEndpointGroupsListNetworkEndpointsWarningData()); @@ -12328,7 +13293,7 @@ return o; } -checkUnnamed1900( +checkUnnamed1978( core.List<api.NetworkEndpointGroupsListNetworkEndpointsWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupsListNetworkEndpointsWarningData(o[0]); @@ -12341,7 +13306,7 @@ buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning++; if (buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1900(); + o.data = buildUnnamed1978(); o.message = "foo"; } buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning--; @@ -12353,7 +13318,7 @@ buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning++; if (buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1900(o.data); + checkUnnamed1978(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkEndpointGroupsListNetworkEndpointsWarning--; @@ -12365,7 +13330,7 @@ buildCounterNetworkEndpointGroupsListNetworkEndpoints++; if (buildCounterNetworkEndpointGroupsListNetworkEndpoints < 3) { o.id = "foo"; - o.items = buildUnnamed1899(); + o.items = buildUnnamed1977(); o.kind = "foo"; o.nextPageToken = "foo"; o.warning = buildNetworkEndpointGroupsListNetworkEndpointsWarning(); @@ -12379,7 +13344,7 @@ buildCounterNetworkEndpointGroupsListNetworkEndpoints++; if (buildCounterNetworkEndpointGroupsListNetworkEndpoints < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1899(o.items); + checkUnnamed1977(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkNetworkEndpointGroupsListNetworkEndpointsWarning(o.warning); @@ -12387,14 +13352,14 @@ buildCounterNetworkEndpointGroupsListNetworkEndpoints--; } -buildUnnamed1901() { +buildUnnamed1979() { var o = new core.List<api.NetworkEndpointGroup>(); o.add(buildNetworkEndpointGroup()); o.add(buildNetworkEndpointGroup()); return o; } -checkUnnamed1901(core.List<api.NetworkEndpointGroup> o) { +checkUnnamed1979(core.List<api.NetworkEndpointGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroup(o[0]); checkNetworkEndpointGroup(o[1]); @@ -12422,14 +13387,14 @@ buildCounterNetworkEndpointGroupsScopedListWarningData--; } -buildUnnamed1902() { +buildUnnamed1980() { var o = new core.List<api.NetworkEndpointGroupsScopedListWarningData>(); o.add(buildNetworkEndpointGroupsScopedListWarningData()); o.add(buildNetworkEndpointGroupsScopedListWarningData()); return o; } -checkUnnamed1902(core.List<api.NetworkEndpointGroupsScopedListWarningData> o) { +checkUnnamed1980(core.List<api.NetworkEndpointGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpointGroupsScopedListWarningData(o[0]); checkNetworkEndpointGroupsScopedListWarningData(o[1]); @@ -12441,7 +13406,7 @@ buildCounterNetworkEndpointGroupsScopedListWarning++; if (buildCounterNetworkEndpointGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1902(); + o.data = buildUnnamed1980(); o.message = "foo"; } buildCounterNetworkEndpointGroupsScopedListWarning--; @@ -12453,7 +13418,7 @@ buildCounterNetworkEndpointGroupsScopedListWarning++; if (buildCounterNetworkEndpointGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1902(o.data); + checkUnnamed1980(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkEndpointGroupsScopedListWarning--; @@ -12464,7 +13429,7 @@ var o = new api.NetworkEndpointGroupsScopedList(); buildCounterNetworkEndpointGroupsScopedList++; if (buildCounterNetworkEndpointGroupsScopedList < 3) { - o.networkEndpointGroups = buildUnnamed1901(); + o.networkEndpointGroups = buildUnnamed1979(); o.warning = buildNetworkEndpointGroupsScopedListWarning(); } buildCounterNetworkEndpointGroupsScopedList--; @@ -12474,20 +13439,20 @@ checkNetworkEndpointGroupsScopedList(api.NetworkEndpointGroupsScopedList o) { buildCounterNetworkEndpointGroupsScopedList++; if (buildCounterNetworkEndpointGroupsScopedList < 3) { - checkUnnamed1901(o.networkEndpointGroups); + checkUnnamed1979(o.networkEndpointGroups); checkNetworkEndpointGroupsScopedListWarning(o.warning); } buildCounterNetworkEndpointGroupsScopedList--; } -buildUnnamed1903() { +buildUnnamed1981() { var o = new core.List<api.HealthStatusForNetworkEndpoint>(); o.add(buildHealthStatusForNetworkEndpoint()); o.add(buildHealthStatusForNetworkEndpoint()); return o; } -checkUnnamed1903(core.List<api.HealthStatusForNetworkEndpoint> o) { +checkUnnamed1981(core.List<api.HealthStatusForNetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatusForNetworkEndpoint(o[0]); checkHealthStatusForNetworkEndpoint(o[1]); @@ -12498,7 +13463,7 @@ var o = new api.NetworkEndpointWithHealthStatus(); buildCounterNetworkEndpointWithHealthStatus++; if (buildCounterNetworkEndpointWithHealthStatus < 3) { - o.healths = buildUnnamed1903(); + o.healths = buildUnnamed1981(); o.networkEndpoint = buildNetworkEndpoint(); } buildCounterNetworkEndpointWithHealthStatus--; @@ -12508,33 +13473,33 @@ checkNetworkEndpointWithHealthStatus(api.NetworkEndpointWithHealthStatus o) { buildCounterNetworkEndpointWithHealthStatus++; if (buildCounterNetworkEndpointWithHealthStatus < 3) { - checkUnnamed1903(o.healths); + checkUnnamed1981(o.healths); checkNetworkEndpoint(o.networkEndpoint); } buildCounterNetworkEndpointWithHealthStatus--; } -buildUnnamed1904() { +buildUnnamed1982() { var o = new core.List<api.AccessConfig>(); o.add(buildAccessConfig()); o.add(buildAccessConfig()); return o; } -checkUnnamed1904(core.List<api.AccessConfig> o) { +checkUnnamed1982(core.List<api.AccessConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAccessConfig(o[0]); checkAccessConfig(o[1]); } -buildUnnamed1905() { +buildUnnamed1983() { var o = new core.List<api.AliasIpRange>(); o.add(buildAliasIpRange()); o.add(buildAliasIpRange()); return o; } -checkUnnamed1905(core.List<api.AliasIpRange> o) { +checkUnnamed1983(core.List<api.AliasIpRange> o) { unittest.expect(o, unittest.hasLength(2)); checkAliasIpRange(o[0]); checkAliasIpRange(o[1]); @@ -12545,9 +13510,10 @@ var o = new api.NetworkInterface(); buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - o.accessConfigs = buildUnnamed1904(); - o.aliasIpRanges = buildUnnamed1905(); + o.accessConfigs = buildUnnamed1982(); + o.aliasIpRanges = buildUnnamed1983(); o.fingerprint = "foo"; + o.ipv6Address = "foo"; o.kind = "foo"; o.name = "foo"; o.network = "foo"; @@ -12561,9 +13527,10 @@ checkNetworkInterface(api.NetworkInterface o) { buildCounterNetworkInterface++; if (buildCounterNetworkInterface < 3) { - checkUnnamed1904(o.accessConfigs); - checkUnnamed1905(o.aliasIpRanges); + checkUnnamed1982(o.accessConfigs); + checkUnnamed1983(o.aliasIpRanges); unittest.expect(o.fingerprint, unittest.equals('foo')); + unittest.expect(o.ipv6Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); @@ -12573,14 +13540,14 @@ buildCounterNetworkInterface--; } -buildUnnamed1906() { +buildUnnamed1984() { var o = new core.List<api.Network>(); o.add(buildNetwork()); o.add(buildNetwork()); return o; } -checkUnnamed1906(core.List<api.Network> o) { +checkUnnamed1984(core.List<api.Network> o) { unittest.expect(o, unittest.hasLength(2)); checkNetwork(o[0]); checkNetwork(o[1]); @@ -12607,14 +13574,14 @@ buildCounterNetworkListWarningData--; } -buildUnnamed1907() { +buildUnnamed1985() { var o = new core.List<api.NetworkListWarningData>(); o.add(buildNetworkListWarningData()); o.add(buildNetworkListWarningData()); return o; } -checkUnnamed1907(core.List<api.NetworkListWarningData> o) { +checkUnnamed1985(core.List<api.NetworkListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkListWarningData(o[0]); checkNetworkListWarningData(o[1]); @@ -12626,7 +13593,7 @@ buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1907(); + o.data = buildUnnamed1985(); o.message = "foo"; } buildCounterNetworkListWarning--; @@ -12637,7 +13604,7 @@ buildCounterNetworkListWarning++; if (buildCounterNetworkListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1907(o.data); + checkUnnamed1985(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNetworkListWarning--; @@ -12649,7 +13616,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed1906(); + o.items = buildUnnamed1984(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -12663,7 +13630,7 @@ buildCounterNetworkList++; if (buildCounterNetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1906(o.items); + checkUnnamed1984(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -12685,6 +13652,7 @@ o.importSubnetRoutesWithPublicIp = true; o.name = "foo"; o.network = "foo"; + o.peerMtu = 42; o.state = "foo"; o.stateDetails = "foo"; } @@ -12703,6 +13671,7 @@ unittest.expect(o.importSubnetRoutesWithPublicIp, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.peerMtu, unittest.equals(42)); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.stateDetails, unittest.equals('foo')); } @@ -12834,19 +13803,32 @@ buildCounterNodeGroup--; } -buildUnnamed1908() { +buildUnnamed1986() { var o = new core.Map<core.String, api.NodeGroupsScopedList>(); o["x"] = buildNodeGroupsScopedList(); o["y"] = buildNodeGroupsScopedList(); return o; } -checkUnnamed1908(core.Map<core.String, api.NodeGroupsScopedList> o) { +checkUnnamed1986(core.Map<core.String, api.NodeGroupsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsScopedList(o["x"]); checkNodeGroupsScopedList(o["y"]); } +buildUnnamed1987() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1987(core.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 buildCounterNodeGroupAggregatedListWarningData = 0; buildNodeGroupAggregatedListWarningData() { var o = new api.NodeGroupAggregatedListWarningData(); @@ -12869,14 +13851,14 @@ buildCounterNodeGroupAggregatedListWarningData--; } -buildUnnamed1909() { +buildUnnamed1988() { var o = new core.List<api.NodeGroupAggregatedListWarningData>(); o.add(buildNodeGroupAggregatedListWarningData()); o.add(buildNodeGroupAggregatedListWarningData()); return o; } -checkUnnamed1909(core.List<api.NodeGroupAggregatedListWarningData> o) { +checkUnnamed1988(core.List<api.NodeGroupAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupAggregatedListWarningData(o[0]); checkNodeGroupAggregatedListWarningData(o[1]); @@ -12888,7 +13870,7 @@ buildCounterNodeGroupAggregatedListWarning++; if (buildCounterNodeGroupAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1909(); + o.data = buildUnnamed1988(); o.message = "foo"; } buildCounterNodeGroupAggregatedListWarning--; @@ -12899,7 +13881,7 @@ buildCounterNodeGroupAggregatedListWarning++; if (buildCounterNodeGroupAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1909(o.data); + checkUnnamed1988(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeGroupAggregatedListWarning--; @@ -12911,10 +13893,11 @@ buildCounterNodeGroupAggregatedList++; if (buildCounterNodeGroupAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1908(); + o.items = buildUnnamed1986(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1987(); o.warning = buildNodeGroupAggregatedListWarning(); } buildCounterNodeGroupAggregatedList--; @@ -12925,10 +13908,11 @@ buildCounterNodeGroupAggregatedList++; if (buildCounterNodeGroupAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1908(o.items); + checkUnnamed1986(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1987(o.unreachables); checkNodeGroupAggregatedListWarning(o.warning); } buildCounterNodeGroupAggregatedList--; @@ -12957,14 +13941,14 @@ buildCounterNodeGroupAutoscalingPolicy--; } -buildUnnamed1910() { +buildUnnamed1989() { var o = new core.List<api.NodeGroup>(); o.add(buildNodeGroup()); o.add(buildNodeGroup()); return o; } -checkUnnamed1910(core.List<api.NodeGroup> o) { +checkUnnamed1989(core.List<api.NodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroup(o[0]); checkNodeGroup(o[1]); @@ -12991,14 +13975,14 @@ buildCounterNodeGroupListWarningData--; } -buildUnnamed1911() { +buildUnnamed1990() { var o = new core.List<api.NodeGroupListWarningData>(); o.add(buildNodeGroupListWarningData()); o.add(buildNodeGroupListWarningData()); return o; } -checkUnnamed1911(core.List<api.NodeGroupListWarningData> o) { +checkUnnamed1990(core.List<api.NodeGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupListWarningData(o[0]); checkNodeGroupListWarningData(o[1]); @@ -13010,7 +13994,7 @@ buildCounterNodeGroupListWarning++; if (buildCounterNodeGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1911(); + o.data = buildUnnamed1990(); o.message = "foo"; } buildCounterNodeGroupListWarning--; @@ -13021,7 +14005,7 @@ buildCounterNodeGroupListWarning++; if (buildCounterNodeGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1911(o.data); + checkUnnamed1990(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeGroupListWarning--; @@ -13033,7 +14017,7 @@ buildCounterNodeGroupList++; if (buildCounterNodeGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed1910(); + o.items = buildUnnamed1989(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13047,7 +14031,7 @@ buildCounterNodeGroupList++; if (buildCounterNodeGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1910(o.items); + checkUnnamed1989(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13056,14 +14040,14 @@ buildCounterNodeGroupList--; } -buildUnnamed1912() { +buildUnnamed1991() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1912(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')); @@ -13074,7 +14058,8 @@ var o = new api.NodeGroupNode(); buildCounterNodeGroupNode++; if (buildCounterNodeGroupNode < 3) { - o.instances = buildUnnamed1912(); + o.cpuOvercommitType = "foo"; + o.instances = buildUnnamed1991(); o.name = "foo"; o.nodeType = "foo"; o.serverBinding = buildServerBinding(); @@ -13088,7 +14073,8 @@ checkNodeGroupNode(api.NodeGroupNode o) { buildCounterNodeGroupNode++; if (buildCounterNodeGroupNode < 3) { - checkUnnamed1912(o.instances); + unittest.expect(o.cpuOvercommitType, unittest.equals('foo')); + checkUnnamed1991(o.instances); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeType, unittest.equals('foo')); checkServerBinding(o.serverBinding); @@ -13117,14 +14103,14 @@ buildCounterNodeGroupsAddNodesRequest--; } -buildUnnamed1913() { +buildUnnamed1992() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1913(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')); @@ -13135,7 +14121,7 @@ var o = new api.NodeGroupsDeleteNodesRequest(); buildCounterNodeGroupsDeleteNodesRequest++; if (buildCounterNodeGroupsDeleteNodesRequest < 3) { - o.nodes = buildUnnamed1913(); + o.nodes = buildUnnamed1992(); } buildCounterNodeGroupsDeleteNodesRequest--; return o; @@ -13144,19 +14130,19 @@ checkNodeGroupsDeleteNodesRequest(api.NodeGroupsDeleteNodesRequest o) { buildCounterNodeGroupsDeleteNodesRequest++; if (buildCounterNodeGroupsDeleteNodesRequest < 3) { - checkUnnamed1913(o.nodes); + checkUnnamed1992(o.nodes); } buildCounterNodeGroupsDeleteNodesRequest--; } -buildUnnamed1914() { +buildUnnamed1993() { var o = new core.List<api.NodeGroupNode>(); o.add(buildNodeGroupNode()); o.add(buildNodeGroupNode()); return o; } -checkUnnamed1914(core.List<api.NodeGroupNode> o) { +checkUnnamed1993(core.List<api.NodeGroupNode> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupNode(o[0]); checkNodeGroupNode(o[1]); @@ -13183,14 +14169,14 @@ buildCounterNodeGroupsListNodesWarningData--; } -buildUnnamed1915() { +buildUnnamed1994() { var o = new core.List<api.NodeGroupsListNodesWarningData>(); o.add(buildNodeGroupsListNodesWarningData()); o.add(buildNodeGroupsListNodesWarningData()); return o; } -checkUnnamed1915(core.List<api.NodeGroupsListNodesWarningData> o) { +checkUnnamed1994(core.List<api.NodeGroupsListNodesWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsListNodesWarningData(o[0]); checkNodeGroupsListNodesWarningData(o[1]); @@ -13202,7 +14188,7 @@ buildCounterNodeGroupsListNodesWarning++; if (buildCounterNodeGroupsListNodesWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1915(); + o.data = buildUnnamed1994(); o.message = "foo"; } buildCounterNodeGroupsListNodesWarning--; @@ -13213,7 +14199,7 @@ buildCounterNodeGroupsListNodesWarning++; if (buildCounterNodeGroupsListNodesWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1915(o.data); + checkUnnamed1994(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeGroupsListNodesWarning--; @@ -13225,7 +14211,7 @@ buildCounterNodeGroupsListNodes++; if (buildCounterNodeGroupsListNodes < 3) { o.id = "foo"; - o.items = buildUnnamed1914(); + o.items = buildUnnamed1993(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13239,7 +14225,7 @@ buildCounterNodeGroupsListNodes++; if (buildCounterNodeGroupsListNodes < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1914(o.items); + checkUnnamed1993(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13248,14 +14234,14 @@ buildCounterNodeGroupsListNodes--; } -buildUnnamed1916() { +buildUnnamed1995() { var o = new core.List<api.NodeGroup>(); o.add(buildNodeGroup()); o.add(buildNodeGroup()); return o; } -checkUnnamed1916(core.List<api.NodeGroup> o) { +checkUnnamed1995(core.List<api.NodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroup(o[0]); checkNodeGroup(o[1]); @@ -13282,14 +14268,14 @@ buildCounterNodeGroupsScopedListWarningData--; } -buildUnnamed1917() { +buildUnnamed1996() { var o = new core.List<api.NodeGroupsScopedListWarningData>(); o.add(buildNodeGroupsScopedListWarningData()); o.add(buildNodeGroupsScopedListWarningData()); return o; } -checkUnnamed1917(core.List<api.NodeGroupsScopedListWarningData> o) { +checkUnnamed1996(core.List<api.NodeGroupsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeGroupsScopedListWarningData(o[0]); checkNodeGroupsScopedListWarningData(o[1]); @@ -13301,7 +14287,7 @@ buildCounterNodeGroupsScopedListWarning++; if (buildCounterNodeGroupsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1917(); + o.data = buildUnnamed1996(); o.message = "foo"; } buildCounterNodeGroupsScopedListWarning--; @@ -13312,7 +14298,7 @@ buildCounterNodeGroupsScopedListWarning++; if (buildCounterNodeGroupsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1917(o.data); + checkUnnamed1996(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeGroupsScopedListWarning--; @@ -13323,7 +14309,7 @@ var o = new api.NodeGroupsScopedList(); buildCounterNodeGroupsScopedList++; if (buildCounterNodeGroupsScopedList < 3) { - o.nodeGroups = buildUnnamed1916(); + o.nodeGroups = buildUnnamed1995(); o.warning = buildNodeGroupsScopedListWarning(); } buildCounterNodeGroupsScopedList--; @@ -13333,7 +14319,7 @@ checkNodeGroupsScopedList(api.NodeGroupsScopedList o) { buildCounterNodeGroupsScopedList++; if (buildCounterNodeGroupsScopedList < 3) { - checkUnnamed1916(o.nodeGroups); + checkUnnamed1995(o.nodeGroups); checkNodeGroupsScopedListWarning(o.warning); } buildCounterNodeGroupsScopedList--; @@ -13358,14 +14344,14 @@ buildCounterNodeGroupsSetNodeTemplateRequest--; } -buildUnnamed1918() { +buildUnnamed1997() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1918(core.Map<core.String, core.String> o) { +checkUnnamed1997(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')); @@ -13376,12 +14362,13 @@ var o = new api.NodeTemplate(); buildCounterNodeTemplate++; if (buildCounterNodeTemplate < 3) { + o.cpuOvercommitType = "foo"; o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.nodeAffinityLabels = buildUnnamed1918(); + o.nodeAffinityLabels = buildUnnamed1997(); o.nodeType = "foo"; o.nodeTypeFlexibility = buildNodeTemplateNodeTypeFlexibility(); o.region = "foo"; @@ -13397,12 +14384,13 @@ checkNodeTemplate(api.NodeTemplate o) { buildCounterNodeTemplate++; if (buildCounterNodeTemplate < 3) { + unittest.expect(o.cpuOvercommitType, unittest.equals('foo')); 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')); - checkUnnamed1918(o.nodeAffinityLabels); + checkUnnamed1997(o.nodeAffinityLabels); unittest.expect(o.nodeType, unittest.equals('foo')); checkNodeTemplateNodeTypeFlexibility(o.nodeTypeFlexibility); unittest.expect(o.region, unittest.equals('foo')); @@ -13414,19 +14402,32 @@ buildCounterNodeTemplate--; } -buildUnnamed1919() { +buildUnnamed1998() { var o = new core.Map<core.String, api.NodeTemplatesScopedList>(); o["x"] = buildNodeTemplatesScopedList(); o["y"] = buildNodeTemplatesScopedList(); return o; } -checkUnnamed1919(core.Map<core.String, api.NodeTemplatesScopedList> o) { +checkUnnamed1998(core.Map<core.String, api.NodeTemplatesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplatesScopedList(o["x"]); checkNodeTemplatesScopedList(o["y"]); } +buildUnnamed1999() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1999(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterNodeTemplateAggregatedListWarningData = 0; buildNodeTemplateAggregatedListWarningData() { var o = new api.NodeTemplateAggregatedListWarningData(); @@ -13449,14 +14450,14 @@ buildCounterNodeTemplateAggregatedListWarningData--; } -buildUnnamed1920() { +buildUnnamed2000() { var o = new core.List<api.NodeTemplateAggregatedListWarningData>(); o.add(buildNodeTemplateAggregatedListWarningData()); o.add(buildNodeTemplateAggregatedListWarningData()); return o; } -checkUnnamed1920(core.List<api.NodeTemplateAggregatedListWarningData> o) { +checkUnnamed2000(core.List<api.NodeTemplateAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplateAggregatedListWarningData(o[0]); checkNodeTemplateAggregatedListWarningData(o[1]); @@ -13468,7 +14469,7 @@ buildCounterNodeTemplateAggregatedListWarning++; if (buildCounterNodeTemplateAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1920(); + o.data = buildUnnamed2000(); o.message = "foo"; } buildCounterNodeTemplateAggregatedListWarning--; @@ -13480,7 +14481,7 @@ buildCounterNodeTemplateAggregatedListWarning++; if (buildCounterNodeTemplateAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1920(o.data); + checkUnnamed2000(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTemplateAggregatedListWarning--; @@ -13492,10 +14493,11 @@ buildCounterNodeTemplateAggregatedList++; if (buildCounterNodeTemplateAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1919(); + o.items = buildUnnamed1998(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed1999(); o.warning = buildNodeTemplateAggregatedListWarning(); } buildCounterNodeTemplateAggregatedList--; @@ -13506,23 +14508,24 @@ buildCounterNodeTemplateAggregatedList++; if (buildCounterNodeTemplateAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1919(o.items); + checkUnnamed1998(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1999(o.unreachables); checkNodeTemplateAggregatedListWarning(o.warning); } buildCounterNodeTemplateAggregatedList--; } -buildUnnamed1921() { +buildUnnamed2001() { var o = new core.List<api.NodeTemplate>(); o.add(buildNodeTemplate()); o.add(buildNodeTemplate()); return o; } -checkUnnamed1921(core.List<api.NodeTemplate> o) { +checkUnnamed2001(core.List<api.NodeTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplate(o[0]); checkNodeTemplate(o[1]); @@ -13549,14 +14552,14 @@ buildCounterNodeTemplateListWarningData--; } -buildUnnamed1922() { +buildUnnamed2002() { var o = new core.List<api.NodeTemplateListWarningData>(); o.add(buildNodeTemplateListWarningData()); o.add(buildNodeTemplateListWarningData()); return o; } -checkUnnamed1922(core.List<api.NodeTemplateListWarningData> o) { +checkUnnamed2002(core.List<api.NodeTemplateListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplateListWarningData(o[0]); checkNodeTemplateListWarningData(o[1]); @@ -13568,7 +14571,7 @@ buildCounterNodeTemplateListWarning++; if (buildCounterNodeTemplateListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1922(); + o.data = buildUnnamed2002(); o.message = "foo"; } buildCounterNodeTemplateListWarning--; @@ -13579,7 +14582,7 @@ buildCounterNodeTemplateListWarning++; if (buildCounterNodeTemplateListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1922(o.data); + checkUnnamed2002(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTemplateListWarning--; @@ -13591,7 +14594,7 @@ buildCounterNodeTemplateList++; if (buildCounterNodeTemplateList < 3) { o.id = "foo"; - o.items = buildUnnamed1921(); + o.items = buildUnnamed2001(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13605,7 +14608,7 @@ buildCounterNodeTemplateList++; if (buildCounterNodeTemplateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1921(o.items); + checkUnnamed2001(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13637,14 +14640,14 @@ buildCounterNodeTemplateNodeTypeFlexibility--; } -buildUnnamed1923() { +buildUnnamed2003() { var o = new core.List<api.NodeTemplate>(); o.add(buildNodeTemplate()); o.add(buildNodeTemplate()); return o; } -checkUnnamed1923(core.List<api.NodeTemplate> o) { +checkUnnamed2003(core.List<api.NodeTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplate(o[0]); checkNodeTemplate(o[1]); @@ -13672,14 +14675,14 @@ buildCounterNodeTemplatesScopedListWarningData--; } -buildUnnamed1924() { +buildUnnamed2004() { var o = new core.List<api.NodeTemplatesScopedListWarningData>(); o.add(buildNodeTemplatesScopedListWarningData()); o.add(buildNodeTemplatesScopedListWarningData()); return o; } -checkUnnamed1924(core.List<api.NodeTemplatesScopedListWarningData> o) { +checkUnnamed2004(core.List<api.NodeTemplatesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTemplatesScopedListWarningData(o[0]); checkNodeTemplatesScopedListWarningData(o[1]); @@ -13691,7 +14694,7 @@ buildCounterNodeTemplatesScopedListWarning++; if (buildCounterNodeTemplatesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1924(); + o.data = buildUnnamed2004(); o.message = "foo"; } buildCounterNodeTemplatesScopedListWarning--; @@ -13702,7 +14705,7 @@ buildCounterNodeTemplatesScopedListWarning++; if (buildCounterNodeTemplatesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1924(o.data); + checkUnnamed2004(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTemplatesScopedListWarning--; @@ -13713,7 +14716,7 @@ var o = new api.NodeTemplatesScopedList(); buildCounterNodeTemplatesScopedList++; if (buildCounterNodeTemplatesScopedList < 3) { - o.nodeTemplates = buildUnnamed1923(); + o.nodeTemplates = buildUnnamed2003(); o.warning = buildNodeTemplatesScopedListWarning(); } buildCounterNodeTemplatesScopedList--; @@ -13723,7 +14726,7 @@ checkNodeTemplatesScopedList(api.NodeTemplatesScopedList o) { buildCounterNodeTemplatesScopedList++; if (buildCounterNodeTemplatesScopedList < 3) { - checkUnnamed1923(o.nodeTemplates); + checkUnnamed2003(o.nodeTemplates); checkNodeTemplatesScopedListWarning(o.warning); } buildCounterNodeTemplatesScopedList--; @@ -13770,19 +14773,32 @@ buildCounterNodeType--; } -buildUnnamed1925() { +buildUnnamed2005() { var o = new core.Map<core.String, api.NodeTypesScopedList>(); o["x"] = buildNodeTypesScopedList(); o["y"] = buildNodeTypesScopedList(); return o; } -checkUnnamed1925(core.Map<core.String, api.NodeTypesScopedList> o) { +checkUnnamed2005(core.Map<core.String, api.NodeTypesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypesScopedList(o["x"]); checkNodeTypesScopedList(o["y"]); } +buildUnnamed2006() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2006(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterNodeTypeAggregatedListWarningData = 0; buildNodeTypeAggregatedListWarningData() { var o = new api.NodeTypeAggregatedListWarningData(); @@ -13805,14 +14821,14 @@ buildCounterNodeTypeAggregatedListWarningData--; } -buildUnnamed1926() { +buildUnnamed2007() { var o = new core.List<api.NodeTypeAggregatedListWarningData>(); o.add(buildNodeTypeAggregatedListWarningData()); o.add(buildNodeTypeAggregatedListWarningData()); return o; } -checkUnnamed1926(core.List<api.NodeTypeAggregatedListWarningData> o) { +checkUnnamed2007(core.List<api.NodeTypeAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypeAggregatedListWarningData(o[0]); checkNodeTypeAggregatedListWarningData(o[1]); @@ -13824,7 +14840,7 @@ buildCounterNodeTypeAggregatedListWarning++; if (buildCounterNodeTypeAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1926(); + o.data = buildUnnamed2007(); o.message = "foo"; } buildCounterNodeTypeAggregatedListWarning--; @@ -13835,7 +14851,7 @@ buildCounterNodeTypeAggregatedListWarning++; if (buildCounterNodeTypeAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1926(o.data); + checkUnnamed2007(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTypeAggregatedListWarning--; @@ -13847,10 +14863,11 @@ buildCounterNodeTypeAggregatedList++; if (buildCounterNodeTypeAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1925(); + o.items = buildUnnamed2005(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2006(); o.warning = buildNodeTypeAggregatedListWarning(); } buildCounterNodeTypeAggregatedList--; @@ -13861,23 +14878,24 @@ buildCounterNodeTypeAggregatedList++; if (buildCounterNodeTypeAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1925(o.items); + checkUnnamed2005(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2006(o.unreachables); checkNodeTypeAggregatedListWarning(o.warning); } buildCounterNodeTypeAggregatedList--; } -buildUnnamed1927() { +buildUnnamed2008() { var o = new core.List<api.NodeType>(); o.add(buildNodeType()); o.add(buildNodeType()); return o; } -checkUnnamed1927(core.List<api.NodeType> o) { +checkUnnamed2008(core.List<api.NodeType> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeType(o[0]); checkNodeType(o[1]); @@ -13904,14 +14922,14 @@ buildCounterNodeTypeListWarningData--; } -buildUnnamed1928() { +buildUnnamed2009() { var o = new core.List<api.NodeTypeListWarningData>(); o.add(buildNodeTypeListWarningData()); o.add(buildNodeTypeListWarningData()); return o; } -checkUnnamed1928(core.List<api.NodeTypeListWarningData> o) { +checkUnnamed2009(core.List<api.NodeTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypeListWarningData(o[0]); checkNodeTypeListWarningData(o[1]); @@ -13923,7 +14941,7 @@ buildCounterNodeTypeListWarning++; if (buildCounterNodeTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1928(); + o.data = buildUnnamed2009(); o.message = "foo"; } buildCounterNodeTypeListWarning--; @@ -13934,7 +14952,7 @@ buildCounterNodeTypeListWarning++; if (buildCounterNodeTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1928(o.data); + checkUnnamed2009(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTypeListWarning--; @@ -13946,7 +14964,7 @@ buildCounterNodeTypeList++; if (buildCounterNodeTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed1927(); + o.items = buildUnnamed2008(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -13960,7 +14978,7 @@ buildCounterNodeTypeList++; if (buildCounterNodeTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1927(o.items); + checkUnnamed2008(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -13969,14 +14987,14 @@ buildCounterNodeTypeList--; } -buildUnnamed1929() { +buildUnnamed2010() { var o = new core.List<api.NodeType>(); o.add(buildNodeType()); o.add(buildNodeType()); return o; } -checkUnnamed1929(core.List<api.NodeType> o) { +checkUnnamed2010(core.List<api.NodeType> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeType(o[0]); checkNodeType(o[1]); @@ -14003,14 +15021,14 @@ buildCounterNodeTypesScopedListWarningData--; } -buildUnnamed1930() { +buildUnnamed2011() { var o = new core.List<api.NodeTypesScopedListWarningData>(); o.add(buildNodeTypesScopedListWarningData()); o.add(buildNodeTypesScopedListWarningData()); return o; } -checkUnnamed1930(core.List<api.NodeTypesScopedListWarningData> o) { +checkUnnamed2011(core.List<api.NodeTypesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTypesScopedListWarningData(o[0]); checkNodeTypesScopedListWarningData(o[1]); @@ -14022,7 +15040,7 @@ buildCounterNodeTypesScopedListWarning++; if (buildCounterNodeTypesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1930(); + o.data = buildUnnamed2011(); o.message = "foo"; } buildCounterNodeTypesScopedListWarning--; @@ -14033,7 +15051,7 @@ buildCounterNodeTypesScopedListWarning++; if (buildCounterNodeTypesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1930(o.data); + checkUnnamed2011(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterNodeTypesScopedListWarning--; @@ -14044,7 +15062,7 @@ var o = new api.NodeTypesScopedList(); buildCounterNodeTypesScopedList++; if (buildCounterNodeTypesScopedList < 3) { - o.nodeTypes = buildUnnamed1929(); + o.nodeTypes = buildUnnamed2010(); o.warning = buildNodeTypesScopedListWarning(); } buildCounterNodeTypesScopedList--; @@ -14054,12 +15072,172 @@ checkNodeTypesScopedList(api.NodeTypesScopedList o) { buildCounterNodeTypesScopedList++; if (buildCounterNodeTypesScopedList < 3) { - checkUnnamed1929(o.nodeTypes); + checkUnnamed2010(o.nodeTypes); checkNodeTypesScopedListWarning(o.warning); } buildCounterNodeTypesScopedList--; } +core.int buildCounterNotificationEndpoint = 0; +buildNotificationEndpoint() { + var o = new api.NotificationEndpoint(); + buildCounterNotificationEndpoint++; + if (buildCounterNotificationEndpoint < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.grpcSettings = buildNotificationEndpointGrpcSettings(); + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.region = "foo"; + o.selfLink = "foo"; + } + buildCounterNotificationEndpoint--; + return o; +} + +checkNotificationEndpoint(api.NotificationEndpoint o) { + buildCounterNotificationEndpoint++; + if (buildCounterNotificationEndpoint < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkNotificationEndpointGrpcSettings(o.grpcSettings); + 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')); + } + buildCounterNotificationEndpoint--; +} + +core.int buildCounterNotificationEndpointGrpcSettings = 0; +buildNotificationEndpointGrpcSettings() { + var o = new api.NotificationEndpointGrpcSettings(); + buildCounterNotificationEndpointGrpcSettings++; + if (buildCounterNotificationEndpointGrpcSettings < 3) { + o.authority = "foo"; + o.endpoint = "foo"; + o.payloadName = "foo"; + o.resendInterval = buildDuration(); + o.retryDurationSec = 42; + } + buildCounterNotificationEndpointGrpcSettings--; + return o; +} + +checkNotificationEndpointGrpcSettings(api.NotificationEndpointGrpcSettings o) { + buildCounterNotificationEndpointGrpcSettings++; + if (buildCounterNotificationEndpointGrpcSettings < 3) { + unittest.expect(o.authority, unittest.equals('foo')); + unittest.expect(o.endpoint, unittest.equals('foo')); + unittest.expect(o.payloadName, unittest.equals('foo')); + checkDuration(o.resendInterval); + unittest.expect(o.retryDurationSec, unittest.equals(42)); + } + buildCounterNotificationEndpointGrpcSettings--; +} + +buildUnnamed2012() { + var o = new core.List<api.NotificationEndpoint>(); + o.add(buildNotificationEndpoint()); + o.add(buildNotificationEndpoint()); + return o; +} + +checkUnnamed2012(core.List<api.NotificationEndpoint> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNotificationEndpoint(o[0]); + checkNotificationEndpoint(o[1]); +} + +core.int buildCounterNotificationEndpointListWarningData = 0; +buildNotificationEndpointListWarningData() { + var o = new api.NotificationEndpointListWarningData(); + buildCounterNotificationEndpointListWarningData++; + if (buildCounterNotificationEndpointListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterNotificationEndpointListWarningData--; + return o; +} + +checkNotificationEndpointListWarningData( + api.NotificationEndpointListWarningData o) { + buildCounterNotificationEndpointListWarningData++; + if (buildCounterNotificationEndpointListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterNotificationEndpointListWarningData--; +} + +buildUnnamed2013() { + var o = new core.List<api.NotificationEndpointListWarningData>(); + o.add(buildNotificationEndpointListWarningData()); + o.add(buildNotificationEndpointListWarningData()); + return o; +} + +checkUnnamed2013(core.List<api.NotificationEndpointListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNotificationEndpointListWarningData(o[0]); + checkNotificationEndpointListWarningData(o[1]); +} + +core.int buildCounterNotificationEndpointListWarning = 0; +buildNotificationEndpointListWarning() { + var o = new api.NotificationEndpointListWarning(); + buildCounterNotificationEndpointListWarning++; + if (buildCounterNotificationEndpointListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed2013(); + o.message = "foo"; + } + buildCounterNotificationEndpointListWarning--; + return o; +} + +checkNotificationEndpointListWarning(api.NotificationEndpointListWarning o) { + buildCounterNotificationEndpointListWarning++; + if (buildCounterNotificationEndpointListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed2013(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterNotificationEndpointListWarning--; +} + +core.int buildCounterNotificationEndpointList = 0; +buildNotificationEndpointList() { + var o = new api.NotificationEndpointList(); + buildCounterNotificationEndpointList++; + if (buildCounterNotificationEndpointList < 3) { + o.id = "foo"; + o.items = buildUnnamed2012(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildNotificationEndpointListWarning(); + } + buildCounterNotificationEndpointList--; + return o; +} + +checkNotificationEndpointList(api.NotificationEndpointList o) { + buildCounterNotificationEndpointList++; + if (buildCounterNotificationEndpointList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2012(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkNotificationEndpointListWarning(o.warning); + } + buildCounterNotificationEndpointList--; +} + core.int buildCounterOperationErrorErrors = 0; buildOperationErrorErrors() { var o = new api.OperationErrorErrors(); @@ -14083,14 +15261,14 @@ buildCounterOperationErrorErrors--; } -buildUnnamed1931() { +buildUnnamed2014() { var o = new core.List<api.OperationErrorErrors>(); o.add(buildOperationErrorErrors()); o.add(buildOperationErrorErrors()); return o; } -checkUnnamed1931(core.List<api.OperationErrorErrors> o) { +checkUnnamed2014(core.List<api.OperationErrorErrors> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationErrorErrors(o[0]); checkOperationErrorErrors(o[1]); @@ -14101,7 +15279,7 @@ var o = new api.OperationError(); buildCounterOperationError++; if (buildCounterOperationError < 3) { - o.errors = buildUnnamed1931(); + o.errors = buildUnnamed2014(); } buildCounterOperationError--; return o; @@ -14110,7 +15288,7 @@ checkOperationError(api.OperationError o) { buildCounterOperationError++; if (buildCounterOperationError < 3) { - checkUnnamed1931(o.errors); + checkUnnamed2014(o.errors); } buildCounterOperationError--; } @@ -14136,14 +15314,14 @@ buildCounterOperationWarningsData--; } -buildUnnamed1932() { +buildUnnamed2015() { var o = new core.List<api.OperationWarningsData>(); o.add(buildOperationWarningsData()); o.add(buildOperationWarningsData()); return o; } -checkUnnamed1932(core.List<api.OperationWarningsData> o) { +checkUnnamed2015(core.List<api.OperationWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarningsData(o[0]); checkOperationWarningsData(o[1]); @@ -14155,7 +15333,7 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed1932(); + o.data = buildUnnamed2015(); o.message = "foo"; } buildCounterOperationWarnings--; @@ -14166,20 +15344,20 @@ buildCounterOperationWarnings++; if (buildCounterOperationWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1932(o.data); + checkUnnamed2015(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationWarnings--; } -buildUnnamed1933() { +buildUnnamed2016() { var o = new core.List<api.OperationWarnings>(); o.add(buildOperationWarnings()); o.add(buildOperationWarnings()); return o; } -checkUnnamed1933(core.List<api.OperationWarnings> o) { +checkUnnamed2016(core.List<api.OperationWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationWarnings(o[0]); checkOperationWarnings(o[1]); @@ -14211,7 +15389,7 @@ o.targetId = "foo"; o.targetLink = "foo"; o.user = "foo"; - o.warnings = buildUnnamed1933(); + o.warnings = buildUnnamed2016(); o.zone = "foo"; } buildCounterOperation--; @@ -14242,25 +15420,38 @@ unittest.expect(o.targetId, unittest.equals('foo')); unittest.expect(o.targetLink, unittest.equals('foo')); unittest.expect(o.user, unittest.equals('foo')); - checkUnnamed1933(o.warnings); + checkUnnamed2016(o.warnings); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterOperation--; } -buildUnnamed1934() { +buildUnnamed2017() { var o = new core.Map<core.String, api.OperationsScopedList>(); o["x"] = buildOperationsScopedList(); o["y"] = buildOperationsScopedList(); return o; } -checkUnnamed1934(core.Map<core.String, api.OperationsScopedList> o) { +checkUnnamed2017(core.Map<core.String, api.OperationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedList(o["x"]); checkOperationsScopedList(o["y"]); } +buildUnnamed2018() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterOperationAggregatedListWarningData = 0; buildOperationAggregatedListWarningData() { var o = new api.OperationAggregatedListWarningData(); @@ -14283,14 +15474,14 @@ buildCounterOperationAggregatedListWarningData--; } -buildUnnamed1935() { +buildUnnamed2019() { var o = new core.List<api.OperationAggregatedListWarningData>(); o.add(buildOperationAggregatedListWarningData()); o.add(buildOperationAggregatedListWarningData()); return o; } -checkUnnamed1935(core.List<api.OperationAggregatedListWarningData> o) { +checkUnnamed2019(core.List<api.OperationAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationAggregatedListWarningData(o[0]); checkOperationAggregatedListWarningData(o[1]); @@ -14302,7 +15493,7 @@ buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1935(); + o.data = buildUnnamed2019(); o.message = "foo"; } buildCounterOperationAggregatedListWarning--; @@ -14313,7 +15504,7 @@ buildCounterOperationAggregatedListWarning++; if (buildCounterOperationAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1935(o.data); + checkUnnamed2019(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationAggregatedListWarning--; @@ -14325,10 +15516,11 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1934(); + o.items = buildUnnamed2017(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2018(); o.warning = buildOperationAggregatedListWarning(); } buildCounterOperationAggregatedList--; @@ -14339,23 +15531,24 @@ buildCounterOperationAggregatedList++; if (buildCounterOperationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1934(o.items); + checkUnnamed2017(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2018(o.unreachables); checkOperationAggregatedListWarning(o.warning); } buildCounterOperationAggregatedList--; } -buildUnnamed1936() { +buildUnnamed2020() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1936(core.List<api.Operation> o) { +checkUnnamed2020(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -14382,14 +15575,14 @@ buildCounterOperationListWarningData--; } -buildUnnamed1937() { +buildUnnamed2021() { var o = new core.List<api.OperationListWarningData>(); o.add(buildOperationListWarningData()); o.add(buildOperationListWarningData()); return o; } -checkUnnamed1937(core.List<api.OperationListWarningData> o) { +checkUnnamed2021(core.List<api.OperationListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationListWarningData(o[0]); checkOperationListWarningData(o[1]); @@ -14401,7 +15594,7 @@ buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1937(); + o.data = buildUnnamed2021(); o.message = "foo"; } buildCounterOperationListWarning--; @@ -14412,7 +15605,7 @@ buildCounterOperationListWarning++; if (buildCounterOperationListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1937(o.data); + checkUnnamed2021(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationListWarning--; @@ -14424,7 +15617,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { o.id = "foo"; - o.items = buildUnnamed1936(); + o.items = buildUnnamed2020(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14438,7 +15631,7 @@ buildCounterOperationList++; if (buildCounterOperationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1936(o.items); + checkUnnamed2020(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14447,14 +15640,14 @@ buildCounterOperationList--; } -buildUnnamed1938() { +buildUnnamed2022() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1938(core.List<api.Operation> o) { +checkUnnamed2022(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -14481,14 +15674,14 @@ buildCounterOperationsScopedListWarningData--; } -buildUnnamed1939() { +buildUnnamed2023() { var o = new core.List<api.OperationsScopedListWarningData>(); o.add(buildOperationsScopedListWarningData()); o.add(buildOperationsScopedListWarningData()); return o; } -checkUnnamed1939(core.List<api.OperationsScopedListWarningData> o) { +checkUnnamed2023(core.List<api.OperationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationsScopedListWarningData(o[0]); checkOperationsScopedListWarningData(o[1]); @@ -14500,7 +15693,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1939(); + o.data = buildUnnamed2023(); o.message = "foo"; } buildCounterOperationsScopedListWarning--; @@ -14511,7 +15704,7 @@ buildCounterOperationsScopedListWarning++; if (buildCounterOperationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1939(o.data); + checkUnnamed2023(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterOperationsScopedListWarning--; @@ -14522,7 +15715,7 @@ var o = new api.OperationsScopedList(); buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - o.operations = buildUnnamed1938(); + o.operations = buildUnnamed2022(); o.warning = buildOperationsScopedListWarning(); } buildCounterOperationsScopedList--; @@ -14532,7 +15725,7 @@ checkOperationsScopedList(api.OperationsScopedList o) { buildCounterOperationsScopedList++; if (buildCounterOperationsScopedList < 3) { - checkUnnamed1938(o.operations); + checkUnnamed2022(o.operations); checkOperationsScopedListWarning(o.warning); } buildCounterOperationsScopedList--; @@ -14620,19 +15813,32 @@ buildCounterPacketMirroring--; } -buildUnnamed1940() { +buildUnnamed2024() { var o = new core.Map<core.String, api.PacketMirroringsScopedList>(); o["x"] = buildPacketMirroringsScopedList(); o["y"] = buildPacketMirroringsScopedList(); return o; } -checkUnnamed1940(core.Map<core.String, api.PacketMirroringsScopedList> o) { +checkUnnamed2024(core.Map<core.String, api.PacketMirroringsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringsScopedList(o["x"]); checkPacketMirroringsScopedList(o["y"]); } +buildUnnamed2025() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2025(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterPacketMirroringAggregatedListWarningData = 0; buildPacketMirroringAggregatedListWarningData() { var o = new api.PacketMirroringAggregatedListWarningData(); @@ -14655,14 +15861,14 @@ buildCounterPacketMirroringAggregatedListWarningData--; } -buildUnnamed1941() { +buildUnnamed2026() { var o = new core.List<api.PacketMirroringAggregatedListWarningData>(); o.add(buildPacketMirroringAggregatedListWarningData()); o.add(buildPacketMirroringAggregatedListWarningData()); return o; } -checkUnnamed1941(core.List<api.PacketMirroringAggregatedListWarningData> o) { +checkUnnamed2026(core.List<api.PacketMirroringAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringAggregatedListWarningData(o[0]); checkPacketMirroringAggregatedListWarningData(o[1]); @@ -14674,7 +15880,7 @@ buildCounterPacketMirroringAggregatedListWarning++; if (buildCounterPacketMirroringAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1941(); + o.data = buildUnnamed2026(); o.message = "foo"; } buildCounterPacketMirroringAggregatedListWarning--; @@ -14686,7 +15892,7 @@ buildCounterPacketMirroringAggregatedListWarning++; if (buildCounterPacketMirroringAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1941(o.data); + checkUnnamed2026(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterPacketMirroringAggregatedListWarning--; @@ -14698,10 +15904,11 @@ buildCounterPacketMirroringAggregatedList++; if (buildCounterPacketMirroringAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1940(); + o.items = buildUnnamed2024(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2025(); o.warning = buildPacketMirroringAggregatedListWarning(); } buildCounterPacketMirroringAggregatedList--; @@ -14712,36 +15919,37 @@ buildCounterPacketMirroringAggregatedList++; if (buildCounterPacketMirroringAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1940(o.items); + checkUnnamed2024(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2025(o.unreachables); checkPacketMirroringAggregatedListWarning(o.warning); } buildCounterPacketMirroringAggregatedList--; } -buildUnnamed1942() { +buildUnnamed2027() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1942(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')); } -buildUnnamed1943() { +buildUnnamed2028() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1943(core.List<core.String> o) { +checkUnnamed2028(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -14752,8 +15960,8 @@ var o = new api.PacketMirroringFilter(); buildCounterPacketMirroringFilter++; if (buildCounterPacketMirroringFilter < 3) { - o.IPProtocols = buildUnnamed1942(); - o.cidrRanges = buildUnnamed1943(); + o.IPProtocols = buildUnnamed2027(); + o.cidrRanges = buildUnnamed2028(); } buildCounterPacketMirroringFilter--; return o; @@ -14762,8 +15970,8 @@ checkPacketMirroringFilter(api.PacketMirroringFilter o) { buildCounterPacketMirroringFilter++; if (buildCounterPacketMirroringFilter < 3) { - checkUnnamed1942(o.IPProtocols); - checkUnnamed1943(o.cidrRanges); + checkUnnamed2027(o.IPProtocols); + checkUnnamed2028(o.cidrRanges); } buildCounterPacketMirroringFilter--; } @@ -14790,14 +15998,14 @@ buildCounterPacketMirroringForwardingRuleInfo--; } -buildUnnamed1944() { +buildUnnamed2029() { var o = new core.List<api.PacketMirroring>(); o.add(buildPacketMirroring()); o.add(buildPacketMirroring()); return o; } -checkUnnamed1944(core.List<api.PacketMirroring> o) { +checkUnnamed2029(core.List<api.PacketMirroring> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroring(o[0]); checkPacketMirroring(o[1]); @@ -14824,14 +16032,14 @@ buildCounterPacketMirroringListWarningData--; } -buildUnnamed1945() { +buildUnnamed2030() { var o = new core.List<api.PacketMirroringListWarningData>(); o.add(buildPacketMirroringListWarningData()); o.add(buildPacketMirroringListWarningData()); return o; } -checkUnnamed1945(core.List<api.PacketMirroringListWarningData> o) { +checkUnnamed2030(core.List<api.PacketMirroringListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringListWarningData(o[0]); checkPacketMirroringListWarningData(o[1]); @@ -14843,7 +16051,7 @@ buildCounterPacketMirroringListWarning++; if (buildCounterPacketMirroringListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1945(); + o.data = buildUnnamed2030(); o.message = "foo"; } buildCounterPacketMirroringListWarning--; @@ -14854,7 +16062,7 @@ buildCounterPacketMirroringListWarning++; if (buildCounterPacketMirroringListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1945(o.data); + checkUnnamed2030(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterPacketMirroringListWarning--; @@ -14866,7 +16074,7 @@ buildCounterPacketMirroringList++; if (buildCounterPacketMirroringList < 3) { o.id = "foo"; - o.items = buildUnnamed1944(); + o.items = buildUnnamed2029(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -14880,7 +16088,7 @@ buildCounterPacketMirroringList++; if (buildCounterPacketMirroringList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1944(o.items); + checkUnnamed2029(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -14889,42 +16097,42 @@ buildCounterPacketMirroringList--; } -buildUnnamed1946() { +buildUnnamed2031() { var o = new core.List<api.PacketMirroringMirroredResourceInfoInstanceInfo>(); o.add(buildPacketMirroringMirroredResourceInfoInstanceInfo()); o.add(buildPacketMirroringMirroredResourceInfoInstanceInfo()); return o; } -checkUnnamed1946( +checkUnnamed2031( core.List<api.PacketMirroringMirroredResourceInfoInstanceInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringMirroredResourceInfoInstanceInfo(o[0]); checkPacketMirroringMirroredResourceInfoInstanceInfo(o[1]); } -buildUnnamed1947() { +buildUnnamed2032() { var o = new core.List<api.PacketMirroringMirroredResourceInfoSubnetInfo>(); o.add(buildPacketMirroringMirroredResourceInfoSubnetInfo()); o.add(buildPacketMirroringMirroredResourceInfoSubnetInfo()); return o; } -checkUnnamed1947( +checkUnnamed2032( core.List<api.PacketMirroringMirroredResourceInfoSubnetInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringMirroredResourceInfoSubnetInfo(o[0]); checkPacketMirroringMirroredResourceInfoSubnetInfo(o[1]); } -buildUnnamed1948() { +buildUnnamed2033() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1948(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')); @@ -14935,9 +16143,9 @@ var o = new api.PacketMirroringMirroredResourceInfo(); buildCounterPacketMirroringMirroredResourceInfo++; if (buildCounterPacketMirroringMirroredResourceInfo < 3) { - o.instances = buildUnnamed1946(); - o.subnetworks = buildUnnamed1947(); - o.tags = buildUnnamed1948(); + o.instances = buildUnnamed2031(); + o.subnetworks = buildUnnamed2032(); + o.tags = buildUnnamed2033(); } buildCounterPacketMirroringMirroredResourceInfo--; return o; @@ -14947,9 +16155,9 @@ api.PacketMirroringMirroredResourceInfo o) { buildCounterPacketMirroringMirroredResourceInfo++; if (buildCounterPacketMirroringMirroredResourceInfo < 3) { - checkUnnamed1946(o.instances); - checkUnnamed1947(o.subnetworks); - checkUnnamed1948(o.tags); + checkUnnamed2031(o.instances); + checkUnnamed2032(o.subnetworks); + checkUnnamed2033(o.tags); } buildCounterPacketMirroringMirroredResourceInfo--; } @@ -15019,14 +16227,14 @@ buildCounterPacketMirroringNetworkInfo--; } -buildUnnamed1949() { +buildUnnamed2034() { var o = new core.List<api.PacketMirroring>(); o.add(buildPacketMirroring()); o.add(buildPacketMirroring()); return o; } -checkUnnamed1949(core.List<api.PacketMirroring> o) { +checkUnnamed2034(core.List<api.PacketMirroring> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroring(o[0]); checkPacketMirroring(o[1]); @@ -15054,14 +16262,14 @@ buildCounterPacketMirroringsScopedListWarningData--; } -buildUnnamed1950() { +buildUnnamed2035() { var o = new core.List<api.PacketMirroringsScopedListWarningData>(); o.add(buildPacketMirroringsScopedListWarningData()); o.add(buildPacketMirroringsScopedListWarningData()); return o; } -checkUnnamed1950(core.List<api.PacketMirroringsScopedListWarningData> o) { +checkUnnamed2035(core.List<api.PacketMirroringsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkPacketMirroringsScopedListWarningData(o[0]); checkPacketMirroringsScopedListWarningData(o[1]); @@ -15073,7 +16281,7 @@ buildCounterPacketMirroringsScopedListWarning++; if (buildCounterPacketMirroringsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1950(); + o.data = buildUnnamed2035(); o.message = "foo"; } buildCounterPacketMirroringsScopedListWarning--; @@ -15085,7 +16293,7 @@ buildCounterPacketMirroringsScopedListWarning++; if (buildCounterPacketMirroringsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1950(o.data); + checkUnnamed2035(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterPacketMirroringsScopedListWarning--; @@ -15096,7 +16304,7 @@ var o = new api.PacketMirroringsScopedList(); buildCounterPacketMirroringsScopedList++; if (buildCounterPacketMirroringsScopedList < 3) { - o.packetMirrorings = buildUnnamed1949(); + o.packetMirrorings = buildUnnamed2034(); o.warning = buildPacketMirroringsScopedListWarning(); } buildCounterPacketMirroringsScopedList--; @@ -15106,33 +16314,33 @@ checkPacketMirroringsScopedList(api.PacketMirroringsScopedList o) { buildCounterPacketMirroringsScopedList++; if (buildCounterPacketMirroringsScopedList < 3) { - checkUnnamed1949(o.packetMirrorings); + checkUnnamed2034(o.packetMirrorings); checkPacketMirroringsScopedListWarning(o.warning); } buildCounterPacketMirroringsScopedList--; } -buildUnnamed1951() { +buildUnnamed2036() { var o = new core.List<api.PathRule>(); o.add(buildPathRule()); o.add(buildPathRule()); return o; } -checkUnnamed1951(core.List<api.PathRule> o) { +checkUnnamed2036(core.List<api.PathRule> o) { unittest.expect(o, unittest.hasLength(2)); checkPathRule(o[0]); checkPathRule(o[1]); } -buildUnnamed1952() { +buildUnnamed2037() { var o = new core.List<api.HttpRouteRule>(); o.add(buildHttpRouteRule()); o.add(buildHttpRouteRule()); return o; } -checkUnnamed1952(core.List<api.HttpRouteRule> o) { +checkUnnamed2037(core.List<api.HttpRouteRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRouteRule(o[0]); checkHttpRouteRule(o[1]); @@ -15149,8 +16357,8 @@ o.description = "foo"; o.headerAction = buildHttpHeaderAction(); o.name = "foo"; - o.pathRules = buildUnnamed1951(); - o.routeRules = buildUnnamed1952(); + o.pathRules = buildUnnamed2036(); + o.routeRules = buildUnnamed2037(); } buildCounterPathMatcher--; return o; @@ -15165,20 +16373,20 @@ unittest.expect(o.description, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1951(o.pathRules); - checkUnnamed1952(o.routeRules); + checkUnnamed2036(o.pathRules); + checkUnnamed2037(o.routeRules); } buildCounterPathMatcher--; } -buildUnnamed1953() { +buildUnnamed2038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1953(core.List<core.String> o) { +checkUnnamed2038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15189,7 +16397,7 @@ var o = new api.PathRule(); buildCounterPathRule++; if (buildCounterPathRule < 3) { - o.paths = buildUnnamed1953(); + o.paths = buildUnnamed2038(); o.routeAction = buildHttpRouteAction(); o.service = "foo"; o.urlRedirect = buildHttpRedirectAction(); @@ -15201,7 +16409,7 @@ checkPathRule(api.PathRule o) { buildCounterPathRule++; if (buildCounterPathRule < 3) { - checkUnnamed1953(o.paths); + checkUnnamed2038(o.paths); checkHttpRouteAction(o.routeAction); unittest.expect(o.service, unittest.equals('foo')); checkHttpRedirectAction(o.urlRedirect); @@ -15216,6 +16424,8 @@ if (buildCounterPerInstanceConfig < 3) { o.fingerprint = "foo"; o.name = "foo"; + o.preservedState = buildPreservedState(); + o.status = "foo"; } buildCounterPerInstanceConfig--; return o; @@ -15226,44 +16436,46 @@ if (buildCounterPerInstanceConfig < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkPreservedState(o.preservedState); + unittest.expect(o.status, unittest.equals('foo')); } buildCounterPerInstanceConfig--; } -buildUnnamed1954() { +buildUnnamed2039() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1954(core.List<api.AuditConfig> o) { +checkUnnamed2039(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1955() { +buildUnnamed2040() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1955(core.List<api.Binding> o) { +checkUnnamed2040(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); } -buildUnnamed1956() { +buildUnnamed2041() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed1956(core.List<api.Rule> o) { +checkUnnamed2041(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -15274,11 +16486,11 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1954(); - o.bindings = buildUnnamed1955(); + o.auditConfigs = buildUnnamed2039(); + o.bindings = buildUnnamed2040(); o.etag = "foo"; o.iamOwned = true; - o.rules = buildUnnamed1956(); + o.rules = buildUnnamed2041(); o.version = 42; } buildCounterPolicy--; @@ -15288,24 +16500,24 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1954(o.auditConfigs); - checkUnnamed1955(o.bindings); + checkUnnamed2039(o.auditConfigs); + checkUnnamed2040(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.iamOwned, unittest.isTrue); - checkUnnamed1956(o.rules); + checkUnnamed2041(o.rules); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1957() { +buildUnnamed2042() { var o = new core.List<api.WafExpressionSet>(); o.add(buildWafExpressionSet()); o.add(buildWafExpressionSet()); return o; } -checkUnnamed1957(core.List<api.WafExpressionSet> o) { +checkUnnamed2042(core.List<api.WafExpressionSet> o) { unittest.expect(o, unittest.hasLength(2)); checkWafExpressionSet(o[0]); checkWafExpressionSet(o[1]); @@ -15316,7 +16528,7 @@ var o = new api.PreconfiguredWafSet(); buildCounterPreconfiguredWafSet++; if (buildCounterPreconfiguredWafSet < 3) { - o.expressionSets = buildUnnamed1957(); + o.expressionSets = buildUnnamed2042(); } buildCounterPreconfiguredWafSet--; return o; @@ -15325,32 +16537,102 @@ checkPreconfiguredWafSet(api.PreconfiguredWafSet o) { buildCounterPreconfiguredWafSet++; if (buildCounterPreconfiguredWafSet < 3) { - checkUnnamed1957(o.expressionSets); + checkUnnamed2042(o.expressionSets); } buildCounterPreconfiguredWafSet--; } -buildUnnamed1958() { +buildUnnamed2043() { + var o = new core.Map<core.String, api.PreservedStatePreservedDisk>(); + o["x"] = buildPreservedStatePreservedDisk(); + o["y"] = buildPreservedStatePreservedDisk(); + return o; +} + +checkUnnamed2043(core.Map<core.String, api.PreservedStatePreservedDisk> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPreservedStatePreservedDisk(o["x"]); + checkPreservedStatePreservedDisk(o["y"]); +} + +buildUnnamed2044() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2044(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 buildCounterPreservedState = 0; +buildPreservedState() { + var o = new api.PreservedState(); + buildCounterPreservedState++; + if (buildCounterPreservedState < 3) { + o.disks = buildUnnamed2043(); + o.metadata = buildUnnamed2044(); + } + buildCounterPreservedState--; + return o; +} + +checkPreservedState(api.PreservedState o) { + buildCounterPreservedState++; + if (buildCounterPreservedState < 3) { + checkUnnamed2043(o.disks); + checkUnnamed2044(o.metadata); + } + buildCounterPreservedState--; +} + +core.int buildCounterPreservedStatePreservedDisk = 0; +buildPreservedStatePreservedDisk() { + var o = new api.PreservedStatePreservedDisk(); + buildCounterPreservedStatePreservedDisk++; + if (buildCounterPreservedStatePreservedDisk < 3) { + o.autoDelete = "foo"; + o.mode = "foo"; + o.source = "foo"; + } + buildCounterPreservedStatePreservedDisk--; + return o; +} + +checkPreservedStatePreservedDisk(api.PreservedStatePreservedDisk o) { + buildCounterPreservedStatePreservedDisk++; + if (buildCounterPreservedStatePreservedDisk < 3) { + unittest.expect(o.autoDelete, unittest.equals('foo')); + unittest.expect(o.mode, unittest.equals('foo')); + unittest.expect(o.source, unittest.equals('foo')); + } + buildCounterPreservedStatePreservedDisk--; +} + +buildUnnamed2045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1958(core.List<core.String> o) { +checkUnnamed2045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1959() { +buildUnnamed2046() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed1959(core.List<api.Quota> o) { +checkUnnamed2046(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); @@ -15366,11 +16648,11 @@ o.defaultNetworkTier = "foo"; o.defaultServiceAccount = "foo"; o.description = "foo"; - o.enabledFeatures = buildUnnamed1958(); + o.enabledFeatures = buildUnnamed2045(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed1959(); + o.quotas = buildUnnamed2046(); o.selfLink = "foo"; o.usageExportLocation = buildUsageExportLocation(); o.xpnProjectStatus = "foo"; @@ -15387,11 +16669,11 @@ unittest.expect(o.defaultNetworkTier, unittest.equals('foo')); unittest.expect(o.defaultServiceAccount, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1958(o.enabledFeatures); + checkUnnamed2045(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1959(o.quotas); + checkUnnamed2046(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); checkUsageExportLocation(o.usageExportLocation); unittest.expect(o.xpnProjectStatus, unittest.equals('foo')); @@ -15438,14 +16720,14 @@ buildCounterProjectsEnableXpnResourceRequest--; } -buildUnnamed1960() { +buildUnnamed2047() { var o = new core.List<api.XpnResourceId>(); o.add(buildXpnResourceId()); o.add(buildXpnResourceId()); return o; } -checkUnnamed1960(core.List<api.XpnResourceId> o) { +checkUnnamed2047(core.List<api.XpnResourceId> o) { unittest.expect(o, unittest.hasLength(2)); checkXpnResourceId(o[0]); checkXpnResourceId(o[1]); @@ -15458,7 +16740,7 @@ if (buildCounterProjectsGetXpnResources < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1960(); + o.resources = buildUnnamed2047(); } buildCounterProjectsGetXpnResources--; return o; @@ -15469,7 +16751,7 @@ if (buildCounterProjectsGetXpnResources < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1960(o.resources); + checkUnnamed2047(o.resources); } buildCounterProjectsGetXpnResources--; } @@ -15563,27 +16845,27 @@ buildCounterReference--; } -buildUnnamed1961() { +buildUnnamed2048() { var o = new core.List<api.Quota>(); o.add(buildQuota()); o.add(buildQuota()); return o; } -checkUnnamed1961(core.List<api.Quota> o) { +checkUnnamed2048(core.List<api.Quota> o) { unittest.expect(o, unittest.hasLength(2)); checkQuota(o[0]); checkQuota(o[1]); } -buildUnnamed1962() { +buildUnnamed2049() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1962(core.List<core.String> o) { +checkUnnamed2049(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15600,10 +16882,10 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.quotas = buildUnnamed1961(); + o.quotas = buildUnnamed2048(); o.selfLink = "foo"; o.status = "foo"; - o.zones = buildUnnamed1962(); + o.zones = buildUnnamed2049(); } buildCounterRegion--; return o; @@ -15618,22 +16900,22 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1961(o.quotas); + checkUnnamed2048(o.quotas); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed1962(o.zones); + checkUnnamed2049(o.zones); } buildCounterRegion--; } -buildUnnamed1963() { +buildUnnamed2050() { var o = new core.List<api.Autoscaler>(); o.add(buildAutoscaler()); o.add(buildAutoscaler()); return o; } -checkUnnamed1963(core.List<api.Autoscaler> o) { +checkUnnamed2050(core.List<api.Autoscaler> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscaler(o[0]); checkAutoscaler(o[1]); @@ -15660,14 +16942,14 @@ buildCounterRegionAutoscalerListWarningData--; } -buildUnnamed1964() { +buildUnnamed2051() { var o = new core.List<api.RegionAutoscalerListWarningData>(); o.add(buildRegionAutoscalerListWarningData()); o.add(buildRegionAutoscalerListWarningData()); return o; } -checkUnnamed1964(core.List<api.RegionAutoscalerListWarningData> o) { +checkUnnamed2051(core.List<api.RegionAutoscalerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionAutoscalerListWarningData(o[0]); checkRegionAutoscalerListWarningData(o[1]); @@ -15679,7 +16961,7 @@ buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1964(); + o.data = buildUnnamed2051(); o.message = "foo"; } buildCounterRegionAutoscalerListWarning--; @@ -15690,7 +16972,7 @@ buildCounterRegionAutoscalerListWarning++; if (buildCounterRegionAutoscalerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1964(o.data); + checkUnnamed2051(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionAutoscalerListWarning--; @@ -15702,7 +16984,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { o.id = "foo"; - o.items = buildUnnamed1963(); + o.items = buildUnnamed2050(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -15716,7 +16998,7 @@ buildCounterRegionAutoscalerList++; if (buildCounterRegionAutoscalerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1963(o.items); + checkUnnamed2050(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -15725,14 +17007,14 @@ buildCounterRegionAutoscalerList--; } -buildUnnamed1965() { +buildUnnamed2052() { var o = new core.List<api.DiskType>(); o.add(buildDiskType()); o.add(buildDiskType()); return o; } -checkUnnamed1965(core.List<api.DiskType> o) { +checkUnnamed2052(core.List<api.DiskType> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskType(o[0]); checkDiskType(o[1]); @@ -15759,14 +17041,14 @@ buildCounterRegionDiskTypeListWarningData--; } -buildUnnamed1966() { +buildUnnamed2053() { var o = new core.List<api.RegionDiskTypeListWarningData>(); o.add(buildRegionDiskTypeListWarningData()); o.add(buildRegionDiskTypeListWarningData()); return o; } -checkUnnamed1966(core.List<api.RegionDiskTypeListWarningData> o) { +checkUnnamed2053(core.List<api.RegionDiskTypeListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionDiskTypeListWarningData(o[0]); checkRegionDiskTypeListWarningData(o[1]); @@ -15778,7 +17060,7 @@ buildCounterRegionDiskTypeListWarning++; if (buildCounterRegionDiskTypeListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1966(); + o.data = buildUnnamed2053(); o.message = "foo"; } buildCounterRegionDiskTypeListWarning--; @@ -15789,7 +17071,7 @@ buildCounterRegionDiskTypeListWarning++; if (buildCounterRegionDiskTypeListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1966(o.data); + checkUnnamed2053(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionDiskTypeListWarning--; @@ -15801,7 +17083,7 @@ buildCounterRegionDiskTypeList++; if (buildCounterRegionDiskTypeList < 3) { o.id = "foo"; - o.items = buildUnnamed1965(); + o.items = buildUnnamed2052(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -15815,7 +17097,7 @@ buildCounterRegionDiskTypeList++; if (buildCounterRegionDiskTypeList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1965(o.items); + checkUnnamed2052(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -15824,14 +17106,14 @@ buildCounterRegionDiskTypeList--; } -buildUnnamed1967() { +buildUnnamed2054() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1967(core.List<core.String> o) { +checkUnnamed2054(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -15842,7 +17124,7 @@ var o = new api.RegionDisksAddResourcePoliciesRequest(); buildCounterRegionDisksAddResourcePoliciesRequest++; if (buildCounterRegionDisksAddResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1967(); + o.resourcePolicies = buildUnnamed2054(); } buildCounterRegionDisksAddResourcePoliciesRequest--; return o; @@ -15852,19 +17134,19 @@ api.RegionDisksAddResourcePoliciesRequest o) { buildCounterRegionDisksAddResourcePoliciesRequest++; if (buildCounterRegionDisksAddResourcePoliciesRequest < 3) { - checkUnnamed1967(o.resourcePolicies); + checkUnnamed2054(o.resourcePolicies); } buildCounterRegionDisksAddResourcePoliciesRequest--; } -buildUnnamed1968() { +buildUnnamed2055() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1968(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')); @@ -15875,7 +17157,7 @@ var o = new api.RegionDisksRemoveResourcePoliciesRequest(); buildCounterRegionDisksRemoveResourcePoliciesRequest++; if (buildCounterRegionDisksRemoveResourcePoliciesRequest < 3) { - o.resourcePolicies = buildUnnamed1968(); + o.resourcePolicies = buildUnnamed2055(); } buildCounterRegionDisksRemoveResourcePoliciesRequest--; return o; @@ -15885,7 +17167,7 @@ api.RegionDisksRemoveResourcePoliciesRequest o) { buildCounterRegionDisksRemoveResourcePoliciesRequest++; if (buildCounterRegionDisksRemoveResourcePoliciesRequest < 3) { - checkUnnamed1968(o.resourcePolicies); + checkUnnamed2055(o.resourcePolicies); } buildCounterRegionDisksRemoveResourcePoliciesRequest--; } @@ -15909,14 +17191,14 @@ buildCounterRegionDisksResizeRequest--; } -buildUnnamed1969() { +buildUnnamed2056() { var o = new core.List<api.InstanceGroup>(); o.add(buildInstanceGroup()); o.add(buildInstanceGroup()); return o; } -checkUnnamed1969(core.List<api.InstanceGroup> o) { +checkUnnamed2056(core.List<api.InstanceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroup(o[0]); checkInstanceGroup(o[1]); @@ -15944,14 +17226,14 @@ buildCounterRegionInstanceGroupListWarningData--; } -buildUnnamed1970() { +buildUnnamed2057() { var o = new core.List<api.RegionInstanceGroupListWarningData>(); o.add(buildRegionInstanceGroupListWarningData()); o.add(buildRegionInstanceGroupListWarningData()); return o; } -checkUnnamed1970(core.List<api.RegionInstanceGroupListWarningData> o) { +checkUnnamed2057(core.List<api.RegionInstanceGroupListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupListWarningData(o[0]); checkRegionInstanceGroupListWarningData(o[1]); @@ -15963,7 +17245,7 @@ buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1970(); + o.data = buildUnnamed2057(); o.message = "foo"; } buildCounterRegionInstanceGroupListWarning--; @@ -15974,7 +17256,7 @@ buildCounterRegionInstanceGroupListWarning++; if (buildCounterRegionInstanceGroupListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1970(o.data); + checkUnnamed2057(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupListWarning--; @@ -15986,7 +17268,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { o.id = "foo"; - o.items = buildUnnamed1969(); + o.items = buildUnnamed2056(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -16000,7 +17282,7 @@ buildCounterRegionInstanceGroupList++; if (buildCounterRegionInstanceGroupList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1969(o.items); + checkUnnamed2056(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -16009,14 +17291,47 @@ buildCounterRegionInstanceGroupList--; } -buildUnnamed1971() { +buildUnnamed2058() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2058(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq = 0; +buildRegionInstanceGroupManagerDeleteInstanceConfigReq() { + var o = new api.RegionInstanceGroupManagerDeleteInstanceConfigReq(); + buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq < 3) { + o.names = buildUnnamed2058(); + } + buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq--; + return o; +} + +checkRegionInstanceGroupManagerDeleteInstanceConfigReq( + api.RegionInstanceGroupManagerDeleteInstanceConfigReq o) { + buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq < 3) { + checkUnnamed2058(o.names); + } + buildCounterRegionInstanceGroupManagerDeleteInstanceConfigReq--; +} + +buildUnnamed2059() { var o = new core.List<api.InstanceGroupManager>(); o.add(buildInstanceGroupManager()); o.add(buildInstanceGroupManager()); return o; } -checkUnnamed1971(core.List<api.InstanceGroupManager> o) { +checkUnnamed2059(core.List<api.InstanceGroupManager> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceGroupManager(o[0]); checkInstanceGroupManager(o[1]); @@ -16044,14 +17359,14 @@ buildCounterRegionInstanceGroupManagerListWarningData--; } -buildUnnamed1972() { +buildUnnamed2060() { var o = new core.List<api.RegionInstanceGroupManagerListWarningData>(); o.add(buildRegionInstanceGroupManagerListWarningData()); o.add(buildRegionInstanceGroupManagerListWarningData()); return o; } -checkUnnamed1972(core.List<api.RegionInstanceGroupManagerListWarningData> o) { +checkUnnamed2060(core.List<api.RegionInstanceGroupManagerListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupManagerListWarningData(o[0]); checkRegionInstanceGroupManagerListWarningData(o[1]); @@ -16063,7 +17378,7 @@ buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1972(); + o.data = buildUnnamed2060(); o.message = "foo"; } buildCounterRegionInstanceGroupManagerListWarning--; @@ -16075,7 +17390,7 @@ buildCounterRegionInstanceGroupManagerListWarning++; if (buildCounterRegionInstanceGroupManagerListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1972(o.data); + checkUnnamed2060(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagerListWarning--; @@ -16087,7 +17402,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { o.id = "foo"; - o.items = buildUnnamed1971(); + o.items = buildUnnamed2059(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -16101,7 +17416,7 @@ buildCounterRegionInstanceGroupManagerList++; if (buildCounterRegionInstanceGroupManagerList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1971(o.items); + checkUnnamed2059(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -16110,14 +17425,80 @@ buildCounterRegionInstanceGroupManagerList--; } -buildUnnamed1973() { +buildUnnamed2061() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed2061(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq = 0; +buildRegionInstanceGroupManagerPatchInstanceConfigReq() { + var o = new api.RegionInstanceGroupManagerPatchInstanceConfigReq(); + buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq < 3) { + o.perInstanceConfigs = buildUnnamed2061(); + } + buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq--; + return o; +} + +checkRegionInstanceGroupManagerPatchInstanceConfigReq( + api.RegionInstanceGroupManagerPatchInstanceConfigReq o) { + buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq < 3) { + checkUnnamed2061(o.perInstanceConfigs); + } + buildCounterRegionInstanceGroupManagerPatchInstanceConfigReq--; +} + +buildUnnamed2062() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed2062(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq = 0; +buildRegionInstanceGroupManagerUpdateInstanceConfigReq() { + var o = new api.RegionInstanceGroupManagerUpdateInstanceConfigReq(); + buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq < 3) { + o.perInstanceConfigs = buildUnnamed2062(); + } + buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq--; + return o; +} + +checkRegionInstanceGroupManagerUpdateInstanceConfigReq( + api.RegionInstanceGroupManagerUpdateInstanceConfigReq o) { + buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq++; + if (buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq < 3) { + checkUnnamed2062(o.perInstanceConfigs); + } + buildCounterRegionInstanceGroupManagerUpdateInstanceConfigReq--; +} + +buildUnnamed2063() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1973(core.List<core.String> o) { +checkUnnamed2063(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16128,7 +17509,7 @@ var o = new api.RegionInstanceGroupManagersAbandonInstancesRequest(); buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - o.instances = buildUnnamed1973(); + o.instances = buildUnnamed2063(); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; return o; @@ -16138,19 +17519,19 @@ api.RegionInstanceGroupManagersAbandonInstancesRequest o) { buildCounterRegionInstanceGroupManagersAbandonInstancesRequest++; if (buildCounterRegionInstanceGroupManagersAbandonInstancesRequest < 3) { - checkUnnamed1973(o.instances); + checkUnnamed2063(o.instances); } buildCounterRegionInstanceGroupManagersAbandonInstancesRequest--; } -buildUnnamed1974() { +buildUnnamed2064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1974(core.List<core.String> o) { +checkUnnamed2064(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16161,7 +17542,7 @@ var o = new api.RegionInstanceGroupManagersApplyUpdatesRequest(); buildCounterRegionInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterRegionInstanceGroupManagersApplyUpdatesRequest < 3) { - o.instances = buildUnnamed1974(); + o.instances = buildUnnamed2064(); o.minimalAction = "foo"; o.mostDisruptiveAllowedAction = "foo"; } @@ -16173,21 +17554,21 @@ api.RegionInstanceGroupManagersApplyUpdatesRequest o) { buildCounterRegionInstanceGroupManagersApplyUpdatesRequest++; if (buildCounterRegionInstanceGroupManagersApplyUpdatesRequest < 3) { - checkUnnamed1974(o.instances); + checkUnnamed2064(o.instances); unittest.expect(o.minimalAction, unittest.equals('foo')); unittest.expect(o.mostDisruptiveAllowedAction, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersApplyUpdatesRequest--; } -buildUnnamed1975() { +buildUnnamed2065() { var o = new core.List<api.PerInstanceConfig>(); o.add(buildPerInstanceConfig()); o.add(buildPerInstanceConfig()); return o; } -checkUnnamed1975(core.List<api.PerInstanceConfig> o) { +checkUnnamed2065(core.List<api.PerInstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPerInstanceConfig(o[0]); checkPerInstanceConfig(o[1]); @@ -16198,7 +17579,7 @@ var o = new api.RegionInstanceGroupManagersCreateInstancesRequest(); buildCounterRegionInstanceGroupManagersCreateInstancesRequest++; if (buildCounterRegionInstanceGroupManagersCreateInstancesRequest < 3) { - o.instances = buildUnnamed1975(); + o.instances = buildUnnamed2065(); } buildCounterRegionInstanceGroupManagersCreateInstancesRequest--; return o; @@ -16208,19 +17589,19 @@ api.RegionInstanceGroupManagersCreateInstancesRequest o) { buildCounterRegionInstanceGroupManagersCreateInstancesRequest++; if (buildCounterRegionInstanceGroupManagersCreateInstancesRequest < 3) { - checkUnnamed1975(o.instances); + checkUnnamed2065(o.instances); } buildCounterRegionInstanceGroupManagersCreateInstancesRequest--; } -buildUnnamed1976() { +buildUnnamed2066() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1976(core.List<core.String> o) { +checkUnnamed2066(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16231,7 +17612,7 @@ var o = new api.RegionInstanceGroupManagersDeleteInstancesRequest(); buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - o.instances = buildUnnamed1976(); + o.instances = buildUnnamed2066(); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; return o; @@ -16241,19 +17622,19 @@ api.RegionInstanceGroupManagersDeleteInstancesRequest o) { buildCounterRegionInstanceGroupManagersDeleteInstancesRequest++; if (buildCounterRegionInstanceGroupManagersDeleteInstancesRequest < 3) { - checkUnnamed1976(o.instances); + checkUnnamed2066(o.instances); } buildCounterRegionInstanceGroupManagersDeleteInstancesRequest--; } -buildUnnamed1977() { +buildUnnamed2067() { var o = new core.List<api.InstanceManagedByIgmError>(); o.add(buildInstanceManagedByIgmError()); o.add(buildInstanceManagedByIgmError()); return o; } -checkUnnamed1977(core.List<api.InstanceManagedByIgmError> o) { +checkUnnamed2067(core.List<api.InstanceManagedByIgmError> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceManagedByIgmError(o[0]); checkInstanceManagedByIgmError(o[1]); @@ -16264,7 +17645,7 @@ var o = new api.RegionInstanceGroupManagersListErrorsResponse(); buildCounterRegionInstanceGroupManagersListErrorsResponse++; if (buildCounterRegionInstanceGroupManagersListErrorsResponse < 3) { - o.items = buildUnnamed1977(); + o.items = buildUnnamed2067(); o.nextPageToken = "foo"; } buildCounterRegionInstanceGroupManagersListErrorsResponse--; @@ -16275,20 +17656,128 @@ api.RegionInstanceGroupManagersListErrorsResponse o) { buildCounterRegionInstanceGroupManagersListErrorsResponse++; if (buildCounterRegionInstanceGroupManagersListErrorsResponse < 3) { - checkUnnamed1977(o.items); + checkUnnamed2067(o.items); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersListErrorsResponse--; } -buildUnnamed1978() { +buildUnnamed2068() { + var o = new core.List<api.PerInstanceConfig>(); + o.add(buildPerInstanceConfig()); + o.add(buildPerInstanceConfig()); + return o; +} + +checkUnnamed2068(core.List<api.PerInstanceConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerInstanceConfig(o[0]); + checkPerInstanceConfig(o[1]); +} + +core.int + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData = + 0; +buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData() { + var o = + new api.RegionInstanceGroupManagersListInstanceConfigsRespWarningData(); + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData < + 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData--; + return o; +} + +checkRegionInstanceGroupManagersListInstanceConfigsRespWarningData( + api.RegionInstanceGroupManagersListInstanceConfigsRespWarningData o) { + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData < + 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarningData--; +} + +buildUnnamed2069() { + var o = new core.List< + api.RegionInstanceGroupManagersListInstanceConfigsRespWarningData>(); + o.add(buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData()); + o.add(buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData()); + return o; +} + +checkUnnamed2069( + core.List<api.RegionInstanceGroupManagersListInstanceConfigsRespWarningData> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkRegionInstanceGroupManagersListInstanceConfigsRespWarningData(o[0]); + checkRegionInstanceGroupManagersListInstanceConfigsRespWarningData(o[1]); +} + +core.int buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning = + 0; +buildRegionInstanceGroupManagersListInstanceConfigsRespWarning() { + var o = new api.RegionInstanceGroupManagersListInstanceConfigsRespWarning(); + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning < + 3) { + o.code = "foo"; + o.data = buildUnnamed2069(); + o.message = "foo"; + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning--; + return o; +} + +checkRegionInstanceGroupManagersListInstanceConfigsRespWarning( + api.RegionInstanceGroupManagersListInstanceConfigsRespWarning o) { + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning < + 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed2069(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsRespWarning--; +} + +core.int buildCounterRegionInstanceGroupManagersListInstanceConfigsResp = 0; +buildRegionInstanceGroupManagersListInstanceConfigsResp() { + var o = new api.RegionInstanceGroupManagersListInstanceConfigsResp(); + buildCounterRegionInstanceGroupManagersListInstanceConfigsResp++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsResp < 3) { + o.items = buildUnnamed2068(); + o.nextPageToken = "foo"; + o.warning = + buildRegionInstanceGroupManagersListInstanceConfigsRespWarning(); + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsResp--; + return o; +} + +checkRegionInstanceGroupManagersListInstanceConfigsResp( + api.RegionInstanceGroupManagersListInstanceConfigsResp o) { + buildCounterRegionInstanceGroupManagersListInstanceConfigsResp++; + if (buildCounterRegionInstanceGroupManagersListInstanceConfigsResp < 3) { + checkUnnamed2068(o.items); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkRegionInstanceGroupManagersListInstanceConfigsRespWarning(o.warning); + } + buildCounterRegionInstanceGroupManagersListInstanceConfigsResp--; +} + +buildUnnamed2070() { var o = new core.List<api.ManagedInstance>(); o.add(buildManagedInstance()); o.add(buildManagedInstance()); return o; } -checkUnnamed1978(core.List<api.ManagedInstance> o) { +checkUnnamed2070(core.List<api.ManagedInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedInstance(o[0]); checkManagedInstance(o[1]); @@ -16299,7 +17788,7 @@ var o = new api.RegionInstanceGroupManagersListInstancesResponse(); buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - o.managedInstances = buildUnnamed1978(); + o.managedInstances = buildUnnamed2070(); o.nextPageToken = "foo"; } buildCounterRegionInstanceGroupManagersListInstancesResponse--; @@ -16310,20 +17799,20 @@ api.RegionInstanceGroupManagersListInstancesResponse o) { buildCounterRegionInstanceGroupManagersListInstancesResponse++; if (buildCounterRegionInstanceGroupManagersListInstancesResponse < 3) { - checkUnnamed1978(o.managedInstances); + checkUnnamed2070(o.managedInstances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterRegionInstanceGroupManagersListInstancesResponse--; } -buildUnnamed1979() { +buildUnnamed2071() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1979(core.List<core.String> o) { +checkUnnamed2071(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16334,7 +17823,7 @@ var o = new api.RegionInstanceGroupManagersRecreateRequest(); buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - o.instances = buildUnnamed1979(); + o.instances = buildUnnamed2071(); } buildCounterRegionInstanceGroupManagersRecreateRequest--; return o; @@ -16344,19 +17833,19 @@ api.RegionInstanceGroupManagersRecreateRequest o) { buildCounterRegionInstanceGroupManagersRecreateRequest++; if (buildCounterRegionInstanceGroupManagersRecreateRequest < 3) { - checkUnnamed1979(o.instances); + checkUnnamed2071(o.instances); } buildCounterRegionInstanceGroupManagersRecreateRequest--; } -buildUnnamed1980() { +buildUnnamed2072() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1980(core.List<core.String> o) { +checkUnnamed2072(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16368,7 +17857,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { o.fingerprint = "foo"; - o.targetPools = buildUnnamed1980(); + o.targetPools = buildUnnamed2072(); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; return o; @@ -16379,7 +17868,7 @@ buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest++; if (buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1980(o.targetPools); + checkUnnamed2072(o.targetPools); } buildCounterRegionInstanceGroupManagersSetTargetPoolsRequest--; } @@ -16404,14 +17893,14 @@ buildCounterRegionInstanceGroupManagersSetTemplateRequest--; } -buildUnnamed1981() { +buildUnnamed2073() { var o = new core.List<api.InstanceWithNamedPorts>(); o.add(buildInstanceWithNamedPorts()); o.add(buildInstanceWithNamedPorts()); return o; } -checkUnnamed1981(core.List<api.InstanceWithNamedPorts> o) { +checkUnnamed2073(core.List<api.InstanceWithNamedPorts> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceWithNamedPorts(o[0]); checkInstanceWithNamedPorts(o[1]); @@ -16439,14 +17928,14 @@ buildCounterRegionInstanceGroupsListInstancesWarningData--; } -buildUnnamed1982() { +buildUnnamed2074() { var o = new core.List<api.RegionInstanceGroupsListInstancesWarningData>(); o.add(buildRegionInstanceGroupsListInstancesWarningData()); o.add(buildRegionInstanceGroupsListInstancesWarningData()); return o; } -checkUnnamed1982( +checkUnnamed2074( core.List<api.RegionInstanceGroupsListInstancesWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionInstanceGroupsListInstancesWarningData(o[0]); @@ -16459,7 +17948,7 @@ buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1982(); + o.data = buildUnnamed2074(); o.message = "foo"; } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -16471,7 +17960,7 @@ buildCounterRegionInstanceGroupsListInstancesWarning++; if (buildCounterRegionInstanceGroupsListInstancesWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1982(o.data); + checkUnnamed2074(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionInstanceGroupsListInstancesWarning--; @@ -16483,7 +17972,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { o.id = "foo"; - o.items = buildUnnamed1981(); + o.items = buildUnnamed2073(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -16498,7 +17987,7 @@ buildCounterRegionInstanceGroupsListInstances++; if (buildCounterRegionInstanceGroupsListInstances < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1981(o.items); + checkUnnamed2073(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -16529,14 +18018,14 @@ buildCounterRegionInstanceGroupsListInstancesRequest--; } -buildUnnamed1983() { +buildUnnamed2075() { var o = new core.List<api.NamedPort>(); o.add(buildNamedPort()); o.add(buildNamedPort()); return o; } -checkUnnamed1983(core.List<api.NamedPort> o) { +checkUnnamed2075(core.List<api.NamedPort> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedPort(o[0]); checkNamedPort(o[1]); @@ -16548,7 +18037,7 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { o.fingerprint = "foo"; - o.namedPorts = buildUnnamed1983(); + o.namedPorts = buildUnnamed2075(); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; return o; @@ -16559,19 +18048,19 @@ buildCounterRegionInstanceGroupsSetNamedPortsRequest++; if (buildCounterRegionInstanceGroupsSetNamedPortsRequest < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed1983(o.namedPorts); + checkUnnamed2075(o.namedPorts); } buildCounterRegionInstanceGroupsSetNamedPortsRequest--; } -buildUnnamed1984() { +buildUnnamed2076() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed1984(core.List<api.Region> o) { +checkUnnamed2076(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -16598,14 +18087,14 @@ buildCounterRegionListWarningData--; } -buildUnnamed1985() { +buildUnnamed2077() { var o = new core.List<api.RegionListWarningData>(); o.add(buildRegionListWarningData()); o.add(buildRegionListWarningData()); return o; } -checkUnnamed1985(core.List<api.RegionListWarningData> o) { +checkUnnamed2077(core.List<api.RegionListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionListWarningData(o[0]); checkRegionListWarningData(o[1]); @@ -16617,7 +18106,7 @@ buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1985(); + o.data = buildUnnamed2077(); o.message = "foo"; } buildCounterRegionListWarning--; @@ -16628,7 +18117,7 @@ buildCounterRegionListWarning++; if (buildCounterRegionListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1985(o.data); + checkUnnamed2077(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRegionListWarning--; @@ -16640,7 +18129,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { o.id = "foo"; - o.items = buildUnnamed1984(); + o.items = buildUnnamed2076(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -16654,7 +18143,7 @@ buildCounterRegionList++; if (buildCounterRegionList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1984(o.items); + checkUnnamed2076(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -16663,14 +18152,14 @@ buildCounterRegionList--; } -buildUnnamed1986() { +buildUnnamed2078() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1986(core.Map<core.String, core.String> o) { +checkUnnamed2078(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')); @@ -16682,7 +18171,7 @@ buildCounterRegionSetLabelsRequest++; if (buildCounterRegionSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed1986(); + o.labels = buildUnnamed2078(); } buildCounterRegionSetLabelsRequest--; return o; @@ -16692,19 +18181,19 @@ buildCounterRegionSetLabelsRequest++; if (buildCounterRegionSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed1986(o.labels); + checkUnnamed2078(o.labels); } buildCounterRegionSetLabelsRequest--; } -buildUnnamed1987() { +buildUnnamed2079() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1987(core.List<api.Binding> o) { +checkUnnamed2079(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -16715,7 +18204,7 @@ var o = new api.RegionSetPolicyRequest(); buildCounterRegionSetPolicyRequest++; if (buildCounterRegionSetPolicyRequest < 3) { - o.bindings = buildUnnamed1987(); + o.bindings = buildUnnamed2079(); o.etag = "foo"; o.policy = buildPolicy(); } @@ -16726,21 +18215,21 @@ checkRegionSetPolicyRequest(api.RegionSetPolicyRequest o) { buildCounterRegionSetPolicyRequest++; if (buildCounterRegionSetPolicyRequest < 3) { - checkUnnamed1987(o.bindings); + checkUnnamed2079(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); checkPolicy(o.policy); } buildCounterRegionSetPolicyRequest--; } -buildUnnamed1988() { +buildUnnamed2080() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1988(core.List<core.String> o) { +checkUnnamed2080(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16751,7 +18240,7 @@ var o = new api.RegionTargetHttpsProxiesSetSslCertificatesRequest(); buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed1988(); + o.sslCertificates = buildUnnamed2080(); } buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -16761,7 +18250,7 @@ api.RegionTargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed1988(o.sslCertificates); + checkUnnamed2080(o.sslCertificates); } buildCounterRegionTargetHttpsProxiesSetSslCertificatesRequest--; } @@ -16843,14 +18332,14 @@ buildCounterReservation--; } -buildUnnamed1989() { +buildUnnamed2081() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1989(core.List<core.String> o) { +checkUnnamed2081(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -16863,7 +18352,7 @@ if (buildCounterReservationAffinity < 3) { o.consumeReservationType = "foo"; o.key = "foo"; - o.values = buildUnnamed1989(); + o.values = buildUnnamed2081(); } buildCounterReservationAffinity--; return o; @@ -16874,24 +18363,37 @@ if (buildCounterReservationAffinity < 3) { unittest.expect(o.consumeReservationType, unittest.equals('foo')); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed1989(o.values); + checkUnnamed2081(o.values); } buildCounterReservationAffinity--; } -buildUnnamed1990() { +buildUnnamed2082() { var o = new core.Map<core.String, api.ReservationsScopedList>(); o["x"] = buildReservationsScopedList(); o["y"] = buildReservationsScopedList(); return o; } -checkUnnamed1990(core.Map<core.String, api.ReservationsScopedList> o) { +checkUnnamed2082(core.Map<core.String, api.ReservationsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkReservationsScopedList(o["x"]); checkReservationsScopedList(o["y"]); } +buildUnnamed2083() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2083(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterReservationAggregatedListWarningData = 0; buildReservationAggregatedListWarningData() { var o = new api.ReservationAggregatedListWarningData(); @@ -16914,14 +18416,14 @@ buildCounterReservationAggregatedListWarningData--; } -buildUnnamed1991() { +buildUnnamed2084() { var o = new core.List<api.ReservationAggregatedListWarningData>(); o.add(buildReservationAggregatedListWarningData()); o.add(buildReservationAggregatedListWarningData()); return o; } -checkUnnamed1991(core.List<api.ReservationAggregatedListWarningData> o) { +checkUnnamed2084(core.List<api.ReservationAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkReservationAggregatedListWarningData(o[0]); checkReservationAggregatedListWarningData(o[1]); @@ -16933,7 +18435,7 @@ buildCounterReservationAggregatedListWarning++; if (buildCounterReservationAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1991(); + o.data = buildUnnamed2084(); o.message = "foo"; } buildCounterReservationAggregatedListWarning--; @@ -16944,7 +18446,7 @@ buildCounterReservationAggregatedListWarning++; if (buildCounterReservationAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1991(o.data); + checkUnnamed2084(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterReservationAggregatedListWarning--; @@ -16956,10 +18458,11 @@ buildCounterReservationAggregatedList++; if (buildCounterReservationAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed1990(); + o.items = buildUnnamed2082(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2083(); o.warning = buildReservationAggregatedListWarning(); } buildCounterReservationAggregatedList--; @@ -16970,23 +18473,24 @@ buildCounterReservationAggregatedList++; if (buildCounterReservationAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1990(o.items); + checkUnnamed2082(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2083(o.unreachables); checkReservationAggregatedListWarning(o.warning); } buildCounterReservationAggregatedList--; } -buildUnnamed1992() { +buildUnnamed2085() { var o = new core.List<api.Reservation>(); o.add(buildReservation()); o.add(buildReservation()); return o; } -checkUnnamed1992(core.List<api.Reservation> o) { +checkUnnamed2085(core.List<api.Reservation> o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); @@ -17013,14 +18517,14 @@ buildCounterReservationListWarningData--; } -buildUnnamed1993() { +buildUnnamed2086() { var o = new core.List<api.ReservationListWarningData>(); o.add(buildReservationListWarningData()); o.add(buildReservationListWarningData()); return o; } -checkUnnamed1993(core.List<api.ReservationListWarningData> o) { +checkUnnamed2086(core.List<api.ReservationListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkReservationListWarningData(o[0]); checkReservationListWarningData(o[1]); @@ -17032,7 +18536,7 @@ buildCounterReservationListWarning++; if (buildCounterReservationListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1993(); + o.data = buildUnnamed2086(); o.message = "foo"; } buildCounterReservationListWarning--; @@ -17043,7 +18547,7 @@ buildCounterReservationListWarning++; if (buildCounterReservationListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1993(o.data); + checkUnnamed2086(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterReservationListWarning--; @@ -17055,7 +18559,7 @@ buildCounterReservationList++; if (buildCounterReservationList < 3) { o.id = "foo"; - o.items = buildUnnamed1992(); + o.items = buildUnnamed2085(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -17069,7 +18573,7 @@ buildCounterReservationList++; if (buildCounterReservationList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1992(o.items); + checkUnnamed2085(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -17097,14 +18601,14 @@ buildCounterReservationsResizeRequest--; } -buildUnnamed1994() { +buildUnnamed2087() { var o = new core.List<api.Reservation>(); o.add(buildReservation()); o.add(buildReservation()); return o; } -checkUnnamed1994(core.List<api.Reservation> o) { +checkUnnamed2087(core.List<api.Reservation> o) { unittest.expect(o, unittest.hasLength(2)); checkReservation(o[0]); checkReservation(o[1]); @@ -17132,14 +18636,14 @@ buildCounterReservationsScopedListWarningData--; } -buildUnnamed1995() { +buildUnnamed2088() { var o = new core.List<api.ReservationsScopedListWarningData>(); o.add(buildReservationsScopedListWarningData()); o.add(buildReservationsScopedListWarningData()); return o; } -checkUnnamed1995(core.List<api.ReservationsScopedListWarningData> o) { +checkUnnamed2088(core.List<api.ReservationsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkReservationsScopedListWarningData(o[0]); checkReservationsScopedListWarningData(o[1]); @@ -17151,7 +18655,7 @@ buildCounterReservationsScopedListWarning++; if (buildCounterReservationsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1995(); + o.data = buildUnnamed2088(); o.message = "foo"; } buildCounterReservationsScopedListWarning--; @@ -17162,7 +18666,7 @@ buildCounterReservationsScopedListWarning++; if (buildCounterReservationsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1995(o.data); + checkUnnamed2088(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterReservationsScopedListWarning--; @@ -17173,7 +18677,7 @@ var o = new api.ReservationsScopedList(); buildCounterReservationsScopedList++; if (buildCounterReservationsScopedList < 3) { - o.reservations = buildUnnamed1994(); + o.reservations = buildUnnamed2087(); o.warning = buildReservationsScopedListWarning(); } buildCounterReservationsScopedList--; @@ -17183,7 +18687,7 @@ checkReservationsScopedList(api.ReservationsScopedList o) { buildCounterReservationsScopedList++; if (buildCounterReservationsScopedList < 3) { - checkUnnamed1994(o.reservations); + checkUnnamed2087(o.reservations); checkReservationsScopedListWarning(o.warning); } buildCounterReservationsScopedList--; @@ -17231,14 +18735,14 @@ buildCounterResourceGroupReference--; } -buildUnnamed1996() { +buildUnnamed2089() { var o = new core.List<api.ResourcePolicy>(); o.add(buildResourcePolicy()); o.add(buildResourcePolicy()); return o; } -checkUnnamed1996(core.List<api.ResourcePolicy> o) { +checkUnnamed2089(core.List<api.ResourcePolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicy(o[0]); checkResourcePolicy(o[1]); @@ -17266,14 +18770,14 @@ buildCounterResourcePoliciesScopedListWarningData--; } -buildUnnamed1997() { +buildUnnamed2090() { var o = new core.List<api.ResourcePoliciesScopedListWarningData>(); o.add(buildResourcePoliciesScopedListWarningData()); o.add(buildResourcePoliciesScopedListWarningData()); return o; } -checkUnnamed1997(core.List<api.ResourcePoliciesScopedListWarningData> o) { +checkUnnamed2090(core.List<api.ResourcePoliciesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePoliciesScopedListWarningData(o[0]); checkResourcePoliciesScopedListWarningData(o[1]); @@ -17285,7 +18789,7 @@ buildCounterResourcePoliciesScopedListWarning++; if (buildCounterResourcePoliciesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1997(); + o.data = buildUnnamed2090(); o.message = "foo"; } buildCounterResourcePoliciesScopedListWarning--; @@ -17297,7 +18801,7 @@ buildCounterResourcePoliciesScopedListWarning++; if (buildCounterResourcePoliciesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1997(o.data); + checkUnnamed2090(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourcePoliciesScopedListWarning--; @@ -17308,7 +18812,7 @@ var o = new api.ResourcePoliciesScopedList(); buildCounterResourcePoliciesScopedList++; if (buildCounterResourcePoliciesScopedList < 3) { - o.resourcePolicies = buildUnnamed1996(); + o.resourcePolicies = buildUnnamed2089(); o.warning = buildResourcePoliciesScopedListWarning(); } buildCounterResourcePoliciesScopedList--; @@ -17318,7 +18822,7 @@ checkResourcePoliciesScopedList(api.ResourcePoliciesScopedList o) { buildCounterResourcePoliciesScopedList++; if (buildCounterResourcePoliciesScopedList < 3) { - checkUnnamed1996(o.resourcePolicies); + checkUnnamed2089(o.resourcePolicies); checkResourcePoliciesScopedListWarning(o.warning); } buildCounterResourcePoliciesScopedList--; @@ -17361,19 +18865,32 @@ buildCounterResourcePolicy--; } -buildUnnamed1998() { +buildUnnamed2091() { var o = new core.Map<core.String, api.ResourcePoliciesScopedList>(); o["x"] = buildResourcePoliciesScopedList(); o["y"] = buildResourcePoliciesScopedList(); return o; } -checkUnnamed1998(core.Map<core.String, api.ResourcePoliciesScopedList> o) { +checkUnnamed2091(core.Map<core.String, api.ResourcePoliciesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePoliciesScopedList(o["x"]); checkResourcePoliciesScopedList(o["y"]); } +buildUnnamed2092() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2092(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterResourcePolicyAggregatedListWarningData = 0; buildResourcePolicyAggregatedListWarningData() { var o = new api.ResourcePolicyAggregatedListWarningData(); @@ -17396,14 +18913,14 @@ buildCounterResourcePolicyAggregatedListWarningData--; } -buildUnnamed1999() { +buildUnnamed2093() { var o = new core.List<api.ResourcePolicyAggregatedListWarningData>(); o.add(buildResourcePolicyAggregatedListWarningData()); o.add(buildResourcePolicyAggregatedListWarningData()); return o; } -checkUnnamed1999(core.List<api.ResourcePolicyAggregatedListWarningData> o) { +checkUnnamed2093(core.List<api.ResourcePolicyAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyAggregatedListWarningData(o[0]); checkResourcePolicyAggregatedListWarningData(o[1]); @@ -17415,7 +18932,7 @@ buildCounterResourcePolicyAggregatedListWarning++; if (buildCounterResourcePolicyAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed1999(); + o.data = buildUnnamed2093(); o.message = "foo"; } buildCounterResourcePolicyAggregatedListWarning--; @@ -17427,7 +18944,7 @@ buildCounterResourcePolicyAggregatedListWarning++; if (buildCounterResourcePolicyAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed1999(o.data); + checkUnnamed2093(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourcePolicyAggregatedListWarning--; @@ -17440,10 +18957,11 @@ if (buildCounterResourcePolicyAggregatedList < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed1998(); + o.items = buildUnnamed2091(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2092(); o.warning = buildResourcePolicyAggregatedListWarning(); } buildCounterResourcePolicyAggregatedList--; @@ -17455,10 +18973,11 @@ if (buildCounterResourcePolicyAggregatedList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1998(o.items); + checkUnnamed2091(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2092(o.unreachables); checkResourcePolicyAggregatedListWarning(o.warning); } buildCounterResourcePolicyAggregatedList--; @@ -17534,14 +19053,14 @@ buildCounterResourcePolicyHourlyCycle--; } -buildUnnamed2000() { +buildUnnamed2094() { var o = new core.List<api.ResourcePolicy>(); o.add(buildResourcePolicy()); o.add(buildResourcePolicy()); return o; } -checkUnnamed2000(core.List<api.ResourcePolicy> o) { +checkUnnamed2094(core.List<api.ResourcePolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicy(o[0]); checkResourcePolicy(o[1]); @@ -17568,14 +19087,14 @@ buildCounterResourcePolicyListWarningData--; } -buildUnnamed2001() { +buildUnnamed2095() { var o = new core.List<api.ResourcePolicyListWarningData>(); o.add(buildResourcePolicyListWarningData()); o.add(buildResourcePolicyListWarningData()); return o; } -checkUnnamed2001(core.List<api.ResourcePolicyListWarningData> o) { +checkUnnamed2095(core.List<api.ResourcePolicyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyListWarningData(o[0]); checkResourcePolicyListWarningData(o[1]); @@ -17587,7 +19106,7 @@ buildCounterResourcePolicyListWarning++; if (buildCounterResourcePolicyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2001(); + o.data = buildUnnamed2095(); o.message = "foo"; } buildCounterResourcePolicyListWarning--; @@ -17598,7 +19117,7 @@ buildCounterResourcePolicyListWarning++; if (buildCounterResourcePolicyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2001(o.data); + checkUnnamed2095(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterResourcePolicyListWarning--; @@ -17611,7 +19130,7 @@ if (buildCounterResourcePolicyList < 3) { o.etag = "foo"; o.id = "foo"; - o.items = buildUnnamed2000(); + o.items = buildUnnamed2094(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -17626,7 +19145,7 @@ if (buildCounterResourcePolicyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2000(o.items); + checkUnnamed2094(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -17708,27 +19227,27 @@ buildCounterResourcePolicySnapshotSchedulePolicySchedule--; } -buildUnnamed2002() { +buildUnnamed2096() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2002(core.Map<core.String, core.String> o) { +checkUnnamed2096(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')); } -buildUnnamed2003() { +buildUnnamed2097() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2003(core.List<core.String> o) { +checkUnnamed2097(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -17740,8 +19259,8 @@ buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties++; if (buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties < 3) { o.guestFlush = true; - o.labels = buildUnnamed2002(); - o.storageLocations = buildUnnamed2003(); + o.labels = buildUnnamed2096(); + o.storageLocations = buildUnnamed2097(); } buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties--; return o; @@ -17752,20 +19271,20 @@ buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties++; if (buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties < 3) { unittest.expect(o.guestFlush, unittest.isTrue); - checkUnnamed2002(o.labels); - checkUnnamed2003(o.storageLocations); + checkUnnamed2096(o.labels); + checkUnnamed2097(o.storageLocations); } buildCounterResourcePolicySnapshotSchedulePolicySnapshotProperties--; } -buildUnnamed2004() { +buildUnnamed2098() { var o = new core.List<api.ResourcePolicyWeeklyCycleDayOfWeek>(); o.add(buildResourcePolicyWeeklyCycleDayOfWeek()); o.add(buildResourcePolicyWeeklyCycleDayOfWeek()); return o; } -checkUnnamed2004(core.List<api.ResourcePolicyWeeklyCycleDayOfWeek> o) { +checkUnnamed2098(core.List<api.ResourcePolicyWeeklyCycleDayOfWeek> o) { unittest.expect(o, unittest.hasLength(2)); checkResourcePolicyWeeklyCycleDayOfWeek(o[0]); checkResourcePolicyWeeklyCycleDayOfWeek(o[1]); @@ -17776,7 +19295,7 @@ var o = new api.ResourcePolicyWeeklyCycle(); buildCounterResourcePolicyWeeklyCycle++; if (buildCounterResourcePolicyWeeklyCycle < 3) { - o.dayOfWeeks = buildUnnamed2004(); + o.dayOfWeeks = buildUnnamed2098(); } buildCounterResourcePolicyWeeklyCycle--; return o; @@ -17785,7 +19304,7 @@ checkResourcePolicyWeeklyCycle(api.ResourcePolicyWeeklyCycle o) { buildCounterResourcePolicyWeeklyCycle++; if (buildCounterResourcePolicyWeeklyCycle < 3) { - checkUnnamed2004(o.dayOfWeeks); + checkUnnamed2098(o.dayOfWeeks); } buildCounterResourcePolicyWeeklyCycle--; } @@ -17814,14 +19333,14 @@ buildCounterResourcePolicyWeeklyCycleDayOfWeek--; } -buildUnnamed2005() { +buildUnnamed2099() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2005(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')); @@ -17848,14 +19367,14 @@ buildCounterRouteWarningsData--; } -buildUnnamed2006() { +buildUnnamed2100() { var o = new core.List<api.RouteWarningsData>(); o.add(buildRouteWarningsData()); o.add(buildRouteWarningsData()); return o; } -checkUnnamed2006(core.List<api.RouteWarningsData> o) { +checkUnnamed2100(core.List<api.RouteWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarningsData(o[0]); checkRouteWarningsData(o[1]); @@ -17867,7 +19386,7 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2006(); + o.data = buildUnnamed2100(); o.message = "foo"; } buildCounterRouteWarnings--; @@ -17878,20 +19397,20 @@ buildCounterRouteWarnings++; if (buildCounterRouteWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2006(o.data); + checkUnnamed2100(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteWarnings--; } -buildUnnamed2007() { +buildUnnamed2101() { var o = new core.List<api.RouteWarnings>(); o.add(buildRouteWarnings()); o.add(buildRouteWarnings()); return o; } -checkUnnamed2007(core.List<api.RouteWarnings> o) { +checkUnnamed2101(core.List<api.RouteWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteWarnings(o[0]); checkRouteWarnings(o[1]); @@ -17918,8 +19437,8 @@ o.nextHopVpnTunnel = "foo"; o.priority = 42; o.selfLink = "foo"; - o.tags = buildUnnamed2005(); - o.warnings = buildUnnamed2007(); + o.tags = buildUnnamed2099(); + o.warnings = buildUnnamed2101(); } buildCounterRoute--; return o; @@ -17944,20 +19463,20 @@ unittest.expect(o.nextHopVpnTunnel, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2005(o.tags); - checkUnnamed2007(o.warnings); + checkUnnamed2099(o.tags); + checkUnnamed2101(o.warnings); } buildCounterRoute--; } -buildUnnamed2008() { +buildUnnamed2102() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2008(core.List<api.Route> o) { +checkUnnamed2102(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -17984,14 +19503,14 @@ buildCounterRouteListWarningData--; } -buildUnnamed2009() { +buildUnnamed2103() { var o = new core.List<api.RouteListWarningData>(); o.add(buildRouteListWarningData()); o.add(buildRouteListWarningData()); return o; } -checkUnnamed2009(core.List<api.RouteListWarningData> o) { +checkUnnamed2103(core.List<api.RouteListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouteListWarningData(o[0]); checkRouteListWarningData(o[1]); @@ -18003,7 +19522,7 @@ buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2009(); + o.data = buildUnnamed2103(); o.message = "foo"; } buildCounterRouteListWarning--; @@ -18014,7 +19533,7 @@ buildCounterRouteListWarning++; if (buildCounterRouteListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2009(o.data); + checkUnnamed2103(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouteListWarning--; @@ -18026,7 +19545,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { o.id = "foo"; - o.items = buildUnnamed2008(); + o.items = buildUnnamed2102(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -18040,7 +19559,7 @@ buildCounterRouteList++; if (buildCounterRouteList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2008(o.items); + checkUnnamed2102(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -18049,40 +19568,40 @@ buildCounterRouteList--; } -buildUnnamed2010() { +buildUnnamed2104() { var o = new core.List<api.RouterBgpPeer>(); o.add(buildRouterBgpPeer()); o.add(buildRouterBgpPeer()); return o; } -checkUnnamed2010(core.List<api.RouterBgpPeer> o) { +checkUnnamed2104(core.List<api.RouterBgpPeer> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterBgpPeer(o[0]); checkRouterBgpPeer(o[1]); } -buildUnnamed2011() { +buildUnnamed2105() { var o = new core.List<api.RouterInterface>(); o.add(buildRouterInterface()); o.add(buildRouterInterface()); return o; } -checkUnnamed2011(core.List<api.RouterInterface> o) { +checkUnnamed2105(core.List<api.RouterInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterInterface(o[0]); checkRouterInterface(o[1]); } -buildUnnamed2012() { +buildUnnamed2106() { var o = new core.List<api.RouterNat>(); o.add(buildRouterNat()); o.add(buildRouterNat()); return o; } -checkUnnamed2012(core.List<api.RouterNat> o) { +checkUnnamed2106(core.List<api.RouterNat> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNat(o[0]); checkRouterNat(o[1]); @@ -18094,14 +19613,14 @@ buildCounterRouter++; if (buildCounterRouter < 3) { o.bgp = buildRouterBgp(); - o.bgpPeers = buildUnnamed2010(); + o.bgpPeers = buildUnnamed2104(); o.creationTimestamp = "foo"; o.description = "foo"; o.id = "foo"; - o.interfaces = buildUnnamed2011(); + o.interfaces = buildUnnamed2105(); o.kind = "foo"; o.name = "foo"; - o.nats = buildUnnamed2012(); + o.nats = buildUnnamed2106(); o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; @@ -18114,14 +19633,14 @@ buildCounterRouter++; if (buildCounterRouter < 3) { checkRouterBgp(o.bgp); - checkUnnamed2010(o.bgpPeers); + checkUnnamed2104(o.bgpPeers); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2011(o.interfaces); + checkUnnamed2105(o.interfaces); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2012(o.nats); + checkUnnamed2106(o.nats); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -18150,19 +19669,32 @@ buildCounterRouterAdvertisedIpRange--; } -buildUnnamed2013() { +buildUnnamed2107() { var o = new core.Map<core.String, api.RoutersScopedList>(); o["x"] = buildRoutersScopedList(); o["y"] = buildRoutersScopedList(); return o; } -checkUnnamed2013(core.Map<core.String, api.RoutersScopedList> o) { +checkUnnamed2107(core.Map<core.String, api.RoutersScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedList(o["x"]); checkRoutersScopedList(o["y"]); } +buildUnnamed2108() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2108(core.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 buildCounterRouterAggregatedListWarningData = 0; buildRouterAggregatedListWarningData() { var o = new api.RouterAggregatedListWarningData(); @@ -18184,14 +19716,14 @@ buildCounterRouterAggregatedListWarningData--; } -buildUnnamed2014() { +buildUnnamed2109() { var o = new core.List<api.RouterAggregatedListWarningData>(); o.add(buildRouterAggregatedListWarningData()); o.add(buildRouterAggregatedListWarningData()); return o; } -checkUnnamed2014(core.List<api.RouterAggregatedListWarningData> o) { +checkUnnamed2109(core.List<api.RouterAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAggregatedListWarningData(o[0]); checkRouterAggregatedListWarningData(o[1]); @@ -18203,7 +19735,7 @@ buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2014(); + o.data = buildUnnamed2109(); o.message = "foo"; } buildCounterRouterAggregatedListWarning--; @@ -18214,7 +19746,7 @@ buildCounterRouterAggregatedListWarning++; if (buildCounterRouterAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2014(o.data); + checkUnnamed2109(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouterAggregatedListWarning--; @@ -18226,10 +19758,11 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2013(); + o.items = buildUnnamed2107(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2108(); o.warning = buildRouterAggregatedListWarning(); } buildCounterRouterAggregatedList--; @@ -18240,36 +19773,37 @@ buildCounterRouterAggregatedList++; if (buildCounterRouterAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2013(o.items); + checkUnnamed2107(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2108(o.unreachables); checkRouterAggregatedListWarning(o.warning); } buildCounterRouterAggregatedList--; } -buildUnnamed2015() { +buildUnnamed2110() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2015(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')); } -buildUnnamed2016() { +buildUnnamed2111() { var o = new core.List<api.RouterAdvertisedIpRange>(); o.add(buildRouterAdvertisedIpRange()); o.add(buildRouterAdvertisedIpRange()); return o; } -checkUnnamed2016(core.List<api.RouterAdvertisedIpRange> o) { +checkUnnamed2111(core.List<api.RouterAdvertisedIpRange> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAdvertisedIpRange(o[0]); checkRouterAdvertisedIpRange(o[1]); @@ -18281,8 +19815,8 @@ buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { o.advertiseMode = "foo"; - o.advertisedGroups = buildUnnamed2015(); - o.advertisedIpRanges = buildUnnamed2016(); + o.advertisedGroups = buildUnnamed2110(); + o.advertisedIpRanges = buildUnnamed2111(); o.asn = 42; } buildCounterRouterBgp--; @@ -18293,34 +19827,34 @@ buildCounterRouterBgp++; if (buildCounterRouterBgp < 3) { unittest.expect(o.advertiseMode, unittest.equals('foo')); - checkUnnamed2015(o.advertisedGroups); - checkUnnamed2016(o.advertisedIpRanges); + checkUnnamed2110(o.advertisedGroups); + checkUnnamed2111(o.advertisedIpRanges); unittest.expect(o.asn, unittest.equals(42)); } buildCounterRouterBgp--; } -buildUnnamed2017() { +buildUnnamed2112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2017(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')); } -buildUnnamed2018() { +buildUnnamed2113() { var o = new core.List<api.RouterAdvertisedIpRange>(); o.add(buildRouterAdvertisedIpRange()); o.add(buildRouterAdvertisedIpRange()); return o; } -checkUnnamed2018(core.List<api.RouterAdvertisedIpRange> o) { +checkUnnamed2113(core.List<api.RouterAdvertisedIpRange> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterAdvertisedIpRange(o[0]); checkRouterAdvertisedIpRange(o[1]); @@ -18332,8 +19866,8 @@ buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { o.advertiseMode = "foo"; - o.advertisedGroups = buildUnnamed2017(); - o.advertisedIpRanges = buildUnnamed2018(); + o.advertisedGroups = buildUnnamed2112(); + o.advertisedIpRanges = buildUnnamed2113(); o.advertisedRoutePriority = 42; o.interfaceName = "foo"; o.ipAddress = "foo"; @@ -18350,8 +19884,8 @@ buildCounterRouterBgpPeer++; if (buildCounterRouterBgpPeer < 3) { unittest.expect(o.advertiseMode, unittest.equals('foo')); - checkUnnamed2017(o.advertisedGroups); - checkUnnamed2018(o.advertisedIpRanges); + checkUnnamed2112(o.advertisedGroups); + checkUnnamed2113(o.advertisedIpRanges); unittest.expect(o.advertisedRoutePriority, unittest.equals(42)); unittest.expect(o.interfaceName, unittest.equals('foo')); unittest.expect(o.ipAddress, unittest.equals('foo')); @@ -18390,14 +19924,14 @@ buildCounterRouterInterface--; } -buildUnnamed2019() { +buildUnnamed2114() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2019(core.List<api.Router> o) { +checkUnnamed2114(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -18424,14 +19958,14 @@ buildCounterRouterListWarningData--; } -buildUnnamed2020() { +buildUnnamed2115() { var o = new core.List<api.RouterListWarningData>(); o.add(buildRouterListWarningData()); o.add(buildRouterListWarningData()); return o; } -checkUnnamed2020(core.List<api.RouterListWarningData> o) { +checkUnnamed2115(core.List<api.RouterListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterListWarningData(o[0]); checkRouterListWarningData(o[1]); @@ -18443,7 +19977,7 @@ buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2020(); + o.data = buildUnnamed2115(); o.message = "foo"; } buildCounterRouterListWarning--; @@ -18454,7 +19988,7 @@ buildCounterRouterListWarning++; if (buildCounterRouterListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2020(o.data); + checkUnnamed2115(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRouterListWarning--; @@ -18466,7 +20000,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { o.id = "foo"; - o.items = buildUnnamed2019(); + o.items = buildUnnamed2114(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -18480,7 +20014,7 @@ buildCounterRouterList++; if (buildCounterRouterList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2019(o.items); + checkUnnamed2114(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -18489,40 +20023,40 @@ buildCounterRouterList--; } -buildUnnamed2021() { +buildUnnamed2116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2021(core.List<core.String> o) { +checkUnnamed2116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2022() { +buildUnnamed2117() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2022(core.List<core.String> o) { +checkUnnamed2117(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2023() { +buildUnnamed2118() { var o = new core.List<api.RouterNatSubnetworkToNat>(); o.add(buildRouterNatSubnetworkToNat()); o.add(buildRouterNatSubnetworkToNat()); return o; } -checkUnnamed2023(core.List<api.RouterNatSubnetworkToNat> o) { +checkUnnamed2118(core.List<api.RouterNatSubnetworkToNat> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterNatSubnetworkToNat(o[0]); checkRouterNatSubnetworkToNat(o[1]); @@ -18533,15 +20067,15 @@ var o = new api.RouterNat(); buildCounterRouterNat++; if (buildCounterRouterNat < 3) { - o.drainNatIps = buildUnnamed2021(); + o.drainNatIps = buildUnnamed2116(); o.icmpIdleTimeoutSec = 42; o.logConfig = buildRouterNatLogConfig(); o.minPortsPerVm = 42; o.name = "foo"; o.natIpAllocateOption = "foo"; - o.natIps = buildUnnamed2022(); + o.natIps = buildUnnamed2117(); o.sourceSubnetworkIpRangesToNat = "foo"; - o.subnetworks = buildUnnamed2023(); + o.subnetworks = buildUnnamed2118(); o.tcpEstablishedIdleTimeoutSec = 42; o.tcpTransitoryIdleTimeoutSec = 42; o.udpIdleTimeoutSec = 42; @@ -18553,15 +20087,15 @@ checkRouterNat(api.RouterNat o) { buildCounterRouterNat++; if (buildCounterRouterNat < 3) { - checkUnnamed2021(o.drainNatIps); + checkUnnamed2116(o.drainNatIps); unittest.expect(o.icmpIdleTimeoutSec, unittest.equals(42)); checkRouterNatLogConfig(o.logConfig); unittest.expect(o.minPortsPerVm, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.natIpAllocateOption, unittest.equals('foo')); - checkUnnamed2022(o.natIps); + checkUnnamed2117(o.natIps); unittest.expect(o.sourceSubnetworkIpRangesToNat, unittest.equals('foo')); - checkUnnamed2023(o.subnetworks); + checkUnnamed2118(o.subnetworks); unittest.expect(o.tcpEstablishedIdleTimeoutSec, unittest.equals(42)); unittest.expect(o.tcpTransitoryIdleTimeoutSec, unittest.equals(42)); unittest.expect(o.udpIdleTimeoutSec, unittest.equals(42)); @@ -18590,27 +20124,27 @@ buildCounterRouterNatLogConfig--; } -buildUnnamed2024() { +buildUnnamed2119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2024(core.List<core.String> o) { +checkUnnamed2119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2025() { +buildUnnamed2120() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2025(core.List<core.String> o) { +checkUnnamed2120(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -18622,8 +20156,8 @@ buildCounterRouterNatSubnetworkToNat++; if (buildCounterRouterNatSubnetworkToNat < 3) { o.name = "foo"; - o.secondaryIpRangeNames = buildUnnamed2024(); - o.sourceIpRangesToNat = buildUnnamed2025(); + o.secondaryIpRangeNames = buildUnnamed2119(); + o.sourceIpRangesToNat = buildUnnamed2120(); } buildCounterRouterNatSubnetworkToNat--; return o; @@ -18633,59 +20167,59 @@ buildCounterRouterNatSubnetworkToNat++; if (buildCounterRouterNatSubnetworkToNat < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2024(o.secondaryIpRangeNames); - checkUnnamed2025(o.sourceIpRangesToNat); + checkUnnamed2119(o.secondaryIpRangeNames); + checkUnnamed2120(o.sourceIpRangesToNat); } buildCounterRouterNatSubnetworkToNat--; } -buildUnnamed2026() { +buildUnnamed2121() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2026(core.List<api.Route> o) { +checkUnnamed2121(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2027() { +buildUnnamed2122() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2027(core.List<api.Route> o) { +checkUnnamed2122(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed2028() { +buildUnnamed2123() { var o = new core.List<api.RouterStatusBgpPeerStatus>(); o.add(buildRouterStatusBgpPeerStatus()); o.add(buildRouterStatusBgpPeerStatus()); return o; } -checkUnnamed2028(core.List<api.RouterStatusBgpPeerStatus> o) { +checkUnnamed2123(core.List<api.RouterStatusBgpPeerStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusBgpPeerStatus(o[0]); checkRouterStatusBgpPeerStatus(o[1]); } -buildUnnamed2029() { +buildUnnamed2124() { var o = new core.List<api.RouterStatusNatStatus>(); o.add(buildRouterStatusNatStatus()); o.add(buildRouterStatusNatStatus()); return o; } -checkUnnamed2029(core.List<api.RouterStatusNatStatus> o) { +checkUnnamed2124(core.List<api.RouterStatusNatStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRouterStatusNatStatus(o[0]); checkRouterStatusNatStatus(o[1]); @@ -18696,10 +20230,10 @@ var o = new api.RouterStatus(); buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - o.bestRoutes = buildUnnamed2026(); - o.bestRoutesForRouter = buildUnnamed2027(); - o.bgpPeerStatus = buildUnnamed2028(); - o.natStatus = buildUnnamed2029(); + o.bestRoutes = buildUnnamed2121(); + o.bestRoutesForRouter = buildUnnamed2122(); + o.bgpPeerStatus = buildUnnamed2123(); + o.natStatus = buildUnnamed2124(); o.network = "foo"; } buildCounterRouterStatus--; @@ -18709,23 +20243,23 @@ checkRouterStatus(api.RouterStatus o) { buildCounterRouterStatus++; if (buildCounterRouterStatus < 3) { - checkUnnamed2026(o.bestRoutes); - checkUnnamed2027(o.bestRoutesForRouter); - checkUnnamed2028(o.bgpPeerStatus); - checkUnnamed2029(o.natStatus); + checkUnnamed2121(o.bestRoutes); + checkUnnamed2122(o.bestRoutesForRouter); + checkUnnamed2123(o.bgpPeerStatus); + checkUnnamed2124(o.natStatus); unittest.expect(o.network, unittest.equals('foo')); } buildCounterRouterStatus--; } -buildUnnamed2030() { +buildUnnamed2125() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed2030(core.List<api.Route> o) { +checkUnnamed2125(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); @@ -18736,7 +20270,7 @@ var o = new api.RouterStatusBgpPeerStatus(); buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - o.advertisedRoutes = buildUnnamed2030(); + o.advertisedRoutes = buildUnnamed2125(); o.ipAddress = "foo"; o.linkedVpnTunnel = "foo"; o.name = "foo"; @@ -18754,7 +20288,7 @@ checkRouterStatusBgpPeerStatus(api.RouterStatusBgpPeerStatus o) { buildCounterRouterStatusBgpPeerStatus++; if (buildCounterRouterStatusBgpPeerStatus < 3) { - checkUnnamed2030(o.advertisedRoutes); + checkUnnamed2125(o.advertisedRoutes); unittest.expect(o.ipAddress, unittest.equals('foo')); unittest.expect(o.linkedVpnTunnel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -18768,66 +20302,66 @@ buildCounterRouterStatusBgpPeerStatus--; } -buildUnnamed2031() { +buildUnnamed2126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2031(core.List<core.String> o) { +checkUnnamed2126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2032() { +buildUnnamed2127() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2032(core.List<core.String> o) { +checkUnnamed2127(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2033() { +buildUnnamed2128() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2033(core.List<core.String> o) { +checkUnnamed2128(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2034() { +buildUnnamed2129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2034(core.List<core.String> o) { +checkUnnamed2129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2035() { +buildUnnamed2130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2035(core.List<core.String> o) { +checkUnnamed2130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -18838,14 +20372,14 @@ var o = new api.RouterStatusNatStatus(); buildCounterRouterStatusNatStatus++; if (buildCounterRouterStatusNatStatus < 3) { - o.autoAllocatedNatIps = buildUnnamed2031(); - o.drainAutoAllocatedNatIps = buildUnnamed2032(); - o.drainUserAllocatedNatIps = buildUnnamed2033(); + o.autoAllocatedNatIps = buildUnnamed2126(); + o.drainAutoAllocatedNatIps = buildUnnamed2127(); + o.drainUserAllocatedNatIps = buildUnnamed2128(); o.minExtraNatIpsNeeded = 42; o.name = "foo"; o.numVmEndpointsWithNatMappings = 42; - o.userAllocatedNatIpResources = buildUnnamed2034(); - o.userAllocatedNatIps = buildUnnamed2035(); + o.userAllocatedNatIpResources = buildUnnamed2129(); + o.userAllocatedNatIps = buildUnnamed2130(); } buildCounterRouterStatusNatStatus--; return o; @@ -18854,14 +20388,14 @@ checkRouterStatusNatStatus(api.RouterStatusNatStatus o) { buildCounterRouterStatusNatStatus++; if (buildCounterRouterStatusNatStatus < 3) { - checkUnnamed2031(o.autoAllocatedNatIps); - checkUnnamed2032(o.drainAutoAllocatedNatIps); - checkUnnamed2033(o.drainUserAllocatedNatIps); + checkUnnamed2126(o.autoAllocatedNatIps); + checkUnnamed2127(o.drainAutoAllocatedNatIps); + checkUnnamed2128(o.drainUserAllocatedNatIps); unittest.expect(o.minExtraNatIpsNeeded, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.numVmEndpointsWithNatMappings, unittest.equals(42)); - checkUnnamed2034(o.userAllocatedNatIpResources); - checkUnnamed2035(o.userAllocatedNatIps); + checkUnnamed2129(o.userAllocatedNatIpResources); + checkUnnamed2130(o.userAllocatedNatIps); } buildCounterRouterStatusNatStatus--; } @@ -18906,14 +20440,14 @@ buildCounterRoutersPreviewResponse--; } -buildUnnamed2036() { +buildUnnamed2131() { var o = new core.List<api.Router>(); o.add(buildRouter()); o.add(buildRouter()); return o; } -checkUnnamed2036(core.List<api.Router> o) { +checkUnnamed2131(core.List<api.Router> o) { unittest.expect(o, unittest.hasLength(2)); checkRouter(o[0]); checkRouter(o[1]); @@ -18940,14 +20474,14 @@ buildCounterRoutersScopedListWarningData--; } -buildUnnamed2037() { +buildUnnamed2132() { var o = new core.List<api.RoutersScopedListWarningData>(); o.add(buildRoutersScopedListWarningData()); o.add(buildRoutersScopedListWarningData()); return o; } -checkUnnamed2037(core.List<api.RoutersScopedListWarningData> o) { +checkUnnamed2132(core.List<api.RoutersScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkRoutersScopedListWarningData(o[0]); checkRoutersScopedListWarningData(o[1]); @@ -18959,7 +20493,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2037(); + o.data = buildUnnamed2132(); o.message = "foo"; } buildCounterRoutersScopedListWarning--; @@ -18970,7 +20504,7 @@ buildCounterRoutersScopedListWarning++; if (buildCounterRoutersScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2037(o.data); + checkUnnamed2132(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterRoutersScopedListWarning--; @@ -18981,7 +20515,7 @@ var o = new api.RoutersScopedList(); buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - o.routers = buildUnnamed2036(); + o.routers = buildUnnamed2131(); o.warning = buildRoutersScopedListWarning(); } buildCounterRoutersScopedList--; @@ -18991,72 +20525,72 @@ checkRoutersScopedList(api.RoutersScopedList o) { buildCounterRoutersScopedList++; if (buildCounterRoutersScopedList < 3) { - checkUnnamed2036(o.routers); + checkUnnamed2131(o.routers); checkRoutersScopedListWarning(o.warning); } buildCounterRoutersScopedList--; } -buildUnnamed2038() { +buildUnnamed2133() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed2038(core.List<api.Condition> o) { +checkUnnamed2133(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed2039() { +buildUnnamed2134() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2039(core.List<core.String> 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')); } -buildUnnamed2040() { +buildUnnamed2135() { var o = new core.List<api.LogConfig>(); o.add(buildLogConfig()); o.add(buildLogConfig()); return o; } -checkUnnamed2040(core.List<api.LogConfig> o) { +checkUnnamed2135(core.List<api.LogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkLogConfig(o[0]); checkLogConfig(o[1]); } -buildUnnamed2041() { +buildUnnamed2136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2041(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')); } -buildUnnamed2042() { +buildUnnamed2137() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2042(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')); @@ -19068,12 +20602,12 @@ buildCounterRule++; if (buildCounterRule < 3) { o.action = "foo"; - o.conditions = buildUnnamed2038(); + o.conditions = buildUnnamed2133(); o.description = "foo"; - o.ins = buildUnnamed2039(); - o.logConfigs = buildUnnamed2040(); - o.notIns = buildUnnamed2041(); - o.permissions = buildUnnamed2042(); + o.ins = buildUnnamed2134(); + o.logConfigs = buildUnnamed2135(); + o.notIns = buildUnnamed2136(); + o.permissions = buildUnnamed2137(); } buildCounterRule--; return o; @@ -19083,12 +20617,12 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2038(o.conditions); + checkUnnamed2133(o.conditions); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2039(o.ins); - checkUnnamed2040(o.logConfigs); - checkUnnamed2041(o.notIns); - checkUnnamed2042(o.permissions); + checkUnnamed2134(o.ins); + checkUnnamed2135(o.logConfigs); + checkUnnamed2136(o.notIns); + checkUnnamed2137(o.permissions); } buildCounterRule--; } @@ -19122,14 +20656,14 @@ buildCounterSSLHealthCheck--; } -buildUnnamed2043() { +buildUnnamed2138() { var o = new core.List<api.SchedulingNodeAffinity>(); o.add(buildSchedulingNodeAffinity()); o.add(buildSchedulingNodeAffinity()); return o; } -checkUnnamed2043(core.List<api.SchedulingNodeAffinity> o) { +checkUnnamed2138(core.List<api.SchedulingNodeAffinity> o) { unittest.expect(o, unittest.hasLength(2)); checkSchedulingNodeAffinity(o[0]); checkSchedulingNodeAffinity(o[1]); @@ -19141,7 +20675,8 @@ buildCounterScheduling++; if (buildCounterScheduling < 3) { o.automaticRestart = true; - o.nodeAffinities = buildUnnamed2043(); + o.minNodeCpus = 42; + o.nodeAffinities = buildUnnamed2138(); o.onHostMaintenance = "foo"; o.preemptible = true; } @@ -19153,21 +20688,22 @@ buildCounterScheduling++; if (buildCounterScheduling < 3) { unittest.expect(o.automaticRestart, unittest.isTrue); - checkUnnamed2043(o.nodeAffinities); + unittest.expect(o.minNodeCpus, unittest.equals(42)); + checkUnnamed2138(o.nodeAffinities); unittest.expect(o.onHostMaintenance, unittest.equals('foo')); unittest.expect(o.preemptible, unittest.isTrue); } buildCounterScheduling--; } -buildUnnamed2044() { +buildUnnamed2139() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2044(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')); @@ -19180,7 +20716,7 @@ if (buildCounterSchedulingNodeAffinity < 3) { o.key = "foo"; o.operator = "foo"; - o.values = buildUnnamed2044(); + o.values = buildUnnamed2139(); } buildCounterSchedulingNodeAffinity--; return o; @@ -19191,11 +20727,32 @@ if (buildCounterSchedulingNodeAffinity < 3) { unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed2044(o.values); + checkUnnamed2139(o.values); } buildCounterSchedulingNodeAffinity--; } +core.int buildCounterScreenshot = 0; +buildScreenshot() { + var o = new api.Screenshot(); + buildCounterScreenshot++; + if (buildCounterScreenshot < 3) { + o.contents = "foo"; + o.kind = "foo"; + } + buildCounterScreenshot--; + return o; +} + +checkScreenshot(api.Screenshot o) { + buildCounterScreenshot++; + if (buildCounterScreenshot < 3) { + unittest.expect(o.contents, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterScreenshot--; +} + core.int buildCounterSecurityPoliciesListPreconfiguredExpressionSetsResponse = 0; buildSecurityPoliciesListPreconfiguredExpressionSetsResponse() { @@ -19236,14 +20793,14 @@ buildCounterSecurityPoliciesWafConfig--; } -buildUnnamed2045() { +buildUnnamed2140() { var o = new core.List<api.SecurityPolicyRule>(); o.add(buildSecurityPolicyRule()); o.add(buildSecurityPolicyRule()); return o; } -checkUnnamed2045(core.List<api.SecurityPolicyRule> o) { +checkUnnamed2140(core.List<api.SecurityPolicyRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicyRule(o[0]); checkSecurityPolicyRule(o[1]); @@ -19260,7 +20817,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.rules = buildUnnamed2045(); + o.rules = buildUnnamed2140(); o.selfLink = "foo"; } buildCounterSecurityPolicy--; @@ -19276,20 +20833,20 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2045(o.rules); + checkUnnamed2140(o.rules); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterSecurityPolicy--; } -buildUnnamed2046() { +buildUnnamed2141() { var o = new core.List<api.SecurityPolicy>(); o.add(buildSecurityPolicy()); o.add(buildSecurityPolicy()); return o; } -checkUnnamed2046(core.List<api.SecurityPolicy> o) { +checkUnnamed2141(core.List<api.SecurityPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicy(o[0]); checkSecurityPolicy(o[1]); @@ -19316,14 +20873,14 @@ buildCounterSecurityPolicyListWarningData--; } -buildUnnamed2047() { +buildUnnamed2142() { var o = new core.List<api.SecurityPolicyListWarningData>(); o.add(buildSecurityPolicyListWarningData()); o.add(buildSecurityPolicyListWarningData()); return o; } -checkUnnamed2047(core.List<api.SecurityPolicyListWarningData> o) { +checkUnnamed2142(core.List<api.SecurityPolicyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSecurityPolicyListWarningData(o[0]); checkSecurityPolicyListWarningData(o[1]); @@ -19335,7 +20892,7 @@ buildCounterSecurityPolicyListWarning++; if (buildCounterSecurityPolicyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2047(); + o.data = buildUnnamed2142(); o.message = "foo"; } buildCounterSecurityPolicyListWarning--; @@ -19346,7 +20903,7 @@ buildCounterSecurityPolicyListWarning++; if (buildCounterSecurityPolicyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2047(o.data); + checkUnnamed2142(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSecurityPolicyListWarning--; @@ -19358,7 +20915,7 @@ buildCounterSecurityPolicyList++; if (buildCounterSecurityPolicyList < 3) { o.id = "foo"; - o.items = buildUnnamed2046(); + o.items = buildUnnamed2141(); o.kind = "foo"; o.nextPageToken = "foo"; o.warning = buildSecurityPolicyListWarning(); @@ -19371,7 +20928,7 @@ buildCounterSecurityPolicyList++; if (buildCounterSecurityPolicyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2046(o.items); + checkUnnamed2141(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkSecurityPolicyListWarning(o.warning); @@ -19450,14 +21007,14 @@ buildCounterSecurityPolicyRuleMatcher--; } -buildUnnamed2048() { +buildUnnamed2143() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2048(core.List<core.String> o) { +checkUnnamed2143(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19468,7 +21025,7 @@ var o = new api.SecurityPolicyRuleMatcherConfig(); buildCounterSecurityPolicyRuleMatcherConfig++; if (buildCounterSecurityPolicyRuleMatcherConfig < 3) { - o.srcIpRanges = buildUnnamed2048(); + o.srcIpRanges = buildUnnamed2143(); } buildCounterSecurityPolicyRuleMatcherConfig--; return o; @@ -19477,7 +21034,7 @@ checkSecurityPolicyRuleMatcherConfig(api.SecurityPolicyRuleMatcherConfig o) { buildCounterSecurityPolicyRuleMatcherConfig++; if (buildCounterSecurityPolicyRuleMatcherConfig < 3) { - checkUnnamed2048(o.srcIpRanges); + checkUnnamed2143(o.srcIpRanges); } buildCounterSecurityPolicyRuleMatcherConfig--; } @@ -19528,14 +21085,14 @@ buildCounterServerBinding--; } -buildUnnamed2049() { +buildUnnamed2144() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2049(core.List<core.String> o) { +checkUnnamed2144(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19547,7 +21104,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { o.email = "foo"; - o.scopes = buildUnnamed2049(); + o.scopes = buildUnnamed2144(); } buildCounterServiceAccount--; return o; @@ -19557,7 +21114,7 @@ buildCounterServiceAccount++; if (buildCounterServiceAccount < 3) { unittest.expect(o.email, unittest.equals('foo')); - checkUnnamed2049(o.scopes); + checkUnnamed2144(o.scopes); } buildCounterServiceAccount--; } @@ -19669,53 +21226,53 @@ buildCounterSignedUrlKey--; } -buildUnnamed2050() { +buildUnnamed2145() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2050(core.Map<core.String, core.String> o) { +checkUnnamed2145(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')); } -buildUnnamed2051() { +buildUnnamed2146() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2051(core.List<core.String> o) { +checkUnnamed2146(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2052() { +buildUnnamed2147() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2052(core.List<core.String> o) { +checkUnnamed2147(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2053() { +buildUnnamed2148() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2053(core.List<core.String> o) { +checkUnnamed2148(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19734,9 +21291,9 @@ o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2050(); - o.licenseCodes = buildUnnamed2051(); - o.licenses = buildUnnamed2052(); + o.labels = buildUnnamed2145(); + o.licenseCodes = buildUnnamed2146(); + o.licenses = buildUnnamed2147(); o.name = "foo"; o.selfLink = "foo"; o.snapshotEncryptionKey = buildCustomerEncryptionKey(); @@ -19746,7 +21303,7 @@ o.status = "foo"; o.storageBytes = "foo"; o.storageBytesStatus = "foo"; - o.storageLocations = buildUnnamed2053(); + o.storageLocations = buildUnnamed2148(); } buildCounterSnapshot--; return o; @@ -19763,9 +21320,9 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2050(o.labels); - checkUnnamed2051(o.licenseCodes); - checkUnnamed2052(o.licenses); + checkUnnamed2145(o.labels); + checkUnnamed2146(o.licenseCodes); + checkUnnamed2147(o.licenses); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkCustomerEncryptionKey(o.snapshotEncryptionKey); @@ -19775,19 +21332,19 @@ unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.storageBytes, unittest.equals('foo')); unittest.expect(o.storageBytesStatus, unittest.equals('foo')); - checkUnnamed2053(o.storageLocations); + checkUnnamed2148(o.storageLocations); } buildCounterSnapshot--; } -buildUnnamed2054() { +buildUnnamed2149() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed2054(core.List<api.Snapshot> o) { +checkUnnamed2149(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -19814,14 +21371,14 @@ buildCounterSnapshotListWarningData--; } -buildUnnamed2055() { +buildUnnamed2150() { var o = new core.List<api.SnapshotListWarningData>(); o.add(buildSnapshotListWarningData()); o.add(buildSnapshotListWarningData()); return o; } -checkUnnamed2055(core.List<api.SnapshotListWarningData> o) { +checkUnnamed2150(core.List<api.SnapshotListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshotListWarningData(o[0]); checkSnapshotListWarningData(o[1]); @@ -19833,7 +21390,7 @@ buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2055(); + o.data = buildUnnamed2150(); o.message = "foo"; } buildCounterSnapshotListWarning--; @@ -19844,7 +21401,7 @@ buildCounterSnapshotListWarning++; if (buildCounterSnapshotListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2055(o.data); + checkUnnamed2150(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSnapshotListWarning--; @@ -19856,7 +21413,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { o.id = "foo"; - o.items = buildUnnamed2054(); + o.items = buildUnnamed2149(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -19870,7 +21427,7 @@ buildCounterSnapshotList++; if (buildCounterSnapshotList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2054(o.items); + checkUnnamed2149(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -19879,14 +21436,14 @@ buildCounterSnapshotList--; } -buildUnnamed2056() { +buildUnnamed2151() { var o = new core.List<api.DiskInstantiationConfig>(); o.add(buildDiskInstantiationConfig()); o.add(buildDiskInstantiationConfig()); return o; } -checkUnnamed2056(core.List<api.DiskInstantiationConfig> o) { +checkUnnamed2151(core.List<api.DiskInstantiationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkDiskInstantiationConfig(o[0]); checkDiskInstantiationConfig(o[1]); @@ -19897,7 +21454,7 @@ var o = new api.SourceInstanceParams(); buildCounterSourceInstanceParams++; if (buildCounterSourceInstanceParams < 3) { - o.diskConfigs = buildUnnamed2056(); + o.diskConfigs = buildUnnamed2151(); } buildCounterSourceInstanceParams--; return o; @@ -19906,19 +21463,19 @@ checkSourceInstanceParams(api.SourceInstanceParams o) { buildCounterSourceInstanceParams++; if (buildCounterSourceInstanceParams < 3) { - checkUnnamed2056(o.diskConfigs); + checkUnnamed2151(o.diskConfigs); } buildCounterSourceInstanceParams--; } -buildUnnamed2057() { +buildUnnamed2152() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2057(core.List<core.String> o) { +checkUnnamed2152(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -19941,7 +21498,7 @@ o.region = "foo"; o.selfLink = "foo"; o.selfManaged = buildSslCertificateSelfManagedSslCertificate(); - o.subjectAlternativeNames = buildUnnamed2057(); + o.subjectAlternativeNames = buildUnnamed2152(); o.type = "foo"; } buildCounterSslCertificate--; @@ -19963,25 +21520,38 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); checkSslCertificateSelfManagedSslCertificate(o.selfManaged); - checkUnnamed2057(o.subjectAlternativeNames); + checkUnnamed2152(o.subjectAlternativeNames); unittest.expect(o.type, unittest.equals('foo')); } buildCounterSslCertificate--; } -buildUnnamed2058() { +buildUnnamed2153() { var o = new core.Map<core.String, api.SslCertificatesScopedList>(); o["x"] = buildSslCertificatesScopedList(); o["y"] = buildSslCertificatesScopedList(); return o; } -checkUnnamed2058(core.Map<core.String, api.SslCertificatesScopedList> o) { +checkUnnamed2153(core.Map<core.String, api.SslCertificatesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificatesScopedList(o["x"]); checkSslCertificatesScopedList(o["y"]); } +buildUnnamed2154() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterSslCertificateAggregatedListWarningData = 0; buildSslCertificateAggregatedListWarningData() { var o = new api.SslCertificateAggregatedListWarningData(); @@ -20004,14 +21574,14 @@ buildCounterSslCertificateAggregatedListWarningData--; } -buildUnnamed2059() { +buildUnnamed2155() { var o = new core.List<api.SslCertificateAggregatedListWarningData>(); o.add(buildSslCertificateAggregatedListWarningData()); o.add(buildSslCertificateAggregatedListWarningData()); return o; } -checkUnnamed2059(core.List<api.SslCertificateAggregatedListWarningData> o) { +checkUnnamed2155(core.List<api.SslCertificateAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificateAggregatedListWarningData(o[0]); checkSslCertificateAggregatedListWarningData(o[1]); @@ -20023,7 +21593,7 @@ buildCounterSslCertificateAggregatedListWarning++; if (buildCounterSslCertificateAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2059(); + o.data = buildUnnamed2155(); o.message = "foo"; } buildCounterSslCertificateAggregatedListWarning--; @@ -20035,7 +21605,7 @@ buildCounterSslCertificateAggregatedListWarning++; if (buildCounterSslCertificateAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2059(o.data); + checkUnnamed2155(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslCertificateAggregatedListWarning--; @@ -20047,10 +21617,11 @@ buildCounterSslCertificateAggregatedList++; if (buildCounterSslCertificateAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2058(); + o.items = buildUnnamed2153(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2154(); o.warning = buildSslCertificateAggregatedListWarning(); } buildCounterSslCertificateAggregatedList--; @@ -20061,23 +21632,24 @@ buildCounterSslCertificateAggregatedList++; if (buildCounterSslCertificateAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2058(o.items); + checkUnnamed2153(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2154(o.unreachables); checkSslCertificateAggregatedListWarning(o.warning); } buildCounterSslCertificateAggregatedList--; } -buildUnnamed2060() { +buildUnnamed2156() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2060(core.List<api.SslCertificate> o) { +checkUnnamed2156(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -20104,14 +21676,14 @@ buildCounterSslCertificateListWarningData--; } -buildUnnamed2061() { +buildUnnamed2157() { var o = new core.List<api.SslCertificateListWarningData>(); o.add(buildSslCertificateListWarningData()); o.add(buildSslCertificateListWarningData()); return o; } -checkUnnamed2061(core.List<api.SslCertificateListWarningData> o) { +checkUnnamed2157(core.List<api.SslCertificateListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificateListWarningData(o[0]); checkSslCertificateListWarningData(o[1]); @@ -20123,7 +21695,7 @@ buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2061(); + o.data = buildUnnamed2157(); o.message = "foo"; } buildCounterSslCertificateListWarning--; @@ -20134,7 +21706,7 @@ buildCounterSslCertificateListWarning++; if (buildCounterSslCertificateListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2061(o.data); + checkUnnamed2157(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslCertificateListWarning--; @@ -20146,7 +21718,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { o.id = "foo"; - o.items = buildUnnamed2060(); + o.items = buildUnnamed2156(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -20160,7 +21732,7 @@ buildCounterSslCertificateList++; if (buildCounterSslCertificateList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2060(o.items); + checkUnnamed2156(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -20169,27 +21741,27 @@ buildCounterSslCertificateList--; } -buildUnnamed2062() { +buildUnnamed2158() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2062(core.Map<core.String, core.String> o) { +checkUnnamed2158(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')); } -buildUnnamed2063() { +buildUnnamed2159() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2063(core.List<core.String> o) { +checkUnnamed2159(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20200,8 +21772,8 @@ var o = new api.SslCertificateManagedSslCertificate(); buildCounterSslCertificateManagedSslCertificate++; if (buildCounterSslCertificateManagedSslCertificate < 3) { - o.domainStatus = buildUnnamed2062(); - o.domains = buildUnnamed2063(); + o.domainStatus = buildUnnamed2158(); + o.domains = buildUnnamed2159(); o.status = "foo"; } buildCounterSslCertificateManagedSslCertificate--; @@ -20212,8 +21784,8 @@ api.SslCertificateManagedSslCertificate o) { buildCounterSslCertificateManagedSslCertificate++; if (buildCounterSslCertificateManagedSslCertificate < 3) { - checkUnnamed2062(o.domainStatus); - checkUnnamed2063(o.domains); + checkUnnamed2158(o.domainStatus); + checkUnnamed2159(o.domains); unittest.expect(o.status, unittest.equals('foo')); } buildCounterSslCertificateManagedSslCertificate--; @@ -20241,14 +21813,14 @@ buildCounterSslCertificateSelfManagedSslCertificate--; } -buildUnnamed2064() { +buildUnnamed2160() { var o = new core.List<api.SslCertificate>(); o.add(buildSslCertificate()); o.add(buildSslCertificate()); return o; } -checkUnnamed2064(core.List<api.SslCertificate> o) { +checkUnnamed2160(core.List<api.SslCertificate> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificate(o[0]); checkSslCertificate(o[1]); @@ -20276,14 +21848,14 @@ buildCounterSslCertificatesScopedListWarningData--; } -buildUnnamed2065() { +buildUnnamed2161() { var o = new core.List<api.SslCertificatesScopedListWarningData>(); o.add(buildSslCertificatesScopedListWarningData()); o.add(buildSslCertificatesScopedListWarningData()); return o; } -checkUnnamed2065(core.List<api.SslCertificatesScopedListWarningData> o) { +checkUnnamed2161(core.List<api.SslCertificatesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslCertificatesScopedListWarningData(o[0]); checkSslCertificatesScopedListWarningData(o[1]); @@ -20295,7 +21867,7 @@ buildCounterSslCertificatesScopedListWarning++; if (buildCounterSslCertificatesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2065(); + o.data = buildUnnamed2161(); o.message = "foo"; } buildCounterSslCertificatesScopedListWarning--; @@ -20306,7 +21878,7 @@ buildCounterSslCertificatesScopedListWarning++; if (buildCounterSslCertificatesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2065(o.data); + checkUnnamed2161(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslCertificatesScopedListWarning--; @@ -20317,7 +21889,7 @@ var o = new api.SslCertificatesScopedList(); buildCounterSslCertificatesScopedList++; if (buildCounterSslCertificatesScopedList < 3) { - o.sslCertificates = buildUnnamed2064(); + o.sslCertificates = buildUnnamed2160(); o.warning = buildSslCertificatesScopedListWarning(); } buildCounterSslCertificatesScopedList--; @@ -20327,20 +21899,20 @@ checkSslCertificatesScopedList(api.SslCertificatesScopedList o) { buildCounterSslCertificatesScopedList++; if (buildCounterSslCertificatesScopedList < 3) { - checkUnnamed2064(o.sslCertificates); + checkUnnamed2160(o.sslCertificates); checkSslCertificatesScopedListWarning(o.warning); } buildCounterSslCertificatesScopedList--; } -buildUnnamed2066() { +buildUnnamed2162() { var o = new core.List<api.SslPolicy>(); o.add(buildSslPolicy()); o.add(buildSslPolicy()); return o; } -checkUnnamed2066(core.List<api.SslPolicy> o) { +checkUnnamed2162(core.List<api.SslPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicy(o[0]); checkSslPolicy(o[1]); @@ -20367,14 +21939,14 @@ buildCounterSslPoliciesListWarningData--; } -buildUnnamed2067() { +buildUnnamed2163() { var o = new core.List<api.SslPoliciesListWarningData>(); o.add(buildSslPoliciesListWarningData()); o.add(buildSslPoliciesListWarningData()); return o; } -checkUnnamed2067(core.List<api.SslPoliciesListWarningData> o) { +checkUnnamed2163(core.List<api.SslPoliciesListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslPoliciesListWarningData(o[0]); checkSslPoliciesListWarningData(o[1]); @@ -20386,7 +21958,7 @@ buildCounterSslPoliciesListWarning++; if (buildCounterSslPoliciesListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2067(); + o.data = buildUnnamed2163(); o.message = "foo"; } buildCounterSslPoliciesListWarning--; @@ -20397,7 +21969,7 @@ buildCounterSslPoliciesListWarning++; if (buildCounterSslPoliciesListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2067(o.data); + checkUnnamed2163(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslPoliciesListWarning--; @@ -20409,7 +21981,7 @@ buildCounterSslPoliciesList++; if (buildCounterSslPoliciesList < 3) { o.id = "foo"; - o.items = buildUnnamed2066(); + o.items = buildUnnamed2162(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -20423,7 +21995,7 @@ buildCounterSslPoliciesList++; if (buildCounterSslPoliciesList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2066(o.items); + checkUnnamed2162(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -20432,14 +22004,14 @@ buildCounterSslPoliciesList--; } -buildUnnamed2068() { +buildUnnamed2164() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2068(core.List<core.String> o) { +checkUnnamed2164(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20450,7 +22022,7 @@ var o = new api.SslPoliciesListAvailableFeaturesResponse(); buildCounterSslPoliciesListAvailableFeaturesResponse++; if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { - o.features = buildUnnamed2068(); + o.features = buildUnnamed2164(); } buildCounterSslPoliciesListAvailableFeaturesResponse--; return o; @@ -20460,32 +22032,32 @@ api.SslPoliciesListAvailableFeaturesResponse o) { buildCounterSslPoliciesListAvailableFeaturesResponse++; if (buildCounterSslPoliciesListAvailableFeaturesResponse < 3) { - checkUnnamed2068(o.features); + checkUnnamed2164(o.features); } buildCounterSslPoliciesListAvailableFeaturesResponse--; } -buildUnnamed2069() { +buildUnnamed2165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2069(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')); } -buildUnnamed2070() { +buildUnnamed2166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2070(core.List<core.String> o) { +checkUnnamed2166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20512,14 +22084,14 @@ buildCounterSslPolicyWarningsData--; } -buildUnnamed2071() { +buildUnnamed2167() { var o = new core.List<api.SslPolicyWarningsData>(); o.add(buildSslPolicyWarningsData()); o.add(buildSslPolicyWarningsData()); return o; } -checkUnnamed2071(core.List<api.SslPolicyWarningsData> o) { +checkUnnamed2167(core.List<api.SslPolicyWarningsData> o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicyWarningsData(o[0]); checkSslPolicyWarningsData(o[1]); @@ -20531,7 +22103,7 @@ buildCounterSslPolicyWarnings++; if (buildCounterSslPolicyWarnings < 3) { o.code = "foo"; - o.data = buildUnnamed2071(); + o.data = buildUnnamed2167(); o.message = "foo"; } buildCounterSslPolicyWarnings--; @@ -20542,20 +22114,20 @@ buildCounterSslPolicyWarnings++; if (buildCounterSslPolicyWarnings < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2071(o.data); + checkUnnamed2167(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSslPolicyWarnings--; } -buildUnnamed2072() { +buildUnnamed2168() { var o = new core.List<api.SslPolicyWarnings>(); o.add(buildSslPolicyWarnings()); o.add(buildSslPolicyWarnings()); return o; } -checkUnnamed2072(core.List<api.SslPolicyWarnings> o) { +checkUnnamed2168(core.List<api.SslPolicyWarnings> o) { unittest.expect(o, unittest.hasLength(2)); checkSslPolicyWarnings(o[0]); checkSslPolicyWarnings(o[1]); @@ -20567,9 +22139,9 @@ buildCounterSslPolicy++; if (buildCounterSslPolicy < 3) { o.creationTimestamp = "foo"; - o.customFeatures = buildUnnamed2069(); + o.customFeatures = buildUnnamed2165(); o.description = "foo"; - o.enabledFeatures = buildUnnamed2070(); + o.enabledFeatures = buildUnnamed2166(); o.fingerprint = "foo"; o.id = "foo"; o.kind = "foo"; @@ -20577,7 +22149,7 @@ o.name = "foo"; o.profile = "foo"; o.selfLink = "foo"; - o.warnings = buildUnnamed2072(); + o.warnings = buildUnnamed2168(); } buildCounterSslPolicy--; return o; @@ -20587,9 +22159,9 @@ buildCounterSslPolicy++; if (buildCounterSslPolicy < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); - checkUnnamed2069(o.customFeatures); + checkUnnamed2165(o.customFeatures); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2070(o.enabledFeatures); + checkUnnamed2166(o.enabledFeatures); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -20597,7 +22169,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.profile, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2072(o.warnings); + checkUnnamed2168(o.warnings); } buildCounterSslPolicy--; } @@ -20621,14 +22193,87 @@ buildCounterSslPolicyReference--; } -buildUnnamed2073() { +core.int buildCounterStatefulPolicy = 0; +buildStatefulPolicy() { + var o = new api.StatefulPolicy(); + buildCounterStatefulPolicy++; + if (buildCounterStatefulPolicy < 3) { + o.preservedState = buildStatefulPolicyPreservedState(); + } + buildCounterStatefulPolicy--; + return o; +} + +checkStatefulPolicy(api.StatefulPolicy o) { + buildCounterStatefulPolicy++; + if (buildCounterStatefulPolicy < 3) { + checkStatefulPolicyPreservedState(o.preservedState); + } + buildCounterStatefulPolicy--; +} + +buildUnnamed2169() { + var o = + new core.Map<core.String, api.StatefulPolicyPreservedStateDiskDevice>(); + o["x"] = buildStatefulPolicyPreservedStateDiskDevice(); + o["y"] = buildStatefulPolicyPreservedStateDiskDevice(); + return o; +} + +checkUnnamed2169( + core.Map<core.String, api.StatefulPolicyPreservedStateDiskDevice> o) { + unittest.expect(o, unittest.hasLength(2)); + checkStatefulPolicyPreservedStateDiskDevice(o["x"]); + checkStatefulPolicyPreservedStateDiskDevice(o["y"]); +} + +core.int buildCounterStatefulPolicyPreservedState = 0; +buildStatefulPolicyPreservedState() { + var o = new api.StatefulPolicyPreservedState(); + buildCounterStatefulPolicyPreservedState++; + if (buildCounterStatefulPolicyPreservedState < 3) { + o.disks = buildUnnamed2169(); + } + buildCounterStatefulPolicyPreservedState--; + return o; +} + +checkStatefulPolicyPreservedState(api.StatefulPolicyPreservedState o) { + buildCounterStatefulPolicyPreservedState++; + if (buildCounterStatefulPolicyPreservedState < 3) { + checkUnnamed2169(o.disks); + } + buildCounterStatefulPolicyPreservedState--; +} + +core.int buildCounterStatefulPolicyPreservedStateDiskDevice = 0; +buildStatefulPolicyPreservedStateDiskDevice() { + var o = new api.StatefulPolicyPreservedStateDiskDevice(); + buildCounterStatefulPolicyPreservedStateDiskDevice++; + if (buildCounterStatefulPolicyPreservedStateDiskDevice < 3) { + o.autoDelete = "foo"; + } + buildCounterStatefulPolicyPreservedStateDiskDevice--; + return o; +} + +checkStatefulPolicyPreservedStateDiskDevice( + api.StatefulPolicyPreservedStateDiskDevice o) { + buildCounterStatefulPolicyPreservedStateDiskDevice++; + if (buildCounterStatefulPolicyPreservedStateDiskDevice < 3) { + unittest.expect(o.autoDelete, unittest.equals('foo')); + } + buildCounterStatefulPolicyPreservedStateDiskDevice--; +} + +buildUnnamed2170() { var o = new core.List<api.SubnetworkSecondaryRange>(); o.add(buildSubnetworkSecondaryRange()); o.add(buildSubnetworkSecondaryRange()); return o; } -checkUnnamed2073(core.List<api.SubnetworkSecondaryRange> o) { +checkUnnamed2170(core.List<api.SubnetworkSecondaryRange> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkSecondaryRange(o[0]); checkSubnetworkSecondaryRange(o[1]); @@ -20646,15 +22291,17 @@ o.gatewayAddress = "foo"; o.id = "foo"; o.ipCidrRange = "foo"; + o.ipv6CidrRange = "foo"; o.kind = "foo"; o.logConfig = buildSubnetworkLogConfig(); o.name = "foo"; o.network = "foo"; o.privateIpGoogleAccess = true; + o.privateIpv6GoogleAccess = "foo"; o.purpose = "foo"; o.region = "foo"; o.role = "foo"; - o.secondaryIpRanges = buildUnnamed2073(); + o.secondaryIpRanges = buildUnnamed2170(); o.selfLink = "foo"; o.state = "foo"; } @@ -20672,34 +22319,49 @@ unittest.expect(o.gatewayAddress, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ipCidrRange, unittest.equals('foo')); + unittest.expect(o.ipv6CidrRange, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkSubnetworkLogConfig(o.logConfig); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.privateIpGoogleAccess, unittest.isTrue); + unittest.expect(o.privateIpv6GoogleAccess, unittest.equals('foo')); unittest.expect(o.purpose, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); - checkUnnamed2073(o.secondaryIpRanges); + checkUnnamed2170(o.secondaryIpRanges); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } buildCounterSubnetwork--; } -buildUnnamed2074() { +buildUnnamed2171() { var o = new core.Map<core.String, api.SubnetworksScopedList>(); o["x"] = buildSubnetworksScopedList(); o["y"] = buildSubnetworksScopedList(); return o; } -checkUnnamed2074(core.Map<core.String, api.SubnetworksScopedList> o) { +checkUnnamed2171(core.Map<core.String, api.SubnetworksScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedList(o["x"]); checkSubnetworksScopedList(o["y"]); } +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 buildCounterSubnetworkAggregatedListWarningData = 0; buildSubnetworkAggregatedListWarningData() { var o = new api.SubnetworkAggregatedListWarningData(); @@ -20722,14 +22384,14 @@ buildCounterSubnetworkAggregatedListWarningData--; } -buildUnnamed2075() { +buildUnnamed2173() { var o = new core.List<api.SubnetworkAggregatedListWarningData>(); o.add(buildSubnetworkAggregatedListWarningData()); o.add(buildSubnetworkAggregatedListWarningData()); return o; } -checkUnnamed2075(core.List<api.SubnetworkAggregatedListWarningData> o) { +checkUnnamed2173(core.List<api.SubnetworkAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkAggregatedListWarningData(o[0]); checkSubnetworkAggregatedListWarningData(o[1]); @@ -20741,7 +22403,7 @@ buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2075(); + o.data = buildUnnamed2173(); o.message = "foo"; } buildCounterSubnetworkAggregatedListWarning--; @@ -20752,7 +22414,7 @@ buildCounterSubnetworkAggregatedListWarning++; if (buildCounterSubnetworkAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2075(o.data); + checkUnnamed2173(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworkAggregatedListWarning--; @@ -20764,10 +22426,11 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2074(); + o.items = buildUnnamed2171(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2172(); o.warning = buildSubnetworkAggregatedListWarning(); } buildCounterSubnetworkAggregatedList--; @@ -20778,23 +22441,24 @@ buildCounterSubnetworkAggregatedList++; if (buildCounterSubnetworkAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2074(o.items); + checkUnnamed2171(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2172(o.unreachables); checkSubnetworkAggregatedListWarning(o.warning); } buildCounterSubnetworkAggregatedList--; } -buildUnnamed2076() { +buildUnnamed2174() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2076(core.List<api.Subnetwork> o) { +checkUnnamed2174(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -20821,14 +22485,14 @@ buildCounterSubnetworkListWarningData--; } -buildUnnamed2077() { +buildUnnamed2175() { var o = new core.List<api.SubnetworkListWarningData>(); o.add(buildSubnetworkListWarningData()); o.add(buildSubnetworkListWarningData()); return o; } -checkUnnamed2077(core.List<api.SubnetworkListWarningData> o) { +checkUnnamed2175(core.List<api.SubnetworkListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworkListWarningData(o[0]); checkSubnetworkListWarningData(o[1]); @@ -20840,7 +22504,7 @@ buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2077(); + o.data = buildUnnamed2175(); o.message = "foo"; } buildCounterSubnetworkListWarning--; @@ -20851,7 +22515,7 @@ buildCounterSubnetworkListWarning++; if (buildCounterSubnetworkListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2077(o.data); + checkUnnamed2175(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworkListWarning--; @@ -20863,7 +22527,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { o.id = "foo"; - o.items = buildUnnamed2076(); + o.items = buildUnnamed2174(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -20877,7 +22541,7 @@ buildCounterSubnetworkList++; if (buildCounterSubnetworkList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2076(o.items); + checkUnnamed2174(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -20886,14 +22550,14 @@ buildCounterSubnetworkList--; } -buildUnnamed2078() { +buildUnnamed2176() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2078(core.List<core.String> o) { +checkUnnamed2176(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -20909,7 +22573,7 @@ o.filterExpr = "foo"; o.flowSampling = 42.0; o.metadata = "foo"; - o.metadataFields = buildUnnamed2078(); + o.metadataFields = buildUnnamed2176(); } buildCounterSubnetworkLogConfig--; return o; @@ -20923,7 +22587,7 @@ unittest.expect(o.filterExpr, unittest.equals('foo')); unittest.expect(o.flowSampling, unittest.equals(42.0)); unittest.expect(o.metadata, unittest.equals('foo')); - checkUnnamed2078(o.metadataFields); + checkUnnamed2176(o.metadataFields); } buildCounterSubnetworkLogConfig--; } @@ -20969,14 +22633,14 @@ buildCounterSubnetworksExpandIpCidrRangeRequest--; } -buildUnnamed2079() { +buildUnnamed2177() { var o = new core.List<api.Subnetwork>(); o.add(buildSubnetwork()); o.add(buildSubnetwork()); return o; } -checkUnnamed2079(core.List<api.Subnetwork> o) { +checkUnnamed2177(core.List<api.Subnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetwork(o[0]); checkSubnetwork(o[1]); @@ -21003,14 +22667,14 @@ buildCounterSubnetworksScopedListWarningData--; } -buildUnnamed2080() { +buildUnnamed2178() { var o = new core.List<api.SubnetworksScopedListWarningData>(); o.add(buildSubnetworksScopedListWarningData()); o.add(buildSubnetworksScopedListWarningData()); return o; } -checkUnnamed2080(core.List<api.SubnetworksScopedListWarningData> o) { +checkUnnamed2178(core.List<api.SubnetworksScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkSubnetworksScopedListWarningData(o[0]); checkSubnetworksScopedListWarningData(o[1]); @@ -21022,7 +22686,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2080(); + o.data = buildUnnamed2178(); o.message = "foo"; } buildCounterSubnetworksScopedListWarning--; @@ -21033,7 +22697,7 @@ buildCounterSubnetworksScopedListWarning++; if (buildCounterSubnetworksScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2080(o.data); + checkUnnamed2178(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterSubnetworksScopedListWarning--; @@ -21044,7 +22708,7 @@ var o = new api.SubnetworksScopedList(); buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - o.subnetworks = buildUnnamed2079(); + o.subnetworks = buildUnnamed2177(); o.warning = buildSubnetworksScopedListWarning(); } buildCounterSubnetworksScopedList--; @@ -21054,7 +22718,7 @@ checkSubnetworksScopedList(api.SubnetworksScopedList o) { buildCounterSubnetworksScopedList++; if (buildCounterSubnetworksScopedList < 3) { - checkUnnamed2079(o.subnetworks); + checkUnnamed2177(o.subnetworks); checkSubnetworksScopedListWarning(o.warning); } buildCounterSubnetworksScopedList--; @@ -21109,14 +22773,14 @@ buildCounterTCPHealthCheck--; } -buildUnnamed2081() { +buildUnnamed2179() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2081(core.List<core.String> o) { +checkUnnamed2179(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21128,7 +22792,7 @@ buildCounterTags++; if (buildCounterTags < 3) { o.fingerprint = "foo"; - o.items = buildUnnamed2081(); + o.items = buildUnnamed2179(); } buildCounterTags--; return o; @@ -21138,19 +22802,155 @@ buildCounterTags++; if (buildCounterTags < 3) { unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed2081(o.items); + checkUnnamed2179(o.items); } buildCounterTags--; } -buildUnnamed2082() { +core.int buildCounterTargetGrpcProxy = 0; +buildTargetGrpcProxy() { + var o = new api.TargetGrpcProxy(); + buildCounterTargetGrpcProxy++; + if (buildCounterTargetGrpcProxy < 3) { + o.creationTimestamp = "foo"; + o.description = "foo"; + o.fingerprint = "foo"; + o.id = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.selfLink = "foo"; + o.selfLinkWithId = "foo"; + o.urlMap = "foo"; + o.validateForProxyless = true; + } + buildCounterTargetGrpcProxy--; + return o; +} + +checkTargetGrpcProxy(api.TargetGrpcProxy o) { + buildCounterTargetGrpcProxy++; + if (buildCounterTargetGrpcProxy < 3) { + unittest.expect(o.creationTimestamp, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.fingerprint, 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.selfLink, unittest.equals('foo')); + unittest.expect(o.selfLinkWithId, unittest.equals('foo')); + unittest.expect(o.urlMap, unittest.equals('foo')); + unittest.expect(o.validateForProxyless, unittest.isTrue); + } + buildCounterTargetGrpcProxy--; +} + +buildUnnamed2180() { + var o = new core.List<api.TargetGrpcProxy>(); + o.add(buildTargetGrpcProxy()); + o.add(buildTargetGrpcProxy()); + return o; +} + +checkUnnamed2180(core.List<api.TargetGrpcProxy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetGrpcProxy(o[0]); + checkTargetGrpcProxy(o[1]); +} + +core.int buildCounterTargetGrpcProxyListWarningData = 0; +buildTargetGrpcProxyListWarningData() { + var o = new api.TargetGrpcProxyListWarningData(); + buildCounterTargetGrpcProxyListWarningData++; + if (buildCounterTargetGrpcProxyListWarningData < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterTargetGrpcProxyListWarningData--; + return o; +} + +checkTargetGrpcProxyListWarningData(api.TargetGrpcProxyListWarningData o) { + buildCounterTargetGrpcProxyListWarningData++; + if (buildCounterTargetGrpcProxyListWarningData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterTargetGrpcProxyListWarningData--; +} + +buildUnnamed2181() { + var o = new core.List<api.TargetGrpcProxyListWarningData>(); + o.add(buildTargetGrpcProxyListWarningData()); + o.add(buildTargetGrpcProxyListWarningData()); + return o; +} + +checkUnnamed2181(core.List<api.TargetGrpcProxyListWarningData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTargetGrpcProxyListWarningData(o[0]); + checkTargetGrpcProxyListWarningData(o[1]); +} + +core.int buildCounterTargetGrpcProxyListWarning = 0; +buildTargetGrpcProxyListWarning() { + var o = new api.TargetGrpcProxyListWarning(); + buildCounterTargetGrpcProxyListWarning++; + if (buildCounterTargetGrpcProxyListWarning < 3) { + o.code = "foo"; + o.data = buildUnnamed2181(); + o.message = "foo"; + } + buildCounterTargetGrpcProxyListWarning--; + return o; +} + +checkTargetGrpcProxyListWarning(api.TargetGrpcProxyListWarning o) { + buildCounterTargetGrpcProxyListWarning++; + if (buildCounterTargetGrpcProxyListWarning < 3) { + unittest.expect(o.code, unittest.equals('foo')); + checkUnnamed2181(o.data); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterTargetGrpcProxyListWarning--; +} + +core.int buildCounterTargetGrpcProxyList = 0; +buildTargetGrpcProxyList() { + var o = new api.TargetGrpcProxyList(); + buildCounterTargetGrpcProxyList++; + if (buildCounterTargetGrpcProxyList < 3) { + o.id = "foo"; + o.items = buildUnnamed2180(); + o.kind = "foo"; + o.nextPageToken = "foo"; + o.selfLink = "foo"; + o.warning = buildTargetGrpcProxyListWarning(); + } + buildCounterTargetGrpcProxyList--; + return o; +} + +checkTargetGrpcProxyList(api.TargetGrpcProxyList o) { + buildCounterTargetGrpcProxyList++; + if (buildCounterTargetGrpcProxyList < 3) { + unittest.expect(o.id, unittest.equals('foo')); + checkUnnamed2180(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkTargetGrpcProxyListWarning(o.warning); + } + buildCounterTargetGrpcProxyList--; +} + +buildUnnamed2182() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2082(core.List<api.TargetHttpProxy> o) { +checkUnnamed2182(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -21178,14 +22978,14 @@ buildCounterTargetHttpProxiesScopedListWarningData--; } -buildUnnamed2083() { +buildUnnamed2183() { var o = new core.List<api.TargetHttpProxiesScopedListWarningData>(); o.add(buildTargetHttpProxiesScopedListWarningData()); o.add(buildTargetHttpProxiesScopedListWarningData()); return o; } -checkUnnamed2083(core.List<api.TargetHttpProxiesScopedListWarningData> o) { +checkUnnamed2183(core.List<api.TargetHttpProxiesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxiesScopedListWarningData(o[0]); checkTargetHttpProxiesScopedListWarningData(o[1]); @@ -21197,7 +22997,7 @@ buildCounterTargetHttpProxiesScopedListWarning++; if (buildCounterTargetHttpProxiesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2083(); + o.data = buildUnnamed2183(); o.message = "foo"; } buildCounterTargetHttpProxiesScopedListWarning--; @@ -21209,7 +23009,7 @@ buildCounterTargetHttpProxiesScopedListWarning++; if (buildCounterTargetHttpProxiesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2083(o.data); + checkUnnamed2183(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpProxiesScopedListWarning--; @@ -21220,7 +23020,7 @@ var o = new api.TargetHttpProxiesScopedList(); buildCounterTargetHttpProxiesScopedList++; if (buildCounterTargetHttpProxiesScopedList < 3) { - o.targetHttpProxies = buildUnnamed2082(); + o.targetHttpProxies = buildUnnamed2182(); o.warning = buildTargetHttpProxiesScopedListWarning(); } buildCounterTargetHttpProxiesScopedList--; @@ -21230,7 +23030,7 @@ checkTargetHttpProxiesScopedList(api.TargetHttpProxiesScopedList o) { buildCounterTargetHttpProxiesScopedList++; if (buildCounterTargetHttpProxiesScopedList < 3) { - checkUnnamed2082(o.targetHttpProxies); + checkUnnamed2182(o.targetHttpProxies); checkTargetHttpProxiesScopedListWarning(o.warning); } buildCounterTargetHttpProxiesScopedList--; @@ -21243,6 +23043,7 @@ if (buildCounterTargetHttpProxy < 3) { o.creationTimestamp = "foo"; o.description = "foo"; + o.fingerprint = "foo"; o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -21259,6 +23060,7 @@ if (buildCounterTargetHttpProxy < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -21269,29 +23071,43 @@ buildCounterTargetHttpProxy--; } -buildUnnamed2084() { +buildUnnamed2184() { var o = new core.Map<core.String, api.TargetHttpProxiesScopedList>(); o["x"] = buildTargetHttpProxiesScopedList(); o["y"] = buildTargetHttpProxiesScopedList(); return o; } -checkUnnamed2084(core.Map<core.String, api.TargetHttpProxiesScopedList> o) { +checkUnnamed2184(core.Map<core.String, api.TargetHttpProxiesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxiesScopedList(o["x"]); checkTargetHttpProxiesScopedList(o["y"]); } +buildUnnamed2185() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2185(core.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 buildCounterTargetHttpProxyAggregatedList = 0; buildTargetHttpProxyAggregatedList() { var o = new api.TargetHttpProxyAggregatedList(); buildCounterTargetHttpProxyAggregatedList++; if (buildCounterTargetHttpProxyAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2084(); + o.items = buildUnnamed2184(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2185(); } buildCounterTargetHttpProxyAggregatedList--; return o; @@ -21301,22 +23117,23 @@ buildCounterTargetHttpProxyAggregatedList++; if (buildCounterTargetHttpProxyAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2084(o.items); + checkUnnamed2184(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2185(o.unreachables); } buildCounterTargetHttpProxyAggregatedList--; } -buildUnnamed2085() { +buildUnnamed2186() { var o = new core.List<api.TargetHttpProxy>(); o.add(buildTargetHttpProxy()); o.add(buildTargetHttpProxy()); return o; } -checkUnnamed2085(core.List<api.TargetHttpProxy> o) { +checkUnnamed2186(core.List<api.TargetHttpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxy(o[0]); checkTargetHttpProxy(o[1]); @@ -21343,14 +23160,14 @@ buildCounterTargetHttpProxyListWarningData--; } -buildUnnamed2086() { +buildUnnamed2187() { var o = new core.List<api.TargetHttpProxyListWarningData>(); o.add(buildTargetHttpProxyListWarningData()); o.add(buildTargetHttpProxyListWarningData()); return o; } -checkUnnamed2086(core.List<api.TargetHttpProxyListWarningData> o) { +checkUnnamed2187(core.List<api.TargetHttpProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpProxyListWarningData(o[0]); checkTargetHttpProxyListWarningData(o[1]); @@ -21362,7 +23179,7 @@ buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2086(); + o.data = buildUnnamed2187(); o.message = "foo"; } buildCounterTargetHttpProxyListWarning--; @@ -21373,7 +23190,7 @@ buildCounterTargetHttpProxyListWarning++; if (buildCounterTargetHttpProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2086(o.data); + checkUnnamed2187(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpProxyListWarning--; @@ -21385,7 +23202,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2085(); + o.items = buildUnnamed2186(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -21399,7 +23216,7 @@ buildCounterTargetHttpProxyList++; if (buildCounterTargetHttpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2085(o.items); + checkUnnamed2186(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -21408,14 +23225,14 @@ buildCounterTargetHttpProxyList--; } -buildUnnamed2087() { +buildUnnamed2188() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2087(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2188(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -21443,14 +23260,14 @@ buildCounterTargetHttpsProxiesScopedListWarningData--; } -buildUnnamed2088() { +buildUnnamed2189() { var o = new core.List<api.TargetHttpsProxiesScopedListWarningData>(); o.add(buildTargetHttpsProxiesScopedListWarningData()); o.add(buildTargetHttpsProxiesScopedListWarningData()); return o; } -checkUnnamed2088(core.List<api.TargetHttpsProxiesScopedListWarningData> o) { +checkUnnamed2189(core.List<api.TargetHttpsProxiesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxiesScopedListWarningData(o[0]); checkTargetHttpsProxiesScopedListWarningData(o[1]); @@ -21462,7 +23279,7 @@ buildCounterTargetHttpsProxiesScopedListWarning++; if (buildCounterTargetHttpsProxiesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2088(); + o.data = buildUnnamed2189(); o.message = "foo"; } buildCounterTargetHttpsProxiesScopedListWarning--; @@ -21474,7 +23291,7 @@ buildCounterTargetHttpsProxiesScopedListWarning++; if (buildCounterTargetHttpsProxiesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2088(o.data); + checkUnnamed2189(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpsProxiesScopedListWarning--; @@ -21485,7 +23302,7 @@ var o = new api.TargetHttpsProxiesScopedList(); buildCounterTargetHttpsProxiesScopedList++; if (buildCounterTargetHttpsProxiesScopedList < 3) { - o.targetHttpsProxies = buildUnnamed2087(); + o.targetHttpsProxies = buildUnnamed2188(); o.warning = buildTargetHttpsProxiesScopedListWarning(); } buildCounterTargetHttpsProxiesScopedList--; @@ -21495,7 +23312,7 @@ checkTargetHttpsProxiesScopedList(api.TargetHttpsProxiesScopedList o) { buildCounterTargetHttpsProxiesScopedList++; if (buildCounterTargetHttpsProxiesScopedList < 3) { - checkUnnamed2087(o.targetHttpsProxies); + checkUnnamed2188(o.targetHttpsProxies); checkTargetHttpsProxiesScopedListWarning(o.warning); } buildCounterTargetHttpsProxiesScopedList--; @@ -21521,14 +23338,14 @@ buildCounterTargetHttpsProxiesSetQuicOverrideRequest--; } -buildUnnamed2089() { +buildUnnamed2190() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2089(core.List<core.String> o) { +checkUnnamed2190(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21539,7 +23356,7 @@ var o = new api.TargetHttpsProxiesSetSslCertificatesRequest(); buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2089(); + o.sslCertificates = buildUnnamed2190(); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; return o; @@ -21549,19 +23366,19 @@ api.TargetHttpsProxiesSetSslCertificatesRequest o) { buildCounterTargetHttpsProxiesSetSslCertificatesRequest++; if (buildCounterTargetHttpsProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2089(o.sslCertificates); + checkUnnamed2190(o.sslCertificates); } buildCounterTargetHttpsProxiesSetSslCertificatesRequest--; } -buildUnnamed2090() { +buildUnnamed2191() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2090(core.List<core.String> o) { +checkUnnamed2191(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -21580,7 +23397,7 @@ o.quicOverride = "foo"; o.region = "foo"; o.selfLink = "foo"; - o.sslCertificates = buildUnnamed2090(); + o.sslCertificates = buildUnnamed2191(); o.sslPolicy = "foo"; o.urlMap = "foo"; } @@ -21599,26 +23416,39 @@ unittest.expect(o.quicOverride, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2090(o.sslCertificates); + checkUnnamed2191(o.sslCertificates); unittest.expect(o.sslPolicy, unittest.equals('foo')); unittest.expect(o.urlMap, unittest.equals('foo')); } buildCounterTargetHttpsProxy--; } -buildUnnamed2091() { +buildUnnamed2192() { var o = new core.Map<core.String, api.TargetHttpsProxiesScopedList>(); o["x"] = buildTargetHttpsProxiesScopedList(); o["y"] = buildTargetHttpsProxiesScopedList(); return o; } -checkUnnamed2091(core.Map<core.String, api.TargetHttpsProxiesScopedList> o) { +checkUnnamed2192(core.Map<core.String, api.TargetHttpsProxiesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxiesScopedList(o["x"]); checkTargetHttpsProxiesScopedList(o["y"]); } +buildUnnamed2193() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2193(core.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 buildCounterTargetHttpsProxyAggregatedListWarningData = 0; buildTargetHttpsProxyAggregatedListWarningData() { var o = new api.TargetHttpsProxyAggregatedListWarningData(); @@ -21641,14 +23471,14 @@ buildCounterTargetHttpsProxyAggregatedListWarningData--; } -buildUnnamed2092() { +buildUnnamed2194() { var o = new core.List<api.TargetHttpsProxyAggregatedListWarningData>(); o.add(buildTargetHttpsProxyAggregatedListWarningData()); o.add(buildTargetHttpsProxyAggregatedListWarningData()); return o; } -checkUnnamed2092(core.List<api.TargetHttpsProxyAggregatedListWarningData> o) { +checkUnnamed2194(core.List<api.TargetHttpsProxyAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxyAggregatedListWarningData(o[0]); checkTargetHttpsProxyAggregatedListWarningData(o[1]); @@ -21660,7 +23490,7 @@ buildCounterTargetHttpsProxyAggregatedListWarning++; if (buildCounterTargetHttpsProxyAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2092(); + o.data = buildUnnamed2194(); o.message = "foo"; } buildCounterTargetHttpsProxyAggregatedListWarning--; @@ -21672,7 +23502,7 @@ buildCounterTargetHttpsProxyAggregatedListWarning++; if (buildCounterTargetHttpsProxyAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2092(o.data); + checkUnnamed2194(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpsProxyAggregatedListWarning--; @@ -21684,10 +23514,11 @@ buildCounterTargetHttpsProxyAggregatedList++; if (buildCounterTargetHttpsProxyAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2091(); + o.items = buildUnnamed2192(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2193(); o.warning = buildTargetHttpsProxyAggregatedListWarning(); } buildCounterTargetHttpsProxyAggregatedList--; @@ -21698,23 +23529,24 @@ buildCounterTargetHttpsProxyAggregatedList++; if (buildCounterTargetHttpsProxyAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2091(o.items); + checkUnnamed2192(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2193(o.unreachables); checkTargetHttpsProxyAggregatedListWarning(o.warning); } buildCounterTargetHttpsProxyAggregatedList--; } -buildUnnamed2093() { +buildUnnamed2195() { var o = new core.List<api.TargetHttpsProxy>(); o.add(buildTargetHttpsProxy()); o.add(buildTargetHttpsProxy()); return o; } -checkUnnamed2093(core.List<api.TargetHttpsProxy> o) { +checkUnnamed2195(core.List<api.TargetHttpsProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxy(o[0]); checkTargetHttpsProxy(o[1]); @@ -21741,14 +23573,14 @@ buildCounterTargetHttpsProxyListWarningData--; } -buildUnnamed2094() { +buildUnnamed2196() { var o = new core.List<api.TargetHttpsProxyListWarningData>(); o.add(buildTargetHttpsProxyListWarningData()); o.add(buildTargetHttpsProxyListWarningData()); return o; } -checkUnnamed2094(core.List<api.TargetHttpsProxyListWarningData> o) { +checkUnnamed2196(core.List<api.TargetHttpsProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetHttpsProxyListWarningData(o[0]); checkTargetHttpsProxyListWarningData(o[1]); @@ -21760,7 +23592,7 @@ buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2094(); + o.data = buildUnnamed2196(); o.message = "foo"; } buildCounterTargetHttpsProxyListWarning--; @@ -21771,7 +23603,7 @@ buildCounterTargetHttpsProxyListWarning++; if (buildCounterTargetHttpsProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2094(o.data); + checkUnnamed2196(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetHttpsProxyListWarning--; @@ -21783,7 +23615,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2093(); + o.items = buildUnnamed2195(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -21797,7 +23629,7 @@ buildCounterTargetHttpsProxyList++; if (buildCounterTargetHttpsProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2093(o.items); + checkUnnamed2195(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -21841,19 +23673,32 @@ buildCounterTargetInstance--; } -buildUnnamed2095() { +buildUnnamed2197() { var o = new core.Map<core.String, api.TargetInstancesScopedList>(); o["x"] = buildTargetInstancesScopedList(); o["y"] = buildTargetInstancesScopedList(); return o; } -checkUnnamed2095(core.Map<core.String, api.TargetInstancesScopedList> o) { +checkUnnamed2197(core.Map<core.String, api.TargetInstancesScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedList(o["x"]); checkTargetInstancesScopedList(o["y"]); } +buildUnnamed2198() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2198(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterTargetInstanceAggregatedListWarningData = 0; buildTargetInstanceAggregatedListWarningData() { var o = new api.TargetInstanceAggregatedListWarningData(); @@ -21876,14 +23721,14 @@ buildCounterTargetInstanceAggregatedListWarningData--; } -buildUnnamed2096() { +buildUnnamed2199() { var o = new core.List<api.TargetInstanceAggregatedListWarningData>(); o.add(buildTargetInstanceAggregatedListWarningData()); o.add(buildTargetInstanceAggregatedListWarningData()); return o; } -checkUnnamed2096(core.List<api.TargetInstanceAggregatedListWarningData> o) { +checkUnnamed2199(core.List<api.TargetInstanceAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceAggregatedListWarningData(o[0]); checkTargetInstanceAggregatedListWarningData(o[1]); @@ -21895,7 +23740,7 @@ buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2096(); + o.data = buildUnnamed2199(); o.message = "foo"; } buildCounterTargetInstanceAggregatedListWarning--; @@ -21907,7 +23752,7 @@ buildCounterTargetInstanceAggregatedListWarning++; if (buildCounterTargetInstanceAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2096(o.data); + checkUnnamed2199(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstanceAggregatedListWarning--; @@ -21919,10 +23764,11 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2095(); + o.items = buildUnnamed2197(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2198(); o.warning = buildTargetInstanceAggregatedListWarning(); } buildCounterTargetInstanceAggregatedList--; @@ -21933,23 +23779,24 @@ buildCounterTargetInstanceAggregatedList++; if (buildCounterTargetInstanceAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2095(o.items); + checkUnnamed2197(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2198(o.unreachables); checkTargetInstanceAggregatedListWarning(o.warning); } buildCounterTargetInstanceAggregatedList--; } -buildUnnamed2097() { +buildUnnamed2200() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2097(core.List<api.TargetInstance> o) { +checkUnnamed2200(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -21976,14 +23823,14 @@ buildCounterTargetInstanceListWarningData--; } -buildUnnamed2098() { +buildUnnamed2201() { var o = new core.List<api.TargetInstanceListWarningData>(); o.add(buildTargetInstanceListWarningData()); o.add(buildTargetInstanceListWarningData()); return o; } -checkUnnamed2098(core.List<api.TargetInstanceListWarningData> o) { +checkUnnamed2201(core.List<api.TargetInstanceListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstanceListWarningData(o[0]); checkTargetInstanceListWarningData(o[1]); @@ -21995,7 +23842,7 @@ buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2098(); + o.data = buildUnnamed2201(); o.message = "foo"; } buildCounterTargetInstanceListWarning--; @@ -22006,7 +23853,7 @@ buildCounterTargetInstanceListWarning++; if (buildCounterTargetInstanceListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2098(o.data); + checkUnnamed2201(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstanceListWarning--; @@ -22018,7 +23865,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { o.id = "foo"; - o.items = buildUnnamed2097(); + o.items = buildUnnamed2200(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -22032,7 +23879,7 @@ buildCounterTargetInstanceList++; if (buildCounterTargetInstanceList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2097(o.items); + checkUnnamed2200(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -22041,14 +23888,14 @@ buildCounterTargetInstanceList--; } -buildUnnamed2099() { +buildUnnamed2202() { var o = new core.List<api.TargetInstance>(); o.add(buildTargetInstance()); o.add(buildTargetInstance()); return o; } -checkUnnamed2099(core.List<api.TargetInstance> o) { +checkUnnamed2202(core.List<api.TargetInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstance(o[0]); checkTargetInstance(o[1]); @@ -22076,14 +23923,14 @@ buildCounterTargetInstancesScopedListWarningData--; } -buildUnnamed2100() { +buildUnnamed2203() { var o = new core.List<api.TargetInstancesScopedListWarningData>(); o.add(buildTargetInstancesScopedListWarningData()); o.add(buildTargetInstancesScopedListWarningData()); return o; } -checkUnnamed2100(core.List<api.TargetInstancesScopedListWarningData> o) { +checkUnnamed2203(core.List<api.TargetInstancesScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetInstancesScopedListWarningData(o[0]); checkTargetInstancesScopedListWarningData(o[1]); @@ -22095,7 +23942,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2100(); + o.data = buildUnnamed2203(); o.message = "foo"; } buildCounterTargetInstancesScopedListWarning--; @@ -22106,7 +23953,7 @@ buildCounterTargetInstancesScopedListWarning++; if (buildCounterTargetInstancesScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2100(o.data); + checkUnnamed2203(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetInstancesScopedListWarning--; @@ -22117,7 +23964,7 @@ var o = new api.TargetInstancesScopedList(); buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - o.targetInstances = buildUnnamed2099(); + o.targetInstances = buildUnnamed2202(); o.warning = buildTargetInstancesScopedListWarning(); } buildCounterTargetInstancesScopedList--; @@ -22127,33 +23974,33 @@ checkTargetInstancesScopedList(api.TargetInstancesScopedList o) { buildCounterTargetInstancesScopedList++; if (buildCounterTargetInstancesScopedList < 3) { - checkUnnamed2099(o.targetInstances); + checkUnnamed2202(o.targetInstances); checkTargetInstancesScopedListWarning(o.warning); } buildCounterTargetInstancesScopedList--; } -buildUnnamed2101() { +buildUnnamed2204() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2101(core.List<core.String> o) { +checkUnnamed2204(core.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() { +buildUnnamed2205() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2102(core.List<core.String> o) { +checkUnnamed2205(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22168,9 +24015,9 @@ o.creationTimestamp = "foo"; o.description = "foo"; o.failoverRatio = 42.0; - o.healthChecks = buildUnnamed2101(); + o.healthChecks = buildUnnamed2204(); o.id = "foo"; - o.instances = buildUnnamed2102(); + o.instances = buildUnnamed2205(); o.kind = "foo"; o.name = "foo"; o.region = "foo"; @@ -22188,9 +24035,9 @@ unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.failoverRatio, unittest.equals(42.0)); - checkUnnamed2101(o.healthChecks); + checkUnnamed2204(o.healthChecks); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2102(o.instances); + checkUnnamed2205(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); @@ -22200,19 +24047,32 @@ buildCounterTargetPool--; } -buildUnnamed2103() { +buildUnnamed2206() { var o = new core.Map<core.String, api.TargetPoolsScopedList>(); o["x"] = buildTargetPoolsScopedList(); o["y"] = buildTargetPoolsScopedList(); return o; } -checkUnnamed2103(core.Map<core.String, api.TargetPoolsScopedList> o) { +checkUnnamed2206(core.Map<core.String, api.TargetPoolsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedList(o["x"]); checkTargetPoolsScopedList(o["y"]); } +buildUnnamed2207() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2207(core.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 buildCounterTargetPoolAggregatedListWarningData = 0; buildTargetPoolAggregatedListWarningData() { var o = new api.TargetPoolAggregatedListWarningData(); @@ -22235,14 +24095,14 @@ buildCounterTargetPoolAggregatedListWarningData--; } -buildUnnamed2104() { +buildUnnamed2208() { var o = new core.List<api.TargetPoolAggregatedListWarningData>(); o.add(buildTargetPoolAggregatedListWarningData()); o.add(buildTargetPoolAggregatedListWarningData()); return o; } -checkUnnamed2104(core.List<api.TargetPoolAggregatedListWarningData> o) { +checkUnnamed2208(core.List<api.TargetPoolAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolAggregatedListWarningData(o[0]); checkTargetPoolAggregatedListWarningData(o[1]); @@ -22254,7 +24114,7 @@ buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2104(); + o.data = buildUnnamed2208(); o.message = "foo"; } buildCounterTargetPoolAggregatedListWarning--; @@ -22265,7 +24125,7 @@ buildCounterTargetPoolAggregatedListWarning++; if (buildCounterTargetPoolAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2104(o.data); + checkUnnamed2208(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolAggregatedListWarning--; @@ -22277,10 +24137,11 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2103(); + o.items = buildUnnamed2206(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2207(); o.warning = buildTargetPoolAggregatedListWarning(); } buildCounterTargetPoolAggregatedList--; @@ -22291,23 +24152,24 @@ buildCounterTargetPoolAggregatedList++; if (buildCounterTargetPoolAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2103(o.items); + checkUnnamed2206(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2207(o.unreachables); checkTargetPoolAggregatedListWarning(o.warning); } buildCounterTargetPoolAggregatedList--; } -buildUnnamed2105() { +buildUnnamed2209() { var o = new core.List<api.HealthStatus>(); o.add(buildHealthStatus()); o.add(buildHealthStatus()); return o; } -checkUnnamed2105(core.List<api.HealthStatus> o) { +checkUnnamed2209(core.List<api.HealthStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthStatus(o[0]); checkHealthStatus(o[1]); @@ -22318,7 +24180,7 @@ var o = new api.TargetPoolInstanceHealth(); buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - o.healthStatus = buildUnnamed2105(); + o.healthStatus = buildUnnamed2209(); o.kind = "foo"; } buildCounterTargetPoolInstanceHealth--; @@ -22328,20 +24190,20 @@ checkTargetPoolInstanceHealth(api.TargetPoolInstanceHealth o) { buildCounterTargetPoolInstanceHealth++; if (buildCounterTargetPoolInstanceHealth < 3) { - checkUnnamed2105(o.healthStatus); + checkUnnamed2209(o.healthStatus); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTargetPoolInstanceHealth--; } -buildUnnamed2106() { +buildUnnamed2210() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2106(core.List<api.TargetPool> o) { +checkUnnamed2210(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -22368,14 +24230,14 @@ buildCounterTargetPoolListWarningData--; } -buildUnnamed2107() { +buildUnnamed2211() { var o = new core.List<api.TargetPoolListWarningData>(); o.add(buildTargetPoolListWarningData()); o.add(buildTargetPoolListWarningData()); return o; } -checkUnnamed2107(core.List<api.TargetPoolListWarningData> o) { +checkUnnamed2211(core.List<api.TargetPoolListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolListWarningData(o[0]); checkTargetPoolListWarningData(o[1]); @@ -22387,7 +24249,7 @@ buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2107(); + o.data = buildUnnamed2211(); o.message = "foo"; } buildCounterTargetPoolListWarning--; @@ -22398,7 +24260,7 @@ buildCounterTargetPoolListWarning++; if (buildCounterTargetPoolListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2107(o.data); + checkUnnamed2211(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolListWarning--; @@ -22410,7 +24272,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { o.id = "foo"; - o.items = buildUnnamed2106(); + o.items = buildUnnamed2210(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -22424,7 +24286,7 @@ buildCounterTargetPoolList++; if (buildCounterTargetPoolList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2106(o.items); + checkUnnamed2210(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -22433,14 +24295,14 @@ buildCounterTargetPoolList--; } -buildUnnamed2108() { +buildUnnamed2212() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2108(core.List<api.HealthCheckReference> o) { +checkUnnamed2212(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -22451,7 +24313,7 @@ var o = new api.TargetPoolsAddHealthCheckRequest(); buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2108(); + o.healthChecks = buildUnnamed2212(); } buildCounterTargetPoolsAddHealthCheckRequest--; return o; @@ -22460,19 +24322,19 @@ checkTargetPoolsAddHealthCheckRequest(api.TargetPoolsAddHealthCheckRequest o) { buildCounterTargetPoolsAddHealthCheckRequest++; if (buildCounterTargetPoolsAddHealthCheckRequest < 3) { - checkUnnamed2108(o.healthChecks); + checkUnnamed2212(o.healthChecks); } buildCounterTargetPoolsAddHealthCheckRequest--; } -buildUnnamed2109() { +buildUnnamed2213() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2109(core.List<api.InstanceReference> o) { +checkUnnamed2213(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -22483,7 +24345,7 @@ var o = new api.TargetPoolsAddInstanceRequest(); buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - o.instances = buildUnnamed2109(); + o.instances = buildUnnamed2213(); } buildCounterTargetPoolsAddInstanceRequest--; return o; @@ -22492,19 +24354,19 @@ checkTargetPoolsAddInstanceRequest(api.TargetPoolsAddInstanceRequest o) { buildCounterTargetPoolsAddInstanceRequest++; if (buildCounterTargetPoolsAddInstanceRequest < 3) { - checkUnnamed2109(o.instances); + checkUnnamed2213(o.instances); } buildCounterTargetPoolsAddInstanceRequest--; } -buildUnnamed2110() { +buildUnnamed2214() { var o = new core.List<api.HealthCheckReference>(); o.add(buildHealthCheckReference()); o.add(buildHealthCheckReference()); return o; } -checkUnnamed2110(core.List<api.HealthCheckReference> o) { +checkUnnamed2214(core.List<api.HealthCheckReference> o) { unittest.expect(o, unittest.hasLength(2)); checkHealthCheckReference(o[0]); checkHealthCheckReference(o[1]); @@ -22515,7 +24377,7 @@ var o = new api.TargetPoolsRemoveHealthCheckRequest(); buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - o.healthChecks = buildUnnamed2110(); + o.healthChecks = buildUnnamed2214(); } buildCounterTargetPoolsRemoveHealthCheckRequest--; return o; @@ -22525,19 +24387,19 @@ api.TargetPoolsRemoveHealthCheckRequest o) { buildCounterTargetPoolsRemoveHealthCheckRequest++; if (buildCounterTargetPoolsRemoveHealthCheckRequest < 3) { - checkUnnamed2110(o.healthChecks); + checkUnnamed2214(o.healthChecks); } buildCounterTargetPoolsRemoveHealthCheckRequest--; } -buildUnnamed2111() { +buildUnnamed2215() { var o = new core.List<api.InstanceReference>(); o.add(buildInstanceReference()); o.add(buildInstanceReference()); return o; } -checkUnnamed2111(core.List<api.InstanceReference> o) { +checkUnnamed2215(core.List<api.InstanceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceReference(o[0]); checkInstanceReference(o[1]); @@ -22548,7 +24410,7 @@ var o = new api.TargetPoolsRemoveInstanceRequest(); buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - o.instances = buildUnnamed2111(); + o.instances = buildUnnamed2215(); } buildCounterTargetPoolsRemoveInstanceRequest--; return o; @@ -22557,19 +24419,19 @@ checkTargetPoolsRemoveInstanceRequest(api.TargetPoolsRemoveInstanceRequest o) { buildCounterTargetPoolsRemoveInstanceRequest++; if (buildCounterTargetPoolsRemoveInstanceRequest < 3) { - checkUnnamed2111(o.instances); + checkUnnamed2215(o.instances); } buildCounterTargetPoolsRemoveInstanceRequest--; } -buildUnnamed2112() { +buildUnnamed2216() { var o = new core.List<api.TargetPool>(); o.add(buildTargetPool()); o.add(buildTargetPool()); return o; } -checkUnnamed2112(core.List<api.TargetPool> o) { +checkUnnamed2216(core.List<api.TargetPool> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPool(o[0]); checkTargetPool(o[1]); @@ -22596,14 +24458,14 @@ buildCounterTargetPoolsScopedListWarningData--; } -buildUnnamed2113() { +buildUnnamed2217() { var o = new core.List<api.TargetPoolsScopedListWarningData>(); o.add(buildTargetPoolsScopedListWarningData()); o.add(buildTargetPoolsScopedListWarningData()); return o; } -checkUnnamed2113(core.List<api.TargetPoolsScopedListWarningData> o) { +checkUnnamed2217(core.List<api.TargetPoolsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetPoolsScopedListWarningData(o[0]); checkTargetPoolsScopedListWarningData(o[1]); @@ -22615,7 +24477,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2113(); + o.data = buildUnnamed2217(); o.message = "foo"; } buildCounterTargetPoolsScopedListWarning--; @@ -22626,7 +24488,7 @@ buildCounterTargetPoolsScopedListWarning++; if (buildCounterTargetPoolsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2113(o.data); + checkUnnamed2217(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetPoolsScopedListWarning--; @@ -22637,7 +24499,7 @@ var o = new api.TargetPoolsScopedList(); buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - o.targetPools = buildUnnamed2112(); + o.targetPools = buildUnnamed2216(); o.warning = buildTargetPoolsScopedListWarning(); } buildCounterTargetPoolsScopedList--; @@ -22647,7 +24509,7 @@ checkTargetPoolsScopedList(api.TargetPoolsScopedList o) { buildCounterTargetPoolsScopedList++; if (buildCounterTargetPoolsScopedList < 3) { - checkUnnamed2112(o.targetPools); + checkUnnamed2216(o.targetPools); checkTargetPoolsScopedListWarning(o.warning); } buildCounterTargetPoolsScopedList--; @@ -22712,14 +24574,14 @@ buildCounterTargetSslProxiesSetProxyHeaderRequest--; } -buildUnnamed2114() { +buildUnnamed2218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2114(core.List<core.String> o) { +checkUnnamed2218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22730,7 +24592,7 @@ var o = new api.TargetSslProxiesSetSslCertificatesRequest(); buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - o.sslCertificates = buildUnnamed2114(); + o.sslCertificates = buildUnnamed2218(); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; return o; @@ -22740,19 +24602,19 @@ api.TargetSslProxiesSetSslCertificatesRequest o) { buildCounterTargetSslProxiesSetSslCertificatesRequest++; if (buildCounterTargetSslProxiesSetSslCertificatesRequest < 3) { - checkUnnamed2114(o.sslCertificates); + checkUnnamed2218(o.sslCertificates); } buildCounterTargetSslProxiesSetSslCertificatesRequest--; } -buildUnnamed2115() { +buildUnnamed2219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2115(core.List<core.String> o) { +checkUnnamed2219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -22771,7 +24633,7 @@ o.proxyHeader = "foo"; o.selfLink = "foo"; o.service = "foo"; - o.sslCertificates = buildUnnamed2115(); + o.sslCertificates = buildUnnamed2219(); o.sslPolicy = "foo"; } buildCounterTargetSslProxy--; @@ -22789,20 +24651,20 @@ unittest.expect(o.proxyHeader, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed2115(o.sslCertificates); + checkUnnamed2219(o.sslCertificates); unittest.expect(o.sslPolicy, unittest.equals('foo')); } buildCounterTargetSslProxy--; } -buildUnnamed2116() { +buildUnnamed2220() { var o = new core.List<api.TargetSslProxy>(); o.add(buildTargetSslProxy()); o.add(buildTargetSslProxy()); return o; } -checkUnnamed2116(core.List<api.TargetSslProxy> o) { +checkUnnamed2220(core.List<api.TargetSslProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxy(o[0]); checkTargetSslProxy(o[1]); @@ -22829,14 +24691,14 @@ buildCounterTargetSslProxyListWarningData--; } -buildUnnamed2117() { +buildUnnamed2221() { var o = new core.List<api.TargetSslProxyListWarningData>(); o.add(buildTargetSslProxyListWarningData()); o.add(buildTargetSslProxyListWarningData()); return o; } -checkUnnamed2117(core.List<api.TargetSslProxyListWarningData> o) { +checkUnnamed2221(core.List<api.TargetSslProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetSslProxyListWarningData(o[0]); checkTargetSslProxyListWarningData(o[1]); @@ -22848,7 +24710,7 @@ buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2117(); + o.data = buildUnnamed2221(); o.message = "foo"; } buildCounterTargetSslProxyListWarning--; @@ -22859,7 +24721,7 @@ buildCounterTargetSslProxyListWarning++; if (buildCounterTargetSslProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2117(o.data); + checkUnnamed2221(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetSslProxyListWarning--; @@ -22871,7 +24733,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2116(); + o.items = buildUnnamed2220(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -22885,7 +24747,7 @@ buildCounterTargetSslProxyList++; if (buildCounterTargetSslProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2116(o.items); + checkUnnamed2220(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -22967,14 +24829,14 @@ buildCounterTargetTcpProxy--; } -buildUnnamed2118() { +buildUnnamed2222() { var o = new core.List<api.TargetTcpProxy>(); o.add(buildTargetTcpProxy()); o.add(buildTargetTcpProxy()); return o; } -checkUnnamed2118(core.List<api.TargetTcpProxy> o) { +checkUnnamed2222(core.List<api.TargetTcpProxy> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxy(o[0]); checkTargetTcpProxy(o[1]); @@ -23001,14 +24863,14 @@ buildCounterTargetTcpProxyListWarningData--; } -buildUnnamed2119() { +buildUnnamed2223() { var o = new core.List<api.TargetTcpProxyListWarningData>(); o.add(buildTargetTcpProxyListWarningData()); o.add(buildTargetTcpProxyListWarningData()); return o; } -checkUnnamed2119(core.List<api.TargetTcpProxyListWarningData> o) { +checkUnnamed2223(core.List<api.TargetTcpProxyListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetTcpProxyListWarningData(o[0]); checkTargetTcpProxyListWarningData(o[1]); @@ -23020,7 +24882,7 @@ buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2119(); + o.data = buildUnnamed2223(); o.message = "foo"; } buildCounterTargetTcpProxyListWarning--; @@ -23031,7 +24893,7 @@ buildCounterTargetTcpProxyListWarning++; if (buildCounterTargetTcpProxyListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2119(o.data); + checkUnnamed2223(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetTcpProxyListWarning--; @@ -23043,7 +24905,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { o.id = "foo"; - o.items = buildUnnamed2118(); + o.items = buildUnnamed2222(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -23057,7 +24919,7 @@ buildCounterTargetTcpProxyList++; if (buildCounterTargetTcpProxyList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2118(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')); @@ -23066,27 +24928,27 @@ buildCounterTargetTcpProxyList--; } -buildUnnamed2120() { +buildUnnamed2224() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2120(core.List<core.String> o) { +checkUnnamed2224(core.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() { +buildUnnamed2225() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2121(core.List<core.String> o) { +checkUnnamed2225(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23099,7 +24961,7 @@ if (buildCounterTargetVpnGateway < 3) { o.creationTimestamp = "foo"; o.description = "foo"; - o.forwardingRules = buildUnnamed2120(); + o.forwardingRules = buildUnnamed2224(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -23107,7 +24969,7 @@ o.region = "foo"; o.selfLink = "foo"; o.status = "foo"; - o.tunnels = buildUnnamed2121(); + o.tunnels = buildUnnamed2225(); } buildCounterTargetVpnGateway--; return o; @@ -23118,7 +24980,7 @@ if (buildCounterTargetVpnGateway < 3) { unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed2120(o.forwardingRules); + checkUnnamed2224(o.forwardingRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -23126,24 +24988,37 @@ unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed2121(o.tunnels); + checkUnnamed2225(o.tunnels); } buildCounterTargetVpnGateway--; } -buildUnnamed2122() { +buildUnnamed2226() { var o = new core.Map<core.String, api.TargetVpnGatewaysScopedList>(); o["x"] = buildTargetVpnGatewaysScopedList(); o["y"] = buildTargetVpnGatewaysScopedList(); return o; } -checkUnnamed2122(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { +checkUnnamed2226(core.Map<core.String, api.TargetVpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedList(o["x"]); checkTargetVpnGatewaysScopedList(o["y"]); } +buildUnnamed2227() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterTargetVpnGatewayAggregatedListWarningData = 0; buildTargetVpnGatewayAggregatedListWarningData() { var o = new api.TargetVpnGatewayAggregatedListWarningData(); @@ -23166,14 +25041,14 @@ buildCounterTargetVpnGatewayAggregatedListWarningData--; } -buildUnnamed2123() { +buildUnnamed2228() { var o = new core.List<api.TargetVpnGatewayAggregatedListWarningData>(); o.add(buildTargetVpnGatewayAggregatedListWarningData()); o.add(buildTargetVpnGatewayAggregatedListWarningData()); return o; } -checkUnnamed2123(core.List<api.TargetVpnGatewayAggregatedListWarningData> o) { +checkUnnamed2228(core.List<api.TargetVpnGatewayAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewayAggregatedListWarningData(o[0]); checkTargetVpnGatewayAggregatedListWarningData(o[1]); @@ -23185,7 +25060,7 @@ buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2123(); + o.data = buildUnnamed2228(); o.message = "foo"; } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -23197,7 +25072,7 @@ buildCounterTargetVpnGatewayAggregatedListWarning++; if (buildCounterTargetVpnGatewayAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2123(o.data); + checkUnnamed2228(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewayAggregatedListWarning--; @@ -23209,10 +25084,11 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2122(); + o.items = buildUnnamed2226(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2227(); o.warning = buildTargetVpnGatewayAggregatedListWarning(); } buildCounterTargetVpnGatewayAggregatedList--; @@ -23223,23 +25099,24 @@ buildCounterTargetVpnGatewayAggregatedList++; if (buildCounterTargetVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2122(o.items); + checkUnnamed2226(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2227(o.unreachables); checkTargetVpnGatewayAggregatedListWarning(o.warning); } buildCounterTargetVpnGatewayAggregatedList--; } -buildUnnamed2124() { +buildUnnamed2229() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2124(core.List<api.TargetVpnGateway> o) { +checkUnnamed2229(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -23266,14 +25143,14 @@ buildCounterTargetVpnGatewayListWarningData--; } -buildUnnamed2125() { +buildUnnamed2230() { var o = new core.List<api.TargetVpnGatewayListWarningData>(); o.add(buildTargetVpnGatewayListWarningData()); o.add(buildTargetVpnGatewayListWarningData()); return o; } -checkUnnamed2125(core.List<api.TargetVpnGatewayListWarningData> o) { +checkUnnamed2230(core.List<api.TargetVpnGatewayListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewayListWarningData(o[0]); checkTargetVpnGatewayListWarningData(o[1]); @@ -23285,7 +25162,7 @@ buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2125(); + o.data = buildUnnamed2230(); o.message = "foo"; } buildCounterTargetVpnGatewayListWarning--; @@ -23296,7 +25173,7 @@ buildCounterTargetVpnGatewayListWarning++; if (buildCounterTargetVpnGatewayListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2125(o.data); + checkUnnamed2230(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewayListWarning--; @@ -23308,7 +25185,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2124(); + o.items = buildUnnamed2229(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -23322,7 +25199,7 @@ buildCounterTargetVpnGatewayList++; if (buildCounterTargetVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2124(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')); @@ -23331,14 +25208,14 @@ buildCounterTargetVpnGatewayList--; } -buildUnnamed2126() { +buildUnnamed2231() { var o = new core.List<api.TargetVpnGateway>(); o.add(buildTargetVpnGateway()); o.add(buildTargetVpnGateway()); return o; } -checkUnnamed2126(core.List<api.TargetVpnGateway> o) { +checkUnnamed2231(core.List<api.TargetVpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGateway(o[0]); checkTargetVpnGateway(o[1]); @@ -23366,14 +25243,14 @@ buildCounterTargetVpnGatewaysScopedListWarningData--; } -buildUnnamed2127() { +buildUnnamed2232() { var o = new core.List<api.TargetVpnGatewaysScopedListWarningData>(); o.add(buildTargetVpnGatewaysScopedListWarningData()); o.add(buildTargetVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2127(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { +checkUnnamed2232(core.List<api.TargetVpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetVpnGatewaysScopedListWarningData(o[0]); checkTargetVpnGatewaysScopedListWarningData(o[1]); @@ -23385,7 +25262,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2127(); + o.data = buildUnnamed2232(); o.message = "foo"; } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -23397,7 +25274,7 @@ buildCounterTargetVpnGatewaysScopedListWarning++; if (buildCounterTargetVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2127(o.data); + checkUnnamed2232(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterTargetVpnGatewaysScopedListWarning--; @@ -23408,7 +25285,7 @@ var o = new api.TargetVpnGatewaysScopedList(); buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - o.targetVpnGateways = buildUnnamed2126(); + o.targetVpnGateways = buildUnnamed2231(); o.warning = buildTargetVpnGatewaysScopedListWarning(); } buildCounterTargetVpnGatewaysScopedList--; @@ -23418,7 +25295,7 @@ checkTargetVpnGatewaysScopedList(api.TargetVpnGatewaysScopedList o) { buildCounterTargetVpnGatewaysScopedList++; if (buildCounterTargetVpnGatewaysScopedList < 3) { - checkUnnamed2126(o.targetVpnGateways); + checkUnnamed2231(o.targetVpnGateways); checkTargetVpnGatewaysScopedListWarning(o.warning); } buildCounterTargetVpnGatewaysScopedList--; @@ -23449,14 +25326,14 @@ buildCounterTestFailure--; } -buildUnnamed2128() { +buildUnnamed2233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2128(core.List<core.String> o) { +checkUnnamed2233(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23467,7 +25344,7 @@ var o = new api.TestPermissionsRequest(); buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - o.permissions = buildUnnamed2128(); + o.permissions = buildUnnamed2233(); } buildCounterTestPermissionsRequest--; return o; @@ -23476,19 +25353,19 @@ checkTestPermissionsRequest(api.TestPermissionsRequest o) { buildCounterTestPermissionsRequest++; if (buildCounterTestPermissionsRequest < 3) { - checkUnnamed2128(o.permissions); + checkUnnamed2233(o.permissions); } buildCounterTestPermissionsRequest--; } -buildUnnamed2129() { +buildUnnamed2234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2129(core.List<core.String> o) { +checkUnnamed2234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -23499,7 +25376,7 @@ var o = new api.TestPermissionsResponse(); buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - o.permissions = buildUnnamed2129(); + o.permissions = buildUnnamed2234(); } buildCounterTestPermissionsResponse--; return o; @@ -23508,45 +25385,45 @@ checkTestPermissionsResponse(api.TestPermissionsResponse o) { buildCounterTestPermissionsResponse++; if (buildCounterTestPermissionsResponse < 3) { - checkUnnamed2129(o.permissions); + checkUnnamed2234(o.permissions); } buildCounterTestPermissionsResponse--; } -buildUnnamed2130() { +buildUnnamed2235() { var o = new core.List<api.HostRule>(); o.add(buildHostRule()); o.add(buildHostRule()); return o; } -checkUnnamed2130(core.List<api.HostRule> o) { +checkUnnamed2235(core.List<api.HostRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHostRule(o[0]); checkHostRule(o[1]); } -buildUnnamed2131() { +buildUnnamed2236() { var o = new core.List<api.PathMatcher>(); o.add(buildPathMatcher()); o.add(buildPathMatcher()); return o; } -checkUnnamed2131(core.List<api.PathMatcher> o) { +checkUnnamed2236(core.List<api.PathMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkPathMatcher(o[0]); checkPathMatcher(o[1]); } -buildUnnamed2132() { +buildUnnamed2237() { var o = new core.List<api.UrlMapTest>(); o.add(buildUrlMapTest()); o.add(buildUrlMapTest()); return o; } -checkUnnamed2132(core.List<api.UrlMapTest> o) { +checkUnnamed2237(core.List<api.UrlMapTest> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapTest(o[0]); checkUrlMapTest(o[1]); @@ -23564,14 +25441,14 @@ o.description = "foo"; o.fingerprint = "foo"; o.headerAction = buildHttpHeaderAction(); - o.hostRules = buildUnnamed2130(); + o.hostRules = buildUnnamed2235(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.pathMatchers = buildUnnamed2131(); + o.pathMatchers = buildUnnamed2236(); o.region = "foo"; o.selfLink = "foo"; - o.tests = buildUnnamed2132(); + o.tests = buildUnnamed2237(); } buildCounterUrlMap--; return o; @@ -23587,26 +25464,26 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); checkHttpHeaderAction(o.headerAction); - checkUnnamed2130(o.hostRules); + checkUnnamed2235(o.hostRules); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2131(o.pathMatchers); + checkUnnamed2236(o.pathMatchers); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2132(o.tests); + checkUnnamed2237(o.tests); } buildCounterUrlMap--; } -buildUnnamed2133() { +buildUnnamed2238() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2133(core.List<api.UrlMap> o) { +checkUnnamed2238(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -23633,14 +25510,14 @@ buildCounterUrlMapListWarningData--; } -buildUnnamed2134() { +buildUnnamed2239() { var o = new core.List<api.UrlMapListWarningData>(); o.add(buildUrlMapListWarningData()); o.add(buildUrlMapListWarningData()); return o; } -checkUnnamed2134(core.List<api.UrlMapListWarningData> o) { +checkUnnamed2239(core.List<api.UrlMapListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapListWarningData(o[0]); checkUrlMapListWarningData(o[1]); @@ -23652,7 +25529,7 @@ buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2134(); + o.data = buildUnnamed2239(); o.message = "foo"; } buildCounterUrlMapListWarning--; @@ -23663,7 +25540,7 @@ buildCounterUrlMapListWarning++; if (buildCounterUrlMapListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2134(o.data); + checkUnnamed2239(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUrlMapListWarning--; @@ -23675,7 +25552,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { o.id = "foo"; - o.items = buildUnnamed2133(); + o.items = buildUnnamed2238(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -23689,7 +25566,7 @@ buildCounterUrlMapList++; if (buildCounterUrlMapList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2133(o.items); + checkUnnamed2238(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -23742,27 +25619,27 @@ buildCounterUrlMapTest--; } -buildUnnamed2135() { +buildUnnamed2240() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2135(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')); } -buildUnnamed2136() { +buildUnnamed2241() { var o = new core.List<api.TestFailure>(); o.add(buildTestFailure()); o.add(buildTestFailure()); return o; } -checkUnnamed2136(core.List<api.TestFailure> o) { +checkUnnamed2241(core.List<api.TestFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkTestFailure(o[0]); checkTestFailure(o[1]); @@ -23773,9 +25650,9 @@ var o = new api.UrlMapValidationResult(); buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - o.loadErrors = buildUnnamed2135(); + o.loadErrors = buildUnnamed2240(); o.loadSucceeded = true; - o.testFailures = buildUnnamed2136(); + o.testFailures = buildUnnamed2241(); o.testPassed = true; } buildCounterUrlMapValidationResult--; @@ -23785,27 +25662,40 @@ checkUrlMapValidationResult(api.UrlMapValidationResult o) { buildCounterUrlMapValidationResult++; if (buildCounterUrlMapValidationResult < 3) { - checkUnnamed2135(o.loadErrors); + checkUnnamed2240(o.loadErrors); unittest.expect(o.loadSucceeded, unittest.isTrue); - checkUnnamed2136(o.testFailures); + checkUnnamed2241(o.testFailures); unittest.expect(o.testPassed, unittest.isTrue); } buildCounterUrlMapValidationResult--; } -buildUnnamed2137() { +buildUnnamed2242() { var o = new core.Map<core.String, api.UrlMapsScopedList>(); o["x"] = buildUrlMapsScopedList(); o["y"] = buildUrlMapsScopedList(); return o; } -checkUnnamed2137(core.Map<core.String, api.UrlMapsScopedList> o) { +checkUnnamed2242(core.Map<core.String, api.UrlMapsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsScopedList(o["x"]); checkUrlMapsScopedList(o["y"]); } +buildUnnamed2243() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterUrlMapsAggregatedListWarningData = 0; buildUrlMapsAggregatedListWarningData() { var o = new api.UrlMapsAggregatedListWarningData(); @@ -23827,14 +25717,14 @@ buildCounterUrlMapsAggregatedListWarningData--; } -buildUnnamed2138() { +buildUnnamed2244() { var o = new core.List<api.UrlMapsAggregatedListWarningData>(); o.add(buildUrlMapsAggregatedListWarningData()); o.add(buildUrlMapsAggregatedListWarningData()); return o; } -checkUnnamed2138(core.List<api.UrlMapsAggregatedListWarningData> o) { +checkUnnamed2244(core.List<api.UrlMapsAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsAggregatedListWarningData(o[0]); checkUrlMapsAggregatedListWarningData(o[1]); @@ -23846,7 +25736,7 @@ buildCounterUrlMapsAggregatedListWarning++; if (buildCounterUrlMapsAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2138(); + o.data = buildUnnamed2244(); o.message = "foo"; } buildCounterUrlMapsAggregatedListWarning--; @@ -23857,7 +25747,7 @@ buildCounterUrlMapsAggregatedListWarning++; if (buildCounterUrlMapsAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2138(o.data); + checkUnnamed2244(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUrlMapsAggregatedListWarning--; @@ -23869,10 +25759,11 @@ buildCounterUrlMapsAggregatedList++; if (buildCounterUrlMapsAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2137(); + o.items = buildUnnamed2242(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2243(); o.warning = buildUrlMapsAggregatedListWarning(); } buildCounterUrlMapsAggregatedList--; @@ -23883,23 +25774,24 @@ buildCounterUrlMapsAggregatedList++; if (buildCounterUrlMapsAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2137(o.items); + checkUnnamed2242(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2243(o.unreachables); checkUrlMapsAggregatedListWarning(o.warning); } buildCounterUrlMapsAggregatedList--; } -buildUnnamed2139() { +buildUnnamed2245() { var o = new core.List<api.UrlMap>(); o.add(buildUrlMap()); o.add(buildUrlMap()); return o; } -checkUnnamed2139(core.List<api.UrlMap> o) { +checkUnnamed2245(core.List<api.UrlMap> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMap(o[0]); checkUrlMap(o[1]); @@ -23926,14 +25818,14 @@ buildCounterUrlMapsScopedListWarningData--; } -buildUnnamed2140() { +buildUnnamed2246() { var o = new core.List<api.UrlMapsScopedListWarningData>(); o.add(buildUrlMapsScopedListWarningData()); o.add(buildUrlMapsScopedListWarningData()); return o; } -checkUnnamed2140(core.List<api.UrlMapsScopedListWarningData> o) { +checkUnnamed2246(core.List<api.UrlMapsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkUrlMapsScopedListWarningData(o[0]); checkUrlMapsScopedListWarningData(o[1]); @@ -23945,7 +25837,7 @@ buildCounterUrlMapsScopedListWarning++; if (buildCounterUrlMapsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2140(); + o.data = buildUnnamed2246(); o.message = "foo"; } buildCounterUrlMapsScopedListWarning--; @@ -23956,7 +25848,7 @@ buildCounterUrlMapsScopedListWarning++; if (buildCounterUrlMapsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2140(o.data); + checkUnnamed2246(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUrlMapsScopedListWarning--; @@ -23967,7 +25859,7 @@ var o = new api.UrlMapsScopedList(); buildCounterUrlMapsScopedList++; if (buildCounterUrlMapsScopedList < 3) { - o.urlMaps = buildUnnamed2139(); + o.urlMaps = buildUnnamed2245(); o.warning = buildUrlMapsScopedListWarning(); } buildCounterUrlMapsScopedList--; @@ -23977,7 +25869,7 @@ checkUrlMapsScopedList(api.UrlMapsScopedList o) { buildCounterUrlMapsScopedList++; if (buildCounterUrlMapsScopedList < 3) { - checkUnnamed2139(o.urlMaps); + checkUnnamed2245(o.urlMaps); checkUrlMapsScopedListWarning(o.warning); } buildCounterUrlMapsScopedList--; @@ -24042,14 +25934,14 @@ buildCounterUrlRewrite--; } -buildUnnamed2141() { +buildUnnamed2247() { var o = new core.List<api.UsableSubnetworkSecondaryRange>(); o.add(buildUsableSubnetworkSecondaryRange()); o.add(buildUsableSubnetworkSecondaryRange()); return o; } -checkUnnamed2141(core.List<api.UsableSubnetworkSecondaryRange> o) { +checkUnnamed2247(core.List<api.UsableSubnetworkSecondaryRange> o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetworkSecondaryRange(o[0]); checkUsableSubnetworkSecondaryRange(o[1]); @@ -24062,7 +25954,7 @@ if (buildCounterUsableSubnetwork < 3) { o.ipCidrRange = "foo"; o.network = "foo"; - o.secondaryIpRanges = buildUnnamed2141(); + o.secondaryIpRanges = buildUnnamed2247(); o.subnetwork = "foo"; } buildCounterUsableSubnetwork--; @@ -24074,7 +25966,7 @@ if (buildCounterUsableSubnetwork < 3) { unittest.expect(o.ipCidrRange, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed2141(o.secondaryIpRanges); + checkUnnamed2247(o.secondaryIpRanges); unittest.expect(o.subnetwork, unittest.equals('foo')); } buildCounterUsableSubnetwork--; @@ -24101,14 +25993,14 @@ buildCounterUsableSubnetworkSecondaryRange--; } -buildUnnamed2142() { +buildUnnamed2248() { var o = new core.List<api.UsableSubnetwork>(); o.add(buildUsableSubnetwork()); o.add(buildUsableSubnetwork()); return o; } -checkUnnamed2142(core.List<api.UsableSubnetwork> o) { +checkUnnamed2248(core.List<api.UsableSubnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetwork(o[0]); checkUsableSubnetwork(o[1]); @@ -24136,14 +26028,14 @@ buildCounterUsableSubnetworksAggregatedListWarningData--; } -buildUnnamed2143() { +buildUnnamed2249() { var o = new core.List<api.UsableSubnetworksAggregatedListWarningData>(); o.add(buildUsableSubnetworksAggregatedListWarningData()); o.add(buildUsableSubnetworksAggregatedListWarningData()); return o; } -checkUnnamed2143(core.List<api.UsableSubnetworksAggregatedListWarningData> o) { +checkUnnamed2249(core.List<api.UsableSubnetworksAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetworksAggregatedListWarningData(o[0]); checkUsableSubnetworksAggregatedListWarningData(o[1]); @@ -24155,7 +26047,7 @@ buildCounterUsableSubnetworksAggregatedListWarning++; if (buildCounterUsableSubnetworksAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2143(); + o.data = buildUnnamed2249(); o.message = "foo"; } buildCounterUsableSubnetworksAggregatedListWarning--; @@ -24167,7 +26059,7 @@ buildCounterUsableSubnetworksAggregatedListWarning++; if (buildCounterUsableSubnetworksAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2143(o.data); + checkUnnamed2249(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterUsableSubnetworksAggregatedListWarning--; @@ -24179,7 +26071,7 @@ buildCounterUsableSubnetworksAggregatedList++; if (buildCounterUsableSubnetworksAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2142(); + o.items = buildUnnamed2248(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -24193,7 +26085,7 @@ buildCounterUsableSubnetworksAggregatedList++; if (buildCounterUsableSubnetworksAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2142(o.items); + checkUnnamed2248(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -24223,14 +26115,14 @@ buildCounterUsageExportLocation--; } -buildUnnamed2144() { +buildUnnamed2250() { var o = new core.List<api.VmEndpointNatMappingsInterfaceNatMappings>(); o.add(buildVmEndpointNatMappingsInterfaceNatMappings()); o.add(buildVmEndpointNatMappingsInterfaceNatMappings()); return o; } -checkUnnamed2144(core.List<api.VmEndpointNatMappingsInterfaceNatMappings> o) { +checkUnnamed2250(core.List<api.VmEndpointNatMappingsInterfaceNatMappings> o) { unittest.expect(o, unittest.hasLength(2)); checkVmEndpointNatMappingsInterfaceNatMappings(o[0]); checkVmEndpointNatMappingsInterfaceNatMappings(o[1]); @@ -24242,7 +26134,7 @@ buildCounterVmEndpointNatMappings++; if (buildCounterVmEndpointNatMappings < 3) { o.instanceName = "foo"; - o.interfaceNatMappings = buildUnnamed2144(); + o.interfaceNatMappings = buildUnnamed2250(); } buildCounterVmEndpointNatMappings--; return o; @@ -24252,32 +26144,32 @@ buildCounterVmEndpointNatMappings++; if (buildCounterVmEndpointNatMappings < 3) { unittest.expect(o.instanceName, unittest.equals('foo')); - checkUnnamed2144(o.interfaceNatMappings); + checkUnnamed2250(o.interfaceNatMappings); } buildCounterVmEndpointNatMappings--; } -buildUnnamed2145() { +buildUnnamed2251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2145(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')); } -buildUnnamed2146() { +buildUnnamed2252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2146(core.List<core.String> o) { +checkUnnamed2252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -24288,8 +26180,8 @@ var o = new api.VmEndpointNatMappingsInterfaceNatMappings(); buildCounterVmEndpointNatMappingsInterfaceNatMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappings < 3) { - o.drainNatIpPortRanges = buildUnnamed2145(); - o.natIpPortRanges = buildUnnamed2146(); + o.drainNatIpPortRanges = buildUnnamed2251(); + o.natIpPortRanges = buildUnnamed2252(); o.numTotalDrainNatPorts = 42; o.numTotalNatPorts = 42; o.sourceAliasIpRange = "foo"; @@ -24303,8 +26195,8 @@ api.VmEndpointNatMappingsInterfaceNatMappings o) { buildCounterVmEndpointNatMappingsInterfaceNatMappings++; if (buildCounterVmEndpointNatMappingsInterfaceNatMappings < 3) { - checkUnnamed2145(o.drainNatIpPortRanges); - checkUnnamed2146(o.natIpPortRanges); + checkUnnamed2251(o.drainNatIpPortRanges); + checkUnnamed2252(o.natIpPortRanges); unittest.expect(o.numTotalDrainNatPorts, unittest.equals(42)); unittest.expect(o.numTotalNatPorts, unittest.equals(42)); unittest.expect(o.sourceAliasIpRange, unittest.equals('foo')); @@ -24313,14 +26205,14 @@ buildCounterVmEndpointNatMappingsInterfaceNatMappings--; } -buildUnnamed2147() { +buildUnnamed2253() { var o = new core.List<api.VmEndpointNatMappings>(); o.add(buildVmEndpointNatMappings()); o.add(buildVmEndpointNatMappings()); return o; } -checkUnnamed2147(core.List<api.VmEndpointNatMappings> o) { +checkUnnamed2253(core.List<api.VmEndpointNatMappings> o) { unittest.expect(o, unittest.hasLength(2)); checkVmEndpointNatMappings(o[0]); checkVmEndpointNatMappings(o[1]); @@ -24348,14 +26240,14 @@ buildCounterVmEndpointNatMappingsListWarningData--; } -buildUnnamed2148() { +buildUnnamed2254() { var o = new core.List<api.VmEndpointNatMappingsListWarningData>(); o.add(buildVmEndpointNatMappingsListWarningData()); o.add(buildVmEndpointNatMappingsListWarningData()); return o; } -checkUnnamed2148(core.List<api.VmEndpointNatMappingsListWarningData> o) { +checkUnnamed2254(core.List<api.VmEndpointNatMappingsListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVmEndpointNatMappingsListWarningData(o[0]); checkVmEndpointNatMappingsListWarningData(o[1]); @@ -24367,7 +26259,7 @@ buildCounterVmEndpointNatMappingsListWarning++; if (buildCounterVmEndpointNatMappingsListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2148(); + o.data = buildUnnamed2254(); o.message = "foo"; } buildCounterVmEndpointNatMappingsListWarning--; @@ -24378,7 +26270,7 @@ buildCounterVmEndpointNatMappingsListWarning++; if (buildCounterVmEndpointNatMappingsListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2148(o.data); + checkUnnamed2254(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVmEndpointNatMappingsListWarning--; @@ -24392,7 +26284,7 @@ o.id = "foo"; o.kind = "foo"; o.nextPageToken = "foo"; - o.result = buildUnnamed2147(); + o.result = buildUnnamed2253(); o.selfLink = "foo"; o.warning = buildVmEndpointNatMappingsListWarning(); } @@ -24406,34 +26298,34 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2147(o.result); + checkUnnamed2253(o.result); unittest.expect(o.selfLink, unittest.equals('foo')); checkVmEndpointNatMappingsListWarning(o.warning); } buildCounterVmEndpointNatMappingsList--; } -buildUnnamed2149() { +buildUnnamed2255() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2149(core.Map<core.String, core.String> o) { +checkUnnamed2255(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')); } -buildUnnamed2150() { +buildUnnamed2256() { var o = new core.List<api.VpnGatewayVpnGatewayInterface>(); o.add(buildVpnGatewayVpnGatewayInterface()); o.add(buildVpnGatewayVpnGatewayInterface()); return o; } -checkUnnamed2150(core.List<api.VpnGatewayVpnGatewayInterface> o) { +checkUnnamed2256(core.List<api.VpnGatewayVpnGatewayInterface> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayVpnGatewayInterface(o[0]); checkVpnGatewayVpnGatewayInterface(o[1]); @@ -24449,12 +26341,12 @@ o.id = "foo"; o.kind = "foo"; o.labelFingerprint = "foo"; - o.labels = buildUnnamed2149(); + o.labels = buildUnnamed2255(); o.name = "foo"; o.network = "foo"; o.region = "foo"; o.selfLink = "foo"; - o.vpnInterfaces = buildUnnamed2150(); + o.vpnInterfaces = buildUnnamed2256(); } buildCounterVpnGateway--; return o; @@ -24468,29 +26360,42 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2149(o.labels); + checkUnnamed2255(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed2150(o.vpnInterfaces); + checkUnnamed2256(o.vpnInterfaces); } buildCounterVpnGateway--; } -buildUnnamed2151() { +buildUnnamed2257() { var o = new core.Map<core.String, api.VpnGatewaysScopedList>(); o["x"] = buildVpnGatewaysScopedList(); o["y"] = buildVpnGatewaysScopedList(); return o; } -checkUnnamed2151(core.Map<core.String, api.VpnGatewaysScopedList> o) { +checkUnnamed2257(core.Map<core.String, api.VpnGatewaysScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewaysScopedList(o["x"]); checkVpnGatewaysScopedList(o["y"]); } +buildUnnamed2258() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2258(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterVpnGatewayAggregatedListWarningData = 0; buildVpnGatewayAggregatedListWarningData() { var o = new api.VpnGatewayAggregatedListWarningData(); @@ -24513,14 +26418,14 @@ buildCounterVpnGatewayAggregatedListWarningData--; } -buildUnnamed2152() { +buildUnnamed2259() { var o = new core.List<api.VpnGatewayAggregatedListWarningData>(); o.add(buildVpnGatewayAggregatedListWarningData()); o.add(buildVpnGatewayAggregatedListWarningData()); return o; } -checkUnnamed2152(core.List<api.VpnGatewayAggregatedListWarningData> o) { +checkUnnamed2259(core.List<api.VpnGatewayAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayAggregatedListWarningData(o[0]); checkVpnGatewayAggregatedListWarningData(o[1]); @@ -24532,7 +26437,7 @@ buildCounterVpnGatewayAggregatedListWarning++; if (buildCounterVpnGatewayAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2152(); + o.data = buildUnnamed2259(); o.message = "foo"; } buildCounterVpnGatewayAggregatedListWarning--; @@ -24543,7 +26448,7 @@ buildCounterVpnGatewayAggregatedListWarning++; if (buildCounterVpnGatewayAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2152(o.data); + checkUnnamed2259(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnGatewayAggregatedListWarning--; @@ -24555,10 +26460,11 @@ buildCounterVpnGatewayAggregatedList++; if (buildCounterVpnGatewayAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2151(); + o.items = buildUnnamed2257(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2258(); o.warning = buildVpnGatewayAggregatedListWarning(); } buildCounterVpnGatewayAggregatedList--; @@ -24569,23 +26475,24 @@ buildCounterVpnGatewayAggregatedList++; if (buildCounterVpnGatewayAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2151(o.items); + checkUnnamed2257(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2258(o.unreachables); checkVpnGatewayAggregatedListWarning(o.warning); } buildCounterVpnGatewayAggregatedList--; } -buildUnnamed2153() { +buildUnnamed2260() { var o = new core.List<api.VpnGateway>(); o.add(buildVpnGateway()); o.add(buildVpnGateway()); return o; } -checkUnnamed2153(core.List<api.VpnGateway> o) { +checkUnnamed2260(core.List<api.VpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGateway(o[0]); checkVpnGateway(o[1]); @@ -24612,14 +26519,14 @@ buildCounterVpnGatewayListWarningData--; } -buildUnnamed2154() { +buildUnnamed2261() { var o = new core.List<api.VpnGatewayListWarningData>(); o.add(buildVpnGatewayListWarningData()); o.add(buildVpnGatewayListWarningData()); return o; } -checkUnnamed2154(core.List<api.VpnGatewayListWarningData> o) { +checkUnnamed2261(core.List<api.VpnGatewayListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayListWarningData(o[0]); checkVpnGatewayListWarningData(o[1]); @@ -24631,7 +26538,7 @@ buildCounterVpnGatewayListWarning++; if (buildCounterVpnGatewayListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2154(); + o.data = buildUnnamed2261(); o.message = "foo"; } buildCounterVpnGatewayListWarning--; @@ -24642,7 +26549,7 @@ buildCounterVpnGatewayListWarning++; if (buildCounterVpnGatewayListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2154(o.data); + checkUnnamed2261(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnGatewayListWarning--; @@ -24654,7 +26561,7 @@ buildCounterVpnGatewayList++; if (buildCounterVpnGatewayList < 3) { o.id = "foo"; - o.items = buildUnnamed2153(); + o.items = buildUnnamed2260(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -24668,7 +26575,7 @@ buildCounterVpnGatewayList++; if (buildCounterVpnGatewayList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2153(o.items); + checkUnnamed2260(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -24677,14 +26584,14 @@ buildCounterVpnGatewayList--; } -buildUnnamed2155() { +buildUnnamed2262() { var o = new core.List<api.VpnGatewayStatusVpnConnection>(); o.add(buildVpnGatewayStatusVpnConnection()); o.add(buildVpnGatewayStatusVpnConnection()); return o; } -checkUnnamed2155(core.List<api.VpnGatewayStatusVpnConnection> o) { +checkUnnamed2262(core.List<api.VpnGatewayStatusVpnConnection> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayStatusVpnConnection(o[0]); checkVpnGatewayStatusVpnConnection(o[1]); @@ -24695,7 +26602,7 @@ var o = new api.VpnGatewayStatus(); buildCounterVpnGatewayStatus++; if (buildCounterVpnGatewayStatus < 3) { - o.vpnConnections = buildUnnamed2155(); + o.vpnConnections = buildUnnamed2262(); } buildCounterVpnGatewayStatus--; return o; @@ -24704,7 +26611,7 @@ checkVpnGatewayStatus(api.VpnGatewayStatus o) { buildCounterVpnGatewayStatus++; if (buildCounterVpnGatewayStatus < 3) { - checkUnnamed2155(o.vpnConnections); + checkUnnamed2262(o.vpnConnections); } buildCounterVpnGatewayStatus--; } @@ -24754,14 +26661,14 @@ buildCounterVpnGatewayStatusTunnel--; } -buildUnnamed2156() { +buildUnnamed2263() { var o = new core.List<api.VpnGatewayStatusTunnel>(); o.add(buildVpnGatewayStatusTunnel()); o.add(buildVpnGatewayStatusTunnel()); return o; } -checkUnnamed2156(core.List<api.VpnGatewayStatusTunnel> o) { +checkUnnamed2263(core.List<api.VpnGatewayStatusTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewayStatusTunnel(o[0]); checkVpnGatewayStatusTunnel(o[1]); @@ -24775,7 +26682,7 @@ o.peerExternalGateway = "foo"; o.peerGcpGateway = "foo"; o.state = buildVpnGatewayStatusHighAvailabilityRequirementState(); - o.tunnels = buildUnnamed2156(); + o.tunnels = buildUnnamed2263(); } buildCounterVpnGatewayStatusVpnConnection--; return o; @@ -24787,7 +26694,7 @@ unittest.expect(o.peerExternalGateway, unittest.equals('foo')); unittest.expect(o.peerGcpGateway, unittest.equals('foo')); checkVpnGatewayStatusHighAvailabilityRequirementState(o.state); - checkUnnamed2156(o.tunnels); + checkUnnamed2263(o.tunnels); } buildCounterVpnGatewayStatusVpnConnection--; } @@ -24832,14 +26739,14 @@ buildCounterVpnGatewaysGetStatusResponse--; } -buildUnnamed2157() { +buildUnnamed2264() { var o = new core.List<api.VpnGateway>(); o.add(buildVpnGateway()); o.add(buildVpnGateway()); return o; } -checkUnnamed2157(core.List<api.VpnGateway> o) { +checkUnnamed2264(core.List<api.VpnGateway> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGateway(o[0]); checkVpnGateway(o[1]); @@ -24866,14 +26773,14 @@ buildCounterVpnGatewaysScopedListWarningData--; } -buildUnnamed2158() { +buildUnnamed2265() { var o = new core.List<api.VpnGatewaysScopedListWarningData>(); o.add(buildVpnGatewaysScopedListWarningData()); o.add(buildVpnGatewaysScopedListWarningData()); return o; } -checkUnnamed2158(core.List<api.VpnGatewaysScopedListWarningData> o) { +checkUnnamed2265(core.List<api.VpnGatewaysScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnGatewaysScopedListWarningData(o[0]); checkVpnGatewaysScopedListWarningData(o[1]); @@ -24885,7 +26792,7 @@ buildCounterVpnGatewaysScopedListWarning++; if (buildCounterVpnGatewaysScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2158(); + o.data = buildUnnamed2265(); o.message = "foo"; } buildCounterVpnGatewaysScopedListWarning--; @@ -24896,7 +26803,7 @@ buildCounterVpnGatewaysScopedListWarning++; if (buildCounterVpnGatewaysScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2158(o.data); + checkUnnamed2265(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnGatewaysScopedListWarning--; @@ -24907,7 +26814,7 @@ var o = new api.VpnGatewaysScopedList(); buildCounterVpnGatewaysScopedList++; if (buildCounterVpnGatewaysScopedList < 3) { - o.vpnGateways = buildUnnamed2157(); + o.vpnGateways = buildUnnamed2264(); o.warning = buildVpnGatewaysScopedListWarning(); } buildCounterVpnGatewaysScopedList--; @@ -24917,33 +26824,33 @@ checkVpnGatewaysScopedList(api.VpnGatewaysScopedList o) { buildCounterVpnGatewaysScopedList++; if (buildCounterVpnGatewaysScopedList < 3) { - checkUnnamed2157(o.vpnGateways); + checkUnnamed2264(o.vpnGateways); checkVpnGatewaysScopedListWarning(o.warning); } buildCounterVpnGatewaysScopedList--; } -buildUnnamed2159() { +buildUnnamed2266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2159(core.List<core.String> o) { +checkUnnamed2266(core.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() { +buildUnnamed2267() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2160(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')); @@ -24960,14 +26867,14 @@ o.id = "foo"; o.ikeVersion = 42; o.kind = "foo"; - o.localTrafficSelector = buildUnnamed2159(); + o.localTrafficSelector = buildUnnamed2266(); o.name = "foo"; o.peerExternalGateway = "foo"; o.peerExternalGatewayInterface = 42; o.peerGcpGateway = "foo"; o.peerIp = "foo"; o.region = "foo"; - o.remoteTrafficSelector = buildUnnamed2160(); + o.remoteTrafficSelector = buildUnnamed2267(); o.router = "foo"; o.selfLink = "foo"; o.sharedSecret = "foo"; @@ -24990,14 +26897,14 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.ikeVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2159(o.localTrafficSelector); + checkUnnamed2266(o.localTrafficSelector); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.peerExternalGateway, unittest.equals('foo')); unittest.expect(o.peerExternalGatewayInterface, unittest.equals(42)); unittest.expect(o.peerGcpGateway, unittest.equals('foo')); unittest.expect(o.peerIp, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2160(o.remoteTrafficSelector); + checkUnnamed2267(o.remoteTrafficSelector); unittest.expect(o.router, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.sharedSecret, unittest.equals('foo')); @@ -25010,19 +26917,32 @@ buildCounterVpnTunnel--; } -buildUnnamed2161() { +buildUnnamed2268() { var o = new core.Map<core.String, api.VpnTunnelsScopedList>(); o["x"] = buildVpnTunnelsScopedList(); o["y"] = buildVpnTunnelsScopedList(); return o; } -checkUnnamed2161(core.Map<core.String, api.VpnTunnelsScopedList> o) { +checkUnnamed2268(core.Map<core.String, api.VpnTunnelsScopedList> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedList(o["x"]); checkVpnTunnelsScopedList(o["y"]); } +buildUnnamed2269() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed2269(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + core.int buildCounterVpnTunnelAggregatedListWarningData = 0; buildVpnTunnelAggregatedListWarningData() { var o = new api.VpnTunnelAggregatedListWarningData(); @@ -25045,14 +26965,14 @@ buildCounterVpnTunnelAggregatedListWarningData--; } -buildUnnamed2162() { +buildUnnamed2270() { var o = new core.List<api.VpnTunnelAggregatedListWarningData>(); o.add(buildVpnTunnelAggregatedListWarningData()); o.add(buildVpnTunnelAggregatedListWarningData()); return o; } -checkUnnamed2162(core.List<api.VpnTunnelAggregatedListWarningData> o) { +checkUnnamed2270(core.List<api.VpnTunnelAggregatedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelAggregatedListWarningData(o[0]); checkVpnTunnelAggregatedListWarningData(o[1]); @@ -25064,7 +26984,7 @@ buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2162(); + o.data = buildUnnamed2270(); o.message = "foo"; } buildCounterVpnTunnelAggregatedListWarning--; @@ -25075,7 +26995,7 @@ buildCounterVpnTunnelAggregatedListWarning++; if (buildCounterVpnTunnelAggregatedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2162(o.data); + checkUnnamed2270(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelAggregatedListWarning--; @@ -25087,10 +27007,11 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { o.id = "foo"; - o.items = buildUnnamed2161(); + o.items = buildUnnamed2268(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; + o.unreachables = buildUnnamed2269(); o.warning = buildVpnTunnelAggregatedListWarning(); } buildCounterVpnTunnelAggregatedList--; @@ -25101,23 +27022,24 @@ buildCounterVpnTunnelAggregatedList++; if (buildCounterVpnTunnelAggregatedList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2161(o.items); + checkUnnamed2268(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed2269(o.unreachables); checkVpnTunnelAggregatedListWarning(o.warning); } buildCounterVpnTunnelAggregatedList--; } -buildUnnamed2163() { +buildUnnamed2271() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2163(core.List<api.VpnTunnel> o) { +checkUnnamed2271(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -25144,14 +27066,14 @@ buildCounterVpnTunnelListWarningData--; } -buildUnnamed2164() { +buildUnnamed2272() { var o = new core.List<api.VpnTunnelListWarningData>(); o.add(buildVpnTunnelListWarningData()); o.add(buildVpnTunnelListWarningData()); return o; } -checkUnnamed2164(core.List<api.VpnTunnelListWarningData> o) { +checkUnnamed2272(core.List<api.VpnTunnelListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelListWarningData(o[0]); checkVpnTunnelListWarningData(o[1]); @@ -25163,7 +27085,7 @@ buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2164(); + o.data = buildUnnamed2272(); o.message = "foo"; } buildCounterVpnTunnelListWarning--; @@ -25174,7 +27096,7 @@ buildCounterVpnTunnelListWarning++; if (buildCounterVpnTunnelListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2164(o.data); + checkUnnamed2272(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelListWarning--; @@ -25186,7 +27108,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { o.id = "foo"; - o.items = buildUnnamed2163(); + o.items = buildUnnamed2271(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -25200,7 +27122,7 @@ buildCounterVpnTunnelList++; if (buildCounterVpnTunnelList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2163(o.items); + checkUnnamed2271(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -25209,14 +27131,14 @@ buildCounterVpnTunnelList--; } -buildUnnamed2165() { +buildUnnamed2273() { var o = new core.List<api.VpnTunnel>(); o.add(buildVpnTunnel()); o.add(buildVpnTunnel()); return o; } -checkUnnamed2165(core.List<api.VpnTunnel> o) { +checkUnnamed2273(core.List<api.VpnTunnel> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnel(o[0]); checkVpnTunnel(o[1]); @@ -25243,14 +27165,14 @@ buildCounterVpnTunnelsScopedListWarningData--; } -buildUnnamed2166() { +buildUnnamed2274() { var o = new core.List<api.VpnTunnelsScopedListWarningData>(); o.add(buildVpnTunnelsScopedListWarningData()); o.add(buildVpnTunnelsScopedListWarningData()); return o; } -checkUnnamed2166(core.List<api.VpnTunnelsScopedListWarningData> o) { +checkUnnamed2274(core.List<api.VpnTunnelsScopedListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkVpnTunnelsScopedListWarningData(o[0]); checkVpnTunnelsScopedListWarningData(o[1]); @@ -25262,7 +27184,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2166(); + o.data = buildUnnamed2274(); o.message = "foo"; } buildCounterVpnTunnelsScopedListWarning--; @@ -25273,7 +27195,7 @@ buildCounterVpnTunnelsScopedListWarning++; if (buildCounterVpnTunnelsScopedListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2166(o.data); + checkUnnamed2274(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterVpnTunnelsScopedListWarning--; @@ -25284,7 +27206,7 @@ var o = new api.VpnTunnelsScopedList(); buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - o.vpnTunnels = buildUnnamed2165(); + o.vpnTunnels = buildUnnamed2273(); o.warning = buildVpnTunnelsScopedListWarning(); } buildCounterVpnTunnelsScopedList--; @@ -25294,33 +27216,33 @@ checkVpnTunnelsScopedList(api.VpnTunnelsScopedList o) { buildCounterVpnTunnelsScopedList++; if (buildCounterVpnTunnelsScopedList < 3) { - checkUnnamed2165(o.vpnTunnels); + checkUnnamed2273(o.vpnTunnels); checkVpnTunnelsScopedListWarning(o.warning); } buildCounterVpnTunnelsScopedList--; } -buildUnnamed2167() { +buildUnnamed2275() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2167(core.List<core.String> o) { +checkUnnamed2275(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2168() { +buildUnnamed2276() { var o = new core.List<api.WafExpressionSetExpression>(); o.add(buildWafExpressionSetExpression()); o.add(buildWafExpressionSetExpression()); return o; } -checkUnnamed2168(core.List<api.WafExpressionSetExpression> o) { +checkUnnamed2276(core.List<api.WafExpressionSetExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkWafExpressionSetExpression(o[0]); checkWafExpressionSetExpression(o[1]); @@ -25331,8 +27253,8 @@ var o = new api.WafExpressionSet(); buildCounterWafExpressionSet++; if (buildCounterWafExpressionSet < 3) { - o.aliases = buildUnnamed2167(); - o.expressions = buildUnnamed2168(); + o.aliases = buildUnnamed2275(); + o.expressions = buildUnnamed2276(); o.id = "foo"; } buildCounterWafExpressionSet--; @@ -25342,8 +27264,8 @@ checkWafExpressionSet(api.WafExpressionSet o) { buildCounterWafExpressionSet++; if (buildCounterWafExpressionSet < 3) { - checkUnnamed2167(o.aliases); - checkUnnamed2168(o.expressions); + checkUnnamed2275(o.aliases); + checkUnnamed2276(o.expressions); unittest.expect(o.id, unittest.equals('foo')); } buildCounterWafExpressionSet--; @@ -25391,14 +27313,14 @@ buildCounterWeightedBackendService--; } -buildUnnamed2169() { +buildUnnamed2277() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed2169(core.List<api.Project> o) { +checkUnnamed2277(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -25425,14 +27347,14 @@ buildCounterXpnHostListWarningData--; } -buildUnnamed2170() { +buildUnnamed2278() { var o = new core.List<api.XpnHostListWarningData>(); o.add(buildXpnHostListWarningData()); o.add(buildXpnHostListWarningData()); return o; } -checkUnnamed2170(core.List<api.XpnHostListWarningData> o) { +checkUnnamed2278(core.List<api.XpnHostListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkXpnHostListWarningData(o[0]); checkXpnHostListWarningData(o[1]); @@ -25444,7 +27366,7 @@ buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2170(); + o.data = buildUnnamed2278(); o.message = "foo"; } buildCounterXpnHostListWarning--; @@ -25455,7 +27377,7 @@ buildCounterXpnHostListWarning++; if (buildCounterXpnHostListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2170(o.data); + checkUnnamed2278(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterXpnHostListWarning--; @@ -25467,7 +27389,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { o.id = "foo"; - o.items = buildUnnamed2169(); + o.items = buildUnnamed2277(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -25481,7 +27403,7 @@ buildCounterXpnHostList++; if (buildCounterXpnHostList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2169(o.items); + checkUnnamed2277(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -25511,14 +27433,14 @@ buildCounterXpnResourceId--; } -buildUnnamed2171() { +buildUnnamed2279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2171(core.List<core.String> o) { +checkUnnamed2279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -25529,7 +27451,7 @@ var o = new api.Zone(); buildCounterZone++; if (buildCounterZone < 3) { - o.availableCpuPlatforms = buildUnnamed2171(); + o.availableCpuPlatforms = buildUnnamed2279(); o.creationTimestamp = "foo"; o.deprecated = buildDeprecationStatus(); o.description = "foo"; @@ -25547,7 +27469,7 @@ checkZone(api.Zone o) { buildCounterZone++; if (buildCounterZone < 3) { - checkUnnamed2171(o.availableCpuPlatforms); + checkUnnamed2279(o.availableCpuPlatforms); unittest.expect(o.creationTimestamp, unittest.equals('foo')); checkDeprecationStatus(o.deprecated); unittest.expect(o.description, unittest.equals('foo')); @@ -25561,14 +27483,14 @@ buildCounterZone--; } -buildUnnamed2172() { +buildUnnamed2280() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed2172(core.List<api.Zone> o) { +checkUnnamed2280(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -25595,14 +27517,14 @@ buildCounterZoneListWarningData--; } -buildUnnamed2173() { +buildUnnamed2281() { var o = new core.List<api.ZoneListWarningData>(); o.add(buildZoneListWarningData()); o.add(buildZoneListWarningData()); return o; } -checkUnnamed2173(core.List<api.ZoneListWarningData> o) { +checkUnnamed2281(core.List<api.ZoneListWarningData> o) { unittest.expect(o, unittest.hasLength(2)); checkZoneListWarningData(o[0]); checkZoneListWarningData(o[1]); @@ -25614,7 +27536,7 @@ buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { o.code = "foo"; - o.data = buildUnnamed2173(); + o.data = buildUnnamed2281(); o.message = "foo"; } buildCounterZoneListWarning--; @@ -25625,7 +27547,7 @@ buildCounterZoneListWarning++; if (buildCounterZoneListWarning < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2173(o.data); + checkUnnamed2281(o.data); unittest.expect(o.message, unittest.equals('foo')); } buildCounterZoneListWarning--; @@ -25637,7 +27559,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { o.id = "foo"; - o.items = buildUnnamed2172(); + o.items = buildUnnamed2280(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -25651,7 +27573,7 @@ buildCounterZoneList++; if (buildCounterZoneList < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2172(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')); @@ -25660,14 +27582,14 @@ buildCounterZoneList--; } -buildUnnamed2174() { +buildUnnamed2282() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2174(core.Map<core.String, core.String> o) { +checkUnnamed2282(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')); @@ -25679,7 +27601,7 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { o.labelFingerprint = "foo"; - o.labels = buildUnnamed2174(); + o.labels = buildUnnamed2282(); } buildCounterZoneSetLabelsRequest--; return o; @@ -25689,19 +27611,19 @@ buildCounterZoneSetLabelsRequest++; if (buildCounterZoneSetLabelsRequest < 3) { unittest.expect(o.labelFingerprint, unittest.equals('foo')); - checkUnnamed2174(o.labels); + checkUnnamed2282(o.labels); } buildCounterZoneSetLabelsRequest--; } -buildUnnamed2175() { +buildUnnamed2283() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2175(core.List<api.Binding> o) { +checkUnnamed2283(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -25712,7 +27634,7 @@ var o = new api.ZoneSetPolicyRequest(); buildCounterZoneSetPolicyRequest++; if (buildCounterZoneSetPolicyRequest < 3) { - o.bindings = buildUnnamed2175(); + o.bindings = buildUnnamed2283(); o.etag = "foo"; o.policy = buildPolicy(); } @@ -25723,7 +27645,7 @@ checkZoneSetPolicyRequest(api.ZoneSetPolicyRequest o) { buildCounterZoneSetPolicyRequest++; if (buildCounterZoneSetPolicyRequest < 3) { - checkUnnamed2175(o.bindings); + checkUnnamed2283(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); checkPolicy(o.policy); } @@ -26114,6 +28036,14 @@ }); }); + unittest.group("obj-schema-AutoscalingPolicyScaleInControl", () { + unittest.test("to-json--from-json", () { + var o = buildAutoscalingPolicyScaleInControl(); + var od = new api.AutoscalingPolicyScaleInControl.fromJson(o.toJson()); + checkAutoscalingPolicyScaleInControl(od); + }); + }); + unittest.group("obj-schema-Backend", () { unittest.test("to-json--from-json", () { var o = buildBackend(); @@ -26412,6 +28342,14 @@ }); }); + unittest.group("obj-schema-ConfidentialInstanceConfig", () { + unittest.test("to-json--from-json", () { + var o = buildConfidentialInstanceConfig(); + var od = new api.ConfidentialInstanceConfig.fromJson(o.toJson()); + checkConfidentialInstanceConfig(od); + }); + }); + unittest.group("obj-schema-ConnectionDraining", () { unittest.test("to-json--from-json", () { var o = buildConnectionDraining(); @@ -26944,6 +28882,14 @@ }); }); + unittest.group("obj-schema-GRPCHealthCheck", () { + unittest.test("to-json--from-json", () { + var o = buildGRPCHealthCheck(); + var od = new api.GRPCHealthCheck.fromJson(o.toJson()); + checkGRPCHealthCheck(od); + }); + }); + unittest.group("obj-schema-GlobalNetworkEndpointGroupsAttachEndpointsRequest", () { unittest.test("to-json--from-json", () { @@ -27078,6 +29024,46 @@ }); }); + unittest.group("obj-schema-HealthCheckService", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckService(); + var od = new api.HealthCheckService.fromJson(o.toJson()); + checkHealthCheckService(od); + }); + }); + + unittest.group("obj-schema-HealthCheckServiceReference", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckServiceReference(); + var od = new api.HealthCheckServiceReference.fromJson(o.toJson()); + checkHealthCheckServiceReference(od); + }); + }); + + unittest.group("obj-schema-HealthCheckServicesListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckServicesListWarningData(); + var od = new api.HealthCheckServicesListWarningData.fromJson(o.toJson()); + checkHealthCheckServicesListWarningData(od); + }); + }); + + unittest.group("obj-schema-HealthCheckServicesListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckServicesListWarning(); + var od = new api.HealthCheckServicesListWarning.fromJson(o.toJson()); + checkHealthCheckServicesListWarning(od); + }); + }); + + unittest.group("obj-schema-HealthCheckServicesList", () { + unittest.test("to-json--from-json", () { + var o = buildHealthCheckServicesList(); + var od = new api.HealthCheckServicesList.fromJson(o.toJson()); + checkHealthCheckServicesList(od); + }); + }); + unittest.group("obj-schema-HealthChecksAggregatedListWarningData", () { unittest.test("to-json--from-json", () { var o = buildHealthChecksAggregatedListWarningData(); @@ -27532,6 +29518,25 @@ }); }); + unittest.group("obj-schema-InstanceGroupManagerStatusStateful", () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagerStatusStateful(); + var od = new api.InstanceGroupManagerStatusStateful.fromJson(o.toJson()); + checkInstanceGroupManagerStatusStateful(od); + }); + }); + + unittest.group( + "obj-schema-InstanceGroupManagerStatusStatefulPerInstanceConfigs", () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagerStatusStatefulPerInstanceConfigs(); + var od = + new api.InstanceGroupManagerStatusStatefulPerInstanceConfigs.fromJson( + o.toJson()); + checkInstanceGroupManagerStatusStatefulPerInstanceConfigs(od); + }); + }); + unittest.group("obj-schema-InstanceGroupManagerStatusVersionTarget", () { unittest.test("to-json--from-json", () { var o = buildInstanceGroupManagerStatusVersionTarget(); @@ -27593,6 +29598,17 @@ }); }); + unittest.group("obj-schema-InstanceGroupManagersDeletePerInstanceConfigsReq", + () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersDeletePerInstanceConfigsReq(); + var od = + new api.InstanceGroupManagersDeletePerInstanceConfigsReq.fromJson( + o.toJson()); + checkInstanceGroupManagersDeletePerInstanceConfigsReq(od); + }); + }); + unittest.group("obj-schema-InstanceGroupManagersListErrorsResponse", () { unittest.test("to-json--from-json", () { var o = buildInstanceGroupManagersListErrorsResponse(); @@ -27613,6 +29629,49 @@ }); }); + unittest.group( + "obj-schema-InstanceGroupManagersListPerInstanceConfigsRespWarningData", + () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersListPerInstanceConfigsRespWarningData(); + var od = new api + .InstanceGroupManagersListPerInstanceConfigsRespWarningData.fromJson( + o.toJson()); + checkInstanceGroupManagersListPerInstanceConfigsRespWarningData(od); + }); + }); + + unittest.group( + "obj-schema-InstanceGroupManagersListPerInstanceConfigsRespWarning", () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersListPerInstanceConfigsRespWarning(); + var od = new api + .InstanceGroupManagersListPerInstanceConfigsRespWarning.fromJson( + o.toJson()); + checkInstanceGroupManagersListPerInstanceConfigsRespWarning(od); + }); + }); + + unittest.group("obj-schema-InstanceGroupManagersListPerInstanceConfigsResp", + () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersListPerInstanceConfigsResp(); + var od = new api.InstanceGroupManagersListPerInstanceConfigsResp.fromJson( + o.toJson()); + checkInstanceGroupManagersListPerInstanceConfigsResp(od); + }); + }); + + unittest.group("obj-schema-InstanceGroupManagersPatchPerInstanceConfigsReq", + () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersPatchPerInstanceConfigsReq(); + var od = new api.InstanceGroupManagersPatchPerInstanceConfigsReq.fromJson( + o.toJson()); + checkInstanceGroupManagersPatchPerInstanceConfigsReq(od); + }); + }); + unittest.group("obj-schema-InstanceGroupManagersRecreateInstancesRequest", () { unittest.test("to-json--from-json", () { @@ -27668,6 +29727,17 @@ }); }); + unittest.group("obj-schema-InstanceGroupManagersUpdatePerInstanceConfigsReq", + () { + unittest.test("to-json--from-json", () { + var o = buildInstanceGroupManagersUpdatePerInstanceConfigsReq(); + var od = + new api.InstanceGroupManagersUpdatePerInstanceConfigsReq.fromJson( + o.toJson()); + checkInstanceGroupManagersUpdatePerInstanceConfigsReq(od); + }); + }); + unittest.group("obj-schema-InstanceGroupsAddInstancesRequest", () { unittest.test("to-json--from-json", () { var o = buildInstanceGroupsAddInstancesRequest(); @@ -28254,6 +30324,14 @@ }); }); + unittest.group("obj-schema-LicenseResourceCommitment", () { + unittest.test("to-json--from-json", () { + var o = buildLicenseResourceCommitment(); + var od = new api.LicenseResourceCommitment.fromJson(o.toJson()); + checkLicenseResourceCommitment(od); + }); + }); + unittest.group("obj-schema-LicenseResourceRequirements", () { unittest.test("to-json--from-json", () { var o = buildLicenseResourceRequirements(); @@ -28326,6 +30404,14 @@ }); }); + unittest.group("obj-schema-MachineTypeAccelerators", () { + unittest.test("to-json--from-json", () { + var o = buildMachineTypeAccelerators(); + var od = new api.MachineTypeAccelerators.fromJson(o.toJson()); + checkMachineTypeAccelerators(od); + }); + }); + unittest.group("obj-schema-MachineTypeScratchDisks", () { unittest.test("to-json--from-json", () { var o = buildMachineTypeScratchDisks(); @@ -28555,6 +30641,30 @@ }); }); + unittest.group("obj-schema-NetworkEndpointGroupAppEngine", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkEndpointGroupAppEngine(); + var od = new api.NetworkEndpointGroupAppEngine.fromJson(o.toJson()); + checkNetworkEndpointGroupAppEngine(od); + }); + }); + + unittest.group("obj-schema-NetworkEndpointGroupCloudFunction", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkEndpointGroupCloudFunction(); + var od = new api.NetworkEndpointGroupCloudFunction.fromJson(o.toJson()); + checkNetworkEndpointGroupCloudFunction(od); + }); + }); + + unittest.group("obj-schema-NetworkEndpointGroupCloudRun", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkEndpointGroupCloudRun(); + var od = new api.NetworkEndpointGroupCloudRun.fromJson(o.toJson()); + checkNetworkEndpointGroupCloudRun(od); + }); + }); + unittest.group("obj-schema-NetworkEndpointGroupListWarningData", () { unittest.test("to-json--from-json", () { var o = buildNetworkEndpointGroupListWarningData(); @@ -29056,6 +31166,46 @@ }); }); + unittest.group("obj-schema-NotificationEndpoint", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationEndpoint(); + var od = new api.NotificationEndpoint.fromJson(o.toJson()); + checkNotificationEndpoint(od); + }); + }); + + unittest.group("obj-schema-NotificationEndpointGrpcSettings", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationEndpointGrpcSettings(); + var od = new api.NotificationEndpointGrpcSettings.fromJson(o.toJson()); + checkNotificationEndpointGrpcSettings(od); + }); + }); + + unittest.group("obj-schema-NotificationEndpointListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationEndpointListWarningData(); + var od = new api.NotificationEndpointListWarningData.fromJson(o.toJson()); + checkNotificationEndpointListWarningData(od); + }); + }); + + unittest.group("obj-schema-NotificationEndpointListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationEndpointListWarning(); + var od = new api.NotificationEndpointListWarning.fromJson(o.toJson()); + checkNotificationEndpointListWarning(od); + }); + }); + + unittest.group("obj-schema-NotificationEndpointList", () { + unittest.test("to-json--from-json", () { + var o = buildNotificationEndpointList(); + var od = new api.NotificationEndpointList.fromJson(o.toJson()); + checkNotificationEndpointList(od); + }); + }); + unittest.group("obj-schema-OperationErrorErrors", () { unittest.test("to-json--from-json", () { var o = buildOperationErrorErrors(); @@ -29351,6 +31501,22 @@ }); }); + unittest.group("obj-schema-PreservedState", () { + unittest.test("to-json--from-json", () { + var o = buildPreservedState(); + var od = new api.PreservedState.fromJson(o.toJson()); + checkPreservedState(od); + }); + }); + + unittest.group("obj-schema-PreservedStatePreservedDisk", () { + unittest.test("to-json--from-json", () { + var o = buildPreservedStatePreservedDisk(); + var od = new api.PreservedStatePreservedDisk.fromJson(o.toJson()); + checkPreservedStatePreservedDisk(od); + }); + }); + unittest.group("obj-schema-Project", () { unittest.test("to-json--from-json", () { var o = buildProject(); @@ -29522,6 +31688,17 @@ }); }); + unittest.group("obj-schema-RegionInstanceGroupManagerDeleteInstanceConfigReq", + () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagerDeleteInstanceConfigReq(); + var od = + new api.RegionInstanceGroupManagerDeleteInstanceConfigReq.fromJson( + o.toJson()); + checkRegionInstanceGroupManagerDeleteInstanceConfigReq(od); + }); + }); + unittest.group("obj-schema-RegionInstanceGroupManagerListWarningData", () { unittest.test("to-json--from-json", () { var o = buildRegionInstanceGroupManagerListWarningData(); @@ -29548,6 +31725,28 @@ }); }); + unittest.group("obj-schema-RegionInstanceGroupManagerPatchInstanceConfigReq", + () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagerPatchInstanceConfigReq(); + var od = + new api.RegionInstanceGroupManagerPatchInstanceConfigReq.fromJson( + o.toJson()); + checkRegionInstanceGroupManagerPatchInstanceConfigReq(od); + }); + }); + + unittest.group("obj-schema-RegionInstanceGroupManagerUpdateInstanceConfigReq", + () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagerUpdateInstanceConfigReq(); + var od = + new api.RegionInstanceGroupManagerUpdateInstanceConfigReq.fromJson( + o.toJson()); + checkRegionInstanceGroupManagerUpdateInstanceConfigReq(od); + }); + }); + unittest.group( "obj-schema-RegionInstanceGroupManagersAbandonInstancesRequest", () { unittest.test("to-json--from-json", () { @@ -29601,6 +31800,42 @@ }); }); + unittest.group( + "obj-schema-RegionInstanceGroupManagersListInstanceConfigsRespWarningData", + () { + unittest.test("to-json--from-json", () { + var o = + buildRegionInstanceGroupManagersListInstanceConfigsRespWarningData(); + var od = new api + .RegionInstanceGroupManagersListInstanceConfigsRespWarningData.fromJson( + o.toJson()); + checkRegionInstanceGroupManagersListInstanceConfigsRespWarningData(od); + }); + }); + + unittest.group( + "obj-schema-RegionInstanceGroupManagersListInstanceConfigsRespWarning", + () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersListInstanceConfigsRespWarning(); + var od = new api + .RegionInstanceGroupManagersListInstanceConfigsRespWarning.fromJson( + o.toJson()); + checkRegionInstanceGroupManagersListInstanceConfigsRespWarning(od); + }); + }); + + unittest.group( + "obj-schema-RegionInstanceGroupManagersListInstanceConfigsResp", () { + unittest.test("to-json--from-json", () { + var o = buildRegionInstanceGroupManagersListInstanceConfigsResp(); + var od = + new api.RegionInstanceGroupManagersListInstanceConfigsResp.fromJson( + o.toJson()); + checkRegionInstanceGroupManagersListInstanceConfigsResp(od); + }); + }); + unittest.group("obj-schema-RegionInstanceGroupManagersListInstancesResponse", () { unittest.test("to-json--from-json", () { @@ -30284,6 +32519,14 @@ }); }); + unittest.group("obj-schema-Screenshot", () { + unittest.test("to-json--from-json", () { + var o = buildScreenshot(); + var od = new api.Screenshot.fromJson(o.toJson()); + checkScreenshot(od); + }); + }); + unittest.group( "obj-schema-SecurityPoliciesListPreconfiguredExpressionSetsResponse", () { unittest.test("to-json--from-json", () { @@ -30635,6 +32878,31 @@ }); }); + unittest.group("obj-schema-StatefulPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildStatefulPolicy(); + var od = new api.StatefulPolicy.fromJson(o.toJson()); + checkStatefulPolicy(od); + }); + }); + + unittest.group("obj-schema-StatefulPolicyPreservedState", () { + unittest.test("to-json--from-json", () { + var o = buildStatefulPolicyPreservedState(); + var od = new api.StatefulPolicyPreservedState.fromJson(o.toJson()); + checkStatefulPolicyPreservedState(od); + }); + }); + + unittest.group("obj-schema-StatefulPolicyPreservedStateDiskDevice", () { + unittest.test("to-json--from-json", () { + var o = buildStatefulPolicyPreservedStateDiskDevice(); + var od = + new api.StatefulPolicyPreservedStateDiskDevice.fromJson(o.toJson()); + checkStatefulPolicyPreservedStateDiskDevice(od); + }); + }); + unittest.group("obj-schema-Subnetwork", () { unittest.test("to-json--from-json", () { var o = buildSubnetwork(); @@ -30764,6 +33032,38 @@ }); }); + unittest.group("obj-schema-TargetGrpcProxy", () { + unittest.test("to-json--from-json", () { + var o = buildTargetGrpcProxy(); + var od = new api.TargetGrpcProxy.fromJson(o.toJson()); + checkTargetGrpcProxy(od); + }); + }); + + unittest.group("obj-schema-TargetGrpcProxyListWarningData", () { + unittest.test("to-json--from-json", () { + var o = buildTargetGrpcProxyListWarningData(); + var od = new api.TargetGrpcProxyListWarningData.fromJson(o.toJson()); + checkTargetGrpcProxyListWarningData(od); + }); + }); + + unittest.group("obj-schema-TargetGrpcProxyListWarning", () { + unittest.test("to-json--from-json", () { + var o = buildTargetGrpcProxyListWarning(); + var od = new api.TargetGrpcProxyListWarning.fromJson(o.toJson()); + checkTargetGrpcProxyListWarning(od); + }); + }); + + unittest.group("obj-schema-TargetGrpcProxyList", () { + unittest.test("to-json--from-json", () { + var o = buildTargetGrpcProxyList(); + var od = new api.TargetGrpcProxyList.fromJson(o.toJson()); + checkTargetGrpcProxyList(od); + }); + }); + unittest.group("obj-schema-TargetHttpProxiesScopedListWarningData", () { unittest.test("to-json--from-json", () { var o = buildTargetHttpProxiesScopedListWarningData(); @@ -31902,6 +34202,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -31939,6 +34240,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -31954,6 +34257,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAcceleratorTypeAggregatedList(response); @@ -32020,6 +34324,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -32055,6 +34360,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -32069,6 +34376,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAcceleratorTypeList(response); @@ -32086,6 +34394,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -32123,6 +34432,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -32138,6 +34449,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAddressAggregatedList(response); @@ -32311,6 +34623,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -32346,6 +34659,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -32360,6 +34675,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAddressList(response); @@ -32377,6 +34693,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -32414,6 +34731,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -32429,6 +34748,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAutoscalerAggregatedList(response); @@ -32602,6 +34922,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -32637,6 +34958,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -32651,6 +34974,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAutoscalerList(response); @@ -33061,6 +35385,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -33096,6 +35421,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -33110,6 +35437,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBackendBucketList(response); @@ -33299,6 +35627,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -33336,6 +35665,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -33351,6 +35682,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBackendServiceAggregatedList(response); @@ -33634,6 +35966,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -33669,6 +36002,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -33683,6 +36018,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBackendServiceList(response); @@ -33871,6 +36207,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -33908,6 +36245,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -33923,6 +36262,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiskTypeAggregatedList(response); @@ -33987,6 +36327,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -34022,6 +36363,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -34036,6 +36379,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiskTypeList(response); @@ -34110,6 +36454,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -34147,6 +36492,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -34162,6 +36509,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiskAggregatedList(response); @@ -34338,6 +36686,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -34366,6 +36715,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -34376,6 +36728,7 @@ }), true); res .getIamPolicy(arg_project, arg_zone, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -34452,6 +36805,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -34487,6 +36841,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -34501,6 +36857,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiskList(response); @@ -34955,6 +37312,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -34990,6 +37348,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -35004,6 +37364,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkExternalVpnGatewayList(response); @@ -35283,6 +37644,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -35318,6 +37680,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -35332,6 +37696,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFirewallList(response); @@ -35462,6 +37827,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -35499,6 +37865,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -35514,6 +37882,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkForwardingRuleAggregatedList(response); @@ -35692,6 +38061,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -35727,6 +38097,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -35741,6 +38113,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkForwardingRuleList(response); @@ -36032,6 +38405,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -36067,6 +38441,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -36081,6 +38457,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAddressList(response); @@ -36256,6 +38633,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -36291,6 +38669,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -36305,6 +38685,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkForwardingRuleList(response); @@ -36716,6 +39097,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -36751,6 +39133,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -36765,6 +39149,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkEndpointGroupList(response); @@ -36781,6 +39166,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -36816,6 +39202,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -36831,6 +39219,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkEndpointGroupsListNetworkEndpoints(response); @@ -36849,6 +39238,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -36886,6 +39276,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -36901,6 +39293,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperationAggregatedList(response); @@ -37012,6 +39405,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -37047,6 +39441,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -37061,6 +39457,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperationList(response); @@ -37127,6 +39524,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -37164,6 +39562,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -37179,6 +39579,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHealthChecksAggregatedList(response); @@ -37348,6 +39749,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -37383,6 +39785,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -37397,6 +39801,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHealthCheckList(response); @@ -37684,6 +40089,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -37719,6 +40125,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -37733,6 +40141,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHttpHealthCheckList(response); @@ -38022,6 +40431,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -38057,6 +40467,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -38071,6 +40483,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHttpsHealthCheckList(response); @@ -38402,6 +40815,7 @@ api.ImagesResourceApi res = new api.ComputeApi(mock).images; var arg_project = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -38430,6 +40844,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -38439,7 +40856,9 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getIamPolicy(arg_project, arg_resource, $fields: arg_$fields) + .getIamPolicy(arg_project, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); }))); @@ -38513,6 +40932,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -38548,6 +40968,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -38562,12 +40984,69 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkImageList(response); }))); }); + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ImagesResourceApi res = new api.ComputeApi(mock).images; + var arg_request = buildImage(); + var arg_project = "foo"; + var arg_image = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Image.fromJson(json); + checkImage(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_image, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setIamPolicy", () { var mock = new HttpServerMock(); api.ImagesResourceApi res = new api.ComputeApi(mock).images; @@ -38799,6 +41278,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -38836,6 +41316,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -38852,6 +41334,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupManagerAggregatedList(response); @@ -39089,6 +41572,64 @@ }))); }); + unittest.test("method--deletePerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.InstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).instanceGroupManagers; + var arg_request = buildInstanceGroupManagersDeletePerInstanceConfigsReq(); + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.InstanceGroupManagersDeletePerInstanceConfigsReq.fromJson( + json); + checkInstanceGroupManagersDeletePerInstanceConfigsReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .deletePerInstanceConfigs( + arg_request, arg_project, arg_zone, arg_instanceGroupManager, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.InstanceGroupManagersResourceApi res = @@ -39207,6 +41748,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -39242,6 +41784,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -39256,6 +41800,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupManagerList(response); @@ -39273,6 +41818,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -39308,6 +41854,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -39323,6 +41871,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupManagersListErrorsResponse(response); @@ -39340,6 +41889,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -39375,6 +41925,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -39390,12 +41942,85 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupManagersListManagedInstancesResponse(response); }))); }); + unittest.test("method--listPerInstanceConfigs", () { + 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_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildInstanceGroupManagersListPerInstanceConfigsResp()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .listPerInstanceConfigs( + arg_project, arg_zone, arg_instanceGroupManager, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkInstanceGroupManagersListPerInstanceConfigsResp(response); + }))); + }); + unittest.test("method--patch", () { var mock = new HttpServerMock(); api.InstanceGroupManagersResourceApi res = @@ -39454,6 +42079,67 @@ }))); }); + unittest.test("method--patchPerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.InstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).instanceGroupManagers; + var arg_request = buildInstanceGroupManagersPatchPerInstanceConfigsReq(); + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.InstanceGroupManagersPatchPerInstanceConfigsReq.fromJson( + json); + checkInstanceGroupManagersPatchPerInstanceConfigsReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .patchPerInstanceConfigs( + arg_request, arg_project, arg_zone, arg_instanceGroupManager, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--recreateInstances", () { var mock = new HttpServerMock(); api.InstanceGroupManagersResourceApi res = @@ -39692,6 +42378,67 @@ checkOperation(response); }))); }); + + unittest.test("method--updatePerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.InstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).instanceGroupManagers; + var arg_request = buildInstanceGroupManagersUpdatePerInstanceConfigsReq(); + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.InstanceGroupManagersUpdatePerInstanceConfigsReq.fromJson( + json); + checkInstanceGroupManagersUpdatePerInstanceConfigsReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .updatePerInstanceConfigs( + arg_request, arg_project, arg_zone, arg_instanceGroupManager, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-InstanceGroupsResourceApi", () { @@ -39763,6 +42510,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -39800,6 +42548,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -39815,6 +42565,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupAggregatedList(response); @@ -39992,6 +42743,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -40027,6 +42779,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -40041,6 +42795,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupList(response); @@ -40059,6 +42814,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.InstanceGroupsListInstancesRequest.fromJson(json); @@ -40097,6 +42853,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -40111,6 +42869,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceGroupsListInstances(response); @@ -40344,6 +43103,7 @@ new api.ComputeApi(mock).instanceTemplates; var arg_project = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -40372,6 +43132,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -40381,7 +43144,9 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getIamPolicy(arg_project, arg_resource, $fields: arg_$fields) + .getIamPolicy(arg_project, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); }))); @@ -40452,6 +43217,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -40487,6 +43253,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -40501,6 +43269,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceTemplateList(response); @@ -40744,6 +43513,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -40781,6 +43551,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -40796,6 +43568,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceAggregatedList(response); @@ -41146,6 +43919,61 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_zone, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--getScreenshot", () { + var mock = new HttpServerMock(); + api.InstancesResourceApi res = new api.ComputeApi(mock).instances; + var arg_project = "foo"; + var arg_zone = "foo"; + var arg_instance = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -41179,14 +44007,14 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildPolicy()); + var resp = convert.json.encode(buildScreenshot()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getIamPolicy(arg_project, arg_zone, arg_resource, + .getScreenshot(arg_project, arg_zone, arg_instance, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkPolicy(response); + checkScreenshot(response); }))); }); @@ -41365,6 +44193,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -41400,6 +44229,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -41414,6 +44245,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceList(response); @@ -41430,6 +44262,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -41465,6 +44298,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -41479,6 +44314,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInstanceListReferrers(response); @@ -42865,6 +45701,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -42902,6 +45739,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -42918,6 +45757,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInterconnectAttachmentAggregatedList(response); @@ -43101,6 +45941,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -43136,6 +45977,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -43150,6 +45993,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInterconnectAttachmentList(response); @@ -43275,6 +46119,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -43310,6 +46155,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -43324,6 +46171,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInterconnectLocationList(response); @@ -43544,6 +46392,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -43579,6 +46428,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -43593,6 +46444,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInterconnectList(response); @@ -43865,6 +46717,7 @@ api.LicensesResourceApi res = new api.ComputeApi(mock).licenses; var arg_project = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -43893,6 +46746,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -43902,7 +46758,9 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getIamPolicy(arg_project, arg_resource, $fields: arg_$fields) + .getIamPolicy(arg_project, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); }))); @@ -43971,6 +46829,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -44006,6 +46865,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44020,6 +46881,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLicensesListResponse(response); @@ -44143,6 +47005,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -44180,6 +47043,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44195,6 +47060,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMachineTypeAggregatedList(response); @@ -44259,6 +47125,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -44294,6 +47161,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44308,6 +47177,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMachineTypeList(response); @@ -44326,6 +47196,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -44363,6 +47234,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44379,6 +47252,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkEndpointGroupAggregatedList(response); @@ -44677,6 +47551,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -44712,6 +47587,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44726,6 +47603,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkEndpointGroupList(response); @@ -44744,6 +47622,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -44783,6 +47662,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -44799,6 +47680,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkEndpointGroupsListNetworkEndpoints(response); @@ -45081,6 +47963,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45116,6 +47999,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45130,6 +48015,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNetworkList(response); @@ -45148,6 +48034,7 @@ var arg_pageToken = "foo"; var arg_peeringName = "foo"; var arg_region = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45188,6 +48075,8 @@ unittest.expect( queryMap["peeringName"].first, unittest.equals(arg_peeringName)); unittest.expect(queryMap["region"].first, unittest.equals(arg_region)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45205,6 +48094,7 @@ pageToken: arg_pageToken, peeringName: arg_peeringName, region: arg_region, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkExchangedPeeringRoutesList(response); @@ -45499,6 +48389,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45536,6 +48427,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45551,6 +48444,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeGroupAggregatedList(response); @@ -45722,6 +48616,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45750,6 +48645,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45760,6 +48658,7 @@ }), true); res .getIamPolicy(arg_project, arg_zone, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -45834,6 +48733,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45869,6 +48769,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45883,6 +48785,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeGroupList(response); @@ -45899,6 +48802,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -45934,6 +48838,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -45948,6 +48854,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeGroupsListNodes(response); @@ -46187,6 +49094,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46224,6 +49132,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46239,6 +49149,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeTemplateAggregatedList(response); @@ -46353,6 +49264,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46381,6 +49293,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46391,6 +49306,7 @@ }), true); res .getIamPolicy(arg_project, arg_region, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -46462,6 +49378,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46497,6 +49414,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46511,6 +49430,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeTemplateList(response); @@ -46637,6 +49557,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46674,6 +49595,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46689,6 +49612,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeTypeAggregatedList(response); @@ -46753,6 +49677,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46788,6 +49713,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46802,6 +49729,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodeTypeList(response); @@ -46820,6 +49748,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -46857,6 +49786,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -46872,6 +49803,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPacketMirroringAggregatedList(response); @@ -47050,6 +49982,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -47085,6 +50018,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -47099,6 +50034,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPacketMirroringList(response); @@ -47535,6 +50471,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -47570,6 +50507,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -47584,6 +50523,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProjectsGetXpnResources(response); @@ -47599,6 +50539,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ProjectsListXpnHostsRequest.fromJson(json); @@ -47637,6 +50578,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -47651,6 +50594,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkXpnHostList(response); @@ -48105,6 +51049,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -48140,6 +51085,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -48154,6 +51101,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionAutoscalerList(response); @@ -48513,6 +51461,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -48548,6 +51497,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -48562,6 +51513,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBackendServiceList(response); @@ -48696,6 +51648,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -48733,6 +51686,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -48748,6 +51703,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCommitmentAggregatedList(response); @@ -48871,6 +51827,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -48906,6 +51863,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -48920,6 +51879,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCommitmentList(response); @@ -48988,6 +51948,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -49023,6 +51984,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -49037,6 +52000,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionDiskTypeList(response); @@ -49261,6 +52225,61 @@ }))); }); + unittest.test("method--getIamPolicy", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + unittest.test("method--insert", () { var mock = new HttpServerMock(); api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; @@ -49331,6 +52350,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -49366,6 +52386,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -49380,6 +52402,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDiskList(response); @@ -49502,6 +52525,60 @@ }))); }); + unittest.test("method--setIamPolicy", () { + var mock = new HttpServerMock(); + api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; + var arg_request = buildRegionSetPolicyRequest(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RegionSetPolicyRequest.fromJson(json); + checkRegionSetPolicyRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_resource, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + unittest.test("method--setLabels", () { var mock = new HttpServerMock(); api.RegionDisksResourceApi res = new api.ComputeApi(mock).regionDisks; @@ -49615,6 +52692,297 @@ }); }); + unittest.group("resource-RegionHealthCheckServicesResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.RegionHealthCheckServicesResourceApi res = + new api.ComputeApi(mock).regionHealthCheckServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_healthCheckService = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_healthCheckService, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.RegionHealthCheckServicesResourceApi res = + new api.ComputeApi(mock).regionHealthCheckServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_healthCheckService = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildHealthCheckService()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_region, arg_healthCheckService, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkHealthCheckService(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.RegionHealthCheckServicesResourceApi res = + new api.ComputeApi(mock).regionHealthCheckServices; + var arg_request = buildHealthCheckService(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.HealthCheckService.fromJson(json); + checkHealthCheckService(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_region, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.RegionHealthCheckServicesResourceApi res = + new api.ComputeApi(mock).regionHealthCheckServices; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildHealthCheckServicesList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_region, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkHealthCheckServicesList(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.RegionHealthCheckServicesResourceApi res = + new api.ComputeApi(mock).regionHealthCheckServices; + var arg_request = buildHealthCheckService(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_healthCheckService = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.HealthCheckService.fromJson(json); + checkHealthCheckService(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_healthCheckService, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-RegionHealthChecksResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -49787,6 +53155,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -49822,6 +53191,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -49836,6 +53207,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHealthCheckList(response); @@ -50258,6 +53630,65 @@ }))); }); + unittest.test("method--deletePerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = + buildRegionInstanceGroupManagerDeleteInstanceConfigReq(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.RegionInstanceGroupManagerDeleteInstanceConfigReq.fromJson( + json); + checkRegionInstanceGroupManagerDeleteInstanceConfigReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .deletePerInstanceConfigs( + arg_request, arg_project, arg_region, arg_instanceGroupManager, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.RegionInstanceGroupManagersResourceApi res = @@ -50376,6 +53807,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -50411,6 +53843,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -50425,6 +53859,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionInstanceGroupManagerList(response); @@ -50442,6 +53877,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -50477,6 +53913,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -50492,6 +53930,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionInstanceGroupManagersListErrorsResponse(response); @@ -50509,6 +53948,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -50544,6 +53984,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -50560,12 +54002,85 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionInstanceGroupManagersListInstancesResponse(response); }))); }); + unittest.test("method--listPerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildRegionInstanceGroupManagersListInstanceConfigsResp()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .listPerInstanceConfigs( + arg_project, arg_region, arg_instanceGroupManager, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkRegionInstanceGroupManagersListInstanceConfigsResp(response); + }))); + }); + unittest.test("method--patch", () { var mock = new HttpServerMock(); api.RegionInstanceGroupManagersResourceApi res = @@ -50624,6 +54139,67 @@ }))); }); + unittest.test("method--patchPerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = buildRegionInstanceGroupManagerPatchInstanceConfigReq(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.RegionInstanceGroupManagerPatchInstanceConfigReq.fromJson( + json); + checkRegionInstanceGroupManagerPatchInstanceConfigReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .patchPerInstanceConfigs( + arg_request, arg_project, arg_region, arg_instanceGroupManager, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--recreateInstances", () { var mock = new HttpServerMock(); api.RegionInstanceGroupManagersResourceApi res = @@ -50862,6 +54438,68 @@ checkOperation(response); }))); }); + + unittest.test("method--updatePerInstanceConfigs", () { + var mock = new HttpServerMock(); + api.RegionInstanceGroupManagersResourceApi res = + new api.ComputeApi(mock).regionInstanceGroupManagers; + var arg_request = + buildRegionInstanceGroupManagerUpdateInstanceConfigReq(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_instanceGroupManager = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.RegionInstanceGroupManagerUpdateInstanceConfigReq.fromJson( + json); + checkRegionInstanceGroupManagerUpdateInstanceConfigReq(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .updatePerInstanceConfigs( + arg_request, arg_project, arg_region, arg_instanceGroupManager, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); }); unittest.group("resource-RegionInstanceGroupsResourceApi", () { @@ -50925,6 +54563,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -50960,6 +54599,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -50974,6 +54615,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionInstanceGroupList(response); @@ -50992,6 +54634,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -51031,6 +54674,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -51047,6 +54692,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionInstanceGroupsListInstances(response); @@ -51114,6 +54760,472 @@ }); }); + unittest.group("resource-RegionNetworkEndpointGroupsResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.RegionNetworkEndpointGroupsResourceApi res = + new api.ComputeApi(mock).regionNetworkEndpointGroups; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_networkEndpointGroup = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_networkEndpointGroup, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.RegionNetworkEndpointGroupsResourceApi res = + new api.ComputeApi(mock).regionNetworkEndpointGroups; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_networkEndpointGroup = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNetworkEndpointGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_region, arg_networkEndpointGroup, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNetworkEndpointGroup(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.RegionNetworkEndpointGroupsResourceApi res = + new api.ComputeApi(mock).regionNetworkEndpointGroups; + var arg_request = buildNetworkEndpointGroup(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NetworkEndpointGroup.fromJson(json); + checkNetworkEndpointGroup(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_region, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.RegionNetworkEndpointGroupsResourceApi res = + new api.ComputeApi(mock).regionNetworkEndpointGroups; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNetworkEndpointGroupList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_region, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNetworkEndpointGroupList(response); + }))); + }); + }); + + unittest.group("resource-RegionNotificationEndpointsResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.RegionNotificationEndpointsResourceApi res = + new api.ComputeApi(mock).regionNotificationEndpoints; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_notificationEndpoint = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_region, arg_notificationEndpoint, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.RegionNotificationEndpointsResourceApi res = + new api.ComputeApi(mock).regionNotificationEndpoints; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_notificationEndpoint = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationEndpoint()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_region, arg_notificationEndpoint, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationEndpoint(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.RegionNotificationEndpointsResourceApi res = + new api.ComputeApi(mock).regionNotificationEndpoints; + var arg_request = buildNotificationEndpoint(); + var arg_project = "foo"; + var arg_region = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NotificationEndpoint.fromJson(json); + checkNotificationEndpoint(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_region, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.RegionNotificationEndpointsResourceApi res = + new api.ComputeApi(mock).regionNotificationEndpoints; + var arg_project = "foo"; + var arg_region = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNotificationEndpointList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_project, arg_region, + filter: arg_filter, + maxResults: arg_maxResults, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNotificationEndpointList(response); + }))); + }); + }); + unittest.group("resource-RegionOperationsResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -51223,6 +55335,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -51258,6 +55371,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -51272,6 +55387,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperationList(response); @@ -51502,6 +55618,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -51537,6 +55654,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -51551,6 +55670,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSslCertificateList(response); @@ -51731,6 +55851,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -51766,6 +55887,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -51780,6 +55903,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpProxyList(response); @@ -52018,6 +56142,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -52053,6 +56178,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -52067,6 +56194,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpsProxyList(response); @@ -52362,6 +56490,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -52397,6 +56526,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -52411,6 +56542,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlMapList(response); @@ -52643,6 +56775,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -52678,6 +56811,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -52692,6 +56827,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRegionList(response); @@ -52709,6 +56845,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -52746,6 +56883,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -52761,6 +56900,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkReservationAggregatedList(response); @@ -52875,6 +57015,7 @@ var arg_project = "foo"; var arg_zone = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -52903,6 +57044,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -52913,6 +57057,7 @@ }), true); res .getIamPolicy(arg_project, arg_zone, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -52984,6 +57129,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53019,6 +57165,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53033,6 +57181,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkReservationList(response); @@ -53216,6 +57365,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53253,6 +57403,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53268,6 +57420,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkResourcePolicyAggregatedList(response); @@ -53386,6 +57539,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53414,6 +57568,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53424,6 +57581,7 @@ }), true); res .getIamPolicy(arg_project, arg_region, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -53497,6 +57655,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53532,6 +57691,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53546,6 +57707,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkResourcePolicyList(response); @@ -53674,6 +57836,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53711,6 +57874,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53726,6 +57891,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRouterAggregatedList(response); @@ -53844,6 +58010,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -53879,6 +58046,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -53893,6 +58062,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVmEndpointNatMappingsList(response); @@ -54014,6 +58184,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -54049,6 +58220,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -54063,6 +58236,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRouterList(response); @@ -54402,6 +58576,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -54437,6 +58612,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -54451,6 +58628,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRouteList(response); @@ -54733,6 +58911,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -54768,6 +58947,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -54782,6 +58963,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSecurityPolicyList(response); @@ -54797,6 +58979,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -54832,6 +59015,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -54847,6 +59032,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSecurityPoliciesListPreconfiguredExpressionSetsResponse(response); @@ -55127,6 +59313,7 @@ api.SnapshotsResourceApi res = new api.ComputeApi(mock).snapshots; var arg_project = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55155,6 +59342,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55164,7 +59354,9 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .getIamPolicy(arg_project, arg_resource, $fields: arg_$fields) + .getIamPolicy(arg_project, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); }))); @@ -55178,6 +59370,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55213,6 +59406,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55227,6 +59422,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSnapshotList(response); @@ -55404,6 +59600,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55441,6 +59638,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55456,6 +59655,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSslCertificateAggregatedList(response); @@ -55629,6 +59829,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55664,6 +59865,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55678,6 +59881,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSslCertificateList(response); @@ -55849,6 +60053,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55884,6 +60089,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55898,6 +60105,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSslPoliciesList(response); @@ -55912,6 +60120,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -55947,6 +60156,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -55962,6 +60173,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSslPoliciesListAvailableFeaturesResponse(response); @@ -56035,6 +60247,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56072,6 +60285,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -56087,6 +60302,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSubnetworkAggregatedList(response); @@ -56259,6 +60475,7 @@ var arg_project = "foo"; var arg_region = "foo"; var arg_resource = "foo"; + var arg_optionsRequestedPolicyVersion = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56287,6 +60504,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + core.int.parse(queryMap["optionsRequestedPolicyVersion"].first), + unittest.equals(arg_optionsRequestedPolicyVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -56297,6 +60517,7 @@ }), true); res .getIamPolicy(arg_project, arg_region, arg_resource, + optionsRequestedPolicyVersion: arg_optionsRequestedPolicyVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPolicy(response); @@ -56368,6 +60589,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56403,6 +60625,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -56417,6 +60641,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSubnetworkList(response); @@ -56431,6 +60656,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56466,6 +60692,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -56480,6 +60708,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUsableSubnetworksAggregatedList(response); @@ -56717,6 +60946,291 @@ }); }); + unittest.group("resource-TargetGrpcProxiesResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.TargetGrpcProxiesResourceApi res = + new api.ComputeApi(mock).targetGrpcProxies; + var arg_project = "foo"; + var arg_targetGrpcProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_targetGrpcProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.TargetGrpcProxiesResourceApi res = + new api.ComputeApi(mock).targetGrpcProxies; + var arg_project = "foo"; + var arg_targetGrpcProxy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildTargetGrpcProxy()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_project, arg_targetGrpcProxy, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTargetGrpcProxy(response); + }))); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.TargetGrpcProxiesResourceApi res = + new api.ComputeApi(mock).targetGrpcProxies; + var arg_request = buildTargetGrpcProxy(); + var arg_project = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetGrpcProxy.fromJson(json); + checkTargetGrpcProxy(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.TargetGrpcProxiesResourceApi res = + new api.ComputeApi(mock).targetGrpcProxies; + var arg_project = "foo"; + var arg_filter = "foo"; + var arg_maxResults = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildTargetGrpcProxyList()); + 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, + returnPartialSuccess: arg_returnPartialSuccess, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTargetGrpcProxyList(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.TargetGrpcProxiesResourceApi res = + new api.ComputeApi(mock).targetGrpcProxies; + var arg_request = buildTargetGrpcProxy(); + var arg_project = "foo"; + var arg_targetGrpcProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetGrpcProxy.fromJson(json); + checkTargetGrpcProxy(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_targetGrpcProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + unittest.group("resource-TargetHttpProxiesResourceApi", () { unittest.test("method--aggregatedList", () { var mock = new HttpServerMock(); @@ -56728,6 +61242,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56765,6 +61280,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -56780,6 +61297,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpProxyAggregatedList(response); @@ -56953,6 +61471,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -56988,6 +61507,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -57002,12 +61523,70 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpProxyList(response); }))); }); + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.TargetHttpProxiesResourceApi res = + new api.ComputeApi(mock).targetHttpProxies; + var arg_request = buildTargetHttpProxy(); + var arg_project = "foo"; + var arg_targetHttpProxy = "foo"; + var arg_requestId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TargetHttpProxy.fromJson(json); + checkTargetHttpProxy(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestId"].first, unittest.equals(arg_requestId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_targetHttpProxy, + requestId: arg_requestId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + unittest.test("method--setUrlMap", () { var mock = new HttpServerMock(); api.TargetHttpProxiesResourceApi res = @@ -57077,6 +61656,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -57114,6 +61694,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -57129,6 +61711,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpsProxyAggregatedList(response); @@ -57302,6 +61885,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -57337,6 +61921,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -57351,6 +61937,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetHttpsProxyList(response); @@ -57599,6 +62186,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -57636,6 +62224,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -57651,6 +62241,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetInstanceAggregatedList(response); @@ -57828,6 +62419,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -57863,6 +62455,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -57877,6 +62471,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetInstanceList(response); @@ -58008,6 +62603,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -58045,6 +62641,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -58060,6 +62658,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetPoolAggregatedList(response); @@ -58287,6 +62886,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -58322,6 +62922,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -58336,6 +62938,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetPoolList(response); @@ -58688,6 +63291,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -58723,6 +63327,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -58737,6 +63343,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetSslProxyList(response); @@ -59142,6 +63749,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -59177,6 +63785,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -59191,6 +63801,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetTcpProxyList(response); @@ -59324,6 +63935,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -59361,6 +63973,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -59376,6 +63990,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetVpnGatewayAggregatedList(response); @@ -59554,6 +64169,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -59589,6 +64205,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -59603,6 +64221,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetVpnGatewayList(response); @@ -59620,6 +64239,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -59657,6 +64277,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -59672,6 +64294,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlMapsAggregatedList(response); @@ -59897,6 +64520,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -59932,6 +64556,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -59946,6 +64572,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUrlMapList(response); @@ -60127,6 +64754,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -60164,6 +64792,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -60179,6 +64809,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVpnGatewayAggregatedList(response); @@ -60402,6 +65033,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -60437,6 +65069,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -60451,6 +65085,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVpnGatewayList(response); @@ -60580,6 +65215,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -60617,6 +65253,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -60632,6 +65270,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVpnTunnelAggregatedList(response); @@ -60805,6 +65444,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -60840,6 +65480,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -60854,6 +65496,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVpnTunnelList(response); @@ -60970,6 +65613,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -61005,6 +65649,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -61019,6 +65665,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperationList(response); @@ -61133,6 +65780,7 @@ var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_returnPartialSuccess = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -61168,6 +65816,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["returnPartialSuccess"].first, + unittest.equals("$arg_returnPartialSuccess")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -61182,6 +65832,7 @@ maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + returnPartialSuccess: arg_returnPartialSuccess, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkZoneList(response);
diff --git a/generated/googleapis/test/container/v1_test.dart b/generated/googleapis/test/container/v1_test.dart index 928567b..dc6c5f1 100644 --- a/generated/googleapis/test/container/v1_test.dart +++ b/generated/googleapis/test/container/v1_test.dart
@@ -77,6 +77,8 @@ buildCounterAddonsConfig++; if (buildCounterAddonsConfig < 3) { o.cloudRunConfig = buildCloudRunConfig(); + o.configConnectorConfig = buildConfigConnectorConfig(); + o.dnsCacheConfig = buildDnsCacheConfig(); o.horizontalPodAutoscaling = buildHorizontalPodAutoscaling(); o.httpLoadBalancing = buildHttpLoadBalancing(); o.kubernetesDashboard = buildKubernetesDashboard(); @@ -90,6 +92,8 @@ buildCounterAddonsConfig++; if (buildCounterAddonsConfig < 3) { checkCloudRunConfig(o.cloudRunConfig); + checkConfigConnectorConfig(o.configConnectorConfig); + checkDnsCacheConfig(o.dnsCacheConfig); checkHorizontalPodAutoscaling(o.horizontalPodAutoscaling); checkHttpLoadBalancing(o.httpLoadBalancing); checkKubernetesDashboard(o.kubernetesDashboard); @@ -140,14 +144,14 @@ buildCounterAutoUpgradeOptions--; } -buildUnnamed4100() { +buildUnnamed4336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4100(core.List<core.String> o) { +checkUnnamed4336(core.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,9 +162,14 @@ var o = new api.AutoprovisioningNodePoolDefaults(); buildCounterAutoprovisioningNodePoolDefaults++; if (buildCounterAutoprovisioningNodePoolDefaults < 3) { + o.bootDiskKmsKey = "foo"; + o.diskSizeGb = 42; + o.diskType = "foo"; o.management = buildNodeManagement(); - o.oauthScopes = buildUnnamed4100(); + o.minCpuPlatform = "foo"; + o.oauthScopes = buildUnnamed4336(); o.serviceAccount = "foo"; + o.shieldedInstanceConfig = buildShieldedInstanceConfig(); o.upgradeSettings = buildUpgradeSettings(); } buildCounterAutoprovisioningNodePoolDefaults--; @@ -170,9 +179,14 @@ checkAutoprovisioningNodePoolDefaults(api.AutoprovisioningNodePoolDefaults o) { buildCounterAutoprovisioningNodePoolDefaults++; if (buildCounterAutoprovisioningNodePoolDefaults < 3) { + unittest.expect(o.bootDiskKmsKey, unittest.equals('foo')); + unittest.expect(o.diskSizeGb, unittest.equals(42)); + unittest.expect(o.diskType, unittest.equals('foo')); checkNodeManagement(o.management); - checkUnnamed4100(o.oauthScopes); + unittest.expect(o.minCpuPlatform, unittest.equals('foo')); + checkUnnamed4336(o.oauthScopes); unittest.expect(o.serviceAccount, unittest.equals('foo')); + checkShieldedInstanceConfig(o.shieldedInstanceConfig); checkUpgradeSettings(o.upgradeSettings); } buildCounterAutoprovisioningNodePoolDefaults--; @@ -287,6 +301,7 @@ buildCounterCloudRunConfig++; if (buildCounterCloudRunConfig < 3) { o.disabled = true; + o.loadBalancerType = "foo"; } buildCounterCloudRunConfig--; return o; @@ -296,70 +311,71 @@ buildCounterCloudRunConfig++; if (buildCounterCloudRunConfig < 3) { unittest.expect(o.disabled, unittest.isTrue); + unittest.expect(o.loadBalancerType, unittest.equals('foo')); } buildCounterCloudRunConfig--; } -buildUnnamed4101() { +buildUnnamed4337() { var o = new core.List<api.StatusCondition>(); o.add(buildStatusCondition()); o.add(buildStatusCondition()); return o; } -checkUnnamed4101(core.List<api.StatusCondition> o) { +checkUnnamed4337(core.List<api.StatusCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkStatusCondition(o[0]); checkStatusCondition(o[1]); } -buildUnnamed4102() { +buildUnnamed4338() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4102(core.List<core.String> o) { +checkUnnamed4338(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4103() { +buildUnnamed4339() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4103(core.List<core.String> o) { +checkUnnamed4339(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4104() { +buildUnnamed4340() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed4104(core.List<api.NodePool> o) { +checkUnnamed4340(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); } -buildUnnamed4105() { +buildUnnamed4341() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4105(core.Map<core.String, core.String> o) { +checkUnnamed4341(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')); @@ -375,7 +391,7 @@ o.autoscaling = buildClusterAutoscaling(); o.binaryAuthorization = buildBinaryAuthorization(); o.clusterIpv4Cidr = "foo"; - o.conditions = buildUnnamed4101(); + o.conditions = buildUnnamed4337(); o.createTime = "foo"; o.currentMasterVersion = "foo"; o.currentNodeCount = 42; @@ -389,12 +405,12 @@ o.expireTime = "foo"; o.initialClusterVersion = "foo"; o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed4102(); + o.instanceGroupUrls = buildUnnamed4338(); o.ipAllocationPolicy = buildIPAllocationPolicy(); o.labelFingerprint = "foo"; o.legacyAbac = buildLegacyAbac(); o.location = "foo"; - o.locations = buildUnnamed4103(); + o.locations = buildUnnamed4339(); o.loggingService = "foo"; o.maintenancePolicy = buildMaintenancePolicy(); o.masterAuth = buildMasterAuth(); @@ -406,9 +422,10 @@ o.networkPolicy = buildNetworkPolicy(); o.nodeConfig = buildNodeConfig(); o.nodeIpv4CidrSize = 42; - o.nodePools = buildUnnamed4104(); + o.nodePools = buildUnnamed4340(); o.privateClusterConfig = buildPrivateClusterConfig(); - o.resourceLabels = buildUnnamed4105(); + o.releaseChannel = buildReleaseChannel(); + o.resourceLabels = buildUnnamed4341(); o.resourceUsageExportConfig = buildResourceUsageExportConfig(); o.selfLink = "foo"; o.servicesIpv4Cidr = "foo"; @@ -433,7 +450,7 @@ checkClusterAutoscaling(o.autoscaling); checkBinaryAuthorization(o.binaryAuthorization); unittest.expect(o.clusterIpv4Cidr, unittest.equals('foo')); - checkUnnamed4101(o.conditions); + checkUnnamed4337(o.conditions); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.currentMasterVersion, unittest.equals('foo')); unittest.expect(o.currentNodeCount, unittest.equals(42)); @@ -447,12 +464,12 @@ unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.initialClusterVersion, unittest.equals('foo')); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed4102(o.instanceGroupUrls); + checkUnnamed4338(o.instanceGroupUrls); checkIPAllocationPolicy(o.ipAllocationPolicy); unittest.expect(o.labelFingerprint, unittest.equals('foo')); checkLegacyAbac(o.legacyAbac); unittest.expect(o.location, unittest.equals('foo')); - checkUnnamed4103(o.locations); + checkUnnamed4339(o.locations); unittest.expect(o.loggingService, unittest.equals('foo')); checkMaintenancePolicy(o.maintenancePolicy); checkMasterAuth(o.masterAuth); @@ -464,9 +481,10 @@ checkNetworkPolicy(o.networkPolicy); checkNodeConfig(o.nodeConfig); unittest.expect(o.nodeIpv4CidrSize, unittest.equals(42)); - checkUnnamed4104(o.nodePools); + checkUnnamed4340(o.nodePools); checkPrivateClusterConfig(o.privateClusterConfig); - checkUnnamed4105(o.resourceLabels); + checkReleaseChannel(o.releaseChannel); + checkUnnamed4341(o.resourceLabels); checkResourceUsageExportConfig(o.resourceUsageExportConfig); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.servicesIpv4Cidr, unittest.equals('foo')); @@ -482,27 +500,27 @@ buildCounterCluster--; } -buildUnnamed4106() { +buildUnnamed4342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4106(core.List<core.String> o) { +checkUnnamed4342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4107() { +buildUnnamed4343() { var o = new core.List<api.ResourceLimit>(); o.add(buildResourceLimit()); o.add(buildResourceLimit()); return o; } -checkUnnamed4107(core.List<api.ResourceLimit> o) { +checkUnnamed4343(core.List<api.ResourceLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceLimit(o[0]); checkResourceLimit(o[1]); @@ -513,11 +531,11 @@ var o = new api.ClusterAutoscaling(); buildCounterClusterAutoscaling++; if (buildCounterClusterAutoscaling < 3) { - o.autoprovisioningLocations = buildUnnamed4106(); + o.autoprovisioningLocations = buildUnnamed4342(); o.autoprovisioningNodePoolDefaults = buildAutoprovisioningNodePoolDefaults(); o.enableNodeAutoprovisioning = true; - o.resourceLimits = buildUnnamed4107(); + o.resourceLimits = buildUnnamed4343(); } buildCounterClusterAutoscaling--; return o; @@ -526,22 +544,22 @@ checkClusterAutoscaling(api.ClusterAutoscaling o) { buildCounterClusterAutoscaling++; if (buildCounterClusterAutoscaling < 3) { - checkUnnamed4106(o.autoprovisioningLocations); + checkUnnamed4342(o.autoprovisioningLocations); checkAutoprovisioningNodePoolDefaults(o.autoprovisioningNodePoolDefaults); unittest.expect(o.enableNodeAutoprovisioning, unittest.isTrue); - checkUnnamed4107(o.resourceLimits); + checkUnnamed4343(o.resourceLimits); } buildCounterClusterAutoscaling--; } -buildUnnamed4108() { +buildUnnamed4344() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4108(core.List<core.String> o) { +checkUnnamed4344(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -556,9 +574,10 @@ o.desiredBinaryAuthorization = buildBinaryAuthorization(); o.desiredClusterAutoscaling = buildClusterAutoscaling(); o.desiredDatabaseEncryption = buildDatabaseEncryption(); + o.desiredDefaultSnatStatus = buildDefaultSnatStatus(); o.desiredImageType = "foo"; o.desiredIntraNodeVisibilityConfig = buildIntraNodeVisibilityConfig(); - o.desiredLocations = buildUnnamed4108(); + o.desiredLocations = buildUnnamed4344(); o.desiredLoggingService = "foo"; o.desiredMasterAuthorizedNetworksConfig = buildMasterAuthorizedNetworksConfig(); @@ -567,6 +586,8 @@ o.desiredNodePoolAutoscaling = buildNodePoolAutoscaling(); o.desiredNodePoolId = "foo"; o.desiredNodeVersion = "foo"; + o.desiredPrivateClusterConfig = buildPrivateClusterConfig(); + o.desiredReleaseChannel = buildReleaseChannel(); o.desiredResourceUsageExportConfig = buildResourceUsageExportConfig(); o.desiredShieldedNodes = buildShieldedNodes(); o.desiredVerticalPodAutoscaling = buildVerticalPodAutoscaling(); @@ -583,9 +604,10 @@ checkBinaryAuthorization(o.desiredBinaryAuthorization); checkClusterAutoscaling(o.desiredClusterAutoscaling); checkDatabaseEncryption(o.desiredDatabaseEncryption); + checkDefaultSnatStatus(o.desiredDefaultSnatStatus); unittest.expect(o.desiredImageType, unittest.equals('foo')); checkIntraNodeVisibilityConfig(o.desiredIntraNodeVisibilityConfig); - checkUnnamed4108(o.desiredLocations); + checkUnnamed4344(o.desiredLocations); unittest.expect(o.desiredLoggingService, unittest.equals('foo')); checkMasterAuthorizedNetworksConfig( o.desiredMasterAuthorizedNetworksConfig); @@ -594,6 +616,8 @@ checkNodePoolAutoscaling(o.desiredNodePoolAutoscaling); unittest.expect(o.desiredNodePoolId, unittest.equals('foo')); unittest.expect(o.desiredNodeVersion, unittest.equals('foo')); + checkPrivateClusterConfig(o.desiredPrivateClusterConfig); + checkReleaseChannel(o.desiredReleaseChannel); checkResourceUsageExportConfig(o.desiredResourceUsageExportConfig); checkShieldedNodes(o.desiredShieldedNodes); checkVerticalPodAutoscaling(o.desiredVerticalPodAutoscaling); @@ -627,6 +651,25 @@ buildCounterCompleteIPRotationRequest--; } +core.int buildCounterConfigConnectorConfig = 0; +buildConfigConnectorConfig() { + var o = new api.ConfigConnectorConfig(); + buildCounterConfigConnectorConfig++; + if (buildCounterConfigConnectorConfig < 3) { + o.enabled = true; + } + buildCounterConfigConnectorConfig--; + return o; +} + +checkConfigConnectorConfig(api.ConfigConnectorConfig o) { + buildCounterConfigConnectorConfig++; + if (buildCounterConfigConnectorConfig < 3) { + unittest.expect(o.enabled, unittest.isTrue); + } + buildCounterConfigConnectorConfig--; +} + core.int buildCounterConsumptionMeteringConfig = 0; buildConsumptionMeteringConfig() { var o = new api.ConsumptionMeteringConfig(); @@ -740,6 +783,44 @@ buildCounterDatabaseEncryption--; } +core.int buildCounterDefaultSnatStatus = 0; +buildDefaultSnatStatus() { + var o = new api.DefaultSnatStatus(); + buildCounterDefaultSnatStatus++; + if (buildCounterDefaultSnatStatus < 3) { + o.disabled = true; + } + buildCounterDefaultSnatStatus--; + return o; +} + +checkDefaultSnatStatus(api.DefaultSnatStatus o) { + buildCounterDefaultSnatStatus++; + if (buildCounterDefaultSnatStatus < 3) { + unittest.expect(o.disabled, unittest.isTrue); + } + buildCounterDefaultSnatStatus--; +} + +core.int buildCounterDnsCacheConfig = 0; +buildDnsCacheConfig() { + var o = new api.DnsCacheConfig(); + buildCounterDnsCacheConfig++; + if (buildCounterDnsCacheConfig < 3) { + o.enabled = true; + } + buildCounterDnsCacheConfig--; + return o; +} + +checkDnsCacheConfig(api.DnsCacheConfig o) { + buildCounterDnsCacheConfig++; + if (buildCounterDnsCacheConfig < 3) { + unittest.expect(o.enabled, unittest.isTrue); + } + buildCounterDnsCacheConfig--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -755,14 +836,14 @@ buildCounterEmpty--; } -buildUnnamed4109() { +buildUnnamed4345() { var o = new core.List<api.Jwk>(); o.add(buildJwk()); o.add(buildJwk()); return o; } -checkUnnamed4109(core.List<api.Jwk> o) { +checkUnnamed4345(core.List<api.Jwk> o) { unittest.expect(o, unittest.hasLength(2)); checkJwk(o[0]); checkJwk(o[1]); @@ -774,7 +855,7 @@ buildCounterGetJSONWebKeysResponse++; if (buildCounterGetJSONWebKeysResponse < 3) { o.cacheHeader = buildHttpCacheControlResponseHeader(); - o.keys = buildUnnamed4109(); + o.keys = buildUnnamed4345(); } buildCounterGetJSONWebKeysResponse--; return o; @@ -784,71 +865,71 @@ buildCounterGetJSONWebKeysResponse++; if (buildCounterGetJSONWebKeysResponse < 3) { checkHttpCacheControlResponseHeader(o.cacheHeader); - checkUnnamed4109(o.keys); + checkUnnamed4345(o.keys); } buildCounterGetJSONWebKeysResponse--; } -buildUnnamed4110() { +buildUnnamed4346() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4110(core.List<core.String> o) { +checkUnnamed4346(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4111() { +buildUnnamed4347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4111(core.List<core.String> o) { +checkUnnamed4347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4112() { +buildUnnamed4348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4112(core.List<core.String> o) { +checkUnnamed4348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4113() { +buildUnnamed4349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4113(core.List<core.String> o) { +checkUnnamed4349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4114() { +buildUnnamed4350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4114(core.List<core.String> o) { +checkUnnamed4350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -860,13 +941,13 @@ buildCounterGetOpenIDConfigResponse++; if (buildCounterGetOpenIDConfigResponse < 3) { o.cacheHeader = buildHttpCacheControlResponseHeader(); - o.claimsSupported = buildUnnamed4110(); - o.grantTypes = buildUnnamed4111(); - o.idTokenSigningAlgValuesSupported = buildUnnamed4112(); + o.claimsSupported = buildUnnamed4346(); + o.grantTypes = buildUnnamed4347(); + o.idTokenSigningAlgValuesSupported = buildUnnamed4348(); o.issuer = "foo"; o.jwksUri = "foo"; - o.responseTypesSupported = buildUnnamed4113(); - o.subjectTypesSupported = buildUnnamed4114(); + o.responseTypesSupported = buildUnnamed4349(); + o.subjectTypesSupported = buildUnnamed4350(); } buildCounterGetOpenIDConfigResponse--; return o; @@ -876,13 +957,13 @@ buildCounterGetOpenIDConfigResponse++; if (buildCounterGetOpenIDConfigResponse < 3) { checkHttpCacheControlResponseHeader(o.cacheHeader); - checkUnnamed4110(o.claimsSupported); - checkUnnamed4111(o.grantTypes); - checkUnnamed4112(o.idTokenSigningAlgValuesSupported); + checkUnnamed4346(o.claimsSupported); + checkUnnamed4347(o.grantTypes); + checkUnnamed4348(o.idTokenSigningAlgValuesSupported); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); - checkUnnamed4113(o.responseTypesSupported); - checkUnnamed4114(o.subjectTypesSupported); + checkUnnamed4349(o.responseTypesSupported); + checkUnnamed4350(o.subjectTypesSupported); } buildCounterGetOpenIDConfigResponse--; } @@ -965,6 +1046,7 @@ o.subnetworkName = "foo"; o.tpuIpv4CidrBlock = "foo"; o.useIpAliases = true; + o.useRoutes = true; } buildCounterIPAllocationPolicy--; return o; @@ -985,6 +1067,7 @@ unittest.expect(o.subnetworkName, unittest.equals('foo')); unittest.expect(o.tpuIpv4CidrBlock, unittest.equals('foo')); unittest.expect(o.useIpAliases, unittest.isTrue); + unittest.expect(o.useRoutes, unittest.isTrue); } buildCounterIPAllocationPolicy--; } @@ -1081,27 +1164,27 @@ buildCounterLegacyAbac--; } -buildUnnamed4115() { +buildUnnamed4351() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed4115(core.List<api.Cluster> o) { +checkUnnamed4351(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); } -buildUnnamed4116() { +buildUnnamed4352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4116(core.List<core.String> o) { +checkUnnamed4352(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1112,8 +1195,8 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed4115(); - o.missingZones = buildUnnamed4116(); + o.clusters = buildUnnamed4351(); + o.missingZones = buildUnnamed4352(); } buildCounterListClustersResponse--; return o; @@ -1122,20 +1205,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed4115(o.clusters); - checkUnnamed4116(o.missingZones); + checkUnnamed4351(o.clusters); + checkUnnamed4352(o.missingZones); } buildCounterListClustersResponse--; } -buildUnnamed4117() { +buildUnnamed4353() { var o = new core.List<api.NodePool>(); o.add(buildNodePool()); o.add(buildNodePool()); return o; } -checkUnnamed4117(core.List<api.NodePool> o) { +checkUnnamed4353(core.List<api.NodePool> o) { unittest.expect(o, unittest.hasLength(2)); checkNodePool(o[0]); checkNodePool(o[1]); @@ -1146,7 +1229,7 @@ var o = new api.ListNodePoolsResponse(); buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - o.nodePools = buildUnnamed4117(); + o.nodePools = buildUnnamed4353(); } buildCounterListNodePoolsResponse--; return o; @@ -1155,32 +1238,32 @@ checkListNodePoolsResponse(api.ListNodePoolsResponse o) { buildCounterListNodePoolsResponse++; if (buildCounterListNodePoolsResponse < 3) { - checkUnnamed4117(o.nodePools); + checkUnnamed4353(o.nodePools); } buildCounterListNodePoolsResponse--; } -buildUnnamed4118() { +buildUnnamed4354() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4118(core.List<core.String> o) { +checkUnnamed4354(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4119() { +buildUnnamed4355() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4119(core.List<api.Operation> o) { +checkUnnamed4355(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1191,8 +1274,8 @@ var o = new api.ListOperationsResponse(); buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - o.missingZones = buildUnnamed4118(); - o.operations = buildUnnamed4119(); + o.missingZones = buildUnnamed4354(); + o.operations = buildUnnamed4355(); } buildCounterListOperationsResponse--; return o; @@ -1201,20 +1284,20 @@ checkListOperationsResponse(api.ListOperationsResponse o) { buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { - checkUnnamed4118(o.missingZones); - checkUnnamed4119(o.operations); + checkUnnamed4354(o.missingZones); + checkUnnamed4355(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4120() { +buildUnnamed4356() { var o = new core.List<api.UsableSubnetwork>(); o.add(buildUsableSubnetwork()); o.add(buildUsableSubnetwork()); return o; } -checkUnnamed4120(core.List<api.UsableSubnetwork> o) { +checkUnnamed4356(core.List<api.UsableSubnetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetwork(o[0]); checkUsableSubnetwork(o[1]); @@ -1226,7 +1309,7 @@ buildCounterListUsableSubnetworksResponse++; if (buildCounterListUsableSubnetworksResponse < 3) { o.nextPageToken = "foo"; - o.subnetworks = buildUnnamed4120(); + o.subnetworks = buildUnnamed4356(); } buildCounterListUsableSubnetworksResponse--; return o; @@ -1236,7 +1319,7 @@ buildCounterListUsableSubnetworksResponse++; if (buildCounterListUsableSubnetworksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4120(o.subnetworks); + checkUnnamed4356(o.subnetworks); } buildCounterListUsableSubnetworksResponse--; } @@ -1262,14 +1345,14 @@ buildCounterMaintenancePolicy--; } -buildUnnamed4121() { +buildUnnamed4357() { var o = new core.Map<core.String, api.TimeWindow>(); o["x"] = buildTimeWindow(); o["y"] = buildTimeWindow(); return o; } -checkUnnamed4121(core.Map<core.String, api.TimeWindow> o) { +checkUnnamed4357(core.Map<core.String, api.TimeWindow> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeWindow(o["x"]); checkTimeWindow(o["y"]); @@ -1281,7 +1364,7 @@ buildCounterMaintenanceWindow++; if (buildCounterMaintenanceWindow < 3) { o.dailyMaintenanceWindow = buildDailyMaintenanceWindow(); - o.maintenanceExclusions = buildUnnamed4121(); + o.maintenanceExclusions = buildUnnamed4357(); o.recurringWindow = buildRecurringTimeWindow(); } buildCounterMaintenanceWindow--; @@ -1292,7 +1375,7 @@ buildCounterMaintenanceWindow++; if (buildCounterMaintenanceWindow < 3) { checkDailyMaintenanceWindow(o.dailyMaintenanceWindow); - checkUnnamed4121(o.maintenanceExclusions); + checkUnnamed4357(o.maintenanceExclusions); checkRecurringTimeWindow(o.recurringWindow); } buildCounterMaintenanceWindow--; @@ -1327,14 +1410,14 @@ buildCounterMasterAuth--; } -buildUnnamed4122() { +buildUnnamed4358() { var o = new core.List<api.CidrBlock>(); o.add(buildCidrBlock()); o.add(buildCidrBlock()); return o; } -checkUnnamed4122(core.List<api.CidrBlock> o) { +checkUnnamed4358(core.List<api.CidrBlock> o) { unittest.expect(o, unittest.hasLength(2)); checkCidrBlock(o[0]); checkCidrBlock(o[1]); @@ -1345,7 +1428,7 @@ var o = new api.MasterAuthorizedNetworksConfig(); buildCounterMasterAuthorizedNetworksConfig++; if (buildCounterMasterAuthorizedNetworksConfig < 3) { - o.cidrBlocks = buildUnnamed4122(); + o.cidrBlocks = buildUnnamed4358(); o.enabled = true; } buildCounterMasterAuthorizedNetworksConfig--; @@ -1355,7 +1438,7 @@ checkMasterAuthorizedNetworksConfig(api.MasterAuthorizedNetworksConfig o) { buildCounterMasterAuthorizedNetworksConfig++; if (buildCounterMasterAuthorizedNetworksConfig < 3) { - checkUnnamed4122(o.cidrBlocks); + checkUnnamed4358(o.cidrBlocks); unittest.expect(o.enabled, unittest.isTrue); } buildCounterMasterAuthorizedNetworksConfig--; @@ -1410,6 +1493,7 @@ var o = new api.NetworkConfig(); buildCounterNetworkConfig++; if (buildCounterNetworkConfig < 3) { + o.defaultSnatStatus = buildDefaultSnatStatus(); o.enableIntraNodeVisibility = true; o.network = "foo"; o.subnetwork = "foo"; @@ -1421,6 +1505,7 @@ checkNetworkConfig(api.NetworkConfig o) { buildCounterNetworkConfig++; if (buildCounterNetworkConfig < 3) { + checkDefaultSnatStatus(o.defaultSnatStatus); unittest.expect(o.enableIntraNodeVisibility, unittest.isTrue); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); @@ -1468,79 +1553,79 @@ buildCounterNetworkPolicyConfig--; } -buildUnnamed4123() { +buildUnnamed4359() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed4123(core.List<api.AcceleratorConfig> o) { +checkUnnamed4359(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed4124() { +buildUnnamed4360() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4124(core.Map<core.String, core.String> o) { +checkUnnamed4360(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')); } -buildUnnamed4125() { +buildUnnamed4361() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4125(core.Map<core.String, core.String> o) { +checkUnnamed4361(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')); } -buildUnnamed4126() { +buildUnnamed4362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4126(core.List<core.String> o) { +checkUnnamed4362(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4127() { +buildUnnamed4363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4127(core.List<core.String> o) { +checkUnnamed4363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4128() { +buildUnnamed4364() { var o = new core.List<api.NodeTaint>(); o.add(buildNodeTaint()); o.add(buildNodeTaint()); return o; } -checkUnnamed4128(core.List<api.NodeTaint> o) { +checkUnnamed4364(core.List<api.NodeTaint> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeTaint(o[0]); checkNodeTaint(o[1]); @@ -1551,23 +1636,25 @@ var o = new api.NodeConfig(); buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { - o.accelerators = buildUnnamed4123(); + o.accelerators = buildUnnamed4359(); + o.bootDiskKmsKey = "foo"; o.diskSizeGb = 42; o.diskType = "foo"; o.imageType = "foo"; - o.labels = buildUnnamed4124(); + o.labels = buildUnnamed4360(); o.localSsdCount = 42; o.machineType = "foo"; - o.metadata = buildUnnamed4125(); + o.metadata = buildUnnamed4361(); o.minCpuPlatform = "foo"; - o.oauthScopes = buildUnnamed4126(); + o.nodeGroup = "foo"; + o.oauthScopes = buildUnnamed4362(); o.preemptible = true; o.reservationAffinity = buildReservationAffinity(); o.sandboxConfig = buildSandboxConfig(); o.serviceAccount = "foo"; o.shieldedInstanceConfig = buildShieldedInstanceConfig(); - o.tags = buildUnnamed4127(); - o.taints = buildUnnamed4128(); + o.tags = buildUnnamed4363(); + o.taints = buildUnnamed4364(); o.workloadMetadataConfig = buildWorkloadMetadataConfig(); } buildCounterNodeConfig--; @@ -1577,23 +1664,25 @@ checkNodeConfig(api.NodeConfig o) { buildCounterNodeConfig++; if (buildCounterNodeConfig < 3) { - checkUnnamed4123(o.accelerators); + checkUnnamed4359(o.accelerators); + unittest.expect(o.bootDiskKmsKey, unittest.equals('foo')); unittest.expect(o.diskSizeGb, unittest.equals(42)); unittest.expect(o.diskType, unittest.equals('foo')); unittest.expect(o.imageType, unittest.equals('foo')); - checkUnnamed4124(o.labels); + checkUnnamed4360(o.labels); unittest.expect(o.localSsdCount, unittest.equals(42)); unittest.expect(o.machineType, unittest.equals('foo')); - checkUnnamed4125(o.metadata); + checkUnnamed4361(o.metadata); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); - checkUnnamed4126(o.oauthScopes); + unittest.expect(o.nodeGroup, unittest.equals('foo')); + checkUnnamed4362(o.oauthScopes); unittest.expect(o.preemptible, unittest.isTrue); checkReservationAffinity(o.reservationAffinity); checkSandboxConfig(o.sandboxConfig); unittest.expect(o.serviceAccount, unittest.equals('foo')); checkShieldedInstanceConfig(o.shieldedInstanceConfig); - checkUnnamed4127(o.tags); - checkUnnamed4128(o.taints); + checkUnnamed4363(o.tags); + checkUnnamed4364(o.taints); checkWorkloadMetadataConfig(o.workloadMetadataConfig); } buildCounterNodeConfig--; @@ -1622,40 +1711,40 @@ buildCounterNodeManagement--; } -buildUnnamed4129() { +buildUnnamed4365() { var o = new core.List<api.StatusCondition>(); o.add(buildStatusCondition()); o.add(buildStatusCondition()); return o; } -checkUnnamed4129(core.List<api.StatusCondition> o) { +checkUnnamed4365(core.List<api.StatusCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkStatusCondition(o[0]); checkStatusCondition(o[1]); } -buildUnnamed4130() { +buildUnnamed4366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4130(core.List<core.String> o) { +checkUnnamed4366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4131() { +buildUnnamed4367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4131(core.List<core.String> o) { +checkUnnamed4367(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1667,11 +1756,11 @@ buildCounterNodePool++; if (buildCounterNodePool < 3) { o.autoscaling = buildNodePoolAutoscaling(); - o.conditions = buildUnnamed4129(); + o.conditions = buildUnnamed4365(); o.config = buildNodeConfig(); o.initialNodeCount = 42; - o.instanceGroupUrls = buildUnnamed4130(); - o.locations = buildUnnamed4131(); + o.instanceGroupUrls = buildUnnamed4366(); + o.locations = buildUnnamed4367(); o.management = buildNodeManagement(); o.maxPodsConstraint = buildMaxPodsConstraint(); o.name = "foo"; @@ -1690,11 +1779,11 @@ buildCounterNodePool++; if (buildCounterNodePool < 3) { checkNodePoolAutoscaling(o.autoscaling); - checkUnnamed4129(o.conditions); + checkUnnamed4365(o.conditions); checkNodeConfig(o.config); unittest.expect(o.initialNodeCount, unittest.equals(42)); - checkUnnamed4130(o.instanceGroupUrls); - checkUnnamed4131(o.locations); + checkUnnamed4366(o.instanceGroupUrls); + checkUnnamed4367(o.locations); checkNodeManagement(o.management); checkMaxPodsConstraint(o.maxPodsConstraint); unittest.expect(o.name, unittest.equals('foo')); @@ -1756,27 +1845,27 @@ buildCounterNodeTaint--; } -buildUnnamed4132() { +buildUnnamed4368() { var o = new core.List<api.StatusCondition>(); o.add(buildStatusCondition()); o.add(buildStatusCondition()); return o; } -checkUnnamed4132(core.List<api.StatusCondition> o) { +checkUnnamed4368(core.List<api.StatusCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkStatusCondition(o[0]); checkStatusCondition(o[1]); } -buildUnnamed4133() { +buildUnnamed4369() { var o = new core.List<api.StatusCondition>(); o.add(buildStatusCondition()); o.add(buildStatusCondition()); return o; } -checkUnnamed4133(core.List<api.StatusCondition> o) { +checkUnnamed4369(core.List<api.StatusCondition> o) { unittest.expect(o, unittest.hasLength(2)); checkStatusCondition(o[0]); checkStatusCondition(o[1]); @@ -1787,12 +1876,12 @@ var o = new api.Operation(); buildCounterOperation++; if (buildCounterOperation < 3) { - o.clusterConditions = buildUnnamed4132(); + o.clusterConditions = buildUnnamed4368(); o.detail = "foo"; o.endTime = "foo"; o.location = "foo"; o.name = "foo"; - o.nodepoolConditions = buildUnnamed4133(); + o.nodepoolConditions = buildUnnamed4369(); o.operationType = "foo"; o.progress = buildOperationProgress(); o.selfLink = "foo"; @@ -1809,12 +1898,12 @@ checkOperation(api.Operation o) { buildCounterOperation++; if (buildCounterOperation < 3) { - checkUnnamed4132(o.clusterConditions); + checkUnnamed4368(o.clusterConditions); unittest.expect(o.detail, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4133(o.nodepoolConditions); + checkUnnamed4369(o.nodepoolConditions); unittest.expect(o.operationType, unittest.equals('foo')); checkOperationProgress(o.progress); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -1827,27 +1916,27 @@ buildCounterOperation--; } -buildUnnamed4134() { +buildUnnamed4370() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed4134(core.List<api.Metric> o) { +checkUnnamed4370(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed4135() { +buildUnnamed4371() { var o = new core.List<api.OperationProgress>(); o.add(buildOperationProgress()); o.add(buildOperationProgress()); return o; } -checkUnnamed4135(core.List<api.OperationProgress> o) { +checkUnnamed4371(core.List<api.OperationProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationProgress(o[0]); checkOperationProgress(o[1]); @@ -1858,9 +1947,9 @@ var o = new api.OperationProgress(); buildCounterOperationProgress++; if (buildCounterOperationProgress < 3) { - o.metrics = buildUnnamed4134(); + o.metrics = buildUnnamed4370(); o.name = "foo"; - o.stages = buildUnnamed4135(); + o.stages = buildUnnamed4371(); o.status = "foo"; } buildCounterOperationProgress--; @@ -1870,9 +1959,9 @@ checkOperationProgress(api.OperationProgress o) { buildCounterOperationProgress++; if (buildCounterOperationProgress < 3) { - checkUnnamed4134(o.metrics); + checkUnnamed4370(o.metrics); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4135(o.stages); + checkUnnamed4371(o.stages); unittest.expect(o.status, unittest.equals('foo')); } buildCounterOperationProgress--; @@ -1885,6 +1974,7 @@ if (buildCounterPrivateClusterConfig < 3) { o.enablePrivateEndpoint = true; o.enablePrivateNodes = true; + o.masterGlobalAccessConfig = buildPrivateClusterMasterGlobalAccessConfig(); o.masterIpv4CidrBlock = "foo"; o.peeringName = "foo"; o.privateEndpoint = "foo"; @@ -1899,6 +1989,7 @@ if (buildCounterPrivateClusterConfig < 3) { unittest.expect(o.enablePrivateEndpoint, unittest.isTrue); unittest.expect(o.enablePrivateNodes, unittest.isTrue); + checkPrivateClusterMasterGlobalAccessConfig(o.masterGlobalAccessConfig); unittest.expect(o.masterIpv4CidrBlock, unittest.equals('foo')); unittest.expect(o.peeringName, unittest.equals('foo')); unittest.expect(o.privateEndpoint, unittest.equals('foo')); @@ -1907,6 +1998,26 @@ buildCounterPrivateClusterConfig--; } +core.int buildCounterPrivateClusterMasterGlobalAccessConfig = 0; +buildPrivateClusterMasterGlobalAccessConfig() { + var o = new api.PrivateClusterMasterGlobalAccessConfig(); + buildCounterPrivateClusterMasterGlobalAccessConfig++; + if (buildCounterPrivateClusterMasterGlobalAccessConfig < 3) { + o.enabled = true; + } + buildCounterPrivateClusterMasterGlobalAccessConfig--; + return o; +} + +checkPrivateClusterMasterGlobalAccessConfig( + api.PrivateClusterMasterGlobalAccessConfig o) { + buildCounterPrivateClusterMasterGlobalAccessConfig++; + if (buildCounterPrivateClusterMasterGlobalAccessConfig < 3) { + unittest.expect(o.enabled, unittest.isTrue); + } + buildCounterPrivateClusterMasterGlobalAccessConfig--; +} + core.int buildCounterRecurringTimeWindow = 0; buildRecurringTimeWindow() { var o = new api.RecurringTimeWindow(); @@ -1928,14 +2039,69 @@ buildCounterRecurringTimeWindow--; } -buildUnnamed4136() { +core.int buildCounterReleaseChannel = 0; +buildReleaseChannel() { + var o = new api.ReleaseChannel(); + buildCounterReleaseChannel++; + if (buildCounterReleaseChannel < 3) { + o.channel = "foo"; + } + buildCounterReleaseChannel--; + return o; +} + +checkReleaseChannel(api.ReleaseChannel o) { + buildCounterReleaseChannel++; + if (buildCounterReleaseChannel < 3) { + unittest.expect(o.channel, unittest.equals('foo')); + } + buildCounterReleaseChannel--; +} + +buildUnnamed4372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4136(core.List<core.String> o) { +checkUnnamed4372(core.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 buildCounterReleaseChannelConfig = 0; +buildReleaseChannelConfig() { + var o = new api.ReleaseChannelConfig(); + buildCounterReleaseChannelConfig++; + if (buildCounterReleaseChannelConfig < 3) { + o.channel = "foo"; + o.defaultVersion = "foo"; + o.validVersions = buildUnnamed4372(); + } + buildCounterReleaseChannelConfig--; + return o; +} + +checkReleaseChannelConfig(api.ReleaseChannelConfig o) { + buildCounterReleaseChannelConfig++; + if (buildCounterReleaseChannelConfig < 3) { + unittest.expect(o.channel, unittest.equals('foo')); + unittest.expect(o.defaultVersion, unittest.equals('foo')); + checkUnnamed4372(o.validVersions); + } + buildCounterReleaseChannelConfig--; +} + +buildUnnamed4373() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4373(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1948,7 +2114,7 @@ if (buildCounterReservationAffinity < 3) { o.consumeReservationType = "foo"; o.key = "foo"; - o.values = buildUnnamed4136(); + o.values = buildUnnamed4373(); } buildCounterReservationAffinity--; return o; @@ -1959,7 +2125,7 @@ if (buildCounterReservationAffinity < 3) { unittest.expect(o.consumeReservationType, unittest.equals('foo')); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed4136(o.values); + checkUnnamed4373(o.values); } buildCounterReservationAffinity--; } @@ -2056,40 +2222,53 @@ buildCounterSandboxConfig--; } -buildUnnamed4137() { +buildUnnamed4374() { + var o = new core.List<api.ReleaseChannelConfig>(); + o.add(buildReleaseChannelConfig()); + o.add(buildReleaseChannelConfig()); + return o; +} + +checkUnnamed4374(core.List<api.ReleaseChannelConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkReleaseChannelConfig(o[0]); + checkReleaseChannelConfig(o[1]); +} + +buildUnnamed4375() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4137(core.List<core.String> o) { +checkUnnamed4375(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4138() { +buildUnnamed4376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4138(core.List<core.String> o) { +checkUnnamed4376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4139() { +buildUnnamed4377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4139(core.List<core.String> o) { +checkUnnamed4377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2100,11 +2279,12 @@ var o = new api.ServerConfig(); buildCounterServerConfig++; if (buildCounterServerConfig < 3) { + o.channels = buildUnnamed4374(); o.defaultClusterVersion = "foo"; o.defaultImageType = "foo"; - o.validImageTypes = buildUnnamed4137(); - o.validMasterVersions = buildUnnamed4138(); - o.validNodeVersions = buildUnnamed4139(); + o.validImageTypes = buildUnnamed4375(); + o.validMasterVersions = buildUnnamed4376(); + o.validNodeVersions = buildUnnamed4377(); } buildCounterServerConfig--; return o; @@ -2113,11 +2293,12 @@ checkServerConfig(api.ServerConfig o) { buildCounterServerConfig++; if (buildCounterServerConfig < 3) { + checkUnnamed4374(o.channels); unittest.expect(o.defaultClusterVersion, unittest.equals('foo')); unittest.expect(o.defaultImageType, unittest.equals('foo')); - checkUnnamed4137(o.validImageTypes); - checkUnnamed4138(o.validMasterVersions); - checkUnnamed4139(o.validNodeVersions); + checkUnnamed4375(o.validImageTypes); + checkUnnamed4376(o.validMasterVersions); + checkUnnamed4377(o.validNodeVersions); } buildCounterServerConfig--; } @@ -2149,14 +2330,14 @@ buildCounterSetAddonsConfigRequest--; } -buildUnnamed4140() { +buildUnnamed4378() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4140(core.Map<core.String, core.String> o) { +checkUnnamed4378(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')); @@ -2171,7 +2352,7 @@ o.labelFingerprint = "foo"; o.name = "foo"; o.projectId = "foo"; - o.resourceLabels = buildUnnamed4140(); + o.resourceLabels = buildUnnamed4378(); o.zone = "foo"; } buildCounterSetLabelsRequest--; @@ -2185,7 +2366,7 @@ unittest.expect(o.labelFingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed4140(o.resourceLabels); + checkUnnamed4378(o.resourceLabels); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterSetLabelsRequest--; @@ -2218,14 +2399,14 @@ buildCounterSetLegacyAbacRequest--; } -buildUnnamed4141() { +buildUnnamed4379() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4141(core.List<core.String> o) { +checkUnnamed4379(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2237,7 +2418,7 @@ buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { o.clusterId = "foo"; - o.locations = buildUnnamed4141(); + o.locations = buildUnnamed4379(); o.name = "foo"; o.projectId = "foo"; o.zone = "foo"; @@ -2250,7 +2431,7 @@ buildCounterSetLocationsRequest++; if (buildCounterSetLocationsRequest < 3) { unittest.expect(o.clusterId, unittest.equals('foo')); - checkUnnamed4141(o.locations); + checkUnnamed4379(o.locations); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -2645,14 +2826,14 @@ buildCounterUpdateMasterRequest--; } -buildUnnamed4142() { +buildUnnamed4380() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4142(core.List<core.String> o) { +checkUnnamed4380(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2665,7 +2846,7 @@ if (buildCounterUpdateNodePoolRequest < 3) { o.clusterId = "foo"; o.imageType = "foo"; - o.locations = buildUnnamed4142(); + o.locations = buildUnnamed4380(); o.name = "foo"; o.nodePoolId = "foo"; o.nodeVersion = "foo"; @@ -2683,7 +2864,7 @@ if (buildCounterUpdateNodePoolRequest < 3) { unittest.expect(o.clusterId, unittest.equals('foo')); unittest.expect(o.imageType, unittest.equals('foo')); - checkUnnamed4142(o.locations); + checkUnnamed4380(o.locations); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodePoolId, unittest.equals('foo')); unittest.expect(o.nodeVersion, unittest.equals('foo')); @@ -2695,6 +2876,35 @@ buildCounterUpdateNodePoolRequest--; } +core.int buildCounterUpgradeEvent = 0; +buildUpgradeEvent() { + var o = new api.UpgradeEvent(); + buildCounterUpgradeEvent++; + if (buildCounterUpgradeEvent < 3) { + o.currentVersion = "foo"; + o.operation = "foo"; + o.operationStartTime = "foo"; + o.resource = "foo"; + o.resourceType = "foo"; + o.targetVersion = "foo"; + } + buildCounterUpgradeEvent--; + return o; +} + +checkUpgradeEvent(api.UpgradeEvent o) { + buildCounterUpgradeEvent++; + if (buildCounterUpgradeEvent < 3) { + unittest.expect(o.currentVersion, unittest.equals('foo')); + unittest.expect(o.operation, unittest.equals('foo')); + unittest.expect(o.operationStartTime, unittest.equals('foo')); + unittest.expect(o.resource, unittest.equals('foo')); + unittest.expect(o.resourceType, unittest.equals('foo')); + unittest.expect(o.targetVersion, unittest.equals('foo')); + } + buildCounterUpgradeEvent--; +} + core.int buildCounterUpgradeSettings = 0; buildUpgradeSettings() { var o = new api.UpgradeSettings(); @@ -2716,14 +2926,14 @@ buildCounterUpgradeSettings--; } -buildUnnamed4143() { +buildUnnamed4381() { var o = new core.List<api.UsableSubnetworkSecondaryRange>(); o.add(buildUsableSubnetworkSecondaryRange()); o.add(buildUsableSubnetworkSecondaryRange()); return o; } -checkUnnamed4143(core.List<api.UsableSubnetworkSecondaryRange> o) { +checkUnnamed4381(core.List<api.UsableSubnetworkSecondaryRange> o) { unittest.expect(o, unittest.hasLength(2)); checkUsableSubnetworkSecondaryRange(o[0]); checkUsableSubnetworkSecondaryRange(o[1]); @@ -2736,7 +2946,7 @@ if (buildCounterUsableSubnetwork < 3) { o.ipCidrRange = "foo"; o.network = "foo"; - o.secondaryIpRanges = buildUnnamed4143(); + o.secondaryIpRanges = buildUnnamed4381(); o.statusMessage = "foo"; o.subnetwork = "foo"; } @@ -2749,7 +2959,7 @@ if (buildCounterUsableSubnetwork < 3) { unittest.expect(o.ipCidrRange, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed4143(o.secondaryIpRanges); + checkUnnamed4381(o.secondaryIpRanges); unittest.expect(o.statusMessage, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); } @@ -2957,6 +3167,14 @@ }); }); + unittest.group("obj-schema-ConfigConnectorConfig", () { + unittest.test("to-json--from-json", () { + var o = buildConfigConnectorConfig(); + var od = new api.ConfigConnectorConfig.fromJson(o.toJson()); + checkConfigConnectorConfig(od); + }); + }); + unittest.group("obj-schema-ConsumptionMeteringConfig", () { unittest.test("to-json--from-json", () { var o = buildConsumptionMeteringConfig(); @@ -2997,6 +3215,22 @@ }); }); + unittest.group("obj-schema-DefaultSnatStatus", () { + unittest.test("to-json--from-json", () { + var o = buildDefaultSnatStatus(); + var od = new api.DefaultSnatStatus.fromJson(o.toJson()); + checkDefaultSnatStatus(od); + }); + }); + + unittest.group("obj-schema-DnsCacheConfig", () { + unittest.test("to-json--from-json", () { + var o = buildDnsCacheConfig(); + var od = new api.DnsCacheConfig.fromJson(o.toJson()); + checkDnsCacheConfig(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -3253,6 +3487,15 @@ }); }); + unittest.group("obj-schema-PrivateClusterMasterGlobalAccessConfig", () { + unittest.test("to-json--from-json", () { + var o = buildPrivateClusterMasterGlobalAccessConfig(); + var od = + new api.PrivateClusterMasterGlobalAccessConfig.fromJson(o.toJson()); + checkPrivateClusterMasterGlobalAccessConfig(od); + }); + }); + unittest.group("obj-schema-RecurringTimeWindow", () { unittest.test("to-json--from-json", () { var o = buildRecurringTimeWindow(); @@ -3261,6 +3504,22 @@ }); }); + unittest.group("obj-schema-ReleaseChannel", () { + unittest.test("to-json--from-json", () { + var o = buildReleaseChannel(); + var od = new api.ReleaseChannel.fromJson(o.toJson()); + checkReleaseChannel(od); + }); + }); + + unittest.group("obj-schema-ReleaseChannelConfig", () { + unittest.test("to-json--from-json", () { + var o = buildReleaseChannelConfig(); + var od = new api.ReleaseChannelConfig.fromJson(o.toJson()); + checkReleaseChannelConfig(od); + }); + }); + unittest.group("obj-schema-ReservationAffinity", () { unittest.test("to-json--from-json", () { var o = buildReservationAffinity(); @@ -3469,6 +3728,14 @@ }); }); + unittest.group("obj-schema-UpgradeEvent", () { + unittest.test("to-json--from-json", () { + var o = buildUpgradeEvent(); + var od = new api.UpgradeEvent.fromJson(o.toJson()); + checkUpgradeEvent(od); + }); + }); + unittest.group("obj-schema-UpgradeSettings", () { unittest.test("to-json--from-json", () { var o = buildUpgradeSettings(); @@ -3523,9 +3790,9 @@ api.ProjectsAggregatedUsableSubnetworksResourceApi res = new api.ContainerApi(mock).projects.aggregated.usableSubnetworks; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3558,11 +3825,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3573,9 +3840,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUsableSubnetworksResponse(response); @@ -3762,8 +4029,8 @@ new api.ContainerApi(mock).projects.locations.clusters; var arg_name = "foo"; var arg_zone = "foo"; - var arg_clusterId = "foo"; var arg_projectId = "foo"; + var arg_clusterId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3798,9 +4065,9 @@ } unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( - queryMap["clusterId"].first, unittest.equals(arg_clusterId)); - unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3812,8 +4079,8 @@ res .delete(arg_name, zone: arg_zone, - clusterId: arg_clusterId, projectId: arg_projectId, + clusterId: arg_clusterId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -3941,8 +4208,8 @@ api.ProjectsLocationsClustersResourceApi res = new api.ContainerApi(mock).projects.locations.clusters; var arg_parent = "foo"; - var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_projectId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3975,9 +4242,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3988,7 +4255,7 @@ }), true); res .list(arg_parent, - projectId: arg_projectId, zone: arg_zone, $fields: arg_$fields) + zone: arg_zone, projectId: arg_projectId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListClustersResponse(response); }))); @@ -4731,8 +4998,8 @@ var arg_name = "foo"; var arg_nodePoolId = "foo"; var arg_projectId = "foo"; - var arg_zone = "foo"; var arg_clusterId = "foo"; + var arg_zone = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4769,9 +5036,9 @@ queryMap["nodePoolId"].first, unittest.equals(arg_nodePoolId)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["clusterId"].first, unittest.equals(arg_clusterId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4784,8 +5051,8 @@ .delete(arg_name, nodePoolId: arg_nodePoolId, projectId: arg_projectId, - zone: arg_zone, clusterId: arg_clusterId, + zone: arg_zone, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -4797,10 +5064,10 @@ api.ProjectsLocationsClustersNodePoolsResourceApi res = new api.ContainerApi(mock).projects.locations.clusters.nodePools; var arg_name = "foo"; - var arg_projectId = "foo"; var arg_zone = "foo"; - var arg_clusterId = "foo"; var arg_nodePoolId = "foo"; + var arg_projectId = "foo"; + var arg_clusterId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4833,13 +5100,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["projectId"].first, unittest.equals(arg_projectId)); unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( - queryMap["clusterId"].first, unittest.equals(arg_clusterId)); - unittest.expect( queryMap["nodePoolId"].first, unittest.equals(arg_nodePoolId)); + unittest.expect( + queryMap["projectId"].first, unittest.equals(arg_projectId)); + unittest.expect( + queryMap["clusterId"].first, unittest.equals(arg_clusterId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4850,10 +5117,10 @@ }), true); res .get(arg_name, - projectId: arg_projectId, zone: arg_zone, - clusterId: arg_clusterId, nodePoolId: arg_nodePoolId, + projectId: arg_projectId, + clusterId: arg_clusterId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkNodePool(response); @@ -4865,8 +5132,8 @@ api.ProjectsLocationsClustersNodePoolsResourceApi res = new api.ContainerApi(mock).projects.locations.clusters.nodePools; var arg_parent = "foo"; - var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_projectId = "foo"; var arg_clusterId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4900,9 +5167,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["clusterId"].first, unittest.equals(arg_clusterId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4915,8 +5182,8 @@ }), true); res .list(arg_parent, - projectId: arg_projectId, zone: arg_zone, + projectId: arg_projectId, clusterId: arg_clusterId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -5322,8 +5589,8 @@ new api.ContainerApi(mock).projects.locations.operations; var arg_name = "foo"; var arg_operationId = "foo"; - var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_projectId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5358,9 +5625,9 @@ } unittest.expect( queryMap["operationId"].first, unittest.equals(arg_operationId)); + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5372,8 +5639,8 @@ res .get(arg_name, operationId: arg_operationId, - projectId: arg_projectId, zone: arg_zone, + projectId: arg_projectId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -5385,8 +5652,8 @@ api.ProjectsLocationsOperationsResourceApi res = new api.ContainerApi(mock).projects.locations.operations; var arg_parent = "foo"; - var arg_projectId = "foo"; var arg_zone = "foo"; + var arg_projectId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5419,9 +5686,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect( queryMap["projectId"].first, unittest.equals(arg_projectId)); - unittest.expect(queryMap["zone"].first, unittest.equals(arg_zone)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5432,7 +5699,7 @@ }), true); res .list(arg_parent, - projectId: arg_projectId, zone: arg_zone, $fields: arg_$fields) + zone: arg_zone, projectId: arg_projectId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); })));
diff --git a/generated/googleapis/test/content/v2_1_test.dart b/generated/googleapis/test/content/v2_1_test.dart index 730b9f6..37622d7 100644 --- a/generated/googleapis/test/content/v2_1_test.dart +++ b/generated/googleapis/test/content/v2_1_test.dart
@@ -50,40 +50,53 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1429() { +buildUnnamed1459() { var o = new core.List<api.AccountAdsLink>(); o.add(buildAccountAdsLink()); o.add(buildAccountAdsLink()); return o; } -checkUnnamed1429(core.List<api.AccountAdsLink> o) { +checkUnnamed1459(core.List<api.AccountAdsLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountAdsLink(o[0]); checkAccountAdsLink(o[1]); } -buildUnnamed1430() { +buildUnnamed1460() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1460(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1461() { var o = new core.List<api.AccountUser>(); o.add(buildAccountUser()); o.add(buildAccountUser()); return o; } -checkUnnamed1430(core.List<api.AccountUser> o) { +checkUnnamed1461(core.List<api.AccountUser> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountUser(o[0]); checkAccountUser(o[1]); } -buildUnnamed1431() { +buildUnnamed1462() { var o = new core.List<api.AccountYouTubeChannelLink>(); o.add(buildAccountYouTubeChannelLink()); o.add(buildAccountYouTubeChannelLink()); return o; } -checkUnnamed1431(core.List<api.AccountYouTubeChannelLink> o) { +checkUnnamed1462(core.List<api.AccountYouTubeChannelLink> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountYouTubeChannelLink(o[0]); checkAccountYouTubeChannelLink(o[1]); @@ -94,17 +107,19 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.adsLinks = buildUnnamed1429(); + o.adsLinks = buildUnnamed1459(); o.adultContent = true; o.businessInformation = buildAccountBusinessInformation(); + o.cssId = "foo"; o.googleMyBusinessLink = buildAccountGoogleMyBusinessLink(); o.id = "foo"; o.kind = "foo"; + o.labelIds = buildUnnamed1460(); o.name = "foo"; o.sellerId = "foo"; - o.users = buildUnnamed1430(); + o.users = buildUnnamed1461(); o.websiteUrl = "foo"; - o.youtubeChannelLinks = buildUnnamed1431(); + o.youtubeChannelLinks = buildUnnamed1462(); } buildCounterAccount--; return o; @@ -113,17 +128,19 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed1429(o.adsLinks); + checkUnnamed1459(o.adsLinks); unittest.expect(o.adultContent, unittest.isTrue); checkAccountBusinessInformation(o.businessInformation); + unittest.expect(o.cssId, unittest.equals('foo')); checkAccountGoogleMyBusinessLink(o.googleMyBusinessLink); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed1460(o.labelIds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sellerId, unittest.equals('foo')); - checkUnnamed1430(o.users); + checkUnnamed1461(o.users); unittest.expect(o.websiteUrl, unittest.equals('foo')); - checkUnnamed1431(o.youtubeChannelLinks); + checkUnnamed1462(o.youtubeChannelLinks); } buildCounterAccount--; } @@ -266,27 +283,27 @@ buildCounterAccountIdentifier--; } -buildUnnamed1432() { +buildUnnamed1463() { var o = new core.List<api.AccountStatusAccountLevelIssue>(); o.add(buildAccountStatusAccountLevelIssue()); o.add(buildAccountStatusAccountLevelIssue()); return o; } -checkUnnamed1432(core.List<api.AccountStatusAccountLevelIssue> o) { +checkUnnamed1463(core.List<api.AccountStatusAccountLevelIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusAccountLevelIssue(o[0]); checkAccountStatusAccountLevelIssue(o[1]); } -buildUnnamed1433() { +buildUnnamed1464() { var o = new core.List<api.AccountStatusProducts>(); o.add(buildAccountStatusProducts()); o.add(buildAccountStatusProducts()); return o; } -checkUnnamed1433(core.List<api.AccountStatusProducts> o) { +checkUnnamed1464(core.List<api.AccountStatusProducts> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusProducts(o[0]); checkAccountStatusProducts(o[1]); @@ -298,9 +315,9 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { o.accountId = "foo"; - o.accountLevelIssues = buildUnnamed1432(); + o.accountLevelIssues = buildUnnamed1463(); o.kind = "foo"; - o.products = buildUnnamed1433(); + o.products = buildUnnamed1464(); o.websiteClaimed = true; } buildCounterAccountStatus--; @@ -311,9 +328,9 @@ buildCounterAccountStatus++; if (buildCounterAccountStatus < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1432(o.accountLevelIssues); + checkUnnamed1463(o.accountLevelIssues); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1433(o.products); + checkUnnamed1464(o.products); unittest.expect(o.websiteClaimed, unittest.isTrue); } buildCounterAccountStatus--; @@ -383,14 +400,14 @@ buildCounterAccountStatusItemLevelIssue--; } -buildUnnamed1434() { +buildUnnamed1465() { var o = new core.List<api.AccountStatusItemLevelIssue>(); o.add(buildAccountStatusItemLevelIssue()); o.add(buildAccountStatusItemLevelIssue()); return o; } -checkUnnamed1434(core.List<api.AccountStatusItemLevelIssue> o) { +checkUnnamed1465(core.List<api.AccountStatusItemLevelIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatusItemLevelIssue(o[0]); checkAccountStatusItemLevelIssue(o[1]); @@ -404,7 +421,7 @@ o.channel = "foo"; o.country = "foo"; o.destination = "foo"; - o.itemLevelIssues = buildUnnamed1434(); + o.itemLevelIssues = buildUnnamed1465(); o.statistics = buildAccountStatusStatistics(); } buildCounterAccountStatusProducts--; @@ -417,7 +434,7 @@ unittest.expect(o.channel, unittest.equals('foo')); unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.destination, unittest.equals('foo')); - checkUnnamed1434(o.itemLevelIssues); + checkUnnamed1465(o.itemLevelIssues); checkAccountStatusStatistics(o.statistics); } buildCounterAccountStatusProducts--; @@ -448,14 +465,14 @@ buildCounterAccountStatusStatistics--; } -buildUnnamed1435() { +buildUnnamed1466() { var o = new core.List<api.AccountTaxTaxRule>(); o.add(buildAccountTaxTaxRule()); o.add(buildAccountTaxTaxRule()); return o; } -checkUnnamed1435(core.List<api.AccountTaxTaxRule> o) { +checkUnnamed1466(core.List<api.AccountTaxTaxRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTaxTaxRule(o[0]); checkAccountTaxTaxRule(o[1]); @@ -468,7 +485,7 @@ if (buildCounterAccountTax < 3) { o.accountId = "foo"; o.kind = "foo"; - o.rules = buildUnnamed1435(); + o.rules = buildUnnamed1466(); } buildCounterAccountTax--; return o; @@ -479,7 +496,7 @@ if (buildCounterAccountTax < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1435(o.rules); + checkUnnamed1466(o.rules); } buildCounterAccountTax--; } @@ -559,14 +576,14 @@ buildCounterAccountYouTubeChannelLink--; } -buildUnnamed1436() { +buildUnnamed1467() { var o = new core.List<api.AccountIdentifier>(); o.add(buildAccountIdentifier()); o.add(buildAccountIdentifier()); return o; } -checkUnnamed1436(core.List<api.AccountIdentifier> o) { +checkUnnamed1467(core.List<api.AccountIdentifier> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountIdentifier(o[0]); checkAccountIdentifier(o[1]); @@ -577,7 +594,7 @@ var o = new api.AccountsAuthInfoResponse(); buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - o.accountIdentifiers = buildUnnamed1436(); + o.accountIdentifiers = buildUnnamed1467(); o.kind = "foo"; } buildCounterAccountsAuthInfoResponse--; @@ -587,7 +604,7 @@ checkAccountsAuthInfoResponse(api.AccountsAuthInfoResponse o) { buildCounterAccountsAuthInfoResponse++; if (buildCounterAccountsAuthInfoResponse < 3) { - checkUnnamed1436(o.accountIdentifiers); + checkUnnamed1467(o.accountIdentifiers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsAuthInfoResponse--; @@ -612,14 +629,14 @@ buildCounterAccountsClaimWebsiteResponse--; } -buildUnnamed1437() { +buildUnnamed1468() { var o = new core.List<api.AccountsCustomBatchRequestEntry>(); o.add(buildAccountsCustomBatchRequestEntry()); o.add(buildAccountsCustomBatchRequestEntry()); return o; } -checkUnnamed1437(core.List<api.AccountsCustomBatchRequestEntry> o) { +checkUnnamed1468(core.List<api.AccountsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchRequestEntry(o[0]); checkAccountsCustomBatchRequestEntry(o[1]); @@ -630,7 +647,7 @@ var o = new api.AccountsCustomBatchRequest(); buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - o.entries = buildUnnamed1437(); + o.entries = buildUnnamed1468(); } buildCounterAccountsCustomBatchRequest--; return o; @@ -639,11 +656,24 @@ checkAccountsCustomBatchRequest(api.AccountsCustomBatchRequest o) { buildCounterAccountsCustomBatchRequest++; if (buildCounterAccountsCustomBatchRequest < 3) { - checkUnnamed1437(o.entries); + checkUnnamed1468(o.entries); } buildCounterAccountsCustomBatchRequest--; } +buildUnnamed1469() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1469(core.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 buildCounterAccountsCustomBatchRequestEntry = 0; buildAccountsCustomBatchRequestEntry() { var o = new api.AccountsCustomBatchRequestEntry(); @@ -653,10 +683,12 @@ o.accountId = "foo"; o.batchId = 42; o.force = true; + o.labelIds = buildUnnamed1469(); o.linkRequest = buildAccountsCustomBatchRequestEntryLinkRequest(); o.merchantId = "foo"; o.method = "foo"; o.overwrite = true; + o.view = "foo"; } buildCounterAccountsCustomBatchRequestEntry--; return o; @@ -669,22 +701,24 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.batchId, unittest.equals(42)); unittest.expect(o.force, unittest.isTrue); + checkUnnamed1469(o.labelIds); checkAccountsCustomBatchRequestEntryLinkRequest(o.linkRequest); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.overwrite, unittest.isTrue); + unittest.expect(o.view, unittest.equals('foo')); } buildCounterAccountsCustomBatchRequestEntry--; } -buildUnnamed1438() { +buildUnnamed1470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1438(core.List<core.String> o) { +checkUnnamed1470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -698,7 +732,7 @@ o.action = "foo"; o.linkType = "foo"; o.linkedAccountId = "foo"; - o.services = buildUnnamed1438(); + o.services = buildUnnamed1470(); } buildCounterAccountsCustomBatchRequestEntryLinkRequest--; return o; @@ -711,19 +745,19 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.linkType, unittest.equals('foo')); unittest.expect(o.linkedAccountId, unittest.equals('foo')); - checkUnnamed1438(o.services); + checkUnnamed1470(o.services); } buildCounterAccountsCustomBatchRequestEntryLinkRequest--; } -buildUnnamed1439() { +buildUnnamed1471() { var o = new core.List<api.AccountsCustomBatchResponseEntry>(); o.add(buildAccountsCustomBatchResponseEntry()); o.add(buildAccountsCustomBatchResponseEntry()); return o; } -checkUnnamed1439(core.List<api.AccountsCustomBatchResponseEntry> o) { +checkUnnamed1471(core.List<api.AccountsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountsCustomBatchResponseEntry(o[0]); checkAccountsCustomBatchResponseEntry(o[1]); @@ -734,7 +768,7 @@ var o = new api.AccountsCustomBatchResponse(); buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - o.entries = buildUnnamed1439(); + o.entries = buildUnnamed1471(); o.kind = "foo"; } buildCounterAccountsCustomBatchResponse--; @@ -744,7 +778,7 @@ checkAccountsCustomBatchResponse(api.AccountsCustomBatchResponse o) { buildCounterAccountsCustomBatchResponse++; if (buildCounterAccountsCustomBatchResponse < 3) { - checkUnnamed1439(o.entries); + checkUnnamed1471(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountsCustomBatchResponse--; @@ -775,14 +809,14 @@ buildCounterAccountsCustomBatchResponseEntry--; } -buildUnnamed1440() { +buildUnnamed1472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1440(core.List<core.String> o) { +checkUnnamed1472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -796,7 +830,7 @@ o.action = "foo"; o.linkType = "foo"; o.linkedAccountId = "foo"; - o.services = buildUnnamed1440(); + o.services = buildUnnamed1472(); } buildCounterAccountsLinkRequest--; return o; @@ -808,7 +842,7 @@ unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.linkType, unittest.equals('foo')); unittest.expect(o.linkedAccountId, unittest.equals('foo')); - checkUnnamed1440(o.services); + checkUnnamed1472(o.services); } buildCounterAccountsLinkRequest--; } @@ -832,14 +866,14 @@ buildCounterAccountsLinkResponse--; } -buildUnnamed1441() { +buildUnnamed1473() { var o = new core.List<api.LinkedAccount>(); o.add(buildLinkedAccount()); o.add(buildLinkedAccount()); return o; } -checkUnnamed1441(core.List<api.LinkedAccount> o) { +checkUnnamed1473(core.List<api.LinkedAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkedAccount(o[0]); checkLinkedAccount(o[1]); @@ -851,7 +885,7 @@ buildCounterAccountsListLinksResponse++; if (buildCounterAccountsListLinksResponse < 3) { o.kind = "foo"; - o.links = buildUnnamed1441(); + o.links = buildUnnamed1473(); o.nextPageToken = "foo"; } buildCounterAccountsListLinksResponse--; @@ -862,20 +896,20 @@ buildCounterAccountsListLinksResponse++; if (buildCounterAccountsListLinksResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1441(o.links); + checkUnnamed1473(o.links); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListLinksResponse--; } -buildUnnamed1442() { +buildUnnamed1474() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed1442(core.List<api.Account> o) { +checkUnnamed1474(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -888,7 +922,7 @@ if (buildCounterAccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1442(); + o.resources = buildUnnamed1474(); } buildCounterAccountsListResponse--; return o; @@ -899,19 +933,70 @@ if (buildCounterAccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1442(o.resources); + checkUnnamed1474(o.resources); } buildCounterAccountsListResponse--; } -buildUnnamed1443() { +buildUnnamed1475() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1475(core.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 buildCounterAccountsUpdateLabelsRequest = 0; +buildAccountsUpdateLabelsRequest() { + var o = new api.AccountsUpdateLabelsRequest(); + buildCounterAccountsUpdateLabelsRequest++; + if (buildCounterAccountsUpdateLabelsRequest < 3) { + o.labelIds = buildUnnamed1475(); + } + buildCounterAccountsUpdateLabelsRequest--; + return o; +} + +checkAccountsUpdateLabelsRequest(api.AccountsUpdateLabelsRequest o) { + buildCounterAccountsUpdateLabelsRequest++; + if (buildCounterAccountsUpdateLabelsRequest < 3) { + checkUnnamed1475(o.labelIds); + } + buildCounterAccountsUpdateLabelsRequest--; +} + +core.int buildCounterAccountsUpdateLabelsResponse = 0; +buildAccountsUpdateLabelsResponse() { + var o = new api.AccountsUpdateLabelsResponse(); + buildCounterAccountsUpdateLabelsResponse++; + if (buildCounterAccountsUpdateLabelsResponse < 3) { + o.kind = "foo"; + } + buildCounterAccountsUpdateLabelsResponse--; + return o; +} + +checkAccountsUpdateLabelsResponse(api.AccountsUpdateLabelsResponse o) { + buildCounterAccountsUpdateLabelsResponse++; + if (buildCounterAccountsUpdateLabelsResponse < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterAccountsUpdateLabelsResponse--; +} + +buildUnnamed1476() { var o = new core.List<api.AccountstatusesCustomBatchRequestEntry>(); o.add(buildAccountstatusesCustomBatchRequestEntry()); o.add(buildAccountstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed1443(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { +checkUnnamed1476(core.List<api.AccountstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchRequestEntry(o[0]); checkAccountstatusesCustomBatchRequestEntry(o[1]); @@ -922,7 +1007,7 @@ var o = new api.AccountstatusesCustomBatchRequest(); buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed1443(); + o.entries = buildUnnamed1476(); } buildCounterAccountstatusesCustomBatchRequest--; return o; @@ -932,19 +1017,19 @@ api.AccountstatusesCustomBatchRequest o) { buildCounterAccountstatusesCustomBatchRequest++; if (buildCounterAccountstatusesCustomBatchRequest < 3) { - checkUnnamed1443(o.entries); + checkUnnamed1476(o.entries); } buildCounterAccountstatusesCustomBatchRequest--; } -buildUnnamed1444() { +buildUnnamed1477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1444(core.List<core.String> o) { +checkUnnamed1477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -957,7 +1042,7 @@ if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { o.accountId = "foo"; o.batchId = 42; - o.destinations = buildUnnamed1444(); + o.destinations = buildUnnamed1477(); o.merchantId = "foo"; o.method = "foo"; } @@ -971,21 +1056,21 @@ if (buildCounterAccountstatusesCustomBatchRequestEntry < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.batchId, unittest.equals(42)); - checkUnnamed1444(o.destinations); + checkUnnamed1477(o.destinations); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchRequestEntry--; } -buildUnnamed1445() { +buildUnnamed1478() { var o = new core.List<api.AccountstatusesCustomBatchResponseEntry>(); o.add(buildAccountstatusesCustomBatchResponseEntry()); o.add(buildAccountstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed1445(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { +checkUnnamed1478(core.List<api.AccountstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountstatusesCustomBatchResponseEntry(o[0]); checkAccountstatusesCustomBatchResponseEntry(o[1]); @@ -996,7 +1081,7 @@ var o = new api.AccountstatusesCustomBatchResponse(); buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed1445(); + o.entries = buildUnnamed1478(); o.kind = "foo"; } buildCounterAccountstatusesCustomBatchResponse--; @@ -1007,7 +1092,7 @@ api.AccountstatusesCustomBatchResponse o) { buildCounterAccountstatusesCustomBatchResponse++; if (buildCounterAccountstatusesCustomBatchResponse < 3) { - checkUnnamed1445(o.entries); + checkUnnamed1478(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountstatusesCustomBatchResponse--; @@ -1037,14 +1122,14 @@ buildCounterAccountstatusesCustomBatchResponseEntry--; } -buildUnnamed1446() { +buildUnnamed1479() { var o = new core.List<api.AccountStatus>(); o.add(buildAccountStatus()); o.add(buildAccountStatus()); return o; } -checkUnnamed1446(core.List<api.AccountStatus> o) { +checkUnnamed1479(core.List<api.AccountStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountStatus(o[0]); checkAccountStatus(o[1]); @@ -1057,7 +1142,7 @@ if (buildCounterAccountstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1446(); + o.resources = buildUnnamed1479(); } buildCounterAccountstatusesListResponse--; return o; @@ -1068,19 +1153,19 @@ if (buildCounterAccountstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1446(o.resources); + checkUnnamed1479(o.resources); } buildCounterAccountstatusesListResponse--; } -buildUnnamed1447() { +buildUnnamed1480() { var o = new core.List<api.AccounttaxCustomBatchRequestEntry>(); o.add(buildAccounttaxCustomBatchRequestEntry()); o.add(buildAccounttaxCustomBatchRequestEntry()); return o; } -checkUnnamed1447(core.List<api.AccounttaxCustomBatchRequestEntry> o) { +checkUnnamed1480(core.List<api.AccounttaxCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchRequestEntry(o[0]); checkAccounttaxCustomBatchRequestEntry(o[1]); @@ -1091,7 +1176,7 @@ var o = new api.AccounttaxCustomBatchRequest(); buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - o.entries = buildUnnamed1447(); + o.entries = buildUnnamed1480(); } buildCounterAccounttaxCustomBatchRequest--; return o; @@ -1100,7 +1185,7 @@ checkAccounttaxCustomBatchRequest(api.AccounttaxCustomBatchRequest o) { buildCounterAccounttaxCustomBatchRequest++; if (buildCounterAccounttaxCustomBatchRequest < 3) { - checkUnnamed1447(o.entries); + checkUnnamed1480(o.entries); } buildCounterAccounttaxCustomBatchRequest--; } @@ -1133,14 +1218,14 @@ buildCounterAccounttaxCustomBatchRequestEntry--; } -buildUnnamed1448() { +buildUnnamed1481() { var o = new core.List<api.AccounttaxCustomBatchResponseEntry>(); o.add(buildAccounttaxCustomBatchResponseEntry()); o.add(buildAccounttaxCustomBatchResponseEntry()); return o; } -checkUnnamed1448(core.List<api.AccounttaxCustomBatchResponseEntry> o) { +checkUnnamed1481(core.List<api.AccounttaxCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkAccounttaxCustomBatchResponseEntry(o[0]); checkAccounttaxCustomBatchResponseEntry(o[1]); @@ -1151,7 +1236,7 @@ var o = new api.AccounttaxCustomBatchResponse(); buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - o.entries = buildUnnamed1448(); + o.entries = buildUnnamed1481(); o.kind = "foo"; } buildCounterAccounttaxCustomBatchResponse--; @@ -1161,7 +1246,7 @@ checkAccounttaxCustomBatchResponse(api.AccounttaxCustomBatchResponse o) { buildCounterAccounttaxCustomBatchResponse++; if (buildCounterAccounttaxCustomBatchResponse < 3) { - checkUnnamed1448(o.entries); + checkUnnamed1481(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccounttaxCustomBatchResponse--; @@ -1193,14 +1278,14 @@ buildCounterAccounttaxCustomBatchResponseEntry--; } -buildUnnamed1449() { +buildUnnamed1482() { var o = new core.List<api.AccountTax>(); o.add(buildAccountTax()); o.add(buildAccountTax()); return o; } -checkUnnamed1449(core.List<api.AccountTax> o) { +checkUnnamed1482(core.List<api.AccountTax> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountTax(o[0]); checkAccountTax(o[1]); @@ -1213,7 +1298,7 @@ if (buildCounterAccounttaxListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1449(); + o.resources = buildUnnamed1482(); } buildCounterAccounttaxListResponse--; return o; @@ -1224,7 +1309,7 @@ if (buildCounterAccounttaxListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1449(o.resources); + checkUnnamed1482(o.resources); } buildCounterAccounttaxListResponse--; } @@ -1250,14 +1335,14 @@ buildCounterAmount--; } -buildUnnamed1450() { +buildUnnamed1483() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1450(core.List<core.String> o) { +checkUnnamed1483(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1268,7 +1353,7 @@ var o = new api.BusinessDayConfig(); buildCounterBusinessDayConfig++; if (buildCounterBusinessDayConfig < 3) { - o.businessDays = buildUnnamed1450(); + o.businessDays = buildUnnamed1483(); } buildCounterBusinessDayConfig--; return o; @@ -1277,7 +1362,7 @@ checkBusinessDayConfig(api.BusinessDayConfig o) { buildCounterBusinessDayConfig++; if (buildCounterBusinessDayConfig < 3) { - checkUnnamed1450(o.businessDays); + checkUnnamed1483(o.businessDays); } buildCounterBusinessDayConfig--; } @@ -1311,14 +1396,14 @@ buildCounterCarrierRate--; } -buildUnnamed1451() { +buildUnnamed1484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1451(core.List<core.String> o) { +checkUnnamed1484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1331,7 +1416,7 @@ if (buildCounterCarriersCarrier < 3) { o.country = "foo"; o.name = "foo"; - o.services = buildUnnamed1451(); + o.services = buildUnnamed1484(); } buildCounterCarriersCarrier--; return o; @@ -1342,19 +1427,19 @@ if (buildCounterCarriersCarrier < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1451(o.services); + checkUnnamed1484(o.services); } buildCounterCarriersCarrier--; } -buildUnnamed1452() { +buildUnnamed1485() { var o = new core.List<api.CustomAttribute>(); o.add(buildCustomAttribute()); o.add(buildCustomAttribute()); return o; } -checkUnnamed1452(core.List<api.CustomAttribute> o) { +checkUnnamed1485(core.List<api.CustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomAttribute(o[0]); checkCustomAttribute(o[1]); @@ -1365,7 +1450,7 @@ var o = new api.CustomAttribute(); buildCounterCustomAttribute++; if (buildCounterCustomAttribute < 3) { - o.groupValues = buildUnnamed1452(); + o.groupValues = buildUnnamed1485(); o.name = "foo"; o.value = "foo"; } @@ -1376,7 +1461,7 @@ checkCustomAttribute(api.CustomAttribute o) { buildCounterCustomAttribute++; if (buildCounterCustomAttribute < 3) { - checkUnnamed1452(o.groupValues); + checkUnnamed1485(o.groupValues); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1427,14 +1512,14 @@ buildCounterCutoffTime--; } -buildUnnamed1453() { +buildUnnamed1486() { var o = new core.List<api.DatafeedTarget>(); o.add(buildDatafeedTarget()); o.add(buildDatafeedTarget()); return o; } -checkUnnamed1453(core.List<api.DatafeedTarget> o) { +checkUnnamed1486(core.List<api.DatafeedTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedTarget(o[0]); checkDatafeedTarget(o[1]); @@ -1453,7 +1538,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.targets = buildUnnamed1453(); + o.targets = buildUnnamed1486(); } buildCounterDatafeed--; return o; @@ -1470,7 +1555,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1453(o.targets); + checkUnnamed1486(o.targets); } buildCounterDatafeed--; } @@ -1533,27 +1618,27 @@ buildCounterDatafeedFormat--; } -buildUnnamed1454() { +buildUnnamed1487() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed1454(core.List<api.DatafeedStatusError> o) { +checkUnnamed1487(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); } -buildUnnamed1455() { +buildUnnamed1488() { var o = new core.List<api.DatafeedStatusError>(); o.add(buildDatafeedStatusError()); o.add(buildDatafeedStatusError()); return o; } -checkUnnamed1455(core.List<api.DatafeedStatusError> o) { +checkUnnamed1488(core.List<api.DatafeedStatusError> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusError(o[0]); checkDatafeedStatusError(o[1]); @@ -1566,14 +1651,14 @@ if (buildCounterDatafeedStatus < 3) { o.country = "foo"; o.datafeedId = "foo"; - o.errors = buildUnnamed1454(); + o.errors = buildUnnamed1487(); o.itemsTotal = "foo"; o.itemsValid = "foo"; o.kind = "foo"; o.language = "foo"; o.lastUploadDate = "foo"; o.processingStatus = "foo"; - o.warnings = buildUnnamed1455(); + o.warnings = buildUnnamed1488(); } buildCounterDatafeedStatus--; return o; @@ -1584,26 +1669,26 @@ if (buildCounterDatafeedStatus < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.datafeedId, unittest.equals('foo')); - checkUnnamed1454(o.errors); + checkUnnamed1487(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.language, unittest.equals('foo')); unittest.expect(o.lastUploadDate, unittest.equals('foo')); unittest.expect(o.processingStatus, unittest.equals('foo')); - checkUnnamed1455(o.warnings); + checkUnnamed1488(o.warnings); } buildCounterDatafeedStatus--; } -buildUnnamed1456() { +buildUnnamed1489() { var o = new core.List<api.DatafeedStatusExample>(); o.add(buildDatafeedStatusExample()); o.add(buildDatafeedStatusExample()); return o; } -checkUnnamed1456(core.List<api.DatafeedStatusExample> o) { +checkUnnamed1489(core.List<api.DatafeedStatusExample> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatusExample(o[0]); checkDatafeedStatusExample(o[1]); @@ -1616,7 +1701,7 @@ if (buildCounterDatafeedStatusError < 3) { o.code = "foo"; o.count = "foo"; - o.examples = buildUnnamed1456(); + o.examples = buildUnnamed1489(); o.message = "foo"; } buildCounterDatafeedStatusError--; @@ -1628,7 +1713,7 @@ if (buildCounterDatafeedStatusError < 3) { unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed1456(o.examples); + checkUnnamed1489(o.examples); unittest.expect(o.message, unittest.equals('foo')); } buildCounterDatafeedStatusError--; @@ -1657,27 +1742,27 @@ buildCounterDatafeedStatusExample--; } -buildUnnamed1457() { +buildUnnamed1490() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1457(core.List<core.String> o) { +checkUnnamed1490(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1458() { +buildUnnamed1491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1458(core.List<core.String> o) { +checkUnnamed1491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1689,8 +1774,8 @@ buildCounterDatafeedTarget++; if (buildCounterDatafeedTarget < 3) { o.country = "foo"; - o.excludedDestinations = buildUnnamed1457(); - o.includedDestinations = buildUnnamed1458(); + o.excludedDestinations = buildUnnamed1490(); + o.includedDestinations = buildUnnamed1491(); o.language = "foo"; } buildCounterDatafeedTarget--; @@ -1701,21 +1786,21 @@ buildCounterDatafeedTarget++; if (buildCounterDatafeedTarget < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1457(o.excludedDestinations); - checkUnnamed1458(o.includedDestinations); + checkUnnamed1490(o.excludedDestinations); + checkUnnamed1491(o.includedDestinations); unittest.expect(o.language, unittest.equals('foo')); } buildCounterDatafeedTarget--; } -buildUnnamed1459() { +buildUnnamed1492() { var o = new core.List<api.DatafeedsCustomBatchRequestEntry>(); o.add(buildDatafeedsCustomBatchRequestEntry()); o.add(buildDatafeedsCustomBatchRequestEntry()); return o; } -checkUnnamed1459(core.List<api.DatafeedsCustomBatchRequestEntry> o) { +checkUnnamed1492(core.List<api.DatafeedsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchRequestEntry(o[0]); checkDatafeedsCustomBatchRequestEntry(o[1]); @@ -1726,7 +1811,7 @@ var o = new api.DatafeedsCustomBatchRequest(); buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - o.entries = buildUnnamed1459(); + o.entries = buildUnnamed1492(); } buildCounterDatafeedsCustomBatchRequest--; return o; @@ -1735,7 +1820,7 @@ checkDatafeedsCustomBatchRequest(api.DatafeedsCustomBatchRequest o) { buildCounterDatafeedsCustomBatchRequest++; if (buildCounterDatafeedsCustomBatchRequest < 3) { - checkUnnamed1459(o.entries); + checkUnnamed1492(o.entries); } buildCounterDatafeedsCustomBatchRequest--; } @@ -1767,14 +1852,14 @@ buildCounterDatafeedsCustomBatchRequestEntry--; } -buildUnnamed1460() { +buildUnnamed1493() { var o = new core.List<api.DatafeedsCustomBatchResponseEntry>(); o.add(buildDatafeedsCustomBatchResponseEntry()); o.add(buildDatafeedsCustomBatchResponseEntry()); return o; } -checkUnnamed1460(core.List<api.DatafeedsCustomBatchResponseEntry> o) { +checkUnnamed1493(core.List<api.DatafeedsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedsCustomBatchResponseEntry(o[0]); checkDatafeedsCustomBatchResponseEntry(o[1]); @@ -1785,7 +1870,7 @@ var o = new api.DatafeedsCustomBatchResponse(); buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - o.entries = buildUnnamed1460(); + o.entries = buildUnnamed1493(); o.kind = "foo"; } buildCounterDatafeedsCustomBatchResponse--; @@ -1795,7 +1880,7 @@ checkDatafeedsCustomBatchResponse(api.DatafeedsCustomBatchResponse o) { buildCounterDatafeedsCustomBatchResponse++; if (buildCounterDatafeedsCustomBatchResponse < 3) { - checkUnnamed1460(o.entries); + checkUnnamed1493(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedsCustomBatchResponse--; @@ -1844,14 +1929,14 @@ buildCounterDatafeedsFetchNowResponse--; } -buildUnnamed1461() { +buildUnnamed1494() { var o = new core.List<api.Datafeed>(); o.add(buildDatafeed()); o.add(buildDatafeed()); return o; } -checkUnnamed1461(core.List<api.Datafeed> o) { +checkUnnamed1494(core.List<api.Datafeed> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeed(o[0]); checkDatafeed(o[1]); @@ -1864,7 +1949,7 @@ if (buildCounterDatafeedsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1461(); + o.resources = buildUnnamed1494(); } buildCounterDatafeedsListResponse--; return o; @@ -1875,19 +1960,19 @@ if (buildCounterDatafeedsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1461(o.resources); + checkUnnamed1494(o.resources); } buildCounterDatafeedsListResponse--; } -buildUnnamed1462() { +buildUnnamed1495() { var o = new core.List<api.DatafeedstatusesCustomBatchRequestEntry>(); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); o.add(buildDatafeedstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed1462(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { +checkUnnamed1495(core.List<api.DatafeedstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchRequestEntry(o[0]); checkDatafeedstatusesCustomBatchRequestEntry(o[1]); @@ -1898,7 +1983,7 @@ var o = new api.DatafeedstatusesCustomBatchRequest(); buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed1462(); + o.entries = buildUnnamed1495(); } buildCounterDatafeedstatusesCustomBatchRequest--; return o; @@ -1908,7 +1993,7 @@ api.DatafeedstatusesCustomBatchRequest o) { buildCounterDatafeedstatusesCustomBatchRequest++; if (buildCounterDatafeedstatusesCustomBatchRequest < 3) { - checkUnnamed1462(o.entries); + checkUnnamed1495(o.entries); } buildCounterDatafeedstatusesCustomBatchRequest--; } @@ -1943,14 +2028,14 @@ buildCounterDatafeedstatusesCustomBatchRequestEntry--; } -buildUnnamed1463() { +buildUnnamed1496() { var o = new core.List<api.DatafeedstatusesCustomBatchResponseEntry>(); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); o.add(buildDatafeedstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed1463(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { +checkUnnamed1496(core.List<api.DatafeedstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedstatusesCustomBatchResponseEntry(o[0]); checkDatafeedstatusesCustomBatchResponseEntry(o[1]); @@ -1961,7 +2046,7 @@ var o = new api.DatafeedstatusesCustomBatchResponse(); buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed1463(); + o.entries = buildUnnamed1496(); o.kind = "foo"; } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -1972,7 +2057,7 @@ api.DatafeedstatusesCustomBatchResponse o) { buildCounterDatafeedstatusesCustomBatchResponse++; if (buildCounterDatafeedstatusesCustomBatchResponse < 3) { - checkUnnamed1463(o.entries); + checkUnnamed1496(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDatafeedstatusesCustomBatchResponse--; @@ -2002,14 +2087,14 @@ buildCounterDatafeedstatusesCustomBatchResponseEntry--; } -buildUnnamed1464() { +buildUnnamed1497() { var o = new core.List<api.DatafeedStatus>(); o.add(buildDatafeedStatus()); o.add(buildDatafeedStatus()); return o; } -checkUnnamed1464(core.List<api.DatafeedStatus> o) { +checkUnnamed1497(core.List<api.DatafeedStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkDatafeedStatus(o[0]); checkDatafeedStatus(o[1]); @@ -2022,7 +2107,7 @@ if (buildCounterDatafeedstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1464(); + o.resources = buildUnnamed1497(); } buildCounterDatafeedstatusesListResponse--; return o; @@ -2033,19 +2118,19 @@ if (buildCounterDatafeedstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1464(o.resources); + checkUnnamed1497(o.resources); } buildCounterDatafeedstatusesListResponse--; } -buildUnnamed1465() { +buildUnnamed1498() { var o = new core.List<api.HolidayCutoff>(); o.add(buildHolidayCutoff()); o.add(buildHolidayCutoff()); return o; } -checkUnnamed1465(core.List<api.HolidayCutoff> o) { +checkUnnamed1498(core.List<api.HolidayCutoff> o) { unittest.expect(o, unittest.hasLength(2)); checkHolidayCutoff(o[0]); checkHolidayCutoff(o[1]); @@ -2058,7 +2143,7 @@ if (buildCounterDeliveryTime < 3) { o.cutoffTime = buildCutoffTime(); o.handlingBusinessDayConfig = buildBusinessDayConfig(); - o.holidayCutoffs = buildUnnamed1465(); + o.holidayCutoffs = buildUnnamed1498(); o.maxHandlingTimeInDays = 42; o.maxTransitTimeInDays = 42; o.minHandlingTimeInDays = 42; @@ -2075,7 +2160,7 @@ if (buildCounterDeliveryTime < 3) { checkCutoffTime(o.cutoffTime); checkBusinessDayConfig(o.handlingBusinessDayConfig); - checkUnnamed1465(o.holidayCutoffs); + checkUnnamed1498(o.holidayCutoffs); unittest.expect(o.maxHandlingTimeInDays, unittest.equals(42)); unittest.expect(o.maxTransitTimeInDays, unittest.equals(42)); unittest.expect(o.minHandlingTimeInDays, unittest.equals(42)); @@ -2109,14 +2194,14 @@ buildCounterError--; } -buildUnnamed1466() { +buildUnnamed1499() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed1466(core.List<api.Error> o) { +checkUnnamed1499(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -2128,7 +2213,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = 42; - o.errors = buildUnnamed1466(); + o.errors = buildUnnamed1499(); o.message = "foo"; } buildCounterErrors--; @@ -2139,20 +2224,20 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1466(o.errors); + checkUnnamed1499(o.errors); unittest.expect(o.message, unittest.equals('foo')); } buildCounterErrors--; } -buildUnnamed1467() { +buildUnnamed1500() { var o = new core.List<api.GmbAccountsGmbAccount>(); o.add(buildGmbAccountsGmbAccount()); o.add(buildGmbAccountsGmbAccount()); return o; } -checkUnnamed1467(core.List<api.GmbAccountsGmbAccount> o) { +checkUnnamed1500(core.List<api.GmbAccountsGmbAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkGmbAccountsGmbAccount(o[0]); checkGmbAccountsGmbAccount(o[1]); @@ -2164,7 +2249,7 @@ buildCounterGmbAccounts++; if (buildCounterGmbAccounts < 3) { o.accountId = "foo"; - o.gmbAccounts = buildUnnamed1467(); + o.gmbAccounts = buildUnnamed1500(); } buildCounterGmbAccounts--; return o; @@ -2174,7 +2259,7 @@ buildCounterGmbAccounts++; if (buildCounterGmbAccounts < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1467(o.gmbAccounts); + checkUnnamed1500(o.gmbAccounts); } buildCounterGmbAccounts--; } @@ -2204,66 +2289,66 @@ buildCounterGmbAccountsGmbAccount--; } -buildUnnamed1468() { +buildUnnamed1501() { var o = new core.List<api.LocationIdSet>(); o.add(buildLocationIdSet()); o.add(buildLocationIdSet()); return o; } -checkUnnamed1468(core.List<api.LocationIdSet> o) { +checkUnnamed1501(core.List<api.LocationIdSet> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationIdSet(o[0]); checkLocationIdSet(o[1]); } -buildUnnamed1469() { +buildUnnamed1502() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1469(core.List<core.String> o) { +checkUnnamed1502(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1470() { +buildUnnamed1503() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1470(core.List<core.String> o) { +checkUnnamed1503(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1471() { +buildUnnamed1504() { var o = new core.List<api.Price>(); o.add(buildPrice()); o.add(buildPrice()); return o; } -checkUnnamed1471(core.List<api.Price> o) { +checkUnnamed1504(core.List<api.Price> o) { unittest.expect(o, unittest.hasLength(2)); checkPrice(o[0]); checkPrice(o[1]); } -buildUnnamed1472() { +buildUnnamed1505() { var o = new core.List<api.Weight>(); o.add(buildWeight()); o.add(buildWeight()); return o; } -checkUnnamed1472(core.List<api.Weight> o) { +checkUnnamed1505(core.List<api.Weight> o) { unittest.expect(o, unittest.hasLength(2)); checkWeight(o[0]); checkWeight(o[1]); @@ -2274,11 +2359,11 @@ var o = new api.Headers(); buildCounterHeaders++; if (buildCounterHeaders < 3) { - o.locations = buildUnnamed1468(); - o.numberOfItems = buildUnnamed1469(); - o.postalCodeGroupNames = buildUnnamed1470(); - o.prices = buildUnnamed1471(); - o.weights = buildUnnamed1472(); + o.locations = buildUnnamed1501(); + o.numberOfItems = buildUnnamed1502(); + o.postalCodeGroupNames = buildUnnamed1503(); + o.prices = buildUnnamed1504(); + o.weights = buildUnnamed1505(); } buildCounterHeaders--; return o; @@ -2287,11 +2372,11 @@ checkHeaders(api.Headers o) { buildCounterHeaders++; if (buildCounterHeaders < 3) { - checkUnnamed1468(o.locations); - checkUnnamed1469(o.numberOfItems); - checkUnnamed1470(o.postalCodeGroupNames); - checkUnnamed1471(o.prices); - checkUnnamed1472(o.weights); + checkUnnamed1501(o.locations); + checkUnnamed1502(o.numberOfItems); + checkUnnamed1503(o.postalCodeGroupNames); + checkUnnamed1504(o.prices); + checkUnnamed1505(o.weights); } buildCounterHeaders--; } @@ -2373,14 +2458,14 @@ buildCounterInstallment--; } -buildUnnamed1473() { +buildUnnamed1506() { var o = new core.List<api.InvoiceSummaryAdditionalChargeSummary>(); o.add(buildInvoiceSummaryAdditionalChargeSummary()); o.add(buildInvoiceSummaryAdditionalChargeSummary()); return o; } -checkUnnamed1473(core.List<api.InvoiceSummaryAdditionalChargeSummary> o) { +checkUnnamed1506(core.List<api.InvoiceSummaryAdditionalChargeSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkInvoiceSummaryAdditionalChargeSummary(o[0]); checkInvoiceSummaryAdditionalChargeSummary(o[1]); @@ -2391,7 +2476,7 @@ var o = new api.InvoiceSummary(); buildCounterInvoiceSummary++; if (buildCounterInvoiceSummary < 3) { - o.additionalChargeSummaries = buildUnnamed1473(); + o.additionalChargeSummaries = buildUnnamed1506(); o.productTotal = buildAmount(); } buildCounterInvoiceSummary--; @@ -2401,7 +2486,7 @@ checkInvoiceSummary(api.InvoiceSummary o) { buildCounterInvoiceSummary++; if (buildCounterInvoiceSummary < 3) { - checkUnnamed1473(o.additionalChargeSummaries); + checkUnnamed1506(o.additionalChargeSummaries); checkAmount(o.productTotal); } buildCounterInvoiceSummary--; @@ -2550,14 +2635,14 @@ buildCounterLiaPosDataProvider--; } -buildUnnamed1474() { +buildUnnamed1507() { var o = new core.List<api.LiaCountrySettings>(); o.add(buildLiaCountrySettings()); o.add(buildLiaCountrySettings()); return o; } -checkUnnamed1474(core.List<api.LiaCountrySettings> o) { +checkUnnamed1507(core.List<api.LiaCountrySettings> o) { unittest.expect(o, unittest.hasLength(2)); checkLiaCountrySettings(o[0]); checkLiaCountrySettings(o[1]); @@ -2569,7 +2654,7 @@ buildCounterLiaSettings++; if (buildCounterLiaSettings < 3) { o.accountId = "foo"; - o.countrySettings = buildUnnamed1474(); + o.countrySettings = buildUnnamed1507(); o.kind = "foo"; } buildCounterLiaSettings--; @@ -2580,20 +2665,20 @@ buildCounterLiaSettings++; if (buildCounterLiaSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1474(o.countrySettings); + checkUnnamed1507(o.countrySettings); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLiaSettings--; } -buildUnnamed1475() { +buildUnnamed1508() { var o = new core.List<api.LiasettingsCustomBatchRequestEntry>(); o.add(buildLiasettingsCustomBatchRequestEntry()); o.add(buildLiasettingsCustomBatchRequestEntry()); return o; } -checkUnnamed1475(core.List<api.LiasettingsCustomBatchRequestEntry> o) { +checkUnnamed1508(core.List<api.LiasettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLiasettingsCustomBatchRequestEntry(o[0]); checkLiasettingsCustomBatchRequestEntry(o[1]); @@ -2604,7 +2689,7 @@ var o = new api.LiasettingsCustomBatchRequest(); buildCounterLiasettingsCustomBatchRequest++; if (buildCounterLiasettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed1475(); + o.entries = buildUnnamed1508(); } buildCounterLiasettingsCustomBatchRequest--; return o; @@ -2613,7 +2698,7 @@ checkLiasettingsCustomBatchRequest(api.LiasettingsCustomBatchRequest o) { buildCounterLiasettingsCustomBatchRequest++; if (buildCounterLiasettingsCustomBatchRequest < 3) { - checkUnnamed1475(o.entries); + checkUnnamed1508(o.entries); } buildCounterLiasettingsCustomBatchRequest--; } @@ -2658,14 +2743,14 @@ buildCounterLiasettingsCustomBatchRequestEntry--; } -buildUnnamed1476() { +buildUnnamed1509() { var o = new core.List<api.LiasettingsCustomBatchResponseEntry>(); o.add(buildLiasettingsCustomBatchResponseEntry()); o.add(buildLiasettingsCustomBatchResponseEntry()); return o; } -checkUnnamed1476(core.List<api.LiasettingsCustomBatchResponseEntry> o) { +checkUnnamed1509(core.List<api.LiasettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLiasettingsCustomBatchResponseEntry(o[0]); checkLiasettingsCustomBatchResponseEntry(o[1]); @@ -2676,7 +2761,7 @@ var o = new api.LiasettingsCustomBatchResponse(); buildCounterLiasettingsCustomBatchResponse++; if (buildCounterLiasettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed1476(); + o.entries = buildUnnamed1509(); o.kind = "foo"; } buildCounterLiasettingsCustomBatchResponse--; @@ -2686,20 +2771,20 @@ checkLiasettingsCustomBatchResponse(api.LiasettingsCustomBatchResponse o) { buildCounterLiasettingsCustomBatchResponse++; if (buildCounterLiasettingsCustomBatchResponse < 3) { - checkUnnamed1476(o.entries); + checkUnnamed1509(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLiasettingsCustomBatchResponse--; } -buildUnnamed1477() { +buildUnnamed1510() { var o = new core.List<api.PosDataProviders>(); o.add(buildPosDataProviders()); o.add(buildPosDataProviders()); return o; } -checkUnnamed1477(core.List<api.PosDataProviders> o) { +checkUnnamed1510(core.List<api.PosDataProviders> o) { unittest.expect(o, unittest.hasLength(2)); checkPosDataProviders(o[0]); checkPosDataProviders(o[1]); @@ -2715,7 +2800,7 @@ o.gmbAccounts = buildGmbAccounts(); o.kind = "foo"; o.liaSettings = buildLiaSettings(); - o.posDataProviders = buildUnnamed1477(); + o.posDataProviders = buildUnnamed1510(); } buildCounterLiasettingsCustomBatchResponseEntry--; return o; @@ -2730,19 +2815,19 @@ checkGmbAccounts(o.gmbAccounts); unittest.expect(o.kind, unittest.equals('foo')); checkLiaSettings(o.liaSettings); - checkUnnamed1477(o.posDataProviders); + checkUnnamed1510(o.posDataProviders); } buildCounterLiasettingsCustomBatchResponseEntry--; } -buildUnnamed1478() { +buildUnnamed1511() { var o = new core.List<api.GmbAccountsGmbAccount>(); o.add(buildGmbAccountsGmbAccount()); o.add(buildGmbAccountsGmbAccount()); return o; } -checkUnnamed1478(core.List<api.GmbAccountsGmbAccount> o) { +checkUnnamed1511(core.List<api.GmbAccountsGmbAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkGmbAccountsGmbAccount(o[0]); checkGmbAccountsGmbAccount(o[1]); @@ -2754,7 +2839,7 @@ buildCounterLiasettingsGetAccessibleGmbAccountsResponse++; if (buildCounterLiasettingsGetAccessibleGmbAccountsResponse < 3) { o.accountId = "foo"; - o.gmbAccounts = buildUnnamed1478(); + o.gmbAccounts = buildUnnamed1511(); o.kind = "foo"; } buildCounterLiasettingsGetAccessibleGmbAccountsResponse--; @@ -2766,20 +2851,20 @@ buildCounterLiasettingsGetAccessibleGmbAccountsResponse++; if (buildCounterLiasettingsGetAccessibleGmbAccountsResponse < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1478(o.gmbAccounts); + checkUnnamed1511(o.gmbAccounts); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLiasettingsGetAccessibleGmbAccountsResponse--; } -buildUnnamed1479() { +buildUnnamed1512() { var o = new core.List<api.PosDataProviders>(); o.add(buildPosDataProviders()); o.add(buildPosDataProviders()); return o; } -checkUnnamed1479(core.List<api.PosDataProviders> o) { +checkUnnamed1512(core.List<api.PosDataProviders> o) { unittest.expect(o, unittest.hasLength(2)); checkPosDataProviders(o[0]); checkPosDataProviders(o[1]); @@ -2791,7 +2876,7 @@ buildCounterLiasettingsListPosDataProvidersResponse++; if (buildCounterLiasettingsListPosDataProvidersResponse < 3) { o.kind = "foo"; - o.posDataProviders = buildUnnamed1479(); + o.posDataProviders = buildUnnamed1512(); } buildCounterLiasettingsListPosDataProvidersResponse--; return o; @@ -2802,19 +2887,19 @@ buildCounterLiasettingsListPosDataProvidersResponse++; if (buildCounterLiasettingsListPosDataProvidersResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1479(o.posDataProviders); + checkUnnamed1512(o.posDataProviders); } buildCounterLiasettingsListPosDataProvidersResponse--; } -buildUnnamed1480() { +buildUnnamed1513() { var o = new core.List<api.LiaSettings>(); o.add(buildLiaSettings()); o.add(buildLiaSettings()); return o; } -checkUnnamed1480(core.List<api.LiaSettings> o) { +checkUnnamed1513(core.List<api.LiaSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkLiaSettings(o[0]); checkLiaSettings(o[1]); @@ -2827,7 +2912,7 @@ if (buildCounterLiasettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1480(); + o.resources = buildUnnamed1513(); } buildCounterLiasettingsListResponse--; return o; @@ -2838,7 +2923,7 @@ if (buildCounterLiasettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1480(o.resources); + checkUnnamed1513(o.resources); } buildCounterLiasettingsListResponse--; } @@ -2944,14 +3029,14 @@ buildCounterLinkService--; } -buildUnnamed1481() { +buildUnnamed1514() { var o = new core.List<api.LinkService>(); o.add(buildLinkService()); o.add(buildLinkService()); return o; } -checkUnnamed1481(core.List<api.LinkService> o) { +checkUnnamed1514(core.List<api.LinkService> o) { unittest.expect(o, unittest.hasLength(2)); checkLinkService(o[0]); checkLinkService(o[1]); @@ -2963,7 +3048,7 @@ buildCounterLinkedAccount++; if (buildCounterLinkedAccount < 3) { o.linkedAccountId = "foo"; - o.services = buildUnnamed1481(); + o.services = buildUnnamed1514(); } buildCounterLinkedAccount--; return o; @@ -2973,7 +3058,7 @@ buildCounterLinkedAccount++; if (buildCounterLinkedAccount < 3) { unittest.expect(o.linkedAccountId, unittest.equals('foo')); - checkUnnamed1481(o.services); + checkUnnamed1514(o.services); } buildCounterLinkedAccount--; } @@ -3015,14 +3100,14 @@ buildCounterLocalInventory--; } -buildUnnamed1482() { +buildUnnamed1515() { var o = new core.List<api.LocalinventoryCustomBatchRequestEntry>(); o.add(buildLocalinventoryCustomBatchRequestEntry()); o.add(buildLocalinventoryCustomBatchRequestEntry()); return o; } -checkUnnamed1482(core.List<api.LocalinventoryCustomBatchRequestEntry> o) { +checkUnnamed1515(core.List<api.LocalinventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalinventoryCustomBatchRequestEntry(o[0]); checkLocalinventoryCustomBatchRequestEntry(o[1]); @@ -3033,7 +3118,7 @@ var o = new api.LocalinventoryCustomBatchRequest(); buildCounterLocalinventoryCustomBatchRequest++; if (buildCounterLocalinventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed1482(); + o.entries = buildUnnamed1515(); } buildCounterLocalinventoryCustomBatchRequest--; return o; @@ -3042,7 +3127,7 @@ checkLocalinventoryCustomBatchRequest(api.LocalinventoryCustomBatchRequest o) { buildCounterLocalinventoryCustomBatchRequest++; if (buildCounterLocalinventoryCustomBatchRequest < 3) { - checkUnnamed1482(o.entries); + checkUnnamed1515(o.entries); } buildCounterLocalinventoryCustomBatchRequest--; } @@ -3075,14 +3160,14 @@ buildCounterLocalinventoryCustomBatchRequestEntry--; } -buildUnnamed1483() { +buildUnnamed1516() { var o = new core.List<api.LocalinventoryCustomBatchResponseEntry>(); o.add(buildLocalinventoryCustomBatchResponseEntry()); o.add(buildLocalinventoryCustomBatchResponseEntry()); return o; } -checkUnnamed1483(core.List<api.LocalinventoryCustomBatchResponseEntry> o) { +checkUnnamed1516(core.List<api.LocalinventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalinventoryCustomBatchResponseEntry(o[0]); checkLocalinventoryCustomBatchResponseEntry(o[1]); @@ -3093,7 +3178,7 @@ var o = new api.LocalinventoryCustomBatchResponse(); buildCounterLocalinventoryCustomBatchResponse++; if (buildCounterLocalinventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed1483(); + o.entries = buildUnnamed1516(); o.kind = "foo"; } buildCounterLocalinventoryCustomBatchResponse--; @@ -3104,7 +3189,7 @@ api.LocalinventoryCustomBatchResponse o) { buildCounterLocalinventoryCustomBatchResponse++; if (buildCounterLocalinventoryCustomBatchResponse < 3) { - checkUnnamed1483(o.entries); + checkUnnamed1516(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterLocalinventoryCustomBatchResponse--; @@ -3134,14 +3219,14 @@ buildCounterLocalinventoryCustomBatchResponseEntry--; } -buildUnnamed1484() { +buildUnnamed1517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1484(core.List<core.String> o) { +checkUnnamed1517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3152,7 +3237,7 @@ var o = new api.LocationIdSet(); buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - o.locationIds = buildUnnamed1484(); + o.locationIds = buildUnnamed1517(); } buildCounterLocationIdSet--; return o; @@ -3161,7 +3246,7 @@ checkLocationIdSet(api.LocationIdSet o) { buildCounterLocationIdSet++; if (buildCounterLocationIdSet < 3) { - checkUnnamed1484(o.locationIds); + checkUnnamed1517(o.locationIds); } buildCounterLocationIdSet--; } @@ -3189,27 +3274,27 @@ buildCounterLoyaltyPoints--; } -buildUnnamed1485() { +buildUnnamed1518() { var o = new core.List<api.MerchantOrderReturnItem>(); o.add(buildMerchantOrderReturnItem()); o.add(buildMerchantOrderReturnItem()); return o; } -checkUnnamed1485(core.List<api.MerchantOrderReturnItem> o) { +checkUnnamed1518(core.List<api.MerchantOrderReturnItem> o) { unittest.expect(o, unittest.hasLength(2)); checkMerchantOrderReturnItem(o[0]); checkMerchantOrderReturnItem(o[1]); } -buildUnnamed1486() { +buildUnnamed1519() { var o = new core.List<api.ReturnShipment>(); o.add(buildReturnShipment()); o.add(buildReturnShipment()); return o; } -checkUnnamed1486(core.List<api.ReturnShipment> o) { +checkUnnamed1519(core.List<api.ReturnShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnShipment(o[0]); checkReturnShipment(o[1]); @@ -3224,9 +3309,9 @@ o.merchantOrderId = "foo"; o.orderId = "foo"; o.orderReturnId = "foo"; - o.returnItems = buildUnnamed1485(); + o.returnItems = buildUnnamed1518(); o.returnPricingInfo = buildReturnPricingInfo(); - o.returnShipments = buildUnnamed1486(); + o.returnShipments = buildUnnamed1519(); } buildCounterMerchantOrderReturn--; return o; @@ -3239,21 +3324,21 @@ unittest.expect(o.merchantOrderId, unittest.equals('foo')); unittest.expect(o.orderId, unittest.equals('foo')); unittest.expect(o.orderReturnId, unittest.equals('foo')); - checkUnnamed1485(o.returnItems); + checkUnnamed1518(o.returnItems); checkReturnPricingInfo(o.returnPricingInfo); - checkUnnamed1486(o.returnShipments); + checkUnnamed1519(o.returnShipments); } buildCounterMerchantOrderReturn--; } -buildUnnamed1487() { +buildUnnamed1520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1487(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')); @@ -3271,7 +3356,7 @@ o.product = buildOrderLineItemProduct(); o.refundableAmount = buildMonetaryAmount(); o.returnItemId = "foo"; - o.returnShipmentIds = buildUnnamed1487(); + o.returnShipmentIds = buildUnnamed1520(); o.shipmentGroupId = "foo"; o.shipmentUnitId = "foo"; o.state = "foo"; @@ -3290,7 +3375,7 @@ checkOrderLineItemProduct(o.product); checkMonetaryAmount(o.refundableAmount); unittest.expect(o.returnItemId, unittest.equals('foo')); - checkUnnamed1487(o.returnShipmentIds); + checkUnnamed1520(o.returnShipmentIds); unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.shipmentUnitId, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -3319,14 +3404,14 @@ buildCounterMerchantRejectionReason--; } -buildUnnamed1488() { +buildUnnamed1521() { var o = new core.List<api.MinimumOrderValueTableStoreCodeSetWithMov>(); o.add(buildMinimumOrderValueTableStoreCodeSetWithMov()); o.add(buildMinimumOrderValueTableStoreCodeSetWithMov()); return o; } -checkUnnamed1488(core.List<api.MinimumOrderValueTableStoreCodeSetWithMov> o) { +checkUnnamed1521(core.List<api.MinimumOrderValueTableStoreCodeSetWithMov> o) { unittest.expect(o, unittest.hasLength(2)); checkMinimumOrderValueTableStoreCodeSetWithMov(o[0]); checkMinimumOrderValueTableStoreCodeSetWithMov(o[1]); @@ -3337,7 +3422,7 @@ var o = new api.MinimumOrderValueTable(); buildCounterMinimumOrderValueTable++; if (buildCounterMinimumOrderValueTable < 3) { - o.storeCodeSetWithMovs = buildUnnamed1488(); + o.storeCodeSetWithMovs = buildUnnamed1521(); } buildCounterMinimumOrderValueTable--; return o; @@ -3346,19 +3431,19 @@ checkMinimumOrderValueTable(api.MinimumOrderValueTable o) { buildCounterMinimumOrderValueTable++; if (buildCounterMinimumOrderValueTable < 3) { - checkUnnamed1488(o.storeCodeSetWithMovs); + checkUnnamed1521(o.storeCodeSetWithMovs); } buildCounterMinimumOrderValueTable--; } -buildUnnamed1489() { +buildUnnamed1522() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1489(core.List<core.String> o) { +checkUnnamed1522(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3369,7 +3454,7 @@ var o = new api.MinimumOrderValueTableStoreCodeSetWithMov(); buildCounterMinimumOrderValueTableStoreCodeSetWithMov++; if (buildCounterMinimumOrderValueTableStoreCodeSetWithMov < 3) { - o.storeCodes = buildUnnamed1489(); + o.storeCodes = buildUnnamed1522(); o.value = buildPrice(); } buildCounterMinimumOrderValueTableStoreCodeSetWithMov--; @@ -3380,7 +3465,7 @@ api.MinimumOrderValueTableStoreCodeSetWithMov o) { buildCounterMinimumOrderValueTableStoreCodeSetWithMov++; if (buildCounterMinimumOrderValueTableStoreCodeSetWithMov < 3) { - checkUnnamed1489(o.storeCodes); + checkUnnamed1522(o.storeCodes); checkPrice(o.value); } buildCounterMinimumOrderValueTableStoreCodeSetWithMov--; @@ -3407,53 +3492,66 @@ buildCounterMonetaryAmount--; } -buildUnnamed1490() { +buildUnnamed1523() { + var o = new core.List<api.OrderOrderAnnotation>(); + o.add(buildOrderOrderAnnotation()); + o.add(buildOrderOrderAnnotation()); + return o; +} + +checkUnnamed1523(core.List<api.OrderOrderAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOrderOrderAnnotation(o[0]); + checkOrderOrderAnnotation(o[1]); +} + +buildUnnamed1524() { var o = new core.List<api.OrderLineItem>(); o.add(buildOrderLineItem()); o.add(buildOrderLineItem()); return o; } -checkUnnamed1490(core.List<api.OrderLineItem> o) { +checkUnnamed1524(core.List<api.OrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItem(o[0]); checkOrderLineItem(o[1]); } -buildUnnamed1491() { +buildUnnamed1525() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1491(core.List<api.OrderPromotion> o) { +checkUnnamed1525(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); } -buildUnnamed1492() { +buildUnnamed1526() { var o = new core.List<api.OrderRefund>(); o.add(buildOrderRefund()); o.add(buildOrderRefund()); return o; } -checkUnnamed1492(core.List<api.OrderRefund> o) { +checkUnnamed1526(core.List<api.OrderRefund> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderRefund(o[0]); checkOrderRefund(o[1]); } -buildUnnamed1493() { +buildUnnamed1527() { var o = new core.List<api.OrderShipment>(); o.add(buildOrderShipment()); o.add(buildOrderShipment()); return o; } -checkUnnamed1493(core.List<api.OrderShipment> o) { +checkUnnamed1527(core.List<api.OrderShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipment(o[0]); checkOrderShipment(o[1]); @@ -3465,12 +3563,13 @@ buildCounterOrder++; if (buildCounterOrder < 3) { o.acknowledged = true; + o.annotations = buildUnnamed1523(); o.billingAddress = buildOrderAddress(); o.customer = buildOrderCustomer(); o.deliveryDetails = buildOrderDeliveryDetails(); o.id = "foo"; o.kind = "foo"; - o.lineItems = buildUnnamed1490(); + o.lineItems = buildUnnamed1524(); o.merchantId = "foo"; o.merchantOrderId = "foo"; o.netPriceAmount = buildPrice(); @@ -3478,9 +3577,9 @@ o.paymentStatus = "foo"; o.pickupDetails = buildOrderPickupDetails(); o.placedDate = "foo"; - o.promotions = buildUnnamed1491(); - o.refunds = buildUnnamed1492(); - o.shipments = buildUnnamed1493(); + o.promotions = buildUnnamed1525(); + o.refunds = buildUnnamed1526(); + o.shipments = buildUnnamed1527(); o.shippingCost = buildPrice(); o.shippingCostTax = buildPrice(); o.status = "foo"; @@ -3494,12 +3593,13 @@ buildCounterOrder++; if (buildCounterOrder < 3) { unittest.expect(o.acknowledged, unittest.isTrue); + checkUnnamed1523(o.annotations); checkOrderAddress(o.billingAddress); checkOrderCustomer(o.customer); checkOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1490(o.lineItems); + checkUnnamed1524(o.lineItems); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); checkPrice(o.netPriceAmount); @@ -3507,9 +3607,9 @@ unittest.expect(o.paymentStatus, unittest.equals('foo')); checkOrderPickupDetails(o.pickupDetails); unittest.expect(o.placedDate, unittest.equals('foo')); - checkUnnamed1491(o.promotions); - checkUnnamed1492(o.refunds); - checkUnnamed1493(o.shipments); + checkUnnamed1525(o.promotions); + checkUnnamed1526(o.refunds); + checkUnnamed1527(o.shipments); checkPrice(o.shippingCost); checkPrice(o.shippingCostTax); unittest.expect(o.status, unittest.equals('foo')); @@ -3518,27 +3618,27 @@ buildCounterOrder--; } -buildUnnamed1494() { +buildUnnamed1528() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1494(core.List<core.String> o) { +checkUnnamed1528(core.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() { +buildUnnamed1529() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1495(core.List<core.String> o) { +checkUnnamed1529(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3550,13 +3650,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { o.country = "foo"; - o.fullAddress = buildUnnamed1494(); + o.fullAddress = buildUnnamed1528(); o.isPostOfficeBox = true; o.locality = "foo"; o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed1495(); + o.streetAddress = buildUnnamed1529(); } buildCounterOrderAddress--; return o; @@ -3566,13 +3666,13 @@ buildCounterOrderAddress++; if (buildCounterOrderAddress < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1494(o.fullAddress); + checkUnnamed1528(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); + checkUnnamed1529(o.streetAddress); } buildCounterOrderAddress--; } @@ -3694,53 +3794,53 @@ buildCounterOrderDeliveryDetails--; } -buildUnnamed1496() { +buildUnnamed1530() { var o = new core.List<api.OrderLineItemAdjustment>(); o.add(buildOrderLineItemAdjustment()); o.add(buildOrderLineItemAdjustment()); return o; } -checkUnnamed1496(core.List<api.OrderLineItemAdjustment> o) { +checkUnnamed1530(core.List<api.OrderLineItemAdjustment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemAdjustment(o[0]); checkOrderLineItemAdjustment(o[1]); } -buildUnnamed1497() { +buildUnnamed1531() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed1497(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed1531(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); } -buildUnnamed1498() { +buildUnnamed1532() { var o = new core.List<api.OrderCancellation>(); o.add(buildOrderCancellation()); o.add(buildOrderCancellation()); return o; } -checkUnnamed1498(core.List<api.OrderCancellation> o) { +checkUnnamed1532(core.List<api.OrderCancellation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderCancellation(o[0]); checkOrderCancellation(o[1]); } -buildUnnamed1499() { +buildUnnamed1533() { var o = new core.List<api.OrderReturn>(); o.add(buildOrderReturn()); o.add(buildOrderReturn()); return o; } -checkUnnamed1499(core.List<api.OrderReturn> o) { +checkUnnamed1533(core.List<api.OrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReturn(o[0]); checkOrderReturn(o[1]); @@ -3751,9 +3851,9 @@ var o = new api.OrderLineItem(); buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - o.adjustments = buildUnnamed1496(); - o.annotations = buildUnnamed1497(); - o.cancellations = buildUnnamed1498(); + o.adjustments = buildUnnamed1530(); + o.annotations = buildUnnamed1531(); + o.cancellations = buildUnnamed1532(); o.id = "foo"; o.price = buildPrice(); o.product = buildOrderLineItemProduct(); @@ -3766,7 +3866,7 @@ o.quantityShipped = 42; o.quantityUndeliverable = 42; o.returnInfo = buildOrderLineItemReturnInfo(); - o.returns = buildUnnamed1499(); + o.returns = buildUnnamed1533(); o.shippingDetails = buildOrderLineItemShippingDetails(); o.tax = buildPrice(); } @@ -3777,9 +3877,9 @@ checkOrderLineItem(api.OrderLineItem o) { buildCounterOrderLineItem++; if (buildCounterOrderLineItem < 3) { - checkUnnamed1496(o.adjustments); - checkUnnamed1497(o.annotations); - checkUnnamed1498(o.cancellations); + checkUnnamed1530(o.adjustments); + checkUnnamed1531(o.annotations); + checkUnnamed1532(o.cancellations); unittest.expect(o.id, unittest.equals('foo')); checkPrice(o.price); checkOrderLineItemProduct(o.product); @@ -3792,7 +3892,7 @@ unittest.expect(o.quantityShipped, unittest.equals(42)); unittest.expect(o.quantityUndeliverable, unittest.equals(42)); checkOrderLineItemReturnInfo(o.returnInfo); - checkUnnamed1499(o.returns); + checkUnnamed1533(o.returns); checkOrderLineItemShippingDetails(o.shippingDetails); checkPrice(o.tax); } @@ -3822,27 +3922,27 @@ buildCounterOrderLineItemAdjustment--; } -buildUnnamed1500() { +buildUnnamed1534() { var o = new core.List<api.OrderLineItemProductFee>(); o.add(buildOrderLineItemProductFee()); o.add(buildOrderLineItemProductFee()); return o; } -checkUnnamed1500(core.List<api.OrderLineItemProductFee> o) { +checkUnnamed1534(core.List<api.OrderLineItemProductFee> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductFee(o[0]); checkOrderLineItemProductFee(o[1]); } -buildUnnamed1501() { +buildUnnamed1535() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1501(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1535(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -3856,7 +3956,7 @@ o.brand = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.fees = buildUnnamed1500(); + o.fees = buildUnnamed1534(); o.gtin = "foo"; o.id = "foo"; o.imageLink = "foo"; @@ -3867,7 +3967,7 @@ o.shownImage = "foo"; o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1501(); + o.variantAttributes = buildUnnamed1535(); } buildCounterOrderLineItemProduct--; return o; @@ -3879,7 +3979,7 @@ unittest.expect(o.brand, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed1500(o.fees); + checkUnnamed1534(o.fees); unittest.expect(o.gtin, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.imageLink, unittest.equals('foo')); @@ -3890,7 +3990,7 @@ unittest.expect(o.shownImage, unittest.equals('foo')); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1501(o.variantAttributes); + checkUnnamed1535(o.variantAttributes); } buildCounterOrderLineItemProduct--; } @@ -3968,6 +4068,7 @@ if (buildCounterOrderLineItemShippingDetails < 3) { o.deliverByDate = "foo"; o.method = buildOrderLineItemShippingDetailsMethod(); + o.pickupPromiseInMinutes = 42; o.shipByDate = "foo"; o.type = "foo"; } @@ -3980,6 +4081,7 @@ if (buildCounterOrderLineItemShippingDetails < 3) { unittest.expect(o.deliverByDate, unittest.equals('foo')); checkOrderLineItemShippingDetailsMethod(o.method); + unittest.expect(o.pickupPromiseInMinutes, unittest.equals(42)); unittest.expect(o.shipByDate, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } @@ -4033,14 +4135,35 @@ buildCounterOrderMerchantProvidedAnnotation--; } -buildUnnamed1502() { +core.int buildCounterOrderOrderAnnotation = 0; +buildOrderOrderAnnotation() { + var o = new api.OrderOrderAnnotation(); + buildCounterOrderOrderAnnotation++; + if (buildCounterOrderOrderAnnotation < 3) { + o.key = "foo"; + o.value = "foo"; + } + buildCounterOrderOrderAnnotation--; + return o; +} + +checkOrderOrderAnnotation(api.OrderOrderAnnotation o) { + buildCounterOrderOrderAnnotation++; + if (buildCounterOrderOrderAnnotation < 3) { + unittest.expect(o.key, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterOrderOrderAnnotation--; +} + +buildUnnamed1536() { var o = new core.List<api.OrderPickupDetailsCollector>(); o.add(buildOrderPickupDetailsCollector()); o.add(buildOrderPickupDetailsCollector()); return o; } -checkUnnamed1502(core.List<api.OrderPickupDetailsCollector> o) { +checkUnnamed1536(core.List<api.OrderPickupDetailsCollector> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPickupDetailsCollector(o[0]); checkOrderPickupDetailsCollector(o[1]); @@ -4052,8 +4175,9 @@ buildCounterOrderPickupDetails++; if (buildCounterOrderPickupDetails < 3) { o.address = buildOrderAddress(); - o.collectors = buildUnnamed1502(); + o.collectors = buildUnnamed1536(); o.locationId = "foo"; + o.pickupType = "foo"; } buildCounterOrderPickupDetails--; return o; @@ -4063,8 +4187,9 @@ buildCounterOrderPickupDetails++; if (buildCounterOrderPickupDetails < 3) { checkOrderAddress(o.address); - checkUnnamed1502(o.collectors); + checkUnnamed1536(o.collectors); unittest.expect(o.locationId, unittest.equals('foo')); + unittest.expect(o.pickupType, unittest.equals('foo')); } buildCounterOrderPickupDetails--; } @@ -4090,27 +4215,27 @@ buildCounterOrderPickupDetailsCollector--; } -buildUnnamed1503() { +buildUnnamed1537() { var o = new core.List<api.OrderPromotionItem>(); o.add(buildOrderPromotionItem()); o.add(buildOrderPromotionItem()); return o; } -checkUnnamed1503(core.List<api.OrderPromotionItem> o) { +checkUnnamed1537(core.List<api.OrderPromotionItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionItem(o[0]); checkOrderPromotionItem(o[1]); } -buildUnnamed1504() { +buildUnnamed1538() { var o = new core.List<api.OrderPromotionItem>(); o.add(buildOrderPromotionItem()); o.add(buildOrderPromotionItem()); return o; } -checkUnnamed1504(core.List<api.OrderPromotionItem> o) { +checkUnnamed1538(core.List<api.OrderPromotionItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotionItem(o[0]); checkOrderPromotionItem(o[1]); @@ -4121,8 +4246,8 @@ var o = new api.OrderPromotion(); buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - o.applicableItems = buildUnnamed1503(); - o.appliedItems = buildUnnamed1504(); + o.applicableItems = buildUnnamed1537(); + o.appliedItems = buildUnnamed1538(); o.endTime = "foo"; o.funder = "foo"; o.merchantPromotionId = "foo"; @@ -4141,8 +4266,8 @@ checkOrderPromotion(api.OrderPromotion o) { buildCounterOrderPromotion++; if (buildCounterOrderPromotion < 3) { - checkUnnamed1503(o.applicableItems); - checkUnnamed1504(o.appliedItems); + checkUnnamed1537(o.applicableItems); + checkUnnamed1538(o.appliedItems); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.funder, unittest.equals('foo')); unittest.expect(o.merchantPromotionId, unittest.equals('foo')); @@ -4298,14 +4423,14 @@ buildCounterOrderReturn--; } -buildUnnamed1505() { +buildUnnamed1539() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1505(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1539(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); @@ -4320,7 +4445,8 @@ o.creationDate = "foo"; o.deliveryDate = "foo"; o.id = "foo"; - o.lineItems = buildUnnamed1505(); + o.lineItems = buildUnnamed1539(); + o.scheduledDeliveryDetails = buildOrderShipmentScheduledDeliveryDetails(); o.shipmentGroupId = "foo"; o.status = "foo"; o.trackingId = "foo"; @@ -4336,7 +4462,8 @@ unittest.expect(o.creationDate, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed1505(o.lineItems); + checkUnnamed1539(o.lineItems); + checkOrderShipmentScheduledDeliveryDetails(o.scheduledDeliveryDetails); unittest.expect(o.shipmentGroupId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); @@ -4367,14 +4494,36 @@ buildCounterOrderShipmentLineItemShipment--; } -buildUnnamed1506() { +core.int buildCounterOrderShipmentScheduledDeliveryDetails = 0; +buildOrderShipmentScheduledDeliveryDetails() { + var o = new api.OrderShipmentScheduledDeliveryDetails(); + buildCounterOrderShipmentScheduledDeliveryDetails++; + if (buildCounterOrderShipmentScheduledDeliveryDetails < 3) { + o.carrierPhoneNumber = "foo"; + o.scheduledDate = "foo"; + } + buildCounterOrderShipmentScheduledDeliveryDetails--; + return o; +} + +checkOrderShipmentScheduledDeliveryDetails( + api.OrderShipmentScheduledDeliveryDetails o) { + buildCounterOrderShipmentScheduledDeliveryDetails++; + if (buildCounterOrderShipmentScheduledDeliveryDetails < 3) { + unittest.expect(o.carrierPhoneNumber, unittest.equals('foo')); + unittest.expect(o.scheduledDate, unittest.equals('foo')); + } + buildCounterOrderShipmentScheduledDeliveryDetails--; +} + +buildUnnamed1540() { var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); o.add(buildShipmentInvoiceLineItemInvoice()); o.add(buildShipmentInvoiceLineItemInvoice()); return o; } -checkUnnamed1506(core.List<api.ShipmentInvoiceLineItemInvoice> o) { +checkUnnamed1540(core.List<api.ShipmentInvoiceLineItemInvoice> o) { unittest.expect(o, unittest.hasLength(2)); checkShipmentInvoiceLineItemInvoice(o[0]); checkShipmentInvoiceLineItemInvoice(o[1]); @@ -4387,7 +4536,7 @@ if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { o.invoiceId = "foo"; o.invoiceSummary = buildInvoiceSummary(); - o.lineItemInvoices = buildUnnamed1506(); + o.lineItemInvoices = buildUnnamed1540(); o.operationId = "foo"; o.shipmentGroupId = "foo"; } @@ -4401,7 +4550,7 @@ if (buildCounterOrderinvoicesCreateChargeInvoiceRequest < 3) { unittest.expect(o.invoiceId, unittest.equals('foo')); checkInvoiceSummary(o.invoiceSummary); - checkUnnamed1506(o.lineItemInvoices); + checkUnnamed1540(o.lineItemInvoices); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentGroupId, unittest.equals('foo')); } @@ -4430,14 +4579,14 @@ buildCounterOrderinvoicesCreateChargeInvoiceResponse--; } -buildUnnamed1507() { +buildUnnamed1541() { var o = new core.List<api.ShipmentInvoice>(); o.add(buildShipmentInvoice()); o.add(buildShipmentInvoice()); return o; } -checkUnnamed1507(core.List<api.ShipmentInvoice> o) { +checkUnnamed1541(core.List<api.ShipmentInvoice> o) { unittest.expect(o, unittest.hasLength(2)); checkShipmentInvoice(o[0]); checkShipmentInvoice(o[1]); @@ -4454,7 +4603,7 @@ buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceRefundOption(); o.returnOption = buildOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption(); - o.shipmentInvoices = buildUnnamed1507(); + o.shipmentInvoices = buildUnnamed1541(); } buildCounterOrderinvoicesCreateRefundInvoiceRequest--; return o; @@ -4470,7 +4619,7 @@ o.refundOnlyOption); checkOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption( o.returnOption); - checkUnnamed1507(o.shipmentInvoices); + checkUnnamed1541(o.shipmentInvoices); } buildCounterOrderinvoicesCreateRefundInvoiceRequest--; } @@ -4551,14 +4700,14 @@ buildCounterOrderinvoicesCustomBatchRequestEntryCreateRefundInvoiceReturnOption--; } -buildUnnamed1508() { +buildUnnamed1542() { var o = new core.List<api.OrderReportDisbursement>(); o.add(buildOrderReportDisbursement()); o.add(buildOrderReportDisbursement()); return o; } -checkUnnamed1508(core.List<api.OrderReportDisbursement> o) { +checkUnnamed1542(core.List<api.OrderReportDisbursement> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReportDisbursement(o[0]); checkOrderReportDisbursement(o[1]); @@ -4569,7 +4718,7 @@ var o = new api.OrderreportsListDisbursementsResponse(); buildCounterOrderreportsListDisbursementsResponse++; if (buildCounterOrderreportsListDisbursementsResponse < 3) { - o.disbursements = buildUnnamed1508(); + o.disbursements = buildUnnamed1542(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4581,21 +4730,21 @@ api.OrderreportsListDisbursementsResponse o) { buildCounterOrderreportsListDisbursementsResponse++; if (buildCounterOrderreportsListDisbursementsResponse < 3) { - checkUnnamed1508(o.disbursements); + checkUnnamed1542(o.disbursements); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterOrderreportsListDisbursementsResponse--; } -buildUnnamed1509() { +buildUnnamed1543() { var o = new core.List<api.OrderReportTransaction>(); o.add(buildOrderReportTransaction()); o.add(buildOrderReportTransaction()); return o; } -checkUnnamed1509(core.List<api.OrderReportTransaction> o) { +checkUnnamed1543(core.List<api.OrderReportTransaction> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderReportTransaction(o[0]); checkOrderReportTransaction(o[1]); @@ -4608,7 +4757,7 @@ if (buildCounterOrderreportsListTransactionsResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.transactions = buildUnnamed1509(); + o.transactions = buildUnnamed1543(); } buildCounterOrderreportsListTransactionsResponse--; return o; @@ -4620,7 +4769,7 @@ if (buildCounterOrderreportsListTransactionsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1509(o.transactions); + checkUnnamed1543(o.transactions); } buildCounterOrderreportsListTransactionsResponse--; } @@ -4665,14 +4814,14 @@ buildCounterOrderreturnsAcknowledgeResponse--; } -buildUnnamed1510() { +buildUnnamed1544() { var o = new core.List<api.MerchantOrderReturn>(); o.add(buildMerchantOrderReturn()); o.add(buildMerchantOrderReturn()); return o; } -checkUnnamed1510(core.List<api.MerchantOrderReturn> o) { +checkUnnamed1544(core.List<api.MerchantOrderReturn> o) { unittest.expect(o, unittest.hasLength(2)); checkMerchantOrderReturn(o[0]); checkMerchantOrderReturn(o[1]); @@ -4685,7 +4834,7 @@ if (buildCounterOrderreturnsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1510(); + o.resources = buildUnnamed1544(); } buildCounterOrderreturnsListResponse--; return o; @@ -4696,7 +4845,7 @@ if (buildCounterOrderreturnsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1510(o.resources); + checkUnnamed1544(o.resources); } buildCounterOrderreturnsListResponse--; } @@ -4722,14 +4871,14 @@ buildCounterOrderreturnsPartialRefund--; } -buildUnnamed1511() { +buildUnnamed1545() { var o = new core.List<api.OrderreturnsReturnItem>(); o.add(buildOrderreturnsReturnItem()); o.add(buildOrderreturnsReturnItem()); return o; } -checkUnnamed1511(core.List<api.OrderreturnsReturnItem> o) { +checkUnnamed1545(core.List<api.OrderreturnsReturnItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderreturnsReturnItem(o[0]); checkOrderreturnsReturnItem(o[1]); @@ -4743,7 +4892,7 @@ o.fullChargeReturnShippingCost = true; o.operationId = "foo"; o.refundShippingFee = buildOrderreturnsRefundOperation(); - o.returnItems = buildUnnamed1511(); + o.returnItems = buildUnnamed1545(); } buildCounterOrderreturnsProcessRequest--; return o; @@ -4755,7 +4904,7 @@ unittest.expect(o.fullChargeReturnShippingCost, unittest.isTrue); unittest.expect(o.operationId, unittest.equals('foo')); checkOrderreturnsRefundOperation(o.refundShippingFee); - checkUnnamed1511(o.returnItems); + checkUnnamed1545(o.returnItems); } buildCounterOrderreturnsProcessRequest--; } @@ -4788,6 +4937,7 @@ if (buildCounterOrderreturnsRefundOperation < 3) { o.fullRefund = true; o.partialRefund = buildOrderreturnsPartialRefund(); + o.paymentType = "foo"; o.reasonText = "foo"; o.returnRefundReason = "foo"; } @@ -4800,6 +4950,7 @@ if (buildCounterOrderreturnsRefundOperation < 3) { unittest.expect(o.fullRefund, unittest.isTrue); checkOrderreturnsPartialRefund(o.partialRefund); + unittest.expect(o.paymentType, unittest.equals('foo')); unittest.expect(o.reasonText, unittest.equals('foo')); unittest.expect(o.returnRefundReason, unittest.equals('foo')); } @@ -5087,7 +5238,7 @@ buildCounterOrdersCreateTestOrderResponse--; } -buildUnnamed1512() { +buildUnnamed1546() { var o = new core .List<api.OrdersCustomBatchRequestEntryCreateTestReturnReturnItem>(); o.add(buildOrdersCustomBatchRequestEntryCreateTestReturnReturnItem()); @@ -5095,7 +5246,7 @@ return o; } -checkUnnamed1512( +checkUnnamed1546( core.List<api.OrdersCustomBatchRequestEntryCreateTestReturnReturnItem> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryCreateTestReturnReturnItem(o[0]); @@ -5107,7 +5258,7 @@ var o = new api.OrdersCreateTestReturnRequest(); buildCounterOrdersCreateTestReturnRequest++; if (buildCounterOrdersCreateTestReturnRequest < 3) { - o.items = buildUnnamed1512(); + o.items = buildUnnamed1546(); } buildCounterOrdersCreateTestReturnRequest--; return o; @@ -5116,7 +5267,7 @@ checkOrdersCreateTestReturnRequest(api.OrdersCreateTestReturnRequest o) { buildCounterOrdersCreateTestReturnRequest++; if (buildCounterOrdersCreateTestReturnRequest < 3) { - checkUnnamed1512(o.items); + checkUnnamed1546(o.items); } buildCounterOrdersCreateTestReturnRequest--; } @@ -5165,6 +5316,56 @@ buildCounterOrdersCustomBatchRequestEntryCreateTestReturnReturnItem--; } +core.int buildCounterOrdersCustomBatchRequestEntryRefundItemItem = 0; +buildOrdersCustomBatchRequestEntryRefundItemItem() { + var o = new api.OrdersCustomBatchRequestEntryRefundItemItem(); + buildCounterOrdersCustomBatchRequestEntryRefundItemItem++; + if (buildCounterOrdersCustomBatchRequestEntryRefundItemItem < 3) { + o.amount = buildMonetaryAmount(); + o.fullRefund = true; + o.lineItemId = "foo"; + o.productId = "foo"; + o.quantity = 42; + } + buildCounterOrdersCustomBatchRequestEntryRefundItemItem--; + return o; +} + +checkOrdersCustomBatchRequestEntryRefundItemItem( + api.OrdersCustomBatchRequestEntryRefundItemItem o) { + buildCounterOrdersCustomBatchRequestEntryRefundItemItem++; + if (buildCounterOrdersCustomBatchRequestEntryRefundItemItem < 3) { + checkMonetaryAmount(o.amount); + unittest.expect(o.fullRefund, unittest.isTrue); + unittest.expect(o.lineItemId, unittest.equals('foo')); + unittest.expect(o.productId, unittest.equals('foo')); + unittest.expect(o.quantity, unittest.equals(42)); + } + buildCounterOrdersCustomBatchRequestEntryRefundItemItem--; +} + +core.int buildCounterOrdersCustomBatchRequestEntryRefundItemShipping = 0; +buildOrdersCustomBatchRequestEntryRefundItemShipping() { + var o = new api.OrdersCustomBatchRequestEntryRefundItemShipping(); + buildCounterOrdersCustomBatchRequestEntryRefundItemShipping++; + if (buildCounterOrdersCustomBatchRequestEntryRefundItemShipping < 3) { + o.amount = buildPrice(); + o.fullRefund = true; + } + buildCounterOrdersCustomBatchRequestEntryRefundItemShipping--; + return o; +} + +checkOrdersCustomBatchRequestEntryRefundItemShipping( + api.OrdersCustomBatchRequestEntryRefundItemShipping o) { + buildCounterOrdersCustomBatchRequestEntryRefundItemShipping++; + if (buildCounterOrdersCustomBatchRequestEntryRefundItemShipping < 3) { + checkPrice(o.amount); + unittest.expect(o.fullRefund, unittest.isTrue); + } + buildCounterOrdersCustomBatchRequestEntryRefundItemShipping--; +} + core.int buildCounterOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo = 0; buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo() { var o = new api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(); @@ -5289,14 +5490,14 @@ buildCounterOrdersInStoreRefundLineItemResponse--; } -buildUnnamed1513() { +buildUnnamed1547() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed1513(core.List<api.Order> o) { +checkUnnamed1547(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -5309,7 +5510,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1513(); + o.resources = buildUnnamed1547(); } buildCounterOrdersListResponse--; return o; @@ -5320,11 +5521,120 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1513(o.resources); + checkUnnamed1547(o.resources); } buildCounterOrdersListResponse--; } +buildUnnamed1548() { + var o = new core.List<api.OrdersCustomBatchRequestEntryRefundItemItem>(); + o.add(buildOrdersCustomBatchRequestEntryRefundItemItem()); + o.add(buildOrdersCustomBatchRequestEntryRefundItemItem()); + return o; +} + +checkUnnamed1548(core.List<api.OrdersCustomBatchRequestEntryRefundItemItem> o) { + unittest.expect(o, unittest.hasLength(2)); + checkOrdersCustomBatchRequestEntryRefundItemItem(o[0]); + checkOrdersCustomBatchRequestEntryRefundItemItem(o[1]); +} + +core.int buildCounterOrdersRefundItemRequest = 0; +buildOrdersRefundItemRequest() { + var o = new api.OrdersRefundItemRequest(); + buildCounterOrdersRefundItemRequest++; + if (buildCounterOrdersRefundItemRequest < 3) { + o.items = buildUnnamed1548(); + o.operationId = "foo"; + o.reason = "foo"; + o.reasonText = "foo"; + o.shipping = buildOrdersCustomBatchRequestEntryRefundItemShipping(); + } + buildCounterOrdersRefundItemRequest--; + return o; +} + +checkOrdersRefundItemRequest(api.OrdersRefundItemRequest o) { + buildCounterOrdersRefundItemRequest++; + if (buildCounterOrdersRefundItemRequest < 3) { + checkUnnamed1548(o.items); + unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + unittest.expect(o.reasonText, unittest.equals('foo')); + checkOrdersCustomBatchRequestEntryRefundItemShipping(o.shipping); + } + buildCounterOrdersRefundItemRequest--; +} + +core.int buildCounterOrdersRefundItemResponse = 0; +buildOrdersRefundItemResponse() { + var o = new api.OrdersRefundItemResponse(); + buildCounterOrdersRefundItemResponse++; + if (buildCounterOrdersRefundItemResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrdersRefundItemResponse--; + return o; +} + +checkOrdersRefundItemResponse(api.OrdersRefundItemResponse o) { + buildCounterOrdersRefundItemResponse++; + if (buildCounterOrdersRefundItemResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrdersRefundItemResponse--; +} + +core.int buildCounterOrdersRefundOrderRequest = 0; +buildOrdersRefundOrderRequest() { + var o = new api.OrdersRefundOrderRequest(); + buildCounterOrdersRefundOrderRequest++; + if (buildCounterOrdersRefundOrderRequest < 3) { + o.amount = buildMonetaryAmount(); + o.fullRefund = true; + o.operationId = "foo"; + o.reason = "foo"; + o.reasonText = "foo"; + } + buildCounterOrdersRefundOrderRequest--; + return o; +} + +checkOrdersRefundOrderRequest(api.OrdersRefundOrderRequest o) { + buildCounterOrdersRefundOrderRequest++; + if (buildCounterOrdersRefundOrderRequest < 3) { + checkMonetaryAmount(o.amount); + unittest.expect(o.fullRefund, unittest.isTrue); + unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.reason, unittest.equals('foo')); + unittest.expect(o.reasonText, unittest.equals('foo')); + } + buildCounterOrdersRefundOrderRequest--; +} + +core.int buildCounterOrdersRefundOrderResponse = 0; +buildOrdersRefundOrderResponse() { + var o = new api.OrdersRefundOrderResponse(); + buildCounterOrdersRefundOrderResponse++; + if (buildCounterOrdersRefundOrderResponse < 3) { + o.executionStatus = "foo"; + o.kind = "foo"; + } + buildCounterOrdersRefundOrderResponse--; + return o; +} + +checkOrdersRefundOrderResponse(api.OrdersRefundOrderResponse o) { + buildCounterOrdersRefundOrderResponse++; + if (buildCounterOrdersRefundOrderResponse < 3) { + unittest.expect(o.executionStatus, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterOrdersRefundOrderResponse--; +} + core.int buildCounterOrdersRejectReturnLineItemRequest = 0; buildOrdersRejectReturnLineItemRequest() { var o = new api.OrdersRejectReturnLineItemRequest(); @@ -5433,14 +5743,14 @@ buildCounterOrdersReturnRefundLineItemResponse--; } -buildUnnamed1514() { +buildUnnamed1549() { var o = new core.List<api.OrderMerchantProvidedAnnotation>(); o.add(buildOrderMerchantProvidedAnnotation()); o.add(buildOrderMerchantProvidedAnnotation()); return o; } -checkUnnamed1514(core.List<api.OrderMerchantProvidedAnnotation> o) { +checkUnnamed1549(core.List<api.OrderMerchantProvidedAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderMerchantProvidedAnnotation(o[0]); checkOrderMerchantProvidedAnnotation(o[1]); @@ -5451,7 +5761,7 @@ var o = new api.OrdersSetLineItemMetadataRequest(); buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - o.annotations = buildUnnamed1514(); + o.annotations = buildUnnamed1549(); o.lineItemId = "foo"; o.operationId = "foo"; o.productId = "foo"; @@ -5463,7 +5773,7 @@ checkOrdersSetLineItemMetadataRequest(api.OrdersSetLineItemMetadataRequest o) { buildCounterOrdersSetLineItemMetadataRequest++; if (buildCounterOrdersSetLineItemMetadataRequest < 3) { - checkUnnamed1514(o.annotations); + checkUnnamed1549(o.annotations); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -5493,20 +5803,20 @@ buildCounterOrdersSetLineItemMetadataResponse--; } -buildUnnamed1515() { +buildUnnamed1550() { var o = new core.List<api.OrderShipmentLineItemShipment>(); o.add(buildOrderShipmentLineItemShipment()); o.add(buildOrderShipmentLineItemShipment()); return o; } -checkUnnamed1515(core.List<api.OrderShipmentLineItemShipment> o) { +checkUnnamed1550(core.List<api.OrderShipmentLineItemShipment> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderShipmentLineItemShipment(o[0]); checkOrderShipmentLineItemShipment(o[1]); } -buildUnnamed1516() { +buildUnnamed1551() { var o = new core .List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo>(); o.add(buildOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo()); @@ -5514,7 +5824,7 @@ return o; } -checkUnnamed1516( +checkUnnamed1551( core.List<api.OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkOrdersCustomBatchRequestEntryShipLineItemsShipmentInfo(o[0]); @@ -5526,10 +5836,10 @@ var o = new api.OrdersShipLineItemsRequest(); buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { - o.lineItems = buildUnnamed1515(); + o.lineItems = buildUnnamed1550(); o.operationId = "foo"; o.shipmentGroupId = "foo"; - o.shipmentInfos = buildUnnamed1516(); + o.shipmentInfos = buildUnnamed1551(); } buildCounterOrdersShipLineItemsRequest--; return o; @@ -5538,10 +5848,10 @@ checkOrdersShipLineItemsRequest(api.OrdersShipLineItemsRequest o) { buildCounterOrdersShipLineItemsRequest++; if (buildCounterOrdersShipLineItemsRequest < 3) { - checkUnnamed1515(o.lineItems); + checkUnnamed1550(o.lineItems); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.shipmentGroupId, unittest.equals('foo')); - checkUnnamed1516(o.shipmentInfos); + checkUnnamed1551(o.shipmentInfos); } buildCounterOrdersShipLineItemsRequest--; } @@ -5668,10 +5978,13 @@ if (buildCounterOrdersUpdateShipmentRequest < 3) { o.carrier = "foo"; o.deliveryDate = "foo"; + o.lastPickupDate = "foo"; o.operationId = "foo"; + o.readyPickupDate = "foo"; o.shipmentId = "foo"; o.status = "foo"; o.trackingId = "foo"; + o.undeliveredDate = "foo"; } buildCounterOrdersUpdateShipmentRequest--; return o; @@ -5682,10 +5995,13 @@ if (buildCounterOrdersUpdateShipmentRequest < 3) { unittest.expect(o.carrier, unittest.equals('foo')); unittest.expect(o.deliveryDate, unittest.equals('foo')); + unittest.expect(o.lastPickupDate, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); + unittest.expect(o.readyPickupDate, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackingId, unittest.equals('foo')); + unittest.expect(o.undeliveredDate, unittest.equals('foo')); } buildCounterOrdersUpdateShipmentRequest--; } @@ -5755,14 +6071,14 @@ buildCounterPickupServicesPickupService--; } -buildUnnamed1517() { +buildUnnamed1552() { var o = new core.List<api.PosCustomBatchRequestEntry>(); o.add(buildPosCustomBatchRequestEntry()); o.add(buildPosCustomBatchRequestEntry()); return o; } -checkUnnamed1517(core.List<api.PosCustomBatchRequestEntry> o) { +checkUnnamed1552(core.List<api.PosCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPosCustomBatchRequestEntry(o[0]); checkPosCustomBatchRequestEntry(o[1]); @@ -5773,7 +6089,7 @@ var o = new api.PosCustomBatchRequest(); buildCounterPosCustomBatchRequest++; if (buildCounterPosCustomBatchRequest < 3) { - o.entries = buildUnnamed1517(); + o.entries = buildUnnamed1552(); } buildCounterPosCustomBatchRequest--; return o; @@ -5782,7 +6098,7 @@ checkPosCustomBatchRequest(api.PosCustomBatchRequest o) { buildCounterPosCustomBatchRequest++; if (buildCounterPosCustomBatchRequest < 3) { - checkUnnamed1517(o.entries); + checkUnnamed1552(o.entries); } buildCounterPosCustomBatchRequest--; } @@ -5820,14 +6136,14 @@ buildCounterPosCustomBatchRequestEntry--; } -buildUnnamed1518() { +buildUnnamed1553() { var o = new core.List<api.PosCustomBatchResponseEntry>(); o.add(buildPosCustomBatchResponseEntry()); o.add(buildPosCustomBatchResponseEntry()); return o; } -checkUnnamed1518(core.List<api.PosCustomBatchResponseEntry> o) { +checkUnnamed1553(core.List<api.PosCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkPosCustomBatchResponseEntry(o[0]); checkPosCustomBatchResponseEntry(o[1]); @@ -5838,7 +6154,7 @@ var o = new api.PosCustomBatchResponse(); buildCounterPosCustomBatchResponse++; if (buildCounterPosCustomBatchResponse < 3) { - o.entries = buildUnnamed1518(); + o.entries = buildUnnamed1553(); o.kind = "foo"; } buildCounterPosCustomBatchResponse--; @@ -5848,7 +6164,7 @@ checkPosCustomBatchResponse(api.PosCustomBatchResponse o) { buildCounterPosCustomBatchResponse++; if (buildCounterPosCustomBatchResponse < 3) { - checkUnnamed1518(o.entries); + checkUnnamed1553(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterPosCustomBatchResponse--; @@ -5883,14 +6199,14 @@ buildCounterPosCustomBatchResponseEntry--; } -buildUnnamed1519() { +buildUnnamed1554() { var o = new core.List<api.PosDataProvidersPosDataProvider>(); o.add(buildPosDataProvidersPosDataProvider()); o.add(buildPosDataProvidersPosDataProvider()); return o; } -checkUnnamed1519(core.List<api.PosDataProvidersPosDataProvider> o) { +checkUnnamed1554(core.List<api.PosDataProvidersPosDataProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkPosDataProvidersPosDataProvider(o[0]); checkPosDataProvidersPosDataProvider(o[1]); @@ -5902,7 +6218,7 @@ buildCounterPosDataProviders++; if (buildCounterPosDataProviders < 3) { o.country = "foo"; - o.posDataProviders = buildUnnamed1519(); + o.posDataProviders = buildUnnamed1554(); } buildCounterPosDataProviders--; return o; @@ -5912,7 +6228,7 @@ buildCounterPosDataProviders++; if (buildCounterPosDataProviders < 3) { unittest.expect(o.country, unittest.equals('foo')); - checkUnnamed1519(o.posDataProviders); + checkUnnamed1554(o.posDataProviders); } buildCounterPosDataProviders--; } @@ -6043,14 +6359,14 @@ buildCounterPosInventoryResponse--; } -buildUnnamed1520() { +buildUnnamed1555() { var o = new core.List<api.PosStore>(); o.add(buildPosStore()); o.add(buildPosStore()); return o; } -checkUnnamed1520(core.List<api.PosStore> o) { +checkUnnamed1555(core.List<api.PosStore> o) { unittest.expect(o, unittest.hasLength(2)); checkPosStore(o[0]); checkPosStore(o[1]); @@ -6062,7 +6378,7 @@ buildCounterPosListResponse++; if (buildCounterPosListResponse < 3) { o.kind = "foo"; - o.resources = buildUnnamed1520(); + o.resources = buildUnnamed1555(); } buildCounterPosListResponse--; return o; @@ -6072,7 +6388,7 @@ buildCounterPosListResponse++; if (buildCounterPosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1520(o.resources); + checkUnnamed1555(o.resources); } buildCounterPosListResponse--; } @@ -6209,14 +6525,14 @@ buildCounterPosStore--; } -buildUnnamed1521() { +buildUnnamed1556() { var o = new core.List<api.PostalCodeRange>(); o.add(buildPostalCodeRange()); o.add(buildPostalCodeRange()); return o; } -checkUnnamed1521(core.List<api.PostalCodeRange> o) { +checkUnnamed1556(core.List<api.PostalCodeRange> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeRange(o[0]); checkPostalCodeRange(o[1]); @@ -6229,7 +6545,7 @@ if (buildCounterPostalCodeGroup < 3) { o.country = "foo"; o.name = "foo"; - o.postalCodeRanges = buildUnnamed1521(); + o.postalCodeRanges = buildUnnamed1556(); } buildCounterPostalCodeGroup--; return o; @@ -6240,7 +6556,7 @@ if (buildCounterPostalCodeGroup < 3) { unittest.expect(o.country, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1521(o.postalCodeRanges); + checkUnnamed1556(o.postalCodeRanges); } buildCounterPostalCodeGroup--; } @@ -6287,144 +6603,183 @@ buildCounterPrice--; } -buildUnnamed1522() { +buildUnnamed1557() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1522(core.List<core.String> o) { +checkUnnamed1557(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1523() { +buildUnnamed1558() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1523(core.List<core.String> o) { +checkUnnamed1558(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1524() { +buildUnnamed1559() { var o = new core.List<api.CustomAttribute>(); o.add(buildCustomAttribute()); o.add(buildCustomAttribute()); return o; } -checkUnnamed1524(core.List<api.CustomAttribute> o) { +checkUnnamed1559(core.List<api.CustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomAttribute(o[0]); checkCustomAttribute(o[1]); } -buildUnnamed1525() { +buildUnnamed1560() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1525(core.List<core.String> o) { +checkUnnamed1560(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1526() { +buildUnnamed1561() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1526(core.List<core.String> o) { +checkUnnamed1561(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1527() { +buildUnnamed1562() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1527(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')); } -buildUnnamed1528() { +buildUnnamed1563() { + var o = new core.List<api.ProductProductDetail>(); + o.add(buildProductProductDetail()); + o.add(buildProductProductDetail()); + return o; +} + +checkUnnamed1563(core.List<api.ProductProductDetail> o) { + unittest.expect(o, unittest.hasLength(2)); + checkProductProductDetail(o[0]); + checkProductProductDetail(o[1]); +} + +buildUnnamed1564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1528(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')); } -buildUnnamed1529() { +buildUnnamed1565() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1529(core.List<core.String> o) { +checkUnnamed1565(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1530() { +buildUnnamed1566() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1566(core.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() { var o = new core.List<api.ProductShipping>(); o.add(buildProductShipping()); o.add(buildProductShipping()); return o; } -checkUnnamed1530(core.List<api.ProductShipping> o) { +checkUnnamed1567(core.List<api.ProductShipping> o) { unittest.expect(o, unittest.hasLength(2)); checkProductShipping(o[0]); checkProductShipping(o[1]); } -buildUnnamed1531() { +buildUnnamed1568() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1531(core.List<core.String> o) { +checkUnnamed1568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1532() { +buildUnnamed1569() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1569(core.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() { var o = new core.List<api.ProductTax>(); o.add(buildProductTax()); o.add(buildProductTax()); return o; } -checkUnnamed1532(core.List<api.ProductTax> o) { +checkUnnamed1570(core.List<api.ProductTax> o) { unittest.expect(o, unittest.hasLength(2)); checkProductTax(o[0]); checkProductTax(o[1]); @@ -6435,21 +6790,22 @@ var o = new api.Product(); buildCounterProduct++; if (buildCounterProduct < 3) { - o.additionalImageLinks = buildUnnamed1522(); + o.additionalImageLinks = buildUnnamed1557(); o.adsGrouping = "foo"; - o.adsLabels = buildUnnamed1523(); + o.adsLabels = buildUnnamed1558(); o.adsRedirect = "foo"; o.adult = true; o.ageGroup = "foo"; o.availability = "foo"; o.availabilityDate = "foo"; o.brand = "foo"; + o.canonicalLink = "foo"; o.channel = "foo"; o.color = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; o.costOfGoodsSold = buildPrice(); - o.customAttributes = buildUnnamed1524(); + o.customAttributes = buildUnnamed1559(); o.customLabel0 = "foo"; o.customLabel1 = "foo"; o.customLabel2 = "foo"; @@ -6458,11 +6814,11 @@ o.description = "foo"; o.displayAdsId = "foo"; o.displayAdsLink = "foo"; - o.displayAdsSimilarIds = buildUnnamed1525(); + o.displayAdsSimilarIds = buildUnnamed1560(); o.displayAdsTitle = "foo"; o.displayAdsValue = 42.0; o.energyEfficiencyClass = "foo"; - o.excludedDestinations = buildUnnamed1526(); + o.excludedDestinations = buildUnnamed1561(); o.expirationDate = "foo"; o.gender = "foo"; o.googleProductCategory = "foo"; @@ -6470,7 +6826,7 @@ o.id = "foo"; o.identifierExists = true; o.imageLink = "foo"; - o.includedDestinations = buildUnnamed1527(); + o.includedDestinations = buildUnnamed1562(); o.installment = buildInstallment(); o.isBundle = true; o.itemGroupId = "foo"; @@ -6488,24 +6844,28 @@ o.offerId = "foo"; o.pattern = "foo"; o.price = buildPrice(); - o.productTypes = buildUnnamed1528(); - o.promotionIds = buildUnnamed1529(); + o.productDetails = buildUnnamed1563(); + o.productHighlights = buildUnnamed1564(); + o.productTypes = buildUnnamed1565(); + o.promotionIds = buildUnnamed1566(); o.salePrice = buildPrice(); o.salePriceEffectiveDate = "foo"; o.sellOnGoogleQuantity = "foo"; - o.shipping = buildUnnamed1530(); + o.shipping = buildUnnamed1567(); o.shippingHeight = buildProductShippingDimension(); o.shippingLabel = "foo"; o.shippingLength = buildProductShippingDimension(); o.shippingWeight = buildProductShippingWeight(); o.shippingWidth = buildProductShippingDimension(); + o.shoppingAdsExcludedCountries = buildUnnamed1568(); o.sizeSystem = "foo"; o.sizeType = "foo"; - o.sizes = buildUnnamed1531(); + o.sizes = buildUnnamed1569(); o.source = "foo"; + o.subscriptionCost = buildProductSubscriptionCost(); o.targetCountry = "foo"; o.taxCategory = "foo"; - o.taxes = buildUnnamed1532(); + o.taxes = buildUnnamed1570(); o.title = "foo"; o.transitTimeLabel = "foo"; o.unitPricingBaseMeasure = buildProductUnitPricingBaseMeasure(); @@ -6518,21 +6878,22 @@ checkProduct(api.Product o) { buildCounterProduct++; if (buildCounterProduct < 3) { - checkUnnamed1522(o.additionalImageLinks); + checkUnnamed1557(o.additionalImageLinks); unittest.expect(o.adsGrouping, unittest.equals('foo')); - checkUnnamed1523(o.adsLabels); + checkUnnamed1558(o.adsLabels); unittest.expect(o.adsRedirect, unittest.equals('foo')); unittest.expect(o.adult, unittest.isTrue); unittest.expect(o.ageGroup, unittest.equals('foo')); unittest.expect(o.availability, unittest.equals('foo')); unittest.expect(o.availabilityDate, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); + unittest.expect(o.canonicalLink, unittest.equals('foo')); unittest.expect(o.channel, unittest.equals('foo')); unittest.expect(o.color, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); checkPrice(o.costOfGoodsSold); - checkUnnamed1524(o.customAttributes); + checkUnnamed1559(o.customAttributes); unittest.expect(o.customLabel0, unittest.equals('foo')); unittest.expect(o.customLabel1, unittest.equals('foo')); unittest.expect(o.customLabel2, unittest.equals('foo')); @@ -6541,11 +6902,11 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayAdsId, unittest.equals('foo')); unittest.expect(o.displayAdsLink, unittest.equals('foo')); - checkUnnamed1525(o.displayAdsSimilarIds); + checkUnnamed1560(o.displayAdsSimilarIds); unittest.expect(o.displayAdsTitle, unittest.equals('foo')); unittest.expect(o.displayAdsValue, unittest.equals(42.0)); unittest.expect(o.energyEfficiencyClass, unittest.equals('foo')); - checkUnnamed1526(o.excludedDestinations); + checkUnnamed1561(o.excludedDestinations); unittest.expect(o.expirationDate, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); unittest.expect(o.googleProductCategory, unittest.equals('foo')); @@ -6553,7 +6914,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.identifierExists, unittest.isTrue); unittest.expect(o.imageLink, unittest.equals('foo')); - checkUnnamed1527(o.includedDestinations); + checkUnnamed1562(o.includedDestinations); checkInstallment(o.installment); unittest.expect(o.isBundle, unittest.isTrue); unittest.expect(o.itemGroupId, unittest.equals('foo')); @@ -6571,24 +6932,28 @@ unittest.expect(o.offerId, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); checkPrice(o.price); - checkUnnamed1528(o.productTypes); - checkUnnamed1529(o.promotionIds); + checkUnnamed1563(o.productDetails); + checkUnnamed1564(o.productHighlights); + checkUnnamed1565(o.productTypes); + checkUnnamed1566(o.promotionIds); checkPrice(o.salePrice); unittest.expect(o.salePriceEffectiveDate, unittest.equals('foo')); unittest.expect(o.sellOnGoogleQuantity, unittest.equals('foo')); - checkUnnamed1530(o.shipping); + checkUnnamed1567(o.shipping); checkProductShippingDimension(o.shippingHeight); unittest.expect(o.shippingLabel, unittest.equals('foo')); checkProductShippingDimension(o.shippingLength); checkProductShippingWeight(o.shippingWeight); checkProductShippingDimension(o.shippingWidth); + checkUnnamed1568(o.shoppingAdsExcludedCountries); unittest.expect(o.sizeSystem, unittest.equals('foo')); unittest.expect(o.sizeType, unittest.equals('foo')); - checkUnnamed1531(o.sizes); + checkUnnamed1569(o.sizes); unittest.expect(o.source, unittest.equals('foo')); + checkProductSubscriptionCost(o.subscriptionCost); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.taxCategory, unittest.equals('foo')); - checkUnnamed1532(o.taxes); + checkUnnamed1570(o.taxes); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.transitTimeLabel, unittest.equals('foo')); checkProductUnitPricingBaseMeasure(o.unitPricingBaseMeasure); @@ -6620,6 +6985,29 @@ buildCounterProductAmount--; } +core.int buildCounterProductProductDetail = 0; +buildProductProductDetail() { + var o = new api.ProductProductDetail(); + buildCounterProductProductDetail++; + if (buildCounterProductProductDetail < 3) { + o.attributeName = "foo"; + o.attributeValue = "foo"; + o.sectionName = "foo"; + } + buildCounterProductProductDetail--; + return o; +} + +checkProductProductDetail(api.ProductProductDetail o) { + buildCounterProductProductDetail++; + if (buildCounterProductProductDetail < 3) { + unittest.expect(o.attributeName, unittest.equals('foo')); + unittest.expect(o.attributeValue, unittest.equals('foo')); + unittest.expect(o.sectionName, unittest.equals('foo')); + } + buildCounterProductProductDetail--; +} + core.int buildCounterProductShipping = 0; buildProductShipping() { var o = new api.ProductShipping(); @@ -6693,27 +7081,27 @@ buildCounterProductShippingWeight--; } -buildUnnamed1533() { +buildUnnamed1571() { var o = new core.List<api.ProductStatusDestinationStatus>(); o.add(buildProductStatusDestinationStatus()); o.add(buildProductStatusDestinationStatus()); return o; } -checkUnnamed1533(core.List<api.ProductStatusDestinationStatus> o) { +checkUnnamed1571(core.List<api.ProductStatusDestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusDestinationStatus(o[0]); checkProductStatusDestinationStatus(o[1]); } -buildUnnamed1534() { +buildUnnamed1572() { var o = new core.List<api.ProductStatusItemLevelIssue>(); o.add(buildProductStatusItemLevelIssue()); o.add(buildProductStatusItemLevelIssue()); return o; } -checkUnnamed1534(core.List<api.ProductStatusItemLevelIssue> o) { +checkUnnamed1572(core.List<api.ProductStatusItemLevelIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatusItemLevelIssue(o[0]); checkProductStatusItemLevelIssue(o[1]); @@ -6725,9 +7113,9 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { o.creationDate = "foo"; - o.destinationStatuses = buildUnnamed1533(); + o.destinationStatuses = buildUnnamed1571(); o.googleExpirationDate = "foo"; - o.itemLevelIssues = buildUnnamed1534(); + o.itemLevelIssues = buildUnnamed1572(); o.kind = "foo"; o.lastUpdateDate = "foo"; o.link = "foo"; @@ -6742,9 +7130,9 @@ buildCounterProductStatus++; if (buildCounterProductStatus < 3) { unittest.expect(o.creationDate, unittest.equals('foo')); - checkUnnamed1533(o.destinationStatuses); + checkUnnamed1571(o.destinationStatuses); unittest.expect(o.googleExpirationDate, unittest.equals('foo')); - checkUnnamed1534(o.itemLevelIssues); + checkUnnamed1572(o.itemLevelIssues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdateDate, unittest.equals('foo')); unittest.expect(o.link, unittest.equals('foo')); @@ -6754,12 +7142,54 @@ buildCounterProductStatus--; } +buildUnnamed1573() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1573(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1574() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1574(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1575() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1575(core.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 buildCounterProductStatusDestinationStatus = 0; buildProductStatusDestinationStatus() { var o = new api.ProductStatusDestinationStatus(); buildCounterProductStatusDestinationStatus++; if (buildCounterProductStatusDestinationStatus < 3) { + o.approvedCountries = buildUnnamed1573(); o.destination = "foo"; + o.disapprovedCountries = buildUnnamed1574(); + o.pendingCountries = buildUnnamed1575(); o.status = "foo"; } buildCounterProductStatusDestinationStatus--; @@ -6769,17 +7199,34 @@ checkProductStatusDestinationStatus(api.ProductStatusDestinationStatus o) { buildCounterProductStatusDestinationStatus++; if (buildCounterProductStatusDestinationStatus < 3) { + checkUnnamed1573(o.approvedCountries); unittest.expect(o.destination, unittest.equals('foo')); + checkUnnamed1574(o.disapprovedCountries); + checkUnnamed1575(o.pendingCountries); unittest.expect(o.status, unittest.equals('foo')); } buildCounterProductStatusDestinationStatus--; } +buildUnnamed1576() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterProductStatusItemLevelIssue = 0; buildProductStatusItemLevelIssue() { var o = new api.ProductStatusItemLevelIssue(); buildCounterProductStatusItemLevelIssue++; if (buildCounterProductStatusItemLevelIssue < 3) { + o.applicableCountries = buildUnnamed1576(); o.attributeName = "foo"; o.code = "foo"; o.description = "foo"; @@ -6796,6 +7243,7 @@ checkProductStatusItemLevelIssue(api.ProductStatusItemLevelIssue o) { buildCounterProductStatusItemLevelIssue++; if (buildCounterProductStatusItemLevelIssue < 3) { + checkUnnamed1576(o.applicableCountries); unittest.expect(o.attributeName, unittest.equals('foo')); unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -6808,6 +7256,29 @@ buildCounterProductStatusItemLevelIssue--; } +core.int buildCounterProductSubscriptionCost = 0; +buildProductSubscriptionCost() { + var o = new api.ProductSubscriptionCost(); + buildCounterProductSubscriptionCost++; + if (buildCounterProductSubscriptionCost < 3) { + o.amount = buildPrice(); + o.period = "foo"; + o.periodLength = "foo"; + } + buildCounterProductSubscriptionCost--; + return o; +} + +checkProductSubscriptionCost(api.ProductSubscriptionCost o) { + buildCounterProductSubscriptionCost++; + if (buildCounterProductSubscriptionCost < 3) { + checkPrice(o.amount); + unittest.expect(o.period, unittest.equals('foo')); + unittest.expect(o.periodLength, unittest.equals('foo')); + } + buildCounterProductSubscriptionCost--; +} + core.int buildCounterProductTax = 0; buildProductTax() { var o = new api.ProductTax(); @@ -6879,14 +7350,14 @@ buildCounterProductUnitPricingMeasure--; } -buildUnnamed1535() { +buildUnnamed1577() { var o = new core.List<api.ProductsCustomBatchRequestEntry>(); o.add(buildProductsCustomBatchRequestEntry()); o.add(buildProductsCustomBatchRequestEntry()); return o; } -checkUnnamed1535(core.List<api.ProductsCustomBatchRequestEntry> o) { +checkUnnamed1577(core.List<api.ProductsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchRequestEntry(o[0]); checkProductsCustomBatchRequestEntry(o[1]); @@ -6897,7 +7368,7 @@ var o = new api.ProductsCustomBatchRequest(); buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - o.entries = buildUnnamed1535(); + o.entries = buildUnnamed1577(); } buildCounterProductsCustomBatchRequest--; return o; @@ -6906,7 +7377,7 @@ checkProductsCustomBatchRequest(api.ProductsCustomBatchRequest o) { buildCounterProductsCustomBatchRequest++; if (buildCounterProductsCustomBatchRequest < 3) { - checkUnnamed1535(o.entries); + checkUnnamed1577(o.entries); } buildCounterProductsCustomBatchRequest--; } @@ -6940,14 +7411,14 @@ buildCounterProductsCustomBatchRequestEntry--; } -buildUnnamed1536() { +buildUnnamed1578() { var o = new core.List<api.ProductsCustomBatchResponseEntry>(); o.add(buildProductsCustomBatchResponseEntry()); o.add(buildProductsCustomBatchResponseEntry()); return o; } -checkUnnamed1536(core.List<api.ProductsCustomBatchResponseEntry> o) { +checkUnnamed1578(core.List<api.ProductsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductsCustomBatchResponseEntry(o[0]); checkProductsCustomBatchResponseEntry(o[1]); @@ -6958,7 +7429,7 @@ var o = new api.ProductsCustomBatchResponse(); buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - o.entries = buildUnnamed1536(); + o.entries = buildUnnamed1578(); o.kind = "foo"; } buildCounterProductsCustomBatchResponse--; @@ -6968,7 +7439,7 @@ checkProductsCustomBatchResponse(api.ProductsCustomBatchResponse o) { buildCounterProductsCustomBatchResponse++; if (buildCounterProductsCustomBatchResponse < 3) { - checkUnnamed1536(o.entries); + checkUnnamed1578(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductsCustomBatchResponse--; @@ -6999,14 +7470,14 @@ buildCounterProductsCustomBatchResponseEntry--; } -buildUnnamed1537() { +buildUnnamed1579() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed1537(core.List<api.Product> o) { +checkUnnamed1579(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -7019,7 +7490,7 @@ if (buildCounterProductsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1537(); + o.resources = buildUnnamed1579(); } buildCounterProductsListResponse--; return o; @@ -7030,19 +7501,19 @@ if (buildCounterProductsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1537(o.resources); + checkUnnamed1579(o.resources); } buildCounterProductsListResponse--; } -buildUnnamed1538() { +buildUnnamed1580() { var o = new core.List<api.ProductstatusesCustomBatchRequestEntry>(); o.add(buildProductstatusesCustomBatchRequestEntry()); o.add(buildProductstatusesCustomBatchRequestEntry()); return o; } -checkUnnamed1538(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { +checkUnnamed1580(core.List<api.ProductstatusesCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchRequestEntry(o[0]); checkProductstatusesCustomBatchRequestEntry(o[1]); @@ -7053,7 +7524,7 @@ var o = new api.ProductstatusesCustomBatchRequest(); buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - o.entries = buildUnnamed1538(); + o.entries = buildUnnamed1580(); } buildCounterProductstatusesCustomBatchRequest--; return o; @@ -7063,19 +7534,19 @@ api.ProductstatusesCustomBatchRequest o) { buildCounterProductstatusesCustomBatchRequest++; if (buildCounterProductstatusesCustomBatchRequest < 3) { - checkUnnamed1538(o.entries); + checkUnnamed1580(o.entries); } buildCounterProductstatusesCustomBatchRequest--; } -buildUnnamed1539() { +buildUnnamed1581() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1539(core.List<core.String> o) { +checkUnnamed1581(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7087,7 +7558,7 @@ buildCounterProductstatusesCustomBatchRequestEntry++; if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { o.batchId = 42; - o.destinations = buildUnnamed1539(); + o.destinations = buildUnnamed1581(); o.includeAttributes = true; o.merchantId = "foo"; o.method = "foo"; @@ -7102,7 +7573,7 @@ buildCounterProductstatusesCustomBatchRequestEntry++; if (buildCounterProductstatusesCustomBatchRequestEntry < 3) { unittest.expect(o.batchId, unittest.equals(42)); - checkUnnamed1539(o.destinations); + checkUnnamed1581(o.destinations); unittest.expect(o.includeAttributes, unittest.isTrue); unittest.expect(o.merchantId, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); @@ -7111,14 +7582,14 @@ buildCounterProductstatusesCustomBatchRequestEntry--; } -buildUnnamed1540() { +buildUnnamed1582() { var o = new core.List<api.ProductstatusesCustomBatchResponseEntry>(); o.add(buildProductstatusesCustomBatchResponseEntry()); o.add(buildProductstatusesCustomBatchResponseEntry()); return o; } -checkUnnamed1540(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { +checkUnnamed1582(core.List<api.ProductstatusesCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkProductstatusesCustomBatchResponseEntry(o[0]); checkProductstatusesCustomBatchResponseEntry(o[1]); @@ -7129,7 +7600,7 @@ var o = new api.ProductstatusesCustomBatchResponse(); buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - o.entries = buildUnnamed1540(); + o.entries = buildUnnamed1582(); o.kind = "foo"; } buildCounterProductstatusesCustomBatchResponse--; @@ -7140,7 +7611,7 @@ api.ProductstatusesCustomBatchResponse o) { buildCounterProductstatusesCustomBatchResponse++; if (buildCounterProductstatusesCustomBatchResponse < 3) { - checkUnnamed1540(o.entries); + checkUnnamed1582(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterProductstatusesCustomBatchResponse--; @@ -7172,14 +7643,14 @@ buildCounterProductstatusesCustomBatchResponseEntry--; } -buildUnnamed1541() { +buildUnnamed1583() { var o = new core.List<api.ProductStatus>(); o.add(buildProductStatus()); o.add(buildProductStatus()); return o; } -checkUnnamed1541(core.List<api.ProductStatus> o) { +checkUnnamed1583(core.List<api.ProductStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkProductStatus(o[0]); checkProductStatus(o[1]); @@ -7192,7 +7663,7 @@ if (buildCounterProductstatusesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1541(); + o.resources = buildUnnamed1583(); } buildCounterProductstatusesListResponse--; return o; @@ -7203,19 +7674,19 @@ if (buildCounterProductstatusesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1541(o.resources); + checkUnnamed1583(o.resources); } buildCounterProductstatusesListResponse--; } -buildUnnamed1542() { +buildUnnamed1584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1542(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')); @@ -7228,7 +7699,7 @@ if (buildCounterPubsubNotificationSettings < 3) { o.cloudTopicName = "foo"; o.kind = "foo"; - o.registeredEvents = buildUnnamed1542(); + o.registeredEvents = buildUnnamed1584(); } buildCounterPubsubNotificationSettings--; return o; @@ -7239,45 +7710,45 @@ if (buildCounterPubsubNotificationSettings < 3) { unittest.expect(o.cloudTopicName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1542(o.registeredEvents); + checkUnnamed1584(o.registeredEvents); } buildCounterPubsubNotificationSettings--; } -buildUnnamed1543() { +buildUnnamed1585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1543(core.List<core.String> o) { +checkUnnamed1585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1544() { +buildUnnamed1586() { var o = new core.List<api.CarrierRate>(); o.add(buildCarrierRate()); o.add(buildCarrierRate()); return o; } -checkUnnamed1544(core.List<api.CarrierRate> o) { +checkUnnamed1586(core.List<api.CarrierRate> o) { unittest.expect(o, unittest.hasLength(2)); checkCarrierRate(o[0]); checkCarrierRate(o[1]); } -buildUnnamed1545() { +buildUnnamed1587() { var o = new core.List<api.Table>(); o.add(buildTable()); o.add(buildTable()); return o; } -checkUnnamed1545(core.List<api.Table> o) { +checkUnnamed1587(core.List<api.Table> o) { unittest.expect(o, unittest.hasLength(2)); checkTable(o[0]); checkTable(o[1]); @@ -7288,12 +7759,12 @@ var o = new api.RateGroup(); buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - o.applicableShippingLabels = buildUnnamed1543(); - o.carrierRates = buildUnnamed1544(); + o.applicableShippingLabels = buildUnnamed1585(); + o.carrierRates = buildUnnamed1586(); o.mainTable = buildTable(); o.name = "foo"; o.singleValue = buildValue(); - o.subtables = buildUnnamed1545(); + o.subtables = buildUnnamed1587(); } buildCounterRateGroup--; return o; @@ -7302,12 +7773,12 @@ checkRateGroup(api.RateGroup o) { buildCounterRateGroup++; if (buildCounterRateGroup < 3) { - checkUnnamed1543(o.applicableShippingLabels); - checkUnnamed1544(o.carrierRates); + checkUnnamed1585(o.applicableShippingLabels); + checkUnnamed1586(o.carrierRates); checkTable(o.mainTable); unittest.expect(o.name, unittest.equals('foo')); checkValue(o.singleValue); - checkUnnamed1545(o.subtables); + checkUnnamed1587(o.subtables); } buildCounterRateGroup--; } @@ -7333,14 +7804,14 @@ buildCounterRefundReason--; } -buildUnnamed1546() { +buildUnnamed1588() { var o = new core.List<api.CustomAttribute>(); o.add(buildCustomAttribute()); o.add(buildCustomAttribute()); return o; } -checkUnnamed1546(core.List<api.CustomAttribute> o) { +checkUnnamed1588(core.List<api.CustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomAttribute(o[0]); checkCustomAttribute(o[1]); @@ -7352,7 +7823,7 @@ buildCounterRegionalInventory++; if (buildCounterRegionalInventory < 3) { o.availability = "foo"; - o.customAttributes = buildUnnamed1546(); + o.customAttributes = buildUnnamed1588(); o.kind = "foo"; o.price = buildPrice(); o.regionId = "foo"; @@ -7367,7 +7838,7 @@ buildCounterRegionalInventory++; if (buildCounterRegionalInventory < 3) { unittest.expect(o.availability, unittest.equals('foo')); - checkUnnamed1546(o.customAttributes); + checkUnnamed1588(o.customAttributes); unittest.expect(o.kind, unittest.equals('foo')); checkPrice(o.price); unittest.expect(o.regionId, unittest.equals('foo')); @@ -7377,14 +7848,14 @@ buildCounterRegionalInventory--; } -buildUnnamed1547() { +buildUnnamed1589() { var o = new core.List<api.RegionalinventoryCustomBatchRequestEntry>(); o.add(buildRegionalinventoryCustomBatchRequestEntry()); o.add(buildRegionalinventoryCustomBatchRequestEntry()); return o; } -checkUnnamed1547(core.List<api.RegionalinventoryCustomBatchRequestEntry> o) { +checkUnnamed1589(core.List<api.RegionalinventoryCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionalinventoryCustomBatchRequestEntry(o[0]); checkRegionalinventoryCustomBatchRequestEntry(o[1]); @@ -7395,7 +7866,7 @@ var o = new api.RegionalinventoryCustomBatchRequest(); buildCounterRegionalinventoryCustomBatchRequest++; if (buildCounterRegionalinventoryCustomBatchRequest < 3) { - o.entries = buildUnnamed1547(); + o.entries = buildUnnamed1589(); } buildCounterRegionalinventoryCustomBatchRequest--; return o; @@ -7405,7 +7876,7 @@ api.RegionalinventoryCustomBatchRequest o) { buildCounterRegionalinventoryCustomBatchRequest++; if (buildCounterRegionalinventoryCustomBatchRequest < 3) { - checkUnnamed1547(o.entries); + checkUnnamed1589(o.entries); } buildCounterRegionalinventoryCustomBatchRequest--; } @@ -7438,14 +7909,14 @@ buildCounterRegionalinventoryCustomBatchRequestEntry--; } -buildUnnamed1548() { +buildUnnamed1590() { var o = new core.List<api.RegionalinventoryCustomBatchResponseEntry>(); o.add(buildRegionalinventoryCustomBatchResponseEntry()); o.add(buildRegionalinventoryCustomBatchResponseEntry()); return o; } -checkUnnamed1548(core.List<api.RegionalinventoryCustomBatchResponseEntry> o) { +checkUnnamed1590(core.List<api.RegionalinventoryCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkRegionalinventoryCustomBatchResponseEntry(o[0]); checkRegionalinventoryCustomBatchResponseEntry(o[1]); @@ -7456,7 +7927,7 @@ var o = new api.RegionalinventoryCustomBatchResponse(); buildCounterRegionalinventoryCustomBatchResponse++; if (buildCounterRegionalinventoryCustomBatchResponse < 3) { - o.entries = buildUnnamed1548(); + o.entries = buildUnnamed1590(); o.kind = "foo"; } buildCounterRegionalinventoryCustomBatchResponse--; @@ -7467,7 +7938,7 @@ api.RegionalinventoryCustomBatchResponse o) { buildCounterRegionalinventoryCustomBatchResponse++; if (buildCounterRegionalinventoryCustomBatchResponse < 3) { - checkUnnamed1548(o.entries); + checkUnnamed1590(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterRegionalinventoryCustomBatchResponse--; @@ -7528,14 +7999,14 @@ buildCounterReturnAddress--; } -buildUnnamed1549() { +buildUnnamed1591() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1549(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')); @@ -7551,7 +8022,7 @@ o.postalCode = "foo"; o.recipientName = "foo"; o.region = "foo"; - o.streetAddress = buildUnnamed1549(); + o.streetAddress = buildUnnamed1591(); } buildCounterReturnAddressAddress--; return o; @@ -7565,32 +8036,32 @@ unittest.expect(o.postalCode, unittest.equals('foo')); unittest.expect(o.recipientName, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed1549(o.streetAddress); + checkUnnamed1591(o.streetAddress); } buildCounterReturnAddressAddress--; } -buildUnnamed1550() { +buildUnnamed1592() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1550(core.List<core.String> o) { +checkUnnamed1592(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1551() { +buildUnnamed1593() { var o = new core.List<api.ReturnPolicySeasonalOverride>(); o.add(buildReturnPolicySeasonalOverride()); o.add(buildReturnPolicySeasonalOverride()); return o; } -checkUnnamed1551(core.List<api.ReturnPolicySeasonalOverride> o) { +checkUnnamed1593(core.List<api.ReturnPolicySeasonalOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnPolicySeasonalOverride(o[0]); checkReturnPolicySeasonalOverride(o[1]); @@ -7605,10 +8076,10 @@ o.kind = "foo"; o.label = "foo"; o.name = "foo"; - o.nonFreeReturnReasons = buildUnnamed1550(); + o.nonFreeReturnReasons = buildUnnamed1592(); o.policy = buildReturnPolicyPolicy(); o.returnPolicyId = "foo"; - o.seasonalOverrides = buildUnnamed1551(); + o.seasonalOverrides = buildUnnamed1593(); } buildCounterReturnPolicy--; return o; @@ -7621,10 +8092,10 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.label, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1550(o.nonFreeReturnReasons); + checkUnnamed1592(o.nonFreeReturnReasons); checkReturnPolicyPolicy(o.policy); unittest.expect(o.returnPolicyId, unittest.equals('foo')); - checkUnnamed1551(o.seasonalOverrides); + checkUnnamed1593(o.seasonalOverrides); } buildCounterReturnPolicy--; } @@ -7704,14 +8175,14 @@ buildCounterReturnPricingInfo--; } -buildUnnamed1552() { +buildUnnamed1594() { var o = new core.List<api.ShipmentTrackingInfo>(); o.add(buildShipmentTrackingInfo()); o.add(buildShipmentTrackingInfo()); return o; } -checkUnnamed1552(core.List<api.ShipmentTrackingInfo> o) { +checkUnnamed1594(core.List<api.ShipmentTrackingInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkShipmentTrackingInfo(o[0]); checkShipmentTrackingInfo(o[1]); @@ -7726,7 +8197,7 @@ o.deliveryDate = "foo"; o.returnMethodType = "foo"; o.shipmentId = "foo"; - o.shipmentTrackingInfos = buildUnnamed1552(); + o.shipmentTrackingInfos = buildUnnamed1594(); o.shippingDate = "foo"; o.state = "foo"; } @@ -7741,21 +8212,21 @@ unittest.expect(o.deliveryDate, unittest.equals('foo')); unittest.expect(o.returnMethodType, unittest.equals('foo')); unittest.expect(o.shipmentId, unittest.equals('foo')); - checkUnnamed1552(o.shipmentTrackingInfos); + checkUnnamed1594(o.shipmentTrackingInfos); unittest.expect(o.shippingDate, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } buildCounterReturnShipment--; } -buildUnnamed1553() { +buildUnnamed1595() { var o = new core.List<api.ReturnaddressCustomBatchRequestEntry>(); o.add(buildReturnaddressCustomBatchRequestEntry()); o.add(buildReturnaddressCustomBatchRequestEntry()); return o; } -checkUnnamed1553(core.List<api.ReturnaddressCustomBatchRequestEntry> o) { +checkUnnamed1595(core.List<api.ReturnaddressCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnaddressCustomBatchRequestEntry(o[0]); checkReturnaddressCustomBatchRequestEntry(o[1]); @@ -7766,7 +8237,7 @@ var o = new api.ReturnaddressCustomBatchRequest(); buildCounterReturnaddressCustomBatchRequest++; if (buildCounterReturnaddressCustomBatchRequest < 3) { - o.entries = buildUnnamed1553(); + o.entries = buildUnnamed1595(); } buildCounterReturnaddressCustomBatchRequest--; return o; @@ -7775,7 +8246,7 @@ checkReturnaddressCustomBatchRequest(api.ReturnaddressCustomBatchRequest o) { buildCounterReturnaddressCustomBatchRequest++; if (buildCounterReturnaddressCustomBatchRequest < 3) { - checkUnnamed1553(o.entries); + checkUnnamed1595(o.entries); } buildCounterReturnaddressCustomBatchRequest--; } @@ -7808,14 +8279,14 @@ buildCounterReturnaddressCustomBatchRequestEntry--; } -buildUnnamed1554() { +buildUnnamed1596() { var o = new core.List<api.ReturnaddressCustomBatchResponseEntry>(); o.add(buildReturnaddressCustomBatchResponseEntry()); o.add(buildReturnaddressCustomBatchResponseEntry()); return o; } -checkUnnamed1554(core.List<api.ReturnaddressCustomBatchResponseEntry> o) { +checkUnnamed1596(core.List<api.ReturnaddressCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnaddressCustomBatchResponseEntry(o[0]); checkReturnaddressCustomBatchResponseEntry(o[1]); @@ -7826,7 +8297,7 @@ var o = new api.ReturnaddressCustomBatchResponse(); buildCounterReturnaddressCustomBatchResponse++; if (buildCounterReturnaddressCustomBatchResponse < 3) { - o.entries = buildUnnamed1554(); + o.entries = buildUnnamed1596(); o.kind = "foo"; } buildCounterReturnaddressCustomBatchResponse--; @@ -7836,7 +8307,7 @@ checkReturnaddressCustomBatchResponse(api.ReturnaddressCustomBatchResponse o) { buildCounterReturnaddressCustomBatchResponse++; if (buildCounterReturnaddressCustomBatchResponse < 3) { - checkUnnamed1554(o.entries); + checkUnnamed1596(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterReturnaddressCustomBatchResponse--; @@ -7868,14 +8339,14 @@ buildCounterReturnaddressCustomBatchResponseEntry--; } -buildUnnamed1555() { +buildUnnamed1597() { var o = new core.List<api.ReturnAddress>(); o.add(buildReturnAddress()); o.add(buildReturnAddress()); return o; } -checkUnnamed1555(core.List<api.ReturnAddress> o) { +checkUnnamed1597(core.List<api.ReturnAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnAddress(o[0]); checkReturnAddress(o[1]); @@ -7888,7 +8359,7 @@ if (buildCounterReturnaddressListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1555(); + o.resources = buildUnnamed1597(); } buildCounterReturnaddressListResponse--; return o; @@ -7899,19 +8370,19 @@ if (buildCounterReturnaddressListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1555(o.resources); + checkUnnamed1597(o.resources); } buildCounterReturnaddressListResponse--; } -buildUnnamed1556() { +buildUnnamed1598() { var o = new core.List<api.ReturnpolicyCustomBatchRequestEntry>(); o.add(buildReturnpolicyCustomBatchRequestEntry()); o.add(buildReturnpolicyCustomBatchRequestEntry()); return o; } -checkUnnamed1556(core.List<api.ReturnpolicyCustomBatchRequestEntry> o) { +checkUnnamed1598(core.List<api.ReturnpolicyCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnpolicyCustomBatchRequestEntry(o[0]); checkReturnpolicyCustomBatchRequestEntry(o[1]); @@ -7922,7 +8393,7 @@ var o = new api.ReturnpolicyCustomBatchRequest(); buildCounterReturnpolicyCustomBatchRequest++; if (buildCounterReturnpolicyCustomBatchRequest < 3) { - o.entries = buildUnnamed1556(); + o.entries = buildUnnamed1598(); } buildCounterReturnpolicyCustomBatchRequest--; return o; @@ -7931,7 +8402,7 @@ checkReturnpolicyCustomBatchRequest(api.ReturnpolicyCustomBatchRequest o) { buildCounterReturnpolicyCustomBatchRequest++; if (buildCounterReturnpolicyCustomBatchRequest < 3) { - checkUnnamed1556(o.entries); + checkUnnamed1598(o.entries); } buildCounterReturnpolicyCustomBatchRequest--; } @@ -7964,14 +8435,14 @@ buildCounterReturnpolicyCustomBatchRequestEntry--; } -buildUnnamed1557() { +buildUnnamed1599() { var o = new core.List<api.ReturnpolicyCustomBatchResponseEntry>(); o.add(buildReturnpolicyCustomBatchResponseEntry()); o.add(buildReturnpolicyCustomBatchResponseEntry()); return o; } -checkUnnamed1557(core.List<api.ReturnpolicyCustomBatchResponseEntry> o) { +checkUnnamed1599(core.List<api.ReturnpolicyCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnpolicyCustomBatchResponseEntry(o[0]); checkReturnpolicyCustomBatchResponseEntry(o[1]); @@ -7982,7 +8453,7 @@ var o = new api.ReturnpolicyCustomBatchResponse(); buildCounterReturnpolicyCustomBatchResponse++; if (buildCounterReturnpolicyCustomBatchResponse < 3) { - o.entries = buildUnnamed1557(); + o.entries = buildUnnamed1599(); o.kind = "foo"; } buildCounterReturnpolicyCustomBatchResponse--; @@ -7992,7 +8463,7 @@ checkReturnpolicyCustomBatchResponse(api.ReturnpolicyCustomBatchResponse o) { buildCounterReturnpolicyCustomBatchResponse++; if (buildCounterReturnpolicyCustomBatchResponse < 3) { - checkUnnamed1557(o.entries); + checkUnnamed1599(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterReturnpolicyCustomBatchResponse--; @@ -8024,14 +8495,14 @@ buildCounterReturnpolicyCustomBatchResponseEntry--; } -buildUnnamed1558() { +buildUnnamed1600() { var o = new core.List<api.ReturnPolicy>(); o.add(buildReturnPolicy()); o.add(buildReturnPolicy()); return o; } -checkUnnamed1558(core.List<api.ReturnPolicy> o) { +checkUnnamed1600(core.List<api.ReturnPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkReturnPolicy(o[0]); checkReturnPolicy(o[1]); @@ -8043,7 +8514,7 @@ buildCounterReturnpolicyListResponse++; if (buildCounterReturnpolicyListResponse < 3) { o.kind = "foo"; - o.resources = buildUnnamed1558(); + o.resources = buildUnnamed1600(); } buildCounterReturnpolicyListResponse--; return o; @@ -8053,19 +8524,19 @@ buildCounterReturnpolicyListResponse++; if (buildCounterReturnpolicyListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1558(o.resources); + checkUnnamed1600(o.resources); } buildCounterReturnpolicyListResponse--; } -buildUnnamed1559() { +buildUnnamed1601() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed1559(core.List<api.Value> o) { +checkUnnamed1601(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -8076,7 +8547,7 @@ var o = new api.Row(); buildCounterRow++; if (buildCounterRow < 3) { - o.cells = buildUnnamed1559(); + o.cells = buildUnnamed1601(); } buildCounterRow--; return o; @@ -8085,19 +8556,19 @@ checkRow(api.Row o) { buildCounterRow++; if (buildCounterRow < 3) { - checkUnnamed1559(o.cells); + checkUnnamed1601(o.cells); } buildCounterRow--; } -buildUnnamed1560() { +buildUnnamed1602() { var o = new core.List<api.RateGroup>(); o.add(buildRateGroup()); o.add(buildRateGroup()); return o; } -checkUnnamed1560(core.List<api.RateGroup> o) { +checkUnnamed1602(core.List<api.RateGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkRateGroup(o[0]); checkRateGroup(o[1]); @@ -8117,7 +8588,7 @@ o.minimumOrderValueTable = buildMinimumOrderValueTable(); o.name = "foo"; o.pickupService = buildPickupCarrierService(); - o.rateGroups = buildUnnamed1560(); + o.rateGroups = buildUnnamed1602(); o.shipmentType = "foo"; } buildCounterService--; @@ -8136,20 +8607,20 @@ checkMinimumOrderValueTable(o.minimumOrderValueTable); unittest.expect(o.name, unittest.equals('foo')); checkPickupCarrierService(o.pickupService); - checkUnnamed1560(o.rateGroups); + checkUnnamed1602(o.rateGroups); unittest.expect(o.shipmentType, unittest.equals('foo')); } buildCounterService--; } -buildUnnamed1561() { +buildUnnamed1603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1561(core.List<core.String> o) { +checkUnnamed1603(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8167,7 +8638,7 @@ o.startDate = "foo"; o.transferAmount = buildPrice(); o.transferDate = "foo"; - o.transferIds = buildUnnamed1561(); + o.transferIds = buildUnnamed1603(); } buildCounterSettlementReport--; return o; @@ -8183,7 +8654,7 @@ unittest.expect(o.startDate, unittest.equals('foo')); checkPrice(o.transferAmount); unittest.expect(o.transferDate, unittest.equals('foo')); - checkUnnamed1561(o.transferIds); + checkUnnamed1603(o.transferIds); } buildCounterSettlementReport--; } @@ -8260,14 +8731,14 @@ buildCounterSettlementTransactionAmountCommission--; } -buildUnnamed1562() { +buildUnnamed1604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1562(core.List<core.String> o) { +checkUnnamed1604(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8280,8 +8751,9 @@ if (buildCounterSettlementTransactionIdentifiers < 3) { o.adjustmentId = "foo"; o.merchantOrderId = "foo"; + o.orderItemId = "foo"; o.settlementEntryId = "foo"; - o.shipmentIds = buildUnnamed1562(); + o.shipmentIds = buildUnnamed1604(); o.transactionId = "foo"; } buildCounterSettlementTransactionIdentifiers--; @@ -8293,8 +8765,9 @@ if (buildCounterSettlementTransactionIdentifiers < 3) { unittest.expect(o.adjustmentId, unittest.equals('foo')); unittest.expect(o.merchantOrderId, unittest.equals('foo')); + unittest.expect(o.orderItemId, unittest.equals('foo')); unittest.expect(o.settlementEntryId, unittest.equals('foo')); - checkUnnamed1562(o.shipmentIds); + checkUnnamed1604(o.shipmentIds); unittest.expect(o.transactionId, unittest.equals('foo')); } buildCounterSettlementTransactionIdentifiers--; @@ -8321,14 +8794,14 @@ buildCounterSettlementTransactionTransaction--; } -buildUnnamed1563() { +buildUnnamed1605() { var o = new core.List<api.SettlementReport>(); o.add(buildSettlementReport()); o.add(buildSettlementReport()); return o; } -checkUnnamed1563(core.List<api.SettlementReport> o) { +checkUnnamed1605(core.List<api.SettlementReport> o) { unittest.expect(o, unittest.hasLength(2)); checkSettlementReport(o[0]); checkSettlementReport(o[1]); @@ -8341,7 +8814,7 @@ if (buildCounterSettlementreportsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1563(); + o.resources = buildUnnamed1605(); } buildCounterSettlementreportsListResponse--; return o; @@ -8352,19 +8825,19 @@ if (buildCounterSettlementreportsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1563(o.resources); + checkUnnamed1605(o.resources); } buildCounterSettlementreportsListResponse--; } -buildUnnamed1564() { +buildUnnamed1606() { var o = new core.List<api.SettlementTransaction>(); o.add(buildSettlementTransaction()); o.add(buildSettlementTransaction()); return o; } -checkUnnamed1564(core.List<api.SettlementTransaction> o) { +checkUnnamed1606(core.List<api.SettlementTransaction> o) { unittest.expect(o, unittest.hasLength(2)); checkSettlementTransaction(o[0]); checkSettlementTransaction(o[1]); @@ -8377,7 +8850,7 @@ if (buildCounterSettlementtransactionsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1564(); + o.resources = buildUnnamed1606(); } buildCounterSettlementtransactionsListResponse--; return o; @@ -8389,19 +8862,19 @@ if (buildCounterSettlementtransactionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1564(o.resources); + checkUnnamed1606(o.resources); } buildCounterSettlementtransactionsListResponse--; } -buildUnnamed1565() { +buildUnnamed1607() { var o = new core.List<api.ShipmentInvoiceLineItemInvoice>(); o.add(buildShipmentInvoiceLineItemInvoice()); o.add(buildShipmentInvoiceLineItemInvoice()); return o; } -checkUnnamed1565(core.List<api.ShipmentInvoiceLineItemInvoice> o) { +checkUnnamed1607(core.List<api.ShipmentInvoiceLineItemInvoice> o) { unittest.expect(o, unittest.hasLength(2)); checkShipmentInvoiceLineItemInvoice(o[0]); checkShipmentInvoiceLineItemInvoice(o[1]); @@ -8413,7 +8886,7 @@ buildCounterShipmentInvoice++; if (buildCounterShipmentInvoice < 3) { o.invoiceSummary = buildInvoiceSummary(); - o.lineItemInvoices = buildUnnamed1565(); + o.lineItemInvoices = buildUnnamed1607(); o.shipmentGroupId = "foo"; } buildCounterShipmentInvoice--; @@ -8424,20 +8897,20 @@ buildCounterShipmentInvoice++; if (buildCounterShipmentInvoice < 3) { checkInvoiceSummary(o.invoiceSummary); - checkUnnamed1565(o.lineItemInvoices); + checkUnnamed1607(o.lineItemInvoices); unittest.expect(o.shipmentGroupId, unittest.equals('foo')); } buildCounterShipmentInvoice--; } -buildUnnamed1566() { +buildUnnamed1608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1566(core.List<core.String> o) { +checkUnnamed1608(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8450,7 +8923,7 @@ if (buildCounterShipmentInvoiceLineItemInvoice < 3) { o.lineItemId = "foo"; o.productId = "foo"; - o.shipmentUnitIds = buildUnnamed1566(); + o.shipmentUnitIds = buildUnnamed1608(); o.unitInvoice = buildUnitInvoice(); } buildCounterShipmentInvoiceLineItemInvoice--; @@ -8462,7 +8935,7 @@ if (buildCounterShipmentInvoiceLineItemInvoice < 3) { unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); - checkUnnamed1566(o.shipmentUnitIds); + checkUnnamed1608(o.shipmentUnitIds); checkUnitInvoice(o.unitInvoice); } buildCounterShipmentInvoiceLineItemInvoice--; @@ -8489,27 +8962,27 @@ buildCounterShipmentTrackingInfo--; } -buildUnnamed1567() { +buildUnnamed1609() { var o = new core.List<api.PostalCodeGroup>(); o.add(buildPostalCodeGroup()); o.add(buildPostalCodeGroup()); return o; } -checkUnnamed1567(core.List<api.PostalCodeGroup> o) { +checkUnnamed1609(core.List<api.PostalCodeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCodeGroup(o[0]); checkPostalCodeGroup(o[1]); } -buildUnnamed1568() { +buildUnnamed1610() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed1568(core.List<api.Service> o) { +checkUnnamed1610(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -8521,8 +8994,8 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { o.accountId = "foo"; - o.postalCodeGroups = buildUnnamed1567(); - o.services = buildUnnamed1568(); + o.postalCodeGroups = buildUnnamed1609(); + o.services = buildUnnamed1610(); } buildCounterShippingSettings--; return o; @@ -8532,20 +9005,20 @@ buildCounterShippingSettings++; if (buildCounterShippingSettings < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed1567(o.postalCodeGroups); - checkUnnamed1568(o.services); + checkUnnamed1609(o.postalCodeGroups); + checkUnnamed1610(o.services); } buildCounterShippingSettings--; } -buildUnnamed1569() { +buildUnnamed1611() { var o = new core.List<api.ShippingsettingsCustomBatchRequestEntry>(); o.add(buildShippingsettingsCustomBatchRequestEntry()); o.add(buildShippingsettingsCustomBatchRequestEntry()); return o; } -checkUnnamed1569(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { +checkUnnamed1611(core.List<api.ShippingsettingsCustomBatchRequestEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchRequestEntry(o[0]); checkShippingsettingsCustomBatchRequestEntry(o[1]); @@ -8556,7 +9029,7 @@ var o = new api.ShippingsettingsCustomBatchRequest(); buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - o.entries = buildUnnamed1569(); + o.entries = buildUnnamed1611(); } buildCounterShippingsettingsCustomBatchRequest--; return o; @@ -8566,7 +9039,7 @@ api.ShippingsettingsCustomBatchRequest o) { buildCounterShippingsettingsCustomBatchRequest++; if (buildCounterShippingsettingsCustomBatchRequest < 3) { - checkUnnamed1569(o.entries); + checkUnnamed1611(o.entries); } buildCounterShippingsettingsCustomBatchRequest--; } @@ -8599,14 +9072,14 @@ buildCounterShippingsettingsCustomBatchRequestEntry--; } -buildUnnamed1570() { +buildUnnamed1612() { var o = new core.List<api.ShippingsettingsCustomBatchResponseEntry>(); o.add(buildShippingsettingsCustomBatchResponseEntry()); o.add(buildShippingsettingsCustomBatchResponseEntry()); return o; } -checkUnnamed1570(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { +checkUnnamed1612(core.List<api.ShippingsettingsCustomBatchResponseEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingsettingsCustomBatchResponseEntry(o[0]); checkShippingsettingsCustomBatchResponseEntry(o[1]); @@ -8617,7 +9090,7 @@ var o = new api.ShippingsettingsCustomBatchResponse(); buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - o.entries = buildUnnamed1570(); + o.entries = buildUnnamed1612(); o.kind = "foo"; } buildCounterShippingsettingsCustomBatchResponse--; @@ -8628,7 +9101,7 @@ api.ShippingsettingsCustomBatchResponse o) { buildCounterShippingsettingsCustomBatchResponse++; if (buildCounterShippingsettingsCustomBatchResponse < 3) { - checkUnnamed1570(o.entries); + checkUnnamed1612(o.entries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsCustomBatchResponse--; @@ -8660,14 +9133,14 @@ buildCounterShippingsettingsCustomBatchResponseEntry--; } -buildUnnamed1571() { +buildUnnamed1613() { var o = new core.List<api.CarriersCarrier>(); o.add(buildCarriersCarrier()); o.add(buildCarriersCarrier()); return o; } -checkUnnamed1571(core.List<api.CarriersCarrier> o) { +checkUnnamed1613(core.List<api.CarriersCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkCarriersCarrier(o[0]); checkCarriersCarrier(o[1]); @@ -8678,7 +9151,7 @@ var o = new api.ShippingsettingsGetSupportedCarriersResponse(); buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - o.carriers = buildUnnamed1571(); + o.carriers = buildUnnamed1613(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedCarriersResponse--; @@ -8689,20 +9162,20 @@ api.ShippingsettingsGetSupportedCarriersResponse o) { buildCounterShippingsettingsGetSupportedCarriersResponse++; if (buildCounterShippingsettingsGetSupportedCarriersResponse < 3) { - checkUnnamed1571(o.carriers); + checkUnnamed1613(o.carriers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedCarriersResponse--; } -buildUnnamed1572() { +buildUnnamed1614() { var o = new core.List<api.HolidaysHoliday>(); o.add(buildHolidaysHoliday()); o.add(buildHolidaysHoliday()); return o; } -checkUnnamed1572(core.List<api.HolidaysHoliday> o) { +checkUnnamed1614(core.List<api.HolidaysHoliday> o) { unittest.expect(o, unittest.hasLength(2)); checkHolidaysHoliday(o[0]); checkHolidaysHoliday(o[1]); @@ -8713,7 +9186,7 @@ var o = new api.ShippingsettingsGetSupportedHolidaysResponse(); buildCounterShippingsettingsGetSupportedHolidaysResponse++; if (buildCounterShippingsettingsGetSupportedHolidaysResponse < 3) { - o.holidays = buildUnnamed1572(); + o.holidays = buildUnnamed1614(); o.kind = "foo"; } buildCounterShippingsettingsGetSupportedHolidaysResponse--; @@ -8724,20 +9197,20 @@ api.ShippingsettingsGetSupportedHolidaysResponse o) { buildCounterShippingsettingsGetSupportedHolidaysResponse++; if (buildCounterShippingsettingsGetSupportedHolidaysResponse < 3) { - checkUnnamed1572(o.holidays); + checkUnnamed1614(o.holidays); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterShippingsettingsGetSupportedHolidaysResponse--; } -buildUnnamed1573() { +buildUnnamed1615() { var o = new core.List<api.PickupServicesPickupService>(); o.add(buildPickupServicesPickupService()); o.add(buildPickupServicesPickupService()); return o; } -checkUnnamed1573(core.List<api.PickupServicesPickupService> o) { +checkUnnamed1615(core.List<api.PickupServicesPickupService> o) { unittest.expect(o, unittest.hasLength(2)); checkPickupServicesPickupService(o[0]); checkPickupServicesPickupService(o[1]); @@ -8749,7 +9222,7 @@ buildCounterShippingsettingsGetSupportedPickupServicesResponse++; if (buildCounterShippingsettingsGetSupportedPickupServicesResponse < 3) { o.kind = "foo"; - o.pickupServices = buildUnnamed1573(); + o.pickupServices = buildUnnamed1615(); } buildCounterShippingsettingsGetSupportedPickupServicesResponse--; return o; @@ -8760,19 +9233,19 @@ buildCounterShippingsettingsGetSupportedPickupServicesResponse++; if (buildCounterShippingsettingsGetSupportedPickupServicesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1573(o.pickupServices); + checkUnnamed1615(o.pickupServices); } buildCounterShippingsettingsGetSupportedPickupServicesResponse--; } -buildUnnamed1574() { +buildUnnamed1616() { var o = new core.List<api.ShippingSettings>(); o.add(buildShippingSettings()); o.add(buildShippingSettings()); return o; } -checkUnnamed1574(core.List<api.ShippingSettings> o) { +checkUnnamed1616(core.List<api.ShippingSettings> o) { unittest.expect(o, unittest.hasLength(2)); checkShippingSettings(o[0]); checkShippingSettings(o[1]); @@ -8785,7 +9258,7 @@ if (buildCounterShippingsettingsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.resources = buildUnnamed1574(); + o.resources = buildUnnamed1616(); } buildCounterShippingsettingsListResponse--; return o; @@ -8796,19 +9269,19 @@ if (buildCounterShippingsettingsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1574(o.resources); + checkUnnamed1616(o.resources); } buildCounterShippingsettingsListResponse--; } -buildUnnamed1575() { +buildUnnamed1617() { var o = new core.List<api.Row>(); o.add(buildRow()); o.add(buildRow()); return o; } -checkUnnamed1575(core.List<api.Row> o) { +checkUnnamed1617(core.List<api.Row> o) { unittest.expect(o, unittest.hasLength(2)); checkRow(o[0]); checkRow(o[1]); @@ -8822,7 +9295,7 @@ o.columnHeaders = buildHeaders(); o.name = "foo"; o.rowHeaders = buildHeaders(); - o.rows = buildUnnamed1575(); + o.rows = buildUnnamed1617(); } buildCounterTable--; return o; @@ -8834,32 +9307,32 @@ checkHeaders(o.columnHeaders); unittest.expect(o.name, unittest.equals('foo')); checkHeaders(o.rowHeaders); - checkUnnamed1575(o.rows); + checkUnnamed1617(o.rows); } buildCounterTable--; } -buildUnnamed1576() { +buildUnnamed1618() { var o = new core.List<api.TestOrderLineItem>(); o.add(buildTestOrderLineItem()); o.add(buildTestOrderLineItem()); return o; } -checkUnnamed1576(core.List<api.TestOrderLineItem> o) { +checkUnnamed1618(core.List<api.TestOrderLineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkTestOrderLineItem(o[0]); checkTestOrderLineItem(o[1]); } -buildUnnamed1577() { +buildUnnamed1619() { var o = new core.List<api.OrderPromotion>(); o.add(buildOrderPromotion()); o.add(buildOrderPromotion()); return o; } -checkUnnamed1577(core.List<api.OrderPromotion> o) { +checkUnnamed1619(core.List<api.OrderPromotion> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderPromotion(o[0]); checkOrderPromotion(o[1]); @@ -8870,15 +9343,17 @@ var o = new api.TestOrder(); buildCounterTestOrder++; if (buildCounterTestOrder < 3) { + o.deliveryDetails = buildTestOrderDeliveryDetails(); o.enableOrderinvoices = true; o.kind = "foo"; - o.lineItems = buildUnnamed1576(); + o.lineItems = buildUnnamed1618(); o.notificationMode = "foo"; + o.pickupDetails = buildTestOrderPickupDetails(); o.predefinedBillingAddress = "foo"; o.predefinedDeliveryAddress = "foo"; o.predefinedEmail = "foo"; o.predefinedPickupDetails = "foo"; - o.promotions = buildUnnamed1577(); + o.promotions = buildUnnamed1619(); o.shippingCost = buildPrice(); o.shippingOption = "foo"; } @@ -8889,21 +9364,103 @@ checkTestOrder(api.TestOrder o) { buildCounterTestOrder++; if (buildCounterTestOrder < 3) { + checkTestOrderDeliveryDetails(o.deliveryDetails); unittest.expect(o.enableOrderinvoices, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1576(o.lineItems); + checkUnnamed1618(o.lineItems); unittest.expect(o.notificationMode, unittest.equals('foo')); + checkTestOrderPickupDetails(o.pickupDetails); unittest.expect(o.predefinedBillingAddress, unittest.equals('foo')); unittest.expect(o.predefinedDeliveryAddress, unittest.equals('foo')); unittest.expect(o.predefinedEmail, unittest.equals('foo')); unittest.expect(o.predefinedPickupDetails, unittest.equals('foo')); - checkUnnamed1577(o.promotions); + checkUnnamed1619(o.promotions); checkPrice(o.shippingCost); unittest.expect(o.shippingOption, unittest.equals('foo')); } buildCounterTestOrder--; } +buildUnnamed1620() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1620(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1621() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1621(core.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 buildCounterTestOrderAddress = 0; +buildTestOrderAddress() { + var o = new api.TestOrderAddress(); + buildCounterTestOrderAddress++; + if (buildCounterTestOrderAddress < 3) { + o.country = "foo"; + o.fullAddress = buildUnnamed1620(); + o.isPostOfficeBox = true; + o.locality = "foo"; + o.postalCode = "foo"; + o.recipientName = "foo"; + o.region = "foo"; + o.streetAddress = buildUnnamed1621(); + } + buildCounterTestOrderAddress--; + return o; +} + +checkTestOrderAddress(api.TestOrderAddress o) { + buildCounterTestOrderAddress++; + if (buildCounterTestOrderAddress < 3) { + unittest.expect(o.country, unittest.equals('foo')); + checkUnnamed1620(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')); + checkUnnamed1621(o.streetAddress); + } + buildCounterTestOrderAddress--; +} + +core.int buildCounterTestOrderDeliveryDetails = 0; +buildTestOrderDeliveryDetails() { + var o = new api.TestOrderDeliveryDetails(); + buildCounterTestOrderDeliveryDetails++; + if (buildCounterTestOrderDeliveryDetails < 3) { + o.address = buildTestOrderAddress(); + o.phoneNumber = "foo"; + } + buildCounterTestOrderDeliveryDetails--; + return o; +} + +checkTestOrderDeliveryDetails(api.TestOrderDeliveryDetails o) { + buildCounterTestOrderDeliveryDetails++; + if (buildCounterTestOrderDeliveryDetails < 3) { + checkTestOrderAddress(o.address); + unittest.expect(o.phoneNumber, unittest.equals('foo')); + } + buildCounterTestOrderDeliveryDetails--; +} + core.int buildCounterTestOrderLineItem = 0; buildTestOrderLineItem() { var o = new api.TestOrderLineItem(); @@ -8929,27 +9486,27 @@ buildCounterTestOrderLineItem--; } -buildUnnamed1578() { +buildUnnamed1622() { var o = new core.List<api.OrderLineItemProductFee>(); o.add(buildOrderLineItemProductFee()); o.add(buildOrderLineItemProductFee()); return o; } -checkUnnamed1578(core.List<api.OrderLineItemProductFee> o) { +checkUnnamed1622(core.List<api.OrderLineItemProductFee> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductFee(o[0]); checkOrderLineItemProductFee(o[1]); } -buildUnnamed1579() { +buildUnnamed1623() { var o = new core.List<api.OrderLineItemProductVariantAttribute>(); o.add(buildOrderLineItemProductVariantAttribute()); o.add(buildOrderLineItemProductVariantAttribute()); return o; } -checkUnnamed1579(core.List<api.OrderLineItemProductVariantAttribute> o) { +checkUnnamed1623(core.List<api.OrderLineItemProductVariantAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderLineItemProductVariantAttribute(o[0]); checkOrderLineItemProductVariantAttribute(o[1]); @@ -8963,7 +9520,7 @@ o.brand = "foo"; o.condition = "foo"; o.contentLanguage = "foo"; - o.fees = buildUnnamed1578(); + o.fees = buildUnnamed1622(); o.gtin = "foo"; o.imageLink = "foo"; o.itemGroupId = "foo"; @@ -8972,7 +9529,7 @@ o.price = buildPrice(); o.targetCountry = "foo"; o.title = "foo"; - o.variantAttributes = buildUnnamed1579(); + o.variantAttributes = buildUnnamed1623(); } buildCounterTestOrderLineItemProduct--; return o; @@ -8984,7 +9541,7 @@ unittest.expect(o.brand, unittest.equals('foo')); unittest.expect(o.condition, unittest.equals('foo')); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed1578(o.fees); + checkUnnamed1622(o.fees); unittest.expect(o.gtin, unittest.equals('foo')); unittest.expect(o.imageLink, unittest.equals('foo')); unittest.expect(o.itemGroupId, unittest.equals('foo')); @@ -8993,45 +9550,105 @@ checkPrice(o.price); unittest.expect(o.targetCountry, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed1579(o.variantAttributes); + checkUnnamed1623(o.variantAttributes); } buildCounterTestOrderLineItemProduct--; } -buildUnnamed1580() { +buildUnnamed1624() { + var o = new core.List<api.TestOrderPickupDetailsPickupPerson>(); + o.add(buildTestOrderPickupDetailsPickupPerson()); + o.add(buildTestOrderPickupDetailsPickupPerson()); + return o; +} + +checkUnnamed1624(core.List<api.TestOrderPickupDetailsPickupPerson> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTestOrderPickupDetailsPickupPerson(o[0]); + checkTestOrderPickupDetailsPickupPerson(o[1]); +} + +core.int buildCounterTestOrderPickupDetails = 0; +buildTestOrderPickupDetails() { + var o = new api.TestOrderPickupDetails(); + buildCounterTestOrderPickupDetails++; + if (buildCounterTestOrderPickupDetails < 3) { + o.locationCode = "foo"; + o.pickupLocationAddress = buildTestOrderAddress(); + o.pickupLocationType = "foo"; + o.pickupPersons = buildUnnamed1624(); + } + buildCounterTestOrderPickupDetails--; + return o; +} + +checkTestOrderPickupDetails(api.TestOrderPickupDetails o) { + buildCounterTestOrderPickupDetails++; + if (buildCounterTestOrderPickupDetails < 3) { + unittest.expect(o.locationCode, unittest.equals('foo')); + checkTestOrderAddress(o.pickupLocationAddress); + unittest.expect(o.pickupLocationType, unittest.equals('foo')); + checkUnnamed1624(o.pickupPersons); + } + buildCounterTestOrderPickupDetails--; +} + +core.int buildCounterTestOrderPickupDetailsPickupPerson = 0; +buildTestOrderPickupDetailsPickupPerson() { + var o = new api.TestOrderPickupDetailsPickupPerson(); + buildCounterTestOrderPickupDetailsPickupPerson++; + if (buildCounterTestOrderPickupDetailsPickupPerson < 3) { + o.name = "foo"; + o.phoneNumber = "foo"; + } + buildCounterTestOrderPickupDetailsPickupPerson--; + return o; +} + +checkTestOrderPickupDetailsPickupPerson( + api.TestOrderPickupDetailsPickupPerson o) { + buildCounterTestOrderPickupDetailsPickupPerson++; + if (buildCounterTestOrderPickupDetailsPickupPerson < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.phoneNumber, unittest.equals('foo')); + } + buildCounterTestOrderPickupDetailsPickupPerson--; +} + +buildUnnamed1625() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1580(core.List<core.String> o) { +checkUnnamed1625(core.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() { +buildUnnamed1626() { var o = new core.List<api.TransitTableTransitTimeRow>(); o.add(buildTransitTableTransitTimeRow()); o.add(buildTransitTableTransitTimeRow()); return o; } -checkUnnamed1581(core.List<api.TransitTableTransitTimeRow> o) { +checkUnnamed1626(core.List<api.TransitTableTransitTimeRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTransitTableTransitTimeRow(o[0]); checkTransitTableTransitTimeRow(o[1]); } -buildUnnamed1582() { +buildUnnamed1627() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1582(core.List<core.String> o) { +checkUnnamed1627(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9042,9 +9659,9 @@ var o = new api.TransitTable(); buildCounterTransitTable++; if (buildCounterTransitTable < 3) { - o.postalCodeGroupNames = buildUnnamed1580(); - o.rows = buildUnnamed1581(); - o.transitTimeLabels = buildUnnamed1582(); + o.postalCodeGroupNames = buildUnnamed1625(); + o.rows = buildUnnamed1626(); + o.transitTimeLabels = buildUnnamed1627(); } buildCounterTransitTable--; return o; @@ -9053,21 +9670,21 @@ checkTransitTable(api.TransitTable o) { buildCounterTransitTable++; if (buildCounterTransitTable < 3) { - checkUnnamed1580(o.postalCodeGroupNames); - checkUnnamed1581(o.rows); - checkUnnamed1582(o.transitTimeLabels); + checkUnnamed1625(o.postalCodeGroupNames); + checkUnnamed1626(o.rows); + checkUnnamed1627(o.transitTimeLabels); } buildCounterTransitTable--; } -buildUnnamed1583() { +buildUnnamed1628() { var o = new core.List<api.TransitTableTransitTimeRowTransitTimeValue>(); o.add(buildTransitTableTransitTimeRowTransitTimeValue()); o.add(buildTransitTableTransitTimeRowTransitTimeValue()); return o; } -checkUnnamed1583(core.List<api.TransitTableTransitTimeRowTransitTimeValue> o) { +checkUnnamed1628(core.List<api.TransitTableTransitTimeRowTransitTimeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTransitTableTransitTimeRowTransitTimeValue(o[0]); checkTransitTableTransitTimeRowTransitTimeValue(o[1]); @@ -9078,7 +9695,7 @@ var o = new api.TransitTableTransitTimeRow(); buildCounterTransitTableTransitTimeRow++; if (buildCounterTransitTableTransitTimeRow < 3) { - o.values = buildUnnamed1583(); + o.values = buildUnnamed1628(); } buildCounterTransitTableTransitTimeRow--; return o; @@ -9087,7 +9704,7 @@ checkTransitTableTransitTimeRow(api.TransitTableTransitTimeRow o) { buildCounterTransitTableTransitTimeRow++; if (buildCounterTransitTableTransitTimeRow < 3) { - checkUnnamed1583(o.values); + checkUnnamed1628(o.values); } buildCounterTransitTableTransitTimeRow--; } @@ -9114,27 +9731,27 @@ buildCounterTransitTableTransitTimeRowTransitTimeValue--; } -buildUnnamed1584() { +buildUnnamed1629() { var o = new core.List<api.UnitInvoiceAdditionalCharge>(); o.add(buildUnitInvoiceAdditionalCharge()); o.add(buildUnitInvoiceAdditionalCharge()); return o; } -checkUnnamed1584(core.List<api.UnitInvoiceAdditionalCharge> o) { +checkUnnamed1629(core.List<api.UnitInvoiceAdditionalCharge> o) { unittest.expect(o, unittest.hasLength(2)); checkUnitInvoiceAdditionalCharge(o[0]); checkUnitInvoiceAdditionalCharge(o[1]); } -buildUnnamed1585() { +buildUnnamed1630() { var o = new core.List<api.UnitInvoiceTaxLine>(); o.add(buildUnitInvoiceTaxLine()); o.add(buildUnitInvoiceTaxLine()); return o; } -checkUnnamed1585(core.List<api.UnitInvoiceTaxLine> o) { +checkUnnamed1630(core.List<api.UnitInvoiceTaxLine> o) { unittest.expect(o, unittest.hasLength(2)); checkUnitInvoiceTaxLine(o[0]); checkUnitInvoiceTaxLine(o[1]); @@ -9145,9 +9762,9 @@ var o = new api.UnitInvoice(); buildCounterUnitInvoice++; if (buildCounterUnitInvoice < 3) { - o.additionalCharges = buildUnnamed1584(); + o.additionalCharges = buildUnnamed1629(); o.unitPrice = buildPrice(); - o.unitPriceTaxes = buildUnnamed1585(); + o.unitPriceTaxes = buildUnnamed1630(); } buildCounterUnitInvoice--; return o; @@ -9156,9 +9773,9 @@ checkUnitInvoice(api.UnitInvoice o) { buildCounterUnitInvoice++; if (buildCounterUnitInvoice < 3) { - checkUnnamed1584(o.additionalCharges); + checkUnnamed1629(o.additionalCharges); checkPrice(o.unitPrice); - checkUnnamed1585(o.unitPriceTaxes); + checkUnnamed1630(o.unitPriceTaxes); } buildCounterUnitInvoice--; } @@ -9255,144 +9872,144 @@ buildCounterWeight--; } -buildUnnamed1586() { +buildUnnamed1631() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1586(core.List<core.String> o) { +checkUnnamed1631(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1587() { +buildUnnamed1632() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1587(core.List<core.String> o) { +checkUnnamed1632(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1588() { +buildUnnamed1633() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1588(core.List<core.String> o) { +checkUnnamed1633(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1589() { +buildUnnamed1634() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1589(core.List<core.String> o) { +checkUnnamed1634(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1590() { +buildUnnamed1635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1590(core.List<core.String> o) { +checkUnnamed1635(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1591() { +buildUnnamed1636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1591(core.List<core.String> o) { +checkUnnamed1636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1592() { +buildUnnamed1637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1592(core.List<core.String> o) { +checkUnnamed1637(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1593() { +buildUnnamed1638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1593(core.List<core.String> o) { +checkUnnamed1638(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1594() { +buildUnnamed1639() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1594(core.List<core.String> o) { +checkUnnamed1639(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1595() { +buildUnnamed1640() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1595(core.List<core.String> o) { +checkUnnamed1640(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1596() { +buildUnnamed1641() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1596(core.List<core.String> o) { +checkUnnamed1641(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -9616,6 +10233,22 @@ }); }); + unittest.group("obj-schema-AccountsUpdateLabelsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAccountsUpdateLabelsRequest(); + var od = new api.AccountsUpdateLabelsRequest.fromJson(o.toJson()); + checkAccountsUpdateLabelsRequest(od); + }); + }); + + unittest.group("obj-schema-AccountsUpdateLabelsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAccountsUpdateLabelsResponse(); + var od = new api.AccountsUpdateLabelsResponse.fromJson(o.toJson()); + checkAccountsUpdateLabelsResponse(od); + }); + }); + unittest.group("obj-schema-AccountstatusesCustomBatchRequest", () { unittest.test("to-json--from-json", () { var o = buildAccountstatusesCustomBatchRequest(); @@ -10385,6 +11018,14 @@ }); }); + unittest.group("obj-schema-OrderOrderAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildOrderOrderAnnotation(); + var od = new api.OrderOrderAnnotation.fromJson(o.toJson()); + checkOrderOrderAnnotation(od); + }); + }); + unittest.group("obj-schema-OrderPickupDetails", () { unittest.test("to-json--from-json", () { var o = buildOrderPickupDetails(); @@ -10465,6 +11106,15 @@ }); }); + unittest.group("obj-schema-OrderShipmentScheduledDeliveryDetails", () { + unittest.test("to-json--from-json", () { + var o = buildOrderShipmentScheduledDeliveryDetails(); + var od = + new api.OrderShipmentScheduledDeliveryDetails.fromJson(o.toJson()); + checkOrderShipmentScheduledDeliveryDetails(od); + }); + }); + unittest.group("obj-schema-OrderinvoicesCreateChargeInvoiceRequest", () { unittest.test("to-json--from-json", () { var o = buildOrderinvoicesCreateChargeInvoiceRequest(); @@ -10736,6 +11386,25 @@ }); }); + unittest.group("obj-schema-OrdersCustomBatchRequestEntryRefundItemItem", () { + unittest.test("to-json--from-json", () { + var o = buildOrdersCustomBatchRequestEntryRefundItemItem(); + var od = new api.OrdersCustomBatchRequestEntryRefundItemItem.fromJson( + o.toJson()); + checkOrdersCustomBatchRequestEntryRefundItemItem(od); + }); + }); + + unittest.group("obj-schema-OrdersCustomBatchRequestEntryRefundItemShipping", + () { + unittest.test("to-json--from-json", () { + var o = buildOrdersCustomBatchRequestEntryRefundItemShipping(); + var od = new api.OrdersCustomBatchRequestEntryRefundItemShipping.fromJson( + o.toJson()); + checkOrdersCustomBatchRequestEntryRefundItemShipping(od); + }); + }); + unittest.group( "obj-schema-OrdersCustomBatchRequestEntryShipLineItemsShipmentInfo", () { unittest.test("to-json--from-json", () { @@ -10787,6 +11456,38 @@ }); }); + unittest.group("obj-schema-OrdersRefundItemRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrdersRefundItemRequest(); + var od = new api.OrdersRefundItemRequest.fromJson(o.toJson()); + checkOrdersRefundItemRequest(od); + }); + }); + + unittest.group("obj-schema-OrdersRefundItemResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrdersRefundItemResponse(); + var od = new api.OrdersRefundItemResponse.fromJson(o.toJson()); + checkOrdersRefundItemResponse(od); + }); + }); + + unittest.group("obj-schema-OrdersRefundOrderRequest", () { + unittest.test("to-json--from-json", () { + var o = buildOrdersRefundOrderRequest(); + var od = new api.OrdersRefundOrderRequest.fromJson(o.toJson()); + checkOrdersRefundOrderRequest(od); + }); + }); + + unittest.group("obj-schema-OrdersRefundOrderResponse", () { + unittest.test("to-json--from-json", () { + var o = buildOrdersRefundOrderResponse(); + var od = new api.OrdersRefundOrderResponse.fromJson(o.toJson()); + checkOrdersRefundOrderResponse(od); + }); + }); + unittest.group("obj-schema-OrdersRejectReturnLineItemRequest", () { unittest.test("to-json--from-json", () { var o = buildOrdersRejectReturnLineItemRequest(); @@ -11069,6 +11770,14 @@ }); }); + unittest.group("obj-schema-ProductProductDetail", () { + unittest.test("to-json--from-json", () { + var o = buildProductProductDetail(); + var od = new api.ProductProductDetail.fromJson(o.toJson()); + checkProductProductDetail(od); + }); + }); + unittest.group("obj-schema-ProductShipping", () { unittest.test("to-json--from-json", () { var o = buildProductShipping(); @@ -11117,6 +11826,14 @@ }); }); + unittest.group("obj-schema-ProductSubscriptionCost", () { + unittest.test("to-json--from-json", () { + var o = buildProductSubscriptionCost(); + var od = new api.ProductSubscriptionCost.fromJson(o.toJson()); + checkProductSubscriptionCost(od); + }); + }); + unittest.group("obj-schema-ProductTax", () { unittest.test("to-json--from-json", () { var o = buildProductTax(); @@ -11629,6 +12346,22 @@ }); }); + unittest.group("obj-schema-TestOrderAddress", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderAddress(); + var od = new api.TestOrderAddress.fromJson(o.toJson()); + checkTestOrderAddress(od); + }); + }); + + unittest.group("obj-schema-TestOrderDeliveryDetails", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderDeliveryDetails(); + var od = new api.TestOrderDeliveryDetails.fromJson(o.toJson()); + checkTestOrderDeliveryDetails(od); + }); + }); + unittest.group("obj-schema-TestOrderLineItem", () { unittest.test("to-json--from-json", () { var o = buildTestOrderLineItem(); @@ -11645,6 +12378,22 @@ }); }); + unittest.group("obj-schema-TestOrderPickupDetails", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderPickupDetails(); + var od = new api.TestOrderPickupDetails.fromJson(o.toJson()); + checkTestOrderPickupDetails(od); + }); + }); + + unittest.group("obj-schema-TestOrderPickupDetailsPickupPerson", () { + unittest.test("to-json--from-json", () { + var o = buildTestOrderPickupDetailsPickupPerson(); + var od = new api.TestOrderPickupDetailsPickupPerson.fromJson(o.toJson()); + checkTestOrderPickupDetailsPickupPerson(od); + }); + }); + unittest.group("obj-schema-TransitTable", () { unittest.test("to-json--from-json", () { var o = buildTransitTable(); @@ -11925,6 +12674,7 @@ api.AccountsResourceApi res = new api.ContentApi(mock).accounts; var arg_merchantId = "foo"; var arg_accountId = "foo"; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11953,6 +12703,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11962,7 +12713,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_merchantId, arg_accountId, $fields: arg_$fields) + .get(arg_merchantId, arg_accountId, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccount(response); }))); @@ -12076,8 +12828,10 @@ var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.ContentApi(mock).accounts; var arg_merchantId = "foo"; + var arg_label = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12106,10 +12860,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["label"].first, unittest.equals(arg_label)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12120,8 +12876,10 @@ }), true); res .list(arg_merchantId, + label: arg_label, maxResults: arg_maxResults, pageToken: arg_pageToken, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccountsListResponse(response); @@ -12237,6 +12995,59 @@ checkAccount(response); }))); }); + + unittest.test("method--updatelabels", () { + var mock = new HttpServerMock(); + api.AccountsResourceApi res = new api.ContentApi(mock).accounts; + var arg_request = buildAccountsUpdateLabelsRequest(); + var arg_merchantId = "foo"; + var arg_accountId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AccountsUpdateLabelsRequest.fromJson(json); + checkAccountsUpdateLabelsRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAccountsUpdateLabelsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .updatelabels(arg_request, arg_merchantId, arg_accountId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAccountsUpdateLabelsResponse(response); + }))); + }); }); unittest.group("resource-AccountstatusesResourceApi", () { @@ -12304,7 +13115,7 @@ new api.ContentApi(mock).accountstatuses; var arg_merchantId = "foo"; var arg_accountId = "foo"; - var arg_destinations = buildUnnamed1586(); + var arg_destinations = buildUnnamed1631(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12356,7 +13167,7 @@ api.AccountstatusesResourceApi res = new api.ContentApi(mock).accountstatuses; var arg_merchantId = "foo"; - var arg_destinations = buildUnnamed1587(); + var arg_destinations = buildUnnamed1632(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; @@ -14177,14 +14988,14 @@ var arg_acknowledged = true; var arg_createdEndDate = "foo"; var arg_createdStartDate = "foo"; - var arg_googleOrderIds = buildUnnamed1588(); + var arg_googleOrderIds = buildUnnamed1633(); var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_shipmentStates = buildUnnamed1589(); - var arg_shipmentStatus = buildUnnamed1590(); - var arg_shipmentTrackingNumbers = buildUnnamed1591(); - var arg_shipmentTypes = buildUnnamed1592(); + var arg_shipmentStates = buildUnnamed1634(); + var arg_shipmentStatus = buildUnnamed1635(); + var arg_shipmentTrackingNumbers = buildUnnamed1636(); + var arg_shipmentTypes = buildUnnamed1637(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -14897,7 +15708,7 @@ var arg_pageToken = "foo"; var arg_placedDateEnd = "foo"; var arg_placedDateStart = "foo"; - var arg_statuses = buildUnnamed1593(); + var arg_statuses = buildUnnamed1638(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -14962,6 +15773,112 @@ }))); }); + unittest.test("method--refunditem", () { + var mock = new HttpServerMock(); + api.OrdersResourceApi res = new api.ContentApi(mock).orders; + var arg_request = buildOrdersRefundItemRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrdersRefundItemRequest.fromJson(json); + checkOrdersRefundItemRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOrdersRefundItemResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .refunditem(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrdersRefundItemResponse(response); + }))); + }); + + unittest.test("method--refundorder", () { + var mock = new HttpServerMock(); + api.OrdersResourceApi res = new api.ContentApi(mock).orders; + var arg_request = buildOrdersRefundOrderRequest(); + var arg_merchantId = "foo"; + var arg_orderId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.OrdersRefundOrderRequest.fromJson(json); + checkOrdersRefundOrderRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildOrdersRefundOrderResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .refundorder(arg_request, arg_merchantId, arg_orderId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOrdersRefundOrderResponse(response); + }))); + }); + unittest.test("method--rejectreturnlineitem", () { var mock = new HttpServerMock(); api.OrdersResourceApi res = new api.ContentApi(mock).orders; @@ -16034,7 +16951,7 @@ new api.ContentApi(mock).productstatuses; var arg_merchantId = "foo"; var arg_productId = "foo"; - var arg_destinations = buildUnnamed1594(); + var arg_destinations = buildUnnamed1639(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -16086,7 +17003,7 @@ api.ProductstatusesResourceApi res = new api.ContentApi(mock).productstatuses; var arg_merchantId = "foo"; - var arg_destinations = buildUnnamed1595(); + var arg_destinations = buildUnnamed1640(); var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; @@ -16997,7 +17914,7 @@ var arg_settlementId = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_transactionIds = buildUnnamed1596(); + var arg_transactionIds = buildUnnamed1641(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path;
diff --git a/generated/googleapis/test/customsearch/v1_test.dart b/generated/googleapis/test/customsearch/v1_test.dart index ac28a9d..9939acb 100644 --- a/generated/googleapis/test/customsearch/v1_test.dart +++ b/generated/googleapis/test/customsearch/v1_test.dart
@@ -50,76 +50,6 @@ return new http.StreamedResponse(stream, status, headers: headers); } -core.int buildCounterContextFacets = 0; -buildContextFacets() { - var o = new api.ContextFacets(); - buildCounterContextFacets++; - if (buildCounterContextFacets < 3) { - o.anchor = "foo"; - o.label = "foo"; - o.labelWithOp = "foo"; - } - buildCounterContextFacets--; - return o; -} - -checkContextFacets(api.ContextFacets o) { - buildCounterContextFacets++; - if (buildCounterContextFacets < 3) { - unittest.expect(o.anchor, unittest.equals('foo')); - unittest.expect(o.label, unittest.equals('foo')); - unittest.expect(o.labelWithOp, unittest.equals('foo')); - } - buildCounterContextFacets--; -} - -buildUnnamed4427() { - var o = new core.List<api.ContextFacets>(); - o.add(buildContextFacets()); - o.add(buildContextFacets()); - return o; -} - -checkUnnamed4427(core.List<api.ContextFacets> o) { - unittest.expect(o, unittest.hasLength(2)); - checkContextFacets(o[0]); - checkContextFacets(o[1]); -} - -buildUnnamed4428() { - var o = new core.List<core.List<api.ContextFacets>>(); - o.add(buildUnnamed4427()); - o.add(buildUnnamed4427()); - return o; -} - -checkUnnamed4428(core.List<core.List<api.ContextFacets>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4427(o[0]); - checkUnnamed4427(o[1]); -} - -core.int buildCounterContext = 0; -buildContext() { - var o = new api.Context(); - buildCounterContext++; - if (buildCounterContext < 3) { - o.facets = buildUnnamed4428(); - o.title = "foo"; - } - buildCounterContext--; - return o; -} - -checkContext(api.Context o) { - buildCounterContext++; - if (buildCounterContext < 3) { - checkUnnamed4428(o.facets); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterContext--; -} - core.int buildCounterPromotionBodyLines = 0; buildPromotionBodyLines() { var o = new api.PromotionBodyLines(); @@ -145,14 +75,14 @@ buildCounterPromotionBodyLines--; } -buildUnnamed4429() { +buildUnnamed4772() { var o = new core.List<api.PromotionBodyLines>(); o.add(buildPromotionBodyLines()); o.add(buildPromotionBodyLines()); return o; } -checkUnnamed4429(core.List<api.PromotionBodyLines> o) { +checkUnnamed4772(core.List<api.PromotionBodyLines> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotionBodyLines(o[0]); checkPromotionBodyLines(o[1]); @@ -186,7 +116,7 @@ var o = new api.Promotion(); buildCounterPromotion++; if (buildCounterPromotion < 3) { - o.bodyLines = buildUnnamed4429(); + o.bodyLines = buildUnnamed4772(); o.displayLink = "foo"; o.htmlTitle = "foo"; o.image = buildPromotionImage(); @@ -200,7 +130,7 @@ checkPromotion(api.Promotion o) { buildCounterPromotion++; if (buildCounterPromotion < 3) { - checkUnnamed4429(o.bodyLines); + checkUnnamed4772(o.bodyLines); unittest.expect(o.displayLink, unittest.equals('foo')); unittest.expect(o.htmlTitle, unittest.equals('foo')); checkPromotionImage(o.image); @@ -210,95 +140,6 @@ buildCounterPromotion--; } -core.int buildCounterQuery = 0; -buildQuery() { - var o = new api.Query(); - buildCounterQuery++; - if (buildCounterQuery < 3) { - o.count = 42; - o.cr = "foo"; - o.cx = "foo"; - o.dateRestrict = "foo"; - o.disableCnTwTranslation = "foo"; - o.exactTerms = "foo"; - o.excludeTerms = "foo"; - o.fileType = "foo"; - o.filter = "foo"; - o.gl = "foo"; - o.googleHost = "foo"; - o.highRange = "foo"; - o.hl = "foo"; - o.hq = "foo"; - o.imgColorType = "foo"; - o.imgDominantColor = "foo"; - o.imgSize = "foo"; - o.imgType = "foo"; - o.inputEncoding = "foo"; - o.language = "foo"; - o.linkSite = "foo"; - o.lowRange = "foo"; - o.orTerms = "foo"; - o.outputEncoding = "foo"; - o.relatedSite = "foo"; - o.rights = "foo"; - o.safe = "foo"; - o.searchTerms = "foo"; - o.searchType = "foo"; - o.siteSearch = "foo"; - o.siteSearchFilter = "foo"; - o.sort = "foo"; - o.startIndex = 42; - o.startPage = 42; - o.title = "foo"; - o.totalResults = "foo"; - } - buildCounterQuery--; - return o; -} - -checkQuery(api.Query o) { - buildCounterQuery++; - if (buildCounterQuery < 3) { - unittest.expect(o.count, unittest.equals(42)); - unittest.expect(o.cr, unittest.equals('foo')); - unittest.expect(o.cx, unittest.equals('foo')); - unittest.expect(o.dateRestrict, unittest.equals('foo')); - unittest.expect(o.disableCnTwTranslation, unittest.equals('foo')); - unittest.expect(o.exactTerms, unittest.equals('foo')); - unittest.expect(o.excludeTerms, unittest.equals('foo')); - unittest.expect(o.fileType, unittest.equals('foo')); - unittest.expect(o.filter, unittest.equals('foo')); - unittest.expect(o.gl, unittest.equals('foo')); - unittest.expect(o.googleHost, unittest.equals('foo')); - unittest.expect(o.highRange, unittest.equals('foo')); - unittest.expect(o.hl, unittest.equals('foo')); - unittest.expect(o.hq, unittest.equals('foo')); - unittest.expect(o.imgColorType, unittest.equals('foo')); - unittest.expect(o.imgDominantColor, unittest.equals('foo')); - unittest.expect(o.imgSize, unittest.equals('foo')); - unittest.expect(o.imgType, unittest.equals('foo')); - unittest.expect(o.inputEncoding, unittest.equals('foo')); - unittest.expect(o.language, unittest.equals('foo')); - unittest.expect(o.linkSite, unittest.equals('foo')); - unittest.expect(o.lowRange, unittest.equals('foo')); - unittest.expect(o.orTerms, unittest.equals('foo')); - unittest.expect(o.outputEncoding, unittest.equals('foo')); - unittest.expect(o.relatedSite, unittest.equals('foo')); - unittest.expect(o.rights, unittest.equals('foo')); - unittest.expect(o.safe, unittest.equals('foo')); - unittest.expect(o.searchTerms, unittest.equals('foo')); - unittest.expect(o.searchType, unittest.equals('foo')); - unittest.expect(o.siteSearch, unittest.equals('foo')); - unittest.expect(o.siteSearchFilter, unittest.equals('foo')); - unittest.expect(o.sort, unittest.equals('foo')); - unittest.expect(o.startIndex, unittest.equals(42)); - unittest.expect(o.startPage, unittest.equals(42)); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.totalResults, unittest.equals('foo')); - } - buildCounterQuery--; -} - core.int buildCounterResultImage = 0; buildResultImage() { var o = new api.ResultImage(); @@ -353,20 +194,20 @@ buildCounterResultLabels--; } -buildUnnamed4430() { +buildUnnamed4773() { var o = new core.List<api.ResultLabels>(); o.add(buildResultLabels()); o.add(buildResultLabels()); return o; } -checkUnnamed4430(core.List<api.ResultLabels> o) { +checkUnnamed4773(core.List<api.ResultLabels> o) { unittest.expect(o, unittest.hasLength(2)); checkResultLabels(o[0]); checkResultLabels(o[1]); } -buildUnnamed4431() { +buildUnnamed4774() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -381,7 +222,7 @@ return o; } -checkUnnamed4431(core.Map<core.String, core.Object> o) { +checkUnnamed4774(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)); @@ -395,34 +236,6 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4432() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4431()); - o.add(buildUnnamed4431()); - return o; -} - -checkUnnamed4432(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4431(o[0]); - checkUnnamed4431(o[1]); -} - -buildUnnamed4433() { - var o = new core - .Map<core.String, core.List<core.Map<core.String, core.Object>>>(); - o["x"] = buildUnnamed4432(); - o["y"] = buildUnnamed4432(); - return o; -} - -checkUnnamed4433( - core.Map<core.String, core.List<core.Map<core.String, core.Object>>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4432(o["x"]); - checkUnnamed4432(o["y"]); -} - core.int buildCounterResult = 0; buildResult() { var o = new api.Result(); @@ -437,10 +250,10 @@ o.htmlTitle = "foo"; o.image = buildResultImage(); o.kind = "foo"; - o.labels = buildUnnamed4430(); + o.labels = buildUnnamed4773(); o.link = "foo"; o.mime = "foo"; - o.pagemap = buildUnnamed4433(); + o.pagemap = buildUnnamed4774(); o.snippet = "foo"; o.title = "foo"; } @@ -460,66 +273,398 @@ unittest.expect(o.htmlTitle, unittest.equals('foo')); checkResultImage(o.image); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4430(o.labels); + checkUnnamed4773(o.labels); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.mime, unittest.equals('foo')); - checkUnnamed4433(o.pagemap); + checkUnnamed4774(o.pagemap); unittest.expect(o.snippet, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterResult--; } -buildUnnamed4434() { +buildUnnamed4775() { + 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; +} + +checkUnnamed4775(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')); +} + +buildUnnamed4776() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed4434(core.List<api.Result> o) { +checkUnnamed4776(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); } -buildUnnamed4435() { +buildUnnamed4777() { var o = new core.List<api.Promotion>(); o.add(buildPromotion()); o.add(buildPromotion()); return o; } -checkUnnamed4435(core.List<api.Promotion> o) { +checkUnnamed4777(core.List<api.Promotion> o) { unittest.expect(o, unittest.hasLength(2)); checkPromotion(o[0]); checkPromotion(o[1]); } -buildUnnamed4436() { - var o = new core.List<api.Query>(); - o.add(buildQuery()); - o.add(buildQuery()); +core.int buildCounterSearchQueriesNextPage = 0; +buildSearchQueriesNextPage() { + var o = new api.SearchQueriesNextPage(); + buildCounterSearchQueriesNextPage++; + if (buildCounterSearchQueriesNextPage < 3) { + o.count = 42; + o.cr = "foo"; + o.cx = "foo"; + o.dateRestrict = "foo"; + o.disableCnTwTranslation = "foo"; + o.exactTerms = "foo"; + o.excludeTerms = "foo"; + o.fileType = "foo"; + o.filter = "foo"; + o.gl = "foo"; + o.googleHost = "foo"; + o.highRange = "foo"; + o.hl = "foo"; + o.hq = "foo"; + o.imgColorType = "foo"; + o.imgDominantColor = "foo"; + o.imgSize = "foo"; + o.imgType = "foo"; + o.inputEncoding = "foo"; + o.language = "foo"; + o.linkSite = "foo"; + o.lowRange = "foo"; + o.orTerms = "foo"; + o.outputEncoding = "foo"; + o.relatedSite = "foo"; + o.rights = "foo"; + o.safe = "foo"; + o.searchTerms = "foo"; + o.searchType = "foo"; + o.siteSearch = "foo"; + o.siteSearchFilter = "foo"; + o.sort = "foo"; + o.startIndex = 42; + o.startPage = 42; + o.title = "foo"; + o.totalResults = "foo"; + } + buildCounterSearchQueriesNextPage--; return o; } -checkUnnamed4436(core.List<api.Query> o) { - unittest.expect(o, unittest.hasLength(2)); - checkQuery(o[0]); - checkQuery(o[1]); +checkSearchQueriesNextPage(api.SearchQueriesNextPage o) { + buildCounterSearchQueriesNextPage++; + if (buildCounterSearchQueriesNextPage < 3) { + unittest.expect(o.count, unittest.equals(42)); + unittest.expect(o.cr, unittest.equals('foo')); + unittest.expect(o.cx, unittest.equals('foo')); + unittest.expect(o.dateRestrict, unittest.equals('foo')); + unittest.expect(o.disableCnTwTranslation, unittest.equals('foo')); + unittest.expect(o.exactTerms, unittest.equals('foo')); + unittest.expect(o.excludeTerms, unittest.equals('foo')); + unittest.expect(o.fileType, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.gl, unittest.equals('foo')); + unittest.expect(o.googleHost, unittest.equals('foo')); + unittest.expect(o.highRange, unittest.equals('foo')); + unittest.expect(o.hl, unittest.equals('foo')); + unittest.expect(o.hq, unittest.equals('foo')); + unittest.expect(o.imgColorType, unittest.equals('foo')); + unittest.expect(o.imgDominantColor, unittest.equals('foo')); + unittest.expect(o.imgSize, unittest.equals('foo')); + unittest.expect(o.imgType, unittest.equals('foo')); + unittest.expect(o.inputEncoding, unittest.equals('foo')); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.linkSite, unittest.equals('foo')); + unittest.expect(o.lowRange, unittest.equals('foo')); + unittest.expect(o.orTerms, unittest.equals('foo')); + unittest.expect(o.outputEncoding, unittest.equals('foo')); + unittest.expect(o.relatedSite, unittest.equals('foo')); + unittest.expect(o.rights, unittest.equals('foo')); + unittest.expect(o.safe, unittest.equals('foo')); + unittest.expect(o.searchTerms, unittest.equals('foo')); + unittest.expect(o.searchType, unittest.equals('foo')); + unittest.expect(o.siteSearch, unittest.equals('foo')); + unittest.expect(o.siteSearchFilter, unittest.equals('foo')); + unittest.expect(o.sort, unittest.equals('foo')); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.startPage, unittest.equals(42)); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.totalResults, unittest.equals('foo')); + } + buildCounterSearchQueriesNextPage--; } -buildUnnamed4437() { - var o = new core.Map<core.String, core.List<api.Query>>(); - o["x"] = buildUnnamed4436(); - o["y"] = buildUnnamed4436(); +buildUnnamed4778() { + var o = new core.List<api.SearchQueriesNextPage>(); + o.add(buildSearchQueriesNextPage()); + o.add(buildSearchQueriesNextPage()); return o; } -checkUnnamed4437(core.Map<core.String, core.List<api.Query>> o) { +checkUnnamed4778(core.List<api.SearchQueriesNextPage> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4436(o["x"]); - checkUnnamed4436(o["y"]); + checkSearchQueriesNextPage(o[0]); + checkSearchQueriesNextPage(o[1]); +} + +core.int buildCounterSearchQueriesPreviousPage = 0; +buildSearchQueriesPreviousPage() { + var o = new api.SearchQueriesPreviousPage(); + buildCounterSearchQueriesPreviousPage++; + if (buildCounterSearchQueriesPreviousPage < 3) { + o.count = 42; + o.cr = "foo"; + o.cx = "foo"; + o.dateRestrict = "foo"; + o.disableCnTwTranslation = "foo"; + o.exactTerms = "foo"; + o.excludeTerms = "foo"; + o.fileType = "foo"; + o.filter = "foo"; + o.gl = "foo"; + o.googleHost = "foo"; + o.highRange = "foo"; + o.hl = "foo"; + o.hq = "foo"; + o.imgColorType = "foo"; + o.imgDominantColor = "foo"; + o.imgSize = "foo"; + o.imgType = "foo"; + o.inputEncoding = "foo"; + o.language = "foo"; + o.linkSite = "foo"; + o.lowRange = "foo"; + o.orTerms = "foo"; + o.outputEncoding = "foo"; + o.relatedSite = "foo"; + o.rights = "foo"; + o.safe = "foo"; + o.searchTerms = "foo"; + o.searchType = "foo"; + o.siteSearch = "foo"; + o.siteSearchFilter = "foo"; + o.sort = "foo"; + o.startIndex = 42; + o.startPage = 42; + o.title = "foo"; + o.totalResults = "foo"; + } + buildCounterSearchQueriesPreviousPage--; + return o; +} + +checkSearchQueriesPreviousPage(api.SearchQueriesPreviousPage o) { + buildCounterSearchQueriesPreviousPage++; + if (buildCounterSearchQueriesPreviousPage < 3) { + unittest.expect(o.count, unittest.equals(42)); + unittest.expect(o.cr, unittest.equals('foo')); + unittest.expect(o.cx, unittest.equals('foo')); + unittest.expect(o.dateRestrict, unittest.equals('foo')); + unittest.expect(o.disableCnTwTranslation, unittest.equals('foo')); + unittest.expect(o.exactTerms, unittest.equals('foo')); + unittest.expect(o.excludeTerms, unittest.equals('foo')); + unittest.expect(o.fileType, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.gl, unittest.equals('foo')); + unittest.expect(o.googleHost, unittest.equals('foo')); + unittest.expect(o.highRange, unittest.equals('foo')); + unittest.expect(o.hl, unittest.equals('foo')); + unittest.expect(o.hq, unittest.equals('foo')); + unittest.expect(o.imgColorType, unittest.equals('foo')); + unittest.expect(o.imgDominantColor, unittest.equals('foo')); + unittest.expect(o.imgSize, unittest.equals('foo')); + unittest.expect(o.imgType, unittest.equals('foo')); + unittest.expect(o.inputEncoding, unittest.equals('foo')); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.linkSite, unittest.equals('foo')); + unittest.expect(o.lowRange, unittest.equals('foo')); + unittest.expect(o.orTerms, unittest.equals('foo')); + unittest.expect(o.outputEncoding, unittest.equals('foo')); + unittest.expect(o.relatedSite, unittest.equals('foo')); + unittest.expect(o.rights, unittest.equals('foo')); + unittest.expect(o.safe, unittest.equals('foo')); + unittest.expect(o.searchTerms, unittest.equals('foo')); + unittest.expect(o.searchType, unittest.equals('foo')); + unittest.expect(o.siteSearch, unittest.equals('foo')); + unittest.expect(o.siteSearchFilter, unittest.equals('foo')); + unittest.expect(o.sort, unittest.equals('foo')); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.startPage, unittest.equals(42)); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.totalResults, unittest.equals('foo')); + } + buildCounterSearchQueriesPreviousPage--; +} + +buildUnnamed4779() { + var o = new core.List<api.SearchQueriesPreviousPage>(); + o.add(buildSearchQueriesPreviousPage()); + o.add(buildSearchQueriesPreviousPage()); + return o; +} + +checkUnnamed4779(core.List<api.SearchQueriesPreviousPage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSearchQueriesPreviousPage(o[0]); + checkSearchQueriesPreviousPage(o[1]); +} + +core.int buildCounterSearchQueriesRequest = 0; +buildSearchQueriesRequest() { + var o = new api.SearchQueriesRequest(); + buildCounterSearchQueriesRequest++; + if (buildCounterSearchQueriesRequest < 3) { + o.count = 42; + o.cr = "foo"; + o.cx = "foo"; + o.dateRestrict = "foo"; + o.disableCnTwTranslation = "foo"; + o.exactTerms = "foo"; + o.excludeTerms = "foo"; + o.fileType = "foo"; + o.filter = "foo"; + o.gl = "foo"; + o.googleHost = "foo"; + o.highRange = "foo"; + o.hl = "foo"; + o.hq = "foo"; + o.imgColorType = "foo"; + o.imgDominantColor = "foo"; + o.imgSize = "foo"; + o.imgType = "foo"; + o.inputEncoding = "foo"; + o.language = "foo"; + o.linkSite = "foo"; + o.lowRange = "foo"; + o.orTerms = "foo"; + o.outputEncoding = "foo"; + o.relatedSite = "foo"; + o.rights = "foo"; + o.safe = "foo"; + o.searchTerms = "foo"; + o.searchType = "foo"; + o.siteSearch = "foo"; + o.siteSearchFilter = "foo"; + o.sort = "foo"; + o.startIndex = 42; + o.startPage = 42; + o.title = "foo"; + o.totalResults = "foo"; + } + buildCounterSearchQueriesRequest--; + return o; +} + +checkSearchQueriesRequest(api.SearchQueriesRequest o) { + buildCounterSearchQueriesRequest++; + if (buildCounterSearchQueriesRequest < 3) { + unittest.expect(o.count, unittest.equals(42)); + unittest.expect(o.cr, unittest.equals('foo')); + unittest.expect(o.cx, unittest.equals('foo')); + unittest.expect(o.dateRestrict, unittest.equals('foo')); + unittest.expect(o.disableCnTwTranslation, unittest.equals('foo')); + unittest.expect(o.exactTerms, unittest.equals('foo')); + unittest.expect(o.excludeTerms, unittest.equals('foo')); + unittest.expect(o.fileType, unittest.equals('foo')); + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.gl, unittest.equals('foo')); + unittest.expect(o.googleHost, unittest.equals('foo')); + unittest.expect(o.highRange, unittest.equals('foo')); + unittest.expect(o.hl, unittest.equals('foo')); + unittest.expect(o.hq, unittest.equals('foo')); + unittest.expect(o.imgColorType, unittest.equals('foo')); + unittest.expect(o.imgDominantColor, unittest.equals('foo')); + unittest.expect(o.imgSize, unittest.equals('foo')); + unittest.expect(o.imgType, unittest.equals('foo')); + unittest.expect(o.inputEncoding, unittest.equals('foo')); + unittest.expect(o.language, unittest.equals('foo')); + unittest.expect(o.linkSite, unittest.equals('foo')); + unittest.expect(o.lowRange, unittest.equals('foo')); + unittest.expect(o.orTerms, unittest.equals('foo')); + unittest.expect(o.outputEncoding, unittest.equals('foo')); + unittest.expect(o.relatedSite, unittest.equals('foo')); + unittest.expect(o.rights, unittest.equals('foo')); + unittest.expect(o.safe, unittest.equals('foo')); + unittest.expect(o.searchTerms, unittest.equals('foo')); + unittest.expect(o.searchType, unittest.equals('foo')); + unittest.expect(o.siteSearch, unittest.equals('foo')); + unittest.expect(o.siteSearchFilter, unittest.equals('foo')); + unittest.expect(o.sort, unittest.equals('foo')); + unittest.expect(o.startIndex, unittest.equals(42)); + unittest.expect(o.startPage, unittest.equals(42)); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.totalResults, unittest.equals('foo')); + } + buildCounterSearchQueriesRequest--; +} + +buildUnnamed4780() { + var o = new core.List<api.SearchQueriesRequest>(); + o.add(buildSearchQueriesRequest()); + o.add(buildSearchQueriesRequest()); + return o; +} + +checkUnnamed4780(core.List<api.SearchQueriesRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSearchQueriesRequest(o[0]); + checkSearchQueriesRequest(o[1]); +} + +core.int buildCounterSearchQueries = 0; +buildSearchQueries() { + var o = new api.SearchQueries(); + buildCounterSearchQueries++; + if (buildCounterSearchQueries < 3) { + o.nextPage = buildUnnamed4778(); + o.previousPage = buildUnnamed4779(); + o.request = buildUnnamed4780(); + } + buildCounterSearchQueries--; + return o; +} + +checkSearchQueries(api.SearchQueries o) { + buildCounterSearchQueries++; + if (buildCounterSearchQueries < 3) { + checkUnnamed4778(o.nextPage); + checkUnnamed4779(o.previousPage); + checkUnnamed4780(o.request); + } + buildCounterSearchQueries--; } core.int buildCounterSearchSearchInformation = 0; @@ -594,11 +739,11 @@ var o = new api.Search(); buildCounterSearch++; if (buildCounterSearch < 3) { - o.context = buildContext(); - o.items = buildUnnamed4434(); + o.context = buildUnnamed4775(); + o.items = buildUnnamed4776(); o.kind = "foo"; - o.promotions = buildUnnamed4435(); - o.queries = buildUnnamed4437(); + o.promotions = buildUnnamed4777(); + o.queries = buildSearchQueries(); o.searchInformation = buildSearchSearchInformation(); o.spelling = buildSearchSpelling(); o.url = buildSearchUrl(); @@ -610,11 +755,11 @@ checkSearch(api.Search o) { buildCounterSearch++; if (buildCounterSearch < 3) { - checkContext(o.context); - checkUnnamed4434(o.items); + checkUnnamed4775(o.context); + checkUnnamed4776(o.items); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4435(o.promotions); - checkUnnamed4437(o.queries); + checkUnnamed4777(o.promotions); + checkSearchQueries(o.queries); checkSearchSearchInformation(o.searchInformation); checkSearchSpelling(o.spelling); checkSearchUrl(o.url); @@ -623,22 +768,6 @@ } main() { - unittest.group("obj-schema-ContextFacets", () { - unittest.test("to-json--from-json", () { - var o = buildContextFacets(); - var od = new api.ContextFacets.fromJson(o.toJson()); - checkContextFacets(od); - }); - }); - - unittest.group("obj-schema-Context", () { - unittest.test("to-json--from-json", () { - var o = buildContext(); - var od = new api.Context.fromJson(o.toJson()); - checkContext(od); - }); - }); - unittest.group("obj-schema-PromotionBodyLines", () { unittest.test("to-json--from-json", () { var o = buildPromotionBodyLines(); @@ -663,14 +792,6 @@ }); }); - unittest.group("obj-schema-Query", () { - unittest.test("to-json--from-json", () { - var o = buildQuery(); - var od = new api.Query.fromJson(o.toJson()); - checkQuery(od); - }); - }); - unittest.group("obj-schema-ResultImage", () { unittest.test("to-json--from-json", () { var o = buildResultImage(); @@ -695,6 +816,38 @@ }); }); + unittest.group("obj-schema-SearchQueriesNextPage", () { + unittest.test("to-json--from-json", () { + var o = buildSearchQueriesNextPage(); + var od = new api.SearchQueriesNextPage.fromJson(o.toJson()); + checkSearchQueriesNextPage(od); + }); + }); + + unittest.group("obj-schema-SearchQueriesPreviousPage", () { + unittest.test("to-json--from-json", () { + var o = buildSearchQueriesPreviousPage(); + var od = new api.SearchQueriesPreviousPage.fromJson(o.toJson()); + checkSearchQueriesPreviousPage(od); + }); + }); + + unittest.group("obj-schema-SearchQueriesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSearchQueriesRequest(); + var od = new api.SearchQueriesRequest.fromJson(o.toJson()); + checkSearchQueriesRequest(od); + }); + }); + + unittest.group("obj-schema-SearchQueries", () { + unittest.test("to-json--from-json", () { + var o = buildSearchQueries(); + var od = new api.SearchQueries.fromJson(o.toJson()); + checkSearchQueries(od); + }); + }); + unittest.group("obj-schema-SearchSearchInformation", () { unittest.test("to-json--from-json", () { var o = buildSearchSearchInformation(); @@ -731,37 +884,37 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CseResourceApi res = new api.CustomsearchApi(mock).cse; - var arg_q = "foo"; - var arg_c2coff = "foo"; - var arg_cr = "foo"; - var arg_cx = "foo"; - var arg_dateRestrict = "foo"; - var arg_exactTerms = "foo"; - var arg_excludeTerms = "foo"; - var arg_fileType = "foo"; - var arg_filter = "foo"; - var arg_gl = "foo"; - var arg_googlehost = "foo"; - var arg_highRange = "foo"; - var arg_hl = "foo"; + var arg_lowRange = "foo"; var arg_hq = "foo"; - var arg_imgColorType = "foo"; + var arg_siteSearchFilter = "foo"; + var arg_c2coff = "foo"; + var arg_gl = "foo"; + var arg_safe = "foo"; var arg_imgDominantColor = "foo"; - var arg_imgSize = "foo"; + var arg_imgColorType = "foo"; + var arg_fileType = "foo"; + var arg_q = "foo"; var arg_imgType = "foo"; var arg_linkSite = "foo"; - var arg_lowRange = "foo"; - var arg_lr = "foo"; - var arg_num = 42; - var arg_orTerms = "foo"; - var arg_relatedSite = "foo"; - var arg_rights = "foo"; - var arg_safe = "foo"; - var arg_searchType = "foo"; - var arg_siteSearch = "foo"; - var arg_siteSearchFilter = "foo"; - var arg_sort = "foo"; var arg_start = 42; + var arg_imgSize = "foo"; + var arg_num = 42; + var arg_excludeTerms = "foo"; + var arg_orTerms = "foo"; + var arg_hl = "foo"; + var arg_siteSearch = "foo"; + var arg_highRange = "foo"; + var arg_searchType = "foo"; + var arg_rights = "foo"; + var arg_sort = "foo"; + var arg_exactTerms = "foo"; + var arg_cx = "foo"; + var arg_googlehost = "foo"; + var arg_lr = "foo"; + var arg_dateRestrict = "foo"; + var arg_cr = "foo"; + var arg_filter = "foo"; + var arg_relatedSite = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -771,178 +924,8 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("customsearch/")); - pathOffset += 13; - unittest.expect( - path.substring(pathOffset, pathOffset + 2), unittest.equals("v1")); - pathOffset += 2; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["q"].first, unittest.equals(arg_q)); - unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); - unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); - unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); - unittest.expect( - queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); - unittest.expect( - queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); - unittest.expect( - queryMap["excludeTerms"].first, unittest.equals(arg_excludeTerms)); - unittest.expect( - queryMap["fileType"].first, unittest.equals(arg_fileType)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["gl"].first, unittest.equals(arg_gl)); - unittest.expect( - queryMap["googlehost"].first, unittest.equals(arg_googlehost)); - unittest.expect( - queryMap["highRange"].first, unittest.equals(arg_highRange)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["hq"].first, unittest.equals(arg_hq)); - unittest.expect( - queryMap["imgColorType"].first, unittest.equals(arg_imgColorType)); - unittest.expect(queryMap["imgDominantColor"].first, - unittest.equals(arg_imgDominantColor)); - unittest.expect( - queryMap["imgSize"].first, unittest.equals(arg_imgSize)); - unittest.expect( - queryMap["imgType"].first, unittest.equals(arg_imgType)); - unittest.expect( - queryMap["linkSite"].first, unittest.equals(arg_linkSite)); - unittest.expect( - queryMap["lowRange"].first, unittest.equals(arg_lowRange)); - unittest.expect(queryMap["lr"].first, unittest.equals(arg_lr)); - unittest.expect( - core.int.parse(queryMap["num"].first), unittest.equals(arg_num)); - unittest.expect( - queryMap["orTerms"].first, unittest.equals(arg_orTerms)); - unittest.expect( - queryMap["relatedSite"].first, unittest.equals(arg_relatedSite)); - unittest.expect(queryMap["rights"].first, unittest.equals(arg_rights)); - unittest.expect(queryMap["safe"].first, unittest.equals(arg_safe)); - unittest.expect( - queryMap["searchType"].first, unittest.equals(arg_searchType)); - unittest.expect( - queryMap["siteSearch"].first, unittest.equals(arg_siteSearch)); - unittest.expect(queryMap["siteSearchFilter"].first, - unittest.equals(arg_siteSearchFilter)); - unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(core.int.parse(queryMap["start"].first), - unittest.equals(arg_start)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSearch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_q, - c2coff: arg_c2coff, - cr: arg_cr, - cx: arg_cx, - dateRestrict: arg_dateRestrict, - exactTerms: arg_exactTerms, - excludeTerms: arg_excludeTerms, - fileType: arg_fileType, - filter: arg_filter, - gl: arg_gl, - googlehost: arg_googlehost, - highRange: arg_highRange, - hl: arg_hl, - hq: arg_hq, - imgColorType: arg_imgColorType, - imgDominantColor: arg_imgDominantColor, - imgSize: arg_imgSize, - imgType: arg_imgType, - linkSite: arg_linkSite, - lowRange: arg_lowRange, - lr: arg_lr, - num: arg_num, - orTerms: arg_orTerms, - relatedSite: arg_relatedSite, - rights: arg_rights, - safe: arg_safe, - searchType: arg_searchType, - siteSearch: arg_siteSearch, - siteSearchFilter: arg_siteSearchFilter, - sort: arg_sort, - start: arg_start, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSearch(response); - }))); - }); - }); - - unittest.group("resource-CseSiterestrictResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.CseSiterestrictResourceApi res = - new api.CustomsearchApi(mock).cse.siterestrict; - var arg_q = "foo"; - var arg_c2coff = "foo"; - var arg_cr = "foo"; - var arg_cx = "foo"; - var arg_dateRestrict = "foo"; - var arg_exactTerms = "foo"; - var arg_excludeTerms = "foo"; - var arg_fileType = "foo"; - var arg_filter = "foo"; - var arg_gl = "foo"; - var arg_googlehost = "foo"; - var arg_highRange = "foo"; - var arg_hl = "foo"; - var arg_hq = "foo"; - var arg_imgColorType = "foo"; - var arg_imgDominantColor = "foo"; - var arg_imgSize = "foo"; - var arg_imgType = "foo"; - var arg_linkSite = "foo"; - var arg_lowRange = "foo"; - var arg_lr = "foo"; - var arg_num = 42; - var arg_orTerms = "foo"; - var arg_relatedSite = "foo"; - var arg_rights = "foo"; - var arg_safe = "foo"; - var arg_searchType = "foo"; - var arg_siteSearch = "foo"; - var arg_siteSearchFilter = "foo"; - var arg_sort = "foo"; - var arg_start = 42; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("customsearch/")); - pathOffset += 13; unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("v1/siterestrict")); + unittest.equals("customsearch/v1")); pathOffset += 15; var query = (req.url).query; @@ -963,56 +946,56 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); - unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); - unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); - unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); unittest.expect( - queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); - unittest.expect( - queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); - unittest.expect( - queryMap["excludeTerms"].first, unittest.equals(arg_excludeTerms)); - unittest.expect( - queryMap["fileType"].first, unittest.equals(arg_fileType)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["gl"].first, unittest.equals(arg_gl)); - unittest.expect( - queryMap["googlehost"].first, unittest.equals(arg_googlehost)); - unittest.expect( - queryMap["highRange"].first, unittest.equals(arg_highRange)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); + queryMap["lowRange"].first, unittest.equals(arg_lowRange)); unittest.expect(queryMap["hq"].first, unittest.equals(arg_hq)); - unittest.expect( - queryMap["imgColorType"].first, unittest.equals(arg_imgColorType)); + unittest.expect(queryMap["siteSearchFilter"].first, + unittest.equals(arg_siteSearchFilter)); + unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); + unittest.expect(queryMap["gl"].first, unittest.equals(arg_gl)); + unittest.expect(queryMap["safe"].first, unittest.equals(arg_safe)); unittest.expect(queryMap["imgDominantColor"].first, unittest.equals(arg_imgDominantColor)); unittest.expect( - queryMap["imgSize"].first, unittest.equals(arg_imgSize)); + queryMap["imgColorType"].first, unittest.equals(arg_imgColorType)); + unittest.expect( + queryMap["fileType"].first, unittest.equals(arg_fileType)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect( queryMap["imgType"].first, unittest.equals(arg_imgType)); unittest.expect( queryMap["linkSite"].first, unittest.equals(arg_linkSite)); + unittest.expect(core.int.parse(queryMap["start"].first), + unittest.equals(arg_start)); unittest.expect( - queryMap["lowRange"].first, unittest.equals(arg_lowRange)); - unittest.expect(queryMap["lr"].first, unittest.equals(arg_lr)); + queryMap["imgSize"].first, unittest.equals(arg_imgSize)); unittest.expect( core.int.parse(queryMap["num"].first), unittest.equals(arg_num)); unittest.expect( + queryMap["excludeTerms"].first, unittest.equals(arg_excludeTerms)); + unittest.expect( queryMap["orTerms"].first, unittest.equals(arg_orTerms)); - unittest.expect( - queryMap["relatedSite"].first, unittest.equals(arg_relatedSite)); - unittest.expect(queryMap["rights"].first, unittest.equals(arg_rights)); - unittest.expect(queryMap["safe"].first, unittest.equals(arg_safe)); - unittest.expect( - queryMap["searchType"].first, unittest.equals(arg_searchType)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect( queryMap["siteSearch"].first, unittest.equals(arg_siteSearch)); - unittest.expect(queryMap["siteSearchFilter"].first, - unittest.equals(arg_siteSearchFilter)); + unittest.expect( + queryMap["highRange"].first, unittest.equals(arg_highRange)); + unittest.expect( + queryMap["searchType"].first, unittest.equals(arg_searchType)); + unittest.expect(queryMap["rights"].first, unittest.equals(arg_rights)); unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(core.int.parse(queryMap["start"].first), - unittest.equals(arg_start)); + unittest.expect( + queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); + unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); + unittest.expect( + queryMap["googlehost"].first, unittest.equals(arg_googlehost)); + unittest.expect(queryMap["lr"].first, unittest.equals(arg_lr)); + unittest.expect( + queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); + unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["relatedSite"].first, unittest.equals(arg_relatedSite)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1022,37 +1005,203 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_q, - c2coff: arg_c2coff, - cr: arg_cr, - cx: arg_cx, - dateRestrict: arg_dateRestrict, - exactTerms: arg_exactTerms, - excludeTerms: arg_excludeTerms, - fileType: arg_fileType, - filter: arg_filter, - gl: arg_gl, - googlehost: arg_googlehost, - highRange: arg_highRange, - hl: arg_hl, + .list( + lowRange: arg_lowRange, hq: arg_hq, - imgColorType: arg_imgColorType, + siteSearchFilter: arg_siteSearchFilter, + c2coff: arg_c2coff, + gl: arg_gl, + safe: arg_safe, imgDominantColor: arg_imgDominantColor, - imgSize: arg_imgSize, + imgColorType: arg_imgColorType, + fileType: arg_fileType, + q: arg_q, imgType: arg_imgType, linkSite: arg_linkSite, - lowRange: arg_lowRange, - lr: arg_lr, - num: arg_num, - orTerms: arg_orTerms, - relatedSite: arg_relatedSite, - rights: arg_rights, - safe: arg_safe, - searchType: arg_searchType, - siteSearch: arg_siteSearch, - siteSearchFilter: arg_siteSearchFilter, - sort: arg_sort, start: arg_start, + imgSize: arg_imgSize, + num: arg_num, + excludeTerms: arg_excludeTerms, + orTerms: arg_orTerms, + hl: arg_hl, + siteSearch: arg_siteSearch, + highRange: arg_highRange, + searchType: arg_searchType, + rights: arg_rights, + sort: arg_sort, + exactTerms: arg_exactTerms, + cx: arg_cx, + googlehost: arg_googlehost, + lr: arg_lr, + dateRestrict: arg_dateRestrict, + cr: arg_cr, + filter: arg_filter, + relatedSite: arg_relatedSite, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearch(response); + }))); + }); + }); + + unittest.group("resource-CseSiterestrictResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.CseSiterestrictResourceApi res = + new api.CustomsearchApi(mock).cse.siterestrict; + var arg_imgDominantColor = "foo"; + var arg_cr = "foo"; + var arg_exactTerms = "foo"; + var arg_safe = "foo"; + var arg_imgSize = "foo"; + var arg_start = 42; + var arg_lr = "foo"; + var arg_googlehost = "foo"; + var arg_q = "foo"; + var arg_hq = "foo"; + var arg_siteSearch = "foo"; + var arg_imgColorType = "foo"; + var arg_linkSite = "foo"; + var arg_orTerms = "foo"; + var arg_lowRange = "foo"; + var arg_highRange = "foo"; + var arg_fileType = "foo"; + var arg_hl = "foo"; + var arg_relatedSite = "foo"; + var arg_sort = "foo"; + var arg_cx = "foo"; + var arg_dateRestrict = "foo"; + var arg_rights = "foo"; + var arg_siteSearchFilter = "foo"; + var arg_num = 42; + var arg_gl = "foo"; + var arg_c2coff = "foo"; + var arg_filter = "foo"; + var arg_excludeTerms = "foo"; + var arg_searchType = "foo"; + var arg_imgType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("customsearch/v1/siterestrict")); + pathOffset += 28; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["imgDominantColor"].first, + unittest.equals(arg_imgDominantColor)); + unittest.expect(queryMap["cr"].first, unittest.equals(arg_cr)); + unittest.expect( + queryMap["exactTerms"].first, unittest.equals(arg_exactTerms)); + unittest.expect(queryMap["safe"].first, unittest.equals(arg_safe)); + unittest.expect( + queryMap["imgSize"].first, unittest.equals(arg_imgSize)); + unittest.expect(core.int.parse(queryMap["start"].first), + unittest.equals(arg_start)); + unittest.expect(queryMap["lr"].first, unittest.equals(arg_lr)); + unittest.expect( + queryMap["googlehost"].first, unittest.equals(arg_googlehost)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect(queryMap["hq"].first, unittest.equals(arg_hq)); + unittest.expect( + queryMap["siteSearch"].first, unittest.equals(arg_siteSearch)); + unittest.expect( + queryMap["imgColorType"].first, unittest.equals(arg_imgColorType)); + unittest.expect( + queryMap["linkSite"].first, unittest.equals(arg_linkSite)); + unittest.expect( + queryMap["orTerms"].first, unittest.equals(arg_orTerms)); + unittest.expect( + queryMap["lowRange"].first, unittest.equals(arg_lowRange)); + unittest.expect( + queryMap["highRange"].first, unittest.equals(arg_highRange)); + unittest.expect( + queryMap["fileType"].first, unittest.equals(arg_fileType)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); + unittest.expect( + queryMap["relatedSite"].first, unittest.equals(arg_relatedSite)); + unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); + unittest.expect(queryMap["cx"].first, unittest.equals(arg_cx)); + unittest.expect( + queryMap["dateRestrict"].first, unittest.equals(arg_dateRestrict)); + unittest.expect(queryMap["rights"].first, unittest.equals(arg_rights)); + unittest.expect(queryMap["siteSearchFilter"].first, + unittest.equals(arg_siteSearchFilter)); + unittest.expect( + core.int.parse(queryMap["num"].first), unittest.equals(arg_num)); + unittest.expect(queryMap["gl"].first, unittest.equals(arg_gl)); + unittest.expect(queryMap["c2coff"].first, unittest.equals(arg_c2coff)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["excludeTerms"].first, unittest.equals(arg_excludeTerms)); + unittest.expect( + queryMap["searchType"].first, unittest.equals(arg_searchType)); + unittest.expect( + queryMap["imgType"].first, unittest.equals(arg_imgType)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearch()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + imgDominantColor: arg_imgDominantColor, + cr: arg_cr, + exactTerms: arg_exactTerms, + safe: arg_safe, + imgSize: arg_imgSize, + start: arg_start, + lr: arg_lr, + googlehost: arg_googlehost, + q: arg_q, + hq: arg_hq, + siteSearch: arg_siteSearch, + imgColorType: arg_imgColorType, + linkSite: arg_linkSite, + orTerms: arg_orTerms, + lowRange: arg_lowRange, + highRange: arg_highRange, + fileType: arg_fileType, + hl: arg_hl, + relatedSite: arg_relatedSite, + sort: arg_sort, + cx: arg_cx, + dateRestrict: arg_dateRestrict, + rights: arg_rights, + siteSearchFilter: arg_siteSearchFilter, + num: arg_num, + gl: arg_gl, + c2coff: arg_c2coff, + filter: arg_filter, + excludeTerms: arg_excludeTerms, + searchType: arg_searchType, + imgType: arg_imgType, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearch(response);
diff --git a/generated/googleapis/test/dataproc/v1_test.dart b/generated/googleapis/test/dataproc/v1_test.dart index 282882a..95de42c 100644 --- a/generated/googleapis/test/dataproc/v1_test.dart +++ b/generated/googleapis/test/dataproc/v1_test.dart
@@ -165,14 +165,14 @@ buildCounterBasicYarnAutoscalingConfig--; } -buildUnnamed613() { +buildUnnamed630() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed613(core.List<core.String> o) { +checkUnnamed630(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -183,8 +183,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed613(); + o.members = buildUnnamed630(); o.role = "foo"; } buildCounterBinding--; @@ -194,8 +195,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed613(o.members); + checkUnnamed630(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -216,27 +218,27 @@ buildCounterCancelJobRequest--; } -buildUnnamed614() { +buildUnnamed631() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed614(core.Map<core.String, core.String> o) { +checkUnnamed631(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')); } -buildUnnamed615() { +buildUnnamed632() { var o = new core.List<api.ClusterStatus>(); o.add(buildClusterStatus()); o.add(buildClusterStatus()); return o; } -checkUnnamed615(core.List<api.ClusterStatus> o) { +checkUnnamed632(core.List<api.ClusterStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterStatus(o[0]); checkClusterStatus(o[1]); @@ -250,11 +252,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed614(); + o.labels = buildUnnamed631(); o.metrics = buildClusterMetrics(); o.projectId = "foo"; o.status = buildClusterStatus(); - o.statusHistory = buildUnnamed615(); + o.statusHistory = buildUnnamed632(); } buildCounterCluster--; return o; @@ -266,23 +268,23 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed614(o.labels); + checkUnnamed631(o.labels); checkClusterMetrics(o.metrics); unittest.expect(o.projectId, unittest.equals('foo')); checkClusterStatus(o.status); - checkUnnamed615(o.statusHistory); + checkUnnamed632(o.statusHistory); } buildCounterCluster--; } -buildUnnamed616() { +buildUnnamed633() { var o = new core.List<api.NodeInitializationAction>(); o.add(buildNodeInitializationAction()); o.add(buildNodeInitializationAction()); return o; } -checkUnnamed616(core.List<api.NodeInitializationAction> o) { +checkUnnamed633(core.List<api.NodeInitializationAction> o) { unittest.expect(o, unittest.hasLength(2)); checkNodeInitializationAction(o[0]); checkNodeInitializationAction(o[1]); @@ -296,13 +298,15 @@ o.autoscalingConfig = buildAutoscalingConfig(); o.configBucket = "foo"; o.encryptionConfig = buildEncryptionConfig(); + o.endpointConfig = buildEndpointConfig(); o.gceClusterConfig = buildGceClusterConfig(); - o.initializationActions = buildUnnamed616(); + o.initializationActions = buildUnnamed633(); o.lifecycleConfig = buildLifecycleConfig(); o.masterConfig = buildInstanceGroupConfig(); o.secondaryWorkerConfig = buildInstanceGroupConfig(); o.securityConfig = buildSecurityConfig(); o.softwareConfig = buildSoftwareConfig(); + o.tempBucket = "foo"; o.workerConfig = buildInstanceGroupConfig(); } buildCounterClusterConfig--; @@ -315,39 +319,41 @@ checkAutoscalingConfig(o.autoscalingConfig); unittest.expect(o.configBucket, unittest.equals('foo')); checkEncryptionConfig(o.encryptionConfig); + checkEndpointConfig(o.endpointConfig); checkGceClusterConfig(o.gceClusterConfig); - checkUnnamed616(o.initializationActions); + checkUnnamed633(o.initializationActions); checkLifecycleConfig(o.lifecycleConfig); checkInstanceGroupConfig(o.masterConfig); checkInstanceGroupConfig(o.secondaryWorkerConfig); checkSecurityConfig(o.securityConfig); checkSoftwareConfig(o.softwareConfig); + unittest.expect(o.tempBucket, unittest.equals('foo')); checkInstanceGroupConfig(o.workerConfig); } buildCounterClusterConfig--; } -buildUnnamed617() { +buildUnnamed634() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed617(core.Map<core.String, core.String> o) { +checkUnnamed634(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')); } -buildUnnamed618() { +buildUnnamed635() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed618(core.Map<core.String, core.String> o) { +checkUnnamed635(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')); @@ -358,8 +364,8 @@ var o = new api.ClusterMetrics(); buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - o.hdfsMetrics = buildUnnamed617(); - o.yarnMetrics = buildUnnamed618(); + o.hdfsMetrics = buildUnnamed634(); + o.yarnMetrics = buildUnnamed635(); } buildCounterClusterMetrics--; return o; @@ -368,8 +374,8 @@ checkClusterMetrics(api.ClusterMetrics o) { buildCounterClusterMetrics++; if (buildCounterClusterMetrics < 3) { - checkUnnamed617(o.hdfsMetrics); - checkUnnamed618(o.yarnMetrics); + checkUnnamed634(o.hdfsMetrics); + checkUnnamed635(o.yarnMetrics); } buildCounterClusterMetrics--; } @@ -397,40 +403,40 @@ buildCounterClusterOperation--; } -buildUnnamed619() { +buildUnnamed636() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed619(core.Map<core.String, core.String> o) { +checkUnnamed636(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')); } -buildUnnamed620() { +buildUnnamed637() { var o = new core.List<api.ClusterOperationStatus>(); o.add(buildClusterOperationStatus()); o.add(buildClusterOperationStatus()); return o; } -checkUnnamed620(core.List<api.ClusterOperationStatus> o) { +checkUnnamed637(core.List<api.ClusterOperationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkClusterOperationStatus(o[0]); checkClusterOperationStatus(o[1]); } -buildUnnamed621() { +buildUnnamed638() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed621(core.List<core.String> o) { +checkUnnamed638(core.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,11 +450,11 @@ o.clusterName = "foo"; o.clusterUuid = "foo"; o.description = "foo"; - o.labels = buildUnnamed619(); + o.labels = buildUnnamed636(); o.operationType = "foo"; o.status = buildClusterOperationStatus(); - o.statusHistory = buildUnnamed620(); - o.warnings = buildUnnamed621(); + o.statusHistory = buildUnnamed637(); + o.warnings = buildUnnamed638(); } buildCounterClusterOperationMetadata--; return o; @@ -460,11 +466,11 @@ unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.clusterUuid, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed619(o.labels); + checkUnnamed636(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); checkClusterOperationStatus(o.status); - checkUnnamed620(o.statusHistory); - checkUnnamed621(o.warnings); + checkUnnamed637(o.statusHistory); + checkUnnamed638(o.warnings); } buildCounterClusterOperationMetadata--; } @@ -494,14 +500,14 @@ buildCounterClusterOperationStatus--; } -buildUnnamed622() { +buildUnnamed639() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed622(core.Map<core.String, core.String> o) { +checkUnnamed639(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')); @@ -512,7 +518,7 @@ var o = new api.ClusterSelector(); buildCounterClusterSelector++; if (buildCounterClusterSelector < 3) { - o.clusterLabels = buildUnnamed622(); + o.clusterLabels = buildUnnamed639(); o.zone = "foo"; } buildCounterClusterSelector--; @@ -522,7 +528,7 @@ checkClusterSelector(api.ClusterSelector o) { buildCounterClusterSelector++; if (buildCounterClusterSelector < 3) { - checkUnnamed622(o.clusterLabels); + checkUnnamed639(o.clusterLabels); unittest.expect(o.zone, unittest.equals('foo')); } buildCounterClusterSelector--; @@ -644,6 +650,40 @@ buildCounterEncryptionConfig--; } +buildUnnamed640() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed640(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 buildCounterEndpointConfig = 0; +buildEndpointConfig() { + var o = new api.EndpointConfig(); + buildCounterEndpointConfig++; + if (buildCounterEndpointConfig < 3) { + o.enableHttpPortAccess = true; + o.httpPorts = buildUnnamed640(); + } + buildCounterEndpointConfig--; + return o; +} + +checkEndpointConfig(api.EndpointConfig o) { + buildCounterEndpointConfig++; + if (buildCounterEndpointConfig < 3) { + unittest.expect(o.enableHttpPortAccess, unittest.isTrue); + checkUnnamed640(o.httpPorts); + } + buildCounterEndpointConfig--; +} + core.int buildCounterExpr = 0; buildExpr() { var o = new api.Expr(); @@ -669,40 +709,40 @@ buildCounterExpr--; } -buildUnnamed623() { +buildUnnamed641() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed623(core.Map<core.String, core.String> o) { +checkUnnamed641(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')); } -buildUnnamed624() { +buildUnnamed642() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed624(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')); } -buildUnnamed625() { +buildUnnamed643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed625(core.List<core.String> o) { +checkUnnamed643(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -714,13 +754,15 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { o.internalIpOnly = true; - o.metadata = buildUnnamed623(); + o.metadata = buildUnnamed641(); o.networkUri = "foo"; + o.nodeGroupAffinity = buildNodeGroupAffinity(); + o.privateIpv6GoogleAccess = "foo"; o.reservationAffinity = buildReservationAffinity(); o.serviceAccount = "foo"; - o.serviceAccountScopes = buildUnnamed624(); + o.serviceAccountScopes = buildUnnamed642(); o.subnetworkUri = "foo"; - o.tags = buildUnnamed625(); + o.tags = buildUnnamed643(); o.zoneUri = "foo"; } buildCounterGceClusterConfig--; @@ -731,13 +773,15 @@ buildCounterGceClusterConfig++; if (buildCounterGceClusterConfig < 3) { unittest.expect(o.internalIpOnly, unittest.isTrue); - checkUnnamed623(o.metadata); + checkUnnamed641(o.metadata); unittest.expect(o.networkUri, unittest.equals('foo')); + checkNodeGroupAffinity(o.nodeGroupAffinity); + unittest.expect(o.privateIpv6GoogleAccess, unittest.equals('foo')); checkReservationAffinity(o.reservationAffinity); unittest.expect(o.serviceAccount, unittest.equals('foo')); - checkUnnamed624(o.serviceAccountScopes); + checkUnnamed642(o.serviceAccountScopes); unittest.expect(o.subnetworkUri, unittest.equals('foo')); - checkUnnamed625(o.tags); + checkUnnamed643(o.tags); unittest.expect(o.zoneUri, unittest.equals('foo')); } buildCounterGceClusterConfig--; @@ -781,66 +825,66 @@ buildCounterGetPolicyOptions--; } -buildUnnamed626() { +buildUnnamed644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed626(core.List<core.String> o) { +checkUnnamed644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed627() { +buildUnnamed645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed627(core.List<core.String> o) { +checkUnnamed645(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed628() { +buildUnnamed646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed628(core.List<core.String> o) { +checkUnnamed646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed629() { +buildUnnamed647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed629(core.List<core.String> o) { +checkUnnamed647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed630() { +buildUnnamed648() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed630(core.Map<core.String, core.String> o) { +checkUnnamed648(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')); @@ -851,14 +895,14 @@ var o = new api.HadoopJob(); buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - o.archiveUris = buildUnnamed626(); - o.args = buildUnnamed627(); - o.fileUris = buildUnnamed628(); - o.jarFileUris = buildUnnamed629(); + o.archiveUris = buildUnnamed644(); + o.args = buildUnnamed645(); + o.fileUris = buildUnnamed646(); + o.jarFileUris = buildUnnamed647(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed630(); + o.properties = buildUnnamed648(); } buildCounterHadoopJob--; return o; @@ -867,52 +911,52 @@ checkHadoopJob(api.HadoopJob o) { buildCounterHadoopJob++; if (buildCounterHadoopJob < 3) { - checkUnnamed626(o.archiveUris); - checkUnnamed627(o.args); - checkUnnamed628(o.fileUris); - checkUnnamed629(o.jarFileUris); + checkUnnamed644(o.archiveUris); + checkUnnamed645(o.args); + checkUnnamed646(o.fileUris); + checkUnnamed647(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed630(o.properties); + checkUnnamed648(o.properties); } buildCounterHadoopJob--; } -buildUnnamed631() { +buildUnnamed649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed631(core.List<core.String> o) { +checkUnnamed649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed632() { +buildUnnamed650() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed632(core.Map<core.String, core.String> o) { +checkUnnamed650(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')); } -buildUnnamed633() { +buildUnnamed651() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed633(core.Map<core.String, core.String> o) { +checkUnnamed651(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')); @@ -924,11 +968,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed631(); - o.properties = buildUnnamed632(); + o.jarFileUris = buildUnnamed649(); + o.properties = buildUnnamed650(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed633(); + o.scriptVariables = buildUnnamed651(); } buildCounterHiveJob--; return o; @@ -938,11 +982,11 @@ buildCounterHiveJob++; if (buildCounterHiveJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed631(o.jarFileUris); - checkUnnamed632(o.properties); + checkUnnamed649(o.jarFileUris); + checkUnnamed650(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed633(o.scriptVariables); + checkUnnamed651(o.scriptVariables); } buildCounterHiveJob--; } @@ -971,41 +1015,55 @@ buildCounterInstanceGroupAutoscalingPolicyConfig--; } -buildUnnamed634() { +buildUnnamed652() { var o = new core.List<api.AcceleratorConfig>(); o.add(buildAcceleratorConfig()); o.add(buildAcceleratorConfig()); return o; } -checkUnnamed634(core.List<api.AcceleratorConfig> o) { +checkUnnamed652(core.List<api.AcceleratorConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorConfig(o[0]); checkAcceleratorConfig(o[1]); } -buildUnnamed635() { +buildUnnamed653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed635(core.List<core.String> o) { +checkUnnamed653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } +buildUnnamed654() { + var o = new core.List<api.InstanceReference>(); + o.add(buildInstanceReference()); + o.add(buildInstanceReference()); + return o; +} + +checkUnnamed654(core.List<api.InstanceReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkInstanceReference(o[0]); + checkInstanceReference(o[1]); +} + core.int buildCounterInstanceGroupConfig = 0; buildInstanceGroupConfig() { var o = new api.InstanceGroupConfig(); buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - o.accelerators = buildUnnamed634(); + o.accelerators = buildUnnamed652(); o.diskConfig = buildDiskConfig(); o.imageUri = "foo"; - o.instanceNames = buildUnnamed635(); + o.instanceNames = buildUnnamed653(); + o.instanceReferences = buildUnnamed654(); o.isPreemptible = true; o.machineTypeUri = "foo"; o.managedGroupConfig = buildManagedGroupConfig(); @@ -1020,10 +1078,11 @@ checkInstanceGroupConfig(api.InstanceGroupConfig o) { buildCounterInstanceGroupConfig++; if (buildCounterInstanceGroupConfig < 3) { - checkUnnamed634(o.accelerators); + checkUnnamed652(o.accelerators); checkDiskConfig(o.diskConfig); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed635(o.instanceNames); + checkUnnamed653(o.instanceNames); + checkUnnamed654(o.instanceReferences); unittest.expect(o.isPreemptible, unittest.isTrue); unittest.expect(o.machineTypeUri, unittest.equals('foo')); checkManagedGroupConfig(o.managedGroupConfig); @@ -1034,14 +1093,35 @@ buildCounterInstanceGroupConfig--; } -buildUnnamed636() { +core.int buildCounterInstanceReference = 0; +buildInstanceReference() { + var o = new api.InstanceReference(); + buildCounterInstanceReference++; + if (buildCounterInstanceReference < 3) { + o.instanceId = "foo"; + o.instanceName = "foo"; + } + buildCounterInstanceReference--; + return o; +} + +checkInstanceReference(api.InstanceReference o) { + buildCounterInstanceReference++; + if (buildCounterInstanceReference < 3) { + unittest.expect(o.instanceId, unittest.equals('foo')); + unittest.expect(o.instanceName, unittest.equals('foo')); + } + buildCounterInstanceReference--; +} + +buildUnnamed655() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed636(core.Map<core.String, core.String> o) { +checkUnnamed655(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')); @@ -1052,7 +1132,7 @@ var o = new api.InstantiateWorkflowTemplateRequest(); buildCounterInstantiateWorkflowTemplateRequest++; if (buildCounterInstantiateWorkflowTemplateRequest < 3) { - o.parameters = buildUnnamed636(); + o.parameters = buildUnnamed655(); o.requestId = "foo"; o.version = 42; } @@ -1064,47 +1144,47 @@ api.InstantiateWorkflowTemplateRequest o) { buildCounterInstantiateWorkflowTemplateRequest++; if (buildCounterInstantiateWorkflowTemplateRequest < 3) { - checkUnnamed636(o.parameters); + checkUnnamed655(o.parameters); unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterInstantiateWorkflowTemplateRequest--; } -buildUnnamed637() { +buildUnnamed656() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed637(core.Map<core.String, core.String> o) { +checkUnnamed656(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed638() { +buildUnnamed657() { var o = new core.List<api.JobStatus>(); o.add(buildJobStatus()); o.add(buildJobStatus()); return o; } -checkUnnamed638(core.List<api.JobStatus> o) { +checkUnnamed657(core.List<api.JobStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkJobStatus(o[0]); checkJobStatus(o[1]); } -buildUnnamed639() { +buildUnnamed658() { var o = new core.List<api.YarnApplication>(); o.add(buildYarnApplication()); o.add(buildYarnApplication()); return o; } -checkUnnamed639(core.List<api.YarnApplication> o) { +checkUnnamed658(core.List<api.YarnApplication> o) { unittest.expect(o, unittest.hasLength(2)); checkYarnApplication(o[0]); checkYarnApplication(o[1]); @@ -1121,7 +1201,7 @@ o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); o.jobUuid = "foo"; - o.labels = buildUnnamed637(); + o.labels = buildUnnamed656(); o.pigJob = buildPigJob(); o.placement = buildJobPlacement(); o.prestoJob = buildPrestoJob(); @@ -1132,8 +1212,8 @@ o.sparkRJob = buildSparkRJob(); o.sparkSqlJob = buildSparkSqlJob(); o.status = buildJobStatus(); - o.statusHistory = buildUnnamed638(); - o.yarnApplications = buildUnnamed639(); + o.statusHistory = buildUnnamed657(); + o.yarnApplications = buildUnnamed658(); } buildCounterJob--; return o; @@ -1148,7 +1228,7 @@ checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); unittest.expect(o.jobUuid, unittest.equals('foo')); - checkUnnamed637(o.labels); + checkUnnamed656(o.labels); checkPigJob(o.pigJob); checkJobPlacement(o.placement); checkPrestoJob(o.prestoJob); @@ -1159,8 +1239,8 @@ checkSparkRJob(o.sparkRJob); checkSparkSqlJob(o.sparkSqlJob); checkJobStatus(o.status); - checkUnnamed638(o.statusHistory); - checkUnnamed639(o.yarnApplications); + checkUnnamed657(o.statusHistory); + checkUnnamed658(o.yarnApplications); } buildCounterJob--; } @@ -1348,14 +1428,14 @@ buildCounterLifecycleConfig--; } -buildUnnamed640() { +buildUnnamed659() { var o = new core.List<api.AutoscalingPolicy>(); o.add(buildAutoscalingPolicy()); o.add(buildAutoscalingPolicy()); return o; } -checkUnnamed640(core.List<api.AutoscalingPolicy> o) { +checkUnnamed659(core.List<api.AutoscalingPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkAutoscalingPolicy(o[0]); checkAutoscalingPolicy(o[1]); @@ -1367,7 +1447,7 @@ buildCounterListAutoscalingPoliciesResponse++; if (buildCounterListAutoscalingPoliciesResponse < 3) { o.nextPageToken = "foo"; - o.policies = buildUnnamed640(); + o.policies = buildUnnamed659(); } buildCounterListAutoscalingPoliciesResponse--; return o; @@ -1377,19 +1457,19 @@ buildCounterListAutoscalingPoliciesResponse++; if (buildCounterListAutoscalingPoliciesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed640(o.policies); + checkUnnamed659(o.policies); } buildCounterListAutoscalingPoliciesResponse--; } -buildUnnamed641() { +buildUnnamed660() { var o = new core.List<api.Cluster>(); o.add(buildCluster()); o.add(buildCluster()); return o; } -checkUnnamed641(core.List<api.Cluster> o) { +checkUnnamed660(core.List<api.Cluster> o) { unittest.expect(o, unittest.hasLength(2)); checkCluster(o[0]); checkCluster(o[1]); @@ -1400,7 +1480,7 @@ var o = new api.ListClustersResponse(); buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - o.clusters = buildUnnamed641(); + o.clusters = buildUnnamed660(); o.nextPageToken = "foo"; } buildCounterListClustersResponse--; @@ -1410,20 +1490,20 @@ checkListClustersResponse(api.ListClustersResponse o) { buildCounterListClustersResponse++; if (buildCounterListClustersResponse < 3) { - checkUnnamed641(o.clusters); + checkUnnamed660(o.clusters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListClustersResponse--; } -buildUnnamed642() { +buildUnnamed661() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed642(core.List<api.Job> o) { +checkUnnamed661(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1434,7 +1514,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed642(); + o.jobs = buildUnnamed661(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -1444,20 +1524,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed642(o.jobs); + checkUnnamed661(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed643() { +buildUnnamed662() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed643(core.List<api.Operation> o) { +checkUnnamed662(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1469,7 +1549,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed643(); + o.operations = buildUnnamed662(); } buildCounterListOperationsResponse--; return o; @@ -1479,19 +1559,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed643(o.operations); + checkUnnamed662(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed644() { +buildUnnamed663() { var o = new core.List<api.WorkflowTemplate>(); o.add(buildWorkflowTemplate()); o.add(buildWorkflowTemplate()); return o; } -checkUnnamed644(core.List<api.WorkflowTemplate> o) { +checkUnnamed663(core.List<api.WorkflowTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkflowTemplate(o[0]); checkWorkflowTemplate(o[1]); @@ -1503,7 +1583,7 @@ buildCounterListWorkflowTemplatesResponse++; if (buildCounterListWorkflowTemplatesResponse < 3) { o.nextPageToken = "foo"; - o.templates = buildUnnamed644(); + o.templates = buildUnnamed663(); } buildCounterListWorkflowTemplatesResponse--; return o; @@ -1513,19 +1593,19 @@ buildCounterListWorkflowTemplatesResponse++; if (buildCounterListWorkflowTemplatesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed644(o.templates); + checkUnnamed663(o.templates); } buildCounterListWorkflowTemplatesResponse--; } -buildUnnamed645() { +buildUnnamed664() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed645(core.Map<core.String, core.String> o) { +checkUnnamed664(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')); @@ -1536,7 +1616,7 @@ var o = new api.LoggingConfig(); buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - o.driverLogLevels = buildUnnamed645(); + o.driverLogLevels = buildUnnamed664(); } buildCounterLoggingConfig--; return o; @@ -1545,19 +1625,19 @@ checkLoggingConfig(api.LoggingConfig o) { buildCounterLoggingConfig++; if (buildCounterLoggingConfig < 3) { - checkUnnamed645(o.driverLogLevels); + checkUnnamed664(o.driverLogLevels); } buildCounterLoggingConfig--; } -buildUnnamed646() { +buildUnnamed665() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed646(core.Map<core.String, core.String> o) { +checkUnnamed665(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')); @@ -1570,7 +1650,7 @@ if (buildCounterManagedCluster < 3) { o.clusterName = "foo"; o.config = buildClusterConfig(); - o.labels = buildUnnamed646(); + o.labels = buildUnnamed665(); } buildCounterManagedCluster--; return o; @@ -1581,7 +1661,7 @@ if (buildCounterManagedCluster < 3) { unittest.expect(o.clusterName, unittest.equals('foo')); checkClusterConfig(o.config); - checkUnnamed646(o.labels); + checkUnnamed665(o.labels); } buildCounterManagedCluster--; } @@ -1607,6 +1687,25 @@ buildCounterManagedGroupConfig--; } +core.int buildCounterNodeGroupAffinity = 0; +buildNodeGroupAffinity() { + var o = new api.NodeGroupAffinity(); + buildCounterNodeGroupAffinity++; + if (buildCounterNodeGroupAffinity < 3) { + o.nodeGroupUri = "foo"; + } + buildCounterNodeGroupAffinity--; + return o; +} + +checkNodeGroupAffinity(api.NodeGroupAffinity o) { + buildCounterNodeGroupAffinity++; + if (buildCounterNodeGroupAffinity < 3) { + unittest.expect(o.nodeGroupUri, unittest.equals('foo')); + } + buildCounterNodeGroupAffinity--; +} + core.int buildCounterNodeInitializationAction = 0; buildNodeInitializationAction() { var o = new api.NodeInitializationAction(); @@ -1628,7 +1727,7 @@ buildCounterNodeInitializationAction--; } -buildUnnamed647() { +buildUnnamed666() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1643,7 +1742,7 @@ return o; } -checkUnnamed647(core.Map<core.String, core.Object> o) { +checkUnnamed666(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)); @@ -1657,7 +1756,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed648() { +buildUnnamed667() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1672,7 +1771,7 @@ return o; } -checkUnnamed648(core.Map<core.String, core.Object> o) { +checkUnnamed667(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)); @@ -1693,9 +1792,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed647(); + o.metadata = buildUnnamed666(); o.name = "foo"; - o.response = buildUnnamed648(); + o.response = buildUnnamed667(); } buildCounterOperation--; return o; @@ -1706,34 +1805,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed647(o.metadata); + checkUnnamed666(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed648(o.response); + checkUnnamed667(o.response); } buildCounterOperation--; } -buildUnnamed649() { +buildUnnamed668() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed649(core.Map<core.String, core.String> o) { +checkUnnamed668(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')); } -buildUnnamed650() { +buildUnnamed669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed650(core.List<core.String> o) { +checkUnnamed669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1746,9 +1845,9 @@ if (buildCounterOrderedJob < 3) { o.hadoopJob = buildHadoopJob(); o.hiveJob = buildHiveJob(); - o.labels = buildUnnamed649(); + o.labels = buildUnnamed668(); o.pigJob = buildPigJob(); - o.prerequisiteStepIds = buildUnnamed650(); + o.prerequisiteStepIds = buildUnnamed669(); o.prestoJob = buildPrestoJob(); o.pysparkJob = buildPySparkJob(); o.scheduling = buildJobScheduling(); @@ -1766,9 +1865,9 @@ if (buildCounterOrderedJob < 3) { checkHadoopJob(o.hadoopJob); checkHiveJob(o.hiveJob); - checkUnnamed649(o.labels); + checkUnnamed668(o.labels); checkPigJob(o.pigJob); - checkUnnamed650(o.prerequisiteStepIds); + checkUnnamed669(o.prerequisiteStepIds); checkPrestoJob(o.prestoJob); checkPySparkJob(o.pysparkJob); checkJobScheduling(o.scheduling); @@ -1801,40 +1900,40 @@ buildCounterParameterValidation--; } -buildUnnamed651() { +buildUnnamed670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed651(core.List<core.String> o) { +checkUnnamed670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed652() { +buildUnnamed671() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed652(core.Map<core.String, core.String> o) { +checkUnnamed671(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')); } -buildUnnamed653() { +buildUnnamed672() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed653(core.Map<core.String, core.String> o) { +checkUnnamed672(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')); @@ -1846,12 +1945,12 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { o.continueOnFailure = true; - o.jarFileUris = buildUnnamed651(); + o.jarFileUris = buildUnnamed670(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed652(); + o.properties = buildUnnamed671(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed653(); + o.scriptVariables = buildUnnamed672(); } buildCounterPigJob--; return o; @@ -1861,24 +1960,24 @@ buildCounterPigJob++; if (buildCounterPigJob < 3) { unittest.expect(o.continueOnFailure, unittest.isTrue); - checkUnnamed651(o.jarFileUris); + checkUnnamed670(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed652(o.properties); + checkUnnamed671(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed653(o.scriptVariables); + checkUnnamed672(o.scriptVariables); } buildCounterPigJob--; } -buildUnnamed654() { +buildUnnamed673() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed654(core.List<api.Binding> o) { +checkUnnamed673(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1889,7 +1988,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed654(); + o.bindings = buildUnnamed673(); o.etag = "foo"; o.version = 42; } @@ -1900,34 +1999,34 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed654(o.bindings); + checkUnnamed673(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed655() { +buildUnnamed674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed655(core.List<core.String> o) { +checkUnnamed674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed656() { +buildUnnamed675() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed656(core.Map<core.String, core.String> o) { +checkUnnamed675(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')); @@ -1938,11 +2037,11 @@ var o = new api.PrestoJob(); buildCounterPrestoJob++; if (buildCounterPrestoJob < 3) { - o.clientTags = buildUnnamed655(); + o.clientTags = buildUnnamed674(); o.continueOnFailure = true; o.loggingConfig = buildLoggingConfig(); o.outputFormat = "foo"; - o.properties = buildUnnamed656(); + o.properties = buildUnnamed675(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); } @@ -1953,90 +2052,90 @@ checkPrestoJob(api.PrestoJob o) { buildCounterPrestoJob++; if (buildCounterPrestoJob < 3) { - checkUnnamed655(o.clientTags); + checkUnnamed674(o.clientTags); unittest.expect(o.continueOnFailure, unittest.isTrue); checkLoggingConfig(o.loggingConfig); unittest.expect(o.outputFormat, unittest.equals('foo')); - checkUnnamed656(o.properties); + checkUnnamed675(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); } buildCounterPrestoJob--; } -buildUnnamed657() { +buildUnnamed676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed657(core.List<core.String> o) { +checkUnnamed676(core.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() { +buildUnnamed677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed658(core.List<core.String> o) { +checkUnnamed677(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed659() { +buildUnnamed678() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed659(core.List<core.String> o) { +checkUnnamed678(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed660() { +buildUnnamed679() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed660(core.List<core.String> o) { +checkUnnamed679(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed661() { +buildUnnamed680() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed661(core.Map<core.String, core.String> o) { +checkUnnamed680(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')); } -buildUnnamed662() { +buildUnnamed681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed662(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')); @@ -2047,14 +2146,14 @@ var o = new api.PySparkJob(); buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - o.archiveUris = buildUnnamed657(); - o.args = buildUnnamed658(); - o.fileUris = buildUnnamed659(); - o.jarFileUris = buildUnnamed660(); + o.archiveUris = buildUnnamed676(); + o.args = buildUnnamed677(); + o.fileUris = buildUnnamed678(); + o.jarFileUris = buildUnnamed679(); o.loggingConfig = buildLoggingConfig(); o.mainPythonFileUri = "foo"; - o.properties = buildUnnamed661(); - o.pythonFileUris = buildUnnamed662(); + o.properties = buildUnnamed680(); + o.pythonFileUris = buildUnnamed681(); } buildCounterPySparkJob--; return o; @@ -2063,26 +2162,26 @@ checkPySparkJob(api.PySparkJob o) { buildCounterPySparkJob++; if (buildCounterPySparkJob < 3) { - checkUnnamed657(o.archiveUris); - checkUnnamed658(o.args); - checkUnnamed659(o.fileUris); - checkUnnamed660(o.jarFileUris); + checkUnnamed676(o.archiveUris); + checkUnnamed677(o.args); + checkUnnamed678(o.fileUris); + checkUnnamed679(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainPythonFileUri, unittest.equals('foo')); - checkUnnamed661(o.properties); - checkUnnamed662(o.pythonFileUris); + checkUnnamed680(o.properties); + checkUnnamed681(o.pythonFileUris); } buildCounterPySparkJob--; } -buildUnnamed663() { +buildUnnamed682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed663(core.List<core.String> o) { +checkUnnamed682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2093,7 +2192,7 @@ var o = new api.QueryList(); buildCounterQueryList++; if (buildCounterQueryList < 3) { - o.queries = buildUnnamed663(); + o.queries = buildUnnamed682(); } buildCounterQueryList--; return o; @@ -2102,19 +2201,19 @@ checkQueryList(api.QueryList o) { buildCounterQueryList++; if (buildCounterQueryList < 3) { - checkUnnamed663(o.queries); + checkUnnamed682(o.queries); } buildCounterQueryList--; } -buildUnnamed664() { +buildUnnamed683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed664(core.List<core.String> o) { +checkUnnamed683(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2125,7 +2224,7 @@ var o = new api.RegexValidation(); buildCounterRegexValidation++; if (buildCounterRegexValidation < 3) { - o.regexes = buildUnnamed664(); + o.regexes = buildUnnamed683(); } buildCounterRegexValidation--; return o; @@ -2134,19 +2233,19 @@ checkRegexValidation(api.RegexValidation o) { buildCounterRegexValidation++; if (buildCounterRegexValidation < 3) { - checkUnnamed664(o.regexes); + checkUnnamed683(o.regexes); } buildCounterRegexValidation--; } -buildUnnamed665() { +buildUnnamed684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed665(core.List<core.String> o) { +checkUnnamed684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2159,7 +2258,7 @@ if (buildCounterReservationAffinity < 3) { o.consumeReservationType = "foo"; o.key = "foo"; - o.values = buildUnnamed665(); + o.values = buildUnnamed684(); } buildCounterReservationAffinity--; return o; @@ -2170,7 +2269,7 @@ if (buildCounterReservationAffinity < 3) { unittest.expect(o.consumeReservationType, unittest.equals('foo')); unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed665(o.values); + checkUnnamed684(o.values); } buildCounterReservationAffinity--; } @@ -2213,27 +2312,27 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed666() { +buildUnnamed685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed666(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')); } -buildUnnamed667() { +buildUnnamed686() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed667(core.Map<core.String, core.String> o) { +checkUnnamed686(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')); @@ -2245,8 +2344,8 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { o.imageVersion = "foo"; - o.optionalComponents = buildUnnamed666(); - o.properties = buildUnnamed667(); + o.optionalComponents = buildUnnamed685(); + o.properties = buildUnnamed686(); } buildCounterSoftwareConfig--; return o; @@ -2256,72 +2355,72 @@ buildCounterSoftwareConfig++; if (buildCounterSoftwareConfig < 3) { unittest.expect(o.imageVersion, unittest.equals('foo')); - checkUnnamed666(o.optionalComponents); - checkUnnamed667(o.properties); + checkUnnamed685(o.optionalComponents); + checkUnnamed686(o.properties); } buildCounterSoftwareConfig--; } -buildUnnamed668() { +buildUnnamed687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed668(core.List<core.String> o) { +checkUnnamed687(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed669() { +buildUnnamed688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed669(core.List<core.String> o) { +checkUnnamed688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed670() { +buildUnnamed689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed670(core.List<core.String> o) { +checkUnnamed689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed671() { +buildUnnamed690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed671(core.List<core.String> o) { +checkUnnamed690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed672() { +buildUnnamed691() { 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) { +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')); @@ -2332,14 +2431,14 @@ var o = new api.SparkJob(); buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - o.archiveUris = buildUnnamed668(); - o.args = buildUnnamed669(); - o.fileUris = buildUnnamed670(); - o.jarFileUris = buildUnnamed671(); + o.archiveUris = buildUnnamed687(); + o.args = buildUnnamed688(); + o.fileUris = buildUnnamed689(); + o.jarFileUris = buildUnnamed690(); o.loggingConfig = buildLoggingConfig(); o.mainClass = "foo"; o.mainJarFileUri = "foo"; - o.properties = buildUnnamed672(); + o.properties = buildUnnamed691(); } buildCounterSparkJob--; return o; @@ -2348,65 +2447,65 @@ checkSparkJob(api.SparkJob o) { buildCounterSparkJob++; if (buildCounterSparkJob < 3) { - checkUnnamed668(o.archiveUris); - checkUnnamed669(o.args); - checkUnnamed670(o.fileUris); - checkUnnamed671(o.jarFileUris); + checkUnnamed687(o.archiveUris); + checkUnnamed688(o.args); + checkUnnamed689(o.fileUris); + checkUnnamed690(o.jarFileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainClass, unittest.equals('foo')); unittest.expect(o.mainJarFileUri, unittest.equals('foo')); - checkUnnamed672(o.properties); + checkUnnamed691(o.properties); } buildCounterSparkJob--; } -buildUnnamed673() { +buildUnnamed692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed673(core.List<core.String> o) { +checkUnnamed692(core.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() { +buildUnnamed693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed674(core.List<core.String> o) { +checkUnnamed693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed675() { +buildUnnamed694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed675(core.List<core.String> o) { +checkUnnamed694(core.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() { +buildUnnamed695() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed676(core.Map<core.String, core.String> o) { +checkUnnamed695(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')); @@ -2417,12 +2516,12 @@ var o = new api.SparkRJob(); buildCounterSparkRJob++; if (buildCounterSparkRJob < 3) { - o.archiveUris = buildUnnamed673(); - o.args = buildUnnamed674(); - o.fileUris = buildUnnamed675(); + o.archiveUris = buildUnnamed692(); + o.args = buildUnnamed693(); + o.fileUris = buildUnnamed694(); o.loggingConfig = buildLoggingConfig(); o.mainRFileUri = "foo"; - o.properties = buildUnnamed676(); + o.properties = buildUnnamed695(); } buildCounterSparkRJob--; return o; @@ -2431,50 +2530,50 @@ checkSparkRJob(api.SparkRJob o) { buildCounterSparkRJob++; if (buildCounterSparkRJob < 3) { - checkUnnamed673(o.archiveUris); - checkUnnamed674(o.args); - checkUnnamed675(o.fileUris); + checkUnnamed692(o.archiveUris); + checkUnnamed693(o.args); + checkUnnamed694(o.fileUris); checkLoggingConfig(o.loggingConfig); unittest.expect(o.mainRFileUri, unittest.equals('foo')); - checkUnnamed676(o.properties); + checkUnnamed695(o.properties); } buildCounterSparkRJob--; } -buildUnnamed677() { +buildUnnamed696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed677(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')); } -buildUnnamed678() { +buildUnnamed697() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed678(core.Map<core.String, core.String> o) { +checkUnnamed697(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')); } -buildUnnamed679() { +buildUnnamed698() { 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) { +checkUnnamed698(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')); @@ -2485,12 +2584,12 @@ var o = new api.SparkSqlJob(); buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - o.jarFileUris = buildUnnamed677(); + o.jarFileUris = buildUnnamed696(); o.loggingConfig = buildLoggingConfig(); - o.properties = buildUnnamed678(); + o.properties = buildUnnamed697(); o.queryFileUri = "foo"; o.queryList = buildQueryList(); - o.scriptVariables = buildUnnamed679(); + o.scriptVariables = buildUnnamed698(); } buildCounterSparkSqlJob--; return o; @@ -2499,17 +2598,17 @@ checkSparkSqlJob(api.SparkSqlJob o) { buildCounterSparkSqlJob++; if (buildCounterSparkSqlJob < 3) { - checkUnnamed677(o.jarFileUris); + checkUnnamed696(o.jarFileUris); checkLoggingConfig(o.loggingConfig); - checkUnnamed678(o.properties); + checkUnnamed697(o.properties); unittest.expect(o.queryFileUri, unittest.equals('foo')); checkQueryList(o.queryList); - checkUnnamed679(o.scriptVariables); + checkUnnamed698(o.scriptVariables); } buildCounterSparkSqlJob--; } -buildUnnamed680() { +buildUnnamed699() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2524,7 +2623,7 @@ return o; } -checkUnnamed680(core.Map<core.String, core.Object> o) { +checkUnnamed699(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)); @@ -2538,17 +2637,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed681() { +buildUnnamed700() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed680()); - o.add(buildUnnamed680()); + o.add(buildUnnamed699()); + o.add(buildUnnamed699()); return o; } -checkUnnamed681(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed700(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed680(o[0]); - checkUnnamed680(o[1]); + checkUnnamed699(o[0]); + checkUnnamed699(o[1]); } core.int buildCounterStatus = 0; @@ -2557,7 +2656,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed681(); + o.details = buildUnnamed700(); o.message = "foo"; } buildCounterStatus--; @@ -2568,7 +2667,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed681(o.details); + checkUnnamed700(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2595,14 +2694,14 @@ buildCounterSubmitJobRequest--; } -buildUnnamed682() { +buildUnnamed701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed682(core.List<core.String> o) { +checkUnnamed701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2614,7 +2713,7 @@ buildCounterTemplateParameter++; if (buildCounterTemplateParameter < 3) { o.description = "foo"; - o.fields = buildUnnamed682(); + o.fields = buildUnnamed701(); o.name = "foo"; o.validation = buildParameterValidation(); } @@ -2626,21 +2725,21 @@ buildCounterTemplateParameter++; if (buildCounterTemplateParameter < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed682(o.fields); + checkUnnamed701(o.fields); unittest.expect(o.name, unittest.equals('foo')); checkParameterValidation(o.validation); } buildCounterTemplateParameter--; } -buildUnnamed683() { +buildUnnamed702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed683(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')); @@ -2651,7 +2750,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed683(); + o.permissions = buildUnnamed702(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2660,19 +2759,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed683(o.permissions); + checkUnnamed702(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed684() { +buildUnnamed703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed684(core.List<core.String> o) { +checkUnnamed703(core.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 +2782,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed684(); + o.permissions = buildUnnamed703(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2692,19 +2791,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed684(o.permissions); + checkUnnamed703(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed685() { +buildUnnamed704() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed685(core.List<core.String> o) { +checkUnnamed704(core.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 +2814,7 @@ var o = new api.ValueValidation(); buildCounterValueValidation++; if (buildCounterValueValidation < 3) { - o.values = buildUnnamed685(); + o.values = buildUnnamed704(); } buildCounterValueValidation--; return o; @@ -2724,19 +2823,19 @@ checkValueValidation(api.ValueValidation o) { buildCounterValueValidation++; if (buildCounterValueValidation < 3) { - checkUnnamed685(o.values); + checkUnnamed704(o.values); } buildCounterValueValidation--; } -buildUnnamed686() { +buildUnnamed705() { var o = new core.List<api.WorkflowNode>(); o.add(buildWorkflowNode()); o.add(buildWorkflowNode()); return o; } -checkUnnamed686(core.List<api.WorkflowNode> o) { +checkUnnamed705(core.List<api.WorkflowNode> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkflowNode(o[0]); checkWorkflowNode(o[1]); @@ -2747,7 +2846,7 @@ var o = new api.WorkflowGraph(); buildCounterWorkflowGraph++; if (buildCounterWorkflowGraph < 3) { - o.nodes = buildUnnamed686(); + o.nodes = buildUnnamed705(); } buildCounterWorkflowGraph--; return o; @@ -2756,19 +2855,19 @@ checkWorkflowGraph(api.WorkflowGraph o) { buildCounterWorkflowGraph++; if (buildCounterWorkflowGraph < 3) { - checkUnnamed686(o.nodes); + checkUnnamed705(o.nodes); } buildCounterWorkflowGraph--; } -buildUnnamed687() { +buildUnnamed706() { 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) { +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')); @@ -2785,7 +2884,7 @@ o.deleteCluster = buildClusterOperation(); o.endTime = "foo"; o.graph = buildWorkflowGraph(); - o.parameters = buildUnnamed687(); + o.parameters = buildUnnamed706(); o.startTime = "foo"; o.state = "foo"; o.template = "foo"; @@ -2804,7 +2903,7 @@ checkClusterOperation(o.deleteCluster); unittest.expect(o.endTime, unittest.equals('foo')); checkWorkflowGraph(o.graph); - checkUnnamed687(o.parameters); + checkUnnamed706(o.parameters); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.template, unittest.equals('foo')); @@ -2813,14 +2912,14 @@ buildCounterWorkflowMetadata--; } -buildUnnamed688() { +buildUnnamed707() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed688(core.List<core.String> o) { +checkUnnamed707(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2833,7 +2932,7 @@ if (buildCounterWorkflowNode < 3) { o.error = "foo"; o.jobId = "foo"; - o.prerequisiteStepIds = buildUnnamed688(); + o.prerequisiteStepIds = buildUnnamed707(); o.state = "foo"; o.stepId = "foo"; } @@ -2846,47 +2945,47 @@ if (buildCounterWorkflowNode < 3) { unittest.expect(o.error, unittest.equals('foo')); unittest.expect(o.jobId, unittest.equals('foo')); - checkUnnamed688(o.prerequisiteStepIds); + checkUnnamed707(o.prerequisiteStepIds); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.stepId, unittest.equals('foo')); } buildCounterWorkflowNode--; } -buildUnnamed689() { +buildUnnamed708() { var o = new core.List<api.OrderedJob>(); o.add(buildOrderedJob()); o.add(buildOrderedJob()); return o; } -checkUnnamed689(core.List<api.OrderedJob> o) { +checkUnnamed708(core.List<api.OrderedJob> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderedJob(o[0]); checkOrderedJob(o[1]); } -buildUnnamed690() { +buildUnnamed709() { 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) { +checkUnnamed709(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() { +buildUnnamed710() { var o = new core.List<api.TemplateParameter>(); o.add(buildTemplateParameter()); o.add(buildTemplateParameter()); return o; } -checkUnnamed691(core.List<api.TemplateParameter> o) { +checkUnnamed710(core.List<api.TemplateParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkTemplateParameter(o[0]); checkTemplateParameter(o[1]); @@ -2899,10 +2998,10 @@ if (buildCounterWorkflowTemplate < 3) { o.createTime = "foo"; o.id = "foo"; - o.jobs = buildUnnamed689(); - o.labels = buildUnnamed690(); + o.jobs = buildUnnamed708(); + o.labels = buildUnnamed709(); o.name = "foo"; - o.parameters = buildUnnamed691(); + o.parameters = buildUnnamed710(); o.placement = buildWorkflowTemplatePlacement(); o.updateTime = "foo"; o.version = 42; @@ -2916,10 +3015,10 @@ if (buildCounterWorkflowTemplate < 3) { unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed689(o.jobs); - checkUnnamed690(o.labels); + checkUnnamed708(o.jobs); + checkUnnamed709(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed691(o.parameters); + checkUnnamed710(o.parameters); checkWorkflowTemplatePlacement(o.placement); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); @@ -3134,6 +3233,14 @@ }); }); + unittest.group("obj-schema-EndpointConfig", () { + unittest.test("to-json--from-json", () { + var o = buildEndpointConfig(); + var od = new api.EndpointConfig.fromJson(o.toJson()); + checkEndpointConfig(od); + }); + }); + unittest.group("obj-schema-Expr", () { unittest.test("to-json--from-json", () { var o = buildExpr(); @@ -3199,6 +3306,14 @@ }); }); + unittest.group("obj-schema-InstanceReference", () { + unittest.test("to-json--from-json", () { + var o = buildInstanceReference(); + var od = new api.InstanceReference.fromJson(o.toJson()); + checkInstanceReference(od); + }); + }); + unittest.group("obj-schema-InstantiateWorkflowTemplateRequest", () { unittest.test("to-json--from-json", () { var o = buildInstantiateWorkflowTemplateRequest(); @@ -3335,6 +3450,14 @@ }); }); + unittest.group("obj-schema-NodeGroupAffinity", () { + unittest.test("to-json--from-json", () { + var o = buildNodeGroupAffinity(); + var od = new api.NodeGroupAffinity.fromJson(o.toJson()); + checkNodeGroupAffinity(od); + }); + }); + unittest.group("obj-schema-NodeInitializationAction", () { unittest.test("to-json--from-json", () { var o = buildNodeInitializationAction(); @@ -5414,9 +5537,9 @@ new api.DataprocApi(mock).projects.regions.clusters; var arg_projectId = "foo"; var arg_region = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5466,11 +5589,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5481,9 +5604,9 @@ }), true); res .list(arg_projectId, arg_region, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListClustersResponse(response); @@ -5498,9 +5621,9 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_clusterName = "foo"; + var arg_gracefulDecommissionTimeout = "foo"; var arg_requestId = "foo"; var arg_updateMask = "foo"; - var arg_gracefulDecommissionTimeout = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Cluster.fromJson(json); @@ -5556,12 +5679,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["gracefulDecommissionTimeout"].first, + unittest.equals(arg_gracefulDecommissionTimeout)); unittest.expect( queryMap["requestId"].first, unittest.equals(arg_requestId)); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - unittest.expect(queryMap["gracefulDecommissionTimeout"].first, - unittest.equals(arg_gracefulDecommissionTimeout)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5572,9 +5695,9 @@ }), true); res .patch(arg_request, arg_projectId, arg_region, arg_clusterName, + gracefulDecommissionTimeout: arg_gracefulDecommissionTimeout, requestId: arg_requestId, updateMask: arg_updateMask, - gracefulDecommissionTimeout: arg_gracefulDecommissionTimeout, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -5991,10 +6114,10 @@ var arg_projectId = "foo"; var arg_region = "foo"; var arg_pageSize = 42; - var arg_clusterName = "foo"; - var arg_filter = "foo"; - var arg_jobStateMatcher = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_clusterName = "foo"; + var arg_jobStateMatcher = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6047,12 +6170,12 @@ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["clusterName"].first, unittest.equals(arg_clusterName)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["clusterName"].first, unittest.equals(arg_clusterName)); unittest.expect(queryMap["jobStateMatcher"].first, unittest.equals(arg_jobStateMatcher)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6064,10 +6187,10 @@ res .list(arg_projectId, arg_region, pageSize: arg_pageSize, - clusterName: arg_clusterName, - filter: arg_filter, - jobStateMatcher: arg_jobStateMatcher, pageToken: arg_pageToken, + filter: arg_filter, + clusterName: arg_clusterName, + jobStateMatcher: arg_jobStateMatcher, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListJobsResponse(response); @@ -6636,9 +6759,9 @@ api.ProjectsRegionsOperationsResourceApi res = new api.DataprocApi(mock).projects.regions.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6671,11 +6794,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6686,9 +6809,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/datastore/v1_test.dart b/generated/googleapis/test/datastore/v1_test.dart index 78c2cba..b768542 100644 --- a/generated/googleapis/test/datastore/v1_test.dart +++ b/generated/googleapis/test/datastore/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4700() { +buildUnnamed5029() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4700(core.List<api.Key> o) { +checkUnnamed5029(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -68,7 +68,7 @@ var o = new api.AllocateIdsRequest(); buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - o.keys = buildUnnamed4700(); + o.keys = buildUnnamed5029(); } buildCounterAllocateIdsRequest--; return o; @@ -77,19 +77,19 @@ checkAllocateIdsRequest(api.AllocateIdsRequest o) { buildCounterAllocateIdsRequest++; if (buildCounterAllocateIdsRequest < 3) { - checkUnnamed4700(o.keys); + checkUnnamed5029(o.keys); } buildCounterAllocateIdsRequest--; } -buildUnnamed4701() { +buildUnnamed5030() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4701(core.List<api.Key> o) { +checkUnnamed5030(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -100,7 +100,7 @@ var o = new api.AllocateIdsResponse(); buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - o.keys = buildUnnamed4701(); + o.keys = buildUnnamed5030(); } buildCounterAllocateIdsResponse--; return o; @@ -109,19 +109,19 @@ checkAllocateIdsResponse(api.AllocateIdsResponse o) { buildCounterAllocateIdsResponse++; if (buildCounterAllocateIdsResponse < 3) { - checkUnnamed4701(o.keys); + checkUnnamed5030(o.keys); } buildCounterAllocateIdsResponse--; } -buildUnnamed4702() { +buildUnnamed5031() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed4702(core.List<api.Value> o) { +checkUnnamed5031(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -132,7 +132,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed4702(); + o.values = buildUnnamed5031(); } buildCounterArrayValue--; return o; @@ -141,7 +141,7 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed4702(o.values); + checkUnnamed5031(o.values); } buildCounterArrayValue--; } @@ -184,14 +184,14 @@ buildCounterBeginTransactionResponse--; } -buildUnnamed4703() { +buildUnnamed5032() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed4703(core.List<api.Mutation> o) { +checkUnnamed5032(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -203,7 +203,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.mode = "foo"; - o.mutations = buildUnnamed4703(); + o.mutations = buildUnnamed5032(); o.transaction = "foo"; } buildCounterCommitRequest--; @@ -214,20 +214,20 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.mode, unittest.equals('foo')); - checkUnnamed4703(o.mutations); + checkUnnamed5032(o.mutations); unittest.expect(o.transaction, unittest.equals('foo')); } buildCounterCommitRequest--; } -buildUnnamed4704() { +buildUnnamed5033() { var o = new core.List<api.MutationResult>(); o.add(buildMutationResult()); o.add(buildMutationResult()); return o; } -checkUnnamed4704(core.List<api.MutationResult> o) { +checkUnnamed5033(core.List<api.MutationResult> o) { unittest.expect(o, unittest.hasLength(2)); checkMutationResult(o[0]); checkMutationResult(o[1]); @@ -239,7 +239,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.indexUpdates = 42; - o.mutationResults = buildUnnamed4704(); + o.mutationResults = buildUnnamed5033(); } buildCounterCommitResponse--; return o; @@ -249,19 +249,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.indexUpdates, unittest.equals(42)); - checkUnnamed4704(o.mutationResults); + checkUnnamed5033(o.mutationResults); } buildCounterCommitResponse--; } -buildUnnamed4705() { +buildUnnamed5034() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed4705(core.List<api.Filter> o) { +checkUnnamed5034(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -272,7 +272,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed4705(); + o.filters = buildUnnamed5034(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -282,7 +282,7 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed4705(o.filters); + checkUnnamed5034(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; @@ -303,14 +303,14 @@ buildCounterEmpty--; } -buildUnnamed4706() { +buildUnnamed5035() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed4706(core.Map<core.String, api.Value> o) { +checkUnnamed5035(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -322,7 +322,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { o.key = buildKey(); - o.properties = buildUnnamed4706(); + o.properties = buildUnnamed5035(); } buildCounterEntity--; return o; @@ -332,7 +332,7 @@ buildCounterEntity++; if (buildCounterEntity < 3) { checkKey(o.key); - checkUnnamed4706(o.properties); + checkUnnamed5035(o.properties); } buildCounterEntity--; } @@ -381,14 +381,14 @@ buildCounterFilter--; } -buildUnnamed4707() { +buildUnnamed5036() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4707(core.Map<core.String, core.String> o) { +checkUnnamed5036(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')); @@ -400,7 +400,7 @@ buildCounterGoogleDatastoreAdminV1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1CommonMetadata < 3) { o.endTime = "foo"; - o.labels = buildUnnamed4707(); + o.labels = buildUnnamed5036(); o.operationType = "foo"; o.startTime = "foo"; o.state = "foo"; @@ -414,7 +414,7 @@ buildCounterGoogleDatastoreAdminV1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1CommonMetadata < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed4707(o.labels); + checkUnnamed5036(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -422,27 +422,27 @@ buildCounterGoogleDatastoreAdminV1CommonMetadata--; } -buildUnnamed4708() { +buildUnnamed5037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4708(core.List<core.String> o) { +checkUnnamed5037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4709() { +buildUnnamed5038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4709(core.List<core.String> o) { +checkUnnamed5038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -453,8 +453,8 @@ var o = new api.GoogleDatastoreAdminV1EntityFilter(); buildCounterGoogleDatastoreAdminV1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1EntityFilter < 3) { - o.kinds = buildUnnamed4708(); - o.namespaceIds = buildUnnamed4709(); + o.kinds = buildUnnamed5037(); + o.namespaceIds = buildUnnamed5038(); } buildCounterGoogleDatastoreAdminV1EntityFilter--; return o; @@ -464,8 +464,8 @@ api.GoogleDatastoreAdminV1EntityFilter o) { buildCounterGoogleDatastoreAdminV1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1EntityFilter < 3) { - checkUnnamed4708(o.kinds); - checkUnnamed4709(o.namespaceIds); + checkUnnamed5037(o.kinds); + checkUnnamed5038(o.namespaceIds); } buildCounterGoogleDatastoreAdminV1EntityFilter--; } @@ -498,14 +498,14 @@ buildCounterGoogleDatastoreAdminV1ExportEntitiesMetadata--; } -buildUnnamed4710() { +buildUnnamed5039() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4710(core.Map<core.String, core.String> o) { +checkUnnamed5039(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')); @@ -517,7 +517,7 @@ buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest++; if (buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest < 3) { o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); - o.labels = buildUnnamed4710(); + o.labels = buildUnnamed5039(); o.outputUrlPrefix = "foo"; } buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest--; @@ -529,7 +529,7 @@ buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest++; if (buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest < 3) { checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); - checkUnnamed4710(o.labels); + checkUnnamed5039(o.labels); unittest.expect(o.outputUrlPrefix, unittest.equals('foo')); } buildCounterGoogleDatastoreAdminV1ExportEntitiesRequest--; @@ -583,14 +583,14 @@ buildCounterGoogleDatastoreAdminV1ImportEntitiesMetadata--; } -buildUnnamed4711() { +buildUnnamed5040() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4711(core.Map<core.String, core.String> o) { +checkUnnamed5040(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')); @@ -603,7 +603,7 @@ if (buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest < 3) { o.entityFilter = buildGoogleDatastoreAdminV1EntityFilter(); o.inputUrl = "foo"; - o.labels = buildUnnamed4711(); + o.labels = buildUnnamed5040(); } buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest--; return o; @@ -615,19 +615,19 @@ if (buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest < 3) { checkGoogleDatastoreAdminV1EntityFilter(o.entityFilter); unittest.expect(o.inputUrl, unittest.equals('foo')); - checkUnnamed4711(o.labels); + checkUnnamed5040(o.labels); } buildCounterGoogleDatastoreAdminV1ImportEntitiesRequest--; } -buildUnnamed4712() { +buildUnnamed5041() { var o = new core.List<api.GoogleDatastoreAdminV1IndexedProperty>(); o.add(buildGoogleDatastoreAdminV1IndexedProperty()); o.add(buildGoogleDatastoreAdminV1IndexedProperty()); return o; } -checkUnnamed4712(core.List<api.GoogleDatastoreAdminV1IndexedProperty> o) { +checkUnnamed5041(core.List<api.GoogleDatastoreAdminV1IndexedProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDatastoreAdminV1IndexedProperty(o[0]); checkGoogleDatastoreAdminV1IndexedProperty(o[1]); @@ -642,7 +642,7 @@ o.indexId = "foo"; o.kind = "foo"; o.projectId = "foo"; - o.properties = buildUnnamed4712(); + o.properties = buildUnnamed5041(); o.state = "foo"; } buildCounterGoogleDatastoreAdminV1Index--; @@ -656,7 +656,7 @@ unittest.expect(o.indexId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed4712(o.properties); + checkUnnamed5041(o.properties); unittest.expect(o.state, unittest.equals('foo')); } buildCounterGoogleDatastoreAdminV1Index--; @@ -708,14 +708,14 @@ buildCounterGoogleDatastoreAdminV1IndexedProperty--; } -buildUnnamed4713() { +buildUnnamed5042() { var o = new core.List<api.GoogleDatastoreAdminV1Index>(); o.add(buildGoogleDatastoreAdminV1Index()); o.add(buildGoogleDatastoreAdminV1Index()); return o; } -checkUnnamed4713(core.List<api.GoogleDatastoreAdminV1Index> o) { +checkUnnamed5042(core.List<api.GoogleDatastoreAdminV1Index> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDatastoreAdminV1Index(o[0]); checkGoogleDatastoreAdminV1Index(o[1]); @@ -726,7 +726,7 @@ var o = new api.GoogleDatastoreAdminV1ListIndexesResponse(); buildCounterGoogleDatastoreAdminV1ListIndexesResponse++; if (buildCounterGoogleDatastoreAdminV1ListIndexesResponse < 3) { - o.indexes = buildUnnamed4713(); + o.indexes = buildUnnamed5042(); o.nextPageToken = "foo"; } buildCounterGoogleDatastoreAdminV1ListIndexesResponse--; @@ -737,7 +737,7 @@ api.GoogleDatastoreAdminV1ListIndexesResponse o) { buildCounterGoogleDatastoreAdminV1ListIndexesResponse++; if (buildCounterGoogleDatastoreAdminV1ListIndexesResponse < 3) { - checkUnnamed4713(o.indexes); + checkUnnamed5042(o.indexes); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleDatastoreAdminV1ListIndexesResponse--; @@ -764,14 +764,14 @@ buildCounterGoogleDatastoreAdminV1Progress--; } -buildUnnamed4714() { +buildUnnamed5043() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4714(core.Map<core.String, core.String> o) { +checkUnnamed5043(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')); @@ -783,7 +783,7 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1beta1CommonMetadata < 3) { o.endTime = "foo"; - o.labels = buildUnnamed4714(); + o.labels = buildUnnamed5043(); o.operationType = "foo"; o.startTime = "foo"; o.state = "foo"; @@ -797,7 +797,7 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata++; if (buildCounterGoogleDatastoreAdminV1beta1CommonMetadata < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed4714(o.labels); + checkUnnamed5043(o.labels); unittest.expect(o.operationType, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -805,27 +805,27 @@ buildCounterGoogleDatastoreAdminV1beta1CommonMetadata--; } -buildUnnamed4715() { +buildUnnamed5044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4715(core.List<core.String> o) { +checkUnnamed5044(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4716() { +buildUnnamed5045() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4716(core.List<core.String> o) { +checkUnnamed5045(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -836,8 +836,8 @@ var o = new api.GoogleDatastoreAdminV1beta1EntityFilter(); buildCounterGoogleDatastoreAdminV1beta1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1beta1EntityFilter < 3) { - o.kinds = buildUnnamed4715(); - o.namespaceIds = buildUnnamed4716(); + o.kinds = buildUnnamed5044(); + o.namespaceIds = buildUnnamed5045(); } buildCounterGoogleDatastoreAdminV1beta1EntityFilter--; return o; @@ -847,8 +847,8 @@ api.GoogleDatastoreAdminV1beta1EntityFilter o) { buildCounterGoogleDatastoreAdminV1beta1EntityFilter++; if (buildCounterGoogleDatastoreAdminV1beta1EntityFilter < 3) { - checkUnnamed4715(o.kinds); - checkUnnamed4716(o.namespaceIds); + checkUnnamed5044(o.kinds); + checkUnnamed5045(o.namespaceIds); } buildCounterGoogleDatastoreAdminV1beta1EntityFilter--; } @@ -951,14 +951,14 @@ buildCounterGoogleDatastoreAdminV1beta1Progress--; } -buildUnnamed4717() { +buildUnnamed5046() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed4717(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed5046(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -970,7 +970,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4717(); + o.operations = buildUnnamed5046(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -981,12 +981,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4717(o.operations); + checkUnnamed5046(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed4718() { +buildUnnamed5047() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1001,7 +1001,7 @@ return o; } -checkUnnamed4718(core.Map<core.String, core.Object> o) { +checkUnnamed5047(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)); @@ -1015,7 +1015,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4719() { +buildUnnamed5048() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1030,7 +1030,7 @@ return o; } -checkUnnamed4719(core.Map<core.String, core.Object> o) { +checkUnnamed5048(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)); @@ -1051,9 +1051,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4718(); + o.metadata = buildUnnamed5047(); o.name = "foo"; - o.response = buildUnnamed4719(); + o.response = buildUnnamed5048(); } buildCounterGoogleLongrunningOperation--; return o; @@ -1064,34 +1064,34 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4718(o.metadata); + checkUnnamed5047(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4719(o.response); + checkUnnamed5048(o.response); } buildCounterGoogleLongrunningOperation--; } -buildUnnamed4720() { +buildUnnamed5049() { var o = new core.Map<core.String, api.GqlQueryParameter>(); o["x"] = buildGqlQueryParameter(); o["y"] = buildGqlQueryParameter(); return o; } -checkUnnamed4720(core.Map<core.String, api.GqlQueryParameter> o) { +checkUnnamed5049(core.Map<core.String, api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o["x"]); checkGqlQueryParameter(o["y"]); } -buildUnnamed4721() { +buildUnnamed5050() { var o = new core.List<api.GqlQueryParameter>(); o.add(buildGqlQueryParameter()); o.add(buildGqlQueryParameter()); return o; } -checkUnnamed4721(core.List<api.GqlQueryParameter> o) { +checkUnnamed5050(core.List<api.GqlQueryParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGqlQueryParameter(o[0]); checkGqlQueryParameter(o[1]); @@ -1103,8 +1103,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { o.allowLiterals = true; - o.namedBindings = buildUnnamed4720(); - o.positionalBindings = buildUnnamed4721(); + o.namedBindings = buildUnnamed5049(); + o.positionalBindings = buildUnnamed5050(); o.queryString = "foo"; } buildCounterGqlQuery--; @@ -1115,8 +1115,8 @@ buildCounterGqlQuery++; if (buildCounterGqlQuery < 3) { unittest.expect(o.allowLiterals, unittest.isTrue); - checkUnnamed4720(o.namedBindings); - checkUnnamed4721(o.positionalBindings); + checkUnnamed5049(o.namedBindings); + checkUnnamed5050(o.positionalBindings); unittest.expect(o.queryString, unittest.equals('foo')); } buildCounterGqlQuery--; @@ -1143,14 +1143,14 @@ buildCounterGqlQueryParameter--; } -buildUnnamed4722() { +buildUnnamed5051() { var o = new core.List<api.PathElement>(); o.add(buildPathElement()); o.add(buildPathElement()); return o; } -checkUnnamed4722(core.List<api.PathElement> o) { +checkUnnamed5051(core.List<api.PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPathElement(o[0]); checkPathElement(o[1]); @@ -1162,7 +1162,7 @@ buildCounterKey++; if (buildCounterKey < 3) { o.partitionId = buildPartitionId(); - o.path = buildUnnamed4722(); + o.path = buildUnnamed5051(); } buildCounterKey--; return o; @@ -1172,7 +1172,7 @@ buildCounterKey++; if (buildCounterKey < 3) { checkPartitionId(o.partitionId); - checkUnnamed4722(o.path); + checkUnnamed5051(o.path); } buildCounterKey--; } @@ -1217,14 +1217,14 @@ buildCounterLatLng--; } -buildUnnamed4723() { +buildUnnamed5052() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4723(core.List<api.Key> o) { +checkUnnamed5052(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -1235,7 +1235,7 @@ var o = new api.LookupRequest(); buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - o.keys = buildUnnamed4723(); + o.keys = buildUnnamed5052(); o.readOptions = buildReadOptions(); } buildCounterLookupRequest--; @@ -1245,46 +1245,46 @@ checkLookupRequest(api.LookupRequest o) { buildCounterLookupRequest++; if (buildCounterLookupRequest < 3) { - checkUnnamed4723(o.keys); + checkUnnamed5052(o.keys); checkReadOptions(o.readOptions); } buildCounterLookupRequest--; } -buildUnnamed4724() { +buildUnnamed5053() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4724(core.List<api.Key> o) { +checkUnnamed5053(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); } -buildUnnamed4725() { +buildUnnamed5054() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4725(core.List<api.EntityResult> o) { +checkUnnamed5054(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); } -buildUnnamed4726() { +buildUnnamed5055() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4726(core.List<api.EntityResult> o) { +checkUnnamed5055(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -1295,9 +1295,9 @@ var o = new api.LookupResponse(); buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - o.deferred = buildUnnamed4724(); - o.found = buildUnnamed4725(); - o.missing = buildUnnamed4726(); + o.deferred = buildUnnamed5053(); + o.found = buildUnnamed5054(); + o.missing = buildUnnamed5055(); } buildCounterLookupResponse--; return o; @@ -1306,9 +1306,9 @@ checkLookupResponse(api.LookupResponse o) { buildCounterLookupResponse++; if (buildCounterLookupResponse < 3) { - checkUnnamed4724(o.deferred); - checkUnnamed4725(o.found); - checkUnnamed4726(o.missing); + checkUnnamed5053(o.deferred); + checkUnnamed5054(o.found); + checkUnnamed5055(o.missing); } buildCounterLookupResponse--; } @@ -1489,53 +1489,53 @@ buildCounterPropertyReference--; } -buildUnnamed4727() { +buildUnnamed5056() { var o = new core.List<api.PropertyReference>(); o.add(buildPropertyReference()); o.add(buildPropertyReference()); return o; } -checkUnnamed4727(core.List<api.PropertyReference> o) { +checkUnnamed5056(core.List<api.PropertyReference> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyReference(o[0]); checkPropertyReference(o[1]); } -buildUnnamed4728() { +buildUnnamed5057() { var o = new core.List<api.KindExpression>(); o.add(buildKindExpression()); o.add(buildKindExpression()); return o; } -checkUnnamed4728(core.List<api.KindExpression> o) { +checkUnnamed5057(core.List<api.KindExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkKindExpression(o[0]); checkKindExpression(o[1]); } -buildUnnamed4729() { +buildUnnamed5058() { var o = new core.List<api.PropertyOrder>(); o.add(buildPropertyOrder()); o.add(buildPropertyOrder()); return o; } -checkUnnamed4729(core.List<api.PropertyOrder> o) { +checkUnnamed5058(core.List<api.PropertyOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyOrder(o[0]); checkPropertyOrder(o[1]); } -buildUnnamed4730() { +buildUnnamed5059() { var o = new core.List<api.Projection>(); o.add(buildProjection()); o.add(buildProjection()); return o; } -checkUnnamed4730(core.List<api.Projection> o) { +checkUnnamed5059(core.List<api.Projection> o) { unittest.expect(o, unittest.hasLength(2)); checkProjection(o[0]); checkProjection(o[1]); @@ -1546,14 +1546,14 @@ var o = new api.Query(); buildCounterQuery++; if (buildCounterQuery < 3) { - o.distinctOn = buildUnnamed4727(); + o.distinctOn = buildUnnamed5056(); o.endCursor = "foo"; o.filter = buildFilter(); - o.kind = buildUnnamed4728(); + o.kind = buildUnnamed5057(); o.limit = 42; o.offset = 42; - o.order = buildUnnamed4729(); - o.projection = buildUnnamed4730(); + o.order = buildUnnamed5058(); + o.projection = buildUnnamed5059(); o.startCursor = "foo"; } buildCounterQuery--; @@ -1563,27 +1563,27 @@ checkQuery(api.Query o) { buildCounterQuery++; if (buildCounterQuery < 3) { - checkUnnamed4727(o.distinctOn); + checkUnnamed5056(o.distinctOn); unittest.expect(o.endCursor, unittest.equals('foo')); checkFilter(o.filter); - checkUnnamed4728(o.kind); + checkUnnamed5057(o.kind); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed4729(o.order); - checkUnnamed4730(o.projection); + checkUnnamed5058(o.order); + checkUnnamed5059(o.projection); unittest.expect(o.startCursor, unittest.equals('foo')); } buildCounterQuery--; } -buildUnnamed4731() { +buildUnnamed5060() { var o = new core.List<api.EntityResult>(); o.add(buildEntityResult()); o.add(buildEntityResult()); return o; } -checkUnnamed4731(core.List<api.EntityResult> o) { +checkUnnamed5060(core.List<api.EntityResult> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityResult(o[0]); checkEntityResult(o[1]); @@ -1596,7 +1596,7 @@ if (buildCounterQueryResultBatch < 3) { o.endCursor = "foo"; o.entityResultType = "foo"; - o.entityResults = buildUnnamed4731(); + o.entityResults = buildUnnamed5060(); o.moreResults = "foo"; o.skippedCursor = "foo"; o.skippedResults = 42; @@ -1611,7 +1611,7 @@ if (buildCounterQueryResultBatch < 3) { unittest.expect(o.endCursor, unittest.equals('foo')); unittest.expect(o.entityResultType, unittest.equals('foo')); - checkUnnamed4731(o.entityResults); + checkUnnamed5060(o.entityResults); unittest.expect(o.moreResults, unittest.equals('foo')); unittest.expect(o.skippedCursor, unittest.equals('foo')); unittest.expect(o.skippedResults, unittest.equals(42)); @@ -1675,14 +1675,14 @@ buildCounterReadWrite--; } -buildUnnamed4732() { +buildUnnamed5061() { var o = new core.List<api.Key>(); o.add(buildKey()); o.add(buildKey()); return o; } -checkUnnamed4732(core.List<api.Key> o) { +checkUnnamed5061(core.List<api.Key> o) { unittest.expect(o, unittest.hasLength(2)); checkKey(o[0]); checkKey(o[1]); @@ -1694,7 +1694,7 @@ buildCounterReserveIdsRequest++; if (buildCounterReserveIdsRequest < 3) { o.databaseId = "foo"; - o.keys = buildUnnamed4732(); + o.keys = buildUnnamed5061(); } buildCounterReserveIdsRequest--; return o; @@ -1704,7 +1704,7 @@ buildCounterReserveIdsRequest++; if (buildCounterReserveIdsRequest < 3) { unittest.expect(o.databaseId, unittest.equals('foo')); - checkUnnamed4732(o.keys); + checkUnnamed5061(o.keys); } buildCounterReserveIdsRequest--; } @@ -1804,7 +1804,7 @@ buildCounterRunQueryResponse--; } -buildUnnamed4733() { +buildUnnamed5062() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1819,7 +1819,7 @@ return o; } -checkUnnamed4733(core.Map<core.String, core.Object> o) { +checkUnnamed5062(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)); @@ -1833,17 +1833,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4734() { +buildUnnamed5063() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4733()); - o.add(buildUnnamed4733()); + o.add(buildUnnamed5062()); + o.add(buildUnnamed5062()); return o; } -checkUnnamed4734(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed5063(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4733(o[0]); - checkUnnamed4733(o[1]); + checkUnnamed5062(o[0]); + checkUnnamed5062(o[1]); } core.int buildCounterStatus = 0; @@ -1852,7 +1852,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4734(); + o.details = buildUnnamed5063(); o.message = "foo"; } buildCounterStatus--; @@ -1863,7 +1863,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4734(o.details); + checkUnnamed5063(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -3212,8 +3212,8 @@ api.ProjectsIndexesResourceApi res = new api.DatastoreApi(mock).projects.indexes; var arg_projectId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3255,10 +3255,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3271,8 +3271,8 @@ }), true); res .list(arg_projectId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3443,9 +3443,9 @@ api.ProjectsOperationsResourceApi res = new api.DatastoreApi(mock).projects.operations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3478,11 +3478,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3494,9 +3494,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/deploymentmanager/v2_test.dart b/generated/googleapis/test/deploymentmanager/v2_test.dart index 259b2bb..ee578ea 100644 --- a/generated/googleapis/test/deploymentmanager/v2_test.dart +++ b/generated/googleapis/test/deploymentmanager/v2_test.dart
@@ -50,19 +50,55 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed221() { +buildUnnamed220() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed221(core.List<api.AuditLogConfig> o) { +checkUnnamed220(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); } +buildUnnamed221() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed221(core.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.auditLogConfigs = buildUnnamed220(); + o.exemptedMembers = buildUnnamed221(); + o.service = "foo"; + } + buildCounterAuditConfig--; + return o; +} + +checkAuditConfig(api.AuditConfig o) { + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + checkUnnamed220(o.auditLogConfigs); + checkUnnamed221(o.exemptedMembers); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterAuditConfig--; +} + buildUnnamed222() { var o = new core.List<core.String>(); o.add("foo"); @@ -76,48 +112,13 @@ unittest.expect(o[1], unittest.equals('foo')); } -core.int buildCounterAuditConfig = 0; -buildAuditConfig() { - var o = new api.AuditConfig(); - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed221(); - o.exemptedMembers = buildUnnamed222(); - o.service = "foo"; - } - buildCounterAuditConfig--; - return o; -} - -checkAuditConfig(api.AuditConfig o) { - buildCounterAuditConfig++; - if (buildCounterAuditConfig < 3) { - checkUnnamed221(o.auditLogConfigs); - checkUnnamed222(o.exemptedMembers); - unittest.expect(o.service, unittest.equals('foo')); - } - buildCounterAuditConfig--; -} - -buildUnnamed223() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed223(core.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 buildCounterAuditLogConfig = 0; buildAuditLogConfig() { var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed223(); + o.exemptedMembers = buildUnnamed222(); + o.ignoreChildExemptions = true; o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -127,7 +128,8 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed223(o.exemptedMembers); + checkUnnamed222(o.exemptedMembers); + unittest.expect(o.ignoreChildExemptions, unittest.isTrue); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -152,14 +154,14 @@ buildCounterAuthorizationLoggingOptions--; } -buildUnnamed224() { +buildUnnamed223() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed224(core.List<core.String> o) { +checkUnnamed223(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -171,7 +173,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed224(); + o.members = buildUnnamed223(); o.role = "foo"; } buildCounterBinding--; @@ -182,20 +184,20 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed224(o.members); + checkUnnamed223(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed225() { +buildUnnamed224() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed225(core.List<core.String> o) { +checkUnnamed224(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -210,8 +212,7 @@ o.op = "foo"; o.svc = "foo"; o.sys = "foo"; - o.value = "foo"; - o.values = buildUnnamed225(); + o.values = buildUnnamed224(); } buildCounterCondition--; return o; @@ -224,8 +225,7 @@ 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')); - checkUnnamed225(o.values); + checkUnnamed224(o.values); } buildCounterCondition--; } @@ -249,14 +249,14 @@ buildCounterConfigFile--; } -buildUnnamed226() { +buildUnnamed225() { var o = new core.List<api.DeploymentLabelEntry>(); o.add(buildDeploymentLabelEntry()); o.add(buildDeploymentLabelEntry()); return o; } -checkUnnamed226(core.List<api.DeploymentLabelEntry> o) { +checkUnnamed225(core.List<api.DeploymentLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentLabelEntry(o[0]); checkDeploymentLabelEntry(o[1]); @@ -271,7 +271,7 @@ o.fingerprint = "foo"; o.id = "foo"; o.insertTime = "foo"; - o.labels = buildUnnamed226(); + o.labels = buildUnnamed225(); o.manifest = "foo"; o.name = "foo"; o.operation = buildOperation(); @@ -291,7 +291,7 @@ unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.insertTime, unittest.equals('foo')); - checkUnnamed226(o.labels); + checkUnnamed225(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkOperation(o.operation); @@ -324,14 +324,14 @@ buildCounterDeploymentLabelEntry--; } -buildUnnamed227() { +buildUnnamed226() { var o = new core.List<api.DeploymentUpdateLabelEntry>(); o.add(buildDeploymentUpdateLabelEntry()); o.add(buildDeploymentUpdateLabelEntry()); return o; } -checkUnnamed227(core.List<api.DeploymentUpdateLabelEntry> o) { +checkUnnamed226(core.List<api.DeploymentUpdateLabelEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkDeploymentUpdateLabelEntry(o[0]); checkDeploymentUpdateLabelEntry(o[1]); @@ -343,7 +343,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { o.description = "foo"; - o.labels = buildUnnamed227(); + o.labels = buildUnnamed226(); o.manifest = "foo"; } buildCounterDeploymentUpdate--; @@ -354,7 +354,7 @@ buildCounterDeploymentUpdate++; if (buildCounterDeploymentUpdate < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed227(o.labels); + checkUnnamed226(o.labels); unittest.expect(o.manifest, unittest.equals('foo')); } buildCounterDeploymentUpdate--; @@ -400,14 +400,14 @@ buildCounterDeploymentsCancelPreviewRequest--; } -buildUnnamed228() { +buildUnnamed227() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed228(core.List<api.Deployment> o) { +checkUnnamed227(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -418,7 +418,7 @@ var o = new api.DeploymentsListResponse(); buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - o.deployments = buildUnnamed228(); + o.deployments = buildUnnamed227(); o.nextPageToken = "foo"; } buildCounterDeploymentsListResponse--; @@ -428,7 +428,7 @@ checkDeploymentsListResponse(api.DeploymentsListResponse o) { buildCounterDeploymentsListResponse++; if (buildCounterDeploymentsListResponse < 3) { - checkUnnamed228(o.deployments); + checkUnnamed227(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDeploymentsListResponse--; @@ -478,14 +478,14 @@ buildCounterExpr--; } -buildUnnamed229() { +buildUnnamed228() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed229(core.List<api.Binding> o) { +checkUnnamed228(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -496,7 +496,7 @@ var o = new api.GlobalSetPolicyRequest(); buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - o.bindings = buildUnnamed229(); + o.bindings = buildUnnamed228(); o.etag = "foo"; o.policy = buildPolicy(); } @@ -507,7 +507,7 @@ checkGlobalSetPolicyRequest(api.GlobalSetPolicyRequest o) { buildCounterGlobalSetPolicyRequest++; if (buildCounterGlobalSetPolicyRequest < 3) { - checkUnnamed229(o.bindings); + checkUnnamed228(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); checkPolicy(o.policy); } @@ -579,11 +579,25 @@ buildCounterLogConfigCloudAuditOptions--; } +buildUnnamed229() { + var o = new core.List<api.LogConfigCounterOptionsCustomField>(); + o.add(buildLogConfigCounterOptionsCustomField()); + o.add(buildLogConfigCounterOptionsCustomField()); + return o; +} + +checkUnnamed229(core.List<api.LogConfigCounterOptionsCustomField> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogConfigCounterOptionsCustomField(o[0]); + checkLogConfigCounterOptionsCustomField(o[1]); +} + core.int buildCounterLogConfigCounterOptions = 0; buildLogConfigCounterOptions() { var o = new api.LogConfigCounterOptions(); buildCounterLogConfigCounterOptions++; if (buildCounterLogConfigCounterOptions < 3) { + o.customFields = buildUnnamed229(); o.field = "foo"; o.metric = "foo"; } @@ -594,12 +608,35 @@ checkLogConfigCounterOptions(api.LogConfigCounterOptions o) { buildCounterLogConfigCounterOptions++; if (buildCounterLogConfigCounterOptions < 3) { + checkUnnamed229(o.customFields); unittest.expect(o.field, unittest.equals('foo')); unittest.expect(o.metric, unittest.equals('foo')); } buildCounterLogConfigCounterOptions--; } +core.int buildCounterLogConfigCounterOptionsCustomField = 0; +buildLogConfigCounterOptionsCustomField() { + var o = new api.LogConfigCounterOptionsCustomField(); + buildCounterLogConfigCounterOptionsCustomField++; + if (buildCounterLogConfigCounterOptionsCustomField < 3) { + o.name = "foo"; + o.value = "foo"; + } + buildCounterLogConfigCounterOptionsCustomField--; + return o; +} + +checkLogConfigCounterOptionsCustomField( + api.LogConfigCounterOptionsCustomField o) { + buildCounterLogConfigCounterOptionsCustomField++; + if (buildCounterLogConfigCounterOptionsCustomField < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterLogConfigCounterOptionsCustomField--; +} + core.int buildCounterLogConfigDataAccessOptions = 0; buildLogConfigDataAccessOptions() { var o = new api.LogConfigDataAccessOptions(); @@ -1719,6 +1756,14 @@ }); }); + unittest.group("obj-schema-LogConfigCounterOptionsCustomField", () { + unittest.test("to-json--from-json", () { + var o = buildLogConfigCounterOptionsCustomField(); + var od = new api.LogConfigCounterOptionsCustomField.fromJson(o.toJson()); + checkLogConfigCounterOptionsCustomField(od); + }); + }); + unittest.group("obj-schema-LogConfigDataAccessOptions", () { unittest.test("to-json--from-json", () { var o = buildLogConfigDataAccessOptions(); @@ -2139,8 +2184,8 @@ new api.DeploymentmanagerApi(mock).deployments; var arg_request = buildDeployment(); var arg_project = "foo"; - var arg_createPolicy = "foo"; var arg_preview = true; + var arg_createPolicy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Deployment.fromJson(json); @@ -2173,9 +2218,9 @@ } } unittest.expect( - queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); - unittest.expect( queryMap["preview"].first, unittest.equals("$arg_preview")); + unittest.expect( + queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2186,8 +2231,8 @@ }), true); res .insert(arg_request, arg_project, - createPolicy: arg_createPolicy, preview: arg_preview, + createPolicy: arg_createPolicy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -2200,9 +2245,9 @@ new api.DeploymentmanagerApi(mock).deployments; var arg_project = "foo"; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_maxResults = 42; var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2232,12 +2277,12 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2249,9 +2294,9 @@ res .list(arg_project, filter: arg_filter, + pageToken: arg_pageToken, maxResults: arg_maxResults, orderBy: arg_orderBy, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDeploymentsListResponse(response); @@ -2265,8 +2310,8 @@ var arg_request = buildDeployment(); var arg_project = "foo"; var arg_deployment = "foo"; - var arg_createPolicy = "foo"; var arg_deletePolicy = "foo"; + var arg_createPolicy = "foo"; var arg_preview = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2300,10 +2345,10 @@ } } unittest.expect( - queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); - unittest.expect( queryMap["deletePolicy"].first, unittest.equals(arg_deletePolicy)); unittest.expect( + queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); + unittest.expect( queryMap["preview"].first, unittest.equals("$arg_preview")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2315,8 +2360,8 @@ }), true); res .patch(arg_request, arg_project, arg_deployment, - createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, + createPolicy: arg_createPolicy, preview: arg_preview, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2492,8 +2537,8 @@ var arg_request = buildDeployment(); var arg_project = "foo"; var arg_deployment = "foo"; - var arg_createPolicy = "foo"; var arg_deletePolicy = "foo"; + var arg_createPolicy = "foo"; var arg_preview = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2527,10 +2572,10 @@ } } unittest.expect( - queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); - unittest.expect( queryMap["deletePolicy"].first, unittest.equals(arg_deletePolicy)); unittest.expect( + queryMap["createPolicy"].first, unittest.equals(arg_createPolicy)); + unittest.expect( queryMap["preview"].first, unittest.equals("$arg_preview")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2542,8 +2587,8 @@ }), true); res .update(arg_request, arg_project, arg_deployment, - createPolicy: arg_createPolicy, deletePolicy: arg_deletePolicy, + createPolicy: arg_createPolicy, preview: arg_preview, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2609,10 +2654,10 @@ new api.DeploymentmanagerApi(mock).manifests; var arg_project = "foo"; var arg_deployment = "foo"; - var arg_filter = "foo"; var arg_maxResults = 42; - var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2641,13 +2686,13 @@ 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)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2658,10 +2703,10 @@ }), true); res .list(arg_project, arg_deployment, - filter: arg_filter, maxResults: arg_maxResults, - orderBy: arg_orderBy, pageToken: arg_pageToken, + filter: arg_filter, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkManifestsListResponse(response); @@ -2724,10 +2769,10 @@ api.OperationsResourceApi res = new api.DeploymentmanagerApi(mock).operations; var arg_project = "foo"; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2756,13 +2801,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2773,10 +2818,10 @@ }), true); res .list(arg_project, + pageToken: arg_pageToken, + orderBy: arg_orderBy, filter: arg_filter, maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperationsListResponse(response); @@ -2841,10 +2886,10 @@ new api.DeploymentmanagerApi(mock).resources; var arg_project = "foo"; var arg_deployment = "foo"; - var arg_filter = "foo"; - var arg_maxResults = 42; - var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2873,13 +2918,13 @@ 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)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2890,10 +2935,10 @@ }), true); res .list(arg_project, arg_deployment, - filter: arg_filter, - maxResults: arg_maxResults, - orderBy: arg_orderBy, pageToken: arg_pageToken, + filter: arg_filter, + orderBy: arg_orderBy, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkResourcesListResponse(response); @@ -2906,10 +2951,10 @@ var mock = new HttpServerMock(); api.TypesResourceApi res = new api.DeploymentmanagerApi(mock).types; var arg_project = "foo"; - var arg_filter = "foo"; - var arg_maxResults = 42; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2938,13 +2983,13 @@ 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)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2955,10 +3000,10 @@ }), true); res .list(arg_project, - filter: arg_filter, - maxResults: arg_maxResults, orderBy: arg_orderBy, pageToken: arg_pageToken, + maxResults: arg_maxResults, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTypesListResponse(response);
diff --git a/generated/googleapis/test/dfareporting/v3_4_test.dart b/generated/googleapis/test/dfareporting/v3_4_test.dart index be0f578..bd9d3ba 100644 --- a/generated/googleapis/test/dfareporting/v3_4_test.dart +++ b/generated/googleapis/test/dfareporting/v3_4_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed5043() { +buildUnnamed5424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5043(core.List<core.String> o) { +checkUnnamed5424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5044() { +buildUnnamed5425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5044(core.List<core.String> o) { +checkUnnamed5425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,12 +81,12 @@ var o = new api.Account(); buildCounterAccount++; if (buildCounterAccount < 3) { - o.accountPermissionIds = buildUnnamed5043(); + o.accountPermissionIds = buildUnnamed5424(); o.accountProfile = "foo"; o.active = true; o.activeAdsLimitTier = "foo"; o.activeViewOptOut = true; - o.availablePermissionIds = buildUnnamed5044(); + o.availablePermissionIds = buildUnnamed5425(); o.countryId = "foo"; o.currencyId = "foo"; o.defaultCreativeSizeId = "foo"; @@ -108,12 +108,12 @@ checkAccount(api.Account o) { buildCounterAccount++; if (buildCounterAccount < 3) { - checkUnnamed5043(o.accountPermissionIds); + checkUnnamed5424(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); - checkUnnamed5044(o.availablePermissionIds); + checkUnnamed5425(o.availablePermissionIds); unittest.expect(o.countryId, unittest.equals('foo')); unittest.expect(o.currencyId, unittest.equals('foo')); unittest.expect(o.defaultCreativeSizeId, unittest.equals('foo')); @@ -158,14 +158,14 @@ buildCounterAccountActiveAdSummary--; } -buildUnnamed5045() { +buildUnnamed5426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5045(core.List<core.String> o) { +checkUnnamed5426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -176,7 +176,7 @@ var o = new api.AccountPermission(); buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - o.accountProfiles = buildUnnamed5045(); + o.accountProfiles = buildUnnamed5426(); o.id = "foo"; o.kind = "foo"; o.level = "foo"; @@ -190,7 +190,7 @@ checkAccountPermission(api.AccountPermission o) { buildCounterAccountPermission++; if (buildCounterAccountPermission < 3) { - checkUnnamed5045(o.accountProfiles); + checkUnnamed5426(o.accountProfiles); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.level, unittest.equals('foo')); @@ -223,14 +223,14 @@ buildCounterAccountPermissionGroup--; } -buildUnnamed5046() { +buildUnnamed5427() { var o = new core.List<api.AccountPermissionGroup>(); o.add(buildAccountPermissionGroup()); o.add(buildAccountPermissionGroup()); return o; } -checkUnnamed5046(core.List<api.AccountPermissionGroup> o) { +checkUnnamed5427(core.List<api.AccountPermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAccountPermissionGroup(o[0]); checkAccountPermissionGroup(o[1]); @@ -241,7 +241,7 @@ var o = new api.AccountPermissionGroupsListResponse(); buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - o.accountPermissionGroups = buildUnnamed5046(); + o.accountPermissionGroups = buildUnnamed5427(); o.kind = "foo"; } buildCounterAccountPermissionGroupsListResponse--; @@ -252,20 +252,20 @@ api.AccountPermissionGroupsListResponse o) { buildCounterAccountPermissionGroupsListResponse++; if (buildCounterAccountPermissionGroupsListResponse < 3) { - checkUnnamed5046(o.accountPermissionGroups); + checkUnnamed5427(o.accountPermissionGroups); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionGroupsListResponse--; } -buildUnnamed5047() { +buildUnnamed5428() { var o = new core.List<api.AccountPermission>(); o.add(buildAccountPermission()); o.add(buildAccountPermission()); return o; } -checkUnnamed5047(core.List<api.AccountPermission> o) { +checkUnnamed5428(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 = buildUnnamed5047(); + o.accountPermissions = buildUnnamed5428(); o.kind = "foo"; } buildCounterAccountPermissionsListResponse--; @@ -286,7 +286,7 @@ checkAccountPermissionsListResponse(api.AccountPermissionsListResponse o) { buildCounterAccountPermissionsListResponse++; if (buildCounterAccountPermissionsListResponse < 3) { - checkUnnamed5047(o.accountPermissions); + checkUnnamed5428(o.accountPermissions); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAccountPermissionsListResponse--; @@ -341,14 +341,14 @@ buildCounterAccountUserProfile--; } -buildUnnamed5048() { +buildUnnamed5429() { var o = new core.List<api.AccountUserProfile>(); o.add(buildAccountUserProfile()); o.add(buildAccountUserProfile()); return o; } -checkUnnamed5048(core.List<api.AccountUserProfile> o) { +checkUnnamed5429(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 = buildUnnamed5048(); + o.accountUserProfiles = buildUnnamed5429(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -370,21 +370,21 @@ checkAccountUserProfilesListResponse(api.AccountUserProfilesListResponse o) { buildCounterAccountUserProfilesListResponse++; if (buildCounterAccountUserProfilesListResponse < 3) { - checkUnnamed5048(o.accountUserProfiles); + checkUnnamed5429(o.accountUserProfiles); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountUserProfilesListResponse--; } -buildUnnamed5049() { +buildUnnamed5430() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed5049(core.List<api.Account> o) { +checkUnnamed5430(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 = buildUnnamed5049(); + o.accounts = buildUnnamed5430(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -406,34 +406,34 @@ checkAccountsListResponse(api.AccountsListResponse o) { buildCounterAccountsListResponse++; if (buildCounterAccountsListResponse < 3) { - checkUnnamed5049(o.accounts); + checkUnnamed5430(o.accounts); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAccountsListResponse--; } -buildUnnamed5050() { +buildUnnamed5431() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5050(core.List<api.DimensionValue> o) { +checkUnnamed5431(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5051() { +buildUnnamed5432() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5051(core.List<core.String> o) { +checkUnnamed5432(core.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 = buildUnnamed5050(); + o.filters = buildUnnamed5431(); o.kind = "foo"; - o.metricNames = buildUnnamed5051(); + o.metricNames = buildUnnamed5432(); } buildCounterActivities--; return o; @@ -455,47 +455,47 @@ checkActivities(api.Activities o) { buildCounterActivities++; if (buildCounterActivities < 3) { - checkUnnamed5050(o.filters); + checkUnnamed5431(o.filters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5051(o.metricNames); + checkUnnamed5432(o.metricNames); } buildCounterActivities--; } -buildUnnamed5052() { +buildUnnamed5433() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed5052(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed5433(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed5053() { +buildUnnamed5434() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed5053(core.List<api.EventTagOverride> o) { +checkUnnamed5434(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed5054() { +buildUnnamed5435() { var o = new core.List<api.PlacementAssignment>(); o.add(buildPlacementAssignment()); o.add(buildPlacementAssignment()); return o; } -checkUnnamed5054(core.List<api.PlacementAssignment> o) { +checkUnnamed5435(core.List<api.PlacementAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementAssignment(o[0]); checkPlacementAssignment(o[1]); @@ -519,7 +519,7 @@ o.comments = "foo"; o.compatibility = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupAssignments = buildUnnamed5052(); + o.creativeGroupAssignments = buildUnnamed5433(); o.creativeRotation = buildCreativeRotation(); o.dayPartTargeting = buildDayPartTargeting(); o.defaultClickThroughEventTagProperties = @@ -527,7 +527,7 @@ o.deliverySchedule = buildDeliverySchedule(); o.dynamicClickTracker = true; o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.eventTagOverrides = buildUnnamed5053(); + o.eventTagOverrides = buildUnnamed5434(); o.geoTargeting = buildGeoTargeting(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -536,7 +536,7 @@ o.languageTargeting = buildLanguageTargeting(); o.lastModifiedInfo = buildLastModifiedInfo(); o.name = "foo"; - o.placementAssignments = buildUnnamed5054(); + o.placementAssignments = buildUnnamed5435(); o.remarketingListExpression = buildListTargetingExpression(); o.size = buildSize(); o.sslCompliant = true; @@ -567,7 +567,7 @@ unittest.expect(o.comments, unittest.equals('foo')); unittest.expect(o.compatibility, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed5052(o.creativeGroupAssignments); + checkUnnamed5433(o.creativeGroupAssignments); checkCreativeRotation(o.creativeRotation); checkDayPartTargeting(o.dayPartTargeting); checkDefaultClickThroughEventTagProperties( @@ -576,7 +576,7 @@ unittest.expect(o.dynamicClickTracker, unittest.isTrue); unittest.expect( o.endTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed5053(o.eventTagOverrides); + checkUnnamed5434(o.eventTagOverrides); checkGeoTargeting(o.geoTargeting); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -585,7 +585,7 @@ checkLanguageTargeting(o.languageTargeting); checkLastModifiedInfo(o.lastModifiedInfo); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5054(o.placementAssignments); + checkUnnamed5435(o.placementAssignments); checkListTargetingExpression(o.remarketingListExpression); checkSize(o.size); unittest.expect(o.sslCompliant, unittest.isTrue); @@ -658,14 +658,14 @@ buildCounterAdSlot--; } -buildUnnamed5055() { +buildUnnamed5436() { var o = new core.List<api.Ad>(); o.add(buildAd()); o.add(buildAd()); return o; } -checkUnnamed5055(core.List<api.Ad> o) { +checkUnnamed5436(core.List<api.Ad> o) { unittest.expect(o, unittest.hasLength(2)); checkAd(o[0]); checkAd(o[1]); @@ -676,7 +676,7 @@ var o = new api.AdsListResponse(); buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - o.ads = buildUnnamed5055(); + o.ads = buildUnnamed5436(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -687,7 +687,7 @@ checkAdsListResponse(api.AdsListResponse o) { buildCounterAdsListResponse++; if (buildCounterAdsListResponse < 3) { - checkUnnamed5055(o.ads); + checkUnnamed5436(o.ads); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -767,14 +767,14 @@ buildCounterAdvertiserGroup--; } -buildUnnamed5056() { +buildUnnamed5437() { var o = new core.List<api.AdvertiserGroup>(); o.add(buildAdvertiserGroup()); o.add(buildAdvertiserGroup()); return o; } -checkUnnamed5056(core.List<api.AdvertiserGroup> o) { +checkUnnamed5437(core.List<api.AdvertiserGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiserGroup(o[0]); checkAdvertiserGroup(o[1]); @@ -785,7 +785,7 @@ var o = new api.AdvertiserGroupsListResponse(); buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - o.advertiserGroups = buildUnnamed5056(); + o.advertiserGroups = buildUnnamed5437(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -796,21 +796,21 @@ checkAdvertiserGroupsListResponse(api.AdvertiserGroupsListResponse o) { buildCounterAdvertiserGroupsListResponse++; if (buildCounterAdvertiserGroupsListResponse < 3) { - checkUnnamed5056(o.advertiserGroups); + checkUnnamed5437(o.advertiserGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserGroupsListResponse--; } -buildUnnamed5057() { +buildUnnamed5438() { var o = new core.List<api.LandingPage>(); o.add(buildLandingPage()); o.add(buildLandingPage()); return o; } -checkUnnamed5057(core.List<api.LandingPage> o) { +checkUnnamed5438(core.List<api.LandingPage> o) { unittest.expect(o, unittest.hasLength(2)); checkLandingPage(o[0]); checkLandingPage(o[1]); @@ -822,7 +822,7 @@ buildCounterAdvertiserLandingPagesListResponse++; if (buildCounterAdvertiserLandingPagesListResponse < 3) { o.kind = "foo"; - o.landingPages = buildUnnamed5057(); + o.landingPages = buildUnnamed5438(); o.nextPageToken = "foo"; } buildCounterAdvertiserLandingPagesListResponse--; @@ -834,20 +834,20 @@ buildCounterAdvertiserLandingPagesListResponse++; if (buildCounterAdvertiserLandingPagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5057(o.landingPages); + checkUnnamed5438(o.landingPages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterAdvertiserLandingPagesListResponse--; } -buildUnnamed5058() { +buildUnnamed5439() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed5058(core.List<api.Advertiser> o) { +checkUnnamed5439(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -858,7 +858,7 @@ var o = new api.AdvertisersListResponse(); buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - o.advertisers = buildUnnamed5058(); + o.advertisers = buildUnnamed5439(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -869,7 +869,7 @@ checkAdvertisersListResponse(api.AdvertisersListResponse o) { buildCounterAdvertisersListResponse++; if (buildCounterAdvertisersListResponse < 3) { - checkUnnamed5058(o.advertisers); + checkUnnamed5439(o.advertisers); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -899,14 +899,14 @@ buildCounterAudienceSegment--; } -buildUnnamed5059() { +buildUnnamed5440() { var o = new core.List<api.AudienceSegment>(); o.add(buildAudienceSegment()); o.add(buildAudienceSegment()); return o; } -checkUnnamed5059(core.List<api.AudienceSegment> o) { +checkUnnamed5440(core.List<api.AudienceSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegment(o[0]); checkAudienceSegment(o[1]); @@ -917,7 +917,7 @@ var o = new api.AudienceSegmentGroup(); buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - o.audienceSegments = buildUnnamed5059(); + o.audienceSegments = buildUnnamed5440(); o.id = "foo"; o.name = "foo"; } @@ -928,7 +928,7 @@ checkAudienceSegmentGroup(api.AudienceSegmentGroup o) { buildCounterAudienceSegmentGroup++; if (buildCounterAudienceSegmentGroup < 3) { - checkUnnamed5059(o.audienceSegments); + checkUnnamed5440(o.audienceSegments); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } @@ -964,14 +964,14 @@ buildCounterBrowser--; } -buildUnnamed5060() { +buildUnnamed5441() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed5060(core.List<api.Browser> o) { +checkUnnamed5441(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); @@ -982,7 +982,7 @@ var o = new api.BrowsersListResponse(); buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - o.browsers = buildUnnamed5060(); + o.browsers = buildUnnamed5441(); o.kind = "foo"; } buildCounterBrowsersListResponse--; @@ -992,72 +992,72 @@ checkBrowsersListResponse(api.BrowsersListResponse o) { buildCounterBrowsersListResponse++; if (buildCounterBrowsersListResponse < 3) { - checkUnnamed5060(o.browsers); + checkUnnamed5441(o.browsers); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBrowsersListResponse--; } -buildUnnamed5061() { +buildUnnamed5442() { var o = new core.List<api.CreativeOptimizationConfiguration>(); o.add(buildCreativeOptimizationConfiguration()); o.add(buildCreativeOptimizationConfiguration()); return o; } -checkUnnamed5061(core.List<api.CreativeOptimizationConfiguration> o) { +checkUnnamed5442(core.List<api.CreativeOptimizationConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeOptimizationConfiguration(o[0]); checkCreativeOptimizationConfiguration(o[1]); } -buildUnnamed5062() { +buildUnnamed5443() { var o = new core.List<api.AudienceSegmentGroup>(); o.add(buildAudienceSegmentGroup()); o.add(buildAudienceSegmentGroup()); return o; } -checkUnnamed5062(core.List<api.AudienceSegmentGroup> o) { +checkUnnamed5443(core.List<api.AudienceSegmentGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkAudienceSegmentGroup(o[0]); checkAudienceSegmentGroup(o[1]); } -buildUnnamed5063() { +buildUnnamed5444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5063(core.List<core.String> o) { +checkUnnamed5444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5064() { +buildUnnamed5445() { var o = new core.List<api.EventTagOverride>(); o.add(buildEventTagOverride()); o.add(buildEventTagOverride()); return o; } -checkUnnamed5064(core.List<api.EventTagOverride> o) { +checkUnnamed5445(core.List<api.EventTagOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTagOverride(o[0]); checkEventTagOverride(o[1]); } -buildUnnamed5065() { +buildUnnamed5446() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5065(core.List<core.String> o) { +checkUnnamed5446(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1070,24 +1070,24 @@ if (buildCounterCampaign < 3) { o.accountId = "foo"; o.adBlockingConfiguration = buildAdBlockingConfiguration(); - o.additionalCreativeOptimizationConfigurations = buildUnnamed5061(); + o.additionalCreativeOptimizationConfigurations = buildUnnamed5442(); o.advertiserGroupId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; - o.audienceSegmentGroups = buildUnnamed5062(); + o.audienceSegmentGroups = buildUnnamed5443(); o.billingInvoiceCode = "foo"; o.clickThroughUrlSuffixProperties = buildClickThroughUrlSuffixProperties(); o.comment = "foo"; o.createInfo = buildLastModifiedInfo(); - o.creativeGroupIds = buildUnnamed5063(); + o.creativeGroupIds = buildUnnamed5444(); o.creativeOptimizationConfiguration = buildCreativeOptimizationConfiguration(); o.defaultClickThroughEventTagProperties = buildDefaultClickThroughEventTagProperties(); o.defaultLandingPageId = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.eventTagOverrides = buildUnnamed5064(); + o.eventTagOverrides = buildUnnamed5445(); o.externalId = "foo"; o.id = "foo"; o.idDimensionValue = buildDimensionValue(); @@ -1097,7 +1097,7 @@ o.nielsenOcrEnabled = true; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.subaccountId = "foo"; - o.traffickerEmails = buildUnnamed5065(); + o.traffickerEmails = buildUnnamed5446(); } buildCounterCampaign--; return o; @@ -1108,24 +1108,24 @@ if (buildCounterCampaign < 3) { unittest.expect(o.accountId, unittest.equals('foo')); checkAdBlockingConfiguration(o.adBlockingConfiguration); - checkUnnamed5061(o.additionalCreativeOptimizationConfigurations); + checkUnnamed5442(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); - checkUnnamed5062(o.audienceSegmentGroups); + checkUnnamed5443(o.audienceSegmentGroups); unittest.expect(o.billingInvoiceCode, unittest.equals('foo')); checkClickThroughUrlSuffixProperties(o.clickThroughUrlSuffixProperties); unittest.expect(o.comment, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); - checkUnnamed5063(o.creativeGroupIds); + checkUnnamed5444(o.creativeGroupIds); checkCreativeOptimizationConfiguration(o.creativeOptimizationConfiguration); checkDefaultClickThroughEventTagProperties( o.defaultClickThroughEventTagProperties); unittest.expect(o.defaultLandingPageId, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed5064(o.eventTagOverrides); + checkUnnamed5445(o.eventTagOverrides); unittest.expect(o.externalId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); @@ -1136,7 +1136,7 @@ unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed5065(o.traffickerEmails); + checkUnnamed5446(o.traffickerEmails); } buildCounterCampaign--; } @@ -1162,14 +1162,14 @@ buildCounterCampaignCreativeAssociation--; } -buildUnnamed5066() { +buildUnnamed5447() { var o = new core.List<api.CampaignCreativeAssociation>(); o.add(buildCampaignCreativeAssociation()); o.add(buildCampaignCreativeAssociation()); return o; } -checkUnnamed5066(core.List<api.CampaignCreativeAssociation> o) { +checkUnnamed5447(core.List<api.CampaignCreativeAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaignCreativeAssociation(o[0]); checkCampaignCreativeAssociation(o[1]); @@ -1180,7 +1180,7 @@ var o = new api.CampaignCreativeAssociationsListResponse(); buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - o.campaignCreativeAssociations = buildUnnamed5066(); + o.campaignCreativeAssociations = buildUnnamed5447(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1192,7 +1192,7 @@ api.CampaignCreativeAssociationsListResponse o) { buildCounterCampaignCreativeAssociationsListResponse++; if (buildCounterCampaignCreativeAssociationsListResponse < 3) { - checkUnnamed5066(o.campaignCreativeAssociations); + checkUnnamed5447(o.campaignCreativeAssociations); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1228,14 +1228,14 @@ buildCounterCampaignManagerIds--; } -buildUnnamed5067() { +buildUnnamed5448() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed5067(core.List<api.Campaign> o) { +checkUnnamed5448(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -1246,7 +1246,7 @@ var o = new api.CampaignsListResponse(); buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - o.campaigns = buildUnnamed5067(); + o.campaigns = buildUnnamed5448(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1257,7 +1257,7 @@ checkCampaignsListResponse(api.CampaignsListResponse o) { buildCounterCampaignsListResponse++; if (buildCounterCampaignsListResponse < 3) { - checkUnnamed5067(o.campaigns); + checkUnnamed5448(o.campaigns); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1310,14 +1310,14 @@ buildCounterChangeLog--; } -buildUnnamed5068() { +buildUnnamed5449() { var o = new core.List<api.ChangeLog>(); o.add(buildChangeLog()); o.add(buildChangeLog()); return o; } -checkUnnamed5068(core.List<api.ChangeLog> o) { +checkUnnamed5449(core.List<api.ChangeLog> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeLog(o[0]); checkChangeLog(o[1]); @@ -1328,7 +1328,7 @@ var o = new api.ChangeLogsListResponse(); buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - o.changeLogs = buildUnnamed5068(); + o.changeLogs = buildUnnamed5449(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1339,21 +1339,95 @@ checkChangeLogsListResponse(api.ChangeLogsListResponse o) { buildCounterChangeLogsListResponse++; if (buildCounterChangeLogsListResponse < 3) { - checkUnnamed5068(o.changeLogs); + checkUnnamed5449(o.changeLogs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterChangeLogsListResponse--; } -buildUnnamed5069() { +buildUnnamed5450() { + var o = new core.List<api.ChannelGroupingRule>(); + o.add(buildChannelGroupingRule()); + o.add(buildChannelGroupingRule()); + return o; +} + +checkUnnamed5450(core.List<api.ChannelGroupingRule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkChannelGroupingRule(o[0]); + checkChannelGroupingRule(o[1]); +} + +core.int buildCounterChannelGrouping = 0; +buildChannelGrouping() { + var o = new api.ChannelGrouping(); + buildCounterChannelGrouping++; + if (buildCounterChannelGrouping < 3) { + o.fallbackName = "foo"; + o.kind = "foo"; + o.name = "foo"; + o.rules = buildUnnamed5450(); + } + buildCounterChannelGrouping--; + return o; +} + +checkChannelGrouping(api.ChannelGrouping o) { + buildCounterChannelGrouping++; + if (buildCounterChannelGrouping < 3) { + unittest.expect(o.fallbackName, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed5450(o.rules); + } + buildCounterChannelGrouping--; +} + +buildUnnamed5451() { + var o = new core.List<api.DisjunctiveMatchStatement>(); + o.add(buildDisjunctiveMatchStatement()); + o.add(buildDisjunctiveMatchStatement()); + return o; +} + +checkUnnamed5451(core.List<api.DisjunctiveMatchStatement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDisjunctiveMatchStatement(o[0]); + checkDisjunctiveMatchStatement(o[1]); +} + +core.int buildCounterChannelGroupingRule = 0; +buildChannelGroupingRule() { + var o = new api.ChannelGroupingRule(); + buildCounterChannelGroupingRule++; + if (buildCounterChannelGroupingRule < 3) { + o.disjunctiveMatchStatements = buildUnnamed5451(); + o.kind = "foo"; + o.name = "foo"; + } + buildCounterChannelGroupingRule--; + return o; +} + +checkChannelGroupingRule(api.ChannelGroupingRule o) { + buildCounterChannelGroupingRule++; + if (buildCounterChannelGroupingRule < 3) { + checkUnnamed5451(o.disjunctiveMatchStatements); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterChannelGroupingRule--; +} + +buildUnnamed5452() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed5069(core.List<api.City> o) { +checkUnnamed5452(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); @@ -1364,7 +1438,7 @@ var o = new api.CitiesListResponse(); buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - o.cities = buildUnnamed5069(); + o.cities = buildUnnamed5452(); o.kind = "foo"; } buildCounterCitiesListResponse--; @@ -1374,7 +1448,7 @@ checkCitiesListResponse(api.CitiesListResponse o) { buildCounterCitiesListResponse++; if (buildCounterCitiesListResponse < 3) { - checkUnnamed5069(o.cities); + checkUnnamed5452(o.cities); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCitiesListResponse--; @@ -1505,14 +1579,14 @@ buildCounterCompanionClickThroughOverride--; } -buildUnnamed5070() { +buildUnnamed5453() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5070(core.List<api.Size> o) { +checkUnnamed5453(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -1524,7 +1598,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { o.companionsDisabled = true; - o.enabledSizes = buildUnnamed5070(); + o.enabledSizes = buildUnnamed5453(); o.imageOnly = true; o.kind = "foo"; } @@ -1536,7 +1610,7 @@ buildCounterCompanionSetting++; if (buildCounterCompanionSetting < 3) { unittest.expect(o.companionsDisabled, unittest.isTrue); - checkUnnamed5070(o.enabledSizes); + checkUnnamed5453(o.enabledSizes); unittest.expect(o.imageOnly, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); } @@ -1553,6 +1627,8 @@ o.floodlightReportCompatibleFields = buildFloodlightReportCompatibleFields(); o.kind = "foo"; + o.pathAttributionReportCompatibleFields = buildPathReportCompatibleFields(); + o.pathReportCompatibleFields = buildPathReportCompatibleFields(); o.pathToConversionReportCompatibleFields = buildPathToConversionReportCompatibleFields(); o.reachReportCompatibleFields = buildReachReportCompatibleFields(); @@ -1569,6 +1645,8 @@ o.crossDimensionReachReportCompatibleFields); checkFloodlightReportCompatibleFields(o.floodlightReportCompatibleFields); unittest.expect(o.kind, unittest.equals('foo')); + checkPathReportCompatibleFields(o.pathAttributionReportCompatibleFields); + checkPathReportCompatibleFields(o.pathReportCompatibleFields); checkPathToConversionReportCompatibleFields( o.pathToConversionReportCompatibleFields); checkReachReportCompatibleFields(o.reachReportCompatibleFields); @@ -1600,14 +1678,14 @@ buildCounterConnectionType--; } -buildUnnamed5071() { +buildUnnamed5454() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed5071(core.List<api.ConnectionType> o) { +checkUnnamed5454(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); @@ -1618,7 +1696,7 @@ var o = new api.ConnectionTypesListResponse(); buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - o.connectionTypes = buildUnnamed5071(); + o.connectionTypes = buildUnnamed5454(); o.kind = "foo"; } buildCounterConnectionTypesListResponse--; @@ -1628,20 +1706,20 @@ checkConnectionTypesListResponse(api.ConnectionTypesListResponse o) { buildCounterConnectionTypesListResponse++; if (buildCounterConnectionTypesListResponse < 3) { - checkUnnamed5071(o.connectionTypes); + checkUnnamed5454(o.connectionTypes); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConnectionTypesListResponse--; } -buildUnnamed5072() { +buildUnnamed5455() { var o = new core.List<api.ContentCategory>(); o.add(buildContentCategory()); o.add(buildContentCategory()); return o; } -checkUnnamed5072(core.List<api.ContentCategory> o) { +checkUnnamed5455(core.List<api.ContentCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkContentCategory(o[0]); checkContentCategory(o[1]); @@ -1652,7 +1730,7 @@ var o = new api.ContentCategoriesListResponse(); buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - o.contentCategories = buildUnnamed5072(); + o.contentCategories = buildUnnamed5455(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1663,7 +1741,7 @@ checkContentCategoriesListResponse(api.ContentCategoriesListResponse o) { buildCounterContentCategoriesListResponse++; if (buildCounterContentCategoriesListResponse < 3) { - checkUnnamed5072(o.contentCategories); + checkUnnamed5455(o.contentCategories); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1695,27 +1773,27 @@ buildCounterContentCategory--; } -buildUnnamed5073() { +buildUnnamed5456() { var o = new core.List<api.CustomFloodlightVariable>(); o.add(buildCustomFloodlightVariable()); o.add(buildCustomFloodlightVariable()); return o; } -checkUnnamed5073(core.List<api.CustomFloodlightVariable> o) { +checkUnnamed5456(core.List<api.CustomFloodlightVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomFloodlightVariable(o[0]); checkCustomFloodlightVariable(o[1]); } -buildUnnamed5074() { +buildUnnamed5457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5074(core.List<core.String> o) { +checkUnnamed5457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1727,9 +1805,10 @@ buildCounterConversion++; if (buildCounterConversion < 3) { o.childDirectedTreatment = true; - o.customVariables = buildUnnamed5073(); + o.customVariables = buildUnnamed5456(); + o.dclid = "foo"; o.encryptedUserId = "foo"; - o.encryptedUserIdCandidates = buildUnnamed5074(); + o.encryptedUserIdCandidates = buildUnnamed5457(); o.floodlightActivityId = "foo"; o.floodlightConfigurationId = "foo"; o.gclid = "foo"; @@ -1752,9 +1831,10 @@ buildCounterConversion++; if (buildCounterConversion < 3) { unittest.expect(o.childDirectedTreatment, unittest.isTrue); - checkUnnamed5073(o.customVariables); + checkUnnamed5456(o.customVariables); + unittest.expect(o.dclid, unittest.equals('foo')); unittest.expect(o.encryptedUserId, unittest.equals('foo')); - checkUnnamed5074(o.encryptedUserIdCandidates); + checkUnnamed5457(o.encryptedUserIdCandidates); unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); unittest.expect(o.gclid, unittest.equals('foo')); @@ -1795,14 +1875,14 @@ buildCounterConversionError--; } -buildUnnamed5075() { +buildUnnamed5458() { var o = new core.List<api.ConversionError>(); o.add(buildConversionError()); o.add(buildConversionError()); return o; } -checkUnnamed5075(core.List<api.ConversionError> o) { +checkUnnamed5458(core.List<api.ConversionError> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionError(o[0]); checkConversionError(o[1]); @@ -1814,7 +1894,7 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { o.conversion = buildConversion(); - o.errors = buildUnnamed5075(); + o.errors = buildUnnamed5458(); o.kind = "foo"; } buildCounterConversionStatus--; @@ -1825,20 +1905,20 @@ buildCounterConversionStatus++; if (buildCounterConversionStatus < 3) { checkConversion(o.conversion); - checkUnnamed5075(o.errors); + checkUnnamed5458(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionStatus--; } -buildUnnamed5076() { +buildUnnamed5459() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed5076(core.List<api.Conversion> o) { +checkUnnamed5459(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1849,7 +1929,7 @@ var o = new api.ConversionsBatchInsertRequest(); buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - o.conversions = buildUnnamed5076(); + o.conversions = buildUnnamed5459(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1860,21 +1940,21 @@ checkConversionsBatchInsertRequest(api.ConversionsBatchInsertRequest o) { buildCounterConversionsBatchInsertRequest++; if (buildCounterConversionsBatchInsertRequest < 3) { - checkUnnamed5076(o.conversions); + checkUnnamed5459(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchInsertRequest--; } -buildUnnamed5077() { +buildUnnamed5460() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed5077(core.List<api.ConversionStatus> o) { +checkUnnamed5460(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1887,7 +1967,7 @@ if (buildCounterConversionsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed5077(); + o.status = buildUnnamed5460(); } buildCounterConversionsBatchInsertResponse--; return o; @@ -1898,19 +1978,19 @@ if (buildCounterConversionsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5077(o.status); + checkUnnamed5460(o.status); } buildCounterConversionsBatchInsertResponse--; } -buildUnnamed5078() { +buildUnnamed5461() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed5078(core.List<api.Conversion> o) { +checkUnnamed5461(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -1921,7 +2001,7 @@ var o = new api.ConversionsBatchUpdateRequest(); buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - o.conversions = buildUnnamed5078(); + o.conversions = buildUnnamed5461(); o.encryptionInfo = buildEncryptionInfo(); o.kind = "foo"; } @@ -1932,21 +2012,21 @@ checkConversionsBatchUpdateRequest(api.ConversionsBatchUpdateRequest o) { buildCounterConversionsBatchUpdateRequest++; if (buildCounterConversionsBatchUpdateRequest < 3) { - checkUnnamed5078(o.conversions); + checkUnnamed5461(o.conversions); checkEncryptionInfo(o.encryptionInfo); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionsBatchUpdateRequest--; } -buildUnnamed5079() { +buildUnnamed5462() { var o = new core.List<api.ConversionStatus>(); o.add(buildConversionStatus()); o.add(buildConversionStatus()); return o; } -checkUnnamed5079(core.List<api.ConversionStatus> o) { +checkUnnamed5462(core.List<api.ConversionStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkConversionStatus(o[0]); checkConversionStatus(o[1]); @@ -1959,7 +2039,7 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed5079(); + o.status = buildUnnamed5462(); } buildCounterConversionsBatchUpdateResponse--; return o; @@ -1970,19 +2050,19 @@ if (buildCounterConversionsBatchUpdateResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5079(o.status); + checkUnnamed5462(o.status); } buildCounterConversionsBatchUpdateResponse--; } -buildUnnamed5080() { +buildUnnamed5463() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed5080(core.List<api.Country> o) { +checkUnnamed5463(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); @@ -1993,7 +2073,7 @@ var o = new api.CountriesListResponse(); buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - o.countries = buildUnnamed5080(); + o.countries = buildUnnamed5463(); o.kind = "foo"; } buildCounterCountriesListResponse--; @@ -2003,7 +2083,7 @@ checkCountriesListResponse(api.CountriesListResponse o) { buildCounterCountriesListResponse++; if (buildCounterCountriesListResponse < 3) { - checkUnnamed5080(o.countries); + checkUnnamed5463(o.countries); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCountriesListResponse--; @@ -2036,170 +2116,170 @@ buildCounterCountry--; } -buildUnnamed5081() { +buildUnnamed5464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5081(core.List<core.String> o) { +checkUnnamed5464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5082() { +buildUnnamed5465() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5082(core.List<api.Size> o) { +checkUnnamed5465(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); } -buildUnnamed5083() { +buildUnnamed5466() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5083(core.List<core.String> o) { +checkUnnamed5466(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5084() { +buildUnnamed5467() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed5084(core.List<api.ClickTag> o) { +checkUnnamed5467(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed5085() { +buildUnnamed5468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5085(core.List<core.String> o) { +checkUnnamed5468(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5086() { +buildUnnamed5469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5086(core.List<core.String> o) { +checkUnnamed5469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5087() { +buildUnnamed5470() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5087(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5470(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed5088() { +buildUnnamed5471() { var o = new core.List<api.CreativeAsset>(); o.add(buildCreativeAsset()); o.add(buildCreativeAsset()); return o; } -checkUnnamed5088(core.List<api.CreativeAsset> o) { +checkUnnamed5471(core.List<api.CreativeAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAsset(o[0]); checkCreativeAsset(o[1]); } -buildUnnamed5089() { +buildUnnamed5472() { var o = new core.List<api.CreativeFieldAssignment>(); o.add(buildCreativeFieldAssignment()); o.add(buildCreativeFieldAssignment()); return o; } -checkUnnamed5089(core.List<api.CreativeFieldAssignment> o) { +checkUnnamed5472(core.List<api.CreativeFieldAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldAssignment(o[0]); checkCreativeFieldAssignment(o[1]); } -buildUnnamed5090() { +buildUnnamed5473() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5090(core.List<core.String> o) { +checkUnnamed5473(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5091() { +buildUnnamed5474() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5091(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5474(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed5092() { +buildUnnamed5475() { var o = new core.List<api.ThirdPartyTrackingUrl>(); o.add(buildThirdPartyTrackingUrl()); o.add(buildThirdPartyTrackingUrl()); return o; } -checkUnnamed5092(core.List<api.ThirdPartyTrackingUrl> o) { +checkUnnamed5475(core.List<api.ThirdPartyTrackingUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyTrackingUrl(o[0]); checkThirdPartyTrackingUrl(o[1]); } -buildUnnamed5093() { +buildUnnamed5476() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5093(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5476(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); @@ -2213,8 +2293,8 @@ o.accountId = "foo"; o.active = true; o.adParameters = "foo"; - o.adTagKeys = buildUnnamed5081(); - o.additionalSizes = buildUnnamed5082(); + o.adTagKeys = buildUnnamed5464(); + o.additionalSizes = buildUnnamed5465(); o.advertiserId = "foo"; o.allowScriptAccess = true; o.archived = true; @@ -2224,21 +2304,21 @@ o.autoAdvanceImages = true; o.backgroundColor = "foo"; o.backupImageClickThroughUrl = buildCreativeClickThroughUrl(); - o.backupImageFeatures = buildUnnamed5083(); + o.backupImageFeatures = buildUnnamed5466(); o.backupImageReportingLabel = "foo"; o.backupImageTargetWindow = buildTargetWindow(); - o.clickTags = buildUnnamed5084(); + o.clickTags = buildUnnamed5467(); o.commercialId = "foo"; - o.companionCreatives = buildUnnamed5085(); - o.compatibility = buildUnnamed5086(); + o.companionCreatives = buildUnnamed5468(); + o.compatibility = buildUnnamed5469(); o.convertFlashToHtml5 = true; - o.counterCustomEvents = buildUnnamed5087(); + o.counterCustomEvents = buildUnnamed5470(); o.creativeAssetSelection = buildCreativeAssetSelection(); - o.creativeAssets = buildUnnamed5088(); - o.creativeFieldAssignments = buildUnnamed5089(); - o.customKeyValues = buildUnnamed5090(); + o.creativeAssets = buildUnnamed5471(); + o.creativeFieldAssignments = buildUnnamed5472(); + o.customKeyValues = buildUnnamed5473(); o.dynamicAssetSelection = true; - o.exitCustomEvents = buildUnnamed5091(); + o.exitCustomEvents = buildUnnamed5474(); o.fsCommand = buildFsCommand(); o.htmlCode = "foo"; o.htmlCodeLocked = true; @@ -2269,8 +2349,8 @@ o.subaccountId = "foo"; o.thirdPartyBackupImageImpressionsUrl = "foo"; o.thirdPartyRichMediaImpressionsUrl = "foo"; - o.thirdPartyUrls = buildUnnamed5092(); - o.timerCustomEvents = buildUnnamed5093(); + o.thirdPartyUrls = buildUnnamed5475(); + o.timerCustomEvents = buildUnnamed5476(); o.totalFileSize = "foo"; o.type = "foo"; o.universalAdId = buildUniversalAdId(); @@ -2286,8 +2366,8 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.active, unittest.isTrue); unittest.expect(o.adParameters, unittest.equals('foo')); - checkUnnamed5081(o.adTagKeys); - checkUnnamed5082(o.additionalSizes); + checkUnnamed5464(o.adTagKeys); + checkUnnamed5465(o.additionalSizes); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.allowScriptAccess, unittest.isTrue); unittest.expect(o.archived, unittest.isTrue); @@ -2297,21 +2377,21 @@ unittest.expect(o.autoAdvanceImages, unittest.isTrue); unittest.expect(o.backgroundColor, unittest.equals('foo')); checkCreativeClickThroughUrl(o.backupImageClickThroughUrl); - checkUnnamed5083(o.backupImageFeatures); + checkUnnamed5466(o.backupImageFeatures); unittest.expect(o.backupImageReportingLabel, unittest.equals('foo')); checkTargetWindow(o.backupImageTargetWindow); - checkUnnamed5084(o.clickTags); + checkUnnamed5467(o.clickTags); unittest.expect(o.commercialId, unittest.equals('foo')); - checkUnnamed5085(o.companionCreatives); - checkUnnamed5086(o.compatibility); + checkUnnamed5468(o.companionCreatives); + checkUnnamed5469(o.compatibility); unittest.expect(o.convertFlashToHtml5, unittest.isTrue); - checkUnnamed5087(o.counterCustomEvents); + checkUnnamed5470(o.counterCustomEvents); checkCreativeAssetSelection(o.creativeAssetSelection); - checkUnnamed5088(o.creativeAssets); - checkUnnamed5089(o.creativeFieldAssignments); - checkUnnamed5090(o.customKeyValues); + checkUnnamed5471(o.creativeAssets); + checkUnnamed5472(o.creativeFieldAssignments); + checkUnnamed5473(o.customKeyValues); unittest.expect(o.dynamicAssetSelection, unittest.isTrue); - checkUnnamed5091(o.exitCustomEvents); + checkUnnamed5474(o.exitCustomEvents); checkFsCommand(o.fsCommand); unittest.expect(o.htmlCode, unittest.equals('foo')); unittest.expect(o.htmlCodeLocked, unittest.isTrue); @@ -2344,8 +2424,8 @@ o.thirdPartyBackupImageImpressionsUrl, unittest.equals('foo')); unittest.expect( o.thirdPartyRichMediaImpressionsUrl, unittest.equals('foo')); - checkUnnamed5092(o.thirdPartyUrls); - checkUnnamed5093(o.timerCustomEvents); + checkUnnamed5475(o.thirdPartyUrls); + checkUnnamed5476(o.timerCustomEvents); unittest.expect(o.totalFileSize, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); checkUniversalAdId(o.universalAdId); @@ -2354,40 +2434,40 @@ buildCounterCreative--; } -buildUnnamed5094() { +buildUnnamed5477() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5094(core.List<api.Size> o) { +checkUnnamed5477(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); } -buildUnnamed5095() { +buildUnnamed5478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5095(core.List<core.String> o) { +checkUnnamed5478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5096() { +buildUnnamed5479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5096(core.List<core.String> o) { +checkUnnamed5479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2400,7 +2480,7 @@ if (buildCounterCreativeAsset < 3) { o.actionScript3 = true; o.active = true; - o.additionalSizes = buildUnnamed5094(); + o.additionalSizes = buildUnnamed5477(); o.alignment = "foo"; o.artworkType = "foo"; o.assetIdentifier = buildCreativeAssetId(); @@ -2410,9 +2490,9 @@ o.bitRate = 42; o.childAssetType = "foo"; o.collapsedSize = buildSize(); - o.companionCreativeIds = buildUnnamed5095(); + o.companionCreativeIds = buildUnnamed5478(); o.customStartTimeValue = 42; - o.detectedFeatures = buildUnnamed5096(); + o.detectedFeatures = buildUnnamed5479(); o.displayType = "foo"; o.duration = 42; o.durationType = "foo"; @@ -2458,7 +2538,7 @@ if (buildCounterCreativeAsset < 3) { unittest.expect(o.actionScript3, unittest.isTrue); unittest.expect(o.active, unittest.isTrue); - checkUnnamed5094(o.additionalSizes); + checkUnnamed5477(o.additionalSizes); unittest.expect(o.alignment, unittest.equals('foo')); unittest.expect(o.artworkType, unittest.equals('foo')); checkCreativeAssetId(o.assetIdentifier); @@ -2468,9 +2548,9 @@ unittest.expect(o.bitRate, unittest.equals(42)); unittest.expect(o.childAssetType, unittest.equals('foo')); checkSize(o.collapsedSize); - checkUnnamed5095(o.companionCreativeIds); + checkUnnamed5478(o.companionCreativeIds); unittest.expect(o.customStartTimeValue, unittest.equals(42)); - checkUnnamed5096(o.detectedFeatures); + checkUnnamed5479(o.detectedFeatures); unittest.expect(o.displayType, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals(42)); unittest.expect(o.durationType, unittest.equals('foo')); @@ -2531,79 +2611,79 @@ buildCounterCreativeAssetId--; } -buildUnnamed5097() { +buildUnnamed5480() { var o = new core.List<api.ClickTag>(); o.add(buildClickTag()); o.add(buildClickTag()); return o; } -checkUnnamed5097(core.List<api.ClickTag> o) { +checkUnnamed5480(core.List<api.ClickTag> o) { unittest.expect(o, unittest.hasLength(2)); checkClickTag(o[0]); checkClickTag(o[1]); } -buildUnnamed5098() { +buildUnnamed5481() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5098(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5481(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed5099() { +buildUnnamed5482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5099(core.List<core.String> o) { +checkUnnamed5482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5100() { +buildUnnamed5483() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5100(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5483(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed5101() { +buildUnnamed5484() { var o = new core.List<api.CreativeCustomEvent>(); o.add(buildCreativeCustomEvent()); o.add(buildCreativeCustomEvent()); return o; } -checkUnnamed5101(core.List<api.CreativeCustomEvent> o) { +checkUnnamed5484(core.List<api.CreativeCustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeCustomEvent(o[0]); checkCreativeCustomEvent(o[1]); } -buildUnnamed5102() { +buildUnnamed5485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5102(core.List<core.String> o) { +checkUnnamed5485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2615,16 +2695,16 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { o.assetIdentifier = buildCreativeAssetId(); - o.clickTags = buildUnnamed5097(); - o.counterCustomEvents = buildUnnamed5098(); - o.detectedFeatures = buildUnnamed5099(); - o.exitCustomEvents = buildUnnamed5100(); + o.clickTags = buildUnnamed5480(); + o.counterCustomEvents = buildUnnamed5481(); + o.detectedFeatures = buildUnnamed5482(); + o.exitCustomEvents = buildUnnamed5483(); o.id = "foo"; o.idDimensionValue = buildDimensionValue(); o.kind = "foo"; o.richMedia = true; - o.timerCustomEvents = buildUnnamed5101(); - o.warnedValidationRules = buildUnnamed5102(); + o.timerCustomEvents = buildUnnamed5484(); + o.warnedValidationRules = buildUnnamed5485(); } buildCounterCreativeAssetMetadata--; return o; @@ -2634,28 +2714,28 @@ buildCounterCreativeAssetMetadata++; if (buildCounterCreativeAssetMetadata < 3) { checkCreativeAssetId(o.assetIdentifier); - checkUnnamed5097(o.clickTags); - checkUnnamed5098(o.counterCustomEvents); - checkUnnamed5099(o.detectedFeatures); - checkUnnamed5100(o.exitCustomEvents); + checkUnnamed5480(o.clickTags); + checkUnnamed5481(o.counterCustomEvents); + checkUnnamed5482(o.detectedFeatures); + checkUnnamed5483(o.exitCustomEvents); unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.richMedia, unittest.isTrue); - checkUnnamed5101(o.timerCustomEvents); - checkUnnamed5102(o.warnedValidationRules); + checkUnnamed5484(o.timerCustomEvents); + checkUnnamed5485(o.warnedValidationRules); } buildCounterCreativeAssetMetadata--; } -buildUnnamed5103() { +buildUnnamed5486() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed5103(core.List<api.Rule> o) { +checkUnnamed5486(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); @@ -2667,7 +2747,7 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { o.defaultAssetId = "foo"; - o.rules = buildUnnamed5103(); + o.rules = buildUnnamed5486(); } buildCounterCreativeAssetSelection--; return o; @@ -2677,45 +2757,45 @@ buildCounterCreativeAssetSelection++; if (buildCounterCreativeAssetSelection < 3) { unittest.expect(o.defaultAssetId, unittest.equals('foo')); - checkUnnamed5103(o.rules); + checkUnnamed5486(o.rules); } buildCounterCreativeAssetSelection--; } -buildUnnamed5104() { +buildUnnamed5487() { var o = new core.List<api.CompanionClickThroughOverride>(); o.add(buildCompanionClickThroughOverride()); o.add(buildCompanionClickThroughOverride()); return o; } -checkUnnamed5104(core.List<api.CompanionClickThroughOverride> o) { +checkUnnamed5487(core.List<api.CompanionClickThroughOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanionClickThroughOverride(o[0]); checkCompanionClickThroughOverride(o[1]); } -buildUnnamed5105() { +buildUnnamed5488() { var o = new core.List<api.CreativeGroupAssignment>(); o.add(buildCreativeGroupAssignment()); o.add(buildCreativeGroupAssignment()); return o; } -checkUnnamed5105(core.List<api.CreativeGroupAssignment> o) { +checkUnnamed5488(core.List<api.CreativeGroupAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroupAssignment(o[0]); checkCreativeGroupAssignment(o[1]); } -buildUnnamed5106() { +buildUnnamed5489() { var o = new core.List<api.RichMediaExitOverride>(); o.add(buildRichMediaExitOverride()); o.add(buildRichMediaExitOverride()); return o; } -checkUnnamed5106(core.List<api.RichMediaExitOverride> o) { +checkUnnamed5489(core.List<api.RichMediaExitOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkRichMediaExitOverride(o[0]); checkRichMediaExitOverride(o[1]); @@ -2729,12 +2809,12 @@ o.active = true; o.applyEventTags = true; o.clickThroughUrl = buildClickThroughUrl(); - o.companionCreativeOverrides = buildUnnamed5104(); - o.creativeGroupAssignments = buildUnnamed5105(); + o.companionCreativeOverrides = buildUnnamed5487(); + o.creativeGroupAssignments = buildUnnamed5488(); o.creativeId = "foo"; o.creativeIdDimensionValue = buildDimensionValue(); o.endTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.richMediaExitOverrides = buildUnnamed5106(); + o.richMediaExitOverrides = buildUnnamed5489(); o.sequence = 42; o.sslCompliant = true; o.startTime = core.DateTime.parse("2002-02-27T14:01:02"); @@ -2750,13 +2830,13 @@ unittest.expect(o.active, unittest.isTrue); unittest.expect(o.applyEventTags, unittest.isTrue); checkClickThroughUrl(o.clickThroughUrl); - checkUnnamed5104(o.companionCreativeOverrides); - checkUnnamed5105(o.creativeGroupAssignments); + checkUnnamed5487(o.companionCreativeOverrides); + checkUnnamed5488(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"))); - checkUnnamed5106(o.richMediaExitOverrides); + checkUnnamed5489(o.richMediaExitOverrides); unittest.expect(o.sequence, unittest.equals(42)); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.startTime, @@ -2901,14 +2981,14 @@ buildCounterCreativeFieldValue--; } -buildUnnamed5107() { +buildUnnamed5490() { var o = new core.List<api.CreativeFieldValue>(); o.add(buildCreativeFieldValue()); o.add(buildCreativeFieldValue()); return o; } -checkUnnamed5107(core.List<api.CreativeFieldValue> o) { +checkUnnamed5490(core.List<api.CreativeFieldValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeFieldValue(o[0]); checkCreativeFieldValue(o[1]); @@ -2919,7 +2999,7 @@ var o = new api.CreativeFieldValuesListResponse(); buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - o.creativeFieldValues = buildUnnamed5107(); + o.creativeFieldValues = buildUnnamed5490(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2930,21 +3010,21 @@ checkCreativeFieldValuesListResponse(api.CreativeFieldValuesListResponse o) { buildCounterCreativeFieldValuesListResponse++; if (buildCounterCreativeFieldValuesListResponse < 3) { - checkUnnamed5107(o.creativeFieldValues); + checkUnnamed5490(o.creativeFieldValues); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeFieldValuesListResponse--; } -buildUnnamed5108() { +buildUnnamed5491() { var o = new core.List<api.CreativeField>(); o.add(buildCreativeField()); o.add(buildCreativeField()); return o; } -checkUnnamed5108(core.List<api.CreativeField> o) { +checkUnnamed5491(core.List<api.CreativeField> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeField(o[0]); checkCreativeField(o[1]); @@ -2955,7 +3035,7 @@ var o = new api.CreativeFieldsListResponse(); buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - o.creativeFields = buildUnnamed5108(); + o.creativeFields = buildUnnamed5491(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2966,7 +3046,7 @@ checkCreativeFieldsListResponse(api.CreativeFieldsListResponse o) { buildCounterCreativeFieldsListResponse++; if (buildCounterCreativeFieldsListResponse < 3) { - checkUnnamed5108(o.creativeFields); + checkUnnamed5491(o.creativeFields); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -3027,14 +3107,14 @@ buildCounterCreativeGroupAssignment--; } -buildUnnamed5109() { +buildUnnamed5492() { var o = new core.List<api.CreativeGroup>(); o.add(buildCreativeGroup()); o.add(buildCreativeGroup()); return o; } -checkUnnamed5109(core.List<api.CreativeGroup> o) { +checkUnnamed5492(core.List<api.CreativeGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeGroup(o[0]); checkCreativeGroup(o[1]); @@ -3045,7 +3125,7 @@ var o = new api.CreativeGroupsListResponse(); buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - o.creativeGroups = buildUnnamed5109(); + o.creativeGroups = buildUnnamed5492(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3056,21 +3136,21 @@ checkCreativeGroupsListResponse(api.CreativeGroupsListResponse o) { buildCounterCreativeGroupsListResponse++; if (buildCounterCreativeGroupsListResponse < 3) { - checkUnnamed5109(o.creativeGroups); + checkUnnamed5492(o.creativeGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativeGroupsListResponse--; } -buildUnnamed5110() { +buildUnnamed5493() { var o = new core.List<api.OptimizationActivity>(); o.add(buildOptimizationActivity()); o.add(buildOptimizationActivity()); return o; } -checkUnnamed5110(core.List<api.OptimizationActivity> o) { +checkUnnamed5493(core.List<api.OptimizationActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkOptimizationActivity(o[0]); checkOptimizationActivity(o[1]); @@ -3083,7 +3163,7 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { o.id = "foo"; o.name = "foo"; - o.optimizationActivitys = buildUnnamed5110(); + o.optimizationActivitys = buildUnnamed5493(); o.optimizationModel = "foo"; } buildCounterCreativeOptimizationConfiguration--; @@ -3096,20 +3176,20 @@ if (buildCounterCreativeOptimizationConfiguration < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5110(o.optimizationActivitys); + checkUnnamed5493(o.optimizationActivitys); unittest.expect(o.optimizationModel, unittest.equals('foo')); } buildCounterCreativeOptimizationConfiguration--; } -buildUnnamed5111() { +buildUnnamed5494() { var o = new core.List<api.CreativeAssignment>(); o.add(buildCreativeAssignment()); o.add(buildCreativeAssignment()); return o; } -checkUnnamed5111(core.List<api.CreativeAssignment> o) { +checkUnnamed5494(core.List<api.CreativeAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeAssignment(o[0]); checkCreativeAssignment(o[1]); @@ -3120,7 +3200,7 @@ var o = new api.CreativeRotation(); buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - o.creativeAssignments = buildUnnamed5111(); + o.creativeAssignments = buildUnnamed5494(); o.creativeOptimizationConfigurationId = "foo"; o.type = "foo"; o.weightCalculationStrategy = "foo"; @@ -3132,7 +3212,7 @@ checkCreativeRotation(api.CreativeRotation o) { buildCounterCreativeRotation++; if (buildCounterCreativeRotation < 3) { - checkUnnamed5111(o.creativeAssignments); + checkUnnamed5494(o.creativeAssignments); unittest.expect( o.creativeOptimizationConfigurationId, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -3141,14 +3221,14 @@ buildCounterCreativeRotation--; } -buildUnnamed5112() { +buildUnnamed5495() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed5112(core.List<api.Creative> o) { +checkUnnamed5495(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -3159,7 +3239,7 @@ var o = new api.CreativesListResponse(); buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - o.creatives = buildUnnamed5112(); + o.creatives = buildUnnamed5495(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3170,60 +3250,60 @@ checkCreativesListResponse(api.CreativesListResponse o) { buildCounterCreativesListResponse++; if (buildCounterCreativesListResponse < 3) { - checkUnnamed5112(o.creatives); + checkUnnamed5495(o.creatives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCreativesListResponse--; } -buildUnnamed5113() { +buildUnnamed5496() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5113(core.List<api.Dimension> o) { +checkUnnamed5496(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5114() { +buildUnnamed5497() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5114(core.List<api.Dimension> o) { +checkUnnamed5497(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5115() { +buildUnnamed5498() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5115(core.List<api.Metric> o) { +checkUnnamed5498(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed5116() { +buildUnnamed5499() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5116(core.List<api.Metric> o) { +checkUnnamed5499(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -3234,11 +3314,11 @@ var o = new api.CrossDimensionReachReportCompatibleFields(); buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - o.breakdown = buildUnnamed5113(); - o.dimensionFilters = buildUnnamed5114(); + o.breakdown = buildUnnamed5496(); + o.dimensionFilters = buildUnnamed5497(); o.kind = "foo"; - o.metrics = buildUnnamed5115(); - o.overlapMetrics = buildUnnamed5116(); + o.metrics = buildUnnamed5498(); + o.overlapMetrics = buildUnnamed5499(); } buildCounterCrossDimensionReachReportCompatibleFields--; return o; @@ -3248,23 +3328,23 @@ api.CrossDimensionReachReportCompatibleFields o) { buildCounterCrossDimensionReachReportCompatibleFields++; if (buildCounterCrossDimensionReachReportCompatibleFields < 3) { - checkUnnamed5113(o.breakdown); - checkUnnamed5114(o.dimensionFilters); + checkUnnamed5496(o.breakdown); + checkUnnamed5497(o.dimensionFilters); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5115(o.metrics); - checkUnnamed5116(o.overlapMetrics); + checkUnnamed5498(o.metrics); + checkUnnamed5499(o.overlapMetrics); } buildCounterCrossDimensionReachReportCompatibleFields--; } -buildUnnamed5117() { +buildUnnamed5500() { var o = new core.List<api.CustomVariable>(); o.add(buildCustomVariable()); o.add(buildCustomVariable()); return o; } -checkUnnamed5117(core.List<api.CustomVariable> o) { +checkUnnamed5500(core.List<api.CustomVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomVariable(o[0]); checkCustomVariable(o[1]); @@ -3277,7 +3357,7 @@ if (buildCounterCustomEvent < 3) { o.annotateClickEvent = buildCustomEventClickAnnotation(); o.annotateImpressionEvent = buildCustomEventImpressionAnnotation(); - o.customVariables = buildUnnamed5117(); + o.customVariables = buildUnnamed5500(); o.eventType = "foo"; o.floodlightConfigurationId = "foo"; o.insertEvent = buildCustomEventInsert(); @@ -3294,7 +3374,7 @@ if (buildCounterCustomEvent < 3) { checkCustomEventClickAnnotation(o.annotateClickEvent); checkCustomEventImpressionAnnotation(o.annotateImpressionEvent); - checkUnnamed5117(o.customVariables); + checkUnnamed5500(o.customVariables); unittest.expect(o.eventType, unittest.equals('foo')); unittest.expect(o.floodlightConfigurationId, unittest.equals('foo')); checkCustomEventInsert(o.insertEvent); @@ -3399,14 +3479,14 @@ buildCounterCustomEventInsert--; } -buildUnnamed5118() { +buildUnnamed5501() { var o = new core.List<api.CustomEventError>(); o.add(buildCustomEventError()); o.add(buildCustomEventError()); return o; } -checkUnnamed5118(core.List<api.CustomEventError> o) { +checkUnnamed5501(core.List<api.CustomEventError> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomEventError(o[0]); checkCustomEventError(o[1]); @@ -3418,7 +3498,7 @@ buildCounterCustomEventStatus++; if (buildCounterCustomEventStatus < 3) { o.customEvent = buildCustomEvent(); - o.errors = buildUnnamed5118(); + o.errors = buildUnnamed5501(); o.kind = "foo"; } buildCounterCustomEventStatus--; @@ -3429,20 +3509,20 @@ buildCounterCustomEventStatus++; if (buildCounterCustomEventStatus < 3) { checkCustomEvent(o.customEvent); - checkUnnamed5118(o.errors); + checkUnnamed5501(o.errors); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomEventStatus--; } -buildUnnamed5119() { +buildUnnamed5502() { var o = new core.List<api.CustomEvent>(); o.add(buildCustomEvent()); o.add(buildCustomEvent()); return o; } -checkUnnamed5119(core.List<api.CustomEvent> o) { +checkUnnamed5502(core.List<api.CustomEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomEvent(o[0]); checkCustomEvent(o[1]); @@ -3453,7 +3533,7 @@ var o = new api.CustomEventsBatchInsertRequest(); buildCounterCustomEventsBatchInsertRequest++; if (buildCounterCustomEventsBatchInsertRequest < 3) { - o.customEvents = buildUnnamed5119(); + o.customEvents = buildUnnamed5502(); o.kind = "foo"; } buildCounterCustomEventsBatchInsertRequest--; @@ -3463,20 +3543,20 @@ checkCustomEventsBatchInsertRequest(api.CustomEventsBatchInsertRequest o) { buildCounterCustomEventsBatchInsertRequest++; if (buildCounterCustomEventsBatchInsertRequest < 3) { - checkUnnamed5119(o.customEvents); + checkUnnamed5502(o.customEvents); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomEventsBatchInsertRequest--; } -buildUnnamed5120() { +buildUnnamed5503() { var o = new core.List<api.CustomEventStatus>(); o.add(buildCustomEventStatus()); o.add(buildCustomEventStatus()); return o; } -checkUnnamed5120(core.List<api.CustomEventStatus> o) { +checkUnnamed5503(core.List<api.CustomEventStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomEventStatus(o[0]); checkCustomEventStatus(o[1]); @@ -3489,7 +3569,7 @@ if (buildCounterCustomEventsBatchInsertResponse < 3) { o.hasFailures = true; o.kind = "foo"; - o.status = buildUnnamed5120(); + o.status = buildUnnamed5503(); } buildCounterCustomEventsBatchInsertResponse--; return o; @@ -3500,7 +3580,7 @@ if (buildCounterCustomEventsBatchInsertResponse < 3) { unittest.expect(o.hasFailures, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5120(o.status); + checkUnnamed5503(o.status); } buildCounterCustomEventsBatchInsertResponse--; } @@ -3528,14 +3608,14 @@ buildCounterCustomFloodlightVariable--; } -buildUnnamed5121() { +buildUnnamed5504() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5121(core.List<api.DimensionValue> o) { +checkUnnamed5504(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3546,7 +3626,7 @@ var o = new api.CustomRichMediaEvents(); buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - o.filteredEventIds = buildUnnamed5121(); + o.filteredEventIds = buildUnnamed5504(); o.kind = "foo"; } buildCounterCustomRichMediaEvents--; @@ -3556,7 +3636,7 @@ checkCustomRichMediaEvents(api.CustomRichMediaEvents o) { buildCounterCustomRichMediaEvents++; if (buildCounterCustomRichMediaEvents < 3) { - checkUnnamed5121(o.filteredEventIds); + checkUnnamed5504(o.filteredEventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterCustomRichMediaEvents--; @@ -3690,27 +3770,27 @@ buildCounterDateRange--; } -buildUnnamed5122() { +buildUnnamed5505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5122(core.List<core.String> o) { +checkUnnamed5505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5123() { +buildUnnamed5506() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed5123(core.List<core.int> o) { +checkUnnamed5506(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)); @@ -3721,8 +3801,8 @@ var o = new api.DayPartTargeting(); buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - o.daysOfWeek = buildUnnamed5122(); - o.hoursOfDay = buildUnnamed5123(); + o.daysOfWeek = buildUnnamed5505(); + o.hoursOfDay = buildUnnamed5506(); o.userLocalTime = true; } buildCounterDayPartTargeting--; @@ -3732,21 +3812,21 @@ checkDayPartTargeting(api.DayPartTargeting o) { buildCounterDayPartTargeting++; if (buildCounterDayPartTargeting < 3) { - checkUnnamed5122(o.daysOfWeek); - checkUnnamed5123(o.hoursOfDay); + checkUnnamed5505(o.daysOfWeek); + checkUnnamed5506(o.hoursOfDay); unittest.expect(o.userLocalTime, unittest.isTrue); } buildCounterDayPartTargeting--; } -buildUnnamed5124() { +buildUnnamed5507() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5124(core.List<core.String> o) { +checkUnnamed5507(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3761,7 +3841,7 @@ o.fallbackUrl = "foo"; o.kind = "foo"; o.mobileApp = buildMobileApp(); - o.remarketingListIds = buildUnnamed5124(); + o.remarketingListIds = buildUnnamed5507(); } buildCounterDeepLink--; return o; @@ -3774,7 +3854,7 @@ unittest.expect(o.fallbackUrl, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkMobileApp(o.mobileApp); - checkUnnamed5124(o.remarketingListIds); + checkUnnamed5507(o.remarketingListIds); } buildCounterDeepLink--; } @@ -3926,14 +4006,14 @@ buildCounterDimensionValue--; } -buildUnnamed5125() { +buildUnnamed5508() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5125(core.List<api.DimensionValue> o) { +checkUnnamed5508(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); @@ -3945,7 +4025,7 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { o.etag = "foo"; - o.items = buildUnnamed5125(); + o.items = buildUnnamed5508(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -3957,21 +4037,21 @@ buildCounterDimensionValueList++; if (buildCounterDimensionValueList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed5125(o.items); + checkUnnamed5508(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDimensionValueList--; } -buildUnnamed5126() { +buildUnnamed5509() { var o = new core.List<api.DimensionFilter>(); o.add(buildDimensionFilter()); o.add(buildDimensionFilter()); return o; } -checkUnnamed5126(core.List<api.DimensionFilter> o) { +checkUnnamed5509(core.List<api.DimensionFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionFilter(o[0]); checkDimensionFilter(o[1]); @@ -3984,7 +4064,7 @@ if (buildCounterDimensionValueRequest < 3) { o.dimensionName = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.filters = buildUnnamed5126(); + o.filters = buildUnnamed5509(); o.kind = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -3998,7 +4078,7 @@ unittest.expect(o.dimensionName, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed5126(o.filters); + checkUnnamed5509(o.filters); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -4006,27 +4086,27 @@ buildCounterDimensionValueRequest--; } -buildUnnamed5127() { +buildUnnamed5510() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5127(core.List<core.String> o) { +checkUnnamed5510(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5128() { +buildUnnamed5511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5128(core.List<core.String> o) { +checkUnnamed5511(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4039,8 +4119,8 @@ if (buildCounterDirectorySite < 3) { o.id = "foo"; o.idDimensionValue = buildDimensionValue(); - o.inpageTagFormats = buildUnnamed5127(); - o.interstitialTagFormats = buildUnnamed5128(); + o.inpageTagFormats = buildUnnamed5510(); + o.interstitialTagFormats = buildUnnamed5511(); o.kind = "foo"; o.name = "foo"; o.settings = buildDirectorySiteSettings(); @@ -4055,8 +4135,8 @@ if (buildCounterDirectorySite < 3) { unittest.expect(o.id, unittest.equals('foo')); checkDimensionValue(o.idDimensionValue); - checkUnnamed5127(o.inpageTagFormats); - checkUnnamed5128(o.interstitialTagFormats); + checkUnnamed5510(o.inpageTagFormats); + checkUnnamed5511(o.interstitialTagFormats); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkDirectorySiteSettings(o.settings); @@ -4090,14 +4170,14 @@ buildCounterDirectorySiteSettings--; } -buildUnnamed5129() { +buildUnnamed5512() { var o = new core.List<api.DirectorySite>(); o.add(buildDirectorySite()); o.add(buildDirectorySite()); return o; } -checkUnnamed5129(core.List<api.DirectorySite> o) { +checkUnnamed5512(core.List<api.DirectorySite> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectorySite(o[0]); checkDirectorySite(o[1]); @@ -4108,7 +4188,7 @@ var o = new api.DirectorySitesListResponse(); buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - o.directorySites = buildUnnamed5129(); + o.directorySites = buildUnnamed5512(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4119,13 +4199,47 @@ checkDirectorySitesListResponse(api.DirectorySitesListResponse o) { buildCounterDirectorySitesListResponse++; if (buildCounterDirectorySitesListResponse < 3) { - checkUnnamed5129(o.directorySites); + checkUnnamed5512(o.directorySites); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDirectorySitesListResponse--; } +buildUnnamed5513() { + var o = new core.List<api.EventFilter>(); + o.add(buildEventFilter()); + o.add(buildEventFilter()); + return o; +} + +checkUnnamed5513(core.List<api.EventFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEventFilter(o[0]); + checkEventFilter(o[1]); +} + +core.int buildCounterDisjunctiveMatchStatement = 0; +buildDisjunctiveMatchStatement() { + var o = new api.DisjunctiveMatchStatement(); + buildCounterDisjunctiveMatchStatement++; + if (buildCounterDisjunctiveMatchStatement < 3) { + o.eventFilters = buildUnnamed5513(); + o.kind = "foo"; + } + buildCounterDisjunctiveMatchStatement--; + return o; +} + +checkDisjunctiveMatchStatement(api.DisjunctiveMatchStatement o) { + buildCounterDisjunctiveMatchStatement++; + if (buildCounterDisjunctiveMatchStatement < 3) { + checkUnnamed5513(o.eventFilters); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterDisjunctiveMatchStatement--; +} + core.int buildCounterDynamicTargetingKey = 0; buildDynamicTargetingKey() { var o = new api.DynamicTargetingKey(); @@ -4151,14 +4265,14 @@ buildCounterDynamicTargetingKey--; } -buildUnnamed5130() { +buildUnnamed5514() { var o = new core.List<api.DynamicTargetingKey>(); o.add(buildDynamicTargetingKey()); o.add(buildDynamicTargetingKey()); return o; } -checkUnnamed5130(core.List<api.DynamicTargetingKey> o) { +checkUnnamed5514(core.List<api.DynamicTargetingKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicTargetingKey(o[0]); checkDynamicTargetingKey(o[1]); @@ -4169,7 +4283,7 @@ var o = new api.DynamicTargetingKeysListResponse(); buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - o.dynamicTargetingKeys = buildUnnamed5130(); + o.dynamicTargetingKeys = buildUnnamed5514(); o.kind = "foo"; } buildCounterDynamicTargetingKeysListResponse--; @@ -4179,7 +4293,7 @@ checkDynamicTargetingKeysListResponse(api.DynamicTargetingKeysListResponse o) { buildCounterDynamicTargetingKeysListResponse++; if (buildCounterDynamicTargetingKeysListResponse < 3) { - checkUnnamed5130(o.dynamicTargetingKeys); + checkUnnamed5514(o.dynamicTargetingKeys); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDynamicTargetingKeysListResponse--; @@ -4210,14 +4324,35 @@ buildCounterEncryptionInfo--; } -buildUnnamed5131() { +core.int buildCounterEventFilter = 0; +buildEventFilter() { + var o = new api.EventFilter(); + buildCounterEventFilter++; + if (buildCounterEventFilter < 3) { + o.dimensionFilter = buildPathReportDimensionValue(); + o.kind = "foo"; + } + buildCounterEventFilter--; + return o; +} + +checkEventFilter(api.EventFilter o) { + buildCounterEventFilter++; + if (buildCounterEventFilter < 3) { + checkPathReportDimensionValue(o.dimensionFilter); + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterEventFilter--; +} + +buildUnnamed5515() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5131(core.List<core.String> o) { +checkUnnamed5515(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4239,7 +4374,7 @@ o.kind = "foo"; o.name = "foo"; o.siteFilterType = "foo"; - o.siteIds = buildUnnamed5131(); + o.siteIds = buildUnnamed5515(); o.sslCompliant = true; o.status = "foo"; o.subaccountId = "foo"; @@ -4265,7 +4400,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.siteFilterType, unittest.equals('foo')); - checkUnnamed5131(o.siteIds); + checkUnnamed5515(o.siteIds); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); @@ -4297,14 +4432,14 @@ buildCounterEventTagOverride--; } -buildUnnamed5132() { +buildUnnamed5516() { var o = new core.List<api.EventTag>(); o.add(buildEventTag()); o.add(buildEventTag()); return o; } -checkUnnamed5132(core.List<api.EventTag> o) { +checkUnnamed5516(core.List<api.EventTag> o) { unittest.expect(o, unittest.hasLength(2)); checkEventTag(o[0]); checkEventTag(o[1]); @@ -4315,7 +4450,7 @@ var o = new api.EventTagsListResponse(); buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - o.eventTags = buildUnnamed5132(); + o.eventTags = buildUnnamed5516(); o.kind = "foo"; } buildCounterEventTagsListResponse--; @@ -4325,7 +4460,7 @@ checkEventTagsListResponse(api.EventTagsListResponse o) { buildCounterEventTagsListResponse++; if (buildCounterEventTagsListResponse < 3) { - checkUnnamed5132(o.eventTags); + checkUnnamed5516(o.eventTags); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventTagsListResponse--; @@ -4389,14 +4524,14 @@ buildCounterFile--; } -buildUnnamed5133() { +buildUnnamed5517() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed5133(core.List<api.File> o) { +checkUnnamed5517(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -4408,7 +4543,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { o.etag = "foo"; - o.items = buildUnnamed5133(); + o.items = buildUnnamed5517(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4420,7 +4555,7 @@ buildCounterFileList++; if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed5133(o.items); + checkUnnamed5517(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4478,14 +4613,14 @@ buildCounterFloodlightActivitiesGenerateTagResponse--; } -buildUnnamed5134() { +buildUnnamed5518() { var o = new core.List<api.FloodlightActivity>(); o.add(buildFloodlightActivity()); o.add(buildFloodlightActivity()); return o; } -checkUnnamed5134(core.List<api.FloodlightActivity> o) { +checkUnnamed5518(core.List<api.FloodlightActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivity(o[0]); checkFloodlightActivity(o[1]); @@ -4496,7 +4631,7 @@ var o = new api.FloodlightActivitiesListResponse(); buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - o.floodlightActivities = buildUnnamed5134(); + o.floodlightActivities = buildUnnamed5518(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4507,47 +4642,47 @@ checkFloodlightActivitiesListResponse(api.FloodlightActivitiesListResponse o) { buildCounterFloodlightActivitiesListResponse++; if (buildCounterFloodlightActivitiesListResponse < 3) { - checkUnnamed5134(o.floodlightActivities); + checkUnnamed5518(o.floodlightActivities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFloodlightActivitiesListResponse--; } -buildUnnamed5135() { +buildUnnamed5519() { var o = new core.List<api.FloodlightActivityDynamicTag>(); o.add(buildFloodlightActivityDynamicTag()); o.add(buildFloodlightActivityDynamicTag()); return o; } -checkUnnamed5135(core.List<api.FloodlightActivityDynamicTag> o) { +checkUnnamed5519(core.List<api.FloodlightActivityDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityDynamicTag(o[0]); checkFloodlightActivityDynamicTag(o[1]); } -buildUnnamed5136() { +buildUnnamed5520() { var o = new core.List<api.FloodlightActivityPublisherDynamicTag>(); o.add(buildFloodlightActivityPublisherDynamicTag()); o.add(buildFloodlightActivityPublisherDynamicTag()); return o; } -checkUnnamed5136(core.List<api.FloodlightActivityPublisherDynamicTag> o) { +checkUnnamed5520(core.List<api.FloodlightActivityPublisherDynamicTag> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityPublisherDynamicTag(o[0]); checkFloodlightActivityPublisherDynamicTag(o[1]); } -buildUnnamed5137() { +buildUnnamed5521() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5137(core.List<core.String> o) { +checkUnnamed5521(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4561,9 +4696,10 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); + o.attributionEnabled = true; o.cacheBustingType = "foo"; o.countingMethod = "foo"; - o.defaultTags = buildUnnamed5135(); + o.defaultTags = buildUnnamed5519(); o.expectedUrl = "foo"; o.floodlightActivityGroupId = "foo"; o.floodlightActivityGroupName = "foo"; @@ -4577,7 +4713,7 @@ o.kind = "foo"; o.name = "foo"; o.notes = "foo"; - o.publisherTags = buildUnnamed5136(); + o.publisherTags = buildUnnamed5520(); o.secure = true; o.sslCompliant = true; o.sslRequired = true; @@ -4585,7 +4721,7 @@ o.subaccountId = "foo"; o.tagFormat = "foo"; o.tagString = "foo"; - o.userDefinedVariableTypes = buildUnnamed5137(); + o.userDefinedVariableTypes = buildUnnamed5521(); } buildCounterFloodlightActivity--; return o; @@ -4597,9 +4733,10 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); + unittest.expect(o.attributionEnabled, unittest.isTrue); unittest.expect(o.cacheBustingType, unittest.equals('foo')); unittest.expect(o.countingMethod, unittest.equals('foo')); - checkUnnamed5135(o.defaultTags); + checkUnnamed5519(o.defaultTags); unittest.expect(o.expectedUrl, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupId, unittest.equals('foo')); unittest.expect(o.floodlightActivityGroupName, unittest.equals('foo')); @@ -4613,7 +4750,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed5136(o.publisherTags); + checkUnnamed5520(o.publisherTags); unittest.expect(o.secure, unittest.isTrue); unittest.expect(o.sslCompliant, unittest.isTrue); unittest.expect(o.sslRequired, unittest.isTrue); @@ -4621,7 +4758,7 @@ unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.tagFormat, unittest.equals('foo')); unittest.expect(o.tagString, unittest.equals('foo')); - checkUnnamed5137(o.userDefinedVariableTypes); + checkUnnamed5521(o.userDefinedVariableTypes); } buildCounterFloodlightActivity--; } @@ -4690,14 +4827,14 @@ buildCounterFloodlightActivityGroup--; } -buildUnnamed5138() { +buildUnnamed5522() { var o = new core.List<api.FloodlightActivityGroup>(); o.add(buildFloodlightActivityGroup()); o.add(buildFloodlightActivityGroup()); return o; } -checkUnnamed5138(core.List<api.FloodlightActivityGroup> o) { +checkUnnamed5522(core.List<api.FloodlightActivityGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightActivityGroup(o[0]); checkFloodlightActivityGroup(o[1]); @@ -4708,7 +4845,7 @@ var o = new api.FloodlightActivityGroupsListResponse(); buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - o.floodlightActivityGroups = buildUnnamed5138(); + o.floodlightActivityGroups = buildUnnamed5522(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -4720,7 +4857,7 @@ api.FloodlightActivityGroupsListResponse o) { buildCounterFloodlightActivityGroupsListResponse++; if (buildCounterFloodlightActivityGroupsListResponse < 3) { - checkUnnamed5138(o.floodlightActivityGroups); + checkUnnamed5522(o.floodlightActivityGroups); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -4757,27 +4894,27 @@ buildCounterFloodlightActivityPublisherDynamicTag--; } -buildUnnamed5139() { +buildUnnamed5523() { var o = new core.List<api.ThirdPartyAuthenticationToken>(); o.add(buildThirdPartyAuthenticationToken()); o.add(buildThirdPartyAuthenticationToken()); return o; } -checkUnnamed5139(core.List<api.ThirdPartyAuthenticationToken> o) { +checkUnnamed5523(core.List<api.ThirdPartyAuthenticationToken> o) { unittest.expect(o, unittest.hasLength(2)); checkThirdPartyAuthenticationToken(o[0]); checkThirdPartyAuthenticationToken(o[1]); } -buildUnnamed5140() { +buildUnnamed5524() { var o = new core.List<api.UserDefinedVariableConfiguration>(); o.add(buildUserDefinedVariableConfiguration()); o.add(buildUserDefinedVariableConfiguration()); return o; } -checkUnnamed5140(core.List<api.UserDefinedVariableConfiguration> o) { +checkUnnamed5524(core.List<api.UserDefinedVariableConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefinedVariableConfiguration(o[0]); checkUserDefinedVariableConfiguration(o[1]); @@ -4804,8 +4941,8 @@ o.omnitureSettings = buildOmnitureSettings(); o.subaccountId = "foo"; o.tagSettings = buildTagSettings(); - o.thirdPartyAuthenticationTokens = buildUnnamed5139(); - o.userDefinedVariableConfigurations = buildUnnamed5140(); + o.thirdPartyAuthenticationTokens = buildUnnamed5523(); + o.userDefinedVariableConfigurations = buildUnnamed5524(); } buildCounterFloodlightConfiguration--; return o; @@ -4831,20 +4968,20 @@ checkOmnitureSettings(o.omnitureSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); checkTagSettings(o.tagSettings); - checkUnnamed5139(o.thirdPartyAuthenticationTokens); - checkUnnamed5140(o.userDefinedVariableConfigurations); + checkUnnamed5523(o.thirdPartyAuthenticationTokens); + checkUnnamed5524(o.userDefinedVariableConfigurations); } buildCounterFloodlightConfiguration--; } -buildUnnamed5141() { +buildUnnamed5525() { var o = new core.List<api.FloodlightConfiguration>(); o.add(buildFloodlightConfiguration()); o.add(buildFloodlightConfiguration()); return o; } -checkUnnamed5141(core.List<api.FloodlightConfiguration> o) { +checkUnnamed5525(core.List<api.FloodlightConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkFloodlightConfiguration(o[0]); checkFloodlightConfiguration(o[1]); @@ -4855,7 +4992,7 @@ var o = new api.FloodlightConfigurationsListResponse(); buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - o.floodlightConfigurations = buildUnnamed5141(); + o.floodlightConfigurations = buildUnnamed5525(); o.kind = "foo"; } buildCounterFloodlightConfigurationsListResponse--; @@ -4866,46 +5003,46 @@ api.FloodlightConfigurationsListResponse o) { buildCounterFloodlightConfigurationsListResponse++; if (buildCounterFloodlightConfigurationsListResponse < 3) { - checkUnnamed5141(o.floodlightConfigurations); + checkUnnamed5525(o.floodlightConfigurations); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterFloodlightConfigurationsListResponse--; } -buildUnnamed5142() { +buildUnnamed5526() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5142(core.List<api.Dimension> o) { +checkUnnamed5526(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5143() { +buildUnnamed5527() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5143(core.List<api.Dimension> o) { +checkUnnamed5527(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5144() { +buildUnnamed5528() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5144(core.List<api.Metric> o) { +checkUnnamed5528(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -4916,10 +5053,10 @@ var o = new api.FloodlightReportCompatibleFields(); buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed5142(); - o.dimensions = buildUnnamed5143(); + o.dimensionFilters = buildUnnamed5526(); + o.dimensions = buildUnnamed5527(); o.kind = "foo"; - o.metrics = buildUnnamed5144(); + o.metrics = buildUnnamed5528(); } buildCounterFloodlightReportCompatibleFields--; return o; @@ -4928,10 +5065,10 @@ checkFloodlightReportCompatibleFields(api.FloodlightReportCompatibleFields o) { buildCounterFloodlightReportCompatibleFields++; if (buildCounterFloodlightReportCompatibleFields < 3) { - checkUnnamed5142(o.dimensionFilters); - checkUnnamed5143(o.dimensions); + checkUnnamed5526(o.dimensionFilters); + checkUnnamed5527(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5144(o.metrics); + checkUnnamed5528(o.metrics); } buildCounterFloodlightReportCompatibleFields--; } @@ -4984,66 +5121,66 @@ buildCounterFsCommand--; } -buildUnnamed5145() { +buildUnnamed5529() { var o = new core.List<api.City>(); o.add(buildCity()); o.add(buildCity()); return o; } -checkUnnamed5145(core.List<api.City> o) { +checkUnnamed5529(core.List<api.City> o) { unittest.expect(o, unittest.hasLength(2)); checkCity(o[0]); checkCity(o[1]); } -buildUnnamed5146() { +buildUnnamed5530() { var o = new core.List<api.Country>(); o.add(buildCountry()); o.add(buildCountry()); return o; } -checkUnnamed5146(core.List<api.Country> o) { +checkUnnamed5530(core.List<api.Country> o) { unittest.expect(o, unittest.hasLength(2)); checkCountry(o[0]); checkCountry(o[1]); } -buildUnnamed5147() { +buildUnnamed5531() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed5147(core.List<api.Metro> o) { +checkUnnamed5531(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); } -buildUnnamed5148() { +buildUnnamed5532() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed5148(core.List<api.PostalCode> o) { +checkUnnamed5532(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); } -buildUnnamed5149() { +buildUnnamed5533() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed5149(core.List<api.Region> o) { +checkUnnamed5533(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -5054,12 +5191,12 @@ var o = new api.GeoTargeting(); buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - o.cities = buildUnnamed5145(); - o.countries = buildUnnamed5146(); + o.cities = buildUnnamed5529(); + o.countries = buildUnnamed5530(); o.excludeCountries = true; - o.metros = buildUnnamed5147(); - o.postalCodes = buildUnnamed5148(); - o.regions = buildUnnamed5149(); + o.metros = buildUnnamed5531(); + o.postalCodes = buildUnnamed5532(); + o.regions = buildUnnamed5533(); } buildCounterGeoTargeting--; return o; @@ -5068,24 +5205,24 @@ checkGeoTargeting(api.GeoTargeting o) { buildCounterGeoTargeting++; if (buildCounterGeoTargeting < 3) { - checkUnnamed5145(o.cities); - checkUnnamed5146(o.countries); + checkUnnamed5529(o.cities); + checkUnnamed5530(o.countries); unittest.expect(o.excludeCountries, unittest.isTrue); - checkUnnamed5147(o.metros); - checkUnnamed5148(o.postalCodes); - checkUnnamed5149(o.regions); + checkUnnamed5531(o.metros); + checkUnnamed5532(o.postalCodes); + checkUnnamed5533(o.regions); } buildCounterGeoTargeting--; } -buildUnnamed5150() { +buildUnnamed5534() { var o = new core.List<api.AdSlot>(); o.add(buildAdSlot()); o.add(buildAdSlot()); return o; } -checkUnnamed5150(core.List<api.AdSlot> o) { +checkUnnamed5534(core.List<api.AdSlot> o) { unittest.expect(o, unittest.hasLength(2)); checkAdSlot(o[0]); checkAdSlot(o[1]); @@ -5097,7 +5234,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { o.accountId = "foo"; - o.adSlots = buildUnnamed5150(); + o.adSlots = buildUnnamed5534(); o.advertiserId = "foo"; o.contentCategoryId = "foo"; o.estimatedClickThroughRate = "foo"; @@ -5125,7 +5262,7 @@ buildCounterInventoryItem++; if (buildCounterInventoryItem < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed5150(o.adSlots); + checkUnnamed5534(o.adSlots); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); unittest.expect(o.estimatedClickThroughRate, unittest.equals('foo')); @@ -5148,14 +5285,14 @@ buildCounterInventoryItem--; } -buildUnnamed5151() { +buildUnnamed5535() { var o = new core.List<api.InventoryItem>(); o.add(buildInventoryItem()); o.add(buildInventoryItem()); return o; } -checkUnnamed5151(core.List<api.InventoryItem> o) { +checkUnnamed5535(core.List<api.InventoryItem> o) { unittest.expect(o, unittest.hasLength(2)); checkInventoryItem(o[0]); checkInventoryItem(o[1]); @@ -5166,7 +5303,7 @@ var o = new api.InventoryItemsListResponse(); buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - o.inventoryItems = buildUnnamed5151(); + o.inventoryItems = buildUnnamed5535(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -5177,7 +5314,7 @@ checkInventoryItemsListResponse(api.InventoryItemsListResponse o) { buildCounterInventoryItemsListResponse++; if (buildCounterInventoryItemsListResponse < 3) { - checkUnnamed5151(o.inventoryItems); + checkUnnamed5535(o.inventoryItems); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -5203,14 +5340,14 @@ buildCounterKeyValueTargetingExpression--; } -buildUnnamed5152() { +buildUnnamed5536() { var o = new core.List<api.DeepLink>(); o.add(buildDeepLink()); o.add(buildDeepLink()); return o; } -checkUnnamed5152(core.List<api.DeepLink> o) { +checkUnnamed5536(core.List<api.DeepLink> o) { unittest.expect(o, unittest.hasLength(2)); checkDeepLink(o[0]); checkDeepLink(o[1]); @@ -5223,7 +5360,7 @@ if (buildCounterLandingPage < 3) { o.advertiserId = "foo"; o.archived = true; - o.deepLinks = buildUnnamed5152(); + o.deepLinks = buildUnnamed5536(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -5238,7 +5375,7 @@ if (buildCounterLandingPage < 3) { unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.archived, unittest.isTrue); - checkUnnamed5152(o.deepLinks); + checkUnnamed5536(o.deepLinks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -5272,14 +5409,14 @@ buildCounterLanguage--; } -buildUnnamed5153() { +buildUnnamed5537() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed5153(core.List<api.Language> o) { +checkUnnamed5537(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -5290,7 +5427,7 @@ var o = new api.LanguageTargeting(); buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - o.languages = buildUnnamed5153(); + o.languages = buildUnnamed5537(); } buildCounterLanguageTargeting--; return o; @@ -5299,19 +5436,19 @@ checkLanguageTargeting(api.LanguageTargeting o) { buildCounterLanguageTargeting++; if (buildCounterLanguageTargeting < 3) { - checkUnnamed5153(o.languages); + checkUnnamed5537(o.languages); } buildCounterLanguageTargeting--; } -buildUnnamed5154() { +buildUnnamed5538() { var o = new core.List<api.Language>(); o.add(buildLanguage()); o.add(buildLanguage()); return o; } -checkUnnamed5154(core.List<api.Language> o) { +checkUnnamed5538(core.List<api.Language> o) { unittest.expect(o, unittest.hasLength(2)); checkLanguage(o[0]); checkLanguage(o[1]); @@ -5323,7 +5460,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { o.kind = "foo"; - o.languages = buildUnnamed5154(); + o.languages = buildUnnamed5538(); } buildCounterLanguagesListResponse--; return o; @@ -5333,7 +5470,7 @@ buildCounterLanguagesListResponse++; if (buildCounterLanguagesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5154(o.languages); + checkUnnamed5538(o.languages); } buildCounterLanguagesListResponse--; } @@ -5357,14 +5494,14 @@ buildCounterLastModifiedInfo--; } -buildUnnamed5155() { +buildUnnamed5539() { var o = new core.List<api.ListPopulationTerm>(); o.add(buildListPopulationTerm()); o.add(buildListPopulationTerm()); return o; } -checkUnnamed5155(core.List<api.ListPopulationTerm> o) { +checkUnnamed5539(core.List<api.ListPopulationTerm> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationTerm(o[0]); checkListPopulationTerm(o[1]); @@ -5375,7 +5512,7 @@ var o = new api.ListPopulationClause(); buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - o.terms = buildUnnamed5155(); + o.terms = buildUnnamed5539(); } buildCounterListPopulationClause--; return o; @@ -5384,19 +5521,19 @@ checkListPopulationClause(api.ListPopulationClause o) { buildCounterListPopulationClause++; if (buildCounterListPopulationClause < 3) { - checkUnnamed5155(o.terms); + checkUnnamed5539(o.terms); } buildCounterListPopulationClause--; } -buildUnnamed5156() { +buildUnnamed5540() { var o = new core.List<api.ListPopulationClause>(); o.add(buildListPopulationClause()); o.add(buildListPopulationClause()); return o; } -checkUnnamed5156(core.List<api.ListPopulationClause> o) { +checkUnnamed5540(core.List<api.ListPopulationClause> o) { unittest.expect(o, unittest.hasLength(2)); checkListPopulationClause(o[0]); checkListPopulationClause(o[1]); @@ -5409,7 +5546,7 @@ if (buildCounterListPopulationRule < 3) { o.floodlightActivityId = "foo"; o.floodlightActivityName = "foo"; - o.listPopulationClauses = buildUnnamed5156(); + o.listPopulationClauses = buildUnnamed5540(); } buildCounterListPopulationRule--; return o; @@ -5420,7 +5557,7 @@ if (buildCounterListPopulationRule < 3) { unittest.expect(o.floodlightActivityId, unittest.equals('foo')); unittest.expect(o.floodlightActivityName, unittest.equals('foo')); - checkUnnamed5156(o.listPopulationClauses); + checkUnnamed5540(o.listPopulationClauses); } buildCounterListPopulationRule--; } @@ -5550,14 +5687,14 @@ buildCounterMetro--; } -buildUnnamed5157() { +buildUnnamed5541() { var o = new core.List<api.Metro>(); o.add(buildMetro()); o.add(buildMetro()); return o; } -checkUnnamed5157(core.List<api.Metro> o) { +checkUnnamed5541(core.List<api.Metro> o) { unittest.expect(o, unittest.hasLength(2)); checkMetro(o[0]); checkMetro(o[1]); @@ -5569,7 +5706,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { o.kind = "foo"; - o.metros = buildUnnamed5157(); + o.metros = buildUnnamed5541(); } buildCounterMetrosListResponse--; return o; @@ -5579,7 +5716,7 @@ buildCounterMetrosListResponse++; if (buildCounterMetrosListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5157(o.metros); + checkUnnamed5541(o.metros); } buildCounterMetrosListResponse--; } @@ -5611,14 +5748,14 @@ buildCounterMobileApp--; } -buildUnnamed5158() { +buildUnnamed5542() { var o = new core.List<api.MobileApp>(); o.add(buildMobileApp()); o.add(buildMobileApp()); return o; } -checkUnnamed5158(core.List<api.MobileApp> o) { +checkUnnamed5542(core.List<api.MobileApp> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileApp(o[0]); checkMobileApp(o[1]); @@ -5630,7 +5767,7 @@ buildCounterMobileAppsListResponse++; if (buildCounterMobileAppsListResponse < 3) { o.kind = "foo"; - o.mobileApps = buildUnnamed5158(); + o.mobileApps = buildUnnamed5542(); o.nextPageToken = "foo"; } buildCounterMobileAppsListResponse--; @@ -5641,7 +5778,7 @@ buildCounterMobileAppsListResponse++; if (buildCounterMobileAppsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5158(o.mobileApps); + checkUnnamed5542(o.mobileApps); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterMobileAppsListResponse--; @@ -5674,14 +5811,14 @@ buildCounterMobileCarrier--; } -buildUnnamed5159() { +buildUnnamed5543() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed5159(core.List<api.MobileCarrier> o) { +checkUnnamed5543(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); @@ -5693,7 +5830,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { o.kind = "foo"; - o.mobileCarriers = buildUnnamed5159(); + o.mobileCarriers = buildUnnamed5543(); } buildCounterMobileCarriersListResponse--; return o; @@ -5703,7 +5840,7 @@ buildCounterMobileCarriersListResponse++; if (buildCounterMobileCarriersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5159(o.mobileCarriers); + checkUnnamed5543(o.mobileCarriers); } buildCounterMobileCarriersListResponse--; } @@ -5741,14 +5878,14 @@ buildCounterObaIcon--; } -buildUnnamed5160() { +buildUnnamed5544() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5160(core.List<core.String> o) { +checkUnnamed5544(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5760,7 +5897,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { o.kind = "foo"; - o.objectIds = buildUnnamed5160(); + o.objectIds = buildUnnamed5544(); o.status = "foo"; } buildCounterObjectFilter--; @@ -5771,7 +5908,7 @@ buildCounterObjectFilter++; if (buildCounterObjectFilter < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5160(o.objectIds); + checkUnnamed5544(o.objectIds); unittest.expect(o.status, unittest.equals('foo')); } buildCounterObjectFilter--; @@ -5875,14 +6012,14 @@ buildCounterOperatingSystemVersion--; } -buildUnnamed5161() { +buildUnnamed5545() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed5161(core.List<api.OperatingSystemVersion> o) { +checkUnnamed5545(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); @@ -5894,7 +6031,7 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { o.kind = "foo"; - o.operatingSystemVersions = buildUnnamed5161(); + o.operatingSystemVersions = buildUnnamed5545(); } buildCounterOperatingSystemVersionsListResponse--; return o; @@ -5905,19 +6042,19 @@ buildCounterOperatingSystemVersionsListResponse++; if (buildCounterOperatingSystemVersionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5161(o.operatingSystemVersions); + checkUnnamed5545(o.operatingSystemVersions); } buildCounterOperatingSystemVersionsListResponse--; } -buildUnnamed5162() { +buildUnnamed5546() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed5162(core.List<api.OperatingSystem> o) { +checkUnnamed5546(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); @@ -5929,7 +6066,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { o.kind = "foo"; - o.operatingSystems = buildUnnamed5162(); + o.operatingSystems = buildUnnamed5546(); } buildCounterOperatingSystemsListResponse--; return o; @@ -5939,7 +6076,7 @@ buildCounterOperatingSystemsListResponse++; if (buildCounterOperatingSystemsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5162(o.operatingSystems); + checkUnnamed5546(o.operatingSystems); } buildCounterOperatingSystemsListResponse--; } @@ -5967,53 +6104,53 @@ buildCounterOptimizationActivity--; } -buildUnnamed5163() { +buildUnnamed5547() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5163(core.List<core.String> o) { +checkUnnamed5547(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5164() { +buildUnnamed5548() { var o = new core.List<api.OrderContact>(); o.add(buildOrderContact()); o.add(buildOrderContact()); return o; } -checkUnnamed5164(core.List<api.OrderContact> o) { +checkUnnamed5548(core.List<api.OrderContact> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderContact(o[0]); checkOrderContact(o[1]); } -buildUnnamed5165() { +buildUnnamed5549() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5165(core.List<core.String> o) { +checkUnnamed5549(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5166() { +buildUnnamed5550() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5166(core.List<core.String> o) { +checkUnnamed5550(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6026,11 +6163,11 @@ if (buildCounterOrder < 3) { o.accountId = "foo"; o.advertiserId = "foo"; - o.approverUserProfileIds = buildUnnamed5163(); + o.approverUserProfileIds = buildUnnamed5547(); o.buyerInvoiceId = "foo"; o.buyerOrganizationName = "foo"; o.comments = "foo"; - o.contacts = buildUnnamed5164(); + o.contacts = buildUnnamed5548(); o.id = "foo"; o.kind = "foo"; o.lastModifiedInfo = buildLastModifiedInfo(); @@ -6040,8 +6177,8 @@ o.projectId = "foo"; o.sellerOrderId = "foo"; o.sellerOrganizationName = "foo"; - o.siteId = buildUnnamed5165(); - o.siteNames = buildUnnamed5166(); + o.siteId = buildUnnamed5549(); + o.siteNames = buildUnnamed5550(); o.subaccountId = "foo"; o.termsAndConditions = "foo"; } @@ -6054,11 +6191,11 @@ if (buildCounterOrder < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); - checkUnnamed5163(o.approverUserProfileIds); + checkUnnamed5547(o.approverUserProfileIds); unittest.expect(o.buyerInvoiceId, unittest.equals('foo')); unittest.expect(o.buyerOrganizationName, unittest.equals('foo')); unittest.expect(o.comments, unittest.equals('foo')); - checkUnnamed5164(o.contacts); + checkUnnamed5548(o.contacts); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkLastModifiedInfo(o.lastModifiedInfo); @@ -6068,8 +6205,8 @@ unittest.expect(o.projectId, unittest.equals('foo')); unittest.expect(o.sellerOrderId, unittest.equals('foo')); unittest.expect(o.sellerOrganizationName, unittest.equals('foo')); - checkUnnamed5165(o.siteId); - checkUnnamed5166(o.siteNames); + checkUnnamed5549(o.siteId); + checkUnnamed5550(o.siteNames); unittest.expect(o.subaccountId, unittest.equals('foo')); unittest.expect(o.termsAndConditions, unittest.equals('foo')); } @@ -6103,27 +6240,27 @@ buildCounterOrderContact--; } -buildUnnamed5167() { +buildUnnamed5551() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5167(core.List<core.String> o) { +checkUnnamed5551(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5168() { +buildUnnamed5552() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5168(core.List<core.String> o) { +checkUnnamed5552(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6137,13 +6274,13 @@ o.accountId = "foo"; o.advertiserId = "foo"; o.amendedOrderDocumentId = "foo"; - o.approvedByUserProfileIds = buildUnnamed5167(); + o.approvedByUserProfileIds = buildUnnamed5551(); o.cancelled = true; o.createdInfo = buildLastModifiedInfo(); o.effectiveDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.id = "foo"; o.kind = "foo"; - o.lastSentRecipients = buildUnnamed5168(); + o.lastSentRecipients = buildUnnamed5552(); o.lastSentTime = core.DateTime.parse("2002-02-27T14:01:02"); o.orderId = "foo"; o.projectId = "foo"; @@ -6162,14 +6299,14 @@ unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.amendedOrderDocumentId, unittest.equals('foo')); - checkUnnamed5167(o.approvedByUserProfileIds); + checkUnnamed5551(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')); - checkUnnamed5168(o.lastSentRecipients); + checkUnnamed5552(o.lastSentRecipients); unittest.expect(o.lastSentTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.orderId, unittest.equals('foo')); @@ -6182,14 +6319,14 @@ buildCounterOrderDocument--; } -buildUnnamed5169() { +buildUnnamed5553() { var o = new core.List<api.OrderDocument>(); o.add(buildOrderDocument()); o.add(buildOrderDocument()); return o; } -checkUnnamed5169(core.List<api.OrderDocument> o) { +checkUnnamed5553(core.List<api.OrderDocument> o) { unittest.expect(o, unittest.hasLength(2)); checkOrderDocument(o[0]); checkOrderDocument(o[1]); @@ -6202,7 +6339,7 @@ if (buildCounterOrderDocumentsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orderDocuments = buildUnnamed5169(); + o.orderDocuments = buildUnnamed5553(); } buildCounterOrderDocumentsListResponse--; return o; @@ -6213,19 +6350,19 @@ if (buildCounterOrderDocumentsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5169(o.orderDocuments); + checkUnnamed5553(o.orderDocuments); } buildCounterOrderDocumentsListResponse--; } -buildUnnamed5170() { +buildUnnamed5554() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed5170(core.List<api.Order> o) { +checkUnnamed5554(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -6238,7 +6375,7 @@ if (buildCounterOrdersListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.orders = buildUnnamed5170(); + o.orders = buildUnnamed5554(); } buildCounterOrdersListResponse--; return o; @@ -6249,58 +6386,226 @@ if (buildCounterOrdersListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5170(o.orders); + checkUnnamed5554(o.orders); } buildCounterOrdersListResponse--; } -buildUnnamed5171() { +buildUnnamed5555() { + var o = new core.List<api.EventFilter>(); + o.add(buildEventFilter()); + o.add(buildEventFilter()); + return o; +} + +checkUnnamed5555(core.List<api.EventFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEventFilter(o[0]); + checkEventFilter(o[1]); +} + +core.int buildCounterPathFilter = 0; +buildPathFilter() { + var o = new api.PathFilter(); + buildCounterPathFilter++; + if (buildCounterPathFilter < 3) { + o.eventFilters = buildUnnamed5555(); + o.kind = "foo"; + o.pathMatchPosition = "foo"; + } + buildCounterPathFilter--; + return o; +} + +checkPathFilter(api.PathFilter o) { + buildCounterPathFilter++; + if (buildCounterPathFilter < 3) { + checkUnnamed5555(o.eventFilters); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.pathMatchPosition, unittest.equals('foo')); + } + buildCounterPathFilter--; +} + +buildUnnamed5556() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5171(core.List<api.Dimension> o) { +checkUnnamed5556(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5172() { +buildUnnamed5557() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5172(core.List<api.Dimension> o) { +checkUnnamed5557(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5173() { +buildUnnamed5558() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5173(core.List<api.Metric> o) { +checkUnnamed5558(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed5174() { +buildUnnamed5559() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5174(core.List<api.Dimension> o) { +checkUnnamed5559(core.List<api.Dimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimension(o[0]); + checkDimension(o[1]); +} + +core.int buildCounterPathReportCompatibleFields = 0; +buildPathReportCompatibleFields() { + var o = new api.PathReportCompatibleFields(); + buildCounterPathReportCompatibleFields++; + if (buildCounterPathReportCompatibleFields < 3) { + o.channelGroupings = buildUnnamed5556(); + o.dimensions = buildUnnamed5557(); + o.kind = "foo"; + o.metrics = buildUnnamed5558(); + o.pathFilters = buildUnnamed5559(); + } + buildCounterPathReportCompatibleFields--; + return o; +} + +checkPathReportCompatibleFields(api.PathReportCompatibleFields o) { + buildCounterPathReportCompatibleFields++; + if (buildCounterPathReportCompatibleFields < 3) { + checkUnnamed5556(o.channelGroupings); + checkUnnamed5557(o.dimensions); + unittest.expect(o.kind, unittest.equals('foo')); + checkUnnamed5558(o.metrics); + checkUnnamed5559(o.pathFilters); + } + buildCounterPathReportCompatibleFields--; +} + +buildUnnamed5560() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5560(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed5561() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5561(core.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 buildCounterPathReportDimensionValue = 0; +buildPathReportDimensionValue() { + var o = new api.PathReportDimensionValue(); + buildCounterPathReportDimensionValue++; + if (buildCounterPathReportDimensionValue < 3) { + o.dimensionName = "foo"; + o.ids = buildUnnamed5560(); + o.kind = "foo"; + o.matchType = "foo"; + o.values = buildUnnamed5561(); + } + buildCounterPathReportDimensionValue--; + return o; +} + +checkPathReportDimensionValue(api.PathReportDimensionValue o) { + buildCounterPathReportDimensionValue++; + if (buildCounterPathReportDimensionValue < 3) { + unittest.expect(o.dimensionName, unittest.equals('foo')); + checkUnnamed5560(o.ids); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.matchType, unittest.equals('foo')); + checkUnnamed5561(o.values); + } + buildCounterPathReportDimensionValue--; +} + +buildUnnamed5562() { + var o = new core.List<api.Dimension>(); + o.add(buildDimension()); + o.add(buildDimension()); + return o; +} + +checkUnnamed5562(core.List<api.Dimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimension(o[0]); + checkDimension(o[1]); +} + +buildUnnamed5563() { + var o = new core.List<api.Dimension>(); + o.add(buildDimension()); + o.add(buildDimension()); + return o; +} + +checkUnnamed5563(core.List<api.Dimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimension(o[0]); + checkDimension(o[1]); +} + +buildUnnamed5564() { + var o = new core.List<api.Metric>(); + o.add(buildMetric()); + o.add(buildMetric()); + return o; +} + +checkUnnamed5564(core.List<api.Metric> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMetric(o[0]); + checkMetric(o[1]); +} + +buildUnnamed5565() { + var o = new core.List<api.Dimension>(); + o.add(buildDimension()); + o.add(buildDimension()); + return o; +} + +checkUnnamed5565(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); @@ -6311,11 +6616,11 @@ var o = new api.PathToConversionReportCompatibleFields(); buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - o.conversionDimensions = buildUnnamed5171(); - o.customFloodlightVariables = buildUnnamed5172(); + o.conversionDimensions = buildUnnamed5562(); + o.customFloodlightVariables = buildUnnamed5563(); o.kind = "foo"; - o.metrics = buildUnnamed5173(); - o.perInteractionDimensions = buildUnnamed5174(); + o.metrics = buildUnnamed5564(); + o.perInteractionDimensions = buildUnnamed5565(); } buildCounterPathToConversionReportCompatibleFields--; return o; @@ -6325,36 +6630,36 @@ api.PathToConversionReportCompatibleFields o) { buildCounterPathToConversionReportCompatibleFields++; if (buildCounterPathToConversionReportCompatibleFields < 3) { - checkUnnamed5171(o.conversionDimensions); - checkUnnamed5172(o.customFloodlightVariables); + checkUnnamed5562(o.conversionDimensions); + checkUnnamed5563(o.customFloodlightVariables); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5173(o.metrics); - checkUnnamed5174(o.perInteractionDimensions); + checkUnnamed5564(o.metrics); + checkUnnamed5565(o.perInteractionDimensions); } buildCounterPathToConversionReportCompatibleFields--; } -buildUnnamed5175() { +buildUnnamed5566() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5175(core.List<api.Size> o) { +checkUnnamed5566(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); } -buildUnnamed5176() { +buildUnnamed5567() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5176(core.List<core.String> o) { +checkUnnamed5567(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6367,7 +6672,7 @@ if (buildCounterPlacement < 3) { o.accountId = "foo"; o.adBlockingOptOut = true; - o.additionalSizes = buildUnnamed5175(); + o.additionalSizes = buildUnnamed5566(); o.advertiserId = "foo"; o.advertiserIdDimensionValue = buildDimensionValue(); o.archived = true; @@ -6401,7 +6706,7 @@ o.sslRequired = true; o.status = "foo"; o.subaccountId = "foo"; - o.tagFormats = buildUnnamed5176(); + o.tagFormats = buildUnnamed5567(); o.tagSetting = buildTagSetting(); o.videoActiveViewOptOut = true; o.videoSettings = buildVideoSettings(); @@ -6416,7 +6721,7 @@ if (buildCounterPlacement < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.adBlockingOptOut, unittest.isTrue); - checkUnnamed5175(o.additionalSizes); + checkUnnamed5566(o.additionalSizes); unittest.expect(o.advertiserId, unittest.equals('foo')); checkDimensionValue(o.advertiserIdDimensionValue); unittest.expect(o.archived, unittest.isTrue); @@ -6450,7 +6755,7 @@ unittest.expect(o.sslRequired, unittest.isTrue); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subaccountId, unittest.equals('foo')); - checkUnnamed5176(o.tagFormats); + checkUnnamed5567(o.tagFormats); checkTagSetting(o.tagSetting); unittest.expect(o.videoActiveViewOptOut, unittest.isTrue); checkVideoSettings(o.videoSettings); @@ -6484,14 +6789,14 @@ buildCounterPlacementAssignment--; } -buildUnnamed5177() { +buildUnnamed5568() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5177(core.List<core.String> o) { +checkUnnamed5568(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6508,7 +6813,7 @@ o.archived = true; o.campaignId = "foo"; o.campaignIdDimensionValue = buildDimensionValue(); - o.childPlacementIds = buildUnnamed5177(); + o.childPlacementIds = buildUnnamed5568(); o.comment = "foo"; o.contentCategoryId = "foo"; o.createInfo = buildLastModifiedInfo(); @@ -6542,7 +6847,7 @@ unittest.expect(o.archived, unittest.isTrue); unittest.expect(o.campaignId, unittest.equals('foo')); checkDimensionValue(o.campaignIdDimensionValue); - checkUnnamed5177(o.childPlacementIds); + checkUnnamed5568(o.childPlacementIds); unittest.expect(o.comment, unittest.equals('foo')); unittest.expect(o.contentCategoryId, unittest.equals('foo')); checkLastModifiedInfo(o.createInfo); @@ -6566,14 +6871,14 @@ buildCounterPlacementGroup--; } -buildUnnamed5178() { +buildUnnamed5569() { var o = new core.List<api.PlacementGroup>(); o.add(buildPlacementGroup()); o.add(buildPlacementGroup()); return o; } -checkUnnamed5178(core.List<api.PlacementGroup> o) { +checkUnnamed5569(core.List<api.PlacementGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementGroup(o[0]); checkPlacementGroup(o[1]); @@ -6586,7 +6891,7 @@ if (buildCounterPlacementGroupsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementGroups = buildUnnamed5178(); + o.placementGroups = buildUnnamed5569(); } buildCounterPlacementGroupsListResponse--; return o; @@ -6597,19 +6902,19 @@ if (buildCounterPlacementGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5178(o.placementGroups); + checkUnnamed5569(o.placementGroups); } buildCounterPlacementGroupsListResponse--; } -buildUnnamed5179() { +buildUnnamed5570() { var o = new core.List<api.PlacementStrategy>(); o.add(buildPlacementStrategy()); o.add(buildPlacementStrategy()); return o; } -checkUnnamed5179(core.List<api.PlacementStrategy> o) { +checkUnnamed5570(core.List<api.PlacementStrategy> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementStrategy(o[0]); checkPlacementStrategy(o[1]); @@ -6622,7 +6927,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placementStrategies = buildUnnamed5179(); + o.placementStrategies = buildUnnamed5570(); } buildCounterPlacementStrategiesListResponse--; return o; @@ -6633,7 +6938,7 @@ if (buildCounterPlacementStrategiesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5179(o.placementStrategies); + checkUnnamed5570(o.placementStrategies); } buildCounterPlacementStrategiesListResponse--; } @@ -6663,14 +6968,14 @@ buildCounterPlacementStrategy--; } -buildUnnamed5180() { +buildUnnamed5571() { var o = new core.List<api.TagData>(); o.add(buildTagData()); o.add(buildTagData()); return o; } -checkUnnamed5180(core.List<api.TagData> o) { +checkUnnamed5571(core.List<api.TagData> o) { unittest.expect(o, unittest.hasLength(2)); checkTagData(o[0]); checkTagData(o[1]); @@ -6682,7 +6987,7 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { o.placementId = "foo"; - o.tagDatas = buildUnnamed5180(); + o.tagDatas = buildUnnamed5571(); } buildCounterPlacementTag--; return o; @@ -6692,19 +6997,19 @@ buildCounterPlacementTag++; if (buildCounterPlacementTag < 3) { unittest.expect(o.placementId, unittest.equals('foo')); - checkUnnamed5180(o.tagDatas); + checkUnnamed5571(o.tagDatas); } buildCounterPlacementTag--; } -buildUnnamed5181() { +buildUnnamed5572() { var o = new core.List<api.PlacementTag>(); o.add(buildPlacementTag()); o.add(buildPlacementTag()); return o; } -checkUnnamed5181(core.List<api.PlacementTag> o) { +checkUnnamed5572(core.List<api.PlacementTag> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacementTag(o[0]); checkPlacementTag(o[1]); @@ -6716,7 +7021,7 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { o.kind = "foo"; - o.placementTags = buildUnnamed5181(); + o.placementTags = buildUnnamed5572(); } buildCounterPlacementsGenerateTagsResponse--; return o; @@ -6726,19 +7031,19 @@ buildCounterPlacementsGenerateTagsResponse++; if (buildCounterPlacementsGenerateTagsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5181(o.placementTags); + checkUnnamed5572(o.placementTags); } buildCounterPlacementsGenerateTagsResponse--; } -buildUnnamed5182() { +buildUnnamed5573() { var o = new core.List<api.Placement>(); o.add(buildPlacement()); o.add(buildPlacement()); return o; } -checkUnnamed5182(core.List<api.Placement> o) { +checkUnnamed5573(core.List<api.Placement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlacement(o[0]); checkPlacement(o[1]); @@ -6751,7 +7056,7 @@ if (buildCounterPlacementsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.placements = buildUnnamed5182(); + o.placements = buildUnnamed5573(); } buildCounterPlacementsListResponse--; return o; @@ -6762,7 +7067,7 @@ if (buildCounterPlacementsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5182(o.placements); + checkUnnamed5573(o.placements); } buildCounterPlacementsListResponse--; } @@ -6790,14 +7095,14 @@ buildCounterPlatformType--; } -buildUnnamed5183() { +buildUnnamed5574() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed5183(core.List<api.PlatformType> o) { +checkUnnamed5574(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -6809,7 +7114,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { o.kind = "foo"; - o.platformTypes = buildUnnamed5183(); + o.platformTypes = buildUnnamed5574(); } buildCounterPlatformTypesListResponse--; return o; @@ -6819,7 +7124,7 @@ buildCounterPlatformTypesListResponse++; if (buildCounterPlatformTypesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5183(o.platformTypes); + checkUnnamed5574(o.platformTypes); } buildCounterPlatformTypesListResponse--; } @@ -6886,14 +7191,14 @@ buildCounterPostalCode--; } -buildUnnamed5184() { +buildUnnamed5575() { var o = new core.List<api.PostalCode>(); o.add(buildPostalCode()); o.add(buildPostalCode()); return o; } -checkUnnamed5184(core.List<api.PostalCode> o) { +checkUnnamed5575(core.List<api.PostalCode> o) { unittest.expect(o, unittest.hasLength(2)); checkPostalCode(o[0]); checkPostalCode(o[1]); @@ -6905,7 +7210,7 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { o.kind = "foo"; - o.postalCodes = buildUnnamed5184(); + o.postalCodes = buildUnnamed5575(); } buildCounterPostalCodesListResponse--; return o; @@ -6915,19 +7220,19 @@ buildCounterPostalCodesListResponse++; if (buildCounterPostalCodesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5184(o.postalCodes); + checkUnnamed5575(o.postalCodes); } buildCounterPostalCodesListResponse--; } -buildUnnamed5185() { +buildUnnamed5576() { var o = new core.List<api.Flight>(); o.add(buildFlight()); o.add(buildFlight()); return o; } -checkUnnamed5185(core.List<api.Flight> o) { +checkUnnamed5576(core.List<api.Flight> o) { unittest.expect(o, unittest.hasLength(2)); checkFlight(o[0]); checkFlight(o[1]); @@ -6940,7 +7245,7 @@ if (buildCounterPricing < 3) { o.capCostType = "foo"; o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.flights = buildUnnamed5185(); + o.flights = buildUnnamed5576(); o.groupType = "foo"; o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -6955,7 +7260,7 @@ unittest.expect(o.capCostType, unittest.equals('foo')); unittest.expect( o.endDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed5185(o.flights); + checkUnnamed5576(o.flights); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, @@ -6964,14 +7269,14 @@ buildCounterPricing--; } -buildUnnamed5186() { +buildUnnamed5577() { var o = new core.List<api.PricingSchedulePricingPeriod>(); o.add(buildPricingSchedulePricingPeriod()); o.add(buildPricingSchedulePricingPeriod()); return o; } -checkUnnamed5186(core.List<api.PricingSchedulePricingPeriod> o) { +checkUnnamed5577(core.List<api.PricingSchedulePricingPeriod> o) { unittest.expect(o, unittest.hasLength(2)); checkPricingSchedulePricingPeriod(o[0]); checkPricingSchedulePricingPeriod(o[1]); @@ -6986,7 +7291,7 @@ o.endDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.flighted = true; o.floodlightActivityId = "foo"; - o.pricingPeriods = buildUnnamed5186(); + o.pricingPeriods = buildUnnamed5577(); o.pricingType = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.testingStartDate = core.DateTime.parse("2002-02-27T14:01:02Z"); @@ -7003,7 +7308,7 @@ 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')); - checkUnnamed5186(o.pricingPeriods); + checkUnnamed5577(o.pricingPeriods); unittest.expect(o.pricingType, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -7105,14 +7410,14 @@ buildCounterProject--; } -buildUnnamed5187() { +buildUnnamed5578() { var o = new core.List<api.Project>(); o.add(buildProject()); o.add(buildProject()); return o; } -checkUnnamed5187(core.List<api.Project> o) { +checkUnnamed5578(core.List<api.Project> o) { unittest.expect(o, unittest.hasLength(2)); checkProject(o[0]); checkProject(o[1]); @@ -7125,7 +7430,7 @@ if (buildCounterProjectsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.projects = buildUnnamed5187(); + o.projects = buildUnnamed5578(); } buildCounterProjectsListResponse--; return o; @@ -7136,71 +7441,71 @@ if (buildCounterProjectsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5187(o.projects); + checkUnnamed5578(o.projects); } buildCounterProjectsListResponse--; } -buildUnnamed5188() { +buildUnnamed5579() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5188(core.List<api.Dimension> o) { +checkUnnamed5579(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5189() { +buildUnnamed5580() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5189(core.List<api.Dimension> o) { +checkUnnamed5580(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5190() { +buildUnnamed5581() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5190(core.List<api.Metric> o) { +checkUnnamed5581(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed5191() { +buildUnnamed5582() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5191(core.List<api.Metric> o) { +checkUnnamed5582(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed5192() { +buildUnnamed5583() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5192(core.List<api.Metric> o) { +checkUnnamed5583(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -7211,12 +7516,12 @@ var o = new api.ReachReportCompatibleFields(); buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed5188(); - o.dimensions = buildUnnamed5189(); + o.dimensionFilters = buildUnnamed5579(); + o.dimensions = buildUnnamed5580(); o.kind = "foo"; - o.metrics = buildUnnamed5190(); - o.pivotedActivityMetrics = buildUnnamed5191(); - o.reachByFrequencyMetrics = buildUnnamed5192(); + o.metrics = buildUnnamed5581(); + o.pivotedActivityMetrics = buildUnnamed5582(); + o.reachByFrequencyMetrics = buildUnnamed5583(); } buildCounterReachReportCompatibleFields--; return o; @@ -7225,12 +7530,12 @@ checkReachReportCompatibleFields(api.ReachReportCompatibleFields o) { buildCounterReachReportCompatibleFields++; if (buildCounterReachReportCompatibleFields < 3) { - checkUnnamed5188(o.dimensionFilters); - checkUnnamed5189(o.dimensions); + checkUnnamed5579(o.dimensionFilters); + checkUnnamed5580(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5190(o.metrics); - checkUnnamed5191(o.pivotedActivityMetrics); - checkUnnamed5192(o.reachByFrequencyMetrics); + checkUnnamed5581(o.metrics); + checkUnnamed5582(o.pivotedActivityMetrics); + checkUnnamed5583(o.reachByFrequencyMetrics); } buildCounterReachReportCompatibleFields--; } @@ -7287,14 +7592,14 @@ buildCounterRegion--; } -buildUnnamed5193() { +buildUnnamed5584() { var o = new core.List<api.Region>(); o.add(buildRegion()); o.add(buildRegion()); return o; } -checkUnnamed5193(core.List<api.Region> o) { +checkUnnamed5584(core.List<api.Region> o) { unittest.expect(o, unittest.hasLength(2)); checkRegion(o[0]); checkRegion(o[1]); @@ -7306,7 +7611,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { o.kind = "foo"; - o.regions = buildUnnamed5193(); + o.regions = buildUnnamed5584(); } buildCounterRegionsListResponse--; return o; @@ -7316,7 +7621,7 @@ buildCounterRegionsListResponse++; if (buildCounterRegionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5193(o.regions); + checkUnnamed5584(o.regions); } buildCounterRegionsListResponse--; } @@ -7364,27 +7669,27 @@ buildCounterRemarketingList--; } -buildUnnamed5194() { +buildUnnamed5585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5194(core.List<core.String> o) { +checkUnnamed5585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5195() { +buildUnnamed5586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5195(core.List<core.String> o) { +checkUnnamed5586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7397,8 +7702,8 @@ if (buildCounterRemarketingListShare < 3) { o.kind = "foo"; o.remarketingListId = "foo"; - o.sharedAccountIds = buildUnnamed5194(); - o.sharedAdvertiserIds = buildUnnamed5195(); + o.sharedAccountIds = buildUnnamed5585(); + o.sharedAdvertiserIds = buildUnnamed5586(); } buildCounterRemarketingListShare--; return o; @@ -7409,20 +7714,20 @@ if (buildCounterRemarketingListShare < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.remarketingListId, unittest.equals('foo')); - checkUnnamed5194(o.sharedAccountIds); - checkUnnamed5195(o.sharedAdvertiserIds); + checkUnnamed5585(o.sharedAccountIds); + checkUnnamed5586(o.sharedAdvertiserIds); } buildCounterRemarketingListShare--; } -buildUnnamed5196() { +buildUnnamed5587() { var o = new core.List<api.RemarketingList>(); o.add(buildRemarketingList()); o.add(buildRemarketingList()); return o; } -checkUnnamed5196(core.List<api.RemarketingList> o) { +checkUnnamed5587(core.List<api.RemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkRemarketingList(o[0]); checkRemarketingList(o[1]); @@ -7435,7 +7740,7 @@ if (buildCounterRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.remarketingLists = buildUnnamed5196(); + o.remarketingLists = buildUnnamed5587(); } buildCounterRemarketingListsListResponse--; return o; @@ -7446,45 +7751,45 @@ if (buildCounterRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5196(o.remarketingLists); + checkUnnamed5587(o.remarketingLists); } buildCounterRemarketingListsListResponse--; } -buildUnnamed5197() { +buildUnnamed5588() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5197(core.List<api.DimensionValue> o) { +checkUnnamed5588(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5198() { +buildUnnamed5589() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5198(core.List<api.SortedDimension> o) { +checkUnnamed5589(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed5199() { +buildUnnamed5590() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5199(core.List<core.String> o) { +checkUnnamed5590(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7498,9 +7803,9 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed5197(); - o.dimensions = buildUnnamed5198(); - o.metricNames = buildUnnamed5199(); + o.dimensionFilters = buildUnnamed5588(); + o.dimensions = buildUnnamed5589(); + o.metricNames = buildUnnamed5590(); } buildCounterReportCriteria--; return o; @@ -7512,60 +7817,60 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed5197(o.dimensionFilters); - checkUnnamed5198(o.dimensions); - checkUnnamed5199(o.metricNames); + checkUnnamed5588(o.dimensionFilters); + checkUnnamed5589(o.dimensions); + checkUnnamed5590(o.metricNames); } buildCounterReportCriteria--; } -buildUnnamed5200() { +buildUnnamed5591() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5200(core.List<api.SortedDimension> o) { +checkUnnamed5591(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed5201() { +buildUnnamed5592() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5201(core.List<api.DimensionValue> o) { +checkUnnamed5592(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5202() { +buildUnnamed5593() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5202(core.List<core.String> o) { +checkUnnamed5593(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5203() { +buildUnnamed5594() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5203(core.List<core.String> o) { +checkUnnamed5594(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7576,12 +7881,12 @@ var o = new api.ReportCrossDimensionReachCriteria(); buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - o.breakdown = buildUnnamed5200(); + o.breakdown = buildUnnamed5591(); o.dateRange = buildDateRange(); o.dimension = "foo"; - o.dimensionFilters = buildUnnamed5201(); - o.metricNames = buildUnnamed5202(); - o.overlapMetricNames = buildUnnamed5203(); + o.dimensionFilters = buildUnnamed5592(); + o.metricNames = buildUnnamed5593(); + o.overlapMetricNames = buildUnnamed5594(); o.pivoted = true; } buildCounterReportCrossDimensionReachCriteria--; @@ -7592,25 +7897,25 @@ api.ReportCrossDimensionReachCriteria o) { buildCounterReportCrossDimensionReachCriteria++; if (buildCounterReportCrossDimensionReachCriteria < 3) { - checkUnnamed5200(o.breakdown); + checkUnnamed5591(o.breakdown); checkDateRange(o.dateRange); unittest.expect(o.dimension, unittest.equals('foo')); - checkUnnamed5201(o.dimensionFilters); - checkUnnamed5202(o.metricNames); - checkUnnamed5203(o.overlapMetricNames); + checkUnnamed5592(o.dimensionFilters); + checkUnnamed5593(o.metricNames); + checkUnnamed5594(o.overlapMetricNames); unittest.expect(o.pivoted, unittest.isTrue); } buildCounterReportCrossDimensionReachCriteria--; } -buildUnnamed5204() { +buildUnnamed5595() { var o = new core.List<api.Recipient>(); o.add(buildRecipient()); o.add(buildRecipient()); return o; } -checkUnnamed5204(core.List<api.Recipient> o) { +checkUnnamed5595(core.List<api.Recipient> o) { unittest.expect(o, unittest.hasLength(2)); checkRecipient(o[0]); checkRecipient(o[1]); @@ -7624,7 +7929,7 @@ o.emailOwner = true; o.emailOwnerDeliveryType = "foo"; o.message = "foo"; - o.recipients = buildUnnamed5204(); + o.recipients = buildUnnamed5595(); } buildCounterReportDelivery--; return o; @@ -7636,58 +7941,58 @@ unittest.expect(o.emailOwner, unittest.isTrue); unittest.expect(o.emailOwnerDeliveryType, unittest.equals('foo')); unittest.expect(o.message, unittest.equals('foo')); - checkUnnamed5204(o.recipients); + checkUnnamed5595(o.recipients); } buildCounterReportDelivery--; } -buildUnnamed5205() { +buildUnnamed5596() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5205(core.List<api.DimensionValue> o) { +checkUnnamed5596(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5206() { +buildUnnamed5597() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5206(core.List<api.DimensionValue> o) { +checkUnnamed5597(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5207() { +buildUnnamed5598() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5207(core.List<api.SortedDimension> o) { +checkUnnamed5598(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed5208() { +buildUnnamed5599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5208(core.List<core.String> o) { +checkUnnamed5599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7722,12 +8027,12 @@ var o = new api.ReportFloodlightCriteria(); buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - o.customRichMediaEvents = buildUnnamed5205(); + o.customRichMediaEvents = buildUnnamed5596(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed5206(); - o.dimensions = buildUnnamed5207(); + o.dimensionFilters = buildUnnamed5597(); + o.dimensions = buildUnnamed5598(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed5208(); + o.metricNames = buildUnnamed5599(); o.reportProperties = buildReportFloodlightCriteriaReportProperties(); } buildCounterReportFloodlightCriteria--; @@ -7737,90 +8042,256 @@ checkReportFloodlightCriteria(api.ReportFloodlightCriteria o) { buildCounterReportFloodlightCriteria++; if (buildCounterReportFloodlightCriteria < 3) { - checkUnnamed5205(o.customRichMediaEvents); + checkUnnamed5596(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed5206(o.dimensionFilters); - checkUnnamed5207(o.dimensions); + checkUnnamed5597(o.dimensionFilters); + checkUnnamed5598(o.dimensions); checkDimensionValue(o.floodlightConfigId); - checkUnnamed5208(o.metricNames); + checkUnnamed5599(o.metricNames); checkReportFloodlightCriteriaReportProperties(o.reportProperties); } buildCounterReportFloodlightCriteria--; } -buildUnnamed5209() { +buildUnnamed5600() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5209(core.List<api.DimensionValue> o) { +checkUnnamed5600(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5210() { +buildUnnamed5601() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5210(core.List<api.SortedDimension> o) { +checkUnnamed5601(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed5211() { - var o = new core.List<api.SortedDimension>(); - o.add(buildSortedDimension()); - o.add(buildSortedDimension()); - return o; -} - -checkUnnamed5211(core.List<api.SortedDimension> o) { - unittest.expect(o, unittest.hasLength(2)); - checkSortedDimension(o[0]); - checkSortedDimension(o[1]); -} - -buildUnnamed5212() { - var o = new core.List<api.DimensionValue>(); - o.add(buildDimensionValue()); - o.add(buildDimensionValue()); - return o; -} - -checkUnnamed5212(core.List<api.DimensionValue> o) { - unittest.expect(o, unittest.hasLength(2)); - checkDimensionValue(o[0]); - checkDimensionValue(o[1]); -} - -buildUnnamed5213() { +buildUnnamed5602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5213(core.List<core.String> o) { +checkUnnamed5602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5214() { +buildUnnamed5603() { + var o = new core.List<api.PathFilter>(); + o.add(buildPathFilter()); + o.add(buildPathFilter()); + return o; +} + +checkUnnamed5603(core.List<api.PathFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPathFilter(o[0]); + checkPathFilter(o[1]); +} + +core.int buildCounterReportPathAttributionCriteria = 0; +buildReportPathAttributionCriteria() { + var o = new api.ReportPathAttributionCriteria(); + buildCounterReportPathAttributionCriteria++; + if (buildCounterReportPathAttributionCriteria < 3) { + o.activityFilters = buildUnnamed5600(); + o.customChannelGrouping = buildChannelGrouping(); + o.dateRange = buildDateRange(); + o.dimensions = buildUnnamed5601(); + o.floodlightConfigId = buildDimensionValue(); + o.metricNames = buildUnnamed5602(); + o.pathFilters = buildUnnamed5603(); + } + buildCounterReportPathAttributionCriteria--; + return o; +} + +checkReportPathAttributionCriteria(api.ReportPathAttributionCriteria o) { + buildCounterReportPathAttributionCriteria++; + if (buildCounterReportPathAttributionCriteria < 3) { + checkUnnamed5600(o.activityFilters); + checkChannelGrouping(o.customChannelGrouping); + checkDateRange(o.dateRange); + checkUnnamed5601(o.dimensions); + checkDimensionValue(o.floodlightConfigId); + checkUnnamed5602(o.metricNames); + checkUnnamed5603(o.pathFilters); + } + buildCounterReportPathAttributionCriteria--; +} + +buildUnnamed5604() { + var o = new core.List<api.DimensionValue>(); + o.add(buildDimensionValue()); + o.add(buildDimensionValue()); + return o; +} + +checkUnnamed5604(core.List<api.DimensionValue> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionValue(o[0]); + checkDimensionValue(o[1]); +} + +buildUnnamed5605() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5214(core.List<api.SortedDimension> o) { +checkUnnamed5605(core.List<api.SortedDimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSortedDimension(o[0]); + checkSortedDimension(o[1]); +} + +buildUnnamed5606() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5606(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed5607() { + var o = new core.List<api.PathFilter>(); + o.add(buildPathFilter()); + o.add(buildPathFilter()); + return o; +} + +checkUnnamed5607(core.List<api.PathFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPathFilter(o[0]); + checkPathFilter(o[1]); +} + +core.int buildCounterReportPathCriteria = 0; +buildReportPathCriteria() { + var o = new api.ReportPathCriteria(); + buildCounterReportPathCriteria++; + if (buildCounterReportPathCriteria < 3) { + o.activityFilters = buildUnnamed5604(); + o.customChannelGrouping = buildChannelGrouping(); + o.dateRange = buildDateRange(); + o.dimensions = buildUnnamed5605(); + o.floodlightConfigId = buildDimensionValue(); + o.metricNames = buildUnnamed5606(); + o.pathFilters = buildUnnamed5607(); + } + buildCounterReportPathCriteria--; + return o; +} + +checkReportPathCriteria(api.ReportPathCriteria o) { + buildCounterReportPathCriteria++; + if (buildCounterReportPathCriteria < 3) { + checkUnnamed5604(o.activityFilters); + checkChannelGrouping(o.customChannelGrouping); + checkDateRange(o.dateRange); + checkUnnamed5605(o.dimensions); + checkDimensionValue(o.floodlightConfigId); + checkUnnamed5606(o.metricNames); + checkUnnamed5607(o.pathFilters); + } + buildCounterReportPathCriteria--; +} + +buildUnnamed5608() { + var o = new core.List<api.DimensionValue>(); + o.add(buildDimensionValue()); + o.add(buildDimensionValue()); + return o; +} + +checkUnnamed5608(core.List<api.DimensionValue> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionValue(o[0]); + checkDimensionValue(o[1]); +} + +buildUnnamed5609() { + var o = new core.List<api.SortedDimension>(); + o.add(buildSortedDimension()); + o.add(buildSortedDimension()); + return o; +} + +checkUnnamed5609(core.List<api.SortedDimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSortedDimension(o[0]); + checkSortedDimension(o[1]); +} + +buildUnnamed5610() { + var o = new core.List<api.SortedDimension>(); + o.add(buildSortedDimension()); + o.add(buildSortedDimension()); + return o; +} + +checkUnnamed5610(core.List<api.SortedDimension> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSortedDimension(o[0]); + checkSortedDimension(o[1]); +} + +buildUnnamed5611() { + var o = new core.List<api.DimensionValue>(); + o.add(buildDimensionValue()); + o.add(buildDimensionValue()); + return o; +} + +checkUnnamed5611(core.List<api.DimensionValue> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDimensionValue(o[0]); + checkDimensionValue(o[1]); +} + +buildUnnamed5612() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5612(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed5613() { + var o = new core.List<api.SortedDimension>(); + o.add(buildSortedDimension()); + o.add(buildSortedDimension()); + return o; +} + +checkUnnamed5613(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); @@ -7867,14 +8338,14 @@ var o = new api.ReportPathToConversionCriteria(); buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - o.activityFilters = buildUnnamed5209(); - o.conversionDimensions = buildUnnamed5210(); - o.customFloodlightVariables = buildUnnamed5211(); - o.customRichMediaEvents = buildUnnamed5212(); + o.activityFilters = buildUnnamed5608(); + o.conversionDimensions = buildUnnamed5609(); + o.customFloodlightVariables = buildUnnamed5610(); + o.customRichMediaEvents = buildUnnamed5611(); o.dateRange = buildDateRange(); o.floodlightConfigId = buildDimensionValue(); - o.metricNames = buildUnnamed5213(); - o.perInteractionDimensions = buildUnnamed5214(); + o.metricNames = buildUnnamed5612(); + o.perInteractionDimensions = buildUnnamed5613(); o.reportProperties = buildReportPathToConversionCriteriaReportProperties(); } buildCounterReportPathToConversionCriteria--; @@ -7884,66 +8355,66 @@ checkReportPathToConversionCriteria(api.ReportPathToConversionCriteria o) { buildCounterReportPathToConversionCriteria++; if (buildCounterReportPathToConversionCriteria < 3) { - checkUnnamed5209(o.activityFilters); - checkUnnamed5210(o.conversionDimensions); - checkUnnamed5211(o.customFloodlightVariables); - checkUnnamed5212(o.customRichMediaEvents); + checkUnnamed5608(o.activityFilters); + checkUnnamed5609(o.conversionDimensions); + checkUnnamed5610(o.customFloodlightVariables); + checkUnnamed5611(o.customRichMediaEvents); checkDateRange(o.dateRange); checkDimensionValue(o.floodlightConfigId); - checkUnnamed5213(o.metricNames); - checkUnnamed5214(o.perInteractionDimensions); + checkUnnamed5612(o.metricNames); + checkUnnamed5613(o.perInteractionDimensions); checkReportPathToConversionCriteriaReportProperties(o.reportProperties); } buildCounterReportPathToConversionCriteria--; } -buildUnnamed5215() { +buildUnnamed5614() { var o = new core.List<api.DimensionValue>(); o.add(buildDimensionValue()); o.add(buildDimensionValue()); return o; } -checkUnnamed5215(core.List<api.DimensionValue> o) { +checkUnnamed5614(core.List<api.DimensionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionValue(o[0]); checkDimensionValue(o[1]); } -buildUnnamed5216() { +buildUnnamed5615() { var o = new core.List<api.SortedDimension>(); o.add(buildSortedDimension()); o.add(buildSortedDimension()); return o; } -checkUnnamed5216(core.List<api.SortedDimension> o) { +checkUnnamed5615(core.List<api.SortedDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkSortedDimension(o[0]); checkSortedDimension(o[1]); } -buildUnnamed5217() { +buildUnnamed5616() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5217(core.List<core.String> o) { +checkUnnamed5616(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5218() { +buildUnnamed5617() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5218(core.List<core.String> o) { +checkUnnamed5617(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -7957,11 +8428,11 @@ o.activities = buildActivities(); o.customRichMediaEvents = buildCustomRichMediaEvents(); o.dateRange = buildDateRange(); - o.dimensionFilters = buildUnnamed5215(); - o.dimensions = buildUnnamed5216(); + o.dimensionFilters = buildUnnamed5614(); + o.dimensions = buildUnnamed5615(); o.enableAllDimensionCombinations = true; - o.metricNames = buildUnnamed5217(); - o.reachByFrequencyMetricNames = buildUnnamed5218(); + o.metricNames = buildUnnamed5616(); + o.reachByFrequencyMetricNames = buildUnnamed5617(); } buildCounterReportReachCriteria--; return o; @@ -7973,23 +8444,23 @@ checkActivities(o.activities); checkCustomRichMediaEvents(o.customRichMediaEvents); checkDateRange(o.dateRange); - checkUnnamed5215(o.dimensionFilters); - checkUnnamed5216(o.dimensions); + checkUnnamed5614(o.dimensionFilters); + checkUnnamed5615(o.dimensions); unittest.expect(o.enableAllDimensionCombinations, unittest.isTrue); - checkUnnamed5217(o.metricNames); - checkUnnamed5218(o.reachByFrequencyMetricNames); + checkUnnamed5616(o.metricNames); + checkUnnamed5617(o.reachByFrequencyMetricNames); } buildCounterReportReachCriteria--; } -buildUnnamed5219() { +buildUnnamed5618() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5219(core.List<core.String> o) { +checkUnnamed5618(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8004,7 +8475,7 @@ o.every = 42; o.expirationDate = core.DateTime.parse("2002-02-27T14:01:02Z"); o.repeats = "foo"; - o.repeatsOnWeekDays = buildUnnamed5219(); + o.repeatsOnWeekDays = buildUnnamed5618(); o.runsOnDayOfMonth = "foo"; o.startDate = core.DateTime.parse("2002-02-27T14:01:02Z"); } @@ -8020,7 +8491,7 @@ unittest.expect(o.expirationDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.repeats, unittest.equals('foo')); - checkUnnamed5219(o.repeatsOnWeekDays); + checkUnnamed5618(o.repeatsOnWeekDays); unittest.expect(o.runsOnDayOfMonth, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); @@ -8046,6 +8517,8 @@ o.lastModifiedTime = "foo"; o.name = "foo"; o.ownerProfileId = "foo"; + o.pathAttributionCriteria = buildReportPathAttributionCriteria(); + o.pathCriteria = buildReportPathCriteria(); o.pathToConversionCriteria = buildReportPathToConversionCriteria(); o.reachCriteria = buildReportReachCriteria(); o.schedule = buildReportSchedule(); @@ -8072,6 +8545,8 @@ unittest.expect(o.lastModifiedTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.ownerProfileId, unittest.equals('foo')); + checkReportPathAttributionCriteria(o.pathAttributionCriteria); + checkReportPathCriteria(o.pathCriteria); checkReportPathToConversionCriteria(o.pathToConversionCriteria); checkReportReachCriteria(o.reachCriteria); checkReportSchedule(o.schedule); @@ -8081,53 +8556,53 @@ buildCounterReport--; } -buildUnnamed5220() { +buildUnnamed5619() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5220(core.List<api.Dimension> o) { +checkUnnamed5619(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5221() { +buildUnnamed5620() { var o = new core.List<api.Dimension>(); o.add(buildDimension()); o.add(buildDimension()); return o; } -checkUnnamed5221(core.List<api.Dimension> o) { +checkUnnamed5620(core.List<api.Dimension> o) { unittest.expect(o, unittest.hasLength(2)); checkDimension(o[0]); checkDimension(o[1]); } -buildUnnamed5222() { +buildUnnamed5621() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5222(core.List<api.Metric> o) { +checkUnnamed5621(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); } -buildUnnamed5223() { +buildUnnamed5622() { var o = new core.List<api.Metric>(); o.add(buildMetric()); o.add(buildMetric()); return o; } -checkUnnamed5223(core.List<api.Metric> o) { +checkUnnamed5622(core.List<api.Metric> o) { unittest.expect(o, unittest.hasLength(2)); checkMetric(o[0]); checkMetric(o[1]); @@ -8138,11 +8613,11 @@ var o = new api.ReportCompatibleFields(); buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - o.dimensionFilters = buildUnnamed5220(); - o.dimensions = buildUnnamed5221(); + o.dimensionFilters = buildUnnamed5619(); + o.dimensions = buildUnnamed5620(); o.kind = "foo"; - o.metrics = buildUnnamed5222(); - o.pivotedActivityMetrics = buildUnnamed5223(); + o.metrics = buildUnnamed5621(); + o.pivotedActivityMetrics = buildUnnamed5622(); } buildCounterReportCompatibleFields--; return o; @@ -8151,23 +8626,23 @@ checkReportCompatibleFields(api.ReportCompatibleFields o) { buildCounterReportCompatibleFields++; if (buildCounterReportCompatibleFields < 3) { - checkUnnamed5220(o.dimensionFilters); - checkUnnamed5221(o.dimensions); + checkUnnamed5619(o.dimensionFilters); + checkUnnamed5620(o.dimensions); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5222(o.metrics); - checkUnnamed5223(o.pivotedActivityMetrics); + checkUnnamed5621(o.metrics); + checkUnnamed5622(o.pivotedActivityMetrics); } buildCounterReportCompatibleFields--; } -buildUnnamed5224() { +buildUnnamed5623() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed5224(core.List<api.Report> o) { +checkUnnamed5623(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -8179,7 +8654,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { o.etag = "foo"; - o.items = buildUnnamed5224(); + o.items = buildUnnamed5623(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -8191,7 +8666,7 @@ buildCounterReportList++; if (buildCounterReportList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed5224(o.items); + checkUnnamed5623(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -8267,14 +8742,14 @@ buildCounterRule--; } -buildUnnamed5225() { +buildUnnamed5624() { var o = new core.List<api.SiteContact>(); o.add(buildSiteContact()); o.add(buildSiteContact()); return o; } -checkUnnamed5225(core.List<api.SiteContact> o) { +checkUnnamed5624(core.List<api.SiteContact> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteContact(o[0]); checkSiteContact(o[1]); @@ -8294,7 +8769,7 @@ o.keyName = "foo"; o.kind = "foo"; o.name = "foo"; - o.siteContacts = buildUnnamed5225(); + o.siteContacts = buildUnnamed5624(); o.siteSettings = buildSiteSettings(); o.subaccountId = "foo"; o.videoSettings = buildSiteVideoSettings(); @@ -8315,7 +8790,7 @@ unittest.expect(o.keyName, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5225(o.siteContacts); + checkUnnamed5624(o.siteContacts); checkSiteSettings(o.siteSettings); unittest.expect(o.subaccountId, unittest.equals('foo')); checkSiteVideoSettings(o.videoSettings); @@ -8323,14 +8798,14 @@ buildCounterSite--; } -buildUnnamed5226() { +buildUnnamed5625() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5226(core.List<api.Size> o) { +checkUnnamed5625(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -8342,7 +8817,7 @@ buildCounterSiteCompanionSetting++; if (buildCounterSiteCompanionSetting < 3) { o.companionsDisabled = true; - o.enabledSizes = buildUnnamed5226(); + o.enabledSizes = buildUnnamed5625(); o.imageOnly = true; o.kind = "foo"; } @@ -8354,7 +8829,7 @@ buildCounterSiteCompanionSetting++; if (buildCounterSiteCompanionSetting < 3) { unittest.expect(o.companionsDisabled, unittest.isTrue); - checkUnnamed5226(o.enabledSizes); + checkUnnamed5625(o.enabledSizes); unittest.expect(o.imageOnly, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); } @@ -8448,14 +8923,14 @@ buildCounterSiteSkippableSetting--; } -buildUnnamed5227() { +buildUnnamed5626() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed5227(core.List<core.int> o) { +checkUnnamed5626(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)); @@ -8466,7 +8941,7 @@ var o = new api.SiteTranscodeSetting(); buildCounterSiteTranscodeSetting++; if (buildCounterSiteTranscodeSetting < 3) { - o.enabledVideoFormats = buildUnnamed5227(); + o.enabledVideoFormats = buildUnnamed5626(); o.kind = "foo"; } buildCounterSiteTranscodeSetting--; @@ -8476,7 +8951,7 @@ checkSiteTranscodeSetting(api.SiteTranscodeSetting o) { buildCounterSiteTranscodeSetting++; if (buildCounterSiteTranscodeSetting < 3) { - checkUnnamed5227(o.enabledVideoFormats); + checkUnnamed5626(o.enabledVideoFormats); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSiteTranscodeSetting--; @@ -8489,6 +8964,8 @@ if (buildCounterSiteVideoSettings < 3) { o.companionSettings = buildSiteCompanionSetting(); o.kind = "foo"; + o.obaEnabled = true; + o.obaSettings = buildObaIcon(); o.orientation = "foo"; o.skippableSettings = buildSiteSkippableSetting(); o.transcodeSettings = buildSiteTranscodeSetting(); @@ -8502,6 +8979,8 @@ if (buildCounterSiteVideoSettings < 3) { checkSiteCompanionSetting(o.companionSettings); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.obaEnabled, unittest.isTrue); + checkObaIcon(o.obaSettings); unittest.expect(o.orientation, unittest.equals('foo')); checkSiteSkippableSetting(o.skippableSettings); checkSiteTranscodeSetting(o.transcodeSettings); @@ -8509,14 +8988,14 @@ buildCounterSiteVideoSettings--; } -buildUnnamed5228() { +buildUnnamed5627() { var o = new core.List<api.Site>(); o.add(buildSite()); o.add(buildSite()); return o; } -checkUnnamed5228(core.List<api.Site> o) { +checkUnnamed5627(core.List<api.Site> o) { unittest.expect(o, unittest.hasLength(2)); checkSite(o[0]); checkSite(o[1]); @@ -8529,7 +9008,7 @@ if (buildCounterSitesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.sites = buildUnnamed5228(); + o.sites = buildUnnamed5627(); } buildCounterSitesListResponse--; return o; @@ -8540,7 +9019,7 @@ if (buildCounterSitesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5228(o.sites); + checkUnnamed5627(o.sites); } buildCounterSitesListResponse--; } @@ -8572,14 +9051,14 @@ buildCounterSize--; } -buildUnnamed5229() { +buildUnnamed5628() { var o = new core.List<api.Size>(); o.add(buildSize()); o.add(buildSize()); return o; } -checkUnnamed5229(core.List<api.Size> o) { +checkUnnamed5628(core.List<api.Size> o) { unittest.expect(o, unittest.hasLength(2)); checkSize(o[0]); checkSize(o[1]); @@ -8591,7 +9070,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { o.kind = "foo"; - o.sizes = buildUnnamed5229(); + o.sizes = buildUnnamed5628(); } buildCounterSizesListResponse--; return o; @@ -8601,7 +9080,7 @@ buildCounterSizesListResponse++; if (buildCounterSizesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5229(o.sizes); + checkUnnamed5628(o.sizes); } buildCounterSizesListResponse--; } @@ -8654,14 +9133,14 @@ buildCounterSortedDimension--; } -buildUnnamed5230() { +buildUnnamed5629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5230(core.List<core.String> o) { +checkUnnamed5629(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8673,7 +9152,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { o.accountId = "foo"; - o.availablePermissionIds = buildUnnamed5230(); + o.availablePermissionIds = buildUnnamed5629(); o.id = "foo"; o.kind = "foo"; o.name = "foo"; @@ -8686,7 +9165,7 @@ buildCounterSubaccount++; if (buildCounterSubaccount < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed5230(o.availablePermissionIds); + checkUnnamed5629(o.availablePermissionIds); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -8694,14 +9173,14 @@ buildCounterSubaccount--; } -buildUnnamed5231() { +buildUnnamed5630() { var o = new core.List<api.Subaccount>(); o.add(buildSubaccount()); o.add(buildSubaccount()); return o; } -checkUnnamed5231(core.List<api.Subaccount> o) { +checkUnnamed5630(core.List<api.Subaccount> o) { unittest.expect(o, unittest.hasLength(2)); checkSubaccount(o[0]); checkSubaccount(o[1]); @@ -8714,7 +9193,7 @@ if (buildCounterSubaccountsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subaccounts = buildUnnamed5231(); + o.subaccounts = buildUnnamed5630(); } buildCounterSubaccountsListResponse--; return o; @@ -8725,7 +9204,7 @@ if (buildCounterSubaccountsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5231(o.subaccounts); + checkUnnamed5630(o.subaccounts); } buildCounterSubaccountsListResponse--; } @@ -8865,14 +9344,14 @@ buildCounterTargetableRemarketingList--; } -buildUnnamed5232() { +buildUnnamed5631() { var o = new core.List<api.TargetableRemarketingList>(); o.add(buildTargetableRemarketingList()); o.add(buildTargetableRemarketingList()); return o; } -checkUnnamed5232(core.List<api.TargetableRemarketingList> o) { +checkUnnamed5631(core.List<api.TargetableRemarketingList> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetableRemarketingList(o[0]); checkTargetableRemarketingList(o[1]); @@ -8885,7 +9364,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetableRemarketingLists = buildUnnamed5232(); + o.targetableRemarketingLists = buildUnnamed5631(); } buildCounterTargetableRemarketingListsListResponse--; return o; @@ -8897,7 +9376,7 @@ if (buildCounterTargetableRemarketingListsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5232(o.targetableRemarketingLists); + checkUnnamed5631(o.targetableRemarketingLists); } buildCounterTargetableRemarketingListsListResponse--; } @@ -8945,14 +9424,14 @@ buildCounterTargetingTemplate--; } -buildUnnamed5233() { +buildUnnamed5632() { var o = new core.List<api.TargetingTemplate>(); o.add(buildTargetingTemplate()); o.add(buildTargetingTemplate()); return o; } -checkUnnamed5233(core.List<api.TargetingTemplate> o) { +checkUnnamed5632(core.List<api.TargetingTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingTemplate(o[0]); checkTargetingTemplate(o[1]); @@ -8965,7 +9444,7 @@ if (buildCounterTargetingTemplatesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.targetingTemplates = buildUnnamed5233(); + o.targetingTemplates = buildUnnamed5632(); } buildCounterTargetingTemplatesListResponse--; return o; @@ -8976,84 +9455,84 @@ if (buildCounterTargetingTemplatesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5233(o.targetingTemplates); + checkUnnamed5632(o.targetingTemplates); } buildCounterTargetingTemplatesListResponse--; } -buildUnnamed5234() { +buildUnnamed5633() { var o = new core.List<api.Browser>(); o.add(buildBrowser()); o.add(buildBrowser()); return o; } -checkUnnamed5234(core.List<api.Browser> o) { +checkUnnamed5633(core.List<api.Browser> o) { unittest.expect(o, unittest.hasLength(2)); checkBrowser(o[0]); checkBrowser(o[1]); } -buildUnnamed5235() { +buildUnnamed5634() { var o = new core.List<api.ConnectionType>(); o.add(buildConnectionType()); o.add(buildConnectionType()); return o; } -checkUnnamed5235(core.List<api.ConnectionType> o) { +checkUnnamed5634(core.List<api.ConnectionType> o) { unittest.expect(o, unittest.hasLength(2)); checkConnectionType(o[0]); checkConnectionType(o[1]); } -buildUnnamed5236() { +buildUnnamed5635() { var o = new core.List<api.MobileCarrier>(); o.add(buildMobileCarrier()); o.add(buildMobileCarrier()); return o; } -checkUnnamed5236(core.List<api.MobileCarrier> o) { +checkUnnamed5635(core.List<api.MobileCarrier> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileCarrier(o[0]); checkMobileCarrier(o[1]); } -buildUnnamed5237() { +buildUnnamed5636() { var o = new core.List<api.OperatingSystemVersion>(); o.add(buildOperatingSystemVersion()); o.add(buildOperatingSystemVersion()); return o; } -checkUnnamed5237(core.List<api.OperatingSystemVersion> o) { +checkUnnamed5636(core.List<api.OperatingSystemVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystemVersion(o[0]); checkOperatingSystemVersion(o[1]); } -buildUnnamed5238() { +buildUnnamed5637() { var o = new core.List<api.OperatingSystem>(); o.add(buildOperatingSystem()); o.add(buildOperatingSystem()); return o; } -checkUnnamed5238(core.List<api.OperatingSystem> o) { +checkUnnamed5637(core.List<api.OperatingSystem> o) { unittest.expect(o, unittest.hasLength(2)); checkOperatingSystem(o[0]); checkOperatingSystem(o[1]); } -buildUnnamed5239() { +buildUnnamed5638() { var o = new core.List<api.PlatformType>(); o.add(buildPlatformType()); o.add(buildPlatformType()); return o; } -checkUnnamed5239(core.List<api.PlatformType> o) { +checkUnnamed5638(core.List<api.PlatformType> o) { unittest.expect(o, unittest.hasLength(2)); checkPlatformType(o[0]); checkPlatformType(o[1]); @@ -9064,12 +9543,12 @@ var o = new api.TechnologyTargeting(); buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - o.browsers = buildUnnamed5234(); - o.connectionTypes = buildUnnamed5235(); - o.mobileCarriers = buildUnnamed5236(); - o.operatingSystemVersions = buildUnnamed5237(); - o.operatingSystems = buildUnnamed5238(); - o.platformTypes = buildUnnamed5239(); + o.browsers = buildUnnamed5633(); + o.connectionTypes = buildUnnamed5634(); + o.mobileCarriers = buildUnnamed5635(); + o.operatingSystemVersions = buildUnnamed5636(); + o.operatingSystems = buildUnnamed5637(); + o.platformTypes = buildUnnamed5638(); } buildCounterTechnologyTargeting--; return o; @@ -9078,12 +9557,12 @@ checkTechnologyTargeting(api.TechnologyTargeting o) { buildCounterTechnologyTargeting++; if (buildCounterTechnologyTargeting < 3) { - checkUnnamed5234(o.browsers); - checkUnnamed5235(o.connectionTypes); - checkUnnamed5236(o.mobileCarriers); - checkUnnamed5237(o.operatingSystemVersions); - checkUnnamed5238(o.operatingSystems); - checkUnnamed5239(o.platformTypes); + checkUnnamed5633(o.browsers); + checkUnnamed5634(o.connectionTypes); + checkUnnamed5635(o.mobileCarriers); + checkUnnamed5636(o.operatingSystemVersions); + checkUnnamed5637(o.operatingSystems); + checkUnnamed5638(o.platformTypes); } buildCounterTechnologyTargeting--; } @@ -9130,14 +9609,14 @@ buildCounterThirdPartyTrackingUrl--; } -buildUnnamed5240() { +buildUnnamed5639() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed5240(core.List<core.int> o) { +checkUnnamed5639(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)); @@ -9148,7 +9627,7 @@ var o = new api.TranscodeSetting(); buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - o.enabledVideoFormats = buildUnnamed5240(); + o.enabledVideoFormats = buildUnnamed5639(); o.kind = "foo"; } buildCounterTranscodeSetting--; @@ -9158,7 +9637,7 @@ checkTranscodeSetting(api.TranscodeSetting o) { buildCounterTranscodeSetting++; if (buildCounterTranscodeSetting < 3) { - checkUnnamed5240(o.enabledVideoFormats); + checkUnnamed5639(o.enabledVideoFormats); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterTranscodeSetting--; @@ -9241,14 +9720,14 @@ buildCounterUserProfile--; } -buildUnnamed5241() { +buildUnnamed5640() { var o = new core.List<api.UserProfile>(); o.add(buildUserProfile()); o.add(buildUserProfile()); return o; } -checkUnnamed5241(core.List<api.UserProfile> o) { +checkUnnamed5640(core.List<api.UserProfile> o) { unittest.expect(o, unittest.hasLength(2)); checkUserProfile(o[0]); checkUserProfile(o[1]); @@ -9260,7 +9739,7 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { o.etag = "foo"; - o.items = buildUnnamed5241(); + o.items = buildUnnamed5640(); o.kind = "foo"; } buildCounterUserProfileList--; @@ -9271,20 +9750,20 @@ buildCounterUserProfileList++; if (buildCounterUserProfileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed5241(o.items); + checkUnnamed5640(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUserProfileList--; } -buildUnnamed5242() { +buildUnnamed5641() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed5242(core.List<api.UserRolePermission> o) { +checkUnnamed5641(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -9301,7 +9780,7 @@ o.kind = "foo"; o.name = "foo"; o.parentUserRoleId = "foo"; - o.permissions = buildUnnamed5242(); + o.permissions = buildUnnamed5641(); o.subaccountId = "foo"; } buildCounterUserRole--; @@ -9317,7 +9796,7 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parentUserRoleId, unittest.equals('foo')); - checkUnnamed5242(o.permissions); + checkUnnamed5641(o.permissions); unittest.expect(o.subaccountId, unittest.equals('foo')); } buildCounterUserRole--; @@ -9373,14 +9852,14 @@ buildCounterUserRolePermissionGroup--; } -buildUnnamed5243() { +buildUnnamed5642() { var o = new core.List<api.UserRolePermissionGroup>(); o.add(buildUserRolePermissionGroup()); o.add(buildUserRolePermissionGroup()); return o; } -checkUnnamed5243(core.List<api.UserRolePermissionGroup> o) { +checkUnnamed5642(core.List<api.UserRolePermissionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermissionGroup(o[0]); checkUserRolePermissionGroup(o[1]); @@ -9392,7 +9871,7 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { o.kind = "foo"; - o.userRolePermissionGroups = buildUnnamed5243(); + o.userRolePermissionGroups = buildUnnamed5642(); } buildCounterUserRolePermissionGroupsListResponse--; return o; @@ -9403,19 +9882,19 @@ buildCounterUserRolePermissionGroupsListResponse++; if (buildCounterUserRolePermissionGroupsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5243(o.userRolePermissionGroups); + checkUnnamed5642(o.userRolePermissionGroups); } buildCounterUserRolePermissionGroupsListResponse--; } -buildUnnamed5244() { +buildUnnamed5643() { var o = new core.List<api.UserRolePermission>(); o.add(buildUserRolePermission()); o.add(buildUserRolePermission()); return o; } -checkUnnamed5244(core.List<api.UserRolePermission> o) { +checkUnnamed5643(core.List<api.UserRolePermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRolePermission(o[0]); checkUserRolePermission(o[1]); @@ -9427,7 +9906,7 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { o.kind = "foo"; - o.userRolePermissions = buildUnnamed5244(); + o.userRolePermissions = buildUnnamed5643(); } buildCounterUserRolePermissionsListResponse--; return o; @@ -9437,19 +9916,19 @@ buildCounterUserRolePermissionsListResponse++; if (buildCounterUserRolePermissionsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5244(o.userRolePermissions); + checkUnnamed5643(o.userRolePermissions); } buildCounterUserRolePermissionsListResponse--; } -buildUnnamed5245() { +buildUnnamed5644() { var o = new core.List<api.UserRole>(); o.add(buildUserRole()); o.add(buildUserRole()); return o; } -checkUnnamed5245(core.List<api.UserRole> o) { +checkUnnamed5644(core.List<api.UserRole> o) { unittest.expect(o, unittest.hasLength(2)); checkUserRole(o[0]); checkUserRole(o[1]); @@ -9462,7 +9941,7 @@ if (buildCounterUserRolesListResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.userRoles = buildUnnamed5245(); + o.userRoles = buildUnnamed5644(); } buildCounterUserRolesListResponse--; return o; @@ -9473,7 +9952,7 @@ if (buildCounterUserRolesListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5245(o.userRoles); + checkUnnamed5644(o.userRoles); } buildCounterUserRolesListResponse--; } @@ -9505,14 +9984,14 @@ buildCounterVideoFormat--; } -buildUnnamed5246() { +buildUnnamed5645() { var o = new core.List<api.VideoFormat>(); o.add(buildVideoFormat()); o.add(buildVideoFormat()); return o; } -checkUnnamed5246(core.List<api.VideoFormat> o) { +checkUnnamed5645(core.List<api.VideoFormat> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFormat(o[0]); checkVideoFormat(o[1]); @@ -9524,7 +10003,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { o.kind = "foo"; - o.videoFormats = buildUnnamed5246(); + o.videoFormats = buildUnnamed5645(); } buildCounterVideoFormatsListResponse--; return o; @@ -9534,7 +10013,7 @@ buildCounterVideoFormatsListResponse++; if (buildCounterVideoFormatsListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5246(o.videoFormats); + checkUnnamed5645(o.videoFormats); } buildCounterVideoFormatsListResponse--; } @@ -9567,6 +10046,8 @@ if (buildCounterVideoSettings < 3) { o.companionSettings = buildCompanionSetting(); o.kind = "foo"; + o.obaEnabled = true; + o.obaSettings = buildObaIcon(); o.orientation = "foo"; o.skippableSettings = buildSkippableSetting(); o.transcodeSettings = buildTranscodeSetting(); @@ -9580,6 +10061,8 @@ if (buildCounterVideoSettings < 3) { checkCompanionSetting(o.companionSettings); unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.obaEnabled, unittest.isTrue); + checkObaIcon(o.obaSettings); unittest.expect(o.orientation, unittest.equals('foo')); checkSkippableSetting(o.skippableSettings); checkTranscodeSetting(o.transcodeSettings); @@ -9587,1184 +10070,1184 @@ buildCounterVideoSettings--; } -buildUnnamed5247() { +buildUnnamed5646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5247(core.List<core.String> o) { +checkUnnamed5646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5248() { +buildUnnamed5647() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5248(core.List<core.String> o) { +checkUnnamed5647(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5249() { +buildUnnamed5648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5249(core.List<core.String> o) { +checkUnnamed5648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5250() { +buildUnnamed5649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5250(core.List<core.String> o) { +checkUnnamed5649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5251() { +buildUnnamed5650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5251(core.List<core.String> o) { +checkUnnamed5650(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5252() { +buildUnnamed5651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5252(core.List<core.String> o) { +checkUnnamed5651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5253() { +buildUnnamed5652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5253(core.List<core.String> o) { +checkUnnamed5652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5254() { +buildUnnamed5653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5254(core.List<core.String> o) { +checkUnnamed5653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5255() { +buildUnnamed5654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5255(core.List<core.String> o) { +checkUnnamed5654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5256() { +buildUnnamed5655() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5256(core.List<core.String> o) { +checkUnnamed5655(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5257() { +buildUnnamed5656() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5257(core.List<core.String> o) { +checkUnnamed5656(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5258() { +buildUnnamed5657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5258(core.List<core.String> o) { +checkUnnamed5657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5259() { +buildUnnamed5658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5259(core.List<core.String> o) { +checkUnnamed5658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5260() { +buildUnnamed5659() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5260(core.List<core.String> o) { +checkUnnamed5659(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5261() { +buildUnnamed5660() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5261(core.List<core.String> o) { +checkUnnamed5660(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5262() { +buildUnnamed5661() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5262(core.List<core.String> o) { +checkUnnamed5661(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5263() { +buildUnnamed5662() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5263(core.List<core.String> o) { +checkUnnamed5662(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5264() { +buildUnnamed5663() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5264(core.List<core.String> o) { +checkUnnamed5663(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5265() { +buildUnnamed5664() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5265(core.List<core.String> o) { +checkUnnamed5664(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5266() { +buildUnnamed5665() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5266(core.List<core.String> o) { +checkUnnamed5665(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5267() { +buildUnnamed5666() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5267(core.List<core.String> o) { +checkUnnamed5666(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5268() { +buildUnnamed5667() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5268(core.List<core.String> o) { +checkUnnamed5667(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5269() { +buildUnnamed5668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5269(core.List<core.String> o) { +checkUnnamed5668(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5270() { +buildUnnamed5669() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5270(core.List<core.String> o) { +checkUnnamed5669(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5271() { +buildUnnamed5670() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5271(core.List<core.String> o) { +checkUnnamed5670(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5272() { +buildUnnamed5671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5272(core.List<core.String> o) { +checkUnnamed5671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5273() { +buildUnnamed5672() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5273(core.List<core.String> o) { +checkUnnamed5672(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5274() { +buildUnnamed5673() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5274(core.List<core.String> o) { +checkUnnamed5673(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5275() { +buildUnnamed5674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5275(core.List<core.String> o) { +checkUnnamed5674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5276() { +buildUnnamed5675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5276(core.List<core.String> o) { +checkUnnamed5675(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5277() { +buildUnnamed5676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5277(core.List<core.String> o) { +checkUnnamed5676(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5278() { +buildUnnamed5677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5278(core.List<core.String> o) { +checkUnnamed5677(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5279() { +buildUnnamed5678() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5279(core.List<core.String> o) { +checkUnnamed5678(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5280() { +buildUnnamed5679() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5280(core.List<core.String> o) { +checkUnnamed5679(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5281() { +buildUnnamed5680() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5281(core.List<core.String> o) { +checkUnnamed5680(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5282() { +buildUnnamed5681() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5282(core.List<core.String> o) { +checkUnnamed5681(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5283() { +buildUnnamed5682() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5283(core.List<core.String> o) { +checkUnnamed5682(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5284() { +buildUnnamed5683() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5284(core.List<core.String> o) { +checkUnnamed5683(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5285() { +buildUnnamed5684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5285(core.List<core.String> o) { +checkUnnamed5684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5286() { +buildUnnamed5685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5286(core.List<core.String> o) { +checkUnnamed5685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5287() { +buildUnnamed5686() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5287(core.List<core.String> o) { +checkUnnamed5686(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5288() { +buildUnnamed5687() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5288(core.List<core.String> o) { +checkUnnamed5687(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5289() { +buildUnnamed5688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5289(core.List<core.String> o) { +checkUnnamed5688(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5290() { +buildUnnamed5689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5290(core.List<core.String> o) { +checkUnnamed5689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5291() { +buildUnnamed5690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5291(core.List<core.String> o) { +checkUnnamed5690(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5292() { +buildUnnamed5691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5292(core.List<core.String> o) { +checkUnnamed5691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5293() { +buildUnnamed5692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5293(core.List<core.String> o) { +checkUnnamed5692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5294() { +buildUnnamed5693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5294(core.List<core.String> o) { +checkUnnamed5693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5295() { +buildUnnamed5694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5295(core.List<core.String> o) { +checkUnnamed5694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5296() { +buildUnnamed5695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5296(core.List<core.String> o) { +checkUnnamed5695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5297() { +buildUnnamed5696() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5297(core.List<core.String> o) { +checkUnnamed5696(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5298() { +buildUnnamed5697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5298(core.List<core.String> o) { +checkUnnamed5697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5299() { +buildUnnamed5698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5299(core.List<core.String> o) { +checkUnnamed5698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5300() { +buildUnnamed5699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5300(core.List<core.String> o) { +checkUnnamed5699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5301() { +buildUnnamed5700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5301(core.List<core.String> o) { +checkUnnamed5700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5302() { +buildUnnamed5701() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5302(core.List<core.String> o) { +checkUnnamed5701(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5303() { +buildUnnamed5702() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5303(core.List<core.String> o) { +checkUnnamed5702(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5304() { +buildUnnamed5703() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5304(core.List<core.String> o) { +checkUnnamed5703(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5305() { +buildUnnamed5704() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5305(core.List<core.String> o) { +checkUnnamed5704(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5306() { +buildUnnamed5705() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5306(core.List<core.String> o) { +checkUnnamed5705(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5307() { +buildUnnamed5706() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5307(core.List<core.String> o) { +checkUnnamed5706(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5308() { +buildUnnamed5707() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5308(core.List<core.String> o) { +checkUnnamed5707(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5309() { +buildUnnamed5708() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5309(core.List<core.String> o) { +checkUnnamed5708(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5310() { +buildUnnamed5709() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5310(core.List<core.String> o) { +checkUnnamed5709(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5311() { +buildUnnamed5710() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5311(core.List<core.String> o) { +checkUnnamed5710(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5312() { +buildUnnamed5711() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5312(core.List<core.String> o) { +checkUnnamed5711(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5313() { +buildUnnamed5712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5313(core.List<core.String> o) { +checkUnnamed5712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5314() { +buildUnnamed5713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5314(core.List<core.String> o) { +checkUnnamed5713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5315() { +buildUnnamed5714() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5315(core.List<core.String> o) { +checkUnnamed5714(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5316() { +buildUnnamed5715() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5316(core.List<core.String> o) { +checkUnnamed5715(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5317() { +buildUnnamed5716() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5317(core.List<core.String> o) { +checkUnnamed5716(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5318() { +buildUnnamed5717() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5318(core.List<core.String> o) { +checkUnnamed5717(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5319() { +buildUnnamed5718() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5319(core.List<core.String> o) { +checkUnnamed5718(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5320() { +buildUnnamed5719() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5320(core.List<core.String> o) { +checkUnnamed5719(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5321() { +buildUnnamed5720() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5321(core.List<core.String> o) { +checkUnnamed5720(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5322() { +buildUnnamed5721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5322(core.List<core.String> o) { +checkUnnamed5721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5323() { +buildUnnamed5722() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5323(core.List<core.String> o) { +checkUnnamed5722(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5324() { +buildUnnamed5723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5324(core.List<core.String> o) { +checkUnnamed5723(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5325() { +buildUnnamed5724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5325(core.List<core.String> o) { +checkUnnamed5724(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5326() { +buildUnnamed5725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5326(core.List<core.String> o) { +checkUnnamed5725(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5327() { +buildUnnamed5726() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5327(core.List<core.String> o) { +checkUnnamed5726(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5328() { +buildUnnamed5727() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5328(core.List<core.String> o) { +checkUnnamed5727(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5329() { +buildUnnamed5728() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5329(core.List<core.String> o) { +checkUnnamed5728(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5330() { +buildUnnamed5729() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5330(core.List<core.String> o) { +checkUnnamed5729(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5331() { +buildUnnamed5730() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5331(core.List<core.String> o) { +checkUnnamed5730(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5332() { +buildUnnamed5731() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5332(core.List<core.String> o) { +checkUnnamed5731(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5333() { +buildUnnamed5732() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5333(core.List<core.String> o) { +checkUnnamed5732(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5334() { +buildUnnamed5733() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5334(core.List<core.String> o) { +checkUnnamed5733(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5335() { +buildUnnamed5734() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5335(core.List<core.String> o) { +checkUnnamed5734(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5336() { +buildUnnamed5735() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5336(core.List<core.String> o) { +checkUnnamed5735(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5337() { +buildUnnamed5736() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5337(core.List<core.String> o) { +checkUnnamed5736(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -11012,6 +11495,22 @@ }); }); + unittest.group("obj-schema-ChannelGrouping", () { + unittest.test("to-json--from-json", () { + var o = buildChannelGrouping(); + var od = new api.ChannelGrouping.fromJson(o.toJson()); + checkChannelGrouping(od); + }); + }); + + unittest.group("obj-schema-ChannelGroupingRule", () { + unittest.test("to-json--from-json", () { + var o = buildChannelGroupingRule(); + var od = new api.ChannelGroupingRule.fromJson(o.toJson()); + checkChannelGroupingRule(od); + }); + }); + unittest.group("obj-schema-CitiesListResponse", () { unittest.test("to-json--from-json", () { var o = buildCitiesListResponse(); @@ -11567,6 +12066,14 @@ }); }); + unittest.group("obj-schema-DisjunctiveMatchStatement", () { + unittest.test("to-json--from-json", () { + var o = buildDisjunctiveMatchStatement(); + var od = new api.DisjunctiveMatchStatement.fromJson(o.toJson()); + checkDisjunctiveMatchStatement(od); + }); + }); + unittest.group("obj-schema-DynamicTargetingKey", () { unittest.test("to-json--from-json", () { var o = buildDynamicTargetingKey(); @@ -11591,6 +12098,14 @@ }); }); + unittest.group("obj-schema-EventFilter", () { + unittest.test("to-json--from-json", () { + var o = buildEventFilter(); + var od = new api.EventFilter.fromJson(o.toJson()); + checkEventFilter(od); + }); + }); + unittest.group("obj-schema-EventTag", () { unittest.test("to-json--from-json", () { var o = buildEventTag(); @@ -12027,6 +12542,30 @@ }); }); + unittest.group("obj-schema-PathFilter", () { + unittest.test("to-json--from-json", () { + var o = buildPathFilter(); + var od = new api.PathFilter.fromJson(o.toJson()); + checkPathFilter(od); + }); + }); + + unittest.group("obj-schema-PathReportCompatibleFields", () { + unittest.test("to-json--from-json", () { + var o = buildPathReportCompatibleFields(); + var od = new api.PathReportCompatibleFields.fromJson(o.toJson()); + checkPathReportCompatibleFields(od); + }); + }); + + unittest.group("obj-schema-PathReportDimensionValue", () { + unittest.test("to-json--from-json", () { + var o = buildPathReportDimensionValue(); + var od = new api.PathReportDimensionValue.fromJson(o.toJson()); + checkPathReportDimensionValue(od); + }); + }); + unittest.group("obj-schema-PathToConversionReportCompatibleFields", () { unittest.test("to-json--from-json", () { var o = buildPathToConversionReportCompatibleFields(); @@ -12285,6 +12824,22 @@ }); }); + unittest.group("obj-schema-ReportPathAttributionCriteria", () { + unittest.test("to-json--from-json", () { + var o = buildReportPathAttributionCriteria(); + var od = new api.ReportPathAttributionCriteria.fromJson(o.toJson()); + checkReportPathAttributionCriteria(od); + }); + }); + + unittest.group("obj-schema-ReportPathCriteria", () { + unittest.test("to-json--from-json", () { + var o = buildReportPathCriteria(); + var od = new api.ReportPathCriteria.fromJson(o.toJson()); + checkReportPathCriteria(od); + }); + }); + unittest.group("obj-schema-ReportPathToConversionCriteriaReportProperties", () { unittest.test("to-json--from-json", () { @@ -13163,15 +13718,15 @@ api.AccountUserProfilesResourceApi res = new api.DfareportingApi(mock).accountUserProfiles; var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed5247(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_searchString = "foo"; + var arg_maxResults = 42; + var arg_ids = buildUnnamed5646(); var arg_subaccountId = "foo"; var arg_userRoleId = "foo"; + var arg_active = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13216,22 +13771,22 @@ } } 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["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); unittest.expect( queryMap["userRoleId"].first, unittest.equals(arg_userRoleId)); + unittest.expect( + queryMap["active"].first, unittest.equals("$arg_active")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -13242,15 +13797,15 @@ }), 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, + searchString: arg_searchString, + maxResults: arg_maxResults, + ids: arg_ids, subaccountId: arg_subaccountId, userRoleId: arg_userRoleId, + active: arg_active, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccountUserProfilesListResponse(response); @@ -13465,13 +14020,13 @@ var mock = new HttpServerMock(); api.AccountsResourceApi res = new api.DfareportingApi(mock).accounts; var arg_profileId = "foo"; - var arg_active = true; - var arg_ids = buildUnnamed5248(); var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_searchString = "foo"; + var arg_pageToken = "foo"; + var arg_sortField = "foo"; + var arg_ids = buildUnnamed5647(); + var arg_active = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13515,19 +14070,19 @@ 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)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect( queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( - queryMap["sortField"].first, unittest.equals(arg_sortField)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["active"].first, unittest.equals("$arg_active")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -13538,13 +14093,13 @@ }), 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, + searchString: arg_searchString, + pageToken: arg_pageToken, + sortField: arg_sortField, + ids: arg_ids, + active: arg_active, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAccountsListResponse(response); @@ -13823,29 +14378,29 @@ var mock = new HttpServerMock(); api.AdsResourceApi res = new api.DfareportingApi(mock).ads; var arg_profileId = "foo"; + var arg_dynamicClickTracker = true; + var arg_overriddenEventTagId = "foo"; + var arg_maxResults = 42; + var arg_placementIds = buildUnnamed5648(); + var arg_remarketingListIds = buildUnnamed5649(); + var arg_pageToken = "foo"; + var arg_campaignIds = buildUnnamed5650(); + var arg_audienceSegmentIds = buildUnnamed5651(); + var arg_creativeOptimizationConfigurationIds = buildUnnamed5652(); var arg_active = true; var arg_advertiserId = "foo"; + var arg_ids = buildUnnamed5653(); var arg_archived = true; - var arg_audienceSegmentIds = buildUnnamed5249(); - var arg_campaignIds = buildUnnamed5250(); - var arg_compatibility = "foo"; - var arg_creativeIds = buildUnnamed5251(); - var arg_creativeOptimizationConfigurationIds = buildUnnamed5252(); - var arg_dynamicClickTracker = true; - var arg_ids = buildUnnamed5253(); - var arg_landingPageIds = buildUnnamed5254(); - var arg_maxResults = 42; - var arg_overriddenEventTagId = "foo"; - var arg_pageToken = "foo"; - var arg_placementIds = buildUnnamed5255(); - var arg_remarketingListIds = buildUnnamed5256(); - var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed5257(); + var arg_landingPageIds = buildUnnamed5654(); var arg_sortField = "foo"; - var arg_sortOrder = "foo"; var arg_sslCompliant = true; + var arg_compatibility = "foo"; + var arg_sortOrder = "foo"; + var arg_searchString = "foo"; + var arg_sizeIds = buildUnnamed5655(); + var arg_creativeIds = buildUnnamed5656(); var arg_sslRequired = true; - var arg_type = buildUnnamed5258(); + var arg_type = buildUnnamed5657(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13889,46 +14444,46 @@ 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["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(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["placementIds"], unittest.equals(arg_placementIds)); unittest.expect(queryMap["remarketingListIds"], unittest.equals(arg_remarketingListIds)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["campaignIds"], unittest.equals(arg_campaignIds)); + unittest.expect(queryMap["audienceSegmentIds"], + unittest.equals(arg_audienceSegmentIds)); + unittest.expect(queryMap["creativeOptimizationConfigurationIds"], + unittest.equals(arg_creativeOptimizationConfigurationIds)); + unittest.expect( + queryMap["active"].first, unittest.equals("$arg_active")); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["archived"].first, unittest.equals("$arg_archived")); + unittest.expect( + queryMap["landingPageIds"], unittest.equals(arg_landingPageIds)); + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["sslCompliant"].first, + unittest.equals("$arg_sslCompliant")); + unittest.expect(queryMap["compatibility"].first, + unittest.equals(arg_compatibility)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + 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")); + queryMap["creativeIds"], unittest.equals(arg_creativeIds)); unittest.expect( queryMap["sslRequired"].first, unittest.equals("$arg_sslRequired")); unittest.expect(queryMap["type"], unittest.equals(arg_type)); @@ -13942,28 +14497,28 @@ }), 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, dynamicClickTracker: arg_dynamicClickTracker, - ids: arg_ids, - landingPageIds: arg_landingPageIds, - maxResults: arg_maxResults, overriddenEventTagId: arg_overriddenEventTagId, - pageToken: arg_pageToken, + maxResults: arg_maxResults, placementIds: arg_placementIds, remarketingListIds: arg_remarketingListIds, + pageToken: arg_pageToken, + campaignIds: arg_campaignIds, + audienceSegmentIds: arg_audienceSegmentIds, + creativeOptimizationConfigurationIds: + arg_creativeOptimizationConfigurationIds, + active: arg_active, + advertiserId: arg_advertiserId, + ids: arg_ids, + archived: arg_archived, + landingPageIds: arg_landingPageIds, + sortField: arg_sortField, + sslCompliant: arg_sslCompliant, + compatibility: arg_compatibility, + sortOrder: arg_sortOrder, searchString: arg_searchString, sizeIds: arg_sizeIds, - sortField: arg_sortField, - sortOrder: arg_sortOrder, - sslCompliant: arg_sslCompliant, + creativeIds: arg_creativeIds, sslRequired: arg_sslRequired, type: arg_type, $fields: arg_$fields) @@ -14312,12 +14867,12 @@ api.AdvertiserGroupsResourceApi res = new api.DfareportingApi(mock).advertiserGroups; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5259(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_sortField = "foo"; + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_ids = buildUnnamed5658(); var arg_sortOrder = "foo"; + var arg_sortField = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -14361,17 +14916,17 @@ 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)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -14382,12 +14937,12 @@ }), true); res .list(arg_profileId, - ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, searchString: arg_searchString, - sortField: arg_sortField, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + ids: arg_ids, sortOrder: arg_sortOrder, + sortField: arg_sortField, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdvertiserGroupsListResponse(response); @@ -14671,16 +15226,16 @@ api.AdvertiserLandingPagesResourceApi res = new api.DfareportingApi(mock).advertiserLandingPages; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5260(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed5261(); - var arg_ids = buildUnnamed5262(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_searchString = "foo"; + var arg_campaignIds = buildUnnamed5659(); + var arg_archived = true; var arg_sortField = "foo"; var arg_sortOrder = "foo"; var arg_subaccountId = "foo"; + var arg_ids = buildUnnamed5660(); + var arg_maxResults = 42; + var arg_advertiserIds = buildUnnamed5661(); + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -14725,24 +15280,24 @@ } } unittest.expect( - queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); - unittest.expect( - queryMap["archived"].first, unittest.equals("$arg_archived")); + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["campaignIds"], unittest.equals(arg_campaignIds)); - 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)); + queryMap["archived"].first, unittest.equals("$arg_archived")); 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["ids"], unittest.equals(arg_ids)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -14754,16 +15309,16 @@ }), true); res .list(arg_profileId, - advertiserIds: arg_advertiserIds, - archived: arg_archived, - campaignIds: arg_campaignIds, - ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, searchString: arg_searchString, + campaignIds: arg_campaignIds, + archived: arg_archived, sortField: arg_sortField, sortOrder: arg_sortOrder, subaccountId: arg_subaccountId, + ids: arg_ids, + maxResults: arg_maxResults, + advertiserIds: arg_advertiserIds, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdvertiserLandingPagesListResponse(response); @@ -15047,18 +15602,18 @@ api.AdvertisersResourceApi res = new api.DfareportingApi(mock).advertisers; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed5263(); - var arg_floodlightConfigurationIds = buildUnnamed5264(); - var arg_ids = buildUnnamed5265(); - var arg_includeAdvertisersWithoutGroupsOnly = true; - var arg_maxResults = 42; + var arg_floodlightConfigurationIds = buildUnnamed5662(); var arg_onlyParent = true; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; + var arg_ids = buildUnnamed5663(); var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_status = "foo"; + var arg_searchString = "foo"; var arg_subaccountId = "foo"; + var arg_advertiserGroupIds = buildUnnamed5664(); + var arg_pageToken = "foo"; + var arg_sortOrder = "foo"; + var arg_maxResults = 42; + var arg_status = "foo"; + var arg_includeAdvertisersWithoutGroupsOnly = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -15102,28 +15657,28 @@ 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["ids"], unittest.equals(arg_ids)); 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)); + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); + unittest.expect(queryMap["advertiserGroupIds"], + unittest.equals(arg_advertiserGroupIds)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["status"].first, unittest.equals(arg_status)); + unittest.expect(queryMap["includeAdvertisersWithoutGroupsOnly"].first, + unittest.equals("$arg_includeAdvertisersWithoutGroupsOnly")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -15134,19 +15689,19 @@ }), true); res .list(arg_profileId, - advertiserGroupIds: arg_advertiserGroupIds, floodlightConfigurationIds: arg_floodlightConfigurationIds, + onlyParent: arg_onlyParent, ids: arg_ids, + sortField: arg_sortField, + searchString: arg_searchString, + subaccountId: arg_subaccountId, + advertiserGroupIds: arg_advertiserGroupIds, + pageToken: arg_pageToken, + sortOrder: arg_sortOrder, + maxResults: arg_maxResults, + status: arg_status, 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, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAdvertisersListResponse(response); @@ -15658,19 +16213,19 @@ var mock = new HttpServerMock(); api.CampaignsResourceApi res = new api.DfareportingApi(mock).campaigns; var arg_profileId = "foo"; - var arg_advertiserGroupIds = buildUnnamed5266(); - var arg_advertiserIds = buildUnnamed5267(); - var arg_archived = true; - var arg_atLeastOneOptimizationActivity = true; - var arg_excludedIds = buildUnnamed5268(); - var arg_ids = buildUnnamed5269(); - 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"; + var arg_atLeastOneOptimizationActivity = true; + var arg_advertiserGroupIds = buildUnnamed5665(); + var arg_searchString = "foo"; + var arg_ids = buildUnnamed5666(); + var arg_excludedIds = buildUnnamed5667(); + var arg_sortField = "foo"; + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_advertiserIds = buildUnnamed5668(); + var arg_overriddenEventTagId = "foo"; + var arg_archived = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -15714,31 +16269,31 @@ 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)); + unittest.expect(queryMap["atLeastOneOptimizationActivity"].first, + unittest.equals("$arg_atLeastOneOptimizationActivity")); + unittest.expect(queryMap["advertiserGroupIds"], + unittest.equals(arg_advertiserGroupIds)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["excludedIds"], unittest.equals(arg_excludedIds)); + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + unittest.expect(queryMap["overriddenEventTagId"].first, + unittest.equals(arg_overriddenEventTagId)); + unittest.expect( + queryMap["archived"].first, unittest.equals("$arg_archived")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -15749,20 +16304,20 @@ }), 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, + atLeastOneOptimizationActivity: + arg_atLeastOneOptimizationActivity, + advertiserGroupIds: arg_advertiserGroupIds, + searchString: arg_searchString, + ids: arg_ids, + excludedIds: arg_excludedIds, + sortField: arg_sortField, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + advertiserIds: arg_advertiserIds, + overriddenEventTagId: arg_overriddenEventTagId, + archived: arg_archived, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCampaignsListResponse(response); @@ -15976,15 +16531,15 @@ api.ChangeLogsResourceApi res = new api.DfareportingApi(mock).changeLogs; var arg_profileId = "foo"; var arg_action = "foo"; - var arg_ids = buildUnnamed5270(); + var arg_searchString = "foo"; + var arg_pageToken = "foo"; + var arg_minChangeTime = "foo"; + var arg_ids = buildUnnamed5669(); + var arg_objectType = "foo"; + var arg_objectIds = buildUnnamed5670(); + var arg_userProfileIds = buildUnnamed5671(); var arg_maxChangeTime = "foo"; var arg_maxResults = 42; - var arg_minChangeTime = "foo"; - var arg_objectIds = buildUnnamed5271(); - var arg_objectType = "foo"; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_userProfileIds = buildUnnamed5272(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -16029,22 +16584,22 @@ } } unittest.expect(queryMap["action"].first, unittest.equals(arg_action)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["minChangeTime"].first, + unittest.equals(arg_minChangeTime)); unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["objectType"].first, unittest.equals(arg_objectType)); + unittest.expect(queryMap["objectIds"], unittest.equals(arg_objectIds)); + unittest.expect( + queryMap["userProfileIds"], unittest.equals(arg_userProfileIds)); 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -16056,15 +16611,15 @@ res .list(arg_profileId, action: arg_action, + searchString: arg_searchString, + pageToken: arg_pageToken, + minChangeTime: arg_minChangeTime, ids: arg_ids, + objectType: arg_objectType, + objectIds: arg_objectIds, + userProfileIds: arg_userProfileIds, maxChangeTime: arg_maxChangeTime, maxResults: arg_maxResults, - minChangeTime: arg_minChangeTime, - objectIds: arg_objectIds, - objectType: arg_objectType, - pageToken: arg_pageToken, - searchString: arg_searchString, - userProfileIds: arg_userProfileIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChangeLogsListResponse(response); @@ -16077,10 +16632,10 @@ var mock = new HttpServerMock(); api.CitiesResourceApi res = new api.DfareportingApi(mock).cities; var arg_profileId = "foo"; - var arg_countryDartIds = buildUnnamed5273(); - var arg_dartIds = buildUnnamed5274(); + var arg_dartIds = buildUnnamed5672(); + var arg_countryDartIds = buildUnnamed5673(); var arg_namePrefix = "foo"; - var arg_regionDartIds = buildUnnamed5275(); + var arg_regionDartIds = buildUnnamed5674(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -16124,9 +16679,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["dartIds"], unittest.equals(arg_dartIds)); 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( @@ -16141,8 +16696,8 @@ }), true); res .list(arg_profileId, - countryDartIds: arg_countryDartIds, dartIds: arg_dartIds, + countryDartIds: arg_countryDartIds, namePrefix: arg_namePrefix, regionDartIds: arg_regionDartIds, $fields: arg_$fields) @@ -16489,11 +17044,11 @@ api.ContentCategoriesResourceApi res = new api.DfareportingApi(mock).contentCategories; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5276(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; var arg_sortField = "foo"; + var arg_searchString = "foo"; + var arg_maxResults = 42; + var arg_ids = buildUnnamed5675(); + var arg_pageToken = "foo"; var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -16538,16 +17093,16 @@ 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["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -16559,11 +17114,11 @@ }), true); res .list(arg_profileId, - ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - searchString: arg_searchString, sortField: arg_sortField, + searchString: arg_searchString, + maxResults: arg_maxResults, + ids: arg_ids, + pageToken: arg_pageToken, sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -17295,12 +17850,12 @@ new api.DfareportingApi(mock).creativeFieldValues; var arg_profileId = "foo"; var arg_creativeFieldId = "foo"; - var arg_ids = buildUnnamed5277(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_maxResults = 42; + var arg_searchString = "foo"; + var arg_pageToken = "foo"; + var arg_sortField = "foo"; + var arg_ids = buildUnnamed5676(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -17353,17 +17908,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); 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)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -17374,12 +17929,12 @@ }), 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, + maxResults: arg_maxResults, + searchString: arg_searchString, + pageToken: arg_pageToken, + sortField: arg_sortField, + ids: arg_ids, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCreativeFieldValuesListResponse(response); @@ -17750,13 +18305,13 @@ api.CreativeFieldsResourceApi res = new api.DfareportingApi(mock).creativeFields; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5278(); - var arg_ids = buildUnnamed5279(); + var arg_advertiserIds = buildUnnamed5677(); var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_ids = buildUnnamed5678(); + var arg_searchString = "foo"; + var arg_pageToken = "foo"; + var arg_sortField = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -17802,17 +18357,17 @@ } 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)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + 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)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -17824,12 +18379,12 @@ 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, + ids: arg_ids, + searchString: arg_searchString, + pageToken: arg_pageToken, + sortField: arg_sortField, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCreativeFieldsListResponse(response); @@ -18113,14 +18668,14 @@ api.CreativeGroupsResourceApi res = new api.DfareportingApi(mock).creativeGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5280(); + var arg_ids = buildUnnamed5679(); + var arg_searchString = "foo"; + var arg_sortOrder = "foo"; + var arg_sortField = "foo"; var arg_groupNumber = 42; - var arg_ids = buildUnnamed5281(); + var arg_advertiserIds = buildUnnamed5680(); var arg_maxResults = 42; var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -18164,21 +18719,21 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect( - queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect(core.int.parse(queryMap["groupNumber"].first), unittest.equals(arg_groupNumber)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -18189,14 +18744,14 @@ }), true); res .list(arg_profileId, - advertiserIds: arg_advertiserIds, - groupNumber: arg_groupNumber, ids: arg_ids, + searchString: arg_searchString, + sortOrder: arg_sortOrder, + sortField: arg_sortField, + groupNumber: arg_groupNumber, + advertiserIds: arg_advertiserIds, maxResults: arg_maxResults, pageToken: arg_pageToken, - searchString: arg_searchString, - sortField: arg_sortField, - sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCreativeGroupsListResponse(response); @@ -18477,22 +19032,22 @@ 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 = buildUnnamed5282(); - var arg_creativeFieldIds = buildUnnamed5283(); - var arg_ids = buildUnnamed5284(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_renderingIds = buildUnnamed5285(); + var arg_sizeIds = buildUnnamed5681(); var arg_searchString = "foo"; - var arg_sizeIds = buildUnnamed5286(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; + var arg_maxResults = 42; + var arg_archived = true; + var arg_renderingIds = buildUnnamed5682(); + var arg_active = true; + var arg_pageToken = "foo"; var arg_studioCreativeId = "foo"; - var arg_types = buildUnnamed5287(); + var arg_companionCreativeIds = buildUnnamed5683(); + var arg_types = buildUnnamed5684(); + var arg_creativeFieldIds = buildUnnamed5685(); + var arg_ids = buildUnnamed5686(); + var arg_sortOrder = "foo"; + var arg_sortField = "foo"; + var arg_advertiserId = "foo"; + var arg_campaignId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -18536,35 +19091,35 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); 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)); + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["archived"].first, unittest.equals("$arg_archived")); 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)); + queryMap["active"].first, unittest.equals("$arg_active")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["studioCreativeId"].first, + unittest.equals(arg_studioCreativeId)); + unittest.expect(queryMap["companionCreativeIds"], + unittest.equals(arg_companionCreativeIds)); + unittest.expect(queryMap["types"], unittest.equals(arg_types)); + unittest.expect(queryMap["creativeFieldIds"], + unittest.equals(arg_creativeFieldIds)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); 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)); + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["campaignId"].first, unittest.equals(arg_campaignId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -18575,22 +19130,22 @@ }), true); res .list(arg_profileId, - active: arg_active, - advertiserId: arg_advertiserId, + sizeIds: arg_sizeIds, + searchString: arg_searchString, + maxResults: arg_maxResults, archived: arg_archived, - campaignId: arg_campaignId, + renderingIds: arg_renderingIds, + active: arg_active, + pageToken: arg_pageToken, + studioCreativeId: arg_studioCreativeId, companionCreativeIds: arg_companionCreativeIds, + types: arg_types, 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, + sortField: arg_sortField, + advertiserId: arg_advertiserId, + campaignId: arg_campaignId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCreativesListResponse(response); @@ -19019,17 +19574,17 @@ 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_dfpNetworkCode = "foo"; - var arg_ids = buildUnnamed5288(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; var arg_sortField = "foo"; + var arg_pageToken = "foo"; + var arg_acceptsInterstitialPlacements = true; + var arg_searchString = "foo"; var arg_sortOrder = "foo"; + var arg_maxResults = 42; + var arg_acceptsInStreamVideoPlacements = true; + var arg_dfpNetworkCode = "foo"; + var arg_ids = buildUnnamed5687(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -19073,27 +19628,27 @@ 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["dfpNetworkCode"].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["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["acceptsInterstitialPlacements"].first, + unittest.equals("$arg_acceptsInterstitialPlacements")); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["acceptsInStreamVideoPlacements"].first, + unittest.equals("$arg_acceptsInStreamVideoPlacements")); + unittest.expect(queryMap["dfpNetworkCode"].first, + unittest.equals(arg_dfpNetworkCode)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -19104,19 +19659,19 @@ }), true); res .list(arg_profileId, - acceptsInStreamVideoPlacements: - arg_acceptsInStreamVideoPlacements, - acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, acceptsPublisherPaidPlacements: arg_acceptsPublisherPaidPlacements, active: arg_active, + sortField: arg_sortField, + pageToken: arg_pageToken, + acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, + searchString: arg_searchString, + sortOrder: arg_sortOrder, + maxResults: arg_maxResults, + acceptsInStreamVideoPlacements: + arg_acceptsInStreamVideoPlacements, dfpNetworkCode: arg_dfpNetworkCode, ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - searchString: arg_searchString, - sortField: arg_sortField, - sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDirectorySitesListResponse(response); @@ -19268,9 +19823,9 @@ api.DynamicTargetingKeysResourceApi res = new api.DfareportingApi(mock).dynamicTargetingKeys; var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_names = buildUnnamed5289(); var arg_objectId = "foo"; + var arg_names = buildUnnamed5688(); + var arg_advertiserId = "foo"; var arg_objectType = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -19316,10 +19871,10 @@ } } unittest.expect( - queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + queryMap["objectId"].first, unittest.equals(arg_objectId)); unittest.expect(queryMap["names"], unittest.equals(arg_names)); unittest.expect( - queryMap["objectId"].first, unittest.equals(arg_objectId)); + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect( queryMap["objectType"].first, unittest.equals(arg_objectType)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -19332,9 +19887,9 @@ }), true); res .list(arg_profileId, - advertiserId: arg_advertiserId, - names: arg_names, objectId: arg_objectId, + names: arg_names, + advertiserId: arg_advertiserId, objectType: arg_objectType, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -19544,16 +20099,16 @@ 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 = buildUnnamed5290(); - var arg_ids = buildUnnamed5291(); - var arg_searchString = "foo"; + var arg_adId = "foo"; var arg_sortField = "foo"; + var arg_eventTagTypes = buildUnnamed5689(); var arg_sortOrder = "foo"; + var arg_advertiserId = "foo"; + var arg_searchString = "foo"; + var arg_enabled = true; + var arg_ids = buildUnnamed5690(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -19597,24 +20152,24 @@ 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["adId"].first, unittest.equals(arg_adId)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( + queryMap["eventTagTypes"], unittest.equals(arg_eventTagTypes)); + unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect( + queryMap["enabled"].first, unittest.equals("$arg_enabled")); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -19625,16 +20180,16 @@ }), 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, + adId: arg_adId, sortField: arg_sortField, + eventTagTypes: arg_eventTagTypes, sortOrder: arg_sortOrder, + advertiserId: arg_advertiserId, + searchString: arg_searchString, + enabled: arg_enabled, + ids: arg_ids, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEventTagsListResponse(response); @@ -19850,11 +20405,11 @@ 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"; + var arg_maxResults = 42; + var arg_sortField = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -19898,15 +20453,15 @@ 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)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -19917,11 +20472,11 @@ }), true); res .list(arg_profileId, - maxResults: arg_maxResults, pageToken: arg_pageToken, scope: arg_scope, - sortField: arg_sortField, sortOrder: arg_sortOrder, + maxResults: arg_maxResults, + sortField: arg_sortField, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFileList(response); @@ -20203,19 +20758,19 @@ api.FloodlightActivitiesResourceApi res = new api.DfareportingApi(mock).floodlightActivities; var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightActivityGroupIds = buildUnnamed5292(); - var arg_floodlightActivityGroupName = "foo"; - var arg_floodlightActivityGroupTagString = "foo"; - var arg_floodlightActivityGroupType = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed5293(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; var arg_tagString = "foo"; + var arg_searchString = "foo"; + var arg_floodlightActivityGroupType = "foo"; + var arg_sortOrder = "foo"; + var arg_floodlightActivityGroupIds = buildUnnamed5691(); + var arg_ids = buildUnnamed5692(); + var arg_sortField = "foo"; + var arg_maxResults = 42; + var arg_floodlightActivityGroupName = "foo"; + var arg_advertiserId = "foo"; + var arg_pageToken = "foo"; + var arg_floodlightConfigurationId = "foo"; + var arg_floodlightActivityGroupTagString = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -20260,30 +20815,30 @@ } } 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)); + queryMap["tagString"].first, unittest.equals(arg_tagString)); unittest.expect( queryMap["searchString"].first, unittest.equals(arg_searchString)); - unittest.expect( - queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["floodlightActivityGroupType"].first, + unittest.equals(arg_floodlightActivityGroupType)); unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["floodlightActivityGroupIds"], + unittest.equals(arg_floodlightActivityGroupIds)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect( - queryMap["tagString"].first, unittest.equals(arg_tagString)); + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["floodlightActivityGroupName"].first, + unittest.equals(arg_floodlightActivityGroupName)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["floodlightConfigurationId"].first, + unittest.equals(arg_floodlightConfigurationId)); + unittest.expect(queryMap["floodlightActivityGroupTagString"].first, + unittest.equals(arg_floodlightActivityGroupTagString)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -20294,20 +20849,20 @@ }), true); res .list(arg_profileId, - advertiserId: arg_advertiserId, + tagString: arg_tagString, + searchString: arg_searchString, + floodlightActivityGroupType: arg_floodlightActivityGroupType, + sortOrder: arg_sortOrder, floodlightActivityGroupIds: arg_floodlightActivityGroupIds, + ids: arg_ids, + sortField: arg_sortField, + maxResults: arg_maxResults, floodlightActivityGroupName: arg_floodlightActivityGroupName, + advertiserId: arg_advertiserId, + pageToken: arg_pageToken, + floodlightConfigurationId: arg_floodlightConfigurationId, 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, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFloodlightActivitiesListResponse(response); @@ -20591,15 +21146,15 @@ api.FloodlightActivityGroupsResourceApi res = new api.DfareportingApi(mock).floodlightActivityGroups; var arg_profileId = "foo"; - var arg_advertiserId = "foo"; - var arg_floodlightConfigurationId = "foo"; - var arg_ids = buildUnnamed5294(); var arg_maxResults = 42; + var arg_advertiserId = "foo"; var arg_pageToken = "foo"; + var arg_sortOrder = "foo"; + var arg_floodlightConfigurationId = "foo"; + var arg_ids = buildUnnamed5693(); + var arg_type = "foo"; var arg_searchString = "foo"; var arg_sortField = "foo"; - var arg_sortOrder = "foo"; - var arg_type = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -20643,22 +21198,22 @@ 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["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["floodlightConfigurationId"].first, + unittest.equals(arg_floodlightConfigurationId)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -20670,15 +21225,15 @@ }), true); res .list(arg_profileId, + maxResults: arg_maxResults, advertiserId: arg_advertiserId, + pageToken: arg_pageToken, + sortOrder: arg_sortOrder, floodlightConfigurationId: arg_floodlightConfigurationId, ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, + type: arg_type, searchString: arg_searchString, sortField: arg_sortField, - sortOrder: arg_sortOrder, - type: arg_type, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFloodlightActivityGroupsListResponse(response); @@ -20895,7 +21450,7 @@ api.FloodlightConfigurationsResourceApi res = new api.DfareportingApi(mock).floodlightConfigurations; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5295(); + var arg_ids = buildUnnamed5694(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -21177,15 +21732,15 @@ new api.DfareportingApi(mock).inventoryItems; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed5296(); + var arg_siteId = buildUnnamed5695(); + var arg_ids = buildUnnamed5696(); var arg_inPlan = true; var arg_maxResults = 42; - var arg_orderId = buildUnnamed5297(); - var arg_pageToken = "foo"; - var arg_siteId = buildUnnamed5298(); - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; var arg_type = "foo"; + var arg_orderId = buildUnnamed5697(); + var arg_sortOrder = "foo"; + var arg_pageToken = "foo"; + var arg_sortField = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -21238,20 +21793,20 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); 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["type"].first, unittest.equals(arg_type)); unittest.expect(queryMap["orderId"], unittest.equals(arg_orderId)); unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + 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)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -21262,15 +21817,15 @@ }), true); res .list(arg_profileId, arg_projectId, + siteId: arg_siteId, 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, + orderId: arg_orderId, + sortOrder: arg_sortOrder, + pageToken: arg_pageToken, + sortField: arg_sortField, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkInventoryItemsListResponse(response); @@ -21477,11 +22032,11 @@ var mock = new HttpServerMock(); api.MobileAppsResourceApi res = new api.DfareportingApi(mock).mobileApps; var arg_profileId = "foo"; - var arg_directories = buildUnnamed5299(); - var arg_ids = buildUnnamed5300(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_searchString = "foo"; + var arg_pageToken = "foo"; + var arg_directories = buildUnnamed5698(); + var arg_maxResults = 42; + var arg_ids = buildUnnamed5699(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -21526,14 +22081,14 @@ } } unittest.expect( - queryMap["directories"], unittest.equals(arg_directories)); - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["searchString"].first, unittest.equals(arg_searchString)); + queryMap["directories"], unittest.equals(arg_directories)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -21544,11 +22099,11 @@ }), true); res .list(arg_profileId, - directories: arg_directories, - ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, searchString: arg_searchString, + pageToken: arg_pageToken, + directories: arg_directories, + maxResults: arg_maxResults, + ids: arg_ids, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMobileAppsListResponse(response); @@ -22037,15 +22592,15 @@ new api.DfareportingApi(mock).orderDocuments; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_approved = true; - var arg_ids = buildUnnamed5301(); - var arg_maxResults = 42; - var arg_orderId = buildUnnamed5302(); var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_siteId = buildUnnamed5303(); + var arg_orderId = buildUnnamed5700(); + var arg_approved = true; + var arg_siteId = buildUnnamed5701(); var arg_sortField = "foo"; + var arg_maxResults = 42; + var arg_searchString = "foo"; var arg_sortOrder = "foo"; + var arg_ids = buildUnnamed5702(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -22099,20 +22654,20 @@ } } 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)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); 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)); + queryMap["approved"].first, unittest.equals("$arg_approved")); unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -22123,15 +22678,15 @@ }), 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, + orderId: arg_orderId, + approved: arg_approved, siteId: arg_siteId, sortField: arg_sortField, + maxResults: arg_maxResults, + searchString: arg_searchString, sortOrder: arg_sortOrder, + ids: arg_ids, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOrderDocumentsListResponse(response); @@ -22221,12 +22776,12 @@ api.OrdersResourceApi res = new api.DfareportingApi(mock).orders; var arg_profileId = "foo"; var arg_projectId = "foo"; - var arg_ids = buildUnnamed5304(); var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_siteId = buildUnnamed5305(); + var arg_ids = buildUnnamed5703(); var arg_sortField = "foo"; + var arg_pageToken = "foo"; + var arg_siteId = buildUnnamed5704(); var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -22280,17 +22835,17 @@ 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["ids"], unittest.equals(arg_ids)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["siteId"], unittest.equals(arg_siteId)); + unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -22302,12 +22857,12 @@ }), true); res .list(arg_profileId, arg_projectId, - ids: arg_ids, maxResults: arg_maxResults, - pageToken: arg_pageToken, searchString: arg_searchString, - siteId: arg_siteId, + ids: arg_ids, sortField: arg_sortField, + pageToken: arg_pageToken, + siteId: arg_siteId, sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -22456,25 +23011,25 @@ api.PlacementGroupsResourceApi res = new api.DfareportingApi(mock).placementGroups; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5306(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed5307(); - var arg_contentCategoryIds = buildUnnamed5308(); - var arg_directorySiteIds = buildUnnamed5309(); - var arg_ids = buildUnnamed5310(); - 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 = buildUnnamed5311(); - var arg_pricingTypes = buildUnnamed5312(); + var arg_siteIds = buildUnnamed5705(); var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed5313(); - var arg_sortField = "foo"; + var arg_archived = true; + var arg_maxStartDate = "foo"; + var arg_pricingTypes = buildUnnamed5706(); + var arg_contentCategoryIds = buildUnnamed5707(); var arg_sortOrder = "foo"; + var arg_pageToken = "foo"; + var arg_advertiserIds = buildUnnamed5708(); + var arg_minEndDate = "foo"; + var arg_maxResults = 42; + var arg_minStartDate = "foo"; + var arg_ids = buildUnnamed5709(); + var arg_placementStrategyIds = buildUnnamed5710(); + var arg_directorySiteIds = buildUnnamed5711(); + var arg_maxEndDate = "foo"; + var arg_sortField = "foo"; + var arg_campaignIds = buildUnnamed5712(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -22518,42 +23073,42 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["placementGroupType"].first, + unittest.equals(arg_placementGroupType)); + unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); unittest.expect( - queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect( queryMap["archived"].first, unittest.equals("$arg_archived")); unittest.expect( - queryMap["campaignIds"], unittest.equals(arg_campaignIds)); + queryMap["maxStartDate"].first, unittest.equals(arg_maxStartDate)); + unittest.expect( + queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); 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)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + unittest.expect( + queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); 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["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["placementStrategyIds"], unittest.equals(arg_placementStrategyIds)); + unittest.expect(queryMap["directorySiteIds"], + unittest.equals(arg_directorySiteIds)); 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)); + queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["campaignIds"], unittest.equals(arg_campaignIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -22564,25 +23119,25 @@ }), 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, + searchString: arg_searchString, + archived: arg_archived, + maxStartDate: arg_maxStartDate, + pricingTypes: arg_pricingTypes, + contentCategoryIds: arg_contentCategoryIds, sortOrder: arg_sortOrder, + pageToken: arg_pageToken, + advertiserIds: arg_advertiserIds, + minEndDate: arg_minEndDate, + maxResults: arg_maxResults, + minStartDate: arg_minStartDate, + ids: arg_ids, + placementStrategyIds: arg_placementStrategyIds, + directorySiteIds: arg_directorySiteIds, + maxEndDate: arg_maxEndDate, + sortField: arg_sortField, + campaignIds: arg_campaignIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlacementGroupsListResponse(response); @@ -22931,11 +23486,11 @@ api.PlacementStrategiesResourceApi res = new api.DfareportingApi(mock).placementStrategies; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5314(); - var arg_maxResults = 42; + var arg_sortField = "foo"; + var arg_ids = buildUnnamed5713(); var arg_pageToken = "foo"; var arg_searchString = "foo"; - var arg_sortField = "foo"; + var arg_maxResults = 42; var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -22980,15 +23535,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["sortField"].first, unittest.equals(arg_sortField)); 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(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -23001,11 +23556,11 @@ }), true); res .list(arg_profileId, + sortField: arg_sortField, ids: arg_ids, - maxResults: arg_maxResults, pageToken: arg_pageToken, searchString: arg_searchString, - sortField: arg_sortField, + maxResults: arg_maxResults, sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -23156,8 +23711,8 @@ api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; var arg_campaignId = "foo"; - var arg_placementIds = buildUnnamed5315(); - var arg_tagFormats = buildUnnamed5316(); + var arg_tagFormats = buildUnnamed5714(); + var arg_placementIds = buildUnnamed5715(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -23204,9 +23759,9 @@ 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)); + unittest.expect( + queryMap["placementIds"], unittest.equals(arg_placementIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -23218,8 +23773,8 @@ res .generatetags(arg_profileId, campaignId: arg_campaignId, - placementIds: arg_placementIds, tagFormats: arg_tagFormats, + placementIds: arg_placementIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlacementsGenerateTagsResponse(response); @@ -23362,28 +23917,28 @@ var mock = new HttpServerMock(); api.PlacementsResourceApi res = new api.DfareportingApi(mock).placements; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5317(); - var arg_archived = true; - var arg_campaignIds = buildUnnamed5318(); - var arg_compatibilities = buildUnnamed5319(); - var arg_contentCategoryIds = buildUnnamed5320(); - var arg_directorySiteIds = buildUnnamed5321(); - var arg_groupIds = buildUnnamed5322(); - var arg_ids = buildUnnamed5323(); - 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 = buildUnnamed5324(); - var arg_pricingTypes = buildUnnamed5325(); - var arg_searchString = "foo"; - var arg_siteIds = buildUnnamed5326(); - var arg_sizeIds = buildUnnamed5327(); - var arg_sortField = "foo"; + var arg_minEndDate = "foo"; + var arg_pageToken = "foo"; var arg_sortOrder = "foo"; + var arg_siteIds = buildUnnamed5716(); + var arg_directorySiteIds = buildUnnamed5717(); + var arg_pricingTypes = buildUnnamed5718(); + var arg_groupIds = buildUnnamed5719(); + var arg_compatibilities = buildUnnamed5720(); + var arg_contentCategoryIds = buildUnnamed5721(); + var arg_maxStartDate = "foo"; + var arg_minStartDate = "foo"; + var arg_ids = buildUnnamed5722(); + var arg_placementStrategyIds = buildUnnamed5723(); + var arg_sortField = "foo"; + var arg_campaignIds = buildUnnamed5724(); + var arg_searchString = "foo"; + var arg_maxEndDate = "foo"; + var arg_advertiserIds = buildUnnamed5725(); + var arg_sizeIds = buildUnnamed5726(); + var arg_archived = true; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -23427,46 +23982,46 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["paymentSource"].first, + unittest.equals(arg_paymentSource)); unittest.expect( - queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + queryMap["minEndDate"].first, unittest.equals(arg_minEndDate)); unittest.expect( - queryMap["archived"].first, unittest.equals("$arg_archived")); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["campaignIds"], unittest.equals(arg_campaignIds)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["siteIds"], unittest.equals(arg_siteIds)); + unittest.expect(queryMap["directorySiteIds"], + unittest.equals(arg_directorySiteIds)); + unittest.expect( + queryMap["pricingTypes"], unittest.equals(arg_pricingTypes)); + unittest.expect(queryMap["groupIds"], unittest.equals(arg_groupIds)); 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["ids"], unittest.equals(arg_ids)); 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)); + queryMap["campaignIds"], unittest.equals(arg_campaignIds)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect( + queryMap["maxEndDate"].first, unittest.equals(arg_maxEndDate)); + unittest.expect( + queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + unittest.expect(queryMap["sizeIds"], unittest.equals(arg_sizeIds)); + unittest.expect( + queryMap["archived"].first, unittest.equals("$arg_archived")); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -23477,28 +24032,28 @@ }), true); res .list(arg_profileId, - advertiserIds: arg_advertiserIds, - archived: arg_archived, - campaignIds: arg_campaignIds, + paymentSource: arg_paymentSource, + minEndDate: arg_minEndDate, + pageToken: arg_pageToken, + sortOrder: arg_sortOrder, + siteIds: arg_siteIds, + directorySiteIds: arg_directorySiteIds, + pricingTypes: arg_pricingTypes, + groupIds: arg_groupIds, 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, + ids: arg_ids, placementStrategyIds: arg_placementStrategyIds, - pricingTypes: arg_pricingTypes, - searchString: arg_searchString, - siteIds: arg_siteIds, - sizeIds: arg_sizeIds, sortField: arg_sortField, - sortOrder: arg_sortOrder, + campaignIds: arg_campaignIds, + searchString: arg_searchString, + maxEndDate: arg_maxEndDate, + advertiserIds: arg_advertiserIds, + sizeIds: arg_sizeIds, + archived: arg_archived, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlacementsListResponse(response); @@ -23975,13 +24530,13 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.DfareportingApi(mock).projects; var arg_profileId = "foo"; - var arg_advertiserIds = buildUnnamed5328(); - var arg_ids = buildUnnamed5329(); - var arg_maxResults = 42; + var arg_sortOrder = "foo"; + var arg_ids = buildUnnamed5727(); var arg_pageToken = "foo"; + var arg_advertiserIds = buildUnnamed5728(); var arg_searchString = "foo"; var arg_sortField = "foo"; - var arg_sortOrder = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -24026,18 +24581,18 @@ } } unittest.expect( - queryMap["advertiserIds"], unittest.equals(arg_advertiserIds)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); 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["advertiserIds"], unittest.equals(arg_advertiserIds)); + 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(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -24048,13 +24603,13 @@ }), true); res .list(arg_profileId, - advertiserIds: arg_advertiserIds, + sortOrder: arg_sortOrder, ids: arg_ids, - maxResults: arg_maxResults, pageToken: arg_pageToken, + advertiserIds: arg_advertiserIds, searchString: arg_searchString, sortField: arg_sortField, - sortOrder: arg_sortOrder, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkProjectsListResponse(response); @@ -24200,7 +24755,7 @@ new api.DfareportingApi(mock).remarketingListShares; var arg_request = buildRemarketingListShare(); var arg_profileId = "foo"; - var arg_remarketingListId = "foo"; + var arg_id = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.RemarketingListShare.fromJson(json); @@ -24247,8 +24802,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["remarketingListId"].first, - unittest.equals(arg_remarketingListId)); + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -24258,8 +24812,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .patch(arg_request, arg_profileId, arg_remarketingListId, - $fields: arg_$fields) + .patch(arg_request, arg_profileId, arg_id, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRemarketingListShare(response); }))); @@ -24474,13 +25027,13 @@ 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_floodlightActivityId = "foo"; var arg_sortOrder = "foo"; + var arg_sortField = "foo"; + var arg_active = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -24526,19 +25079,19 @@ } 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["floodlightActivityId"].first, + unittest.equals(arg_floodlightActivityId)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["active"].first, unittest.equals("$arg_active")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -24549,13 +25102,13 @@ }), 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, + floodlightActivityId: arg_floodlightActivityId, sortOrder: arg_sortOrder, + sortField: arg_sortField, + active: arg_active, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkRemarketingListsListResponse(response); @@ -24900,11 +25453,11 @@ 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_pageToken = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -24948,15 +25501,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); 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)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -24967,17 +25520,87 @@ }), true); res .list(arg_profileId, - maxResults: arg_maxResults, - pageToken: arg_pageToken, scope: arg_scope, + pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((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"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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/v3.4/")); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkReport(response); + }))); + }); + unittest.test("method--run", () { var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.DfareportingApi(mock).reports; @@ -25282,10 +25905,10 @@ 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"; + var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -25338,14 +25961,14 @@ 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)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -25356,10 +25979,10 @@ }), true); res .list(arg_profileId, arg_reportId, - maxResults: arg_maxResults, - pageToken: arg_pageToken, sortField: arg_sortField, sortOrder: arg_sortOrder, + pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFileList(response); @@ -25504,21 +26127,21 @@ var mock = new HttpServerMock(); api.SitesResourceApi res = new api.DfareportingApi(mock).sites; var arg_profileId = "foo"; + var arg_approved = true; + var arg_directorySiteIds = buildUnnamed5729(); + var arg_searchString = "foo"; + var arg_maxResults = 42; var arg_acceptsInStreamVideoPlacements = true; var arg_acceptsInterstitialPlacements = true; - var arg_acceptsPublisherPaidPlacements = true; - var arg_adWordsSite = true; - var arg_approved = true; - var arg_campaignIds = buildUnnamed5330(); - var arg_directorySiteIds = buildUnnamed5331(); - var arg_ids = buildUnnamed5332(); - 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; + var arg_subaccountId = "foo"; + var arg_sortOrder = "foo"; + var arg_sortField = "foo"; + var arg_acceptsPublisherPaidPlacements = true; + var arg_ids = buildUnnamed5730(); + var arg_pageToken = "foo"; + var arg_adWordsSite = true; + var arg_campaignIds = buildUnnamed5731(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -25562,35 +26185,35 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["approved"].first, unittest.equals("$arg_approved")); + unittest.expect(queryMap["directorySiteIds"], + unittest.equals(arg_directorySiteIds)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); 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["unmappedSite"].first, + unittest.equals("$arg_unmappedSite")); 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)); + queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); 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")); + queryMap["sortField"].first, unittest.equals(arg_sortField)); + unittest.expect(queryMap["acceptsPublisherPaidPlacements"].first, + unittest.equals("$arg_acceptsPublisherPaidPlacements")); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["adWordsSite"].first, unittest.equals("$arg_adWordsSite")); + unittest.expect( + queryMap["campaignIds"], unittest.equals(arg_campaignIds)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -25601,23 +26224,23 @@ }), true); res .list(arg_profileId, + approved: arg_approved, + directorySiteIds: arg_directorySiteIds, + searchString: arg_searchString, + maxResults: arg_maxResults, acceptsInStreamVideoPlacements: arg_acceptsInStreamVideoPlacements, acceptsInterstitialPlacements: arg_acceptsInterstitialPlacements, + unmappedSite: arg_unmappedSite, + subaccountId: arg_subaccountId, + sortOrder: arg_sortOrder, + sortField: arg_sortField, 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, + adWordsSite: arg_adWordsSite, + campaignIds: arg_campaignIds, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSitesListResponse(response); @@ -25896,10 +26519,10 @@ 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 = buildUnnamed5333(); + var arg_ids = buildUnnamed5732(); var arg_width = 42; + var arg_height = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -25943,13 +26566,13 @@ 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)); + unittest.expect(core.int.parse(queryMap["height"].first), + unittest.equals(arg_height)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -25960,10 +26583,10 @@ }), true); res .list(arg_profileId, - height: arg_height, iabStandard: arg_iabStandard, ids: arg_ids, width: arg_width, + height: arg_height, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSizesListResponse(response); @@ -26111,12 +26734,12 @@ api.SubaccountsResourceApi res = new api.DfareportingApi(mock).subaccounts; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5334(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; var arg_sortField = "foo"; var arg_sortOrder = "foo"; + var arg_ids = buildUnnamed5733(); + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_searchString = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -26160,17 +26783,17 @@ 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)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["searchString"].first, unittest.equals(arg_searchString)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -26181,12 +26804,12 @@ }), true); res .list(arg_profileId, - ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - searchString: arg_searchString, sortField: arg_sortField, sortOrder: arg_sortOrder, + ids: arg_ids, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + searchString: arg_searchString, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSubaccountsListResponse(response); @@ -26404,12 +27027,12 @@ new api.DfareportingApi(mock).targetableRemarketingLists; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_active = true; var arg_maxResults = 42; + var arg_sortOrder = "foo"; + var arg_sortField = "foo"; + var arg_active = true; var arg_name = "foo"; var arg_pageToken = "foo"; - var arg_sortField = "foo"; - var arg_sortOrder = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -26455,17 +27078,17 @@ } 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)); + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect( queryMap["sortField"].first, unittest.equals(arg_sortField)); unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + queryMap["active"].first, unittest.equals("$arg_active")); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -26477,12 +27100,12 @@ }), true); res .list(arg_profileId, arg_advertiserId, - active: arg_active, maxResults: arg_maxResults, + sortOrder: arg_sortOrder, + sortField: arg_sortField, + active: arg_active, name: arg_name, pageToken: arg_pageToken, - sortField: arg_sortField, - sortOrder: arg_sortOrder, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetableRemarketingListsListResponse(response); @@ -26631,12 +27254,12 @@ new api.DfareportingApi(mock).targetingTemplates; var arg_profileId = "foo"; var arg_advertiserId = "foo"; - var arg_ids = buildUnnamed5335(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_searchString = "foo"; - var arg_sortField = "foo"; + var arg_ids = buildUnnamed5734(); var arg_sortOrder = "foo"; + var arg_maxResults = 42; + var arg_sortField = "foo"; + var arg_searchString = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -26683,16 +27306,16 @@ unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["sortField"].first, unittest.equals(arg_sortField)); 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)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -26705,11 +27328,11 @@ .list(arg_profileId, advertiserId: arg_advertiserId, ids: arg_ids, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - searchString: arg_searchString, - sortField: arg_sortField, sortOrder: arg_sortOrder, + maxResults: arg_maxResults, + sortField: arg_sortField, + searchString: arg_searchString, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTargetingTemplatesListResponse(response); @@ -27169,7 +27792,7 @@ api.UserRolePermissionsResourceApi res = new api.DfareportingApi(mock).userRolePermissions; var arg_profileId = "foo"; - var arg_ids = buildUnnamed5336(); + var arg_ids = buildUnnamed5735(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -27431,14 +28054,14 @@ var mock = new HttpServerMock(); api.UserRolesResourceApi res = new api.DfareportingApi(mock).userRoles; var arg_profileId = "foo"; - var arg_accountUserRoleOnly = true; - var arg_ids = buildUnnamed5337(); - 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_accountUserRoleOnly = true; + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_ids = buildUnnamed5736(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -27482,13 +28105,6 @@ 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( @@ -27497,6 +28113,13 @@ queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); unittest.expect( queryMap["subaccountId"].first, unittest.equals(arg_subaccountId)); + unittest.expect(queryMap["accountUserRoleOnly"].first, + unittest.equals("$arg_accountUserRoleOnly")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -27507,14 +28130,14 @@ }), 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, + accountUserRoleOnly: arg_accountUserRoleOnly, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + ids: arg_ids, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUserRolesListResponse(response);
diff --git a/generated/googleapis/test/dialogflow/v2_test.dart b/generated/googleapis/test/dialogflow/v2_test.dart index 1d5cfb3..d1c4524 100644 --- a/generated/googleapis/test/dialogflow/v2_test.dart +++ b/generated/googleapis/test/dialogflow/v2_test.dart
@@ -50,14 +50,863 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3749() { +core.int + buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata = + 0; +buildGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata() { + var o = + new api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(); + buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata++; + if (buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata < + 3) { + o.version = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata( + api.GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata o) { + buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata++; + if (buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata < + 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata--; +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse = 0; +buildGoogleCloudDialogflowCxV3beta1ExportAgentResponse() { + var o = new api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse(); + buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse < 3) { + o.agentContent = "foo"; + o.agentUri = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ExportAgentResponse( + api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse o) { + buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse < 3) { + unittest.expect(o.agentContent, unittest.equals('foo')); + unittest.expect(o.agentUri, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1ExportAgentResponse--; +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse = 0; +buildGoogleCloudDialogflowCxV3beta1ImportAgentResponse() { + var o = new api.GoogleCloudDialogflowCxV3beta1ImportAgentResponse(); + buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse < 3) { + o.agent = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ImportAgentResponse( + api.GoogleCloudDialogflowCxV3beta1ImportAgentResponse o) { + buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse < 3) { + unittest.expect(o.agent, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1ImportAgentResponse--; +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1PageInfo = 0; +buildGoogleCloudDialogflowCxV3beta1PageInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1PageInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1PageInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfo < 3) { + o.currentPage = "foo"; + o.formInfo = buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1PageInfo( + api.GoogleCloudDialogflowCxV3beta1PageInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1PageInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfo < 3) { + unittest.expect(o.currentPage, unittest.equals('foo')); + checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(o.formInfo); + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfo--; +} + +buildUnnamed3935() { + var o = new core + .List<api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo>(); + o.add(buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo()); + o.add(buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo()); + return o; +} + +checkUnnamed3935( + core.List<api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(o[0]); + checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(o[1]); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo = 0; +buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo < 3) { + o.parameterInfo = buildUnnamed3935(); + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo( + api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo < 3) { + checkUnnamed3935(o.parameterInfo); + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfo--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo = 0; +buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo < + 3) { + o.displayName = "foo"; + o.justCollected = true; + o.required = true; + o.state = "foo"; + o.value = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo( + api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo < + 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.justCollected, unittest.isTrue); + unittest.expect(o.required, unittest.isTrue); + unittest.expect(o.state, unittest.equals('foo')); + var casted1 = (o.value) 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')); + } + buildCounterGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo--; +} + +buildUnnamed3936() { + 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; +} + +checkUnnamed3936(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted2 = (o["x"]) as core.Map; + unittest.expect(casted2, unittest.hasLength(3)); + unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted2["bool"], unittest.equals(true)); + unittest.expect(casted2["string"], unittest.equals('foo')); + var casted3 = (o["y"]) as core.Map; + unittest.expect(casted3, unittest.hasLength(3)); + unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted3["bool"], unittest.equals(true)); + unittest.expect(casted3["string"], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage = 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessage() { + var o = new api.GoogleCloudDialogflowCxV3beta1ResponseMessage(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage < 3) { + o.conversationSuccess = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); + o.endInteraction = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); + o.liveAgentHandoff = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); + o.mixedAudio = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); + o.outputAudioText = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); + o.payload = buildUnnamed3936(); + o.playAudio = buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); + o.text = buildGoogleCloudDialogflowCxV3beta1ResponseMessageText(); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessage( + api.GoogleCloudDialogflowCxV3beta1ResponseMessage o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage < 3) { + checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( + o.conversationSuccess); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction( + o.endInteraction); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff( + o.liveAgentHandoff); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(o.mixedAudio); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText( + o.outputAudioText); + checkUnnamed3936(o.payload); + checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(o.playAudio); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageText(o.text); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessage--; +} + +buildUnnamed3937() { + 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; +} + +checkUnnamed3937(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')); +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess = + 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess() { + var o = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess < + 3) { + o.metadata = buildUnnamed3937(); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess < + 3) { + checkUnnamed3937(o.metadata); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction = 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction() { + var o = new api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction < + 3) {} + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction < + 3) {} + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction--; +} + +buildUnnamed3938() { + 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; +} + +checkUnnamed3938(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')); +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff = + 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff() { + var o = + new api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff < + 3) { + o.metadata = buildUnnamed3938(); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff < + 3) { + checkUnnamed3938(o.metadata); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff--; +} + +buildUnnamed3939() { + var o = new core.List< + api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment>(); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment()); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment()); + return o; +} + +checkUnnamed3939( + core.List< + api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(o[0]); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(o[1]); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio = + 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio() { + var o = new api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio < 3) { + o.segments = buildUnnamed3939(); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio < 3) { + checkUnnamed3939(o.segments); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment = + 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment() { + var o = + new api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment < + 3) { + o.allowPlaybackInterruption = true; + o.audio = "foo"; + o.uri = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment < + 3) { + unittest.expect(o.allowPlaybackInterruption, unittest.isTrue); + unittest.expect(o.audio, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText = + 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText() { + var o = + new api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText < + 3) { + o.allowPlaybackInterruption = true; + o.ssml = "foo"; + o.text = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText < + 3) { + unittest.expect(o.allowPlaybackInterruption, unittest.isTrue); + unittest.expect(o.ssml, unittest.equals('foo')); + unittest.expect(o.text, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText--; +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio = 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio() { + var o = new api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio < 3) { + o.allowPlaybackInterruption = true; + o.audioUri = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio( + api.GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio < 3) { + unittest.expect(o.allowPlaybackInterruption, unittest.isTrue); + unittest.expect(o.audioUri, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio--; +} + +buildUnnamed3940() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3749(core.List<core.String> o) { +checkUnnamed3940(core.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 buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText = 0; +buildGoogleCloudDialogflowCxV3beta1ResponseMessageText() { + var o = new api.GoogleCloudDialogflowCxV3beta1ResponseMessageText(); + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText < 3) { + o.allowPlaybackInterruption = true; + o.text = buildUnnamed3940(); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1ResponseMessageText( + api.GoogleCloudDialogflowCxV3beta1ResponseMessageText o) { + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText++; + if (buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText < 3) { + unittest.expect(o.allowPlaybackInterruption, unittest.isTrue); + checkUnnamed3940(o.text); + } + buildCounterGoogleCloudDialogflowCxV3beta1ResponseMessageText--; +} + +buildUnnamed3941() { + 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; +} + +checkUnnamed3941(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')); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo = 0; +buildGoogleCloudDialogflowCxV3beta1SessionInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1SessionInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo < 3) { + o.parameters = buildUnnamed3941(); + o.session = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1SessionInfo( + api.GoogleCloudDialogflowCxV3beta1SessionInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo < 3) { + checkUnnamed3941(o.parameters); + unittest.expect(o.session, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1SessionInfo--; +} + +buildUnnamed3942() { + var o = new core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage>(); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); + return o; +} + +checkUnnamed3942( + core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3beta1ResponseMessage(o[0]); + checkGoogleCloudDialogflowCxV3beta1ResponseMessage(o[1]); +} + +buildUnnamed3943() { + 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; +} + +checkUnnamed3943(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted10 = (o["x"]) as core.Map; + unittest.expect(casted10, unittest.hasLength(3)); + unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted10["bool"], unittest.equals(true)); + unittest.expect(casted10["string"], unittest.equals('foo')); + var casted11 = (o["y"]) as core.Map; + unittest.expect(casted11, unittest.hasLength(3)); + unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted11["bool"], unittest.equals(true)); + unittest.expect(casted11["string"], unittest.equals('foo')); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest = 0; +buildGoogleCloudDialogflowCxV3beta1WebhookRequest() { + var o = new api.GoogleCloudDialogflowCxV3beta1WebhookRequest(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest < 3) { + o.detectIntentResponseId = "foo"; + o.fulfillmentInfo = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); + o.intentInfo = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); + o.messages = buildUnnamed3942(); + o.pageInfo = buildGoogleCloudDialogflowCxV3beta1PageInfo(); + o.payload = buildUnnamed3943(); + o.sessionInfo = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookRequest( + api.GoogleCloudDialogflowCxV3beta1WebhookRequest o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest < 3) { + unittest.expect(o.detectIntentResponseId, unittest.equals('foo')); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo( + o.fulfillmentInfo); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(o.intentInfo); + checkUnnamed3942(o.messages); + checkGoogleCloudDialogflowCxV3beta1PageInfo(o.pageInfo); + checkUnnamed3943(o.payload); + checkGoogleCloudDialogflowCxV3beta1SessionInfo(o.sessionInfo); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequest--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo = 0; +buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo < + 3) { + o.tag = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo( + api.GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo < + 3) { + unittest.expect(o.tag, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo--; +} + +buildUnnamed3944() { + var o = new core.Map<core.String, + api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue>(); + o["x"] = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); + o["y"] = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); + return o; +} + +checkUnnamed3944( + core.Map<core.String, + api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( + o["x"]); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( + o["y"]); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo = 0; +buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo() { + var o = new api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo < 3) { + o.lastMatchedIntent = "foo"; + o.parameters = buildUnnamed3944(); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo( + api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo < 3) { + unittest.expect(o.lastMatchedIntent, unittest.equals('foo')); + checkUnnamed3944(o.parameters); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo--; +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue = + 0; +buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue() { + var o = new api + .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue < + 3) { + o.originalValue = "foo"; + o.resolvedValue = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( + api.GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue + o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue < + 3) { + unittest.expect(o.originalValue, unittest.equals('foo')); + var casted12 = (o.resolvedValue) 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')); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue--; +} + +buildUnnamed3945() { + 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; +} + +checkUnnamed3945(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')); +} + +core.int buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse = 0; +buildGoogleCloudDialogflowCxV3beta1WebhookResponse() { + var o = new api.GoogleCloudDialogflowCxV3beta1WebhookResponse(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse < 3) { + o.fulfillmentResponse = + buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); + o.pageInfo = buildGoogleCloudDialogflowCxV3beta1PageInfo(); + o.payload = buildUnnamed3945(); + o.sessionInfo = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); + o.targetFlow = "foo"; + o.targetPage = "foo"; + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookResponse( + api.GoogleCloudDialogflowCxV3beta1WebhookResponse o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse < 3) { + checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse( + o.fulfillmentResponse); + checkGoogleCloudDialogflowCxV3beta1PageInfo(o.pageInfo); + checkUnnamed3945(o.payload); + checkGoogleCloudDialogflowCxV3beta1SessionInfo(o.sessionInfo); + unittest.expect(o.targetFlow, unittest.equals('foo')); + unittest.expect(o.targetPage, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponse--; +} + +buildUnnamed3946() { + var o = new core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage>(); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); + o.add(buildGoogleCloudDialogflowCxV3beta1ResponseMessage()); + return o; +} + +checkUnnamed3946( + core.List<api.GoogleCloudDialogflowCxV3beta1ResponseMessage> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudDialogflowCxV3beta1ResponseMessage(o[0]); + checkGoogleCloudDialogflowCxV3beta1ResponseMessage(o[1]); +} + +core.int + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse = + 0; +buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse() { + var o = new api + .GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse < + 3) { + o.mergeBehavior = "foo"; + o.messages = buildUnnamed3946(); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse--; + return o; +} + +checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse( + api.GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse o) { + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse++; + if (buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse < + 3) { + unittest.expect(o.mergeBehavior, unittest.equals('foo')); + checkUnnamed3946(o.messages); + } + buildCounterGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse--; +} + +buildUnnamed3947() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3947(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -77,7 +926,7 @@ o.enableLogging = true; o.matchMode = "foo"; o.parent = "foo"; - o.supportedLanguageCodes = buildUnnamed3749(); + o.supportedLanguageCodes = buildUnnamed3947(); o.tier = "foo"; o.timeZone = "foo"; } @@ -97,7 +946,7 @@ unittest.expect(o.enableLogging, unittest.isTrue); unittest.expect(o.matchMode, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed3749(o.supportedLanguageCodes); + checkUnnamed3947(o.supportedLanguageCodes); unittest.expect(o.tier, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); } @@ -126,24 +975,24 @@ buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart++; if (buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart < 3) { unittest.expect(o.entityType, unittest.equals('foo')); - var casted1 = (o.formattedValue) 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 casted15 = (o.formattedValue) 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')); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2AnnotatedMessagePart--; } -buildUnnamed3750() { +buildUnnamed3948() { var o = new core.List<api.GoogleCloudDialogflowV2EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } -checkUnnamed3750(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { +checkUnnamed3948(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity(o[0]); checkGoogleCloudDialogflowV2EntityTypeEntity(o[1]); @@ -154,7 +1003,7 @@ var o = new api.GoogleCloudDialogflowV2BatchCreateEntitiesRequest(); buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest < 3) { - o.entities = buildUnnamed3750(); + o.entities = buildUnnamed3948(); o.languageCode = "foo"; } buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest--; @@ -165,20 +1014,20 @@ api.GoogleCloudDialogflowV2BatchCreateEntitiesRequest o) { buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest < 3) { - checkUnnamed3750(o.entities); + checkUnnamed3948(o.entities); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2BatchCreateEntitiesRequest--; } -buildUnnamed3751() { +buildUnnamed3949() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3751(core.List<core.String> o) { +checkUnnamed3949(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -189,7 +1038,7 @@ var o = new api.GoogleCloudDialogflowV2BatchDeleteEntitiesRequest(); buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest < 3) { - o.entityValues = buildUnnamed3751(); + o.entityValues = buildUnnamed3949(); o.languageCode = "foo"; } buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest--; @@ -200,20 +1049,20 @@ api.GoogleCloudDialogflowV2BatchDeleteEntitiesRequest o) { buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest < 3) { - checkUnnamed3751(o.entityValues); + checkUnnamed3949(o.entityValues); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2BatchDeleteEntitiesRequest--; } -buildUnnamed3752() { +buildUnnamed3950() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3752(core.List<core.String> o) { +checkUnnamed3950(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -224,7 +1073,7 @@ var o = new api.GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest(); buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest < 3) { - o.entityTypeNames = buildUnnamed3752(); + o.entityTypeNames = buildUnnamed3950(); } buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest--; return o; @@ -234,19 +1083,19 @@ api.GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest o) { buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest < 3) { - checkUnnamed3752(o.entityTypeNames); + checkUnnamed3950(o.entityTypeNames); } buildCounterGoogleCloudDialogflowV2BatchDeleteEntityTypesRequest--; } -buildUnnamed3753() { +buildUnnamed3951() { var o = new core.List<api.GoogleCloudDialogflowV2Intent>(); o.add(buildGoogleCloudDialogflowV2Intent()); o.add(buildGoogleCloudDialogflowV2Intent()); return o; } -checkUnnamed3753(core.List<api.GoogleCloudDialogflowV2Intent> o) { +checkUnnamed3951(core.List<api.GoogleCloudDialogflowV2Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Intent(o[0]); checkGoogleCloudDialogflowV2Intent(o[1]); @@ -257,7 +1106,7 @@ var o = new api.GoogleCloudDialogflowV2BatchDeleteIntentsRequest(); buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest < 3) { - o.intents = buildUnnamed3753(); + o.intents = buildUnnamed3951(); } buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest--; return o; @@ -267,19 +1116,19 @@ api.GoogleCloudDialogflowV2BatchDeleteIntentsRequest o) { buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest++; if (buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest < 3) { - checkUnnamed3753(o.intents); + checkUnnamed3951(o.intents); } buildCounterGoogleCloudDialogflowV2BatchDeleteIntentsRequest--; } -buildUnnamed3754() { +buildUnnamed3952() { var o = new core.List<api.GoogleCloudDialogflowV2EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } -checkUnnamed3754(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { +checkUnnamed3952(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity(o[0]); checkGoogleCloudDialogflowV2EntityTypeEntity(o[1]); @@ -290,7 +1139,7 @@ var o = new api.GoogleCloudDialogflowV2BatchUpdateEntitiesRequest(); buildCounterGoogleCloudDialogflowV2BatchUpdateEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntitiesRequest < 3) { - o.entities = buildUnnamed3754(); + o.entities = buildUnnamed3952(); o.languageCode = "foo"; o.updateMask = "foo"; } @@ -302,7 +1151,7 @@ api.GoogleCloudDialogflowV2BatchUpdateEntitiesRequest o) { buildCounterGoogleCloudDialogflowV2BatchUpdateEntitiesRequest++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntitiesRequest < 3) { - checkUnnamed3754(o.entities); + checkUnnamed3952(o.entities); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.updateMask, unittest.equals('foo')); } @@ -335,14 +1184,14 @@ buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesRequest--; } -buildUnnamed3755() { +buildUnnamed3953() { var o = new core.List<api.GoogleCloudDialogflowV2EntityType>(); o.add(buildGoogleCloudDialogflowV2EntityType()); o.add(buildGoogleCloudDialogflowV2EntityType()); return o; } -checkUnnamed3755(core.List<api.GoogleCloudDialogflowV2EntityType> o) { +checkUnnamed3953(core.List<api.GoogleCloudDialogflowV2EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityType(o[0]); checkGoogleCloudDialogflowV2EntityType(o[1]); @@ -353,7 +1202,7 @@ var o = new api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse(); buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse < 3) { - o.entityTypes = buildUnnamed3755(); + o.entityTypes = buildUnnamed3953(); } buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse--; return o; @@ -363,7 +1212,7 @@ api.GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse o) { buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse < 3) { - checkUnnamed3755(o.entityTypes); + checkUnnamed3953(o.entityTypes); } buildCounterGoogleCloudDialogflowV2BatchUpdateEntityTypesResponse--; } @@ -396,14 +1245,14 @@ buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsRequest--; } -buildUnnamed3756() { +buildUnnamed3954() { var o = new core.List<api.GoogleCloudDialogflowV2Intent>(); o.add(buildGoogleCloudDialogflowV2Intent()); o.add(buildGoogleCloudDialogflowV2Intent()); return o; } -checkUnnamed3756(core.List<api.GoogleCloudDialogflowV2Intent> o) { +checkUnnamed3954(core.List<api.GoogleCloudDialogflowV2Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Intent(o[0]); checkGoogleCloudDialogflowV2Intent(o[1]); @@ -414,7 +1263,7 @@ var o = new api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse(); buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse < 3) { - o.intents = buildUnnamed3756(); + o.intents = buildUnnamed3954(); } buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse--; return o; @@ -424,12 +1273,12 @@ api.GoogleCloudDialogflowV2BatchUpdateIntentsResponse o) { buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse < 3) { - checkUnnamed3756(o.intents); + checkUnnamed3954(o.intents); } buildCounterGoogleCloudDialogflowV2BatchUpdateIntentsResponse--; } -buildUnnamed3757() { +buildUnnamed3955() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -444,18 +1293,18 @@ return o; } -checkUnnamed3757(core.Map<core.String, core.Object> o) { +checkUnnamed3955(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted2 = (o["x"]) as core.Map; - unittest.expect(casted2, unittest.hasLength(3)); - unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted2["bool"], unittest.equals(true)); - unittest.expect(casted2["string"], unittest.equals('foo')); - var casted3 = (o["y"]) as core.Map; - unittest.expect(casted3, unittest.hasLength(3)); - unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted3["bool"], unittest.equals(true)); - unittest.expect(casted3["string"], unittest.equals('foo')); + var casted16 = (o["x"]) 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')); + var casted17 = (o["y"]) 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')); } core.int buildCounterGoogleCloudDialogflowV2Context = 0; @@ -465,7 +1314,7 @@ if (buildCounterGoogleCloudDialogflowV2Context < 3) { o.lifespanCount = 42; o.name = "foo"; - o.parameters = buildUnnamed3757(); + o.parameters = buildUnnamed3955(); } buildCounterGoogleCloudDialogflowV2Context--; return o; @@ -476,7 +1325,7 @@ if (buildCounterGoogleCloudDialogflowV2Context < 3) { unittest.expect(o.lifespanCount, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3757(o.parameters); + checkUnnamed3955(o.parameters); } buildCounterGoogleCloudDialogflowV2Context--; } @@ -563,14 +1412,14 @@ buildCounterGoogleCloudDialogflowV2DetectIntentResponse--; } -buildUnnamed3758() { +buildUnnamed3956() { var o = new core.List<api.GoogleCloudDialogflowV2EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } -checkUnnamed3758(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { +checkUnnamed3956(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity(o[0]); checkGoogleCloudDialogflowV2EntityTypeEntity(o[1]); @@ -584,7 +1433,7 @@ o.autoExpansionMode = "foo"; o.displayName = "foo"; o.enableFuzzyExtraction = true; - o.entities = buildUnnamed3758(); + o.entities = buildUnnamed3956(); o.kind = "foo"; o.name = "foo"; } @@ -599,21 +1448,21 @@ unittest.expect(o.autoExpansionMode, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.enableFuzzyExtraction, unittest.isTrue); - checkUnnamed3758(o.entities); + checkUnnamed3956(o.entities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2EntityType--; } -buildUnnamed3759() { +buildUnnamed3957() { var o = new core.List<api.GoogleCloudDialogflowV2EntityType>(); o.add(buildGoogleCloudDialogflowV2EntityType()); o.add(buildGoogleCloudDialogflowV2EntityType()); return o; } -checkUnnamed3759(core.List<api.GoogleCloudDialogflowV2EntityType> o) { +checkUnnamed3957(core.List<api.GoogleCloudDialogflowV2EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityType(o[0]); checkGoogleCloudDialogflowV2EntityType(o[1]); @@ -624,7 +1473,7 @@ var o = new api.GoogleCloudDialogflowV2EntityTypeBatch(); buildCounterGoogleCloudDialogflowV2EntityTypeBatch++; if (buildCounterGoogleCloudDialogflowV2EntityTypeBatch < 3) { - o.entityTypes = buildUnnamed3759(); + o.entityTypes = buildUnnamed3957(); } buildCounterGoogleCloudDialogflowV2EntityTypeBatch--; return o; @@ -634,19 +1483,19 @@ api.GoogleCloudDialogflowV2EntityTypeBatch o) { buildCounterGoogleCloudDialogflowV2EntityTypeBatch++; if (buildCounterGoogleCloudDialogflowV2EntityTypeBatch < 3) { - checkUnnamed3759(o.entityTypes); + checkUnnamed3957(o.entityTypes); } buildCounterGoogleCloudDialogflowV2EntityTypeBatch--; } -buildUnnamed3760() { +buildUnnamed3958() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3760(core.List<core.String> o) { +checkUnnamed3958(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -657,7 +1506,7 @@ var o = new api.GoogleCloudDialogflowV2EntityTypeEntity(); buildCounterGoogleCloudDialogflowV2EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2EntityTypeEntity < 3) { - o.synonyms = buildUnnamed3760(); + o.synonyms = buildUnnamed3958(); o.value = "foo"; } buildCounterGoogleCloudDialogflowV2EntityTypeEntity--; @@ -668,7 +1517,7 @@ api.GoogleCloudDialogflowV2EntityTypeEntity o) { buildCounterGoogleCloudDialogflowV2EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2EntityTypeEntity < 3) { - checkUnnamed3760(o.synonyms); + checkUnnamed3958(o.synonyms); unittest.expect(o.value, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2EntityTypeEntity--; @@ -702,7 +1551,7 @@ buildCounterGoogleCloudDialogflowV2Environment--; } -buildUnnamed3761() { +buildUnnamed3959() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -717,18 +1566,18 @@ return o; } -checkUnnamed3761(core.Map<core.String, core.Object> o) { +checkUnnamed3959(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')); + var casted18 = (o["x"]) as core.Map; + unittest.expect(casted18, unittest.hasLength(3)); + unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted18["bool"], unittest.equals(true)); + unittest.expect(casted18["string"], unittest.equals('foo')); + var casted19 = (o["y"]) as core.Map; + unittest.expect(casted19, unittest.hasLength(3)); + unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted19["bool"], unittest.equals(true)); + unittest.expect(casted19["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2EventInput = 0; @@ -738,7 +1587,7 @@ if (buildCounterGoogleCloudDialogflowV2EventInput < 3) { o.languageCode = "foo"; o.name = "foo"; - o.parameters = buildUnnamed3761(); + o.parameters = buildUnnamed3959(); } buildCounterGoogleCloudDialogflowV2EventInput--; return o; @@ -750,7 +1599,7 @@ if (buildCounterGoogleCloudDialogflowV2EventInput < 3) { unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3761(o.parameters); + checkUnnamed3959(o.parameters); } buildCounterGoogleCloudDialogflowV2EventInput--; } @@ -797,14 +1646,14 @@ buildCounterGoogleCloudDialogflowV2ExportAgentResponse--; } -buildUnnamed3762() { +buildUnnamed3960() { var o = new core.List<api.GoogleCloudDialogflowV2FulfillmentFeature>(); o.add(buildGoogleCloudDialogflowV2FulfillmentFeature()); o.add(buildGoogleCloudDialogflowV2FulfillmentFeature()); return o; } -checkUnnamed3762(core.List<api.GoogleCloudDialogflowV2FulfillmentFeature> o) { +checkUnnamed3960(core.List<api.GoogleCloudDialogflowV2FulfillmentFeature> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2FulfillmentFeature(o[0]); checkGoogleCloudDialogflowV2FulfillmentFeature(o[1]); @@ -817,7 +1666,7 @@ if (buildCounterGoogleCloudDialogflowV2Fulfillment < 3) { o.displayName = "foo"; o.enabled = true; - o.features = buildUnnamed3762(); + o.features = buildUnnamed3960(); o.genericWebService = buildGoogleCloudDialogflowV2FulfillmentGenericWebService(); o.name = "foo"; @@ -832,7 +1681,7 @@ if (buildCounterGoogleCloudDialogflowV2Fulfillment < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); - checkUnnamed3762(o.features); + checkUnnamed3960(o.features); checkGoogleCloudDialogflowV2FulfillmentGenericWebService( o.genericWebService); unittest.expect(o.name, unittest.equals('foo')); @@ -860,14 +1709,14 @@ buildCounterGoogleCloudDialogflowV2FulfillmentFeature--; } -buildUnnamed3763() { +buildUnnamed3961() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3763(core.Map<core.String, core.String> o) { +checkUnnamed3961(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')); @@ -880,7 +1729,7 @@ if (buildCounterGoogleCloudDialogflowV2FulfillmentGenericWebService < 3) { o.isCloudFunction = true; o.password = "foo"; - o.requestHeaders = buildUnnamed3763(); + o.requestHeaders = buildUnnamed3961(); o.uri = "foo"; o.username = "foo"; } @@ -894,7 +1743,7 @@ if (buildCounterGoogleCloudDialogflowV2FulfillmentGenericWebService < 3) { unittest.expect(o.isCloudFunction, unittest.isTrue); unittest.expect(o.password, unittest.equals('foo')); - checkUnnamed3763(o.requestHeaders); + checkUnnamed3961(o.requestHeaders); unittest.expect(o.uri, unittest.equals('foo')); unittest.expect(o.username, unittest.equals('foo')); } @@ -923,27 +1772,27 @@ buildCounterGoogleCloudDialogflowV2ImportAgentRequest--; } -buildUnnamed3764() { +buildUnnamed3962() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3764(core.List<core.String> o) { +checkUnnamed3962(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3765() { +buildUnnamed3963() { var o = new core.List<api.GoogleCloudDialogflowV2SpeechContext>(); o.add(buildGoogleCloudDialogflowV2SpeechContext()); o.add(buildGoogleCloudDialogflowV2SpeechContext()); return o; } -checkUnnamed3765(core.List<api.GoogleCloudDialogflowV2SpeechContext> o) { +checkUnnamed3963(core.List<api.GoogleCloudDialogflowV2SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2SpeechContext(o[0]); checkGoogleCloudDialogflowV2SpeechContext(o[1]); @@ -959,10 +1808,10 @@ o.languageCode = "foo"; o.model = "foo"; o.modelVariant = "foo"; - o.phraseHints = buildUnnamed3764(); + o.phraseHints = buildUnnamed3962(); o.sampleRateHertz = 42; o.singleUtterance = true; - o.speechContexts = buildUnnamed3765(); + o.speechContexts = buildUnnamed3963(); } buildCounterGoogleCloudDialogflowV2InputAudioConfig--; return o; @@ -977,114 +1826,114 @@ unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); unittest.expect(o.modelVariant, unittest.equals('foo')); - checkUnnamed3764(o.phraseHints); + checkUnnamed3962(o.phraseHints); unittest.expect(o.sampleRateHertz, unittest.equals(42)); unittest.expect(o.singleUtterance, unittest.isTrue); - checkUnnamed3765(o.speechContexts); + checkUnnamed3963(o.speechContexts); } buildCounterGoogleCloudDialogflowV2InputAudioConfig--; } -buildUnnamed3766() { +buildUnnamed3964() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3766(core.List<core.String> o) { +checkUnnamed3964(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3767() { +buildUnnamed3965() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3767(core.List<core.String> o) { +checkUnnamed3965(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3768() { +buildUnnamed3966() { var o = new core.List<api.GoogleCloudDialogflowV2IntentFollowupIntentInfo>(); o.add(buildGoogleCloudDialogflowV2IntentFollowupIntentInfo()); o.add(buildGoogleCloudDialogflowV2IntentFollowupIntentInfo()); return o; } -checkUnnamed3768( +checkUnnamed3966( core.List<api.GoogleCloudDialogflowV2IntentFollowupIntentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentFollowupIntentInfo(o[0]); checkGoogleCloudDialogflowV2IntentFollowupIntentInfo(o[1]); } -buildUnnamed3769() { +buildUnnamed3967() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3769(core.List<core.String> o) { +checkUnnamed3967(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3770() { +buildUnnamed3968() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessage>(); o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } -checkUnnamed3770(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { +checkUnnamed3968(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage(o[0]); checkGoogleCloudDialogflowV2IntentMessage(o[1]); } -buildUnnamed3771() { +buildUnnamed3969() { var o = new core.List<api.GoogleCloudDialogflowV2Context>(); o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } -checkUnnamed3771(core.List<api.GoogleCloudDialogflowV2Context> o) { +checkUnnamed3969(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context(o[0]); checkGoogleCloudDialogflowV2Context(o[1]); } -buildUnnamed3772() { +buildUnnamed3970() { var o = new core.List<api.GoogleCloudDialogflowV2IntentParameter>(); o.add(buildGoogleCloudDialogflowV2IntentParameter()); o.add(buildGoogleCloudDialogflowV2IntentParameter()); return o; } -checkUnnamed3772(core.List<api.GoogleCloudDialogflowV2IntentParameter> o) { +checkUnnamed3970(core.List<api.GoogleCloudDialogflowV2IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentParameter(o[0]); checkGoogleCloudDialogflowV2IntentParameter(o[1]); } -buildUnnamed3773() { +buildUnnamed3971() { var o = new core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrase>(); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrase()); return o; } -checkUnnamed3773(core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrase> o) { +checkUnnamed3971(core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentTrainingPhrase(o[0]); checkGoogleCloudDialogflowV2IntentTrainingPhrase(o[1]); @@ -1096,22 +1945,22 @@ buildCounterGoogleCloudDialogflowV2Intent++; if (buildCounterGoogleCloudDialogflowV2Intent < 3) { o.action = "foo"; - o.defaultResponsePlatforms = buildUnnamed3766(); + o.defaultResponsePlatforms = buildUnnamed3964(); o.displayName = "foo"; - o.events = buildUnnamed3767(); - o.followupIntentInfo = buildUnnamed3768(); - o.inputContextNames = buildUnnamed3769(); + o.events = buildUnnamed3965(); + o.followupIntentInfo = buildUnnamed3966(); + o.inputContextNames = buildUnnamed3967(); o.isFallback = true; - o.messages = buildUnnamed3770(); + o.messages = buildUnnamed3968(); o.mlDisabled = true; o.name = "foo"; - o.outputContexts = buildUnnamed3771(); - o.parameters = buildUnnamed3772(); + o.outputContexts = buildUnnamed3969(); + o.parameters = buildUnnamed3970(); o.parentFollowupIntentName = "foo"; o.priority = 42; o.resetContexts = true; o.rootFollowupIntentName = "foo"; - o.trainingPhrases = buildUnnamed3773(); + o.trainingPhrases = buildUnnamed3971(); o.webhookState = "foo"; } buildCounterGoogleCloudDialogflowV2Intent--; @@ -1122,35 +1971,35 @@ buildCounterGoogleCloudDialogflowV2Intent++; if (buildCounterGoogleCloudDialogflowV2Intent < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed3766(o.defaultResponsePlatforms); + checkUnnamed3964(o.defaultResponsePlatforms); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3767(o.events); - checkUnnamed3768(o.followupIntentInfo); - checkUnnamed3769(o.inputContextNames); + checkUnnamed3965(o.events); + checkUnnamed3966(o.followupIntentInfo); + checkUnnamed3967(o.inputContextNames); unittest.expect(o.isFallback, unittest.isTrue); - checkUnnamed3770(o.messages); + checkUnnamed3968(o.messages); unittest.expect(o.mlDisabled, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3771(o.outputContexts); - checkUnnamed3772(o.parameters); + checkUnnamed3969(o.outputContexts); + checkUnnamed3970(o.parameters); unittest.expect(o.parentFollowupIntentName, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.resetContexts, unittest.isTrue); unittest.expect(o.rootFollowupIntentName, unittest.equals('foo')); - checkUnnamed3773(o.trainingPhrases); + checkUnnamed3971(o.trainingPhrases); unittest.expect(o.webhookState, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2Intent--; } -buildUnnamed3774() { +buildUnnamed3972() { var o = new core.List<api.GoogleCloudDialogflowV2Intent>(); o.add(buildGoogleCloudDialogflowV2Intent()); o.add(buildGoogleCloudDialogflowV2Intent()); return o; } -checkUnnamed3774(core.List<api.GoogleCloudDialogflowV2Intent> o) { +checkUnnamed3972(core.List<api.GoogleCloudDialogflowV2Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Intent(o[0]); checkGoogleCloudDialogflowV2Intent(o[1]); @@ -1161,7 +2010,7 @@ var o = new api.GoogleCloudDialogflowV2IntentBatch(); buildCounterGoogleCloudDialogflowV2IntentBatch++; if (buildCounterGoogleCloudDialogflowV2IntentBatch < 3) { - o.intents = buildUnnamed3774(); + o.intents = buildUnnamed3972(); } buildCounterGoogleCloudDialogflowV2IntentBatch--; return o; @@ -1171,7 +2020,7 @@ api.GoogleCloudDialogflowV2IntentBatch o) { buildCounterGoogleCloudDialogflowV2IntentBatch++; if (buildCounterGoogleCloudDialogflowV2IntentBatch < 3) { - checkUnnamed3774(o.intents); + checkUnnamed3972(o.intents); } buildCounterGoogleCloudDialogflowV2IntentBatch--; } @@ -1198,7 +2047,7 @@ buildCounterGoogleCloudDialogflowV2IntentFollowupIntentInfo--; } -buildUnnamed3775() { +buildUnnamed3973() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1213,18 +2062,18 @@ return o; } -checkUnnamed3775(core.Map<core.String, core.Object> o) { +checkUnnamed3973(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')); + var casted20 = (o["x"]) 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')); + var casted21 = (o["y"]) 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')); } core.int buildCounterGoogleCloudDialogflowV2IntentMessage = 0; @@ -1243,7 +2092,7 @@ buildGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion(); o.listSelect = buildGoogleCloudDialogflowV2IntentMessageListSelect(); o.mediaContent = buildGoogleCloudDialogflowV2IntentMessageMediaContent(); - o.payload = buildUnnamed3775(); + o.payload = buildUnnamed3973(); o.platform = "foo"; o.quickReplies = buildGoogleCloudDialogflowV2IntentMessageQuickReplies(); o.simpleResponses = @@ -1270,7 +2119,7 @@ o.linkOutSuggestion); checkGoogleCloudDialogflowV2IntentMessageListSelect(o.listSelect); checkGoogleCloudDialogflowV2IntentMessageMediaContent(o.mediaContent); - checkUnnamed3775(o.payload); + checkUnnamed3973(o.payload); unittest.expect(o.platform, unittest.equals('foo')); checkGoogleCloudDialogflowV2IntentMessageQuickReplies(o.quickReplies); checkGoogleCloudDialogflowV2IntentMessageSimpleResponses(o.simpleResponses); @@ -1281,7 +2130,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessage--; } -buildUnnamed3776() { +buildUnnamed3974() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton>(); o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); @@ -1289,7 +2138,7 @@ return o; } -checkUnnamed3776( +checkUnnamed3974( core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton(o[0]); @@ -1301,7 +2150,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageBasicCard(); buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard < 3) { - o.buttons = buildUnnamed3776(); + o.buttons = buildUnnamed3974(); o.formattedText = "foo"; o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); o.subtitle = "foo"; @@ -1315,7 +2164,7 @@ api.GoogleCloudDialogflowV2IntentMessageBasicCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBasicCard < 3) { - checkUnnamed3776(o.buttons); + checkUnnamed3974(o.buttons); unittest.expect(o.formattedText, unittest.equals('foo')); checkGoogleCloudDialogflowV2IntentMessageImage(o.image); unittest.expect(o.subtitle, unittest.equals('foo')); @@ -1373,7 +2222,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction--; } -buildUnnamed3777() { +buildUnnamed3975() { var o = new core.List< api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem>(); o.add( @@ -1383,7 +2232,7 @@ return o; } -checkUnnamed3777( +checkUnnamed3975( core.List< api.GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem> o) { @@ -1400,7 +2249,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard < 3) { o.imageDisplayOptions = "foo"; - o.items = buildUnnamed3777(); + o.items = buildUnnamed3975(); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard--; return o; @@ -1411,7 +2260,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard < 3) { unittest.expect(o.imageDisplayOptions, unittest.equals('foo')); - checkUnnamed3777(o.items); + checkUnnamed3975(o.items); } buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCard--; } @@ -1480,14 +2329,14 @@ buildCounterGoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; } -buildUnnamed3778() { +buildUnnamed3976() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageCardButton>(); o.add(buildGoogleCloudDialogflowV2IntentMessageCardButton()); o.add(buildGoogleCloudDialogflowV2IntentMessageCardButton()); return o; } -checkUnnamed3778( +checkUnnamed3976( core.List<api.GoogleCloudDialogflowV2IntentMessageCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageCardButton(o[0]); @@ -1499,7 +2348,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageCard(); buildCounterGoogleCloudDialogflowV2IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCard < 3) { - o.buttons = buildUnnamed3778(); + o.buttons = buildUnnamed3976(); o.imageUri = "foo"; o.subtitle = "foo"; o.title = "foo"; @@ -1512,7 +2361,7 @@ api.GoogleCloudDialogflowV2IntentMessageCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCard < 3) { - checkUnnamed3778(o.buttons); + checkUnnamed3976(o.buttons); unittest.expect(o.imageUri, unittest.equals('foo')); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1542,7 +2391,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageCardButton--; } -buildUnnamed3779() { +buildUnnamed3977() { var o = new core .List<api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem>(); o.add(buildGoogleCloudDialogflowV2IntentMessageCarouselSelectItem()); @@ -1550,7 +2399,7 @@ return o; } -checkUnnamed3779( +checkUnnamed3977( core.List<api.GoogleCloudDialogflowV2IntentMessageCarouselSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageCarouselSelectItem(o[0]); @@ -1562,7 +2411,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageCarouselSelect(); buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect < 3) { - o.items = buildUnnamed3779(); + o.items = buildUnnamed3977(); } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect--; return o; @@ -1572,7 +2421,7 @@ api.GoogleCloudDialogflowV2IntentMessageCarouselSelect o) { buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect < 3) { - checkUnnamed3779(o.items); + checkUnnamed3977(o.items); } buildCounterGoogleCloudDialogflowV2IntentMessageCarouselSelect--; } @@ -1669,7 +2518,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageLinkOutSuggestion--; } -buildUnnamed3780() { +buildUnnamed3978() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageListSelectItem>(); o.add(buildGoogleCloudDialogflowV2IntentMessageListSelectItem()); @@ -1677,7 +2526,7 @@ return o; } -checkUnnamed3780( +checkUnnamed3978( core.List<api.GoogleCloudDialogflowV2IntentMessageListSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageListSelectItem(o[0]); @@ -1689,7 +2538,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageListSelect(); buildCounterGoogleCloudDialogflowV2IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelect < 3) { - o.items = buildUnnamed3780(); + o.items = buildUnnamed3978(); o.subtitle = "foo"; o.title = "foo"; } @@ -1701,7 +2550,7 @@ api.GoogleCloudDialogflowV2IntentMessageListSelect o) { buildCounterGoogleCloudDialogflowV2IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2IntentMessageListSelect < 3) { - checkUnnamed3780(o.items); + checkUnnamed3978(o.items); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } @@ -1734,7 +2583,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageListSelectItem--; } -buildUnnamed3781() { +buildUnnamed3979() { var o = new core.List< api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject>(); o.add( @@ -1744,7 +2593,7 @@ return o; } -checkUnnamed3781( +checkUnnamed3979( core.List< api.GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject> o) { @@ -1760,7 +2609,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageMediaContent(); buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent < 3) { - o.mediaObjects = buildUnnamed3781(); + o.mediaObjects = buildUnnamed3979(); o.mediaType = "foo"; } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent--; @@ -1771,7 +2620,7 @@ api.GoogleCloudDialogflowV2IntentMessageMediaContent o) { buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent < 3) { - checkUnnamed3781(o.mediaObjects); + checkUnnamed3979(o.mediaObjects); unittest.expect(o.mediaType, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2IntentMessageMediaContent--; @@ -1810,14 +2659,14 @@ buildCounterGoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject--; } -buildUnnamed3782() { +buildUnnamed3980() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3782(core.List<core.String> o) { +checkUnnamed3980(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1828,7 +2677,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageQuickReplies(); buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies < 3) { - o.quickReplies = buildUnnamed3782(); + o.quickReplies = buildUnnamed3980(); o.title = "foo"; } buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies--; @@ -1839,20 +2688,20 @@ api.GoogleCloudDialogflowV2IntentMessageQuickReplies o) { buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies < 3) { - checkUnnamed3782(o.quickReplies); + checkUnnamed3980(o.quickReplies); unittest.expect(o.title, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2IntentMessageQuickReplies--; } -buildUnnamed3783() { +buildUnnamed3981() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3783(core.List<core.String> o) { +checkUnnamed3981(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1864,7 +2713,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo < 3) { o.key = "foo"; - o.synonyms = buildUnnamed3783(); + o.synonyms = buildUnnamed3981(); } buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo--; return o; @@ -1875,7 +2724,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed3783(o.synonyms); + checkUnnamed3981(o.synonyms); } buildCounterGoogleCloudDialogflowV2IntentMessageSelectItemInfo--; } @@ -1904,7 +2753,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponse--; } -buildUnnamed3784() { +buildUnnamed3982() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageSimpleResponse>(); o.add(buildGoogleCloudDialogflowV2IntentMessageSimpleResponse()); @@ -1912,7 +2761,7 @@ return o; } -checkUnnamed3784( +checkUnnamed3982( core.List<api.GoogleCloudDialogflowV2IntentMessageSimpleResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageSimpleResponse(o[0]); @@ -1924,7 +2773,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageSimpleResponses(); buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses < 3) { - o.simpleResponses = buildUnnamed3784(); + o.simpleResponses = buildUnnamed3982(); } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses--; return o; @@ -1934,7 +2783,7 @@ api.GoogleCloudDialogflowV2IntentMessageSimpleResponses o) { buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses < 3) { - checkUnnamed3784(o.simpleResponses); + checkUnnamed3982(o.simpleResponses); } buildCounterGoogleCloudDialogflowV2IntentMessageSimpleResponses--; } @@ -1959,14 +2808,14 @@ buildCounterGoogleCloudDialogflowV2IntentMessageSuggestion--; } -buildUnnamed3785() { +buildUnnamed3983() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageSuggestion>(); o.add(buildGoogleCloudDialogflowV2IntentMessageSuggestion()); o.add(buildGoogleCloudDialogflowV2IntentMessageSuggestion()); return o; } -checkUnnamed3785( +checkUnnamed3983( core.List<api.GoogleCloudDialogflowV2IntentMessageSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageSuggestion(o[0]); @@ -1978,7 +2827,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageSuggestions(); buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions < 3) { - o.suggestions = buildUnnamed3785(); + o.suggestions = buildUnnamed3983(); } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions--; return o; @@ -1988,12 +2837,12 @@ api.GoogleCloudDialogflowV2IntentMessageSuggestions o) { buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions < 3) { - checkUnnamed3785(o.suggestions); + checkUnnamed3983(o.suggestions); } buildCounterGoogleCloudDialogflowV2IntentMessageSuggestions--; } -buildUnnamed3786() { +buildUnnamed3984() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton>(); o.add(buildGoogleCloudDialogflowV2IntentMessageBasicCardButton()); @@ -2001,14 +2850,14 @@ return o; } -checkUnnamed3786( +checkUnnamed3984( core.List<api.GoogleCloudDialogflowV2IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton(o[0]); checkGoogleCloudDialogflowV2IntentMessageBasicCardButton(o[1]); } -buildUnnamed3787() { +buildUnnamed3985() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageColumnProperties>(); o.add(buildGoogleCloudDialogflowV2IntentMessageColumnProperties()); @@ -2016,21 +2865,21 @@ return o; } -checkUnnamed3787( +checkUnnamed3985( core.List<api.GoogleCloudDialogflowV2IntentMessageColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageColumnProperties(o[0]); checkGoogleCloudDialogflowV2IntentMessageColumnProperties(o[1]); } -buildUnnamed3788() { +buildUnnamed3986() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardRow>(); o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardRow()); o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardRow()); return o; } -checkUnnamed3788( +checkUnnamed3986( core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardRow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageTableCardRow(o[0]); @@ -2042,10 +2891,10 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageTableCard(); buildCounterGoogleCloudDialogflowV2IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCard < 3) { - o.buttons = buildUnnamed3786(); - o.columnProperties = buildUnnamed3787(); + o.buttons = buildUnnamed3984(); + o.columnProperties = buildUnnamed3985(); o.image = buildGoogleCloudDialogflowV2IntentMessageImage(); - o.rows = buildUnnamed3788(); + o.rows = buildUnnamed3986(); o.subtitle = "foo"; o.title = "foo"; } @@ -2057,10 +2906,10 @@ api.GoogleCloudDialogflowV2IntentMessageTableCard o) { buildCounterGoogleCloudDialogflowV2IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCard < 3) { - checkUnnamed3786(o.buttons); - checkUnnamed3787(o.columnProperties); + checkUnnamed3984(o.buttons); + checkUnnamed3985(o.columnProperties); checkGoogleCloudDialogflowV2IntentMessageImage(o.image); - checkUnnamed3788(o.rows); + checkUnnamed3986(o.rows); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } @@ -2087,7 +2936,7 @@ buildCounterGoogleCloudDialogflowV2IntentMessageTableCardCell--; } -buildUnnamed3789() { +buildUnnamed3987() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardCell>(); o.add(buildGoogleCloudDialogflowV2IntentMessageTableCardCell()); @@ -2095,7 +2944,7 @@ return o; } -checkUnnamed3789( +checkUnnamed3987( core.List<api.GoogleCloudDialogflowV2IntentMessageTableCardCell> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessageTableCardCell(o[0]); @@ -2107,7 +2956,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageTableCardRow(); buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow < 3) { - o.cells = buildUnnamed3789(); + o.cells = buildUnnamed3987(); o.dividerAfter = true; } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow--; @@ -2118,20 +2967,20 @@ api.GoogleCloudDialogflowV2IntentMessageTableCardRow o) { buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow < 3) { - checkUnnamed3789(o.cells); + checkUnnamed3987(o.cells); unittest.expect(o.dividerAfter, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2IntentMessageTableCardRow--; } -buildUnnamed3790() { +buildUnnamed3988() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3790(core.List<core.String> o) { +checkUnnamed3988(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2142,7 +2991,7 @@ var o = new api.GoogleCloudDialogflowV2IntentMessageText(); buildCounterGoogleCloudDialogflowV2IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2IntentMessageText < 3) { - o.text = buildUnnamed3790(); + o.text = buildUnnamed3988(); } buildCounterGoogleCloudDialogflowV2IntentMessageText--; return o; @@ -2152,19 +3001,19 @@ api.GoogleCloudDialogflowV2IntentMessageText o) { buildCounterGoogleCloudDialogflowV2IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2IntentMessageText < 3) { - checkUnnamed3790(o.text); + checkUnnamed3988(o.text); } buildCounterGoogleCloudDialogflowV2IntentMessageText--; } -buildUnnamed3791() { +buildUnnamed3989() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3791(core.List<core.String> o) { +checkUnnamed3989(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2181,7 +3030,7 @@ o.isList = true; o.mandatory = true; o.name = "foo"; - o.prompts = buildUnnamed3791(); + o.prompts = buildUnnamed3989(); o.value = "foo"; } buildCounterGoogleCloudDialogflowV2IntentParameter--; @@ -2198,20 +3047,20 @@ unittest.expect(o.isList, unittest.isTrue); unittest.expect(o.mandatory, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3791(o.prompts); + checkUnnamed3989(o.prompts); unittest.expect(o.value, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2IntentParameter--; } -buildUnnamed3792() { +buildUnnamed3990() { var o = new core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrasePart>(); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrasePart()); o.add(buildGoogleCloudDialogflowV2IntentTrainingPhrasePart()); return o; } -checkUnnamed3792( +checkUnnamed3990( core.List<api.GoogleCloudDialogflowV2IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentTrainingPhrasePart(o[0]); @@ -2224,7 +3073,7 @@ buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase < 3) { o.name = "foo"; - o.parts = buildUnnamed3792(); + o.parts = buildUnnamed3990(); o.timesAddedCount = 42; o.type = "foo"; } @@ -2237,7 +3086,7 @@ buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2IntentTrainingPhrase < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3792(o.parts); + checkUnnamed3990(o.parts); unittest.expect(o.timesAddedCount, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } @@ -2270,14 +3119,14 @@ buildCounterGoogleCloudDialogflowV2IntentTrainingPhrasePart--; } -buildUnnamed3793() { +buildUnnamed3991() { var o = new core.List<api.GoogleCloudDialogflowV2Context>(); o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } -checkUnnamed3793(core.List<api.GoogleCloudDialogflowV2Context> o) { +checkUnnamed3991(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context(o[0]); checkGoogleCloudDialogflowV2Context(o[1]); @@ -2288,7 +3137,7 @@ var o = new api.GoogleCloudDialogflowV2ListContextsResponse(); buildCounterGoogleCloudDialogflowV2ListContextsResponse++; if (buildCounterGoogleCloudDialogflowV2ListContextsResponse < 3) { - o.contexts = buildUnnamed3793(); + o.contexts = buildUnnamed3991(); o.nextPageToken = "foo"; } buildCounterGoogleCloudDialogflowV2ListContextsResponse--; @@ -2299,20 +3148,20 @@ api.GoogleCloudDialogflowV2ListContextsResponse o) { buildCounterGoogleCloudDialogflowV2ListContextsResponse++; if (buildCounterGoogleCloudDialogflowV2ListContextsResponse < 3) { - checkUnnamed3793(o.contexts); + checkUnnamed3991(o.contexts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2ListContextsResponse--; } -buildUnnamed3794() { +buildUnnamed3992() { var o = new core.List<api.GoogleCloudDialogflowV2EntityType>(); o.add(buildGoogleCloudDialogflowV2EntityType()); o.add(buildGoogleCloudDialogflowV2EntityType()); return o; } -checkUnnamed3794(core.List<api.GoogleCloudDialogflowV2EntityType> o) { +checkUnnamed3992(core.List<api.GoogleCloudDialogflowV2EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityType(o[0]); checkGoogleCloudDialogflowV2EntityType(o[1]); @@ -2323,7 +3172,7 @@ var o = new api.GoogleCloudDialogflowV2ListEntityTypesResponse(); buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse < 3) { - o.entityTypes = buildUnnamed3794(); + o.entityTypes = buildUnnamed3992(); o.nextPageToken = "foo"; } buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse--; @@ -2334,20 +3183,20 @@ api.GoogleCloudDialogflowV2ListEntityTypesResponse o) { buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse < 3) { - checkUnnamed3794(o.entityTypes); + checkUnnamed3992(o.entityTypes); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2ListEntityTypesResponse--; } -buildUnnamed3795() { +buildUnnamed3993() { var o = new core.List<api.GoogleCloudDialogflowV2Environment>(); o.add(buildGoogleCloudDialogflowV2Environment()); o.add(buildGoogleCloudDialogflowV2Environment()); return o; } -checkUnnamed3795(core.List<api.GoogleCloudDialogflowV2Environment> o) { +checkUnnamed3993(core.List<api.GoogleCloudDialogflowV2Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Environment(o[0]); checkGoogleCloudDialogflowV2Environment(o[1]); @@ -2358,7 +3207,7 @@ var o = new api.GoogleCloudDialogflowV2ListEnvironmentsResponse(); buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse < 3) { - o.environments = buildUnnamed3795(); + o.environments = buildUnnamed3993(); o.nextPageToken = "foo"; } buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse--; @@ -2369,20 +3218,20 @@ api.GoogleCloudDialogflowV2ListEnvironmentsResponse o) { buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse++; if (buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse < 3) { - checkUnnamed3795(o.environments); + checkUnnamed3993(o.environments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2ListEnvironmentsResponse--; } -buildUnnamed3796() { +buildUnnamed3994() { var o = new core.List<api.GoogleCloudDialogflowV2Intent>(); o.add(buildGoogleCloudDialogflowV2Intent()); o.add(buildGoogleCloudDialogflowV2Intent()); return o; } -checkUnnamed3796(core.List<api.GoogleCloudDialogflowV2Intent> o) { +checkUnnamed3994(core.List<api.GoogleCloudDialogflowV2Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Intent(o[0]); checkGoogleCloudDialogflowV2Intent(o[1]); @@ -2393,7 +3242,7 @@ var o = new api.GoogleCloudDialogflowV2ListIntentsResponse(); buildCounterGoogleCloudDialogflowV2ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2ListIntentsResponse < 3) { - o.intents = buildUnnamed3796(); + o.intents = buildUnnamed3994(); o.nextPageToken = "foo"; } buildCounterGoogleCloudDialogflowV2ListIntentsResponse--; @@ -2404,20 +3253,20 @@ api.GoogleCloudDialogflowV2ListIntentsResponse o) { buildCounterGoogleCloudDialogflowV2ListIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2ListIntentsResponse < 3) { - checkUnnamed3796(o.intents); + checkUnnamed3994(o.intents); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2ListIntentsResponse--; } -buildUnnamed3797() { +buildUnnamed3995() { var o = new core.List<api.GoogleCloudDialogflowV2SessionEntityType>(); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); return o; } -checkUnnamed3797(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { +checkUnnamed3995(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2SessionEntityType(o[0]); checkGoogleCloudDialogflowV2SessionEntityType(o[1]); @@ -2429,7 +3278,7 @@ buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse < 3) { o.nextPageToken = "foo"; - o.sessionEntityTypes = buildUnnamed3797(); + o.sessionEntityTypes = buildUnnamed3995(); } buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse--; return o; @@ -2440,7 +3289,7 @@ buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3797(o.sessionEntityTypes); + checkUnnamed3995(o.sessionEntityTypes); } buildCounterGoogleCloudDialogflowV2ListSessionEntityTypesResponse--; } @@ -2476,14 +3325,14 @@ buildCounterGoogleCloudDialogflowV2Message--; } -buildUnnamed3798() { +buildUnnamed3996() { var o = new core.List<api.GoogleCloudDialogflowV2AnnotatedMessagePart>(); o.add(buildGoogleCloudDialogflowV2AnnotatedMessagePart()); o.add(buildGoogleCloudDialogflowV2AnnotatedMessagePart()); return o; } -checkUnnamed3798(core.List<api.GoogleCloudDialogflowV2AnnotatedMessagePart> o) { +checkUnnamed3996(core.List<api.GoogleCloudDialogflowV2AnnotatedMessagePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2AnnotatedMessagePart(o[0]); checkGoogleCloudDialogflowV2AnnotatedMessagePart(o[1]); @@ -2495,7 +3344,7 @@ buildCounterGoogleCloudDialogflowV2MessageAnnotation++; if (buildCounterGoogleCloudDialogflowV2MessageAnnotation < 3) { o.containEntities = true; - o.parts = buildUnnamed3798(); + o.parts = buildUnnamed3996(); } buildCounterGoogleCloudDialogflowV2MessageAnnotation--; return o; @@ -2506,12 +3355,12 @@ buildCounterGoogleCloudDialogflowV2MessageAnnotation++; if (buildCounterGoogleCloudDialogflowV2MessageAnnotation < 3) { unittest.expect(o.containEntities, unittest.isTrue); - checkUnnamed3798(o.parts); + checkUnnamed3996(o.parts); } buildCounterGoogleCloudDialogflowV2MessageAnnotation--; } -buildUnnamed3799() { +buildUnnamed3997() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2526,18 +3375,18 @@ return o; } -checkUnnamed3799(core.Map<core.String, core.Object> o) { +checkUnnamed3997(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')); + var casted22 = (o["x"]) 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')); + var casted23 = (o["y"]) 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')); } core.int buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest = 0; @@ -2545,7 +3394,7 @@ var o = new api.GoogleCloudDialogflowV2OriginalDetectIntentRequest(); buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest < 3) { - o.payload = buildUnnamed3799(); + o.payload = buildUnnamed3997(); o.source = "foo"; o.version = "foo"; } @@ -2557,7 +3406,7 @@ api.GoogleCloudDialogflowV2OriginalDetectIntentRequest o) { buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2OriginalDetectIntentRequest < 3) { - checkUnnamed3799(o.payload); + checkUnnamed3997(o.payload); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -2614,20 +3463,20 @@ buildCounterGoogleCloudDialogflowV2QueryInput--; } -buildUnnamed3800() { +buildUnnamed3998() { var o = new core.List<api.GoogleCloudDialogflowV2Context>(); o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } -checkUnnamed3800(core.List<api.GoogleCloudDialogflowV2Context> o) { +checkUnnamed3998(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context(o[0]); checkGoogleCloudDialogflowV2Context(o[1]); } -buildUnnamed3801() { +buildUnnamed3999() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2642,28 +3491,28 @@ return o; } -checkUnnamed3801(core.Map<core.String, core.Object> o) { +checkUnnamed3999(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted10 = (o["x"]) as core.Map; - unittest.expect(casted10, unittest.hasLength(3)); - unittest.expect(casted10["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted10["bool"], unittest.equals(true)); - unittest.expect(casted10["string"], unittest.equals('foo')); - var casted11 = (o["y"]) as core.Map; - unittest.expect(casted11, unittest.hasLength(3)); - unittest.expect(casted11["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted11["bool"], unittest.equals(true)); - unittest.expect(casted11["string"], unittest.equals('foo')); + var casted24 = (o["x"]) 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')); + var casted25 = (o["y"]) 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')); } -buildUnnamed3802() { +buildUnnamed4000() { var o = new core.List<api.GoogleCloudDialogflowV2SessionEntityType>(); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); return o; } -checkUnnamed3802(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { +checkUnnamed4000(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2SessionEntityType(o[0]); checkGoogleCloudDialogflowV2SessionEntityType(o[1]); @@ -2674,13 +3523,13 @@ var o = new api.GoogleCloudDialogflowV2QueryParameters(); buildCounterGoogleCloudDialogflowV2QueryParameters++; if (buildCounterGoogleCloudDialogflowV2QueryParameters < 3) { - o.contexts = buildUnnamed3800(); + o.contexts = buildUnnamed3998(); o.geoLocation = buildGoogleTypeLatLng(); - o.payload = buildUnnamed3801(); + o.payload = buildUnnamed3999(); o.resetContexts = true; o.sentimentAnalysisRequestConfig = buildGoogleCloudDialogflowV2SentimentAnalysisRequestConfig(); - o.sessionEntityTypes = buildUnnamed3802(); + o.sessionEntityTypes = buildUnnamed4000(); o.timeZone = "foo"; } buildCounterGoogleCloudDialogflowV2QueryParameters--; @@ -2691,19 +3540,19 @@ api.GoogleCloudDialogflowV2QueryParameters o) { buildCounterGoogleCloudDialogflowV2QueryParameters++; if (buildCounterGoogleCloudDialogflowV2QueryParameters < 3) { - checkUnnamed3800(o.contexts); + checkUnnamed3998(o.contexts); checkGoogleTypeLatLng(o.geoLocation); - checkUnnamed3801(o.payload); + checkUnnamed3999(o.payload); unittest.expect(o.resetContexts, unittest.isTrue); checkGoogleCloudDialogflowV2SentimentAnalysisRequestConfig( o.sentimentAnalysisRequestConfig); - checkUnnamed3802(o.sessionEntityTypes); + checkUnnamed4000(o.sessionEntityTypes); unittest.expect(o.timeZone, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2QueryParameters--; } -buildUnnamed3803() { +buildUnnamed4001() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2718,47 +3567,47 @@ return o; } -checkUnnamed3803(core.Map<core.String, core.Object> o) { +checkUnnamed4001(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted12 = (o["x"]) 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')); - var casted13 = (o["y"]) 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 casted26 = (o["x"]) 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')); + var casted27 = (o["y"]) 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')); } -buildUnnamed3804() { +buildUnnamed4002() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessage>(); o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } -checkUnnamed3804(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { +checkUnnamed4002(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage(o[0]); checkGoogleCloudDialogflowV2IntentMessage(o[1]); } -buildUnnamed3805() { +buildUnnamed4003() { var o = new core.List<api.GoogleCloudDialogflowV2Context>(); o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } -checkUnnamed3805(core.List<api.GoogleCloudDialogflowV2Context> o) { +checkUnnamed4003(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context(o[0]); checkGoogleCloudDialogflowV2Context(o[1]); } -buildUnnamed3806() { +buildUnnamed4004() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2773,21 +3622,21 @@ return o; } -checkUnnamed3806(core.Map<core.String, core.Object> o) { +checkUnnamed4004(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted14 = (o["x"]) 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')); - var casted15 = (o["y"]) 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 casted28 = (o["x"]) 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')); + var casted29 = (o["y"]) as core.Map; + unittest.expect(casted29, unittest.hasLength(3)); + unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted29["bool"], unittest.equals(true)); + unittest.expect(casted29["string"], unittest.equals('foo')); } -buildUnnamed3807() { +buildUnnamed4005() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2802,18 +3651,18 @@ return o; } -checkUnnamed3807(core.Map<core.String, core.Object> o) { +checkUnnamed4005(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted16 = (o["x"]) 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')); - var casted17 = (o["y"]) 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 casted30 = (o["x"]) as core.Map; + unittest.expect(casted30, unittest.hasLength(3)); + unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted30["bool"], unittest.equals(true)); + unittest.expect(casted30["string"], unittest.equals('foo')); + var casted31 = (o["y"]) as core.Map; + unittest.expect(casted31, unittest.hasLength(3)); + unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted31["bool"], unittest.equals(true)); + unittest.expect(casted31["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2QueryResult = 0; @@ -2823,19 +3672,19 @@ if (buildCounterGoogleCloudDialogflowV2QueryResult < 3) { o.action = "foo"; o.allRequiredParamsPresent = true; - o.diagnosticInfo = buildUnnamed3803(); - o.fulfillmentMessages = buildUnnamed3804(); + o.diagnosticInfo = buildUnnamed4001(); + o.fulfillmentMessages = buildUnnamed4002(); o.fulfillmentText = "foo"; o.intent = buildGoogleCloudDialogflowV2Intent(); o.intentDetectionConfidence = 42.0; o.languageCode = "foo"; - o.outputContexts = buildUnnamed3805(); - o.parameters = buildUnnamed3806(); + o.outputContexts = buildUnnamed4003(); + o.parameters = buildUnnamed4004(); o.queryText = "foo"; o.sentimentAnalysisResult = buildGoogleCloudDialogflowV2SentimentAnalysisResult(); o.speechRecognitionConfidence = 42.0; - o.webhookPayload = buildUnnamed3807(); + o.webhookPayload = buildUnnamed4005(); o.webhookSource = "foo"; } buildCounterGoogleCloudDialogflowV2QueryResult--; @@ -2848,19 +3697,19 @@ if (buildCounterGoogleCloudDialogflowV2QueryResult < 3) { unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.allRequiredParamsPresent, unittest.isTrue); - checkUnnamed3803(o.diagnosticInfo); - checkUnnamed3804(o.fulfillmentMessages); + checkUnnamed4001(o.diagnosticInfo); + checkUnnamed4002(o.fulfillmentMessages); unittest.expect(o.fulfillmentText, unittest.equals('foo')); checkGoogleCloudDialogflowV2Intent(o.intent); unittest.expect(o.intentDetectionConfidence, unittest.equals(42.0)); unittest.expect(o.languageCode, unittest.equals('foo')); - checkUnnamed3805(o.outputContexts); - checkUnnamed3806(o.parameters); + checkUnnamed4003(o.outputContexts); + checkUnnamed4004(o.parameters); unittest.expect(o.queryText, unittest.equals('foo')); checkGoogleCloudDialogflowV2SentimentAnalysisResult( o.sentimentAnalysisResult); unittest.expect(o.speechRecognitionConfidence, unittest.equals(42.0)); - checkUnnamed3807(o.webhookPayload); + checkUnnamed4005(o.webhookPayload); unittest.expect(o.webhookSource, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2QueryResult--; @@ -2888,14 +3737,14 @@ buildCounterGoogleCloudDialogflowV2RestoreAgentRequest--; } -buildUnnamed3808() { +buildUnnamed4006() { var o = new core.List<api.GoogleCloudDialogflowV2Agent>(); o.add(buildGoogleCloudDialogflowV2Agent()); o.add(buildGoogleCloudDialogflowV2Agent()); return o; } -checkUnnamed3808(core.List<api.GoogleCloudDialogflowV2Agent> o) { +checkUnnamed4006(core.List<api.GoogleCloudDialogflowV2Agent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Agent(o[0]); checkGoogleCloudDialogflowV2Agent(o[1]); @@ -2906,7 +3755,7 @@ var o = new api.GoogleCloudDialogflowV2SearchAgentsResponse(); buildCounterGoogleCloudDialogflowV2SearchAgentsResponse++; if (buildCounterGoogleCloudDialogflowV2SearchAgentsResponse < 3) { - o.agents = buildUnnamed3808(); + o.agents = buildUnnamed4006(); o.nextPageToken = "foo"; } buildCounterGoogleCloudDialogflowV2SearchAgentsResponse--; @@ -2917,7 +3766,7 @@ api.GoogleCloudDialogflowV2SearchAgentsResponse o) { buildCounterGoogleCloudDialogflowV2SearchAgentsResponse++; if (buildCounterGoogleCloudDialogflowV2SearchAgentsResponse < 3) { - checkUnnamed3808(o.agents); + checkUnnamed4006(o.agents); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2SearchAgentsResponse--; @@ -2984,14 +3833,14 @@ buildCounterGoogleCloudDialogflowV2SentimentAnalysisResult--; } -buildUnnamed3809() { +buildUnnamed4007() { var o = new core.List<api.GoogleCloudDialogflowV2EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2EntityTypeEntity()); return o; } -checkUnnamed3809(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { +checkUnnamed4007(core.List<api.GoogleCloudDialogflowV2EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2EntityTypeEntity(o[0]); checkGoogleCloudDialogflowV2EntityTypeEntity(o[1]); @@ -3002,7 +3851,7 @@ var o = new api.GoogleCloudDialogflowV2SessionEntityType(); buildCounterGoogleCloudDialogflowV2SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2SessionEntityType < 3) { - o.entities = buildUnnamed3809(); + o.entities = buildUnnamed4007(); o.entityOverrideMode = "foo"; o.name = "foo"; } @@ -3014,21 +3863,21 @@ api.GoogleCloudDialogflowV2SessionEntityType o) { buildCounterGoogleCloudDialogflowV2SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2SessionEntityType < 3) { - checkUnnamed3809(o.entities); + checkUnnamed4007(o.entities); unittest.expect(o.entityOverrideMode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2SessionEntityType--; } -buildUnnamed3810() { +buildUnnamed4008() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3810(core.List<core.String> o) { +checkUnnamed4008(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3040,7 +3889,7 @@ buildCounterGoogleCloudDialogflowV2SpeechContext++; if (buildCounterGoogleCloudDialogflowV2SpeechContext < 3) { o.boost = 42.0; - o.phrases = buildUnnamed3810(); + o.phrases = buildUnnamed4008(); } buildCounterGoogleCloudDialogflowV2SpeechContext--; return o; @@ -3051,19 +3900,19 @@ buildCounterGoogleCloudDialogflowV2SpeechContext++; if (buildCounterGoogleCloudDialogflowV2SpeechContext < 3) { unittest.expect(o.boost, unittest.equals(42.0)); - checkUnnamed3810(o.phrases); + checkUnnamed4008(o.phrases); } buildCounterGoogleCloudDialogflowV2SpeechContext--; } -buildUnnamed3811() { +buildUnnamed4009() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3811(core.List<core.String> o) { +checkUnnamed4009(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3074,7 +3923,7 @@ var o = new api.GoogleCloudDialogflowV2SynthesizeSpeechConfig(); buildCounterGoogleCloudDialogflowV2SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowV2SynthesizeSpeechConfig < 3) { - o.effectsProfileId = buildUnnamed3811(); + o.effectsProfileId = buildUnnamed4009(); o.pitch = 42.0; o.speakingRate = 42.0; o.voice = buildGoogleCloudDialogflowV2VoiceSelectionParams(); @@ -3088,7 +3937,7 @@ api.GoogleCloudDialogflowV2SynthesizeSpeechConfig o) { buildCounterGoogleCloudDialogflowV2SynthesizeSpeechConfig++; if (buildCounterGoogleCloudDialogflowV2SynthesizeSpeechConfig < 3) { - checkUnnamed3811(o.effectsProfileId); + checkUnnamed4009(o.effectsProfileId); unittest.expect(o.pitch, unittest.equals(42.0)); unittest.expect(o.speakingRate, unittest.equals(42.0)); checkGoogleCloudDialogflowV2VoiceSelectionParams(o.voice); @@ -3134,14 +3983,14 @@ buildCounterGoogleCloudDialogflowV2TrainAgentRequest--; } -buildUnnamed3812() { +buildUnnamed4010() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3812(core.List<core.String> o) { +checkUnnamed4010(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3152,7 +4001,7 @@ var o = new api.GoogleCloudDialogflowV2ValidationError(); buildCounterGoogleCloudDialogflowV2ValidationError++; if (buildCounterGoogleCloudDialogflowV2ValidationError < 3) { - o.entries = buildUnnamed3812(); + o.entries = buildUnnamed4010(); o.errorMessage = "foo"; o.severity = "foo"; } @@ -3164,21 +4013,21 @@ api.GoogleCloudDialogflowV2ValidationError o) { buildCounterGoogleCloudDialogflowV2ValidationError++; if (buildCounterGoogleCloudDialogflowV2ValidationError < 3) { - checkUnnamed3812(o.entries); + checkUnnamed4010(o.entries); unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.severity, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2ValidationError--; } -buildUnnamed3813() { +buildUnnamed4011() { var o = new core.List<api.GoogleCloudDialogflowV2ValidationError>(); o.add(buildGoogleCloudDialogflowV2ValidationError()); o.add(buildGoogleCloudDialogflowV2ValidationError()); return o; } -checkUnnamed3813(core.List<api.GoogleCloudDialogflowV2ValidationError> o) { +checkUnnamed4011(core.List<api.GoogleCloudDialogflowV2ValidationError> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2ValidationError(o[0]); checkGoogleCloudDialogflowV2ValidationError(o[1]); @@ -3189,7 +4038,7 @@ var o = new api.GoogleCloudDialogflowV2ValidationResult(); buildCounterGoogleCloudDialogflowV2ValidationResult++; if (buildCounterGoogleCloudDialogflowV2ValidationResult < 3) { - o.validationErrors = buildUnnamed3813(); + o.validationErrors = buildUnnamed4011(); } buildCounterGoogleCloudDialogflowV2ValidationResult--; return o; @@ -3199,7 +4048,7 @@ api.GoogleCloudDialogflowV2ValidationResult o) { buildCounterGoogleCloudDialogflowV2ValidationResult++; if (buildCounterGoogleCloudDialogflowV2ValidationResult < 3) { - checkUnnamed3813(o.validationErrors); + checkUnnamed4011(o.validationErrors); } buildCounterGoogleCloudDialogflowV2ValidationResult--; } @@ -3254,33 +4103,33 @@ buildCounterGoogleCloudDialogflowV2WebhookRequest--; } -buildUnnamed3814() { +buildUnnamed4012() { var o = new core.List<api.GoogleCloudDialogflowV2IntentMessage>(); o.add(buildGoogleCloudDialogflowV2IntentMessage()); o.add(buildGoogleCloudDialogflowV2IntentMessage()); return o; } -checkUnnamed3814(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { +checkUnnamed4012(core.List<api.GoogleCloudDialogflowV2IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2IntentMessage(o[0]); checkGoogleCloudDialogflowV2IntentMessage(o[1]); } -buildUnnamed3815() { +buildUnnamed4013() { var o = new core.List<api.GoogleCloudDialogflowV2Context>(); o.add(buildGoogleCloudDialogflowV2Context()); o.add(buildGoogleCloudDialogflowV2Context()); return o; } -checkUnnamed3815(core.List<api.GoogleCloudDialogflowV2Context> o) { +checkUnnamed4013(core.List<api.GoogleCloudDialogflowV2Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2Context(o[0]); checkGoogleCloudDialogflowV2Context(o[1]); } -buildUnnamed3816() { +buildUnnamed4014() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -3295,28 +4144,28 @@ return o; } -checkUnnamed3816(core.Map<core.String, core.Object> o) { +checkUnnamed4014(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted18 = (o["x"]) as core.Map; - unittest.expect(casted18, unittest.hasLength(3)); - unittest.expect(casted18["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted18["bool"], unittest.equals(true)); - unittest.expect(casted18["string"], unittest.equals('foo')); - var casted19 = (o["y"]) as core.Map; - unittest.expect(casted19, unittest.hasLength(3)); - unittest.expect(casted19["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted19["bool"], unittest.equals(true)); - unittest.expect(casted19["string"], unittest.equals('foo')); + var casted32 = (o["x"]) as core.Map; + unittest.expect(casted32, unittest.hasLength(3)); + unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted32["bool"], unittest.equals(true)); + unittest.expect(casted32["string"], unittest.equals('foo')); + var casted33 = (o["y"]) as core.Map; + unittest.expect(casted33, unittest.hasLength(3)); + unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted33["bool"], unittest.equals(true)); + unittest.expect(casted33["string"], unittest.equals('foo')); } -buildUnnamed3817() { +buildUnnamed4015() { var o = new core.List<api.GoogleCloudDialogflowV2SessionEntityType>(); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); o.add(buildGoogleCloudDialogflowV2SessionEntityType()); return o; } -checkUnnamed3817(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { +checkUnnamed4015(core.List<api.GoogleCloudDialogflowV2SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2SessionEntityType(o[0]); checkGoogleCloudDialogflowV2SessionEntityType(o[1]); @@ -3328,11 +4177,11 @@ buildCounterGoogleCloudDialogflowV2WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2WebhookResponse < 3) { o.followupEventInput = buildGoogleCloudDialogflowV2EventInput(); - o.fulfillmentMessages = buildUnnamed3814(); + o.fulfillmentMessages = buildUnnamed4012(); o.fulfillmentText = "foo"; - o.outputContexts = buildUnnamed3815(); - o.payload = buildUnnamed3816(); - o.sessionEntityTypes = buildUnnamed3817(); + o.outputContexts = buildUnnamed4013(); + o.payload = buildUnnamed4014(); + o.sessionEntityTypes = buildUnnamed4015(); o.source = "foo"; } buildCounterGoogleCloudDialogflowV2WebhookResponse--; @@ -3344,11 +4193,11 @@ buildCounterGoogleCloudDialogflowV2WebhookResponse++; if (buildCounterGoogleCloudDialogflowV2WebhookResponse < 3) { checkGoogleCloudDialogflowV2EventInput(o.followupEventInput); - checkUnnamed3814(o.fulfillmentMessages); + checkUnnamed4012(o.fulfillmentMessages); unittest.expect(o.fulfillmentText, unittest.equals('foo')); - checkUnnamed3815(o.outputContexts); - checkUnnamed3816(o.payload); - checkUnnamed3817(o.sessionEntityTypes); + checkUnnamed4013(o.outputContexts); + checkUnnamed4014(o.payload); + checkUnnamed4015(o.sessionEntityTypes); unittest.expect(o.source, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2WebhookResponse--; @@ -3389,14 +4238,44 @@ buildCounterGoogleCloudDialogflowV2beta1AnnotatedConversationDataset--; } -buildUnnamed3818() { +core.int + buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse = + 0; +buildGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse() { + var o = new api + .GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse(); + buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse++; + if (buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse < + 3) { + o.disabledCount = 42; + o.enabledCount = 42; + o.unreviewedCount = 42; + } + buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse--; + return o; +} + +checkGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse( + api.GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse + o) { + buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse++; + if (buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse < + 3) { + unittest.expect(o.disabledCount, unittest.equals(42)); + unittest.expect(o.enabledCount, unittest.equals(42)); + unittest.expect(o.unreviewedCount, unittest.equals(42)); + } + buildCounterGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse--; +} + +buildUnnamed4016() { var o = new core.List<api.GoogleCloudDialogflowV2beta1EntityType>(); o.add(buildGoogleCloudDialogflowV2beta1EntityType()); o.add(buildGoogleCloudDialogflowV2beta1EntityType()); return o; } -checkUnnamed3818(core.List<api.GoogleCloudDialogflowV2beta1EntityType> o) { +checkUnnamed4016(core.List<api.GoogleCloudDialogflowV2beta1EntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityType(o[0]); checkGoogleCloudDialogflowV2beta1EntityType(o[1]); @@ -3409,7 +4288,7 @@ buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse < 3) { - o.entityTypes = buildUnnamed3818(); + o.entityTypes = buildUnnamed4016(); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse--; return o; @@ -3420,19 +4299,19 @@ buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse < 3) { - checkUnnamed3818(o.entityTypes); + checkUnnamed4016(o.entityTypes); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse--; } -buildUnnamed3819() { +buildUnnamed4017() { var o = new core.List<api.GoogleCloudDialogflowV2beta1Intent>(); o.add(buildGoogleCloudDialogflowV2beta1Intent()); o.add(buildGoogleCloudDialogflowV2beta1Intent()); return o; } -checkUnnamed3819(core.List<api.GoogleCloudDialogflowV2beta1Intent> o) { +checkUnnamed4017(core.List<api.GoogleCloudDialogflowV2beta1Intent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Intent(o[0]); checkGoogleCloudDialogflowV2beta1Intent(o[1]); @@ -3443,7 +4322,7 @@ var o = new api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse(); buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse < 3) { - o.intents = buildUnnamed3819(); + o.intents = buildUnnamed4017(); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse--; return o; @@ -3453,12 +4332,12 @@ api.GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse o) { buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse++; if (buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse < 3) { - checkUnnamed3819(o.intents); + checkUnnamed4017(o.intents); } buildCounterGoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse--; } -buildUnnamed3820() { +buildUnnamed4018() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -3473,18 +4352,18 @@ return o; } -checkUnnamed3820(core.Map<core.String, core.Object> o) { +checkUnnamed4018(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted20 = (o["x"]) 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')); - var casted21 = (o["y"]) 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 casted34 = (o["x"]) as core.Map; + unittest.expect(casted34, unittest.hasLength(3)); + unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted34["bool"], unittest.equals(true)); + unittest.expect(casted34["string"], unittest.equals('foo')); + var casted35 = (o["y"]) as core.Map; + unittest.expect(casted35, unittest.hasLength(3)); + unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted35["bool"], unittest.equals(true)); + unittest.expect(casted35["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2beta1Context = 0; @@ -3494,7 +4373,7 @@ if (buildCounterGoogleCloudDialogflowV2beta1Context < 3) { o.lifespanCount = 42; o.name = "foo"; - o.parameters = buildUnnamed3820(); + o.parameters = buildUnnamed4018(); } buildCounterGoogleCloudDialogflowV2beta1Context--; return o; @@ -3506,19 +4385,19 @@ if (buildCounterGoogleCloudDialogflowV2beta1Context < 3) { unittest.expect(o.lifespanCount, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3820(o.parameters); + checkUnnamed4018(o.parameters); } buildCounterGoogleCloudDialogflowV2beta1Context--; } -buildUnnamed3821() { +buildUnnamed4019() { var o = new core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); return o; } -checkUnnamed3821( +checkUnnamed4019( core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityTypeEntity(o[0]); @@ -3533,7 +4412,7 @@ o.autoExpansionMode = "foo"; o.displayName = "foo"; o.enableFuzzyExtraction = true; - o.entities = buildUnnamed3821(); + o.entities = buildUnnamed4019(); o.kind = "foo"; o.name = "foo"; } @@ -3548,21 +4427,21 @@ unittest.expect(o.autoExpansionMode, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.enableFuzzyExtraction, unittest.isTrue); - checkUnnamed3821(o.entities); + checkUnnamed4019(o.entities); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1EntityType--; } -buildUnnamed3822() { +buildUnnamed4020() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3822(core.List<core.String> o) { +checkUnnamed4020(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3573,7 +4452,7 @@ var o = new api.GoogleCloudDialogflowV2beta1EntityTypeEntity(); buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity < 3) { - o.synonyms = buildUnnamed3822(); + o.synonyms = buildUnnamed4020(); o.value = "foo"; } buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity--; @@ -3584,13 +4463,13 @@ api.GoogleCloudDialogflowV2beta1EntityTypeEntity o) { buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity++; if (buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity < 3) { - checkUnnamed3822(o.synonyms); + checkUnnamed4020(o.synonyms); unittest.expect(o.value, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1EntityTypeEntity--; } -buildUnnamed3823() { +buildUnnamed4021() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -3605,18 +4484,18 @@ return o; } -checkUnnamed3823(core.Map<core.String, core.Object> o) { +checkUnnamed4021(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted22 = (o["x"]) 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')); - var casted23 = (o["y"]) 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 casted36 = (o["x"]) as core.Map; + unittest.expect(casted36, unittest.hasLength(3)); + unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted36["bool"], unittest.equals(true)); + unittest.expect(casted36["string"], unittest.equals('foo')); + var casted37 = (o["y"]) as core.Map; + unittest.expect(casted37, unittest.hasLength(3)); + unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted37["bool"], unittest.equals(true)); + unittest.expect(casted37["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2beta1EventInput = 0; @@ -3626,7 +4505,7 @@ if (buildCounterGoogleCloudDialogflowV2beta1EventInput < 3) { o.languageCode = "foo"; o.name = "foo"; - o.parameters = buildUnnamed3823(); + o.parameters = buildUnnamed4021(); } buildCounterGoogleCloudDialogflowV2beta1EventInput--; return o; @@ -3638,7 +4517,7 @@ if (buildCounterGoogleCloudDialogflowV2beta1EventInput < 3) { unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3823(o.parameters); + checkUnnamed4021(o.parameters); } buildCounterGoogleCloudDialogflowV2beta1EventInput--; } @@ -3665,33 +4544,33 @@ buildCounterGoogleCloudDialogflowV2beta1ExportAgentResponse--; } -buildUnnamed3824() { +buildUnnamed4022() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3824(core.List<core.String> o) { +checkUnnamed4022(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3825() { +buildUnnamed4023() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3825(core.List<core.String> o) { +checkUnnamed4023(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3826() { +buildUnnamed4024() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo>(); o.add(buildGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo()); @@ -3699,73 +4578,73 @@ return o; } -checkUnnamed3826( +checkUnnamed4024( core.List<api.GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo(o[0]); checkGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo(o[1]); } -buildUnnamed3827() { +buildUnnamed4025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3827(core.List<core.String> o) { +checkUnnamed4025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3828() { +buildUnnamed4026() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentMessage>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } -checkUnnamed3828(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { +checkUnnamed4026(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage(o[0]); checkGoogleCloudDialogflowV2beta1IntentMessage(o[1]); } -buildUnnamed3829() { +buildUnnamed4027() { var o = new core.List<api.GoogleCloudDialogflowV2beta1Context>(); o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } -checkUnnamed3829(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { +checkUnnamed4027(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context(o[0]); checkGoogleCloudDialogflowV2beta1Context(o[1]); } -buildUnnamed3830() { +buildUnnamed4028() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentParameter>(); o.add(buildGoogleCloudDialogflowV2beta1IntentParameter()); o.add(buildGoogleCloudDialogflowV2beta1IntentParameter()); return o; } -checkUnnamed3830(core.List<api.GoogleCloudDialogflowV2beta1IntentParameter> o) { +checkUnnamed4028(core.List<api.GoogleCloudDialogflowV2beta1IntentParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentParameter(o[0]); checkGoogleCloudDialogflowV2beta1IntentParameter(o[1]); } -buildUnnamed3831() { +buildUnnamed4029() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase>(); o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase()); o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrase()); return o; } -checkUnnamed3831( +checkUnnamed4029( core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrase> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrase(o[0]); @@ -3778,24 +4657,24 @@ buildCounterGoogleCloudDialogflowV2beta1Intent++; if (buildCounterGoogleCloudDialogflowV2beta1Intent < 3) { o.action = "foo"; - o.defaultResponsePlatforms = buildUnnamed3824(); + o.defaultResponsePlatforms = buildUnnamed4022(); o.displayName = "foo"; o.endInteraction = true; - o.events = buildUnnamed3825(); - o.followupIntentInfo = buildUnnamed3826(); - o.inputContextNames = buildUnnamed3827(); + o.events = buildUnnamed4023(); + o.followupIntentInfo = buildUnnamed4024(); + o.inputContextNames = buildUnnamed4025(); o.isFallback = true; - o.messages = buildUnnamed3828(); + o.messages = buildUnnamed4026(); o.mlDisabled = true; o.mlEnabled = true; o.name = "foo"; - o.outputContexts = buildUnnamed3829(); - o.parameters = buildUnnamed3830(); + o.outputContexts = buildUnnamed4027(); + o.parameters = buildUnnamed4028(); o.parentFollowupIntentName = "foo"; o.priority = 42; o.resetContexts = true; o.rootFollowupIntentName = "foo"; - o.trainingPhrases = buildUnnamed3831(); + o.trainingPhrases = buildUnnamed4029(); o.webhookState = "foo"; } buildCounterGoogleCloudDialogflowV2beta1Intent--; @@ -3807,24 +4686,24 @@ buildCounterGoogleCloudDialogflowV2beta1Intent++; if (buildCounterGoogleCloudDialogflowV2beta1Intent < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed3824(o.defaultResponsePlatforms); + checkUnnamed4022(o.defaultResponsePlatforms); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.endInteraction, unittest.isTrue); - checkUnnamed3825(o.events); - checkUnnamed3826(o.followupIntentInfo); - checkUnnamed3827(o.inputContextNames); + checkUnnamed4023(o.events); + checkUnnamed4024(o.followupIntentInfo); + checkUnnamed4025(o.inputContextNames); unittest.expect(o.isFallback, unittest.isTrue); - checkUnnamed3828(o.messages); + checkUnnamed4026(o.messages); unittest.expect(o.mlDisabled, unittest.isTrue); unittest.expect(o.mlEnabled, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3829(o.outputContexts); - checkUnnamed3830(o.parameters); + checkUnnamed4027(o.outputContexts); + checkUnnamed4028(o.parameters); unittest.expect(o.parentFollowupIntentName, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.resetContexts, unittest.isTrue); unittest.expect(o.rootFollowupIntentName, unittest.equals('foo')); - checkUnnamed3831(o.trainingPhrases); + checkUnnamed4029(o.trainingPhrases); unittest.expect(o.webhookState, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1Intent--; @@ -3852,7 +4731,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentFollowupIntentInfo--; } -buildUnnamed3832() { +buildUnnamed4030() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -3867,18 +4746,18 @@ return o; } -checkUnnamed3832(core.Map<core.String, core.Object> o) { +checkUnnamed4030(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted24 = (o["x"]) 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')); - var casted25 = (o["y"]) 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 casted38 = (o["x"]) as core.Map; + unittest.expect(casted38, unittest.hasLength(3)); + unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted38["bool"], unittest.equals(true)); + unittest.expect(casted38["string"], unittest.equals('foo')); + var casted39 = (o["y"]) as core.Map; + unittest.expect(casted39, unittest.hasLength(3)); + unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted39["bool"], unittest.equals(true)); + unittest.expect(casted39["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2beta1IntentMessage = 0; @@ -3898,7 +4777,7 @@ o.listSelect = buildGoogleCloudDialogflowV2beta1IntentMessageListSelect(); o.mediaContent = buildGoogleCloudDialogflowV2beta1IntentMessageMediaContent(); - o.payload = buildUnnamed3832(); + o.payload = buildUnnamed4030(); o.platform = "foo"; o.quickReplies = buildGoogleCloudDialogflowV2beta1IntentMessageQuickReplies(); @@ -3938,7 +4817,7 @@ o.linkOutSuggestion); checkGoogleCloudDialogflowV2beta1IntentMessageListSelect(o.listSelect); checkGoogleCloudDialogflowV2beta1IntentMessageMediaContent(o.mediaContent); - checkUnnamed3832(o.payload); + checkUnnamed4030(o.payload); unittest.expect(o.platform, unittest.equals('foo')); checkGoogleCloudDialogflowV2beta1IntentMessageQuickReplies(o.quickReplies); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard( @@ -3961,7 +4840,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessage--; } -buildUnnamed3833() { +buildUnnamed4031() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); @@ -3969,7 +4848,7 @@ return o; } -checkUnnamed3833( +checkUnnamed4031( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton(o[0]); @@ -3981,7 +4860,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard < 3) { - o.buttons = buildUnnamed3833(); + o.buttons = buildUnnamed4031(); o.formattedText = "foo"; o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); o.subtitle = "foo"; @@ -3995,7 +4874,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageBasicCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCard < 3) { - checkUnnamed3833(o.buttons); + checkUnnamed4031(o.buttons); unittest.expect(o.formattedText, unittest.equals('foo')); checkGoogleCloudDialogflowV2beta1IntentMessageImage(o.image); unittest.expect(o.subtitle, unittest.equals('foo')); @@ -4057,7 +4936,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction--; } -buildUnnamed3834() { +buildUnnamed4032() { var o = new core.List< api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem>(); o.add( @@ -4067,7 +4946,7 @@ return o; } -checkUnnamed3834( +checkUnnamed4032( core.List< api.GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem> o) { @@ -4086,7 +4965,7 @@ if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard < 3) { o.imageDisplayOptions = "foo"; - o.items = buildUnnamed3834(); + o.items = buildUnnamed4032(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard--; return o; @@ -4098,7 +4977,7 @@ if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard < 3) { unittest.expect(o.imageDisplayOptions, unittest.equals('foo')); - checkUnnamed3834(o.items); + checkUnnamed4032(o.items); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard--; } @@ -4167,7 +5046,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction--; } -buildUnnamed3835() { +buildUnnamed4033() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCardButton>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCardButton()); @@ -4175,7 +5054,7 @@ return o; } -checkUnnamed3835( +checkUnnamed4033( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageCardButton(o[0]); @@ -4187,7 +5066,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard < 3) { - o.buttons = buildUnnamed3835(); + o.buttons = buildUnnamed4033(); o.imageUri = "foo"; o.subtitle = "foo"; o.title = "foo"; @@ -4200,7 +5079,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCard < 3) { - checkUnnamed3835(o.buttons); + checkUnnamed4033(o.buttons); unittest.expect(o.imageUri, unittest.equals('foo')); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -4230,7 +5109,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageCardButton--; } -buildUnnamed3836() { +buildUnnamed4034() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem()); @@ -4238,7 +5117,7 @@ return o; } -checkUnnamed3836( +checkUnnamed4034( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); @@ -4252,7 +5131,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect < 3) { - o.items = buildUnnamed3836(); + o.items = buildUnnamed4034(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect--; return o; @@ -4262,7 +5141,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect < 3) { - checkUnnamed3836(o.items); + checkUnnamed4034(o.items); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageCarouselSelect--; } @@ -4368,7 +5247,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion--; } -buildUnnamed3837() { +buildUnnamed4035() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageListSelectItem()); @@ -4376,7 +5255,7 @@ return o; } -checkUnnamed3837( +checkUnnamed4035( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageListSelectItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageListSelectItem(o[0]); @@ -4388,7 +5267,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageListSelect(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect < 3) { - o.items = buildUnnamed3837(); + o.items = buildUnnamed4035(); o.subtitle = "foo"; o.title = "foo"; } @@ -4400,7 +5279,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageListSelect o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelect < 3) { - checkUnnamed3837(o.items); + checkUnnamed4035(o.items); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } @@ -4434,7 +5313,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageListSelectItem--; } -buildUnnamed3838() { +buildUnnamed4036() { var o = new core.List< api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject>(); o.add( @@ -4444,7 +5323,7 @@ return o; } -checkUnnamed3838( +checkUnnamed4036( core.List< api.GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject> o) { @@ -4460,7 +5339,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent < 3) { - o.mediaObjects = buildUnnamed3838(); + o.mediaObjects = buildUnnamed4036(); o.mediaType = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent--; @@ -4471,7 +5350,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageMediaContent o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent < 3) { - checkUnnamed3838(o.mediaObjects); + checkUnnamed4036(o.mediaObjects); unittest.expect(o.mediaType, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContent--; @@ -4511,14 +5390,14 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject--; } -buildUnnamed3839() { +buildUnnamed4037() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3839(core.List<core.String> o) { +checkUnnamed4037(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4529,7 +5408,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies < 3) { - o.quickReplies = buildUnnamed3839(); + o.quickReplies = buildUnnamed4037(); o.title = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies--; @@ -4540,13 +5419,13 @@ api.GoogleCloudDialogflowV2beta1IntentMessageQuickReplies o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies < 3) { - checkUnnamed3839(o.quickReplies); + checkUnnamed4037(o.quickReplies); unittest.expect(o.title, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageQuickReplies--; } -buildUnnamed3840() { +buildUnnamed4038() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); @@ -4554,7 +5433,7 @@ return o; } -checkUnnamed3840( +checkUnnamed4038( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion(o[0]); @@ -4570,7 +5449,7 @@ o.description = "foo"; o.media = buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia(); - o.suggestions = buildUnnamed3840(); + o.suggestions = buildUnnamed4038(); o.title = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent--; @@ -4584,7 +5463,7 @@ unittest.expect(o.description, unittest.equals('foo')); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia( o.media); - checkUnnamed3840(o.suggestions); + checkUnnamed4038(o.suggestions); unittest.expect(o.title, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent--; @@ -4619,7 +5498,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia--; } -buildUnnamed3841() { +buildUnnamed4039() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent()); @@ -4627,7 +5506,7 @@ return o; } -checkUnnamed3841( +checkUnnamed4039( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmCardContent(o[0]); @@ -4641,7 +5520,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard < 3) { - o.cardContents = buildUnnamed3841(); + o.cardContents = buildUnnamed4039(); o.cardWidth = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard--; @@ -4653,7 +5532,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard < 3) { - checkUnnamed3841(o.cardContents); + checkUnnamed4039(o.cardContents); unittest.expect(o.cardWidth, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard--; @@ -4846,7 +5725,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion--; } -buildUnnamed3842() { +buildUnnamed4040() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion()); @@ -4854,7 +5733,7 @@ return o; } -checkUnnamed3842( +checkUnnamed4040( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion(o[0]); @@ -4866,7 +5745,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageRbmText(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText < 3) { - o.rbmSuggestion = buildUnnamed3842(); + o.rbmSuggestion = buildUnnamed4040(); o.text = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText--; @@ -4877,20 +5756,20 @@ api.GoogleCloudDialogflowV2beta1IntentMessageRbmText o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText < 3) { - checkUnnamed3842(o.rbmSuggestion); + checkUnnamed4040(o.rbmSuggestion); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageRbmText--; } -buildUnnamed3843() { +buildUnnamed4041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3843(core.List<core.String> o) { +checkUnnamed4041(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4903,7 +5782,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo < 3) { o.key = "foo"; - o.synonyms = buildUnnamed3843(); + o.synonyms = buildUnnamed4041(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo--; return o; @@ -4914,7 +5793,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed3843(o.synonyms); + checkUnnamed4041(o.synonyms); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo--; } @@ -4944,7 +5823,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse--; } -buildUnnamed3844() { +buildUnnamed4042() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse()); @@ -4952,7 +5831,7 @@ return o; } -checkUnnamed3844( +checkUnnamed4042( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageSimpleResponse(o[0]); @@ -4966,7 +5845,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses < 3) { - o.simpleResponses = buildUnnamed3844(); + o.simpleResponses = buildUnnamed4042(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses--; return o; @@ -4977,7 +5856,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses < 3) { - checkUnnamed3844(o.simpleResponses); + checkUnnamed4042(o.simpleResponses); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSimpleResponses--; } @@ -5002,7 +5881,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestion--; } -buildUnnamed3845() { +buildUnnamed4043() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageSuggestion()); @@ -5010,7 +5889,7 @@ return o; } -checkUnnamed3845( +checkUnnamed4043( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageSuggestion(o[0]); @@ -5022,7 +5901,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions < 3) { - o.suggestions = buildUnnamed3845(); + o.suggestions = buildUnnamed4043(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions--; return o; @@ -5032,12 +5911,12 @@ api.GoogleCloudDialogflowV2beta1IntentMessageSuggestions o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions < 3) { - checkUnnamed3845(o.suggestions); + checkUnnamed4043(o.suggestions); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageSuggestions--; } -buildUnnamed3846() { +buildUnnamed4044() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton()); @@ -5045,14 +5924,14 @@ return o; } -checkUnnamed3846( +checkUnnamed4044( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton(o[0]); checkGoogleCloudDialogflowV2beta1IntentMessageBasicCardButton(o[1]); } -buildUnnamed3847() { +buildUnnamed4045() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageColumnProperties()); @@ -5060,7 +5939,7 @@ return o; } -checkUnnamed3847( +checkUnnamed4045( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); @@ -5068,7 +5947,7 @@ checkGoogleCloudDialogflowV2beta1IntentMessageColumnProperties(o[1]); } -buildUnnamed3848() { +buildUnnamed4046() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardRow()); @@ -5076,7 +5955,7 @@ return o; } -checkUnnamed3848( +checkUnnamed4046( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardRow(o[0]); @@ -5088,10 +5967,10 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageTableCard(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard < 3) { - o.buttons = buildUnnamed3846(); - o.columnProperties = buildUnnamed3847(); + o.buttons = buildUnnamed4044(); + o.columnProperties = buildUnnamed4045(); o.image = buildGoogleCloudDialogflowV2beta1IntentMessageImage(); - o.rows = buildUnnamed3848(); + o.rows = buildUnnamed4046(); o.subtitle = "foo"; o.title = "foo"; } @@ -5103,10 +5982,10 @@ api.GoogleCloudDialogflowV2beta1IntentMessageTableCard o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCard < 3) { - checkUnnamed3846(o.buttons); - checkUnnamed3847(o.columnProperties); + checkUnnamed4044(o.buttons); + checkUnnamed4045(o.columnProperties); checkGoogleCloudDialogflowV2beta1IntentMessageImage(o.image); - checkUnnamed3848(o.rows); + checkUnnamed4046(o.rows); unittest.expect(o.subtitle, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } @@ -5133,7 +6012,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardCell--; } -buildUnnamed3849() { +buildUnnamed4047() { var o = new core .List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessageTableCardCell()); @@ -5141,7 +6020,7 @@ return o; } -checkUnnamed3849( +checkUnnamed4047( core.List<api.GoogleCloudDialogflowV2beta1IntentMessageTableCardCell> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessageTableCardCell(o[0]); @@ -5153,7 +6032,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow < 3) { - o.cells = buildUnnamed3849(); + o.cells = buildUnnamed4047(); o.dividerAfter = true; } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow--; @@ -5164,7 +6043,7 @@ api.GoogleCloudDialogflowV2beta1IntentMessageTableCardRow o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow < 3) { - checkUnnamed3849(o.cells); + checkUnnamed4047(o.cells); unittest.expect(o.dividerAfter, unittest.isTrue); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageTableCardRow--; @@ -5245,14 +6124,14 @@ buildCounterGoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall--; } -buildUnnamed3850() { +buildUnnamed4048() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3850(core.List<core.String> o) { +checkUnnamed4048(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5263,7 +6142,7 @@ var o = new api.GoogleCloudDialogflowV2beta1IntentMessageText(); buildCounterGoogleCloudDialogflowV2beta1IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageText < 3) { - o.text = buildUnnamed3850(); + o.text = buildUnnamed4048(); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageText--; return o; @@ -5273,19 +6152,19 @@ api.GoogleCloudDialogflowV2beta1IntentMessageText o) { buildCounterGoogleCloudDialogflowV2beta1IntentMessageText++; if (buildCounterGoogleCloudDialogflowV2beta1IntentMessageText < 3) { - checkUnnamed3850(o.text); + checkUnnamed4048(o.text); } buildCounterGoogleCloudDialogflowV2beta1IntentMessageText--; } -buildUnnamed3851() { +buildUnnamed4049() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3851(core.List<core.String> o) { +checkUnnamed4049(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5302,7 +6181,7 @@ o.isList = true; o.mandatory = true; o.name = "foo"; - o.prompts = buildUnnamed3851(); + o.prompts = buildUnnamed4049(); o.value = "foo"; } buildCounterGoogleCloudDialogflowV2beta1IntentParameter--; @@ -5319,13 +6198,13 @@ unittest.expect(o.isList, unittest.isTrue); unittest.expect(o.mandatory, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3851(o.prompts); + checkUnnamed4049(o.prompts); unittest.expect(o.value, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1IntentParameter--; } -buildUnnamed3852() { +buildUnnamed4050() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart>(); o.add(buildGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart()); @@ -5333,7 +6212,7 @@ return o; } -checkUnnamed3852( +checkUnnamed4050( core.List<api.GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart(o[0]); @@ -5346,7 +6225,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase < 3) { o.name = "foo"; - o.parts = buildUnnamed3852(); + o.parts = buildUnnamed4050(); o.timesAddedCount = 42; o.type = "foo"; } @@ -5359,7 +6238,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase++; if (buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrase < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3852(o.parts); + checkUnnamed4050(o.parts); unittest.expect(o.timesAddedCount, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } @@ -5392,7 +6271,7 @@ buildCounterGoogleCloudDialogflowV2beta1IntentTrainingPhrasePart--; } -buildUnnamed3853() { +buildUnnamed4051() { var o = new core.List<api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer>(); o.add(buildGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer()); @@ -5400,7 +6279,7 @@ return o; } -checkUnnamed3853( +checkUnnamed4051( core.List<api.GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer(o[0]); @@ -5412,7 +6291,7 @@ var o = new api.GoogleCloudDialogflowV2beta1KnowledgeAnswers(); buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers < 3) { - o.answers = buildUnnamed3853(); + o.answers = buildUnnamed4051(); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers--; return o; @@ -5422,7 +6301,7 @@ api.GoogleCloudDialogflowV2beta1KnowledgeAnswers o) { buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers++; if (buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers < 3) { - checkUnnamed3853(o.answers); + checkUnnamed4051(o.answers); } buildCounterGoogleCloudDialogflowV2beta1KnowledgeAnswers--; } @@ -5497,7 +6376,7 @@ buildCounterGoogleCloudDialogflowV2beta1LabelConversationResponse--; } -buildUnnamed3854() { +buildUnnamed4052() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5512,18 +6391,18 @@ return o; } -checkUnnamed3854(core.Map<core.String, core.Object> o) { +checkUnnamed4052(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted26 = (o["x"]) 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')); - var casted27 = (o["y"]) 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 casted40 = (o["x"]) as core.Map; + unittest.expect(casted40, unittest.hasLength(3)); + unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted40["bool"], unittest.equals(true)); + unittest.expect(casted40["string"], unittest.equals('foo')); + var casted41 = (o["y"]) as core.Map; + unittest.expect(casted41, unittest.hasLength(3)); + unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted41["bool"], unittest.equals(true)); + unittest.expect(casted41["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest = @@ -5532,7 +6411,7 @@ var o = new api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest(); buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest < 3) { - o.payload = buildUnnamed3854(); + o.payload = buildUnnamed4052(); o.source = "foo"; o.version = "foo"; } @@ -5544,14 +6423,14 @@ api.GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest o) { buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest++; if (buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest < 3) { - checkUnnamed3854(o.payload); + checkUnnamed4052(o.payload); unittest.expect(o.source, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest--; } -buildUnnamed3855() { +buildUnnamed4053() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5566,47 +6445,47 @@ return o; } -checkUnnamed3855(core.Map<core.String, core.Object> o) { +checkUnnamed4053(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted28 = (o["x"]) 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')); - var casted29 = (o["y"]) as core.Map; - unittest.expect(casted29, unittest.hasLength(3)); - unittest.expect(casted29["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted29["bool"], unittest.equals(true)); - unittest.expect(casted29["string"], unittest.equals('foo')); + var casted42 = (o["x"]) as core.Map; + unittest.expect(casted42, unittest.hasLength(3)); + unittest.expect(casted42["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted42["bool"], unittest.equals(true)); + unittest.expect(casted42["string"], unittest.equals('foo')); + var casted43 = (o["y"]) as core.Map; + unittest.expect(casted43, unittest.hasLength(3)); + unittest.expect(casted43["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted43["bool"], unittest.equals(true)); + unittest.expect(casted43["string"], unittest.equals('foo')); } -buildUnnamed3856() { +buildUnnamed4054() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentMessage>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } -checkUnnamed3856(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { +checkUnnamed4054(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage(o[0]); checkGoogleCloudDialogflowV2beta1IntentMessage(o[1]); } -buildUnnamed3857() { +buildUnnamed4055() { var o = new core.List<api.GoogleCloudDialogflowV2beta1Context>(); o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } -checkUnnamed3857(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { +checkUnnamed4055(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context(o[0]); checkGoogleCloudDialogflowV2beta1Context(o[1]); } -buildUnnamed3858() { +buildUnnamed4056() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5621,21 +6500,21 @@ return o; } -checkUnnamed3858(core.Map<core.String, core.Object> o) { +checkUnnamed4056(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted30 = (o["x"]) as core.Map; - unittest.expect(casted30, unittest.hasLength(3)); - unittest.expect(casted30["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted30["bool"], unittest.equals(true)); - unittest.expect(casted30["string"], unittest.equals('foo')); - var casted31 = (o["y"]) as core.Map; - unittest.expect(casted31, unittest.hasLength(3)); - unittest.expect(casted31["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted31["bool"], unittest.equals(true)); - unittest.expect(casted31["string"], unittest.equals('foo')); + var casted44 = (o["x"]) as core.Map; + unittest.expect(casted44, unittest.hasLength(3)); + unittest.expect(casted44["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted44["bool"], unittest.equals(true)); + unittest.expect(casted44["string"], unittest.equals('foo')); + var casted45 = (o["y"]) as core.Map; + unittest.expect(casted45, unittest.hasLength(3)); + unittest.expect(casted45["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted45["bool"], unittest.equals(true)); + unittest.expect(casted45["string"], unittest.equals('foo')); } -buildUnnamed3859() { +buildUnnamed4057() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5650,18 +6529,18 @@ return o; } -checkUnnamed3859(core.Map<core.String, core.Object> o) { +checkUnnamed4057(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted32 = (o["x"]) as core.Map; - unittest.expect(casted32, unittest.hasLength(3)); - unittest.expect(casted32["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted32["bool"], unittest.equals(true)); - unittest.expect(casted32["string"], unittest.equals('foo')); - var casted33 = (o["y"]) as core.Map; - unittest.expect(casted33, unittest.hasLength(3)); - unittest.expect(casted33["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted33["bool"], unittest.equals(true)); - unittest.expect(casted33["string"], unittest.equals('foo')); + var casted46 = (o["x"]) as core.Map; + unittest.expect(casted46, unittest.hasLength(3)); + unittest.expect(casted46["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted46["bool"], unittest.equals(true)); + unittest.expect(casted46["string"], unittest.equals('foo')); + var casted47 = (o["y"]) as core.Map; + unittest.expect(casted47, unittest.hasLength(3)); + unittest.expect(casted47["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted47["bool"], unittest.equals(true)); + unittest.expect(casted47["string"], unittest.equals('foo')); } core.int buildCounterGoogleCloudDialogflowV2beta1QueryResult = 0; @@ -5671,20 +6550,20 @@ if (buildCounterGoogleCloudDialogflowV2beta1QueryResult < 3) { o.action = "foo"; o.allRequiredParamsPresent = true; - o.diagnosticInfo = buildUnnamed3855(); - o.fulfillmentMessages = buildUnnamed3856(); + o.diagnosticInfo = buildUnnamed4053(); + o.fulfillmentMessages = buildUnnamed4054(); o.fulfillmentText = "foo"; o.intent = buildGoogleCloudDialogflowV2beta1Intent(); o.intentDetectionConfidence = 42.0; o.knowledgeAnswers = buildGoogleCloudDialogflowV2beta1KnowledgeAnswers(); o.languageCode = "foo"; - o.outputContexts = buildUnnamed3857(); - o.parameters = buildUnnamed3858(); + o.outputContexts = buildUnnamed4055(); + o.parameters = buildUnnamed4056(); o.queryText = "foo"; o.sentimentAnalysisResult = buildGoogleCloudDialogflowV2beta1SentimentAnalysisResult(); o.speechRecognitionConfidence = 42.0; - o.webhookPayload = buildUnnamed3859(); + o.webhookPayload = buildUnnamed4057(); o.webhookSource = "foo"; } buildCounterGoogleCloudDialogflowV2beta1QueryResult--; @@ -5697,20 +6576,20 @@ if (buildCounterGoogleCloudDialogflowV2beta1QueryResult < 3) { unittest.expect(o.action, unittest.equals('foo')); unittest.expect(o.allRequiredParamsPresent, unittest.isTrue); - checkUnnamed3855(o.diagnosticInfo); - checkUnnamed3856(o.fulfillmentMessages); + checkUnnamed4053(o.diagnosticInfo); + checkUnnamed4054(o.fulfillmentMessages); unittest.expect(o.fulfillmentText, unittest.equals('foo')); checkGoogleCloudDialogflowV2beta1Intent(o.intent); unittest.expect(o.intentDetectionConfidence, unittest.equals(42.0)); checkGoogleCloudDialogflowV2beta1KnowledgeAnswers(o.knowledgeAnswers); unittest.expect(o.languageCode, unittest.equals('foo')); - checkUnnamed3857(o.outputContexts); - checkUnnamed3858(o.parameters); + checkUnnamed4055(o.outputContexts); + checkUnnamed4056(o.parameters); unittest.expect(o.queryText, unittest.equals('foo')); checkGoogleCloudDialogflowV2beta1SentimentAnalysisResult( o.sentimentAnalysisResult); unittest.expect(o.speechRecognitionConfidence, unittest.equals(42.0)); - checkUnnamed3859(o.webhookPayload); + checkUnnamed4057(o.webhookPayload); unittest.expect(o.webhookSource, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1QueryResult--; @@ -5758,14 +6637,14 @@ buildCounterGoogleCloudDialogflowV2beta1SentimentAnalysisResult--; } -buildUnnamed3860() { +buildUnnamed4058() { var o = new core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity>(); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); o.add(buildGoogleCloudDialogflowV2beta1EntityTypeEntity()); return o; } -checkUnnamed3860( +checkUnnamed4058( core.List<api.GoogleCloudDialogflowV2beta1EntityTypeEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1EntityTypeEntity(o[0]); @@ -5777,7 +6656,7 @@ var o = new api.GoogleCloudDialogflowV2beta1SessionEntityType(); buildCounterGoogleCloudDialogflowV2beta1SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2beta1SessionEntityType < 3) { - o.entities = buildUnnamed3860(); + o.entities = buildUnnamed4058(); o.entityOverrideMode = "foo"; o.name = "foo"; } @@ -5789,21 +6668,21 @@ api.GoogleCloudDialogflowV2beta1SessionEntityType o) { buildCounterGoogleCloudDialogflowV2beta1SessionEntityType++; if (buildCounterGoogleCloudDialogflowV2beta1SessionEntityType < 3) { - checkUnnamed3860(o.entities); + checkUnnamed4058(o.entities); unittest.expect(o.entityOverrideMode, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1SessionEntityType--; } -buildUnnamed3861() { +buildUnnamed4059() { var o = new core.List<api.GoogleCloudDialogflowV2beta1QueryResult>(); o.add(buildGoogleCloudDialogflowV2beta1QueryResult()); o.add(buildGoogleCloudDialogflowV2beta1QueryResult()); return o; } -checkUnnamed3861(core.List<api.GoogleCloudDialogflowV2beta1QueryResult> o) { +checkUnnamed4059(core.List<api.GoogleCloudDialogflowV2beta1QueryResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1QueryResult(o[0]); checkGoogleCloudDialogflowV2beta1QueryResult(o[1]); @@ -5814,7 +6693,7 @@ var o = new api.GoogleCloudDialogflowV2beta1WebhookRequest(); buildCounterGoogleCloudDialogflowV2beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookRequest < 3) { - o.alternativeQueryResults = buildUnnamed3861(); + o.alternativeQueryResults = buildUnnamed4059(); o.originalDetectIntentRequest = buildGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest(); o.queryResult = buildGoogleCloudDialogflowV2beta1QueryResult(); @@ -5829,7 +6708,7 @@ api.GoogleCloudDialogflowV2beta1WebhookRequest o) { buildCounterGoogleCloudDialogflowV2beta1WebhookRequest++; if (buildCounterGoogleCloudDialogflowV2beta1WebhookRequest < 3) { - checkUnnamed3861(o.alternativeQueryResults); + checkUnnamed4059(o.alternativeQueryResults); checkGoogleCloudDialogflowV2beta1OriginalDetectIntentRequest( o.originalDetectIntentRequest); checkGoogleCloudDialogflowV2beta1QueryResult(o.queryResult); @@ -5839,33 +6718,33 @@ buildCounterGoogleCloudDialogflowV2beta1WebhookRequest--; } -buildUnnamed3862() { +buildUnnamed4060() { var o = new core.List<api.GoogleCloudDialogflowV2beta1IntentMessage>(); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); o.add(buildGoogleCloudDialogflowV2beta1IntentMessage()); return o; } -checkUnnamed3862(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { +checkUnnamed4060(core.List<api.GoogleCloudDialogflowV2beta1IntentMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1IntentMessage(o[0]); checkGoogleCloudDialogflowV2beta1IntentMessage(o[1]); } -buildUnnamed3863() { +buildUnnamed4061() { var o = new core.List<api.GoogleCloudDialogflowV2beta1Context>(); o.add(buildGoogleCloudDialogflowV2beta1Context()); o.add(buildGoogleCloudDialogflowV2beta1Context()); return o; } -checkUnnamed3863(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { +checkUnnamed4061(core.List<api.GoogleCloudDialogflowV2beta1Context> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1Context(o[0]); checkGoogleCloudDialogflowV2beta1Context(o[1]); } -buildUnnamed3864() { +buildUnnamed4062() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5880,28 +6759,28 @@ return o; } -checkUnnamed3864(core.Map<core.String, core.Object> o) { +checkUnnamed4062(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted34 = (o["x"]) as core.Map; - unittest.expect(casted34, unittest.hasLength(3)); - unittest.expect(casted34["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted34["bool"], unittest.equals(true)); - unittest.expect(casted34["string"], unittest.equals('foo')); - var casted35 = (o["y"]) as core.Map; - unittest.expect(casted35, unittest.hasLength(3)); - unittest.expect(casted35["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted35["bool"], unittest.equals(true)); - unittest.expect(casted35["string"], unittest.equals('foo')); + var casted48 = (o["x"]) as core.Map; + unittest.expect(casted48, unittest.hasLength(3)); + unittest.expect(casted48["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted48["bool"], unittest.equals(true)); + unittest.expect(casted48["string"], unittest.equals('foo')); + var casted49 = (o["y"]) as core.Map; + unittest.expect(casted49, unittest.hasLength(3)); + unittest.expect(casted49["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted49["bool"], unittest.equals(true)); + unittest.expect(casted49["string"], unittest.equals('foo')); } -buildUnnamed3865() { +buildUnnamed4063() { var o = new core.List<api.GoogleCloudDialogflowV2beta1SessionEntityType>(); o.add(buildGoogleCloudDialogflowV2beta1SessionEntityType()); o.add(buildGoogleCloudDialogflowV2beta1SessionEntityType()); return o; } -checkUnnamed3865( +checkUnnamed4063( core.List<api.GoogleCloudDialogflowV2beta1SessionEntityType> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudDialogflowV2beta1SessionEntityType(o[0]); @@ -5915,11 +6794,11 @@ if (buildCounterGoogleCloudDialogflowV2beta1WebhookResponse < 3) { o.endInteraction = true; o.followupEventInput = buildGoogleCloudDialogflowV2beta1EventInput(); - o.fulfillmentMessages = buildUnnamed3862(); + o.fulfillmentMessages = buildUnnamed4060(); o.fulfillmentText = "foo"; - o.outputContexts = buildUnnamed3863(); - o.payload = buildUnnamed3864(); - o.sessionEntityTypes = buildUnnamed3865(); + o.outputContexts = buildUnnamed4061(); + o.payload = buildUnnamed4062(); + o.sessionEntityTypes = buildUnnamed4063(); o.source = "foo"; } buildCounterGoogleCloudDialogflowV2beta1WebhookResponse--; @@ -5932,24 +6811,176 @@ if (buildCounterGoogleCloudDialogflowV2beta1WebhookResponse < 3) { unittest.expect(o.endInteraction, unittest.isTrue); checkGoogleCloudDialogflowV2beta1EventInput(o.followupEventInput); - checkUnnamed3862(o.fulfillmentMessages); + checkUnnamed4060(o.fulfillmentMessages); unittest.expect(o.fulfillmentText, unittest.equals('foo')); - checkUnnamed3863(o.outputContexts); - checkUnnamed3864(o.payload); - checkUnnamed3865(o.sessionEntityTypes); + checkUnnamed4061(o.outputContexts); + checkUnnamed4062(o.payload); + checkUnnamed4063(o.sessionEntityTypes); unittest.expect(o.source, unittest.equals('foo')); } buildCounterGoogleCloudDialogflowV2beta1WebhookResponse--; } -buildUnnamed3866() { +core.int + buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata = 0; +buildGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata() { + var o = new api.GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata(); + buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata < + 3) { + o.version = "foo"; + } + buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata( + api.GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata o) { + buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata < + 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata--; +} + +core.int buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse = 0; +buildGoogleCloudDialogflowV3alpha1ExportAgentResponse() { + var o = new api.GoogleCloudDialogflowV3alpha1ExportAgentResponse(); + buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse < 3) { + o.agentContent = "foo"; + o.agentUri = "foo"; + } + buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ExportAgentResponse( + api.GoogleCloudDialogflowV3alpha1ExportAgentResponse o) { + buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse < 3) { + unittest.expect(o.agentContent, unittest.equals('foo')); + unittest.expect(o.agentUri, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowV3alpha1ExportAgentResponse--; +} + +core.int buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata = 0; +buildGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata() { + var o = new api.GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata(); + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata < 3) {} + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata( + api.GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata o) { + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata < 3) {} + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata--; +} + +core.int buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse = 0; +buildGoogleCloudDialogflowV3alpha1ExportTestCasesResponse() { + var o = new api.GoogleCloudDialogflowV3alpha1ExportTestCasesResponse(); + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse < 3) { + o.content = "foo"; + o.gcsUri = "foo"; + } + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ExportTestCasesResponse( + api.GoogleCloudDialogflowV3alpha1ExportTestCasesResponse o) { + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse < 3) { + unittest.expect(o.content, unittest.equals('foo')); + unittest.expect(o.gcsUri, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowV3alpha1ExportTestCasesResponse--; +} + +core.int buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse = 0; +buildGoogleCloudDialogflowV3alpha1ImportAgentResponse() { + var o = new api.GoogleCloudDialogflowV3alpha1ImportAgentResponse(); + buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse < 3) { + o.agent = "foo"; + } + buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ImportAgentResponse( + api.GoogleCloudDialogflowV3alpha1ImportAgentResponse o) { + buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse < 3) { + unittest.expect(o.agent, unittest.equals('foo')); + } + buildCounterGoogleCloudDialogflowV3alpha1ImportAgentResponse--; +} + +core.int buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata = 0; +buildGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata() { + var o = new api.GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata(); + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata < 3) {} + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata( + api.GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata o) { + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata < 3) {} + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata--; +} + +buildUnnamed4064() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4064(core.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 buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse = 0; +buildGoogleCloudDialogflowV3alpha1ImportTestCasesResponse() { + var o = new api.GoogleCloudDialogflowV3alpha1ImportTestCasesResponse(); + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse < 3) { + o.names = buildUnnamed4064(); + } + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse--; + return o; +} + +checkGoogleCloudDialogflowV3alpha1ImportTestCasesResponse( + api.GoogleCloudDialogflowV3alpha1ImportTestCasesResponse o) { + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse++; + if (buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse < 3) { + checkUnnamed4064(o.names); + } + buildCounterGoogleCloudDialogflowV3alpha1ImportTestCasesResponse--; +} + +buildUnnamed4065() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed3866(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed4065(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -5961,7 +6992,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3866(); + o.operations = buildUnnamed4065(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -5972,12 +7003,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3866(o.operations); + checkUnnamed4065(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed3867() { +buildUnnamed4066() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5992,21 +7023,21 @@ return o; } -checkUnnamed3867(core.Map<core.String, core.Object> o) { +checkUnnamed4066(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted36 = (o["x"]) as core.Map; - unittest.expect(casted36, unittest.hasLength(3)); - unittest.expect(casted36["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted36["bool"], unittest.equals(true)); - unittest.expect(casted36["string"], unittest.equals('foo')); - var casted37 = (o["y"]) as core.Map; - unittest.expect(casted37, unittest.hasLength(3)); - unittest.expect(casted37["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted37["bool"], unittest.equals(true)); - unittest.expect(casted37["string"], unittest.equals('foo')); + var casted50 = (o["x"]) as core.Map; + unittest.expect(casted50, unittest.hasLength(3)); + unittest.expect(casted50["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted50["bool"], unittest.equals(true)); + unittest.expect(casted50["string"], unittest.equals('foo')); + var casted51 = (o["y"]) as core.Map; + unittest.expect(casted51, unittest.hasLength(3)); + unittest.expect(casted51["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted51["bool"], unittest.equals(true)); + unittest.expect(casted51["string"], unittest.equals('foo')); } -buildUnnamed3868() { +buildUnnamed4067() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -6021,18 +7052,18 @@ return o; } -checkUnnamed3868(core.Map<core.String, core.Object> o) { +checkUnnamed4067(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted38 = (o["x"]) as core.Map; - unittest.expect(casted38, unittest.hasLength(3)); - unittest.expect(casted38["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted38["bool"], unittest.equals(true)); - unittest.expect(casted38["string"], unittest.equals('foo')); - var casted39 = (o["y"]) as core.Map; - unittest.expect(casted39, unittest.hasLength(3)); - unittest.expect(casted39["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted39["bool"], unittest.equals(true)); - unittest.expect(casted39["string"], unittest.equals('foo')); + var casted52 = (o["x"]) as core.Map; + unittest.expect(casted52, unittest.hasLength(3)); + unittest.expect(casted52["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted52["bool"], unittest.equals(true)); + unittest.expect(casted52["string"], unittest.equals('foo')); + var casted53 = (o["y"]) as core.Map; + unittest.expect(casted53, unittest.hasLength(3)); + unittest.expect(casted53["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted53["bool"], unittest.equals(true)); + unittest.expect(casted53["string"], unittest.equals('foo')); } core.int buildCounterGoogleLongrunningOperation = 0; @@ -6042,9 +7073,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed3867(); + o.metadata = buildUnnamed4066(); o.name = "foo"; - o.response = buildUnnamed3868(); + o.response = buildUnnamed4067(); } buildCounterGoogleLongrunningOperation--; return o; @@ -6055,9 +7086,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed3867(o.metadata); + checkUnnamed4066(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3868(o.response); + checkUnnamed4067(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -6077,7 +7108,7 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed3869() { +buildUnnamed4068() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -6092,31 +7123,31 @@ return o; } -checkUnnamed3869(core.Map<core.String, core.Object> o) { +checkUnnamed4068(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted40 = (o["x"]) as core.Map; - unittest.expect(casted40, unittest.hasLength(3)); - unittest.expect(casted40["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted40["bool"], unittest.equals(true)); - unittest.expect(casted40["string"], unittest.equals('foo')); - var casted41 = (o["y"]) as core.Map; - unittest.expect(casted41, unittest.hasLength(3)); - unittest.expect(casted41["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted41["bool"], unittest.equals(true)); - unittest.expect(casted41["string"], unittest.equals('foo')); + var casted54 = (o["x"]) as core.Map; + unittest.expect(casted54, unittest.hasLength(3)); + unittest.expect(casted54["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted54["bool"], unittest.equals(true)); + unittest.expect(casted54["string"], unittest.equals('foo')); + var casted55 = (o["y"]) as core.Map; + unittest.expect(casted55, unittest.hasLength(3)); + unittest.expect(casted55["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted55["bool"], unittest.equals(true)); + unittest.expect(casted55["string"], unittest.equals('foo')); } -buildUnnamed3870() { +buildUnnamed4069() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3869()); - o.add(buildUnnamed3869()); + o.add(buildUnnamed4068()); + o.add(buildUnnamed4068()); return o; } -checkUnnamed3870(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4069(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3869(o[0]); - checkUnnamed3869(o[1]); + checkUnnamed4068(o[0]); + checkUnnamed4068(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -6125,7 +7156,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed3870(); + o.details = buildUnnamed4069(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -6136,7 +7167,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3870(o.details); + checkUnnamed4069(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -6164,6 +7195,260 @@ } main() { + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(); + var od = new api + .GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1ExportAgentResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ExportAgentResponse(); + var od = + new api.GoogleCloudDialogflowCxV3beta1ExportAgentResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ExportAgentResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1ImportAgentResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ImportAgentResponse(); + var od = + new api.GoogleCloudDialogflowCxV3beta1ImportAgentResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ImportAgentResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1PageInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1PageInfo(); + var od = + new api.GoogleCloudDialogflowCxV3beta1PageInfo.fromJson(o.toJson()); + checkGoogleCloudDialogflowCxV3beta1PageInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1PageInfoFormInfo", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(); + var od = new api.GoogleCloudDialogflowCxV3beta1PageInfoFormInfo.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfo(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(); + var od = new api + .GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessage", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessage(); + var od = new api.GoogleCloudDialogflowCxV3beta1ResponseMessage.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessage(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(); + var od = new api + .GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1ResponseMessageText", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1ResponseMessageText(); + var od = + new api.GoogleCloudDialogflowCxV3beta1ResponseMessageText.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1ResponseMessageText(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1SessionInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1SessionInfo(); + var od = new api.GoogleCloudDialogflowCxV3beta1SessionInfo.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1SessionInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequest(); + var od = new api.GoogleCloudDialogflowCxV3beta1WebhookRequest.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(); + var od = new api + .GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(); + var od = new api + .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue(); + var od = new api + .GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue( + od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowCxV3beta1WebhookResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowCxV3beta1WebhookResponse(); + var od = new api.GoogleCloudDialogflowCxV3beta1WebhookResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(); + var od = new api + .GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse(od); + }); + }); + unittest.group("obj-schema-GoogleCloudDialogflowV2Agent", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudDialogflowV2Agent(); @@ -7041,6 +8326,20 @@ }); unittest.group( + "obj-schema-GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse(); + var od = new api + .GoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV2beta1AutoApproveSmartMessagingEntriesResponse( + od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse", () { unittest.test("to-json--from-json", () { @@ -7768,6 +9067,85 @@ }); }); + unittest.group( + "obj-schema-GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata(); + var od = new api + .GoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1CreateVersionOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowV3alpha1ExportAgentResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ExportAgentResponse(); + var od = + new api.GoogleCloudDialogflowV3alpha1ExportAgentResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ExportAgentResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata(); + var od = + new api.GoogleCloudDialogflowV3alpha1ExportTestCasesMetadata.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ExportTestCasesMetadata(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowV3alpha1ExportTestCasesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ExportTestCasesResponse(); + var od = + new api.GoogleCloudDialogflowV3alpha1ExportTestCasesResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ExportTestCasesResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudDialogflowV3alpha1ImportAgentResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ImportAgentResponse(); + var od = + new api.GoogleCloudDialogflowV3alpha1ImportAgentResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ImportAgentResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata(); + var od = + new api.GoogleCloudDialogflowV3alpha1ImportTestCasesMetadata.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ImportTestCasesMetadata(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudDialogflowV3alpha1ImportTestCasesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudDialogflowV3alpha1ImportTestCasesResponse(); + var od = + new api.GoogleCloudDialogflowV3alpha1ImportTestCasesResponse.fromJson( + o.toJson()); + checkGoogleCloudDialogflowV3alpha1ImportTestCasesResponse(od); + }); + }); + unittest.group("obj-schema-GoogleLongrunningListOperationsResponse", () { unittest.test("to-json--from-json", () { var o = buildGoogleLongrunningListOperationsResponse(); @@ -8729,8 +10107,8 @@ new api.DialogflowApi(mock).projects.agent.entityTypes; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_languageCode = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8765,10 +10143,10 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8781,8 +10159,8 @@ res .list(arg_parent, pageToken: arg_pageToken, - pageSize: arg_pageSize, languageCode: arg_languageCode, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListEntityTypesResponse(response); @@ -9041,8 +10419,8 @@ api.ProjectsAgentEnvironmentsResourceApi res = new api.DialogflowApi(mock).projects.agent.environments; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9075,10 +10453,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9090,8 +10468,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListEnvironmentsResponse(response); @@ -9413,8 +10791,8 @@ .sessions .contexts; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9447,10 +10825,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9462,8 +10840,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListContextsResponse(response); @@ -9732,8 +11110,8 @@ .sessions .entityTypes; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9766,10 +11144,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9781,8 +11159,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListSessionEntityTypesResponse(response); @@ -9981,8 +11359,8 @@ new api.DialogflowApi(mock).projects.agent.intents; var arg_request = buildGoogleCloudDialogflowV2Intent(); var arg_parent = "foo"; - var arg_languageCode = "foo"; var arg_intentView = "foo"; + var arg_languageCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudDialogflowV2Intent.fromJson(json); @@ -10019,9 +11397,9 @@ } } unittest.expect( - queryMap["languageCode"].first, unittest.equals(arg_languageCode)); - unittest.expect( queryMap["intentView"].first, unittest.equals(arg_intentView)); + unittest.expect( + queryMap["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10032,8 +11410,8 @@ }), true); res .create(arg_request, arg_parent, - languageCode: arg_languageCode, intentView: arg_intentView, + languageCode: arg_languageCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2Intent(response); @@ -10097,8 +11475,8 @@ api.ProjectsAgentIntentsResourceApi res = new api.DialogflowApi(mock).projects.agent.intents; var arg_name = "foo"; - var arg_intentView = "foo"; var arg_languageCode = "foo"; + var arg_intentView = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10132,9 +11510,9 @@ } } unittest.expect( - queryMap["intentView"].first, unittest.equals(arg_intentView)); - unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect( + queryMap["intentView"].first, unittest.equals(arg_intentView)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10145,8 +11523,8 @@ }), true); res .get(arg_name, - intentView: arg_intentView, languageCode: arg_languageCode, + intentView: arg_intentView, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2Intent(response); @@ -10160,8 +11538,8 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_intentView = "foo"; var arg_languageCode = "foo"; + var arg_intentView = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10199,9 +11577,9 @@ unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["intentView"].first, unittest.equals(arg_intentView)); - unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect( + queryMap["intentView"].first, unittest.equals(arg_intentView)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10215,8 +11593,8 @@ .list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize, - intentView: arg_intentView, languageCode: arg_languageCode, + intentView: arg_intentView, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListIntentsResponse(response); @@ -10230,8 +11608,8 @@ var arg_request = buildGoogleCloudDialogflowV2Intent(); var arg_name = "foo"; var arg_languageCode = "foo"; - var arg_updateMask = "foo"; var arg_intentView = "foo"; + var arg_updateMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GoogleCloudDialogflowV2Intent.fromJson(json); @@ -10270,9 +11648,9 @@ unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect( - queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - unittest.expect( queryMap["intentView"].first, unittest.equals(arg_intentView)); + unittest.expect( + queryMap["updateMask"].first, unittest.equals(arg_updateMask)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10284,8 +11662,8 @@ res .patch(arg_request, arg_name, languageCode: arg_languageCode, - updateMask: arg_updateMask, intentView: arg_intentView, + updateMask: arg_updateMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2Intent(response); @@ -10571,8 +11949,8 @@ api.ProjectsAgentSessionsContextsResourceApi res = new api.DialogflowApi(mock).projects.agent.sessions.contexts; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10605,10 +11983,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10620,8 +11998,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudDialogflowV2ListContextsResponse(response); @@ -11088,9 +12466,9 @@ api.ProjectsLocationsOperationsResourceApi res = new api.DialogflowApi(mock).projects.locations.operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11123,11 +12501,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11139,9 +12517,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response); @@ -11259,9 +12637,9 @@ api.ProjectsOperationsResourceApi res = new api.DialogflowApi(mock).projects.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11294,11 +12672,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11310,9 +12688,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/digitalassetlinks/v1_test.dart b/generated/googleapis/test/digitalassetlinks/v1_test.dart index 201a221..4839be3 100644 --- a/generated/googleapis/test/digitalassetlinks/v1_test.dart +++ b/generated/googleapis/test/digitalassetlinks/v1_test.dart
@@ -111,14 +111,14 @@ buildCounterCertificateInfo--; } -buildUnnamed740() { +buildUnnamed759() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed740(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')); @@ -130,7 +130,7 @@ buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { o.debugString = "foo"; - o.errorCode = buildUnnamed740(); + o.errorCode = buildUnnamed759(); o.linked = true; o.maxAge = "foo"; } @@ -142,34 +142,34 @@ buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { unittest.expect(o.debugString, unittest.equals('foo')); - checkUnnamed740(o.errorCode); + checkUnnamed759(o.errorCode); unittest.expect(o.linked, unittest.isTrue); unittest.expect(o.maxAge, unittest.equals('foo')); } buildCounterCheckResponse--; } -buildUnnamed741() { +buildUnnamed760() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed741(core.List<core.String> o) { +checkUnnamed760(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed742() { +buildUnnamed761() { var o = new core.List<api.Statement>(); o.add(buildStatement()); o.add(buildStatement()); return o; } -checkUnnamed742(core.List<api.Statement> o) { +checkUnnamed761(core.List<api.Statement> o) { unittest.expect(o, unittest.hasLength(2)); checkStatement(o[0]); checkStatement(o[1]); @@ -181,9 +181,9 @@ buildCounterListResponse++; if (buildCounterListResponse < 3) { o.debugString = "foo"; - o.errorCode = buildUnnamed741(); + o.errorCode = buildUnnamed760(); o.maxAge = "foo"; - o.statements = buildUnnamed742(); + o.statements = buildUnnamed761(); } buildCounterListResponse--; return o; @@ -193,9 +193,9 @@ buildCounterListResponse++; if (buildCounterListResponse < 3) { unittest.expect(o.debugString, unittest.equals('foo')); - checkUnnamed741(o.errorCode); + checkUnnamed760(o.errorCode); unittest.expect(o.maxAge, unittest.equals('foo')); - checkUnnamed742(o.statements); + checkUnnamed761(o.statements); } buildCounterListResponse--; } @@ -304,12 +304,12 @@ var mock = new HttpServerMock(); api.AssetlinksResourceApi res = new api.DigitalassetlinksApi(mock).assetlinks; - var arg_relation = "foo"; var arg_target_web_site = "foo"; - var arg_target_androidApp_certificate_sha256Fingerprint = "foo"; - var arg_source_web_site = "foo"; - var arg_source_androidApp_packageName = "foo"; var arg_target_androidApp_packageName = "foo"; + var arg_relation = "foo"; + var arg_target_androidApp_certificate_sha256Fingerprint = "foo"; + var arg_source_androidApp_packageName = "foo"; + var arg_source_web_site = "foo"; var arg_source_androidApp_certificate_sha256Fingerprint = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -342,20 +342,20 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["relation"].first, unittest.equals(arg_relation)); unittest.expect(queryMap["target.web.site"].first, unittest.equals(arg_target_web_site)); + unittest.expect(queryMap["target.androidApp.packageName"].first, + unittest.equals(arg_target_androidApp_packageName)); + unittest.expect( + queryMap["relation"].first, unittest.equals(arg_relation)); unittest.expect( queryMap["target.androidApp.certificate.sha256Fingerprint"].first, unittest .equals(arg_target_androidApp_certificate_sha256Fingerprint)); - unittest.expect(queryMap["source.web.site"].first, - unittest.equals(arg_source_web_site)); unittest.expect(queryMap["source.androidApp.packageName"].first, unittest.equals(arg_source_androidApp_packageName)); - unittest.expect(queryMap["target.androidApp.packageName"].first, - unittest.equals(arg_target_androidApp_packageName)); + unittest.expect(queryMap["source.web.site"].first, + unittest.equals(arg_source_web_site)); unittest.expect( queryMap["source.androidApp.certificate.sha256Fingerprint"].first, unittest @@ -370,13 +370,13 @@ }), true); res .check( - relation: arg_relation, target_web_site: arg_target_web_site, + target_androidApp_packageName: arg_target_androidApp_packageName, + relation: arg_relation, target_androidApp_certificate_sha256Fingerprint: arg_target_androidApp_certificate_sha256Fingerprint, - source_web_site: arg_source_web_site, source_androidApp_packageName: arg_source_androidApp_packageName, - target_androidApp_packageName: arg_target_androidApp_packageName, + source_web_site: arg_source_web_site, source_androidApp_certificate_sha256Fingerprint: arg_source_androidApp_certificate_sha256Fingerprint, $fields: arg_$fields) @@ -391,10 +391,10 @@ var mock = new HttpServerMock(); api.StatementsResourceApi res = new api.DigitalassetlinksApi(mock).statements; - var arg_source_androidApp_certificate_sha256Fingerprint = "foo"; + var arg_source_androidApp_packageName = "foo"; var arg_relation = "foo"; var arg_source_web_site = "foo"; - var arg_source_androidApp_packageName = "foo"; + var arg_source_androidApp_certificate_sha256Fingerprint = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -426,16 +426,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["source.androidApp.certificate.sha256Fingerprint"].first, - unittest - .equals(arg_source_androidApp_certificate_sha256Fingerprint)); + unittest.expect(queryMap["source.androidApp.packageName"].first, + unittest.equals(arg_source_androidApp_packageName)); unittest.expect( queryMap["relation"].first, unittest.equals(arg_relation)); unittest.expect(queryMap["source.web.site"].first, unittest.equals(arg_source_web_site)); - unittest.expect(queryMap["source.androidApp.packageName"].first, - unittest.equals(arg_source_androidApp_packageName)); + unittest.expect( + queryMap["source.androidApp.certificate.sha256Fingerprint"].first, + unittest + .equals(arg_source_androidApp_certificate_sha256Fingerprint)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -446,11 +446,11 @@ }), true); res .list( - source_androidApp_certificate_sha256Fingerprint: - arg_source_androidApp_certificate_sha256Fingerprint, + source_androidApp_packageName: arg_source_androidApp_packageName, relation: arg_relation, source_web_site: arg_source_web_site, - source_androidApp_packageName: arg_source_androidApp_packageName, + source_androidApp_certificate_sha256Fingerprint: + arg_source_androidApp_certificate_sha256Fingerprint, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListResponse(response);
diff --git a/generated/googleapis/test/discovery/v1_test.dart b/generated/googleapis/test/discovery/v1_test.dart index 94a258f..29738b5 100644 --- a/generated/googleapis/test/discovery/v1_test.dart +++ b/generated/googleapis/test/discovery/v1_test.dart
@@ -71,14 +71,14 @@ buildCounterDirectoryListItemsIcons--; } -buildUnnamed4994() { +buildUnnamed5374() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4994(core.List<core.String> o) { +checkUnnamed5374(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -96,7 +96,7 @@ o.icons = buildDirectoryListItemsIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed4994(); + o.labels = buildUnnamed5374(); o.name = "foo"; o.preferred = true; o.title = "foo"; @@ -116,7 +116,7 @@ checkDirectoryListItemsIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4994(o.labels); + checkUnnamed5374(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.preferred, unittest.isTrue); unittest.expect(o.title, unittest.equals('foo')); @@ -125,14 +125,14 @@ buildCounterDirectoryListItems--; } -buildUnnamed4995() { +buildUnnamed5375() { var o = new core.List<api.DirectoryListItems>(); o.add(buildDirectoryListItems()); o.add(buildDirectoryListItems()); return o; } -checkUnnamed4995(core.List<api.DirectoryListItems> o) { +checkUnnamed5375(core.List<api.DirectoryListItems> o) { unittest.expect(o, unittest.hasLength(2)); checkDirectoryListItems(o[0]); checkDirectoryListItems(o[1]); @@ -144,7 +144,7 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { o.discoveryVersion = "foo"; - o.items = buildUnnamed4995(); + o.items = buildUnnamed5375(); o.kind = "foo"; } buildCounterDirectoryList--; @@ -155,20 +155,20 @@ buildCounterDirectoryList++; if (buildCounterDirectoryList < 3) { unittest.expect(o.discoveryVersion, unittest.equals('foo')); - checkUnnamed4995(o.items); + checkUnnamed5375(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterDirectoryList--; } -buildUnnamed4996() { +buildUnnamed5376() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4996(core.List<core.String> o) { +checkUnnamed5376(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -179,7 +179,7 @@ var o = new api.JsonSchemaAnnotations(); buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - o.required = buildUnnamed4996(); + o.required = buildUnnamed5376(); } buildCounterJsonSchemaAnnotations--; return o; @@ -188,45 +188,45 @@ checkJsonSchemaAnnotations(api.JsonSchemaAnnotations o) { buildCounterJsonSchemaAnnotations++; if (buildCounterJsonSchemaAnnotations < 3) { - checkUnnamed4996(o.required); + checkUnnamed5376(o.required); } buildCounterJsonSchemaAnnotations--; } -buildUnnamed4997() { +buildUnnamed5377() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4997(core.List<core.String> o) { +checkUnnamed5377(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4998() { +buildUnnamed5378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4998(core.List<core.String> o) { +checkUnnamed5378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4999() { +buildUnnamed5379() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed4999(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed5379(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -253,14 +253,14 @@ buildCounterJsonSchemaVariantMap--; } -buildUnnamed5000() { +buildUnnamed5380() { var o = new core.List<api.JsonSchemaVariantMap>(); o.add(buildJsonSchemaVariantMap()); o.add(buildJsonSchemaVariantMap()); return o; } -checkUnnamed5000(core.List<api.JsonSchemaVariantMap> o) { +checkUnnamed5380(core.List<api.JsonSchemaVariantMap> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchemaVariantMap(o[0]); checkJsonSchemaVariantMap(o[1]); @@ -272,7 +272,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { o.discriminant = "foo"; - o.map = buildUnnamed5000(); + o.map = buildUnnamed5380(); } buildCounterJsonSchemaVariant--; return o; @@ -282,7 +282,7 @@ buildCounterJsonSchemaVariant++; if (buildCounterJsonSchemaVariant < 3) { unittest.expect(o.discriminant, unittest.equals('foo')); - checkUnnamed5000(o.map); + checkUnnamed5380(o.map); } buildCounterJsonSchemaVariant--; } @@ -297,8 +297,8 @@ o.annotations = buildJsonSchemaAnnotations(); o.default_ = "foo"; o.description = "foo"; - o.enum_ = buildUnnamed4997(); - o.enumDescriptions = buildUnnamed4998(); + o.enum_ = buildUnnamed5377(); + o.enumDescriptions = buildUnnamed5378(); o.format = "foo"; o.id = "foo"; o.items = buildJsonSchema(); @@ -306,7 +306,7 @@ o.maximum = "foo"; o.minimum = "foo"; o.pattern = "foo"; - o.properties = buildUnnamed4999(); + o.properties = buildUnnamed5379(); o.readOnly = true; o.repeated = true; o.required = true; @@ -325,8 +325,8 @@ checkJsonSchemaAnnotations(o.annotations); unittest.expect(o.default_, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed4997(o.enum_); - checkUnnamed4998(o.enumDescriptions); + checkUnnamed5377(o.enum_); + checkUnnamed5378(o.enumDescriptions); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkJsonSchema(o.items); @@ -334,7 +334,7 @@ unittest.expect(o.maximum, unittest.equals('foo')); unittest.expect(o.minimum, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed4999(o.properties); + checkUnnamed5379(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--; } -buildUnnamed5001() { +buildUnnamed5381() { var o = new core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue>(); o["x"] = buildRestDescriptionAuthOauth2ScopesValue(); o["y"] = buildRestDescriptionAuthOauth2ScopesValue(); return o; } -checkUnnamed5001( +checkUnnamed5381( core.Map<core.String, api.RestDescriptionAuthOauth2ScopesValue> o) { unittest.expect(o, unittest.hasLength(2)); checkRestDescriptionAuthOauth2ScopesValue(o["x"]); @@ -383,7 +383,7 @@ var o = new api.RestDescriptionAuthOauth2(); buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - o.scopes = buildUnnamed5001(); + o.scopes = buildUnnamed5381(); } buildCounterRestDescriptionAuthOauth2--; return o; @@ -392,7 +392,7 @@ checkRestDescriptionAuthOauth2(api.RestDescriptionAuthOauth2 o) { buildCounterRestDescriptionAuthOauth2++; if (buildCounterRestDescriptionAuthOauth2 < 3) { - checkUnnamed5001(o.scopes); + checkUnnamed5381(o.scopes); } buildCounterRestDescriptionAuthOauth2--; } @@ -416,14 +416,14 @@ buildCounterRestDescriptionAuth--; } -buildUnnamed5002() { +buildUnnamed5382() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5002(core.List<core.String> o) { +checkUnnamed5382(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -450,66 +450,66 @@ buildCounterRestDescriptionIcons--; } -buildUnnamed5003() { +buildUnnamed5383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5003(core.List<core.String> o) { +checkUnnamed5383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5004() { +buildUnnamed5384() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed5004(core.Map<core.String, api.RestMethod> o) { +checkUnnamed5384(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed5005() { +buildUnnamed5385() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed5005(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed5385(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); } -buildUnnamed5006() { +buildUnnamed5386() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed5006(core.Map<core.String, api.RestResource> o) { +checkUnnamed5386(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); } -buildUnnamed5007() { +buildUnnamed5387() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed5007(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed5387(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -530,22 +530,22 @@ o.documentationLink = "foo"; o.etag = "foo"; o.exponentialBackoffDefault = true; - o.features = buildUnnamed5002(); + o.features = buildUnnamed5382(); o.icons = buildRestDescriptionIcons(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed5003(); - o.methods = buildUnnamed5004(); + o.labels = buildUnnamed5383(); + o.methods = buildUnnamed5384(); o.name = "foo"; o.ownerDomain = "foo"; o.ownerName = "foo"; o.packagePath = "foo"; - o.parameters = buildUnnamed5005(); + o.parameters = buildUnnamed5385(); o.protocol = "foo"; - o.resources = buildUnnamed5006(); + o.resources = buildUnnamed5386(); o.revision = "foo"; o.rootUrl = "foo"; - o.schemas = buildUnnamed5007(); + o.schemas = buildUnnamed5387(); o.servicePath = "foo"; o.title = "foo"; o.version = "foo"; @@ -568,22 +568,22 @@ unittest.expect(o.documentationLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.exponentialBackoffDefault, unittest.isTrue); - checkUnnamed5002(o.features); + checkUnnamed5382(o.features); checkRestDescriptionIcons(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5003(o.labels); - checkUnnamed5004(o.methods); + checkUnnamed5383(o.labels); + checkUnnamed5384(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')); - checkUnnamed5005(o.parameters); + checkUnnamed5385(o.parameters); unittest.expect(o.protocol, unittest.equals('foo')); - checkUnnamed5006(o.resources); + checkUnnamed5386(o.resources); unittest.expect(o.revision, unittest.equals('foo')); unittest.expect(o.rootUrl, unittest.equals('foo')); - checkUnnamed5007(o.schemas); + checkUnnamed5387(o.schemas); unittest.expect(o.servicePath, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -592,14 +592,14 @@ buildCounterRestDescription--; } -buildUnnamed5008() { +buildUnnamed5388() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5008(core.List<core.String> o) { +checkUnnamed5388(core.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.RestMethodMediaUpload(); buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - o.accept = buildUnnamed5008(); + o.accept = buildUnnamed5388(); o.maxSize = "foo"; o.protocols = buildRestMethodMediaUploadProtocols(); } @@ -686,34 +686,34 @@ checkRestMethodMediaUpload(api.RestMethodMediaUpload o) { buildCounterRestMethodMediaUpload++; if (buildCounterRestMethodMediaUpload < 3) { - checkUnnamed5008(o.accept); + checkUnnamed5388(o.accept); unittest.expect(o.maxSize, unittest.equals('foo')); checkRestMethodMediaUploadProtocols(o.protocols); } buildCounterRestMethodMediaUpload--; } -buildUnnamed5009() { +buildUnnamed5389() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5009(core.List<core.String> o) { +checkUnnamed5389(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5010() { +buildUnnamed5390() { var o = new core.Map<core.String, api.JsonSchema>(); o["x"] = buildJsonSchema(); o["y"] = buildJsonSchema(); return o; } -checkUnnamed5010(core.Map<core.String, api.JsonSchema> o) { +checkUnnamed5390(core.Map<core.String, api.JsonSchema> o) { unittest.expect(o, unittest.hasLength(2)); checkJsonSchema(o["x"]); checkJsonSchema(o["y"]); @@ -759,14 +759,14 @@ buildCounterRestMethodResponse--; } -buildUnnamed5011() { +buildUnnamed5391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5011(core.List<core.String> o) { +checkUnnamed5391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -782,12 +782,12 @@ o.httpMethod = "foo"; o.id = "foo"; o.mediaUpload = buildRestMethodMediaUpload(); - o.parameterOrder = buildUnnamed5009(); - o.parameters = buildUnnamed5010(); + o.parameterOrder = buildUnnamed5389(); + o.parameters = buildUnnamed5390(); o.path = "foo"; o.request = buildRestMethodRequest(); o.response = buildRestMethodResponse(); - o.scopes = buildUnnamed5011(); + o.scopes = buildUnnamed5391(); o.supportsMediaDownload = true; o.supportsMediaUpload = true; o.supportsSubscription = true; @@ -805,12 +805,12 @@ unittest.expect(o.httpMethod, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); checkRestMethodMediaUpload(o.mediaUpload); - checkUnnamed5009(o.parameterOrder); - checkUnnamed5010(o.parameters); + checkUnnamed5389(o.parameterOrder); + checkUnnamed5390(o.parameters); unittest.expect(o.path, unittest.equals('foo')); checkRestMethodRequest(o.request); checkRestMethodResponse(o.response); - checkUnnamed5011(o.scopes); + checkUnnamed5391(o.scopes); unittest.expect(o.supportsMediaDownload, unittest.isTrue); unittest.expect(o.supportsMediaUpload, unittest.isTrue); unittest.expect(o.supportsSubscription, unittest.isTrue); @@ -819,27 +819,27 @@ buildCounterRestMethod--; } -buildUnnamed5012() { +buildUnnamed5392() { var o = new core.Map<core.String, api.RestMethod>(); o["x"] = buildRestMethod(); o["y"] = buildRestMethod(); return o; } -checkUnnamed5012(core.Map<core.String, api.RestMethod> o) { +checkUnnamed5392(core.Map<core.String, api.RestMethod> o) { unittest.expect(o, unittest.hasLength(2)); checkRestMethod(o["x"]); checkRestMethod(o["y"]); } -buildUnnamed5013() { +buildUnnamed5393() { var o = new core.Map<core.String, api.RestResource>(); o["x"] = buildRestResource(); o["y"] = buildRestResource(); return o; } -checkUnnamed5013(core.Map<core.String, api.RestResource> o) { +checkUnnamed5393(core.Map<core.String, api.RestResource> o) { unittest.expect(o, unittest.hasLength(2)); checkRestResource(o["x"]); checkRestResource(o["y"]); @@ -850,8 +850,8 @@ var o = new api.RestResource(); buildCounterRestResource++; if (buildCounterRestResource < 3) { - o.methods = buildUnnamed5012(); - o.resources = buildUnnamed5013(); + o.methods = buildUnnamed5392(); + o.resources = buildUnnamed5393(); } buildCounterRestResource--; return o; @@ -860,8 +860,8 @@ checkRestResource(api.RestResource o) { buildCounterRestResource++; if (buildCounterRestResource < 3) { - checkUnnamed5012(o.methods); - checkUnnamed5013(o.resources); + checkUnnamed5392(o.methods); + checkUnnamed5393(o.resources); } buildCounterRestResource--; } @@ -1106,8 +1106,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ApisResourceApi res = new api.DiscoveryApi(mock).apis; - var arg_name = "foo"; var arg_preferred = true; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1142,9 +1142,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect( queryMap["preferred"].first, unittest.equals("$arg_preferred")); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1154,7 +1154,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(name: arg_name, preferred: arg_preferred, $fields: arg_$fields) + .list(preferred: arg_preferred, name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDirectoryList(response); })));
diff --git a/generated/googleapis/test/displayvideo/v1_test.dart b/generated/googleapis/test/displayvideo/v1_test.dart index e32b6d4..3f7d49f 100644 --- a/generated/googleapis/test/displayvideo/v1_test.dart +++ b/generated/googleapis/test/displayvideo/v1_test.dart
@@ -78,14 +78,14 @@ buildCounterActiveViewVideoViewabilityMetricConfig--; } -buildUnnamed3998() { +buildUnnamed4198() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3998(core.List<core.String> o) { +checkUnnamed4198(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -96,7 +96,7 @@ var o = new api.Adloox(); buildCounterAdloox++; if (buildCounterAdloox < 3) { - o.excludedAdlooxCategories = buildUnnamed3998(); + o.excludedAdlooxCategories = buildUnnamed4198(); } buildCounterAdloox--; return o; @@ -105,7 +105,7 @@ checkAdloox(api.Adloox o) { buildCounterAdloox++; if (buildCounterAdloox < 3) { - checkUnnamed3998(o.excludedAdlooxCategories); + checkUnnamed4198(o.excludedAdlooxCategories); } buildCounterAdloox--; } @@ -125,6 +125,7 @@ o.integrationDetails = buildIntegrationDetails(); o.name = "foo"; o.partnerId = "foo"; + o.servingConfig = buildAdvertiserTargetingConfig(); o.updateTime = "foo"; } buildCounterAdvertiser--; @@ -144,6 +145,7 @@ checkIntegrationDetails(o.integrationDetails); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.partnerId, unittest.equals('foo')); + checkAdvertiserTargetingConfig(o.servingConfig); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterAdvertiser--; @@ -258,6 +260,25 @@ buildCounterAdvertiserSdfConfig--; } +core.int buildCounterAdvertiserTargetingConfig = 0; +buildAdvertiserTargetingConfig() { + var o = new api.AdvertiserTargetingConfig(); + buildCounterAdvertiserTargetingConfig++; + if (buildCounterAdvertiserTargetingConfig < 3) { + o.exemptTvFromViewabilityTargeting = true; + } + buildCounterAdvertiserTargetingConfig--; + return o; +} + +checkAdvertiserTargetingConfig(api.AdvertiserTargetingConfig o) { + buildCounterAdvertiserTargetingConfig++; + if (buildCounterAdvertiserTargetingConfig < 3) { + unittest.expect(o.exemptTvFromViewabilityTargeting, unittest.isTrue); + } + buildCounterAdvertiserTargetingConfig--; +} + core.int buildCounterAgeRangeAssignedTargetingOptionDetails = 0; buildAgeRangeAssignedTargetingOptionDetails() { var o = new api.AgeRangeAssignedTargetingOptionDetails(); @@ -409,6 +430,52 @@ buildCounterAssetAssociation--; } +core.int buildCounterAssignedInventorySource = 0; +buildAssignedInventorySource() { + var o = new api.AssignedInventorySource(); + buildCounterAssignedInventorySource++; + if (buildCounterAssignedInventorySource < 3) { + o.assignedInventorySourceId = "foo"; + o.inventorySourceId = "foo"; + o.name = "foo"; + } + buildCounterAssignedInventorySource--; + return o; +} + +checkAssignedInventorySource(api.AssignedInventorySource o) { + buildCounterAssignedInventorySource++; + if (buildCounterAssignedInventorySource < 3) { + unittest.expect(o.assignedInventorySourceId, unittest.equals('foo')); + unittest.expect(o.inventorySourceId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterAssignedInventorySource--; +} + +core.int buildCounterAssignedLocation = 0; +buildAssignedLocation() { + var o = new api.AssignedLocation(); + buildCounterAssignedLocation++; + if (buildCounterAssignedLocation < 3) { + o.assignedLocationId = "foo"; + o.name = "foo"; + o.targetingOptionId = "foo"; + } + buildCounterAssignedLocation--; + return o; +} + +checkAssignedLocation(api.AssignedLocation o) { + buildCounterAssignedLocation++; + if (buildCounterAssignedLocation < 3) { + unittest.expect(o.assignedLocationId, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.targetingOptionId, unittest.equals('foo')); + } + buildCounterAssignedLocation--; +} + core.int buildCounterAssignedTargetingOption = 0; buildAssignedTargetingOption() { var o = new api.AssignedTargetingOption(); @@ -543,14 +610,39 @@ buildCounterAssignedTargetingOption--; } -buildUnnamed3999() { +core.int buildCounterAssignedUserRole = 0; +buildAssignedUserRole() { + var o = new api.AssignedUserRole(); + buildCounterAssignedUserRole++; + if (buildCounterAssignedUserRole < 3) { + o.advertiserId = "foo"; + o.assignedUserRoleId = "foo"; + o.partnerId = "foo"; + o.userRole = "foo"; + } + buildCounterAssignedUserRole--; + return o; +} + +checkAssignedUserRole(api.AssignedUserRole o) { + buildCounterAssignedUserRole++; + if (buildCounterAssignedUserRole < 3) { + unittest.expect(o.advertiserId, unittest.equals('foo')); + unittest.expect(o.assignedUserRoleId, unittest.equals('foo')); + unittest.expect(o.partnerId, unittest.equals('foo')); + unittest.expect(o.userRole, unittest.equals('foo')); + } + buildCounterAssignedUserRole--; +} + +buildUnnamed4199() { var o = new core.List<api.FirstAndThirdPartyAudienceGroup>(); o.add(buildFirstAndThirdPartyAudienceGroup()); o.add(buildFirstAndThirdPartyAudienceGroup()); return o; } -checkUnnamed3999(core.List<api.FirstAndThirdPartyAudienceGroup> o) { +checkUnnamed4199(core.List<api.FirstAndThirdPartyAudienceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkFirstAndThirdPartyAudienceGroup(o[0]); checkFirstAndThirdPartyAudienceGroup(o[1]); @@ -566,7 +658,7 @@ o.excludedGoogleAudienceGroup = buildGoogleAudienceGroup(); o.includedCombinedAudienceGroup = buildCombinedAudienceGroup(); o.includedCustomListGroup = buildCustomListGroup(); - o.includedFirstAndThirdPartyAudienceGroups = buildUnnamed3999(); + o.includedFirstAndThirdPartyAudienceGroups = buildUnnamed4199(); o.includedGoogleAudienceGroup = buildGoogleAudienceGroup(); } buildCounterAudienceGroupAssignedTargetingOptionDetails--; @@ -582,7 +674,7 @@ checkGoogleAudienceGroup(o.excludedGoogleAudienceGroup); checkCombinedAudienceGroup(o.includedCombinedAudienceGroup); checkCustomListGroup(o.includedCustomListGroup); - checkUnnamed3999(o.includedFirstAndThirdPartyAudienceGroups); + checkUnnamed4199(o.includedFirstAndThirdPartyAudienceGroups); checkGoogleAudienceGroup(o.includedGoogleAudienceGroup); } buildCounterAudienceGroupAssignedTargetingOptionDetails--; @@ -609,6 +701,39 @@ buildCounterAudioVideoOffset--; } +core.int buildCounterAuditAdvertiserResponse = 0; +buildAuditAdvertiserResponse() { + var o = new api.AuditAdvertiserResponse(); + buildCounterAuditAdvertiserResponse++; + if (buildCounterAuditAdvertiserResponse < 3) { + o.adGroupCriteriaCount = "foo"; + o.campaignCriteriaCount = "foo"; + o.channelsCount = "foo"; + o.negativeKeywordListsCount = "foo"; + o.negativelyTargetedChannelsCount = "foo"; + o.usedCampaignsCount = "foo"; + o.usedInsertionOrdersCount = "foo"; + o.usedLineItemsCount = "foo"; + } + buildCounterAuditAdvertiserResponse--; + return o; +} + +checkAuditAdvertiserResponse(api.AuditAdvertiserResponse o) { + buildCounterAuditAdvertiserResponse++; + if (buildCounterAuditAdvertiserResponse < 3) { + unittest.expect(o.adGroupCriteriaCount, unittest.equals('foo')); + unittest.expect(o.campaignCriteriaCount, unittest.equals('foo')); + unittest.expect(o.channelsCount, unittest.equals('foo')); + unittest.expect(o.negativeKeywordListsCount, unittest.equals('foo')); + unittest.expect(o.negativelyTargetedChannelsCount, unittest.equals('foo')); + unittest.expect(o.usedCampaignsCount, unittest.equals('foo')); + unittest.expect(o.usedInsertionOrdersCount, unittest.equals('foo')); + unittest.expect(o.usedLineItemsCount, unittest.equals('foo')); + } + buildCounterAuditAdvertiserResponse--; +} + core.int buildCounterAuthorizedSellerStatusAssignedTargetingOptionDetails = 0; buildAuthorizedSellerStatusAssignedTargetingOptionDetails() { var o = new api.AuthorizedSellerStatusAssignedTargetingOptionDetails(); @@ -717,27 +842,353 @@ buildCounterBrowserTargetingOptionDetails--; } -buildUnnamed4000() { +buildUnnamed4200() { var o = new core.List<api.CreateAssignedTargetingOptionsRequest>(); o.add(buildCreateAssignedTargetingOptionsRequest()); o.add(buildCreateAssignedTargetingOptionsRequest()); return o; } -checkUnnamed4000(core.List<api.CreateAssignedTargetingOptionsRequest> o) { +checkUnnamed4200(core.List<api.CreateAssignedTargetingOptionsRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkCreateAssignedTargetingOptionsRequest(o[0]); checkCreateAssignedTargetingOptionsRequest(o[1]); } -buildUnnamed4001() { +buildUnnamed4201() { var o = new core.List<api.DeleteAssignedTargetingOptionsRequest>(); o.add(buildDeleteAssignedTargetingOptionsRequest()); o.add(buildDeleteAssignedTargetingOptionsRequest()); return o; } -checkUnnamed4001(core.List<api.DeleteAssignedTargetingOptionsRequest> o) { +checkUnnamed4201(core.List<api.DeleteAssignedTargetingOptionsRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDeleteAssignedTargetingOptionsRequest(o[0]); + checkDeleteAssignedTargetingOptionsRequest(o[1]); +} + +core.int buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest = 0; +buildBulkEditAdvertiserAssignedTargetingOptionsRequest() { + var o = new api.BulkEditAdvertiserAssignedTargetingOptionsRequest(); + buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest++; + if (buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest < 3) { + o.createRequests = buildUnnamed4200(); + o.deleteRequests = buildUnnamed4201(); + } + buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest--; + return o; +} + +checkBulkEditAdvertiserAssignedTargetingOptionsRequest( + api.BulkEditAdvertiserAssignedTargetingOptionsRequest o) { + buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest++; + if (buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest < 3) { + checkUnnamed4200(o.createRequests); + checkUnnamed4201(o.deleteRequests); + } + buildCounterBulkEditAdvertiserAssignedTargetingOptionsRequest--; +} + +buildUnnamed4202() { + var o = new core.List<api.AssignedTargetingOption>(); + o.add(buildAssignedTargetingOption()); + o.add(buildAssignedTargetingOption()); + return o; +} + +checkUnnamed4202(core.List<api.AssignedTargetingOption> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedTargetingOption(o[0]); + checkAssignedTargetingOption(o[1]); +} + +core.int buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse = 0; +buildBulkEditAdvertiserAssignedTargetingOptionsResponse() { + var o = new api.BulkEditAdvertiserAssignedTargetingOptionsResponse(); + buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse < 3) { + o.createdAssignedTargetingOptions = buildUnnamed4202(); + } + buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse--; + return o; +} + +checkBulkEditAdvertiserAssignedTargetingOptionsResponse( + api.BulkEditAdvertiserAssignedTargetingOptionsResponse o) { + buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse < 3) { + checkUnnamed4202(o.createdAssignedTargetingOptions); + } + buildCounterBulkEditAdvertiserAssignedTargetingOptionsResponse--; +} + +buildUnnamed4203() { + var o = new core.List<api.AssignedInventorySource>(); + o.add(buildAssignedInventorySource()); + o.add(buildAssignedInventorySource()); + return o; +} + +checkUnnamed4203(core.List<api.AssignedInventorySource> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedInventorySource(o[0]); + checkAssignedInventorySource(o[1]); +} + +buildUnnamed4204() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4204(core.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 buildCounterBulkEditAssignedInventorySourcesRequest = 0; +buildBulkEditAssignedInventorySourcesRequest() { + var o = new api.BulkEditAssignedInventorySourcesRequest(); + buildCounterBulkEditAssignedInventorySourcesRequest++; + if (buildCounterBulkEditAssignedInventorySourcesRequest < 3) { + o.advertiserId = "foo"; + o.createdAssignedInventorySources = buildUnnamed4203(); + o.deletedAssignedInventorySources = buildUnnamed4204(); + o.partnerId = "foo"; + } + buildCounterBulkEditAssignedInventorySourcesRequest--; + return o; +} + +checkBulkEditAssignedInventorySourcesRequest( + api.BulkEditAssignedInventorySourcesRequest o) { + buildCounterBulkEditAssignedInventorySourcesRequest++; + if (buildCounterBulkEditAssignedInventorySourcesRequest < 3) { + unittest.expect(o.advertiserId, unittest.equals('foo')); + checkUnnamed4203(o.createdAssignedInventorySources); + checkUnnamed4204(o.deletedAssignedInventorySources); + unittest.expect(o.partnerId, unittest.equals('foo')); + } + buildCounterBulkEditAssignedInventorySourcesRequest--; +} + +buildUnnamed4205() { + var o = new core.List<api.AssignedInventorySource>(); + o.add(buildAssignedInventorySource()); + o.add(buildAssignedInventorySource()); + return o; +} + +checkUnnamed4205(core.List<api.AssignedInventorySource> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedInventorySource(o[0]); + checkAssignedInventorySource(o[1]); +} + +core.int buildCounterBulkEditAssignedInventorySourcesResponse = 0; +buildBulkEditAssignedInventorySourcesResponse() { + var o = new api.BulkEditAssignedInventorySourcesResponse(); + buildCounterBulkEditAssignedInventorySourcesResponse++; + if (buildCounterBulkEditAssignedInventorySourcesResponse < 3) { + o.assignedInventorySources = buildUnnamed4205(); + } + buildCounterBulkEditAssignedInventorySourcesResponse--; + return o; +} + +checkBulkEditAssignedInventorySourcesResponse( + api.BulkEditAssignedInventorySourcesResponse o) { + buildCounterBulkEditAssignedInventorySourcesResponse++; + if (buildCounterBulkEditAssignedInventorySourcesResponse < 3) { + checkUnnamed4205(o.assignedInventorySources); + } + buildCounterBulkEditAssignedInventorySourcesResponse--; +} + +buildUnnamed4206() { + var o = new core.List<api.AssignedLocation>(); + o.add(buildAssignedLocation()); + o.add(buildAssignedLocation()); + return o; +} + +checkUnnamed4206(core.List<api.AssignedLocation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedLocation(o[0]); + checkAssignedLocation(o[1]); +} + +buildUnnamed4207() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4207(core.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 buildCounterBulkEditAssignedLocationsRequest = 0; +buildBulkEditAssignedLocationsRequest() { + var o = new api.BulkEditAssignedLocationsRequest(); + buildCounterBulkEditAssignedLocationsRequest++; + if (buildCounterBulkEditAssignedLocationsRequest < 3) { + o.createdAssignedLocations = buildUnnamed4206(); + o.deletedAssignedLocations = buildUnnamed4207(); + } + buildCounterBulkEditAssignedLocationsRequest--; + return o; +} + +checkBulkEditAssignedLocationsRequest(api.BulkEditAssignedLocationsRequest o) { + buildCounterBulkEditAssignedLocationsRequest++; + if (buildCounterBulkEditAssignedLocationsRequest < 3) { + checkUnnamed4206(o.createdAssignedLocations); + checkUnnamed4207(o.deletedAssignedLocations); + } + buildCounterBulkEditAssignedLocationsRequest--; +} + +buildUnnamed4208() { + var o = new core.List<api.AssignedLocation>(); + o.add(buildAssignedLocation()); + o.add(buildAssignedLocation()); + return o; +} + +checkUnnamed4208(core.List<api.AssignedLocation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedLocation(o[0]); + checkAssignedLocation(o[1]); +} + +core.int buildCounterBulkEditAssignedLocationsResponse = 0; +buildBulkEditAssignedLocationsResponse() { + var o = new api.BulkEditAssignedLocationsResponse(); + buildCounterBulkEditAssignedLocationsResponse++; + if (buildCounterBulkEditAssignedLocationsResponse < 3) { + o.assignedLocations = buildUnnamed4208(); + } + buildCounterBulkEditAssignedLocationsResponse--; + return o; +} + +checkBulkEditAssignedLocationsResponse( + api.BulkEditAssignedLocationsResponse o) { + buildCounterBulkEditAssignedLocationsResponse++; + if (buildCounterBulkEditAssignedLocationsResponse < 3) { + checkUnnamed4208(o.assignedLocations); + } + buildCounterBulkEditAssignedLocationsResponse--; +} + +buildUnnamed4209() { + var o = new core.List<api.AssignedUserRole>(); + o.add(buildAssignedUserRole()); + o.add(buildAssignedUserRole()); + return o; +} + +checkUnnamed4209(core.List<api.AssignedUserRole> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedUserRole(o[0]); + checkAssignedUserRole(o[1]); +} + +buildUnnamed4210() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4210(core.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 buildCounterBulkEditAssignedUserRolesRequest = 0; +buildBulkEditAssignedUserRolesRequest() { + var o = new api.BulkEditAssignedUserRolesRequest(); + buildCounterBulkEditAssignedUserRolesRequest++; + if (buildCounterBulkEditAssignedUserRolesRequest < 3) { + o.createdAssignedUserRoles = buildUnnamed4209(); + o.deletedAssignedUserRoles = buildUnnamed4210(); + } + buildCounterBulkEditAssignedUserRolesRequest--; + return o; +} + +checkBulkEditAssignedUserRolesRequest(api.BulkEditAssignedUserRolesRequest o) { + buildCounterBulkEditAssignedUserRolesRequest++; + if (buildCounterBulkEditAssignedUserRolesRequest < 3) { + checkUnnamed4209(o.createdAssignedUserRoles); + checkUnnamed4210(o.deletedAssignedUserRoles); + } + buildCounterBulkEditAssignedUserRolesRequest--; +} + +buildUnnamed4211() { + var o = new core.List<api.AssignedUserRole>(); + o.add(buildAssignedUserRole()); + o.add(buildAssignedUserRole()); + return o; +} + +checkUnnamed4211(core.List<api.AssignedUserRole> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedUserRole(o[0]); + checkAssignedUserRole(o[1]); +} + +core.int buildCounterBulkEditAssignedUserRolesResponse = 0; +buildBulkEditAssignedUserRolesResponse() { + var o = new api.BulkEditAssignedUserRolesResponse(); + buildCounterBulkEditAssignedUserRolesResponse++; + if (buildCounterBulkEditAssignedUserRolesResponse < 3) { + o.createdAssignedUserRoles = buildUnnamed4211(); + } + buildCounterBulkEditAssignedUserRolesResponse--; + return o; +} + +checkBulkEditAssignedUserRolesResponse( + api.BulkEditAssignedUserRolesResponse o) { + buildCounterBulkEditAssignedUserRolesResponse++; + if (buildCounterBulkEditAssignedUserRolesResponse < 3) { + checkUnnamed4211(o.createdAssignedUserRoles); + } + buildCounterBulkEditAssignedUserRolesResponse--; +} + +buildUnnamed4212() { + var o = new core.List<api.CreateAssignedTargetingOptionsRequest>(); + o.add(buildCreateAssignedTargetingOptionsRequest()); + o.add(buildCreateAssignedTargetingOptionsRequest()); + return o; +} + +checkUnnamed4212(core.List<api.CreateAssignedTargetingOptionsRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreateAssignedTargetingOptionsRequest(o[0]); + checkCreateAssignedTargetingOptionsRequest(o[1]); +} + +buildUnnamed4213() { + var o = new core.List<api.DeleteAssignedTargetingOptionsRequest>(); + o.add(buildDeleteAssignedTargetingOptionsRequest()); + o.add(buildDeleteAssignedTargetingOptionsRequest()); + return o; +} + +checkUnnamed4213(core.List<api.DeleteAssignedTargetingOptionsRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkDeleteAssignedTargetingOptionsRequest(o[0]); checkDeleteAssignedTargetingOptionsRequest(o[1]); @@ -748,8 +1199,8 @@ var o = new api.BulkEditLineItemAssignedTargetingOptionsRequest(); buildCounterBulkEditLineItemAssignedTargetingOptionsRequest++; if (buildCounterBulkEditLineItemAssignedTargetingOptionsRequest < 3) { - o.createRequests = buildUnnamed4000(); - o.deleteRequests = buildUnnamed4001(); + o.createRequests = buildUnnamed4212(); + o.deleteRequests = buildUnnamed4213(); } buildCounterBulkEditLineItemAssignedTargetingOptionsRequest--; return o; @@ -759,20 +1210,20 @@ api.BulkEditLineItemAssignedTargetingOptionsRequest o) { buildCounterBulkEditLineItemAssignedTargetingOptionsRequest++; if (buildCounterBulkEditLineItemAssignedTargetingOptionsRequest < 3) { - checkUnnamed4000(o.createRequests); - checkUnnamed4001(o.deleteRequests); + checkUnnamed4212(o.createRequests); + checkUnnamed4213(o.deleteRequests); } buildCounterBulkEditLineItemAssignedTargetingOptionsRequest--; } -buildUnnamed4002() { +buildUnnamed4214() { var o = new core.List<api.AssignedTargetingOption>(); o.add(buildAssignedTargetingOption()); o.add(buildAssignedTargetingOption()); return o; } -checkUnnamed4002(core.List<api.AssignedTargetingOption> o) { +checkUnnamed4214(core.List<api.AssignedTargetingOption> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignedTargetingOption(o[0]); checkAssignedTargetingOption(o[1]); @@ -783,7 +1234,7 @@ var o = new api.BulkEditLineItemAssignedTargetingOptionsResponse(); buildCounterBulkEditLineItemAssignedTargetingOptionsResponse++; if (buildCounterBulkEditLineItemAssignedTargetingOptionsResponse < 3) { - o.createdAssignedTargetingOptions = buildUnnamed4002(); + o.createdAssignedTargetingOptions = buildUnnamed4214(); } buildCounterBulkEditLineItemAssignedTargetingOptionsResponse--; return o; @@ -793,19 +1244,297 @@ api.BulkEditLineItemAssignedTargetingOptionsResponse o) { buildCounterBulkEditLineItemAssignedTargetingOptionsResponse++; if (buildCounterBulkEditLineItemAssignedTargetingOptionsResponse < 3) { - checkUnnamed4002(o.createdAssignedTargetingOptions); + checkUnnamed4214(o.createdAssignedTargetingOptions); } buildCounterBulkEditLineItemAssignedTargetingOptionsResponse--; } -buildUnnamed4003() { +buildUnnamed4215() { + var o = new core.List<api.NegativeKeyword>(); + o.add(buildNegativeKeyword()); + o.add(buildNegativeKeyword()); + return o; +} + +checkUnnamed4215(core.List<api.NegativeKeyword> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNegativeKeyword(o[0]); + checkNegativeKeyword(o[1]); +} + +buildUnnamed4216() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4216(core.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 buildCounterBulkEditNegativeKeywordsRequest = 0; +buildBulkEditNegativeKeywordsRequest() { + var o = new api.BulkEditNegativeKeywordsRequest(); + buildCounterBulkEditNegativeKeywordsRequest++; + if (buildCounterBulkEditNegativeKeywordsRequest < 3) { + o.createdNegativeKeywords = buildUnnamed4215(); + o.deletedNegativeKeywords = buildUnnamed4216(); + } + buildCounterBulkEditNegativeKeywordsRequest--; + return o; +} + +checkBulkEditNegativeKeywordsRequest(api.BulkEditNegativeKeywordsRequest o) { + buildCounterBulkEditNegativeKeywordsRequest++; + if (buildCounterBulkEditNegativeKeywordsRequest < 3) { + checkUnnamed4215(o.createdNegativeKeywords); + checkUnnamed4216(o.deletedNegativeKeywords); + } + buildCounterBulkEditNegativeKeywordsRequest--; +} + +buildUnnamed4217() { + var o = new core.List<api.NegativeKeyword>(); + o.add(buildNegativeKeyword()); + o.add(buildNegativeKeyword()); + return o; +} + +checkUnnamed4217(core.List<api.NegativeKeyword> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNegativeKeyword(o[0]); + checkNegativeKeyword(o[1]); +} + +core.int buildCounterBulkEditNegativeKeywordsResponse = 0; +buildBulkEditNegativeKeywordsResponse() { + var o = new api.BulkEditNegativeKeywordsResponse(); + buildCounterBulkEditNegativeKeywordsResponse++; + if (buildCounterBulkEditNegativeKeywordsResponse < 3) { + o.negativeKeywords = buildUnnamed4217(); + } + buildCounterBulkEditNegativeKeywordsResponse--; + return o; +} + +checkBulkEditNegativeKeywordsResponse(api.BulkEditNegativeKeywordsResponse o) { + buildCounterBulkEditNegativeKeywordsResponse++; + if (buildCounterBulkEditNegativeKeywordsResponse < 3) { + checkUnnamed4217(o.negativeKeywords); + } + buildCounterBulkEditNegativeKeywordsResponse--; +} + +buildUnnamed4218() { + var o = new core.List<api.CreateAssignedTargetingOptionsRequest>(); + o.add(buildCreateAssignedTargetingOptionsRequest()); + o.add(buildCreateAssignedTargetingOptionsRequest()); + return o; +} + +checkUnnamed4218(core.List<api.CreateAssignedTargetingOptionsRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCreateAssignedTargetingOptionsRequest(o[0]); + checkCreateAssignedTargetingOptionsRequest(o[1]); +} + +buildUnnamed4219() { + var o = new core.List<api.DeleteAssignedTargetingOptionsRequest>(); + o.add(buildDeleteAssignedTargetingOptionsRequest()); + o.add(buildDeleteAssignedTargetingOptionsRequest()); + return o; +} + +checkUnnamed4219(core.List<api.DeleteAssignedTargetingOptionsRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDeleteAssignedTargetingOptionsRequest(o[0]); + checkDeleteAssignedTargetingOptionsRequest(o[1]); +} + +core.int buildCounterBulkEditPartnerAssignedTargetingOptionsRequest = 0; +buildBulkEditPartnerAssignedTargetingOptionsRequest() { + var o = new api.BulkEditPartnerAssignedTargetingOptionsRequest(); + buildCounterBulkEditPartnerAssignedTargetingOptionsRequest++; + if (buildCounterBulkEditPartnerAssignedTargetingOptionsRequest < 3) { + o.createRequests = buildUnnamed4218(); + o.deleteRequests = buildUnnamed4219(); + } + buildCounterBulkEditPartnerAssignedTargetingOptionsRequest--; + return o; +} + +checkBulkEditPartnerAssignedTargetingOptionsRequest( + api.BulkEditPartnerAssignedTargetingOptionsRequest o) { + buildCounterBulkEditPartnerAssignedTargetingOptionsRequest++; + if (buildCounterBulkEditPartnerAssignedTargetingOptionsRequest < 3) { + checkUnnamed4218(o.createRequests); + checkUnnamed4219(o.deleteRequests); + } + buildCounterBulkEditPartnerAssignedTargetingOptionsRequest--; +} + +buildUnnamed4220() { var o = new core.List<api.AssignedTargetingOption>(); o.add(buildAssignedTargetingOption()); o.add(buildAssignedTargetingOption()); return o; } -checkUnnamed4003(core.List<api.AssignedTargetingOption> o) { +checkUnnamed4220(core.List<api.AssignedTargetingOption> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedTargetingOption(o[0]); + checkAssignedTargetingOption(o[1]); +} + +core.int buildCounterBulkEditPartnerAssignedTargetingOptionsResponse = 0; +buildBulkEditPartnerAssignedTargetingOptionsResponse() { + var o = new api.BulkEditPartnerAssignedTargetingOptionsResponse(); + buildCounterBulkEditPartnerAssignedTargetingOptionsResponse++; + if (buildCounterBulkEditPartnerAssignedTargetingOptionsResponse < 3) { + o.createdAssignedTargetingOptions = buildUnnamed4220(); + } + buildCounterBulkEditPartnerAssignedTargetingOptionsResponse--; + return o; +} + +checkBulkEditPartnerAssignedTargetingOptionsResponse( + api.BulkEditPartnerAssignedTargetingOptionsResponse o) { + buildCounterBulkEditPartnerAssignedTargetingOptionsResponse++; + if (buildCounterBulkEditPartnerAssignedTargetingOptionsResponse < 3) { + checkUnnamed4220(o.createdAssignedTargetingOptions); + } + buildCounterBulkEditPartnerAssignedTargetingOptionsResponse--; +} + +buildUnnamed4221() { + var o = new core.List<api.Site>(); + o.add(buildSite()); + o.add(buildSite()); + return o; +} + +checkUnnamed4221(core.List<api.Site> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSite(o[0]); + checkSite(o[1]); +} + +buildUnnamed4222() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4222(core.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 buildCounterBulkEditSitesRequest = 0; +buildBulkEditSitesRequest() { + var o = new api.BulkEditSitesRequest(); + buildCounterBulkEditSitesRequest++; + if (buildCounterBulkEditSitesRequest < 3) { + o.advertiserId = "foo"; + o.createdSites = buildUnnamed4221(); + o.deletedSites = buildUnnamed4222(); + o.partnerId = "foo"; + } + buildCounterBulkEditSitesRequest--; + return o; +} + +checkBulkEditSitesRequest(api.BulkEditSitesRequest o) { + buildCounterBulkEditSitesRequest++; + if (buildCounterBulkEditSitesRequest < 3) { + unittest.expect(o.advertiserId, unittest.equals('foo')); + checkUnnamed4221(o.createdSites); + checkUnnamed4222(o.deletedSites); + unittest.expect(o.partnerId, unittest.equals('foo')); + } + buildCounterBulkEditSitesRequest--; +} + +buildUnnamed4223() { + var o = new core.List<api.Site>(); + o.add(buildSite()); + o.add(buildSite()); + return o; +} + +checkUnnamed4223(core.List<api.Site> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSite(o[0]); + checkSite(o[1]); +} + +core.int buildCounterBulkEditSitesResponse = 0; +buildBulkEditSitesResponse() { + var o = new api.BulkEditSitesResponse(); + buildCounterBulkEditSitesResponse++; + if (buildCounterBulkEditSitesResponse < 3) { + o.sites = buildUnnamed4223(); + } + buildCounterBulkEditSitesResponse--; + return o; +} + +checkBulkEditSitesResponse(api.BulkEditSitesResponse o) { + buildCounterBulkEditSitesResponse++; + if (buildCounterBulkEditSitesResponse < 3) { + checkUnnamed4223(o.sites); + } + buildCounterBulkEditSitesResponse--; +} + +buildUnnamed4224() { + var o = new core.List<api.AssignedTargetingOption>(); + o.add(buildAssignedTargetingOption()); + o.add(buildAssignedTargetingOption()); + return o; +} + +checkUnnamed4224(core.List<api.AssignedTargetingOption> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedTargetingOption(o[0]); + checkAssignedTargetingOption(o[1]); +} + +core.int buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse = 0; +buildBulkListAdvertiserAssignedTargetingOptionsResponse() { + var o = new api.BulkListAdvertiserAssignedTargetingOptionsResponse(); + buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse < 3) { + o.assignedTargetingOptions = buildUnnamed4224(); + o.nextPageToken = "foo"; + } + buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse--; + return o; +} + +checkBulkListAdvertiserAssignedTargetingOptionsResponse( + api.BulkListAdvertiserAssignedTargetingOptionsResponse o) { + buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse < 3) { + checkUnnamed4224(o.assignedTargetingOptions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterBulkListAdvertiserAssignedTargetingOptionsResponse--; +} + +buildUnnamed4225() { + var o = new core.List<api.AssignedTargetingOption>(); + o.add(buildAssignedTargetingOption()); + o.add(buildAssignedTargetingOption()); + return o; +} + +checkUnnamed4225(core.List<api.AssignedTargetingOption> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignedTargetingOption(o[0]); checkAssignedTargetingOption(o[1]); @@ -816,7 +1545,7 @@ var o = new api.BulkListLineItemAssignedTargetingOptionsResponse(); buildCounterBulkListLineItemAssignedTargetingOptionsResponse++; if (buildCounterBulkListLineItemAssignedTargetingOptionsResponse < 3) { - o.assignedTargetingOptions = buildUnnamed4003(); + o.assignedTargetingOptions = buildUnnamed4225(); o.nextPageToken = "foo"; } buildCounterBulkListLineItemAssignedTargetingOptionsResponse--; @@ -827,7 +1556,7 @@ api.BulkListLineItemAssignedTargetingOptionsResponse o) { buildCounterBulkListLineItemAssignedTargetingOptionsResponse++; if (buildCounterBulkListLineItemAssignedTargetingOptionsResponse < 3) { - checkUnnamed4003(o.assignedTargetingOptions); + checkUnnamed4225(o.assignedTargetingOptions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBulkListLineItemAssignedTargetingOptionsResponse--; @@ -1048,14 +1777,14 @@ buildCounterChannelAssignedTargetingOptionDetails--; } -buildUnnamed4004() { +buildUnnamed4226() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4004(core.List<core.String> o) { +checkUnnamed4226(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1069,7 +1798,7 @@ o.cmAccountId = "foo"; o.cmFloodlightConfigId = "foo"; o.cmFloodlightLinkingAuthorized = true; - o.cmSyncableSiteIds = buildUnnamed4004(); + o.cmSyncableSiteIds = buildUnnamed4226(); o.dv360ToCmCostReportingEnabled = true; o.dv360ToCmDataSharingEnabled = true; } @@ -1083,7 +1812,7 @@ unittest.expect(o.cmAccountId, unittest.equals('foo')); unittest.expect(o.cmFloodlightConfigId, unittest.equals('foo')); unittest.expect(o.cmFloodlightLinkingAuthorized, unittest.isTrue); - checkUnnamed4004(o.cmSyncableSiteIds); + checkUnnamed4226(o.cmSyncableSiteIds); unittest.expect(o.dv360ToCmCostReportingEnabled, unittest.isTrue); unittest.expect(o.dv360ToCmDataSharingEnabled, unittest.isTrue); } @@ -1136,14 +1865,14 @@ buildCounterCombinedAudience--; } -buildUnnamed4005() { +buildUnnamed4227() { var o = new core.List<api.CombinedAudienceTargetingSetting>(); o.add(buildCombinedAudienceTargetingSetting()); o.add(buildCombinedAudienceTargetingSetting()); return o; } -checkUnnamed4005(core.List<api.CombinedAudienceTargetingSetting> o) { +checkUnnamed4227(core.List<api.CombinedAudienceTargetingSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkCombinedAudienceTargetingSetting(o[0]); checkCombinedAudienceTargetingSetting(o[1]); @@ -1154,7 +1883,7 @@ var o = new api.CombinedAudienceGroup(); buildCounterCombinedAudienceGroup++; if (buildCounterCombinedAudienceGroup < 3) { - o.settings = buildUnnamed4005(); + o.settings = buildUnnamed4227(); } buildCounterCombinedAudienceGroup--; return o; @@ -1163,7 +1892,7 @@ checkCombinedAudienceGroup(api.CombinedAudienceGroup o) { buildCounterCombinedAudienceGroup++; if (buildCounterCombinedAudienceGroup < 3) { - checkUnnamed4005(o.settings); + checkUnnamed4227(o.settings); } buildCounterCombinedAudienceGroup--; } @@ -1271,14 +2000,14 @@ buildCounterContentOutstreamPositionTargetingOptionDetails--; } -buildUnnamed4006() { +buildUnnamed4228() { var o = new core.List<api.TrackingFloodlightActivityConfig>(); o.add(buildTrackingFloodlightActivityConfig()); o.add(buildTrackingFloodlightActivityConfig()); return o; } -checkUnnamed4006(core.List<api.TrackingFloodlightActivityConfig> o) { +checkUnnamed4228(core.List<api.TrackingFloodlightActivityConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkTrackingFloodlightActivityConfig(o[0]); checkTrackingFloodlightActivityConfig(o[1]); @@ -1289,7 +2018,7 @@ var o = new api.ConversionCountingConfig(); buildCounterConversionCountingConfig++; if (buildCounterConversionCountingConfig < 3) { - o.floodlightActivityConfigs = buildUnnamed4006(); + o.floodlightActivityConfigs = buildUnnamed4228(); o.postViewCountPercentageMillis = "foo"; } buildCounterConversionCountingConfig--; @@ -1299,7 +2028,7 @@ checkConversionCountingConfig(api.ConversionCountingConfig o) { buildCounterConversionCountingConfig++; if (buildCounterConversionCountingConfig < 3) { - checkUnnamed4006(o.floodlightActivityConfigs); + checkUnnamed4228(o.floodlightActivityConfigs); unittest.expect(o.postViewCountPercentageMillis, unittest.equals('foo')); } buildCounterConversionCountingConfig--; @@ -1364,14 +2093,14 @@ buildCounterCreateAssetResponse--; } -buildUnnamed4007() { +buildUnnamed4229() { var o = new core.List<api.AssignedTargetingOption>(); o.add(buildAssignedTargetingOption()); o.add(buildAssignedTargetingOption()); return o; } -checkUnnamed4007(core.List<api.AssignedTargetingOption> o) { +checkUnnamed4229(core.List<api.AssignedTargetingOption> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignedTargetingOption(o[0]); checkAssignedTargetingOption(o[1]); @@ -1382,7 +2111,7 @@ var o = new api.CreateAssignedTargetingOptionsRequest(); buildCounterCreateAssignedTargetingOptionsRequest++; if (buildCounterCreateAssignedTargetingOptionsRequest < 3) { - o.assignedTargetingOptions = buildUnnamed4007(); + o.assignedTargetingOptions = buildUnnamed4229(); o.targetingType = "foo"; } buildCounterCreateAssignedTargetingOptionsRequest--; @@ -1393,7 +2122,7 @@ api.CreateAssignedTargetingOptionsRequest o) { buildCounterCreateAssignedTargetingOptionsRequest++; if (buildCounterCreateAssignedTargetingOptionsRequest < 3) { - checkUnnamed4007(o.assignedTargetingOptions); + checkUnnamed4229(o.assignedTargetingOptions); unittest.expect(o.targetingType, unittest.equals('foo')); } buildCounterCreateAssignedTargetingOptionsRequest--; @@ -1428,131 +2157,144 @@ buildCounterCreateSdfDownloadTaskRequest--; } -buildUnnamed4008() { +buildUnnamed4230() { var o = new core.List<api.Dimensions>(); o.add(buildDimensions()); o.add(buildDimensions()); return o; } -checkUnnamed4008(core.List<api.Dimensions> o) { +checkUnnamed4230(core.List<api.Dimensions> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensions(o[0]); checkDimensions(o[1]); } -buildUnnamed4009() { +buildUnnamed4231() { var o = new core.List<api.AssetAssociation>(); o.add(buildAssetAssociation()); o.add(buildAssetAssociation()); return o; } -checkUnnamed4009(core.List<api.AssetAssociation> o) { +checkUnnamed4231(core.List<api.AssetAssociation> o) { unittest.expect(o, unittest.hasLength(2)); checkAssetAssociation(o[0]); checkAssetAssociation(o[1]); } -buildUnnamed4010() { +buildUnnamed4232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4010(core.List<core.String> o) { +checkUnnamed4232(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4011() { +buildUnnamed4233() { var o = new core.List<api.CounterEvent>(); o.add(buildCounterEvent()); o.add(buildCounterEvent()); return o; } -checkUnnamed4011(core.List<api.CounterEvent> o) { +checkUnnamed4233(core.List<api.CounterEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkCounterEvent(o[0]); checkCounterEvent(o[1]); } -buildUnnamed4012() { +buildUnnamed4234() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4012(core.List<core.String> o) { +checkUnnamed4234(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4013() { +buildUnnamed4235() { var o = new core.List<api.ExitEvent>(); o.add(buildExitEvent()); o.add(buildExitEvent()); return o; } -checkUnnamed4013(core.List<api.ExitEvent> o) { +checkUnnamed4235(core.List<api.ExitEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkExitEvent(o[0]); checkExitEvent(o[1]); } -buildUnnamed4014() { - var o = new core.List<api.ThirdPartyUrl>(); - o.add(buildThirdPartyUrl()); - o.add(buildThirdPartyUrl()); - return o; -} - -checkUnnamed4014(core.List<api.ThirdPartyUrl> o) { - unittest.expect(o, unittest.hasLength(2)); - checkThirdPartyUrl(o[0]); - checkThirdPartyUrl(o[1]); -} - -buildUnnamed4015() { - var o = new core.List<api.TimerEvent>(); - o.add(buildTimerEvent()); - o.add(buildTimerEvent()); - return o; -} - -checkUnnamed4015(core.List<api.TimerEvent> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTimerEvent(o[0]); - checkTimerEvent(o[1]); -} - -buildUnnamed4016() { +buildUnnamed4236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4016(core.List<core.String> o) { +checkUnnamed4236(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4017() { +buildUnnamed4237() { + var o = new core.List<api.ThirdPartyUrl>(); + o.add(buildThirdPartyUrl()); + o.add(buildThirdPartyUrl()); + return o; +} + +checkUnnamed4237(core.List<api.ThirdPartyUrl> o) { + unittest.expect(o, unittest.hasLength(2)); + checkThirdPartyUrl(o[0]); + checkThirdPartyUrl(o[1]); +} + +buildUnnamed4238() { + var o = new core.List<api.TimerEvent>(); + o.add(buildTimerEvent()); + o.add(buildTimerEvent()); + return o; +} + +checkUnnamed4238(core.List<api.TimerEvent> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTimerEvent(o[0]); + checkTimerEvent(o[1]); +} + +buildUnnamed4239() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4239(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4240() { var o = new core.List<api.Transcode>(); o.add(buildTranscode()); o.add(buildTranscode()); return o; } -checkUnnamed4017(core.List<api.Transcode> o) { +checkUnnamed4240(core.List<api.Transcode> o) { unittest.expect(o, unittest.hasLength(2)); checkTranscode(o[0]); checkTranscode(o[1]); @@ -1563,23 +2305,23 @@ var o = new api.Creative(); buildCounterCreative++; if (buildCounterCreative < 3) { - o.additionalDimensions = buildUnnamed4008(); + o.additionalDimensions = buildUnnamed4230(); o.advertiserId = "foo"; o.appendedTag = "foo"; - o.assets = buildUnnamed4009(); + o.assets = buildUnnamed4231(); o.cmPlacementId = "foo"; o.cmTrackingAd = buildCmTrackingAd(); - o.companionCreativeIds = buildUnnamed4010(); - o.counterEvents = buildUnnamed4011(); + o.companionCreativeIds = buildUnnamed4232(); + o.counterEvents = buildUnnamed4233(); o.createTime = "foo"; - o.creativeAttributes = buildUnnamed4012(); + o.creativeAttributes = buildUnnamed4234(); o.creativeId = "foo"; o.creativeType = "foo"; o.dimensions = buildDimensions(); o.displayName = "foo"; o.dynamic = true; o.entityStatus = "foo"; - o.exitEvents = buildUnnamed4013(); + o.exitEvents = buildUnnamed4235(); o.expandOnHover = true; o.expandingDirection = "foo"; o.hostingSource = "foo"; @@ -1587,6 +2329,7 @@ o.iasCampaignMonitoring = true; o.integrationCode = "foo"; o.jsTrackerUrl = "foo"; + o.lineItemIds = buildUnnamed4236(); o.mediaDuration = "foo"; o.name = "foo"; o.notes = "foo"; @@ -1599,10 +2342,10 @@ o.skipOffset = buildAudioVideoOffset(); o.skippable = true; o.thirdPartyTag = "foo"; - o.thirdPartyUrls = buildUnnamed4014(); - o.timerEvents = buildUnnamed4015(); - o.trackerUrls = buildUnnamed4016(); - o.transcodes = buildUnnamed4017(); + o.thirdPartyUrls = buildUnnamed4237(); + o.timerEvents = buildUnnamed4238(); + o.trackerUrls = buildUnnamed4239(); + o.transcodes = buildUnnamed4240(); o.universalAdId = buildUniversalAdId(); o.updateTime = "foo"; o.vastTagUrl = "foo"; @@ -1615,23 +2358,23 @@ checkCreative(api.Creative o) { buildCounterCreative++; if (buildCounterCreative < 3) { - checkUnnamed4008(o.additionalDimensions); + checkUnnamed4230(o.additionalDimensions); unittest.expect(o.advertiserId, unittest.equals('foo')); unittest.expect(o.appendedTag, unittest.equals('foo')); - checkUnnamed4009(o.assets); + checkUnnamed4231(o.assets); unittest.expect(o.cmPlacementId, unittest.equals('foo')); checkCmTrackingAd(o.cmTrackingAd); - checkUnnamed4010(o.companionCreativeIds); - checkUnnamed4011(o.counterEvents); + checkUnnamed4232(o.companionCreativeIds); + checkUnnamed4233(o.counterEvents); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed4012(o.creativeAttributes); + checkUnnamed4234(o.creativeAttributes); unittest.expect(o.creativeId, unittest.equals('foo')); unittest.expect(o.creativeType, unittest.equals('foo')); checkDimensions(o.dimensions); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.dynamic, unittest.isTrue); unittest.expect(o.entityStatus, unittest.equals('foo')); - checkUnnamed4013(o.exitEvents); + checkUnnamed4235(o.exitEvents); unittest.expect(o.expandOnHover, unittest.isTrue); unittest.expect(o.expandingDirection, unittest.equals('foo')); unittest.expect(o.hostingSource, unittest.equals('foo')); @@ -1639,6 +2382,7 @@ unittest.expect(o.iasCampaignMonitoring, unittest.isTrue); unittest.expect(o.integrationCode, unittest.equals('foo')); unittest.expect(o.jsTrackerUrl, unittest.equals('foo')); + checkUnnamed4236(o.lineItemIds); unittest.expect(o.mediaDuration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); @@ -1651,10 +2395,10 @@ checkAudioVideoOffset(o.skipOffset); unittest.expect(o.skippable, unittest.isTrue); unittest.expect(o.thirdPartyTag, unittest.equals('foo')); - checkUnnamed4014(o.thirdPartyUrls); - checkUnnamed4015(o.timerEvents); - checkUnnamed4016(o.trackerUrls); - checkUnnamed4017(o.transcodes); + checkUnnamed4237(o.thirdPartyUrls); + checkUnnamed4238(o.timerEvents); + checkUnnamed4239(o.trackerUrls); + checkUnnamed4240(o.transcodes); checkUniversalAdId(o.universalAdId); unittest.expect(o.updateTime, unittest.equals('foo')); unittest.expect(o.vastTagUrl, unittest.equals('foo')); @@ -1686,6 +2430,37 @@ buildCounterCreativeConfig--; } +core.int buildCounterCustomBiddingAlgorithm = 0; +buildCustomBiddingAlgorithm() { + var o = new api.CustomBiddingAlgorithm(); + buildCounterCustomBiddingAlgorithm++; + if (buildCounterCustomBiddingAlgorithm < 3) { + o.advertiserId = "foo"; + o.customBiddingAlgorithmId = "foo"; + o.customBiddingAlgorithmType = "foo"; + o.displayName = "foo"; + o.entityStatus = "foo"; + o.name = "foo"; + o.partnerId = "foo"; + } + buildCounterCustomBiddingAlgorithm--; + return o; +} + +checkCustomBiddingAlgorithm(api.CustomBiddingAlgorithm o) { + buildCounterCustomBiddingAlgorithm++; + if (buildCounterCustomBiddingAlgorithm < 3) { + unittest.expect(o.advertiserId, unittest.equals('foo')); + unittest.expect(o.customBiddingAlgorithmId, unittest.equals('foo')); + unittest.expect(o.customBiddingAlgorithmType, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.entityStatus, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.partnerId, unittest.equals('foo')); + } + buildCounterCustomBiddingAlgorithm--; +} + core.int buildCounterCustomList = 0; buildCustomList() { var o = new api.CustomList(); @@ -1709,14 +2484,14 @@ buildCounterCustomList--; } -buildUnnamed4018() { +buildUnnamed4241() { var o = new core.List<api.CustomListTargetingSetting>(); o.add(buildCustomListTargetingSetting()); o.add(buildCustomListTargetingSetting()); return o; } -checkUnnamed4018(core.List<api.CustomListTargetingSetting> o) { +checkUnnamed4241(core.List<api.CustomListTargetingSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomListTargetingSetting(o[0]); checkCustomListTargetingSetting(o[1]); @@ -1727,7 +2502,7 @@ var o = new api.CustomListGroup(); buildCounterCustomListGroup++; if (buildCounterCustomListGroup < 3) { - o.settings = buildUnnamed4018(); + o.settings = buildUnnamed4241(); } buildCounterCustomListGroup--; return o; @@ -1736,7 +2511,7 @@ checkCustomListGroup(api.CustomListGroup o) { buildCounterCustomListGroup++; if (buildCounterCustomListGroup < 3) { - checkUnnamed4018(o.settings); + checkUnnamed4241(o.settings); } buildCounterCustomListGroup--; } @@ -1830,14 +2605,14 @@ buildCounterDayAndTimeAssignedTargetingOptionDetails--; } -buildUnnamed4019() { +buildUnnamed4242() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4019(core.List<core.String> o) { +checkUnnamed4242(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1848,7 +2623,7 @@ var o = new api.DeleteAssignedTargetingOptionsRequest(); buildCounterDeleteAssignedTargetingOptionsRequest++; if (buildCounterDeleteAssignedTargetingOptionsRequest < 3) { - o.assignedTargetingOptionIds = buildUnnamed4019(); + o.assignedTargetingOptionIds = buildUnnamed4242(); o.targetingType = "foo"; } buildCounterDeleteAssignedTargetingOptionsRequest--; @@ -1859,7 +2634,7 @@ api.DeleteAssignedTargetingOptionsRequest o) { buildCounterDeleteAssignedTargetingOptionsRequest++; if (buildCounterDeleteAssignedTargetingOptionsRequest < 3) { - checkUnnamed4019(o.assignedTargetingOptionIds); + checkUnnamed4242(o.assignedTargetingOptionIds); unittest.expect(o.targetingType, unittest.equals('foo')); } buildCounterDeleteAssignedTargetingOptionsRequest--; @@ -2013,14 +2788,14 @@ buildCounterDimensions--; } -buildUnnamed4020() { +buildUnnamed4243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4020(core.List<core.String> o) { +checkUnnamed4243(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2032,7 +2807,7 @@ buildCounterDoubleVerify++; if (buildCounterDoubleVerify < 3) { o.appStarRating = buildDoubleVerifyAppStarRating(); - o.avoidedAgeRatings = buildUnnamed4020(); + o.avoidedAgeRatings = buildUnnamed4243(); o.brandSafetyCategories = buildDoubleVerifyBrandSafetyCategories(); o.displayViewability = buildDoubleVerifyDisplayViewability(); o.fraudInvalidTraffic = buildDoubleVerifyFraudInvalidTraffic(); @@ -2046,7 +2821,7 @@ buildCounterDoubleVerify++; if (buildCounterDoubleVerify < 3) { checkDoubleVerifyAppStarRating(o.appStarRating); - checkUnnamed4020(o.avoidedAgeRatings); + checkUnnamed4243(o.avoidedAgeRatings); checkDoubleVerifyBrandSafetyCategories(o.brandSafetyCategories); checkDoubleVerifyDisplayViewability(o.displayViewability); checkDoubleVerifyFraudInvalidTraffic(o.fraudInvalidTraffic); @@ -2076,27 +2851,27 @@ buildCounterDoubleVerifyAppStarRating--; } -buildUnnamed4021() { +buildUnnamed4244() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4021(core.List<core.String> o) { +checkUnnamed4244(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4022() { +buildUnnamed4245() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4022(core.List<core.String> o) { +checkUnnamed4245(core.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,8 +2883,8 @@ buildCounterDoubleVerifyBrandSafetyCategories++; if (buildCounterDoubleVerifyBrandSafetyCategories < 3) { o.avoidUnknownBrandSafetyCategory = true; - o.avoidedHighSeverityCategories = buildUnnamed4021(); - o.avoidedMediumSeverityCategories = buildUnnamed4022(); + o.avoidedHighSeverityCategories = buildUnnamed4244(); + o.avoidedMediumSeverityCategories = buildUnnamed4245(); } buildCounterDoubleVerifyBrandSafetyCategories--; return o; @@ -2120,8 +2895,8 @@ buildCounterDoubleVerifyBrandSafetyCategories++; if (buildCounterDoubleVerifyBrandSafetyCategories < 3) { unittest.expect(o.avoidUnknownBrandSafetyCategory, unittest.isTrue); - checkUnnamed4021(o.avoidedHighSeverityCategories); - checkUnnamed4022(o.avoidedMediumSeverityCategories); + checkUnnamed4244(o.avoidedHighSeverityCategories); + checkUnnamed4245(o.avoidedMediumSeverityCategories); } buildCounterDoubleVerifyBrandSafetyCategories--; } @@ -2268,6 +3043,63 @@ buildCounterExchangeAssignedTargetingOptionDetails--; } +buildUnnamed4246() { + var o = new core.List<api.ExchangeConfigEnabledExchange>(); + o.add(buildExchangeConfigEnabledExchange()); + o.add(buildExchangeConfigEnabledExchange()); + return o; +} + +checkUnnamed4246(core.List<api.ExchangeConfigEnabledExchange> o) { + unittest.expect(o, unittest.hasLength(2)); + checkExchangeConfigEnabledExchange(o[0]); + checkExchangeConfigEnabledExchange(o[1]); +} + +core.int buildCounterExchangeConfig = 0; +buildExchangeConfig() { + var o = new api.ExchangeConfig(); + buildCounterExchangeConfig++; + if (buildCounterExchangeConfig < 3) { + o.enabledExchanges = buildUnnamed4246(); + } + buildCounterExchangeConfig--; + return o; +} + +checkExchangeConfig(api.ExchangeConfig o) { + buildCounterExchangeConfig++; + if (buildCounterExchangeConfig < 3) { + checkUnnamed4246(o.enabledExchanges); + } + buildCounterExchangeConfig--; +} + +core.int buildCounterExchangeConfigEnabledExchange = 0; +buildExchangeConfigEnabledExchange() { + var o = new api.ExchangeConfigEnabledExchange(); + buildCounterExchangeConfigEnabledExchange++; + if (buildCounterExchangeConfigEnabledExchange < 3) { + o.exchange = "foo"; + o.googleAdManagerAgencyId = "foo"; + o.googleAdManagerBuyerNetworkId = "foo"; + o.seatId = "foo"; + } + buildCounterExchangeConfigEnabledExchange--; + return o; +} + +checkExchangeConfigEnabledExchange(api.ExchangeConfigEnabledExchange o) { + buildCounterExchangeConfigEnabledExchange++; + if (buildCounterExchangeConfigEnabledExchange < 3) { + unittest.expect(o.exchange, unittest.equals('foo')); + unittest.expect(o.googleAdManagerAgencyId, unittest.equals('foo')); + unittest.expect(o.googleAdManagerBuyerNetworkId, unittest.equals('foo')); + unittest.expect(o.seatId, unittest.equals('foo')); + } + buildCounterExchangeConfigEnabledExchange--; +} + core.int buildCounterExchangeReviewStatus = 0; buildExchangeReviewStatus() { var o = new api.ExchangeReviewStatus(); @@ -2338,10 +3170,21 @@ var o = new api.FirstAndThirdPartyAudience(); buildCounterFirstAndThirdPartyAudience++; if (buildCounterFirstAndThirdPartyAudience < 3) { + o.activeDisplayAudienceSize = "foo"; + o.audienceSource = "foo"; + o.audienceType = "foo"; + o.description = "foo"; + o.displayAudienceSize = "foo"; + o.displayDesktopAudienceSize = "foo"; + o.displayMobileAppAudienceSize = "foo"; + o.displayMobileWebAudienceSize = "foo"; o.displayName = "foo"; o.firstAndThirdPartyAudienceId = "foo"; o.firstAndThirdPartyAudienceType = "foo"; + o.gmailAudienceSize = "foo"; + o.membershipDurationDays = "foo"; o.name = "foo"; + o.youtubeAudienceSize = "foo"; } buildCounterFirstAndThirdPartyAudience--; return o; @@ -2350,22 +3193,33 @@ checkFirstAndThirdPartyAudience(api.FirstAndThirdPartyAudience o) { buildCounterFirstAndThirdPartyAudience++; if (buildCounterFirstAndThirdPartyAudience < 3) { + unittest.expect(o.activeDisplayAudienceSize, unittest.equals('foo')); + unittest.expect(o.audienceSource, unittest.equals('foo')); + unittest.expect(o.audienceType, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.displayAudienceSize, unittest.equals('foo')); + unittest.expect(o.displayDesktopAudienceSize, unittest.equals('foo')); + unittest.expect(o.displayMobileAppAudienceSize, unittest.equals('foo')); + unittest.expect(o.displayMobileWebAudienceSize, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.firstAndThirdPartyAudienceId, unittest.equals('foo')); unittest.expect(o.firstAndThirdPartyAudienceType, unittest.equals('foo')); + unittest.expect(o.gmailAudienceSize, unittest.equals('foo')); + unittest.expect(o.membershipDurationDays, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.youtubeAudienceSize, unittest.equals('foo')); } buildCounterFirstAndThirdPartyAudience--; } -buildUnnamed4023() { +buildUnnamed4247() { var o = new core.List<api.FirstAndThirdPartyAudienceTargetingSetting>(); o.add(buildFirstAndThirdPartyAudienceTargetingSetting()); o.add(buildFirstAndThirdPartyAudienceTargetingSetting()); return o; } -checkUnnamed4023(core.List<api.FirstAndThirdPartyAudienceTargetingSetting> o) { +checkUnnamed4247(core.List<api.FirstAndThirdPartyAudienceTargetingSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkFirstAndThirdPartyAudienceTargetingSetting(o[0]); checkFirstAndThirdPartyAudienceTargetingSetting(o[1]); @@ -2376,7 +3230,7 @@ var o = new api.FirstAndThirdPartyAudienceGroup(); buildCounterFirstAndThirdPartyAudienceGroup++; if (buildCounterFirstAndThirdPartyAudienceGroup < 3) { - o.settings = buildUnnamed4023(); + o.settings = buildUnnamed4247(); } buildCounterFirstAndThirdPartyAudienceGroup--; return o; @@ -2385,7 +3239,7 @@ checkFirstAndThirdPartyAudienceGroup(api.FirstAndThirdPartyAudienceGroup o) { buildCounterFirstAndThirdPartyAudienceGroup++; if (buildCounterFirstAndThirdPartyAudienceGroup < 3) { - checkUnnamed4023(o.settings); + checkUnnamed4247(o.settings); } buildCounterFirstAndThirdPartyAudienceGroup--; } @@ -2431,7 +3285,7 @@ buildCounterFixedBidStrategy--; } -buildUnnamed4024() { +buildUnnamed4248() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2446,7 +3300,7 @@ return o; } -checkUnnamed4024(core.Map<core.String, core.Object> o) { +checkUnnamed4248(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)); @@ -2466,7 +3320,7 @@ buildCounterFloodlightGroup++; if (buildCounterFloodlightGroup < 3) { o.activeViewConfig = buildActiveViewVideoViewabilityMetricConfig(); - o.customVariables = buildUnnamed4024(); + o.customVariables = buildUnnamed4248(); o.displayName = "foo"; o.floodlightGroupId = "foo"; o.lookbackWindow = buildLookbackWindow(); @@ -2481,7 +3335,7 @@ buildCounterFloodlightGroup++; if (buildCounterFloodlightGroup < 3) { checkActiveViewVideoViewabilityMetricConfig(o.activeViewConfig); - checkUnnamed4024(o.customVariables); + checkUnnamed4248(o.customVariables); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.floodlightGroupId, unittest.equals('foo')); checkLookbackWindow(o.lookbackWindow); @@ -2629,14 +3483,14 @@ buildCounterGoogleAudience--; } -buildUnnamed4025() { +buildUnnamed4249() { var o = new core.List<api.GoogleAudienceTargetingSetting>(); o.add(buildGoogleAudienceTargetingSetting()); o.add(buildGoogleAudienceTargetingSetting()); return o; } -checkUnnamed4025(core.List<api.GoogleAudienceTargetingSetting> o) { +checkUnnamed4249(core.List<api.GoogleAudienceTargetingSetting> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAudienceTargetingSetting(o[0]); checkGoogleAudienceTargetingSetting(o[1]); @@ -2647,7 +3501,7 @@ var o = new api.GoogleAudienceGroup(); buildCounterGoogleAudienceGroup++; if (buildCounterGoogleAudienceGroup < 3) { - o.settings = buildUnnamed4025(); + o.settings = buildUnnamed4249(); } buildCounterGoogleAudienceGroup--; return o; @@ -2656,7 +3510,7 @@ checkGoogleAudienceGroup(api.GoogleAudienceGroup o) { buildCounterGoogleAudienceGroup++; if (buildCounterGoogleAudienceGroup < 3) { - checkUnnamed4025(o.settings); + checkUnnamed4249(o.settings); } buildCounterGoogleAudienceGroup--; } @@ -2741,79 +3595,79 @@ buildCounterHouseholdIncomeTargetingOptionDetails--; } -buildUnnamed4026() { +buildUnnamed4250() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4026(core.List<core.String> o) { +checkUnnamed4250(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4027() { +buildUnnamed4251() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4027(core.List<core.String> o) { +checkUnnamed4251(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4028() { +buildUnnamed4252() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4028(core.List<core.String> o) { +checkUnnamed4252(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4029() { +buildUnnamed4253() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4029(core.List<core.String> o) { +checkUnnamed4253(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4030() { +buildUnnamed4254() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4030(core.List<core.String> o) { +checkUnnamed4254(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4031() { +buildUnnamed4255() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4031(core.List<core.String> o) { +checkUnnamed4255(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2824,12 +3678,12 @@ var o = new api.IdFilter(); buildCounterIdFilter++; if (buildCounterIdFilter < 3) { - o.adGroupAdIds = buildUnnamed4026(); - o.adGroupIds = buildUnnamed4027(); - o.campaignIds = buildUnnamed4028(); - o.insertionOrderIds = buildUnnamed4029(); - o.lineItemIds = buildUnnamed4030(); - o.mediaProductIds = buildUnnamed4031(); + o.adGroupAdIds = buildUnnamed4250(); + o.adGroupIds = buildUnnamed4251(); + o.campaignIds = buildUnnamed4252(); + o.insertionOrderIds = buildUnnamed4253(); + o.lineItemIds = buildUnnamed4254(); + o.mediaProductIds = buildUnnamed4255(); } buildCounterIdFilter--; return o; @@ -2838,24 +3692,24 @@ checkIdFilter(api.IdFilter o) { buildCounterIdFilter++; if (buildCounterIdFilter < 3) { - checkUnnamed4026(o.adGroupAdIds); - checkUnnamed4027(o.adGroupIds); - checkUnnamed4028(o.campaignIds); - checkUnnamed4029(o.insertionOrderIds); - checkUnnamed4030(o.lineItemIds); - checkUnnamed4031(o.mediaProductIds); + checkUnnamed4250(o.adGroupAdIds); + checkUnnamed4251(o.adGroupIds); + checkUnnamed4252(o.campaignIds); + checkUnnamed4253(o.insertionOrderIds); + checkUnnamed4254(o.lineItemIds); + checkUnnamed4255(o.mediaProductIds); } buildCounterIdFilter--; } -buildUnnamed4032() { +buildUnnamed4256() { var o = new core.List<api.PartnerCost>(); o.add(buildPartnerCost()); o.add(buildPartnerCost()); return o; } -checkUnnamed4032(core.List<api.PartnerCost> o) { +checkUnnamed4256(core.List<api.PartnerCost> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerCost(o[0]); checkPartnerCost(o[1]); @@ -2877,7 +3731,7 @@ o.integrationDetails = buildIntegrationDetails(); o.name = "foo"; o.pacing = buildPacing(); - o.partnerCosts = buildUnnamed4032(); + o.partnerCosts = buildUnnamed4256(); o.performanceGoal = buildPerformanceGoal(); o.updateTime = "foo"; } @@ -2899,21 +3753,21 @@ checkIntegrationDetails(o.integrationDetails); unittest.expect(o.name, unittest.equals('foo')); checkPacing(o.pacing); - checkUnnamed4032(o.partnerCosts); + checkUnnamed4256(o.partnerCosts); checkPerformanceGoal(o.performanceGoal); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterInsertionOrder--; } -buildUnnamed4033() { +buildUnnamed4257() { var o = new core.List<api.InsertionOrderBudgetSegment>(); o.add(buildInsertionOrderBudgetSegment()); o.add(buildInsertionOrderBudgetSegment()); return o; } -checkUnnamed4033(core.List<api.InsertionOrderBudgetSegment> o) { +checkUnnamed4257(core.List<api.InsertionOrderBudgetSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertionOrderBudgetSegment(o[0]); checkInsertionOrderBudgetSegment(o[1]); @@ -2925,7 +3779,7 @@ buildCounterInsertionOrderBudget++; if (buildCounterInsertionOrderBudget < 3) { o.automationType = "foo"; - o.budgetSegments = buildUnnamed4033(); + o.budgetSegments = buildUnnamed4257(); o.budgetUnit = "foo"; } buildCounterInsertionOrderBudget--; @@ -2936,7 +3790,7 @@ buildCounterInsertionOrderBudget++; if (buildCounterInsertionOrderBudget < 3) { unittest.expect(o.automationType, unittest.equals('foo')); - checkUnnamed4033(o.budgetSegments); + checkUnnamed4257(o.budgetSegments); unittest.expect(o.budgetUnit, unittest.equals('foo')); } buildCounterInsertionOrderBudget--; @@ -3031,14 +3885,14 @@ buildCounterIntegrationDetails--; } -buildUnnamed4034() { +buildUnnamed4258() { var o = new core.List<api.CreativeConfig>(); o.add(buildCreativeConfig()); o.add(buildCreativeConfig()); return o; } -checkUnnamed4034(core.List<api.CreativeConfig> o) { +checkUnnamed4258(core.List<api.CreativeConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkCreativeConfig(o[0]); checkCreativeConfig(o[1]); @@ -3050,7 +3904,7 @@ buildCounterInventorySource++; if (buildCounterInventorySource < 3) { o.commitment = "foo"; - o.creativeConfigs = buildUnnamed4034(); + o.creativeConfigs = buildUnnamed4258(); o.dealId = "foo"; o.deliveryMethod = "foo"; o.displayName = "foo"; @@ -3072,7 +3926,7 @@ buildCounterInventorySource++; if (buildCounterInventorySource < 3) { unittest.expect(o.commitment, unittest.equals('foo')); - checkUnnamed4034(o.creativeConfigs); + checkUnnamed4258(o.creativeConfigs); unittest.expect(o.dealId, unittest.equals('foo')); unittest.expect(o.deliveryMethod, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); @@ -3129,14 +3983,14 @@ buildCounterInventorySourceDisplayCreativeConfig--; } -buildUnnamed4035() { +buildUnnamed4259() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4035(core.List<core.String> o) { +checkUnnamed4259(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3147,7 +4001,7 @@ var o = new api.InventorySourceFilter(); buildCounterInventorySourceFilter++; if (buildCounterInventorySourceFilter < 3) { - o.inventorySourceIds = buildUnnamed4035(); + o.inventorySourceIds = buildUnnamed4259(); } buildCounterInventorySourceFilter--; return o; @@ -3156,7 +4010,7 @@ checkInventorySourceFilter(api.InventorySourceFilter o) { buildCounterInventorySourceFilter++; if (buildCounterInventorySourceFilter < 3) { - checkUnnamed4035(o.inventorySourceIds); + checkUnnamed4259(o.inventorySourceIds); } buildCounterInventorySourceFilter--; } @@ -3316,45 +4170,58 @@ buildCounterLanguageTargetingOptionDetails--; } -buildUnnamed4036() { +buildUnnamed4260() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4036(core.List<core.String> o) { +checkUnnamed4260(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4037() { +buildUnnamed4261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4037(core.List<core.String> o) { +checkUnnamed4261(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4038() { +buildUnnamed4262() { var o = new core.List<api.PartnerCost>(); o.add(buildPartnerCost()); o.add(buildPartnerCost()); return o; } -checkUnnamed4038(core.List<api.PartnerCost> o) { +checkUnnamed4262(core.List<api.PartnerCost> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerCost(o[0]); checkPartnerCost(o[1]); } +buildUnnamed4263() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4263(core.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 buildCounterLineItem = 0; buildLineItem() { var o = new api.LineItem(); @@ -3365,21 +4232,22 @@ o.budget = buildLineItemBudget(); o.campaignId = "foo"; o.conversionCounting = buildConversionCountingConfig(); - o.creativeIds = buildUnnamed4036(); + o.creativeIds = buildUnnamed4260(); o.displayName = "foo"; o.entityStatus = "foo"; o.flight = buildLineItemFlight(); o.frequencyCap = buildFrequencyCap(); o.insertionOrderId = "foo"; o.integrationDetails = buildIntegrationDetails(); - o.inventorySourceIds = buildUnnamed4037(); + o.inventorySourceIds = buildUnnamed4261(); o.lineItemId = "foo"; o.lineItemType = "foo"; o.name = "foo"; o.pacing = buildPacing(); - o.partnerCosts = buildUnnamed4038(); + o.partnerCosts = buildUnnamed4262(); o.partnerRevenueModel = buildPartnerRevenueModel(); o.updateTime = "foo"; + o.warningMessages = buildUnnamed4263(); } buildCounterLineItem--; return o; @@ -3393,21 +4261,22 @@ checkLineItemBudget(o.budget); unittest.expect(o.campaignId, unittest.equals('foo')); checkConversionCountingConfig(o.conversionCounting); - checkUnnamed4036(o.creativeIds); + checkUnnamed4260(o.creativeIds); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.entityStatus, unittest.equals('foo')); checkLineItemFlight(o.flight); checkFrequencyCap(o.frequencyCap); unittest.expect(o.insertionOrderId, unittest.equals('foo')); checkIntegrationDetails(o.integrationDetails); - checkUnnamed4037(o.inventorySourceIds); + checkUnnamed4261(o.inventorySourceIds); unittest.expect(o.lineItemId, unittest.equals('foo')); unittest.expect(o.lineItemType, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkPacing(o.pacing); - checkUnnamed4038(o.partnerCosts); + checkUnnamed4262(o.partnerCosts); checkPartnerRevenueModel(o.partnerRevenueModel); unittest.expect(o.updateTime, unittest.equals('foo')); + checkUnnamed4263(o.warningMessages); } buildCounterLineItem--; } @@ -3456,14 +4325,49 @@ buildCounterLineItemFlight--; } -buildUnnamed4039() { +buildUnnamed4264() { + var o = new core.List<api.AssignedTargetingOption>(); + o.add(buildAssignedTargetingOption()); + o.add(buildAssignedTargetingOption()); + return o; +} + +checkUnnamed4264(core.List<api.AssignedTargetingOption> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedTargetingOption(o[0]); + checkAssignedTargetingOption(o[1]); +} + +core.int buildCounterListAdvertiserAssignedTargetingOptionsResponse = 0; +buildListAdvertiserAssignedTargetingOptionsResponse() { + var o = new api.ListAdvertiserAssignedTargetingOptionsResponse(); + buildCounterListAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterListAdvertiserAssignedTargetingOptionsResponse < 3) { + o.assignedTargetingOptions = buildUnnamed4264(); + o.nextPageToken = "foo"; + } + buildCounterListAdvertiserAssignedTargetingOptionsResponse--; + return o; +} + +checkListAdvertiserAssignedTargetingOptionsResponse( + api.ListAdvertiserAssignedTargetingOptionsResponse o) { + buildCounterListAdvertiserAssignedTargetingOptionsResponse++; + if (buildCounterListAdvertiserAssignedTargetingOptionsResponse < 3) { + checkUnnamed4264(o.assignedTargetingOptions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListAdvertiserAssignedTargetingOptionsResponse--; +} + +buildUnnamed4265() { var o = new core.List<api.Advertiser>(); o.add(buildAdvertiser()); o.add(buildAdvertiser()); return o; } -checkUnnamed4039(core.List<api.Advertiser> o) { +checkUnnamed4265(core.List<api.Advertiser> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvertiser(o[0]); checkAdvertiser(o[1]); @@ -3474,7 +4378,7 @@ var o = new api.ListAdvertisersResponse(); buildCounterListAdvertisersResponse++; if (buildCounterListAdvertisersResponse < 3) { - o.advertisers = buildUnnamed4039(); + o.advertisers = buildUnnamed4265(); o.nextPageToken = "foo"; } buildCounterListAdvertisersResponse--; @@ -3484,20 +4388,89 @@ checkListAdvertisersResponse(api.ListAdvertisersResponse o) { buildCounterListAdvertisersResponse++; if (buildCounterListAdvertisersResponse < 3) { - checkUnnamed4039(o.advertisers); + checkUnnamed4265(o.advertisers); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAdvertisersResponse--; } -buildUnnamed4040() { +buildUnnamed4266() { + var o = new core.List<api.AssignedInventorySource>(); + o.add(buildAssignedInventorySource()); + o.add(buildAssignedInventorySource()); + return o; +} + +checkUnnamed4266(core.List<api.AssignedInventorySource> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedInventorySource(o[0]); + checkAssignedInventorySource(o[1]); +} + +core.int buildCounterListAssignedInventorySourcesResponse = 0; +buildListAssignedInventorySourcesResponse() { + var o = new api.ListAssignedInventorySourcesResponse(); + buildCounterListAssignedInventorySourcesResponse++; + if (buildCounterListAssignedInventorySourcesResponse < 3) { + o.assignedInventorySources = buildUnnamed4266(); + o.nextPageToken = "foo"; + } + buildCounterListAssignedInventorySourcesResponse--; + return o; +} + +checkListAssignedInventorySourcesResponse( + api.ListAssignedInventorySourcesResponse o) { + buildCounterListAssignedInventorySourcesResponse++; + if (buildCounterListAssignedInventorySourcesResponse < 3) { + checkUnnamed4266(o.assignedInventorySources); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListAssignedInventorySourcesResponse--; +} + +buildUnnamed4267() { + var o = new core.List<api.AssignedLocation>(); + o.add(buildAssignedLocation()); + o.add(buildAssignedLocation()); + return o; +} + +checkUnnamed4267(core.List<api.AssignedLocation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedLocation(o[0]); + checkAssignedLocation(o[1]); +} + +core.int buildCounterListAssignedLocationsResponse = 0; +buildListAssignedLocationsResponse() { + var o = new api.ListAssignedLocationsResponse(); + buildCounterListAssignedLocationsResponse++; + if (buildCounterListAssignedLocationsResponse < 3) { + o.assignedLocations = buildUnnamed4267(); + o.nextPageToken = "foo"; + } + buildCounterListAssignedLocationsResponse--; + return o; +} + +checkListAssignedLocationsResponse(api.ListAssignedLocationsResponse o) { + buildCounterListAssignedLocationsResponse++; + if (buildCounterListAssignedLocationsResponse < 3) { + checkUnnamed4267(o.assignedLocations); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListAssignedLocationsResponse--; +} + +buildUnnamed4268() { var o = new core.List<api.Campaign>(); o.add(buildCampaign()); o.add(buildCampaign()); return o; } -checkUnnamed4040(core.List<api.Campaign> o) { +checkUnnamed4268(core.List<api.Campaign> o) { unittest.expect(o, unittest.hasLength(2)); checkCampaign(o[0]); checkCampaign(o[1]); @@ -3508,7 +4481,7 @@ var o = new api.ListCampaignsResponse(); buildCounterListCampaignsResponse++; if (buildCounterListCampaignsResponse < 3) { - o.campaigns = buildUnnamed4040(); + o.campaigns = buildUnnamed4268(); o.nextPageToken = "foo"; } buildCounterListCampaignsResponse--; @@ -3518,20 +4491,20 @@ checkListCampaignsResponse(api.ListCampaignsResponse o) { buildCounterListCampaignsResponse++; if (buildCounterListCampaignsResponse < 3) { - checkUnnamed4040(o.campaigns); + checkUnnamed4268(o.campaigns); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCampaignsResponse--; } -buildUnnamed4041() { +buildUnnamed4269() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed4041(core.List<api.Channel> o) { +checkUnnamed4269(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -3542,7 +4515,7 @@ var o = new api.ListChannelsResponse(); buildCounterListChannelsResponse++; if (buildCounterListChannelsResponse < 3) { - o.channels = buildUnnamed4041(); + o.channels = buildUnnamed4269(); o.nextPageToken = "foo"; } buildCounterListChannelsResponse--; @@ -3552,20 +4525,20 @@ checkListChannelsResponse(api.ListChannelsResponse o) { buildCounterListChannelsResponse++; if (buildCounterListChannelsResponse < 3) { - checkUnnamed4041(o.channels); + checkUnnamed4269(o.channels); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListChannelsResponse--; } -buildUnnamed4042() { +buildUnnamed4270() { var o = new core.List<api.CombinedAudience>(); o.add(buildCombinedAudience()); o.add(buildCombinedAudience()); return o; } -checkUnnamed4042(core.List<api.CombinedAudience> o) { +checkUnnamed4270(core.List<api.CombinedAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkCombinedAudience(o[0]); checkCombinedAudience(o[1]); @@ -3576,7 +4549,7 @@ var o = new api.ListCombinedAudiencesResponse(); buildCounterListCombinedAudiencesResponse++; if (buildCounterListCombinedAudiencesResponse < 3) { - o.combinedAudiences = buildUnnamed4042(); + o.combinedAudiences = buildUnnamed4270(); o.nextPageToken = "foo"; } buildCounterListCombinedAudiencesResponse--; @@ -3586,20 +4559,20 @@ checkListCombinedAudiencesResponse(api.ListCombinedAudiencesResponse o) { buildCounterListCombinedAudiencesResponse++; if (buildCounterListCombinedAudiencesResponse < 3) { - checkUnnamed4042(o.combinedAudiences); + checkUnnamed4270(o.combinedAudiences); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCombinedAudiencesResponse--; } -buildUnnamed4043() { +buildUnnamed4271() { var o = new core.List<api.Creative>(); o.add(buildCreative()); o.add(buildCreative()); return o; } -checkUnnamed4043(core.List<api.Creative> o) { +checkUnnamed4271(core.List<api.Creative> o) { unittest.expect(o, unittest.hasLength(2)); checkCreative(o[0]); checkCreative(o[1]); @@ -3610,7 +4583,7 @@ var o = new api.ListCreativesResponse(); buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - o.creatives = buildUnnamed4043(); + o.creatives = buildUnnamed4271(); o.nextPageToken = "foo"; } buildCounterListCreativesResponse--; @@ -3620,20 +4593,55 @@ checkListCreativesResponse(api.ListCreativesResponse o) { buildCounterListCreativesResponse++; if (buildCounterListCreativesResponse < 3) { - checkUnnamed4043(o.creatives); + checkUnnamed4271(o.creatives); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCreativesResponse--; } -buildUnnamed4044() { +buildUnnamed4272() { + var o = new core.List<api.CustomBiddingAlgorithm>(); + o.add(buildCustomBiddingAlgorithm()); + o.add(buildCustomBiddingAlgorithm()); + return o; +} + +checkUnnamed4272(core.List<api.CustomBiddingAlgorithm> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomBiddingAlgorithm(o[0]); + checkCustomBiddingAlgorithm(o[1]); +} + +core.int buildCounterListCustomBiddingAlgorithmsResponse = 0; +buildListCustomBiddingAlgorithmsResponse() { + var o = new api.ListCustomBiddingAlgorithmsResponse(); + buildCounterListCustomBiddingAlgorithmsResponse++; + if (buildCounterListCustomBiddingAlgorithmsResponse < 3) { + o.customBiddingAlgorithms = buildUnnamed4272(); + o.nextPageToken = "foo"; + } + buildCounterListCustomBiddingAlgorithmsResponse--; + return o; +} + +checkListCustomBiddingAlgorithmsResponse( + api.ListCustomBiddingAlgorithmsResponse o) { + buildCounterListCustomBiddingAlgorithmsResponse++; + if (buildCounterListCustomBiddingAlgorithmsResponse < 3) { + checkUnnamed4272(o.customBiddingAlgorithms); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListCustomBiddingAlgorithmsResponse--; +} + +buildUnnamed4273() { var o = new core.List<api.CustomList>(); o.add(buildCustomList()); o.add(buildCustomList()); return o; } -checkUnnamed4044(core.List<api.CustomList> o) { +checkUnnamed4273(core.List<api.CustomList> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomList(o[0]); checkCustomList(o[1]); @@ -3644,7 +4652,7 @@ var o = new api.ListCustomListsResponse(); buildCounterListCustomListsResponse++; if (buildCounterListCustomListsResponse < 3) { - o.customLists = buildUnnamed4044(); + o.customLists = buildUnnamed4273(); o.nextPageToken = "foo"; } buildCounterListCustomListsResponse--; @@ -3654,20 +4662,20 @@ checkListCustomListsResponse(api.ListCustomListsResponse o) { buildCounterListCustomListsResponse++; if (buildCounterListCustomListsResponse < 3) { - checkUnnamed4044(o.customLists); + checkUnnamed4273(o.customLists); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCustomListsResponse--; } -buildUnnamed4045() { +buildUnnamed4274() { var o = new core.List<api.FirstAndThirdPartyAudience>(); o.add(buildFirstAndThirdPartyAudience()); o.add(buildFirstAndThirdPartyAudience()); return o; } -checkUnnamed4045(core.List<api.FirstAndThirdPartyAudience> o) { +checkUnnamed4274(core.List<api.FirstAndThirdPartyAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkFirstAndThirdPartyAudience(o[0]); checkFirstAndThirdPartyAudience(o[1]); @@ -3678,7 +4686,7 @@ var o = new api.ListFirstAndThirdPartyAudiencesResponse(); buildCounterListFirstAndThirdPartyAudiencesResponse++; if (buildCounterListFirstAndThirdPartyAudiencesResponse < 3) { - o.firstAndThirdPartyAudiences = buildUnnamed4045(); + o.firstAndThirdPartyAudiences = buildUnnamed4274(); o.nextPageToken = "foo"; } buildCounterListFirstAndThirdPartyAudiencesResponse--; @@ -3689,20 +4697,20 @@ api.ListFirstAndThirdPartyAudiencesResponse o) { buildCounterListFirstAndThirdPartyAudiencesResponse++; if (buildCounterListFirstAndThirdPartyAudiencesResponse < 3) { - checkUnnamed4045(o.firstAndThirdPartyAudiences); + checkUnnamed4274(o.firstAndThirdPartyAudiences); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFirstAndThirdPartyAudiencesResponse--; } -buildUnnamed4046() { +buildUnnamed4275() { var o = new core.List<api.GoogleAudience>(); o.add(buildGoogleAudience()); o.add(buildGoogleAudience()); return o; } -checkUnnamed4046(core.List<api.GoogleAudience> o) { +checkUnnamed4275(core.List<api.GoogleAudience> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAudience(o[0]); checkGoogleAudience(o[1]); @@ -3713,7 +4721,7 @@ var o = new api.ListGoogleAudiencesResponse(); buildCounterListGoogleAudiencesResponse++; if (buildCounterListGoogleAudiencesResponse < 3) { - o.googleAudiences = buildUnnamed4046(); + o.googleAudiences = buildUnnamed4275(); o.nextPageToken = "foo"; } buildCounterListGoogleAudiencesResponse--; @@ -3723,20 +4731,20 @@ checkListGoogleAudiencesResponse(api.ListGoogleAudiencesResponse o) { buildCounterListGoogleAudiencesResponse++; if (buildCounterListGoogleAudiencesResponse < 3) { - checkUnnamed4046(o.googleAudiences); + checkUnnamed4275(o.googleAudiences); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGoogleAudiencesResponse--; } -buildUnnamed4047() { +buildUnnamed4276() { var o = new core.List<api.InsertionOrder>(); o.add(buildInsertionOrder()); o.add(buildInsertionOrder()); return o; } -checkUnnamed4047(core.List<api.InsertionOrder> o) { +checkUnnamed4276(core.List<api.InsertionOrder> o) { unittest.expect(o, unittest.hasLength(2)); checkInsertionOrder(o[0]); checkInsertionOrder(o[1]); @@ -3747,7 +4755,7 @@ var o = new api.ListInsertionOrdersResponse(); buildCounterListInsertionOrdersResponse++; if (buildCounterListInsertionOrdersResponse < 3) { - o.insertionOrders = buildUnnamed4047(); + o.insertionOrders = buildUnnamed4276(); o.nextPageToken = "foo"; } buildCounterListInsertionOrdersResponse--; @@ -3757,20 +4765,20 @@ checkListInsertionOrdersResponse(api.ListInsertionOrdersResponse o) { buildCounterListInsertionOrdersResponse++; if (buildCounterListInsertionOrdersResponse < 3) { - checkUnnamed4047(o.insertionOrders); + checkUnnamed4276(o.insertionOrders); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInsertionOrdersResponse--; } -buildUnnamed4048() { +buildUnnamed4277() { var o = new core.List<api.InventorySourceGroup>(); o.add(buildInventorySourceGroup()); o.add(buildInventorySourceGroup()); return o; } -checkUnnamed4048(core.List<api.InventorySourceGroup> o) { +checkUnnamed4277(core.List<api.InventorySourceGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkInventorySourceGroup(o[0]); checkInventorySourceGroup(o[1]); @@ -3781,7 +4789,7 @@ var o = new api.ListInventorySourceGroupsResponse(); buildCounterListInventorySourceGroupsResponse++; if (buildCounterListInventorySourceGroupsResponse < 3) { - o.inventorySourceGroups = buildUnnamed4048(); + o.inventorySourceGroups = buildUnnamed4277(); o.nextPageToken = "foo"; } buildCounterListInventorySourceGroupsResponse--; @@ -3792,20 +4800,20 @@ api.ListInventorySourceGroupsResponse o) { buildCounterListInventorySourceGroupsResponse++; if (buildCounterListInventorySourceGroupsResponse < 3) { - checkUnnamed4048(o.inventorySourceGroups); + checkUnnamed4277(o.inventorySourceGroups); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInventorySourceGroupsResponse--; } -buildUnnamed4049() { +buildUnnamed4278() { var o = new core.List<api.InventorySource>(); o.add(buildInventorySource()); o.add(buildInventorySource()); return o; } -checkUnnamed4049(core.List<api.InventorySource> o) { +checkUnnamed4278(core.List<api.InventorySource> o) { unittest.expect(o, unittest.hasLength(2)); checkInventorySource(o[0]); checkInventorySource(o[1]); @@ -3816,7 +4824,7 @@ var o = new api.ListInventorySourcesResponse(); buildCounterListInventorySourcesResponse++; if (buildCounterListInventorySourcesResponse < 3) { - o.inventorySources = buildUnnamed4049(); + o.inventorySources = buildUnnamed4278(); o.nextPageToken = "foo"; } buildCounterListInventorySourcesResponse--; @@ -3826,20 +4834,20 @@ checkListInventorySourcesResponse(api.ListInventorySourcesResponse o) { buildCounterListInventorySourcesResponse++; if (buildCounterListInventorySourcesResponse < 3) { - checkUnnamed4049(o.inventorySources); + checkUnnamed4278(o.inventorySources); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInventorySourcesResponse--; } -buildUnnamed4050() { +buildUnnamed4279() { var o = new core.List<api.AssignedTargetingOption>(); o.add(buildAssignedTargetingOption()); o.add(buildAssignedTargetingOption()); return o; } -checkUnnamed4050(core.List<api.AssignedTargetingOption> o) { +checkUnnamed4279(core.List<api.AssignedTargetingOption> o) { unittest.expect(o, unittest.hasLength(2)); checkAssignedTargetingOption(o[0]); checkAssignedTargetingOption(o[1]); @@ -3850,7 +4858,7 @@ var o = new api.ListLineItemAssignedTargetingOptionsResponse(); buildCounterListLineItemAssignedTargetingOptionsResponse++; if (buildCounterListLineItemAssignedTargetingOptionsResponse < 3) { - o.assignedTargetingOptions = buildUnnamed4050(); + o.assignedTargetingOptions = buildUnnamed4279(); o.nextPageToken = "foo"; } buildCounterListLineItemAssignedTargetingOptionsResponse--; @@ -3861,20 +4869,20 @@ api.ListLineItemAssignedTargetingOptionsResponse o) { buildCounterListLineItemAssignedTargetingOptionsResponse++; if (buildCounterListLineItemAssignedTargetingOptionsResponse < 3) { - checkUnnamed4050(o.assignedTargetingOptions); + checkUnnamed4279(o.assignedTargetingOptions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLineItemAssignedTargetingOptionsResponse--; } -buildUnnamed4051() { +buildUnnamed4280() { var o = new core.List<api.LineItem>(); o.add(buildLineItem()); o.add(buildLineItem()); return o; } -checkUnnamed4051(core.List<api.LineItem> o) { +checkUnnamed4280(core.List<api.LineItem> o) { unittest.expect(o, unittest.hasLength(2)); checkLineItem(o[0]); checkLineItem(o[1]); @@ -3885,7 +4893,7 @@ var o = new api.ListLineItemsResponse(); buildCounterListLineItemsResponse++; if (buildCounterListLineItemsResponse < 3) { - o.lineItems = buildUnnamed4051(); + o.lineItems = buildUnnamed4280(); o.nextPageToken = "foo"; } buildCounterListLineItemsResponse--; @@ -3895,20 +4903,20 @@ checkListLineItemsResponse(api.ListLineItemsResponse o) { buildCounterListLineItemsResponse++; if (buildCounterListLineItemsResponse < 3) { - checkUnnamed4051(o.lineItems); + checkUnnamed4280(o.lineItems); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLineItemsResponse--; } -buildUnnamed4052() { +buildUnnamed4281() { var o = new core.List<api.LocationList>(); o.add(buildLocationList()); o.add(buildLocationList()); return o; } -checkUnnamed4052(core.List<api.LocationList> o) { +checkUnnamed4281(core.List<api.LocationList> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationList(o[0]); checkLocationList(o[1]); @@ -3919,7 +4927,7 @@ var o = new api.ListLocationListsResponse(); buildCounterListLocationListsResponse++; if (buildCounterListLocationListsResponse < 3) { - o.locationLists = buildUnnamed4052(); + o.locationLists = buildUnnamed4281(); o.nextPageToken = "foo"; } buildCounterListLocationListsResponse--; @@ -3929,20 +4937,20 @@ checkListLocationListsResponse(api.ListLocationListsResponse o) { buildCounterListLocationListsResponse++; if (buildCounterListLocationListsResponse < 3) { - checkUnnamed4052(o.locationLists); + checkUnnamed4281(o.locationLists); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationListsResponse--; } -buildUnnamed4053() { +buildUnnamed4282() { var o = new core.List<api.NegativeKeywordList>(); o.add(buildNegativeKeywordList()); o.add(buildNegativeKeywordList()); return o; } -checkUnnamed4053(core.List<api.NegativeKeywordList> o) { +checkUnnamed4282(core.List<api.NegativeKeywordList> o) { unittest.expect(o, unittest.hasLength(2)); checkNegativeKeywordList(o[0]); checkNegativeKeywordList(o[1]); @@ -3953,7 +4961,7 @@ var o = new api.ListNegativeKeywordListsResponse(); buildCounterListNegativeKeywordListsResponse++; if (buildCounterListNegativeKeywordListsResponse < 3) { - o.negativeKeywordLists = buildUnnamed4053(); + o.negativeKeywordLists = buildUnnamed4282(); o.nextPageToken = "foo"; } buildCounterListNegativeKeywordListsResponse--; @@ -3963,20 +4971,157 @@ checkListNegativeKeywordListsResponse(api.ListNegativeKeywordListsResponse o) { buildCounterListNegativeKeywordListsResponse++; if (buildCounterListNegativeKeywordListsResponse < 3) { - checkUnnamed4053(o.negativeKeywordLists); + checkUnnamed4282(o.negativeKeywordLists); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListNegativeKeywordListsResponse--; } -buildUnnamed4054() { +buildUnnamed4283() { + var o = new core.List<api.NegativeKeyword>(); + o.add(buildNegativeKeyword()); + o.add(buildNegativeKeyword()); + return o; +} + +checkUnnamed4283(core.List<api.NegativeKeyword> o) { + unittest.expect(o, unittest.hasLength(2)); + checkNegativeKeyword(o[0]); + checkNegativeKeyword(o[1]); +} + +core.int buildCounterListNegativeKeywordsResponse = 0; +buildListNegativeKeywordsResponse() { + var o = new api.ListNegativeKeywordsResponse(); + buildCounterListNegativeKeywordsResponse++; + if (buildCounterListNegativeKeywordsResponse < 3) { + o.negativeKeywords = buildUnnamed4283(); + o.nextPageToken = "foo"; + } + buildCounterListNegativeKeywordsResponse--; + return o; +} + +checkListNegativeKeywordsResponse(api.ListNegativeKeywordsResponse o) { + buildCounterListNegativeKeywordsResponse++; + if (buildCounterListNegativeKeywordsResponse < 3) { + checkUnnamed4283(o.negativeKeywords); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListNegativeKeywordsResponse--; +} + +buildUnnamed4284() { + var o = new core.List<api.AssignedTargetingOption>(); + o.add(buildAssignedTargetingOption()); + o.add(buildAssignedTargetingOption()); + return o; +} + +checkUnnamed4284(core.List<api.AssignedTargetingOption> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedTargetingOption(o[0]); + checkAssignedTargetingOption(o[1]); +} + +core.int buildCounterListPartnerAssignedTargetingOptionsResponse = 0; +buildListPartnerAssignedTargetingOptionsResponse() { + var o = new api.ListPartnerAssignedTargetingOptionsResponse(); + buildCounterListPartnerAssignedTargetingOptionsResponse++; + if (buildCounterListPartnerAssignedTargetingOptionsResponse < 3) { + o.assignedTargetingOptions = buildUnnamed4284(); + o.nextPageToken = "foo"; + } + buildCounterListPartnerAssignedTargetingOptionsResponse--; + return o; +} + +checkListPartnerAssignedTargetingOptionsResponse( + api.ListPartnerAssignedTargetingOptionsResponse o) { + buildCounterListPartnerAssignedTargetingOptionsResponse++; + if (buildCounterListPartnerAssignedTargetingOptionsResponse < 3) { + checkUnnamed4284(o.assignedTargetingOptions); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListPartnerAssignedTargetingOptionsResponse--; +} + +buildUnnamed4285() { + var o = new core.List<api.Partner>(); + o.add(buildPartner()); + o.add(buildPartner()); + return o; +} + +checkUnnamed4285(core.List<api.Partner> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPartner(o[0]); + checkPartner(o[1]); +} + +core.int buildCounterListPartnersResponse = 0; +buildListPartnersResponse() { + var o = new api.ListPartnersResponse(); + buildCounterListPartnersResponse++; + if (buildCounterListPartnersResponse < 3) { + o.nextPageToken = "foo"; + o.partners = buildUnnamed4285(); + } + buildCounterListPartnersResponse--; + return o; +} + +checkListPartnersResponse(api.ListPartnersResponse o) { + buildCounterListPartnersResponse++; + if (buildCounterListPartnersResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4285(o.partners); + } + buildCounterListPartnersResponse--; +} + +buildUnnamed4286() { + var o = new core.List<api.Site>(); + o.add(buildSite()); + o.add(buildSite()); + return o; +} + +checkUnnamed4286(core.List<api.Site> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSite(o[0]); + checkSite(o[1]); +} + +core.int buildCounterListSitesResponse = 0; +buildListSitesResponse() { + var o = new api.ListSitesResponse(); + buildCounterListSitesResponse++; + if (buildCounterListSitesResponse < 3) { + o.nextPageToken = "foo"; + o.sites = buildUnnamed4286(); + } + buildCounterListSitesResponse--; + return o; +} + +checkListSitesResponse(api.ListSitesResponse o) { + buildCounterListSitesResponse++; + if (buildCounterListSitesResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4286(o.sites); + } + buildCounterListSitesResponse--; +} + +buildUnnamed4287() { var o = new core.List<api.TargetingOption>(); o.add(buildTargetingOption()); o.add(buildTargetingOption()); return o; } -checkUnnamed4054(core.List<api.TargetingOption> o) { +checkUnnamed4287(core.List<api.TargetingOption> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetingOption(o[0]); checkTargetingOption(o[1]); @@ -3988,7 +5133,7 @@ buildCounterListTargetingOptionsResponse++; if (buildCounterListTargetingOptionsResponse < 3) { o.nextPageToken = "foo"; - o.targetingOptions = buildUnnamed4054(); + o.targetingOptions = buildUnnamed4287(); } buildCounterListTargetingOptionsResponse--; return o; @@ -3998,11 +5143,45 @@ buildCounterListTargetingOptionsResponse++; if (buildCounterListTargetingOptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4054(o.targetingOptions); + checkUnnamed4287(o.targetingOptions); } buildCounterListTargetingOptionsResponse--; } +buildUnnamed4288() { + var o = new core.List<api.User>(); + o.add(buildUser()); + o.add(buildUser()); + return o; +} + +checkUnnamed4288(core.List<api.User> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUser(o[0]); + checkUser(o[1]); +} + +core.int buildCounterListUsersResponse = 0; +buildListUsersResponse() { + var o = new api.ListUsersResponse(); + buildCounterListUsersResponse++; + if (buildCounterListUsersResponse < 3) { + o.nextPageToken = "foo"; + o.users = buildUnnamed4288(); + } + buildCounterListUsersResponse--; + return o; +} + +checkListUsersResponse(api.ListUsersResponse o) { + buildCounterListUsersResponse++; + if (buildCounterListUsersResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4288(o.users); + } + buildCounterListUsersResponse--; +} + core.int buildCounterLocationList = 0; buildLocationList() { var o = new api.LocationList(); @@ -4056,6 +5235,7 @@ var o = new api.MaximizeSpendBidStrategy(); buildCounterMaximizeSpendBidStrategy++; if (buildCounterMaximizeSpendBidStrategy < 3) { + o.customBiddingAlgorithmId = "foo"; o.maxAverageCpmBidAmountMicros = "foo"; o.performanceGoalType = "foo"; } @@ -4066,12 +5246,34 @@ checkMaximizeSpendBidStrategy(api.MaximizeSpendBidStrategy o) { buildCounterMaximizeSpendBidStrategy++; if (buildCounterMaximizeSpendBidStrategy < 3) { + unittest.expect(o.customBiddingAlgorithmId, unittest.equals('foo')); unittest.expect(o.maxAverageCpmBidAmountMicros, unittest.equals('foo')); unittest.expect(o.performanceGoalType, unittest.equals('foo')); } buildCounterMaximizeSpendBidStrategy--; } +core.int buildCounterMeasurementConfig = 0; +buildMeasurementConfig() { + var o = new api.MeasurementConfig(); + buildCounterMeasurementConfig++; + if (buildCounterMeasurementConfig < 3) { + o.dv360ToCmCostReportingEnabled = true; + o.dv360ToCmDataSharingEnabled = true; + } + buildCounterMeasurementConfig--; + return o; +} + +checkMeasurementConfig(api.MeasurementConfig o) { + buildCounterMeasurementConfig++; + if (buildCounterMeasurementConfig < 3) { + unittest.expect(o.dv360ToCmCostReportingEnabled, unittest.isTrue); + unittest.expect(o.dv360ToCmDataSharingEnabled, unittest.isTrue); + } + buildCounterMeasurementConfig--; +} + core.int buildCounterMoney = 0; buildMoney() { var o = new api.Money(); @@ -4095,6 +5297,27 @@ buildCounterMoney--; } +core.int buildCounterNegativeKeyword = 0; +buildNegativeKeyword() { + var o = new api.NegativeKeyword(); + buildCounterNegativeKeyword++; + if (buildCounterNegativeKeyword < 3) { + o.keywordValue = "foo"; + o.name = "foo"; + } + buildCounterNegativeKeyword--; + return o; +} + +checkNegativeKeyword(api.NegativeKeyword o) { + buildCounterNegativeKeyword++; + if (buildCounterNegativeKeyword < 3) { + unittest.expect(o.keywordValue, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterNegativeKeyword--; +} + core.int buildCounterNegativeKeywordList = 0; buildNegativeKeywordList() { var o = new api.NegativeKeywordList(); @@ -4259,7 +5482,7 @@ buildCounterOperatingSystemTargetingOptionDetails--; } -buildUnnamed4055() { +buildUnnamed4289() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4274,7 +5497,7 @@ return o; } -checkUnnamed4055(core.Map<core.String, core.Object> o) { +checkUnnamed4289(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)); @@ -4288,7 +5511,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed4056() { +buildUnnamed4290() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4303,7 +5526,7 @@ return o; } -checkUnnamed4056(core.Map<core.String, core.Object> o) { +checkUnnamed4290(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)); @@ -4324,9 +5547,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4055(); + o.metadata = buildUnnamed4289(); o.name = "foo"; - o.response = buildUnnamed4056(); + o.response = buildUnnamed4290(); } buildCounterOperation--; return o; @@ -4337,9 +5560,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4055(o.metadata); + checkUnnamed4289(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4056(o.response); + checkUnnamed4290(o.response); } buildCounterOperation--; } @@ -4369,27 +5592,27 @@ buildCounterPacing--; } -buildUnnamed4057() { +buildUnnamed4291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4057(core.List<core.String> o) { +checkUnnamed4291(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4058() { +buildUnnamed4292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4058(core.List<core.String> o) { +checkUnnamed4292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4400,8 +5623,8 @@ var o = new api.ParentEntityFilter(); buildCounterParentEntityFilter++; if (buildCounterParentEntityFilter < 3) { - o.fileType = buildUnnamed4057(); - o.filterIds = buildUnnamed4058(); + o.fileType = buildUnnamed4291(); + o.filterIds = buildUnnamed4292(); o.filterType = "foo"; } buildCounterParentEntityFilter--; @@ -4411,8 +5634,8 @@ checkParentEntityFilter(api.ParentEntityFilter o) { buildCounterParentEntityFilter++; if (buildCounterParentEntityFilter < 3) { - checkUnnamed4057(o.fileType); - checkUnnamed4058(o.filterIds); + checkUnnamed4291(o.fileType); + checkUnnamed4292(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); } buildCounterParentEntityFilter--; @@ -4460,6 +5683,60 @@ buildCounterParentalStatusTargetingOptionDetails--; } +core.int buildCounterPartner = 0; +buildPartner() { + var o = new api.Partner(); + buildCounterPartner++; + if (buildCounterPartner < 3) { + o.adServerConfig = buildPartnerAdServerConfig(); + o.dataAccessConfig = buildPartnerDataAccessConfig(); + o.displayName = "foo"; + o.entityStatus = "foo"; + o.exchangeConfig = buildExchangeConfig(); + o.generalConfig = buildPartnerGeneralConfig(); + o.name = "foo"; + o.partnerId = "foo"; + o.updateTime = "foo"; + } + buildCounterPartner--; + return o; +} + +checkPartner(api.Partner o) { + buildCounterPartner++; + if (buildCounterPartner < 3) { + checkPartnerAdServerConfig(o.adServerConfig); + checkPartnerDataAccessConfig(o.dataAccessConfig); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.entityStatus, unittest.equals('foo')); + checkExchangeConfig(o.exchangeConfig); + checkPartnerGeneralConfig(o.generalConfig); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.partnerId, unittest.equals('foo')); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterPartner--; +} + +core.int buildCounterPartnerAdServerConfig = 0; +buildPartnerAdServerConfig() { + var o = new api.PartnerAdServerConfig(); + buildCounterPartnerAdServerConfig++; + if (buildCounterPartnerAdServerConfig < 3) { + o.measurementConfig = buildMeasurementConfig(); + } + buildCounterPartnerAdServerConfig--; + return o; +} + +checkPartnerAdServerConfig(api.PartnerAdServerConfig o) { + buildCounterPartnerAdServerConfig++; + if (buildCounterPartnerAdServerConfig < 3) { + checkMeasurementConfig(o.measurementConfig); + } + buildCounterPartnerAdServerConfig--; +} + core.int buildCounterPartnerCost = 0; buildPartnerCost() { var o = new api.PartnerCost(); @@ -4487,6 +5764,46 @@ buildCounterPartnerCost--; } +core.int buildCounterPartnerDataAccessConfig = 0; +buildPartnerDataAccessConfig() { + var o = new api.PartnerDataAccessConfig(); + buildCounterPartnerDataAccessConfig++; + if (buildCounterPartnerDataAccessConfig < 3) { + o.sdfConfig = buildSdfConfig(); + } + buildCounterPartnerDataAccessConfig--; + return o; +} + +checkPartnerDataAccessConfig(api.PartnerDataAccessConfig o) { + buildCounterPartnerDataAccessConfig++; + if (buildCounterPartnerDataAccessConfig < 3) { + checkSdfConfig(o.sdfConfig); + } + buildCounterPartnerDataAccessConfig--; +} + +core.int buildCounterPartnerGeneralConfig = 0; +buildPartnerGeneralConfig() { + var o = new api.PartnerGeneralConfig(); + buildCounterPartnerGeneralConfig++; + if (buildCounterPartnerGeneralConfig < 3) { + o.currencyCode = "foo"; + o.timeZone = "foo"; + } + buildCounterPartnerGeneralConfig--; + return o; +} + +checkPartnerGeneralConfig(api.PartnerGeneralConfig o) { + buildCounterPartnerGeneralConfig++; + if (buildCounterPartnerGeneralConfig < 3) { + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.timeZone, unittest.equals('foo')); + } + buildCounterPartnerGeneralConfig--; +} + core.int buildCounterPartnerRevenueModel = 0; buildPartnerRevenueModel() { var o = new api.PartnerRevenueModel(); @@ -4538,6 +5855,7 @@ var o = new api.PerformanceGoalBidStrategy(); buildCounterPerformanceGoalBidStrategy++; if (buildCounterPerformanceGoalBidStrategy < 3) { + o.customBiddingAlgorithmId = "foo"; o.maxAverageCpmBidAmountMicros = "foo"; o.performanceGoalAmountMicros = "foo"; o.performanceGoalType = "foo"; @@ -4549,6 +5867,7 @@ checkPerformanceGoalBidStrategy(api.PerformanceGoalBidStrategy o) { buildCounterPerformanceGoalBidStrategy++; if (buildCounterPerformanceGoalBidStrategy < 3) { + unittest.expect(o.customBiddingAlgorithmId, unittest.equals('foo')); unittest.expect(o.maxAverageCpmBidAmountMicros, unittest.equals('foo')); unittest.expect(o.performanceGoalAmountMicros, unittest.equals('foo')); unittest.expect(o.performanceGoalType, unittest.equals('foo')); @@ -4646,27 +5965,27 @@ buildCounterRegionalLocationListAssignedTargetingOptionDetails--; } -buildUnnamed4059() { +buildUnnamed4293() { var o = new core.List<api.ExchangeReviewStatus>(); o.add(buildExchangeReviewStatus()); o.add(buildExchangeReviewStatus()); return o; } -checkUnnamed4059(core.List<api.ExchangeReviewStatus> o) { +checkUnnamed4293(core.List<api.ExchangeReviewStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkExchangeReviewStatus(o[0]); checkExchangeReviewStatus(o[1]); } -buildUnnamed4060() { +buildUnnamed4294() { var o = new core.List<api.PublisherReviewStatus>(); o.add(buildPublisherReviewStatus()); o.add(buildPublisherReviewStatus()); return o; } -checkUnnamed4060(core.List<api.PublisherReviewStatus> o) { +checkUnnamed4294(core.List<api.PublisherReviewStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkPublisherReviewStatus(o[0]); checkPublisherReviewStatus(o[1]); @@ -4680,8 +5999,8 @@ o.approvalStatus = "foo"; o.contentAndPolicyReviewStatus = "foo"; o.creativeAndLandingPageReviewStatus = "foo"; - o.exchangeReviewStatuses = buildUnnamed4059(); - o.publisherReviewStatuses = buildUnnamed4060(); + o.exchangeReviewStatuses = buildUnnamed4293(); + o.publisherReviewStatuses = buildUnnamed4294(); } buildCounterReviewStatusInfo--; return o; @@ -4694,8 +6013,8 @@ unittest.expect(o.contentAndPolicyReviewStatus, unittest.equals('foo')); unittest.expect( o.creativeAndLandingPageReviewStatus, unittest.equals('foo')); - checkUnnamed4059(o.exchangeReviewStatuses); - checkUnnamed4060(o.publisherReviewStatuses); + checkUnnamed4293(o.exchangeReviewStatuses); + checkUnnamed4294(o.publisherReviewStatuses); } buildCounterReviewStatusInfo--; } @@ -4805,7 +6124,28 @@ buildCounterSensitiveCategoryTargetingOptionDetails--; } -buildUnnamed4061() { +core.int buildCounterSite = 0; +buildSite() { + var o = new api.Site(); + buildCounterSite++; + if (buildCounterSite < 3) { + o.name = "foo"; + o.urlOrAppId = "foo"; + } + buildCounterSite--; + return o; +} + +checkSite(api.Site o) { + buildCounterSite++; + if (buildCounterSite < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.urlOrAppId, unittest.equals('foo')); + } + buildCounterSite--; +} + +buildUnnamed4295() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -4820,7 +6160,7 @@ return o; } -checkUnnamed4061(core.Map<core.String, core.Object> o) { +checkUnnamed4295(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)); @@ -4834,17 +6174,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed4062() { +buildUnnamed4296() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4061()); - o.add(buildUnnamed4061()); + o.add(buildUnnamed4295()); + o.add(buildUnnamed4295()); return o; } -checkUnnamed4062(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4296(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4061(o[0]); - checkUnnamed4061(o[1]); + checkUnnamed4295(o[0]); + checkUnnamed4295(o[1]); } core.int buildCounterStatus = 0; @@ -4853,7 +6193,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4062(); + o.details = buildUnnamed4296(); o.message = "foo"; } buildCounterStatus--; @@ -4864,7 +6204,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4062(o.details); + checkUnnamed4296(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -5200,6 +6540,46 @@ buildCounterUrlAssignedTargetingOptionDetails--; } +buildUnnamed4297() { + var o = new core.List<api.AssignedUserRole>(); + o.add(buildAssignedUserRole()); + o.add(buildAssignedUserRole()); + return o; +} + +checkUnnamed4297(core.List<api.AssignedUserRole> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAssignedUserRole(o[0]); + checkAssignedUserRole(o[1]); +} + +core.int buildCounterUser = 0; +buildUser() { + var o = new api.User(); + buildCounterUser++; + if (buildCounterUser < 3) { + o.assignedUserRoles = buildUnnamed4297(); + o.displayName = "foo"; + o.email = "foo"; + o.name = "foo"; + o.userId = "foo"; + } + buildCounterUser--; + return o; +} + +checkUser(api.User o) { + buildCounterUser++; + if (buildCounterUser < 3) { + checkUnnamed4297(o.assignedUserRoles); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.email, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.userId, unittest.equals('foo')); + } + buildCounterUser--; +} + core.int buildCounterUserRewardedContentAssignedTargetingOptionDetails = 0; buildUserRewardedContentAssignedTargetingOptionDetails() { var o = new api.UserRewardedContentAssignedTargetingOptionDetails(); @@ -5392,6 +6772,14 @@ }); }); + unittest.group("obj-schema-AdvertiserTargetingConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAdvertiserTargetingConfig(); + var od = new api.AdvertiserTargetingConfig.fromJson(o.toJson()); + checkAdvertiserTargetingConfig(od); + }); + }); + unittest.group("obj-schema-AgeRangeAssignedTargetingOptionDetails", () { unittest.test("to-json--from-json", () { var o = buildAgeRangeAssignedTargetingOptionDetails(); @@ -5450,6 +6838,22 @@ }); }); + unittest.group("obj-schema-AssignedInventorySource", () { + unittest.test("to-json--from-json", () { + var o = buildAssignedInventorySource(); + var od = new api.AssignedInventorySource.fromJson(o.toJson()); + checkAssignedInventorySource(od); + }); + }); + + unittest.group("obj-schema-AssignedLocation", () { + unittest.test("to-json--from-json", () { + var o = buildAssignedLocation(); + var od = new api.AssignedLocation.fromJson(o.toJson()); + checkAssignedLocation(od); + }); + }); + unittest.group("obj-schema-AssignedTargetingOption", () { unittest.test("to-json--from-json", () { var o = buildAssignedTargetingOption(); @@ -5458,6 +6862,14 @@ }); }); + unittest.group("obj-schema-AssignedUserRole", () { + unittest.test("to-json--from-json", () { + var o = buildAssignedUserRole(); + var od = new api.AssignedUserRole.fromJson(o.toJson()); + checkAssignedUserRole(od); + }); + }); + unittest.group("obj-schema-AudienceGroupAssignedTargetingOptionDetails", () { unittest.test("to-json--from-json", () { var o = buildAudienceGroupAssignedTargetingOptionDetails(); @@ -5475,6 +6887,14 @@ }); }); + unittest.group("obj-schema-AuditAdvertiserResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAuditAdvertiserResponse(); + var od = new api.AuditAdvertiserResponse.fromJson(o.toJson()); + checkAuditAdvertiserResponse(od); + }); + }); + unittest.group( "obj-schema-AuthorizedSellerStatusAssignedTargetingOptionDetails", () { unittest.test("to-json--from-json", () { @@ -5520,6 +6940,78 @@ }); }); + unittest.group("obj-schema-BulkEditAdvertiserAssignedTargetingOptionsRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAdvertiserAssignedTargetingOptionsRequest(); + var od = + new api.BulkEditAdvertiserAssignedTargetingOptionsRequest.fromJson( + o.toJson()); + checkBulkEditAdvertiserAssignedTargetingOptionsRequest(od); + }); + }); + + unittest.group( + "obj-schema-BulkEditAdvertiserAssignedTargetingOptionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAdvertiserAssignedTargetingOptionsResponse(); + var od = + new api.BulkEditAdvertiserAssignedTargetingOptionsResponse.fromJson( + o.toJson()); + checkBulkEditAdvertiserAssignedTargetingOptionsResponse(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedInventorySourcesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedInventorySourcesRequest(); + var od = + new api.BulkEditAssignedInventorySourcesRequest.fromJson(o.toJson()); + checkBulkEditAssignedInventorySourcesRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedInventorySourcesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedInventorySourcesResponse(); + var od = + new api.BulkEditAssignedInventorySourcesResponse.fromJson(o.toJson()); + checkBulkEditAssignedInventorySourcesResponse(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedLocationsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedLocationsRequest(); + var od = new api.BulkEditAssignedLocationsRequest.fromJson(o.toJson()); + checkBulkEditAssignedLocationsRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedLocationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedLocationsResponse(); + var od = new api.BulkEditAssignedLocationsResponse.fromJson(o.toJson()); + checkBulkEditAssignedLocationsResponse(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedUserRolesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedUserRolesRequest(); + var od = new api.BulkEditAssignedUserRolesRequest.fromJson(o.toJson()); + checkBulkEditAssignedUserRolesRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditAssignedUserRolesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditAssignedUserRolesResponse(); + var od = new api.BulkEditAssignedUserRolesResponse.fromJson(o.toJson()); + checkBulkEditAssignedUserRolesResponse(od); + }); + }); + unittest.group("obj-schema-BulkEditLineItemAssignedTargetingOptionsRequest", () { unittest.test("to-json--from-json", () { @@ -5541,6 +7033,69 @@ }); }); + unittest.group("obj-schema-BulkEditNegativeKeywordsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditNegativeKeywordsRequest(); + var od = new api.BulkEditNegativeKeywordsRequest.fromJson(o.toJson()); + checkBulkEditNegativeKeywordsRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditNegativeKeywordsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditNegativeKeywordsResponse(); + var od = new api.BulkEditNegativeKeywordsResponse.fromJson(o.toJson()); + checkBulkEditNegativeKeywordsResponse(od); + }); + }); + + unittest.group("obj-schema-BulkEditPartnerAssignedTargetingOptionsRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditPartnerAssignedTargetingOptionsRequest(); + var od = new api.BulkEditPartnerAssignedTargetingOptionsRequest.fromJson( + o.toJson()); + checkBulkEditPartnerAssignedTargetingOptionsRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditPartnerAssignedTargetingOptionsResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditPartnerAssignedTargetingOptionsResponse(); + var od = new api.BulkEditPartnerAssignedTargetingOptionsResponse.fromJson( + o.toJson()); + checkBulkEditPartnerAssignedTargetingOptionsResponse(od); + }); + }); + + unittest.group("obj-schema-BulkEditSitesRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditSitesRequest(); + var od = new api.BulkEditSitesRequest.fromJson(o.toJson()); + checkBulkEditSitesRequest(od); + }); + }); + + unittest.group("obj-schema-BulkEditSitesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkEditSitesResponse(); + var od = new api.BulkEditSitesResponse.fromJson(o.toJson()); + checkBulkEditSitesResponse(od); + }); + }); + + unittest.group( + "obj-schema-BulkListAdvertiserAssignedTargetingOptionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBulkListAdvertiserAssignedTargetingOptionsResponse(); + var od = + new api.BulkListAdvertiserAssignedTargetingOptionsResponse.fromJson( + o.toJson()); + checkBulkListAdvertiserAssignedTargetingOptionsResponse(od); + }); + }); + unittest.group("obj-schema-BulkListLineItemAssignedTargetingOptionsResponse", () { unittest.test("to-json--from-json", () { @@ -5774,6 +7329,14 @@ }); }); + unittest.group("obj-schema-CustomBiddingAlgorithm", () { + unittest.test("to-json--from-json", () { + var o = buildCustomBiddingAlgorithm(); + var od = new api.CustomBiddingAlgorithm.fromJson(o.toJson()); + checkCustomBiddingAlgorithm(od); + }); + }); + unittest.group("obj-schema-CustomList", () { unittest.test("to-json--from-json", () { var o = buildCustomList(); @@ -5978,6 +7541,22 @@ }); }); + unittest.group("obj-schema-ExchangeConfig", () { + unittest.test("to-json--from-json", () { + var o = buildExchangeConfig(); + var od = new api.ExchangeConfig.fromJson(o.toJson()); + checkExchangeConfig(od); + }); + }); + + unittest.group("obj-schema-ExchangeConfigEnabledExchange", () { + unittest.test("to-json--from-json", () { + var o = buildExchangeConfigEnabledExchange(); + var od = new api.ExchangeConfigEnabledExchange.fromJson(o.toJson()); + checkExchangeConfigEnabledExchange(od); + }); + }); + unittest.group("obj-schema-ExchangeReviewStatus", () { unittest.test("to-json--from-json", () { var o = buildExchangeReviewStatus(); @@ -6304,6 +7883,16 @@ }); }); + unittest.group("obj-schema-ListAdvertiserAssignedTargetingOptionsResponse", + () { + unittest.test("to-json--from-json", () { + var o = buildListAdvertiserAssignedTargetingOptionsResponse(); + var od = new api.ListAdvertiserAssignedTargetingOptionsResponse.fromJson( + o.toJson()); + checkListAdvertiserAssignedTargetingOptionsResponse(od); + }); + }); + unittest.group("obj-schema-ListAdvertisersResponse", () { unittest.test("to-json--from-json", () { var o = buildListAdvertisersResponse(); @@ -6312,6 +7901,23 @@ }); }); + unittest.group("obj-schema-ListAssignedInventorySourcesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListAssignedInventorySourcesResponse(); + var od = + new api.ListAssignedInventorySourcesResponse.fromJson(o.toJson()); + checkListAssignedInventorySourcesResponse(od); + }); + }); + + unittest.group("obj-schema-ListAssignedLocationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListAssignedLocationsResponse(); + var od = new api.ListAssignedLocationsResponse.fromJson(o.toJson()); + checkListAssignedLocationsResponse(od); + }); + }); + unittest.group("obj-schema-ListCampaignsResponse", () { unittest.test("to-json--from-json", () { var o = buildListCampaignsResponse(); @@ -6344,6 +7950,14 @@ }); }); + unittest.group("obj-schema-ListCustomBiddingAlgorithmsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListCustomBiddingAlgorithmsResponse(); + var od = new api.ListCustomBiddingAlgorithmsResponse.fromJson(o.toJson()); + checkListCustomBiddingAlgorithmsResponse(od); + }); + }); + unittest.group("obj-schema-ListCustomListsResponse", () { unittest.test("to-json--from-json", () { var o = buildListCustomListsResponse(); @@ -6426,6 +8040,39 @@ }); }); + unittest.group("obj-schema-ListNegativeKeywordsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListNegativeKeywordsResponse(); + var od = new api.ListNegativeKeywordsResponse.fromJson(o.toJson()); + checkListNegativeKeywordsResponse(od); + }); + }); + + unittest.group("obj-schema-ListPartnerAssignedTargetingOptionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListPartnerAssignedTargetingOptionsResponse(); + var od = new api.ListPartnerAssignedTargetingOptionsResponse.fromJson( + o.toJson()); + checkListPartnerAssignedTargetingOptionsResponse(od); + }); + }); + + unittest.group("obj-schema-ListPartnersResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListPartnersResponse(); + var od = new api.ListPartnersResponse.fromJson(o.toJson()); + checkListPartnersResponse(od); + }); + }); + + unittest.group("obj-schema-ListSitesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListSitesResponse(); + var od = new api.ListSitesResponse.fromJson(o.toJson()); + checkListSitesResponse(od); + }); + }); + unittest.group("obj-schema-ListTargetingOptionsResponse", () { unittest.test("to-json--from-json", () { var o = buildListTargetingOptionsResponse(); @@ -6434,6 +8081,14 @@ }); }); + unittest.group("obj-schema-ListUsersResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListUsersResponse(); + var od = new api.ListUsersResponse.fromJson(o.toJson()); + checkListUsersResponse(od); + }); + }); + unittest.group("obj-schema-LocationList", () { unittest.test("to-json--from-json", () { var o = buildLocationList(); @@ -6458,6 +8113,14 @@ }); }); + unittest.group("obj-schema-MeasurementConfig", () { + unittest.test("to-json--from-json", () { + var o = buildMeasurementConfig(); + var od = new api.MeasurementConfig.fromJson(o.toJson()); + checkMeasurementConfig(od); + }); + }); + unittest.group("obj-schema-Money", () { unittest.test("to-json--from-json", () { var o = buildMoney(); @@ -6466,6 +8129,14 @@ }); }); + unittest.group("obj-schema-NegativeKeyword", () { + unittest.test("to-json--from-json", () { + var o = buildNegativeKeyword(); + var od = new api.NegativeKeyword.fromJson(o.toJson()); + checkNegativeKeyword(od); + }); + }); + unittest.group("obj-schema-NegativeKeywordList", () { unittest.test("to-json--from-json", () { var o = buildNegativeKeywordList(); @@ -6573,6 +8244,22 @@ }); }); + unittest.group("obj-schema-Partner", () { + unittest.test("to-json--from-json", () { + var o = buildPartner(); + var od = new api.Partner.fromJson(o.toJson()); + checkPartner(od); + }); + }); + + unittest.group("obj-schema-PartnerAdServerConfig", () { + unittest.test("to-json--from-json", () { + var o = buildPartnerAdServerConfig(); + var od = new api.PartnerAdServerConfig.fromJson(o.toJson()); + checkPartnerAdServerConfig(od); + }); + }); + unittest.group("obj-schema-PartnerCost", () { unittest.test("to-json--from-json", () { var o = buildPartnerCost(); @@ -6581,6 +8268,22 @@ }); }); + unittest.group("obj-schema-PartnerDataAccessConfig", () { + unittest.test("to-json--from-json", () { + var o = buildPartnerDataAccessConfig(); + var od = new api.PartnerDataAccessConfig.fromJson(o.toJson()); + checkPartnerDataAccessConfig(od); + }); + }); + + unittest.group("obj-schema-PartnerGeneralConfig", () { + unittest.test("to-json--from-json", () { + var o = buildPartnerGeneralConfig(); + var od = new api.PartnerGeneralConfig.fromJson(o.toJson()); + checkPartnerGeneralConfig(od); + }); + }); + unittest.group("obj-schema-PartnerRevenueModel", () { unittest.test("to-json--from-json", () { var o = buildPartnerRevenueModel(); @@ -6694,6 +8397,14 @@ }); }); + 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-Status", () { unittest.test("to-json--from-json", () { var o = buildStatus(); @@ -6802,6 +8513,14 @@ }); }); + unittest.group("obj-schema-User", () { + unittest.test("to-json--from-json", () { + var o = buildUser(); + var od = new api.User.fromJson(o.toJson()); + checkUser(od); + }); + }); + unittest.group("obj-schema-UserRewardedContentAssignedTargetingOptionDetails", () { unittest.test("to-json--from-json", () { @@ -6859,6 +8578,192 @@ }); unittest.group("resource-AdvertisersResourceApi", () { + unittest.test("method--audit", () { + var mock = new HttpServerMock(); + api.AdvertisersResourceApi res = + new api.DisplayvideoApi(mock).advertisers; + var arg_advertiserId = "foo"; + var arg_readMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["readMask"].first, unittest.equals(arg_readMask)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAuditAdvertiserResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .audit(arg_advertiserId, readMask: arg_readMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAuditAdvertiserResponse(response); + }))); + }); + + unittest.test("method--bulkEditAdvertiserAssignedTargetingOptions", () { + var mock = new HttpServerMock(); + api.AdvertisersResourceApi res = + new api.DisplayvideoApi(mock).advertisers; + var arg_request = + buildBulkEditAdvertiserAssignedTargetingOptionsRequest(); + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.BulkEditAdvertiserAssignedTargetingOptionsRequest.fromJson( + json); + checkBulkEditAdvertiserAssignedTargetingOptionsRequest(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildBulkEditAdvertiserAssignedTargetingOptionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEditAdvertiserAssignedTargetingOptions( + arg_request, arg_advertiserId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditAdvertiserAssignedTargetingOptionsResponse(response); + }))); + }); + + unittest.test("method--bulkListAdvertiserAssignedTargetingOptions", () { + var mock = new HttpServerMock(); + api.AdvertisersResourceApi res = + new api.DisplayvideoApi(mock).advertisers; + var arg_advertiserId = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildBulkListAdvertiserAssignedTargetingOptionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkListAdvertiserAssignedTargetingOptions(arg_advertiserId, + filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkListAdvertiserAssignedTargetingOptionsResponse(response); + }))); + }); + unittest.test("method--create", () { var mock = new HttpServerMock(); api.AdvertisersResourceApi res = @@ -7022,9 +8927,9 @@ api.AdvertisersResourceApi res = new api.DisplayvideoApi(mock).advertisers; var arg_filter = "foo"; - var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_partnerId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -7059,12 +8964,12 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( queryMap["partnerId"].first, unittest.equals(arg_partnerId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -7077,9 +8982,9 @@ res .list( filter: arg_filter, - orderBy: arg_orderBy, pageToken: arg_pageToken, pageSize: arg_pageSize, + orderBy: arg_orderBy, partnerId: arg_partnerId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -7378,9 +9283,9 @@ new api.DisplayvideoApi(mock).advertisers.campaigns; var arg_advertiserId = "foo"; var arg_filter = "foo"; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7414,12 +9319,12 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7431,9 +9336,9 @@ res .list(arg_advertiserId, filter: arg_filter, - orderBy: arg_orderBy, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCampaignsResponse(response); @@ -7503,6 +9408,66 @@ }); unittest.group("resource-AdvertisersChannelsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels; + var arg_request = buildChannel(); + var arg_advertiserId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Channel.fromJson(json); + checkChannel(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, + partnerId: arg_partnerId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkChannel(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.AdvertisersChannelsResourceApi res = @@ -7566,10 +9531,10 @@ new api.DisplayvideoApi(mock).advertisers.channels; var arg_advertiserId = "foo"; var arg_partnerId = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_orderBy = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7604,13 +9569,13 @@ } unittest.expect( queryMap["partnerId"].first, unittest.equals(arg_partnerId)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7622,15 +9587,360 @@ res .list(arg_advertiserId, partnerId: arg_partnerId, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, orderBy: arg_orderBy, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListChannelsResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels; + var arg_request = buildChannel(); + var arg_advertiserId = "foo"; + var arg_channelId = "foo"; + var arg_updateMask = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Channel.fromJson(json); + checkChannel(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_advertiserId, arg_channelId, + updateMask: arg_updateMask, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkChannel(response); + }))); + }); + }); + + unittest.group("resource-AdvertisersChannelsSitesResourceApi", () { + unittest.test("method--bulkEdit", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels.sites; + var arg_request = buildBulkEditSitesRequest(); + var arg_advertiserId = "foo"; + var arg_channelId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BulkEditSitesRequest.fromJson(json); + checkBulkEditSitesRequest(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("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/channels/", 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 + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBulkEditSitesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEdit(arg_request, arg_advertiserId, arg_channelId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditSitesResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels.sites; + var arg_request = buildSite(); + var arg_advertiserId = "foo"; + var arg_channelId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/channels/", 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 + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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 + .create(arg_request, arg_advertiserId, arg_channelId, + partnerId: arg_partnerId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSite(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels.sites; + var arg_advertiserId = "foo"; + var arg_channelId = "foo"; + var arg_urlOrAppId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/channels/", 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 + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_advertiserId, arg_channelId, arg_urlOrAppId, + partnerId: arg_partnerId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.AdvertisersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).advertisers.channels.sites; + var arg_advertiserId = "foo"; + var arg_channelId = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_partnerId = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListSitesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_advertiserId, arg_channelId, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + partnerId: arg_partnerId, + pageSize: arg_pageSize, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListSitesResponse(response); + }))); + }); }); unittest.group("resource-AdvertisersCreativesResourceApi", () { @@ -7801,9 +10111,9 @@ api.AdvertisersCreativesResourceApi res = new api.DisplayvideoApi(mock).advertisers.creatives; var arg_advertiserId = "foo"; - var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -7838,11 +10148,11 @@ } } unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -7854,9 +10164,9 @@ }), true); res .list(arg_advertiserId, - orderBy: arg_orderBy, pageToken: arg_pageToken, pageSize: arg_pageSize, + orderBy: arg_orderBy, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -8094,10 +10404,10 @@ api.AdvertisersInsertionOrdersResourceApi res = new api.DisplayvideoApi(mock).advertisers.insertionOrders; var arg_advertiserId = "foo"; + var arg_filter = "foo"; var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8130,13 +10440,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8147,10 +10457,10 @@ }), true); res .list(arg_advertiserId, + filter: arg_filter, orderBy: arg_orderBy, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInsertionOrdersResponse(response); @@ -8288,10 +10598,10 @@ new api.DisplayvideoApi(mock).advertisers.lineItems; var arg_advertiserId = "foo"; var arg_lineItemId = "foo"; - var arg_orderBy = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8325,12 +10635,12 @@ } } unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8343,10 +10653,10 @@ res .bulkListLineItemAssignedTargetingOptions( arg_advertiserId, arg_lineItemId, - orderBy: arg_orderBy, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBulkListLineItemAssignedTargetingOptionsResponse(response); @@ -8521,9 +10831,9 @@ new api.DisplayvideoApi(mock).advertisers.lineItems; var arg_advertiserId = "foo"; var arg_filter = "foo"; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8557,12 +10867,12 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8574,9 +10884,9 @@ res .list(arg_advertiserId, filter: arg_filter, - orderBy: arg_orderBy, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLineItemsResponse(response); @@ -8845,10 +11155,10 @@ var arg_advertiserId = "foo"; var arg_lineItemId = "foo"; var arg_targetingType = "foo"; + var arg_pageSize = 42; var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8881,13 +11191,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8899,10 +11209,10 @@ }), true); res .list(arg_advertiserId, arg_lineItemId, arg_targetingType, + pageSize: arg_pageSize, orderBy: arg_orderBy, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLineItemAssignedTargetingOptionsResponse(response); @@ -8911,6 +11221,62 @@ }); unittest.group("resource-AdvertisersLocationListsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.locationLists; + var arg_request = buildLocationList(); + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LocationList.fromJson(json); + checkLocationList(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLocationList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLocationList(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.AdvertisersLocationListsResourceApi res = @@ -8969,9 +11335,9 @@ api.AdvertisersLocationListsResourceApi res = new api.DisplayvideoApi(mock).advertisers.locationLists; var arg_advertiserId = "foo"; - var arg_filter = "foo"; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9005,11 +11371,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9022,18 +11388,506 @@ }), true); res .list(arg_advertiserId, - filter: arg_filter, orderBy: arg_orderBy, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationListsResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.locationLists; + var arg_request = buildLocationList(); + var arg_advertiserId = "foo"; + var arg_locationListId = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LocationList.fromJson(json); + checkLocationList(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLocationList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_advertiserId, arg_locationListId, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLocationList(response); + }))); + }); + }); + + unittest.group( + "resource-AdvertisersLocationListsAssignedLocationsResourceApi", () { + unittest.test("method--bulkEdit", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsAssignedLocationsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .locationLists + .assignedLocations; + var arg_request = buildBulkEditAssignedLocationsRequest(); + var arg_advertiserId = "foo"; + var arg_locationListId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BulkEditAssignedLocationsRequest.fromJson(json); + checkBulkEditAssignedLocationsRequest(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("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/locationLists/", 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("/locationLists/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildBulkEditAssignedLocationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEdit(arg_request, arg_advertiserId, arg_locationListId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditAssignedLocationsResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsAssignedLocationsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .locationLists + .assignedLocations; + var arg_request = buildAssignedLocation(); + var arg_advertiserId = "foo"; + var arg_locationListId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AssignedLocation.fromJson(json); + checkAssignedLocation(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("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/locationLists/", 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("/locationLists/")); + pathOffset += 15; + index = path.indexOf("/assignedLocations", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_locationListId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/assignedLocations")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAssignedLocation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, arg_locationListId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAssignedLocation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsAssignedLocationsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .locationLists + .assignedLocations; + var arg_advertiserId = "foo"; + var arg_locationListId = "foo"; + var arg_assignedLocationId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/locationLists/", 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("/locationLists/")); + pathOffset += 15; + index = path.indexOf("/assignedLocations/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_locationListId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("/assignedLocations/")); + pathOffset += 19; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_advertiserId, arg_locationListId, arg_assignedLocationId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.AdvertisersLocationListsAssignedLocationsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .locationLists + .assignedLocations; + var arg_advertiserId = "foo"; + var arg_locationListId = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/locationLists/", 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("/locationLists/")); + pathOffset += 15; + index = path.indexOf("/assignedLocations", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_locationListId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/assignedLocations")); + pathOffset += 18; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListAssignedLocationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_advertiserId, arg_locationListId, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + orderBy: arg_orderBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListAssignedLocationsResponse(response); + }))); + }); }); unittest.group("resource-AdvertisersNegativeKeywordListsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.negativeKeywordLists; + var arg_request = buildNegativeKeywordList(); + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NegativeKeywordList.fromJson(json); + checkNegativeKeywordList(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNegativeKeywordList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNegativeKeywordList(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.negativeKeywordLists; + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_advertiserId, arg_negativeKeywordListId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.AdvertisersNegativeKeywordListsResourceApi res = @@ -9148,6 +12002,606 @@ checkListNegativeKeywordListsResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsResourceApi res = + new api.DisplayvideoApi(mock).advertisers.negativeKeywordLists; + var arg_request = buildNegativeKeywordList(); + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NegativeKeywordList.fromJson(json); + checkNegativeKeywordList(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNegativeKeywordList()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_advertiserId, arg_negativeKeywordListId, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNegativeKeywordList(response); + }))); + }); + }); + + unittest.group( + "resource-AdvertisersNegativeKeywordListsNegativeKeywordsResourceApi", + () { + unittest.test("method--bulkEdit", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsNegativeKeywordsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .negativeKeywordLists + .negativeKeywords; + var arg_request = buildBulkEditNegativeKeywordsRequest(); + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BulkEditNegativeKeywordsRequest.fromJson(json); + checkBulkEditNegativeKeywordsRequest(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("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/negativeKeywordLists/", 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 + 22), + unittest.equals("/negativeKeywordLists/")); + pathOffset += 22; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBulkEditNegativeKeywordsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEdit(arg_request, arg_advertiserId, arg_negativeKeywordListId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditNegativeKeywordsResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsNegativeKeywordsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .negativeKeywordLists + .negativeKeywords; + var arg_request = buildNegativeKeyword(); + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.NegativeKeyword.fromJson(json); + checkNegativeKeyword(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("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/negativeKeywordLists/", 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 + 22), + unittest.equals("/negativeKeywordLists/")); + pathOffset += 22; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildNegativeKeyword()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, arg_negativeKeywordListId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkNegativeKeyword(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsNegativeKeywordsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .negativeKeywordLists + .negativeKeywords; + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_keywordValue = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + index = path.indexOf("/negativeKeywordLists/", 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 + 22), + unittest.equals("/negativeKeywordLists/")); + pathOffset += 22; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_advertiserId, arg_negativeKeywordListId, arg_keywordValue, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.AdvertisersNegativeKeywordListsNegativeKeywordsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .negativeKeywordLists + .negativeKeywords; + var arg_advertiserId = "foo"; + var arg_negativeKeywordListId = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListNegativeKeywordsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_advertiserId, arg_negativeKeywordListId, + pageSize: arg_pageSize, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListNegativeKeywordsResponse(response); + }))); + }); + }); + + unittest.group( + "resource-AdvertisersTargetingTypesAssignedTargetingOptionsResourceApi", + () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.AdvertisersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .targetingTypes + .assignedTargetingOptions; + var arg_request = buildAssignedTargetingOption(); + var arg_advertiserId = "foo"; + var arg_targetingType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AssignedTargetingOption.fromJson(json); + checkAssignedTargetingOption(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("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAssignedTargetingOption()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_advertiserId, arg_targetingType, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAssignedTargetingOption(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.AdvertisersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .targetingTypes + .assignedTargetingOptions; + var arg_advertiserId = "foo"; + var arg_targetingType = "foo"; + var arg_assignedTargetingOptionId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_advertiserId, arg_targetingType, + arg_assignedTargetingOptionId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.AdvertisersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .targetingTypes + .assignedTargetingOptions; + var arg_advertiserId = "foo"; + var arg_targetingType = "foo"; + var arg_assignedTargetingOptionId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAssignedTargetingOption()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_advertiserId, arg_targetingType, + arg_assignedTargetingOptionId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAssignedTargetingOption(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.AdvertisersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .advertisers + .targetingTypes + .assignedTargetingOptions; + var arg_advertiserId = "foo"; + var arg_targetingType = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("v1/advertisers/")); + pathOffset += 15; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildListAdvertiserAssignedTargetingOptionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_advertiserId, arg_targetingType, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListAdvertiserAssignedTargetingOptionsResponse(response); + }))); + }); }); unittest.group("resource-CombinedAudiencesResourceApi", () { @@ -9156,8 +12610,8 @@ api.CombinedAudiencesResourceApi res = new api.DisplayvideoApi(mock).combinedAudiences; var arg_combinedAudienceId = "foo"; - var arg_advertiserId = "foo"; var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9191,9 +12645,9 @@ } } unittest.expect( - queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect( queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9204,8 +12658,8 @@ }), true); res .get(arg_combinedAudienceId, - advertiserId: arg_advertiserId, partnerId: arg_partnerId, + advertiserId: arg_advertiserId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCombinedAudience(response); @@ -9216,10 +12670,10 @@ var mock = new HttpServerMock(); api.CombinedAudiencesResourceApi res = new api.DisplayvideoApi(mock).combinedAudiences; - var arg_advertiserId = "foo"; var arg_orderBy = "foo"; var arg_partnerId = "foo"; var arg_filter = "foo"; + var arg_advertiserId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; @@ -9254,13 +12708,13 @@ } } unittest.expect( - queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["partnerId"].first, unittest.equals(arg_partnerId)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); @@ -9274,10 +12728,10 @@ }), true); res .list( - advertiserId: arg_advertiserId, orderBy: arg_orderBy, partnerId: arg_partnerId, filter: arg_filter, + advertiserId: arg_advertiserId, pageToken: arg_pageToken, pageSize: arg_pageSize, $fields: arg_$fields) @@ -9287,6 +12741,144 @@ }); }); + unittest.group("resource-CustomBiddingAlgorithmsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.CustomBiddingAlgorithmsResourceApi res = + new api.DisplayvideoApi(mock).customBiddingAlgorithms; + var arg_customBiddingAlgorithmId = "foo"; + var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 27), + unittest.equals("v1/customBiddingAlgorithms/")); + pathOffset += 27; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCustomBiddingAlgorithm()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_customBiddingAlgorithmId, + partnerId: arg_partnerId, + advertiserId: arg_advertiserId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCustomBiddingAlgorithm(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.CustomBiddingAlgorithmsResourceApi res = + new api.DisplayvideoApi(mock).customBiddingAlgorithms; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("v1/customBiddingAlgorithms")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildListCustomBiddingAlgorithmsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + filter: arg_filter, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + orderBy: arg_orderBy, + partnerId: arg_partnerId, + advertiserId: arg_advertiserId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListCustomBiddingAlgorithmsResponse(response); + }))); + }); + }); + unittest.group("resource-CustomListsResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -9348,10 +12940,10 @@ var mock = new HttpServerMock(); api.CustomListsResourceApi res = new api.DisplayvideoApi(mock).customLists; - var arg_filter = "foo"; var arg_advertiserId = "foo"; var arg_orderBy = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9384,13 +12976,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9403,10 +12995,10 @@ }), true); res .list( - filter: arg_filter, advertiserId: arg_advertiserId, orderBy: arg_orderBy, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -9481,12 +13073,12 @@ var mock = new HttpServerMock(); api.FirstAndThirdPartyAudiencesResourceApi res = new api.DisplayvideoApi(mock).firstAndThirdPartyAudiences; - var arg_orderBy = "foo"; var arg_partnerId = "foo"; - var arg_filter = "foo"; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_advertiserId = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9519,16 +13111,16 @@ } } unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( - queryMap["partnerId"].first, unittest.equals(arg_partnerId)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9540,12 +13132,12 @@ }), true); res .list( - orderBy: arg_orderBy, partnerId: arg_partnerId, - filter: arg_filter, + orderBy: arg_orderBy, pageToken: arg_pageToken, - pageSize: arg_pageSize, advertiserId: arg_advertiserId, + filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListFirstAndThirdPartyAudiencesResponse(response); @@ -9616,8 +13208,8 @@ new api.DisplayvideoApi(mock).floodlightGroups; var arg_request = buildFloodlightGroup(); var arg_floodlightGroupId = "foo"; - var arg_partnerId = "foo"; var arg_updateMask = "foo"; + var arg_partnerId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.FloodlightGroup.fromJson(json); @@ -9656,9 +13248,9 @@ } } unittest.expect( - queryMap["partnerId"].first, unittest.equals(arg_partnerId)); - unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9669,8 +13261,8 @@ }), true); res .patch(arg_request, arg_floodlightGroupId, - partnerId: arg_partnerId, updateMask: arg_updateMask, + partnerId: arg_partnerId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFloodlightGroup(response); @@ -9745,11 +13337,11 @@ api.GoogleAudiencesResourceApi res = new api.DisplayvideoApi(mock).googleAudiences; var arg_filter = "foo"; + var arg_partnerId = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_advertiserId = "foo"; var arg_orderBy = "foo"; - var arg_partnerId = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9783,15 +13375,15 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9803,11 +13395,11 @@ res .list( filter: arg_filter, + partnerId: arg_partnerId, pageToken: arg_pageToken, - pageSize: arg_pageSize, advertiserId: arg_advertiserId, orderBy: arg_orderBy, - partnerId: arg_partnerId, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGoogleAudiencesResponse(response); @@ -9816,15 +13408,417 @@ }); unittest.group("resource-InventorySourceGroupsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsResourceApi res = + new api.DisplayvideoApi(mock).inventorySourceGroups; + var arg_request = buildInventorySourceGroup(); + var arg_advertiserId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.InventorySourceGroup.fromJson(json); + checkInventorySourceGroup(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 + 24), + unittest.equals("v1/inventorySourceGroups")); + pathOffset += 24; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildInventorySourceGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, + advertiserId: arg_advertiserId, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkInventorySourceGroup(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsResourceApi res = + new api.DisplayvideoApi(mock).inventorySourceGroups; + var arg_inventorySourceGroupId = "foo"; + var arg_advertiserId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_inventorySourceGroupId, + advertiserId: arg_advertiserId, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.InventorySourceGroupsResourceApi res = new api.DisplayvideoApi(mock).inventorySourceGroups; var arg_inventorySourceGroupId = "foo"; + var arg_advertiserId = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildInventorySourceGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_inventorySourceGroupId, + advertiserId: arg_advertiserId, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkInventorySourceGroup(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsResourceApi res = + new api.DisplayvideoApi(mock).inventorySourceGroups; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; + var arg_orderBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("v1/inventorySourceGroups")); + pathOffset += 24; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildListInventorySourceGroupsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + partnerId: arg_partnerId, + advertiserId: arg_advertiserId, + orderBy: arg_orderBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListInventorySourceGroupsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsResourceApi res = + new api.DisplayvideoApi(mock).inventorySourceGroups; + var arg_request = buildInventorySourceGroup(); + var arg_inventorySourceGroupId = "foo"; + var arg_advertiserId = "foo"; + var arg_updateMask = "foo"; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.InventorySourceGroup.fromJson(json); + checkInventorySourceGroup(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 + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect( + subPart, unittest.equals("$arg_inventorySourceGroupId")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildInventorySourceGroup()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_inventorySourceGroupId, + advertiserId: arg_advertiserId, + updateMask: arg_updateMask, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkInventorySourceGroup(response); + }))); + }); + }); + + unittest.group( + "resource-InventorySourceGroupsAssignedInventorySourcesResourceApi", () { + unittest.test("method--bulkEdit", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsAssignedInventorySourcesResourceApi res = + new api.DisplayvideoApi(mock) + .inventorySourceGroups + .assignedInventorySources; + var arg_request = buildBulkEditAssignedInventorySourcesRequest(); + var arg_inventorySourceGroupId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.BulkEditAssignedInventorySourcesRequest.fromJson(json); + checkBulkEditAssignedInventorySourcesRequest(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 + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildBulkEditAssignedInventorySourcesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEdit(arg_request, arg_inventorySourceGroupId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditAssignedInventorySourcesResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsAssignedInventorySourcesResourceApi res = + new api.DisplayvideoApi(mock) + .inventorySourceGroups + .assignedInventorySources; + var arg_request = buildAssignedInventorySource(); + var arg_inventorySourceGroupId = "foo"; var arg_partnerId = "foo"; var arg_advertiserId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AssignedInventorySource.fromJson(json); + checkAssignedInventorySource(obj); + var path = (req.url).path; var pathOffset = 0; var index; @@ -9864,29 +13858,29 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildInventorySourceGroup()); + var resp = convert.json.encode(buildAssignedInventorySource()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .get(arg_inventorySourceGroupId, + .create(arg_request, arg_inventorySourceGroupId, partnerId: arg_partnerId, advertiserId: arg_advertiserId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkInventorySourceGroup(response); + checkAssignedInventorySource(response); }))); }); - unittest.test("method--list", () { + unittest.test("method--delete", () { var mock = new HttpServerMock(); - api.InventorySourceGroupsResourceApi res = - new api.DisplayvideoApi(mock).inventorySourceGroups; + api.InventorySourceGroupsAssignedInventorySourcesResourceApi res = + new api.DisplayvideoApi(mock) + .inventorySourceGroups + .assignedInventorySources; + var arg_inventorySourceGroupId = "foo"; + var arg_assignedInventorySourceId = "foo"; var arg_advertiserId = "foo"; - var arg_orderBy = "foo"; var arg_partnerId = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9896,9 +13890,10 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 24), - unittest.equals("v1/inventorySourceGroups")); - pathOffset += 24; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; var query = (req.url).query; var queryOffset = 0; @@ -9921,34 +13916,101 @@ unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_inventorySourceGroupId, arg_assignedInventorySourceId, + advertiserId: arg_advertiserId, + partnerId: arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.InventorySourceGroupsAssignedInventorySourcesResourceApi res = + new api.DisplayvideoApi(mock) + .inventorySourceGroups + .assignedInventorySources; + var arg_inventorySourceGroupId = "foo"; + var arg_partnerId = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_advertiserId = "foo"; + var arg_orderBy = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("v1/inventorySourceGroups/")); + pathOffset += 25; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["partnerId"].first, unittest.equals(arg_partnerId)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; var resp = - convert.json.encode(buildListInventorySourceGroupsResponse()); + convert.json.encode(buildListAssignedInventorySourcesResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list( + .list(arg_inventorySourceGroupId, + partnerId: arg_partnerId, + pageSize: arg_pageSize, + pageToken: arg_pageToken, advertiserId: arg_advertiserId, orderBy: arg_orderBy, - partnerId: arg_partnerId, filter: arg_filter, - pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkListInventorySourceGroupsResponse(response); + checkListAssignedInventorySourcesResponse(response); }))); }); }); @@ -10014,12 +14076,12 @@ var mock = new HttpServerMock(); api.InventorySourcesResourceApi res = new api.DisplayvideoApi(mock).inventorySources; - var arg_advertiserId = "foo"; - var arg_orderBy = "foo"; var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10052,16 +14114,16 @@ } } unittest.expect( + queryMap["partnerId"].first, unittest.equals(arg_partnerId)); + unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["partnerId"].first, unittest.equals(arg_partnerId)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10072,12 +14134,12 @@ }), true); res .list( - advertiserId: arg_advertiserId, - orderBy: arg_orderBy, partnerId: arg_partnerId, + advertiserId: arg_advertiserId, + pageSize: arg_pageSize, + orderBy: arg_orderBy, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInventorySourcesResponse(response); @@ -10141,7 +14203,244 @@ }); }); + unittest.group("resource-PartnersResourceApi", () { + unittest.test("method--bulkEditPartnerAssignedTargetingOptions", () { + var mock = new HttpServerMock(); + api.PartnersResourceApi res = new api.DisplayvideoApi(mock).partners; + var arg_request = buildBulkEditPartnerAssignedTargetingOptionsRequest(); + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.BulkEditPartnerAssignedTargetingOptionsRequest.fromJson( + json); + checkBulkEditPartnerAssignedTargetingOptionsRequest(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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildBulkEditPartnerAssignedTargetingOptionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEditPartnerAssignedTargetingOptions(arg_request, arg_partnerId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditPartnerAssignedTargetingOptionsResponse(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.PartnersResourceApi res = new api.DisplayvideoApi(mock).partners; + var arg_partnerId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPartner()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_partnerId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPartner(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.PartnersResourceApi res = new api.DisplayvideoApi(mock).partners; + var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("v1/partners")); + pathOffset += 11; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListPartnersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListPartnersResponse(response); + }))); + }); + }); + unittest.group("resource-PartnersChannelsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.PartnersChannelsResourceApi res = + new api.DisplayvideoApi(mock).partners.channels; + var arg_request = buildChannel(); + var arg_partnerId = "foo"; + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Channel.fromJson(json); + checkChannel(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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_partnerId, + advertiserId: arg_advertiserId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkChannel(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.PartnersChannelsResourceApi res = @@ -10204,11 +14503,11 @@ api.PartnersChannelsResourceApi res = new api.DisplayvideoApi(mock).partners.channels; var arg_partnerId = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_advertiserId = "foo"; var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_advertiserId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10241,15 +14540,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); - unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10260,16 +14559,615 @@ }), true); res .list(arg_partnerId, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, - advertiserId: arg_advertiserId, orderBy: arg_orderBy, + pageToken: arg_pageToken, + filter: arg_filter, + advertiserId: arg_advertiserId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListChannelsResponse(response); }))); }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.PartnersChannelsResourceApi res = + new api.DisplayvideoApi(mock).partners.channels; + var arg_request = buildChannel(); + var arg_partnerId = "foo"; + var arg_channelId = "foo"; + var arg_advertiserId = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.Channel.fromJson(json); + checkChannel(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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildChannel()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_partnerId, arg_channelId, + advertiserId: arg_advertiserId, + updateMask: arg_updateMask, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkChannel(response); + }))); + }); + }); + + unittest.group("resource-PartnersChannelsSitesResourceApi", () { + unittest.test("method--bulkEdit", () { + var mock = new HttpServerMock(); + api.PartnersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).partners.channels.sites; + var arg_request = buildBulkEditSitesRequest(); + var arg_partnerId = "foo"; + var arg_channelId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BulkEditSitesRequest.fromJson(json); + checkBulkEditSitesRequest(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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + index = path.indexOf("/channels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_partnerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBulkEditSitesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEdit(arg_request, arg_partnerId, arg_channelId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditSitesResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.PartnersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).partners.channels.sites; + var arg_request = buildSite(); + var arg_partnerId = "foo"; + var arg_channelId = "foo"; + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + index = path.indexOf("/channels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_partnerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .create(arg_request, arg_partnerId, arg_channelId, + advertiserId: arg_advertiserId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSite(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.PartnersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).partners.channels.sites; + var arg_partnerId = "foo"; + var arg_channelId = "foo"; + var arg_urlOrAppId = "foo"; + var arg_advertiserId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + index = path.indexOf("/channels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_partnerId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/channels/")); + pathOffset += 10; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_partnerId, arg_channelId, arg_urlOrAppId, + advertiserId: arg_advertiserId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.PartnersChannelsSitesResourceApi res = + new api.DisplayvideoApi(mock).partners.channels.sites; + var arg_partnerId = "foo"; + var arg_channelId = "foo"; + var arg_orderBy = "foo"; + var arg_advertiserId = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListSitesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_partnerId, arg_channelId, + orderBy: arg_orderBy, + advertiserId: arg_advertiserId, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListSitesResponse(response); + }))); + }); + }); + + unittest.group( + "resource-PartnersTargetingTypesAssignedTargetingOptionsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.PartnersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .partners + .targetingTypes + .assignedTargetingOptions; + var arg_request = buildAssignedTargetingOption(); + var arg_partnerId = "foo"; + var arg_targetingType = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AssignedTargetingOption.fromJson(json); + checkAssignedTargetingOption(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 + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAssignedTargetingOption()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_partnerId, arg_targetingType, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAssignedTargetingOption(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.PartnersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .partners + .targetingTypes + .assignedTargetingOptions; + var arg_partnerId = "foo"; + var arg_targetingType = "foo"; + var arg_assignedTargetingOptionId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_partnerId, arg_targetingType, arg_assignedTargetingOptionId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.PartnersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .partners + .targetingTypes + .assignedTargetingOptions; + var arg_partnerId = "foo"; + var arg_targetingType = "foo"; + var arg_assignedTargetingOptionId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildAssignedTargetingOption()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_partnerId, arg_targetingType, arg_assignedTargetingOptionId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkAssignedTargetingOption(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.PartnersTargetingTypesAssignedTargetingOptionsResourceApi res = + new api.DisplayvideoApi(mock) + .partners + .targetingTypes + .assignedTargetingOptions; + var arg_partnerId = "foo"; + var arg_targetingType = "foo"; + var arg_orderBy = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("v1/partners/")); + pathOffset += 12; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + 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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildListPartnerAssignedTargetingOptionsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_partnerId, arg_targetingType, + orderBy: arg_orderBy, + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListPartnerAssignedTargetingOptionsResponse(response); + }))); + }); }); unittest.group("resource-SdfdownloadtasksResourceApi", () { @@ -10446,10 +15344,10 @@ new api.DisplayvideoApi(mock).targetingTypes.targetingOptions; var arg_targetingType = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_advertiserId = "foo"; var arg_orderBy = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10484,13 +15382,13 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect( queryMap["advertiserId"].first, unittest.equals(arg_advertiserId)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10502,14 +15400,352 @@ res .list(arg_targetingType, filter: arg_filter, - pageToken: arg_pageToken, - pageSize: arg_pageSize, advertiserId: arg_advertiserId, orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTargetingOptionsResponse(response); }))); }); }); + + unittest.group("resource-UsersResourceApi", () { + unittest.test("method--bulkEditAssignedUserRoles", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_request = buildBulkEditAssignedUserRolesRequest(); + var arg_userId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BulkEditAssignedUserRolesRequest.fromJson(json); + checkBulkEditAssignedUserRolesRequest(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 + 9), + unittest.equals("v1/users/")); + pathOffset += 9; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildBulkEditAssignedUserRolesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .bulkEditAssignedUserRoles(arg_request, arg_userId, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBulkEditAssignedUserRolesResponse(response); + }))); + }); + + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_request = buildUser(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.User.fromJson(json); + checkUser(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/users")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildUser()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkUser(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_userId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("v1/users/")); + pathOffset += 9; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_userId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_userId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("v1/users/")); + pathOffset += 9; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildUser()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_userId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkUser(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("v1/users")); + pathOffset += 8; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListUsersResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + orderBy: arg_orderBy, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListUsersResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.UsersResourceApi res = new api.DisplayvideoApi(mock).users; + var arg_request = buildUser(); + var arg_userId = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.User.fromJson(json); + checkUser(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 + 9), + unittest.equals("v1/users/")); + pathOffset += 9; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildUser()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .patch(arg_request, arg_userId, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkUser(response); + }))); + }); + }); }
diff --git a/generated/googleapis/test/dlp/v2_test.dart b/generated/googleapis/test/dlp/v2_test.dart index 8753c18..2fb828a 100644 --- a/generated/googleapis/test/dlp/v2_test.dart +++ b/generated/googleapis/test/dlp/v2_test.dart
@@ -109,6 +109,7 @@ o.kMapEstimationResult = buildGooglePrivacyDlpV2KMapEstimationResult(); o.lDiversityResult = buildGooglePrivacyDlpV2LDiversityResult(); o.numericalStatsResult = buildGooglePrivacyDlpV2NumericalStatsResult(); + o.requestedOptions = buildGooglePrivacyDlpV2RequestedRiskAnalysisOptions(); o.requestedPrivacyMetric = buildGooglePrivacyDlpV2PrivacyMetric(); o.requestedSourceTable = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -127,20 +128,21 @@ checkGooglePrivacyDlpV2KMapEstimationResult(o.kMapEstimationResult); checkGooglePrivacyDlpV2LDiversityResult(o.lDiversityResult); checkGooglePrivacyDlpV2NumericalStatsResult(o.numericalStatsResult); + checkGooglePrivacyDlpV2RequestedRiskAnalysisOptions(o.requestedOptions); checkGooglePrivacyDlpV2PrivacyMetric(o.requestedPrivacyMetric); checkGooglePrivacyDlpV2BigQueryTable(o.requestedSourceTable); } buildCounterGooglePrivacyDlpV2AnalyzeDataSourceRiskDetails--; } -buildUnnamed4146() { +buildUnnamed4384() { var o = new core.List<api.GooglePrivacyDlpV2QuasiIdField>(); o.add(buildGooglePrivacyDlpV2QuasiIdField()); o.add(buildGooglePrivacyDlpV2QuasiIdField()); return o; } -checkUnnamed4146(core.List<api.GooglePrivacyDlpV2QuasiIdField> o) { +checkUnnamed4384(core.List<api.GooglePrivacyDlpV2QuasiIdField> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2QuasiIdField(o[0]); checkGooglePrivacyDlpV2QuasiIdField(o[1]); @@ -151,7 +153,7 @@ var o = new api.GooglePrivacyDlpV2AuxiliaryTable(); buildCounterGooglePrivacyDlpV2AuxiliaryTable++; if (buildCounterGooglePrivacyDlpV2AuxiliaryTable < 3) { - o.quasiIds = buildUnnamed4146(); + o.quasiIds = buildUnnamed4384(); o.relativeFrequency = buildGooglePrivacyDlpV2FieldId(); o.table = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -162,7 +164,7 @@ checkGooglePrivacyDlpV2AuxiliaryTable(api.GooglePrivacyDlpV2AuxiliaryTable o) { buildCounterGooglePrivacyDlpV2AuxiliaryTable++; if (buildCounterGooglePrivacyDlpV2AuxiliaryTable < 3) { - checkUnnamed4146(o.quasiIds); + checkUnnamed4384(o.quasiIds); checkGooglePrivacyDlpV2FieldId(o.relativeFrequency); checkGooglePrivacyDlpV2BigQueryTable(o.table); } @@ -211,27 +213,27 @@ buildCounterGooglePrivacyDlpV2BigQueryKey--; } -buildUnnamed4147() { +buildUnnamed4385() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4147(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4385(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); } -buildUnnamed4148() { +buildUnnamed4386() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4148(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4386(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -242,8 +244,8 @@ var o = new api.GooglePrivacyDlpV2BigQueryOptions(); buildCounterGooglePrivacyDlpV2BigQueryOptions++; if (buildCounterGooglePrivacyDlpV2BigQueryOptions < 3) { - o.excludedFields = buildUnnamed4147(); - o.identifyingFields = buildUnnamed4148(); + o.excludedFields = buildUnnamed4385(); + o.identifyingFields = buildUnnamed4386(); o.rowsLimit = "foo"; o.rowsLimitPercent = 42; o.sampleMethod = "foo"; @@ -257,8 +259,8 @@ api.GooglePrivacyDlpV2BigQueryOptions o) { buildCounterGooglePrivacyDlpV2BigQueryOptions++; if (buildCounterGooglePrivacyDlpV2BigQueryOptions < 3) { - checkUnnamed4147(o.excludedFields); - checkUnnamed4148(o.identifyingFields); + checkUnnamed4385(o.excludedFields); + checkUnnamed4386(o.identifyingFields); unittest.expect(o.rowsLimit, unittest.equals('foo')); unittest.expect(o.rowsLimitPercent, unittest.equals(42)); unittest.expect(o.sampleMethod, unittest.equals('foo')); @@ -338,14 +340,14 @@ buildCounterGooglePrivacyDlpV2Bucket--; } -buildUnnamed4149() { +buildUnnamed4387() { var o = new core.List<api.GooglePrivacyDlpV2Bucket>(); o.add(buildGooglePrivacyDlpV2Bucket()); o.add(buildGooglePrivacyDlpV2Bucket()); return o; } -checkUnnamed4149(core.List<api.GooglePrivacyDlpV2Bucket> o) { +checkUnnamed4387(core.List<api.GooglePrivacyDlpV2Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Bucket(o[0]); checkGooglePrivacyDlpV2Bucket(o[1]); @@ -356,7 +358,7 @@ var o = new api.GooglePrivacyDlpV2BucketingConfig(); buildCounterGooglePrivacyDlpV2BucketingConfig++; if (buildCounterGooglePrivacyDlpV2BucketingConfig < 3) { - o.buckets = buildUnnamed4149(); + o.buckets = buildUnnamed4387(); } buildCounterGooglePrivacyDlpV2BucketingConfig--; return o; @@ -366,7 +368,7 @@ api.GooglePrivacyDlpV2BucketingConfig o) { buildCounterGooglePrivacyDlpV2BucketingConfig++; if (buildCounterGooglePrivacyDlpV2BucketingConfig < 3) { - checkUnnamed4149(o.buckets); + checkUnnamed4387(o.buckets); } buildCounterGooglePrivacyDlpV2BucketingConfig--; } @@ -429,14 +431,14 @@ buildCounterGooglePrivacyDlpV2CategoricalStatsConfig--; } -buildUnnamed4150() { +buildUnnamed4388() { var o = new core.List<api.GooglePrivacyDlpV2ValueFrequency>(); o.add(buildGooglePrivacyDlpV2ValueFrequency()); o.add(buildGooglePrivacyDlpV2ValueFrequency()); return o; } -checkUnnamed4150(core.List<api.GooglePrivacyDlpV2ValueFrequency> o) { +checkUnnamed4388(core.List<api.GooglePrivacyDlpV2ValueFrequency> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2ValueFrequency(o[0]); checkGooglePrivacyDlpV2ValueFrequency(o[1]); @@ -449,7 +451,7 @@ if (buildCounterGooglePrivacyDlpV2CategoricalStatsHistogramBucket < 3) { o.bucketSize = "foo"; o.bucketValueCount = "foo"; - o.bucketValues = buildUnnamed4150(); + o.bucketValues = buildUnnamed4388(); o.valueFrequencyLowerBound = "foo"; o.valueFrequencyUpperBound = "foo"; } @@ -463,14 +465,14 @@ if (buildCounterGooglePrivacyDlpV2CategoricalStatsHistogramBucket < 3) { unittest.expect(o.bucketSize, unittest.equals('foo')); unittest.expect(o.bucketValueCount, unittest.equals('foo')); - checkUnnamed4150(o.bucketValues); + checkUnnamed4388(o.bucketValues); unittest.expect(o.valueFrequencyLowerBound, unittest.equals('foo')); unittest.expect(o.valueFrequencyUpperBound, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2CategoricalStatsHistogramBucket--; } -buildUnnamed4151() { +buildUnnamed4389() { var o = new core.List<api.GooglePrivacyDlpV2CategoricalStatsHistogramBucket>(); o.add(buildGooglePrivacyDlpV2CategoricalStatsHistogramBucket()); @@ -478,7 +480,7 @@ return o; } -checkUnnamed4151( +checkUnnamed4389( core.List<api.GooglePrivacyDlpV2CategoricalStatsHistogramBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2CategoricalStatsHistogramBucket(o[0]); @@ -490,7 +492,7 @@ var o = new api.GooglePrivacyDlpV2CategoricalStatsResult(); buildCounterGooglePrivacyDlpV2CategoricalStatsResult++; if (buildCounterGooglePrivacyDlpV2CategoricalStatsResult < 3) { - o.valueFrequencyHistogramBuckets = buildUnnamed4151(); + o.valueFrequencyHistogramBuckets = buildUnnamed4389(); } buildCounterGooglePrivacyDlpV2CategoricalStatsResult--; return o; @@ -500,19 +502,19 @@ api.GooglePrivacyDlpV2CategoricalStatsResult o) { buildCounterGooglePrivacyDlpV2CategoricalStatsResult++; if (buildCounterGooglePrivacyDlpV2CategoricalStatsResult < 3) { - checkUnnamed4151(o.valueFrequencyHistogramBuckets); + checkUnnamed4389(o.valueFrequencyHistogramBuckets); } buildCounterGooglePrivacyDlpV2CategoricalStatsResult--; } -buildUnnamed4152() { +buildUnnamed4390() { var o = new core.List<api.GooglePrivacyDlpV2CharsToIgnore>(); o.add(buildGooglePrivacyDlpV2CharsToIgnore()); o.add(buildGooglePrivacyDlpV2CharsToIgnore()); return o; } -checkUnnamed4152(core.List<api.GooglePrivacyDlpV2CharsToIgnore> o) { +checkUnnamed4390(core.List<api.GooglePrivacyDlpV2CharsToIgnore> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2CharsToIgnore(o[0]); checkGooglePrivacyDlpV2CharsToIgnore(o[1]); @@ -523,7 +525,7 @@ var o = new api.GooglePrivacyDlpV2CharacterMaskConfig(); buildCounterGooglePrivacyDlpV2CharacterMaskConfig++; if (buildCounterGooglePrivacyDlpV2CharacterMaskConfig < 3) { - o.charactersToIgnore = buildUnnamed4152(); + o.charactersToIgnore = buildUnnamed4390(); o.maskingCharacter = "foo"; o.numberToMask = 42; o.reverseOrder = true; @@ -536,7 +538,7 @@ api.GooglePrivacyDlpV2CharacterMaskConfig o) { buildCounterGooglePrivacyDlpV2CharacterMaskConfig++; if (buildCounterGooglePrivacyDlpV2CharacterMaskConfig < 3) { - checkUnnamed4152(o.charactersToIgnore); + checkUnnamed4390(o.charactersToIgnore); unittest.expect(o.maskingCharacter, unittest.equals('foo')); unittest.expect(o.numberToMask, unittest.equals(42)); unittest.expect(o.reverseOrder, unittest.isTrue); @@ -585,14 +587,14 @@ buildCounterGooglePrivacyDlpV2CloudStorageFileSet--; } -buildUnnamed4153() { +buildUnnamed4391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4153(core.List<core.String> o) { +checkUnnamed4391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -606,7 +608,7 @@ o.bytesLimitPerFile = "foo"; o.bytesLimitPerFilePercent = 42; o.fileSet = buildGooglePrivacyDlpV2FileSet(); - o.fileTypes = buildUnnamed4153(); + o.fileTypes = buildUnnamed4391(); o.filesLimitPercent = 42; o.sampleMethod = "foo"; } @@ -621,7 +623,7 @@ unittest.expect(o.bytesLimitPerFile, unittest.equals('foo')); unittest.expect(o.bytesLimitPerFilePercent, unittest.equals(42)); checkGooglePrivacyDlpV2FileSet(o.fileSet); - checkUnnamed4153(o.fileTypes); + checkUnnamed4391(o.fileTypes); unittest.expect(o.filesLimitPercent, unittest.equals(42)); unittest.expect(o.sampleMethod, unittest.equals('foo')); } @@ -648,27 +650,27 @@ buildCounterGooglePrivacyDlpV2CloudStoragePath--; } -buildUnnamed4154() { +buildUnnamed4392() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4154(core.List<core.String> o) { +checkUnnamed4392(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4155() { +buildUnnamed4393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4155(core.List<core.String> o) { +checkUnnamed4393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -680,8 +682,8 @@ buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet++; if (buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet < 3) { o.bucketName = "foo"; - o.excludeRegex = buildUnnamed4154(); - o.includeRegex = buildUnnamed4155(); + o.excludeRegex = buildUnnamed4392(); + o.includeRegex = buildUnnamed4393(); } buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet--; return o; @@ -692,8 +694,8 @@ buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet++; if (buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet < 3) { unittest.expect(o.bucketName, unittest.equals('foo')); - checkUnnamed4154(o.excludeRegex); - checkUnnamed4155(o.includeRegex); + checkUnnamed4392(o.excludeRegex); + checkUnnamed4393(o.includeRegex); } buildCounterGooglePrivacyDlpV2CloudStorageRegexFileSet--; } @@ -744,14 +746,14 @@ buildCounterGooglePrivacyDlpV2Condition--; } -buildUnnamed4156() { +buildUnnamed4394() { var o = new core.List<api.GooglePrivacyDlpV2Condition>(); o.add(buildGooglePrivacyDlpV2Condition()); o.add(buildGooglePrivacyDlpV2Condition()); return o; } -checkUnnamed4156(core.List<api.GooglePrivacyDlpV2Condition> o) { +checkUnnamed4394(core.List<api.GooglePrivacyDlpV2Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Condition(o[0]); checkGooglePrivacyDlpV2Condition(o[1]); @@ -762,7 +764,7 @@ var o = new api.GooglePrivacyDlpV2Conditions(); buildCounterGooglePrivacyDlpV2Conditions++; if (buildCounterGooglePrivacyDlpV2Conditions < 3) { - o.conditions = buildUnnamed4156(); + o.conditions = buildUnnamed4394(); } buildCounterGooglePrivacyDlpV2Conditions--; return o; @@ -771,7 +773,7 @@ checkGooglePrivacyDlpV2Conditions(api.GooglePrivacyDlpV2Conditions o) { buildCounterGooglePrivacyDlpV2Conditions++; if (buildCounterGooglePrivacyDlpV2Conditions < 3) { - checkUnnamed4156(o.conditions); + checkUnnamed4394(o.conditions); } buildCounterGooglePrivacyDlpV2Conditions--; } @@ -1081,14 +1083,14 @@ buildCounterGooglePrivacyDlpV2CryptoReplaceFfxFpeConfig--; } -buildUnnamed4157() { +buildUnnamed4395() { var o = new core.List<api.GooglePrivacyDlpV2DetectionRule>(); o.add(buildGooglePrivacyDlpV2DetectionRule()); o.add(buildGooglePrivacyDlpV2DetectionRule()); return o; } -checkUnnamed4157(core.List<api.GooglePrivacyDlpV2DetectionRule> o) { +checkUnnamed4395(core.List<api.GooglePrivacyDlpV2DetectionRule> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2DetectionRule(o[0]); checkGooglePrivacyDlpV2DetectionRule(o[1]); @@ -1099,7 +1101,7 @@ var o = new api.GooglePrivacyDlpV2CustomInfoType(); buildCounterGooglePrivacyDlpV2CustomInfoType++; if (buildCounterGooglePrivacyDlpV2CustomInfoType < 3) { - o.detectionRules = buildUnnamed4157(); + o.detectionRules = buildUnnamed4395(); o.dictionary = buildGooglePrivacyDlpV2Dictionary(); o.exclusionType = "foo"; o.infoType = buildGooglePrivacyDlpV2InfoType(); @@ -1115,7 +1117,7 @@ checkGooglePrivacyDlpV2CustomInfoType(api.GooglePrivacyDlpV2CustomInfoType o) { buildCounterGooglePrivacyDlpV2CustomInfoType++; if (buildCounterGooglePrivacyDlpV2CustomInfoType < 3) { - checkUnnamed4157(o.detectionRules); + checkUnnamed4395(o.detectionRules); checkGooglePrivacyDlpV2Dictionary(o.dictionary); unittest.expect(o.exclusionType, unittest.equals('foo')); checkGooglePrivacyDlpV2InfoType(o.infoType); @@ -1328,27 +1330,27 @@ buildCounterGooglePrivacyDlpV2DeidentifyTemplate--; } -buildUnnamed4158() { +buildUnnamed4396() { var o = new core.List<api.GooglePrivacyDlpV2StatisticalTable>(); o.add(buildGooglePrivacyDlpV2StatisticalTable()); o.add(buildGooglePrivacyDlpV2StatisticalTable()); return o; } -checkUnnamed4158(core.List<api.GooglePrivacyDlpV2StatisticalTable> o) { +checkUnnamed4396(core.List<api.GooglePrivacyDlpV2StatisticalTable> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2StatisticalTable(o[0]); checkGooglePrivacyDlpV2StatisticalTable(o[1]); } -buildUnnamed4159() { +buildUnnamed4397() { var o = new core.List<api.GooglePrivacyDlpV2QuasiId>(); o.add(buildGooglePrivacyDlpV2QuasiId()); o.add(buildGooglePrivacyDlpV2QuasiId()); return o; } -checkUnnamed4159(core.List<api.GooglePrivacyDlpV2QuasiId> o) { +checkUnnamed4397(core.List<api.GooglePrivacyDlpV2QuasiId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2QuasiId(o[0]); checkGooglePrivacyDlpV2QuasiId(o[1]); @@ -1359,8 +1361,8 @@ var o = new api.GooglePrivacyDlpV2DeltaPresenceEstimationConfig(); buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig < 3) { - o.auxiliaryTables = buildUnnamed4158(); - o.quasiIds = buildUnnamed4159(); + o.auxiliaryTables = buildUnnamed4396(); + o.quasiIds = buildUnnamed4397(); o.regionCode = "foo"; } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig--; @@ -1371,14 +1373,14 @@ api.GooglePrivacyDlpV2DeltaPresenceEstimationConfig o) { buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig < 3) { - checkUnnamed4158(o.auxiliaryTables); - checkUnnamed4159(o.quasiIds); + checkUnnamed4396(o.auxiliaryTables); + checkUnnamed4397(o.quasiIds); unittest.expect(o.regionCode, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationConfig--; } -buildUnnamed4160() { +buildUnnamed4398() { var o = new core .List<api.GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues>(); o.add(buildGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues()); @@ -1386,7 +1388,7 @@ return o; } -checkUnnamed4160( +checkUnnamed4398( core.List<api.GooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues(o[0]); @@ -1402,7 +1404,7 @@ 3) { o.bucketSize = "foo"; o.bucketValueCount = "foo"; - o.bucketValues = buildUnnamed4160(); + o.bucketValues = buildUnnamed4398(); o.maxProbability = 42.0; o.minProbability = 42.0; } @@ -1417,21 +1419,21 @@ 3) { unittest.expect(o.bucketSize, unittest.equals('foo')); unittest.expect(o.bucketValueCount, unittest.equals('foo')); - checkUnnamed4160(o.bucketValues); + checkUnnamed4398(o.bucketValues); unittest.expect(o.maxProbability, unittest.equals(42.0)); unittest.expect(o.minProbability, unittest.equals(42.0)); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket--; } -buildUnnamed4161() { +buildUnnamed4399() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4161(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4399(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -1443,7 +1445,7 @@ buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues < 3) { o.estimatedProbability = 42.0; - o.quasiIdsValues = buildUnnamed4161(); + o.quasiIdsValues = buildUnnamed4399(); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues--; return o; @@ -1454,12 +1456,12 @@ buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues < 3) { unittest.expect(o.estimatedProbability, unittest.equals(42.0)); - checkUnnamed4161(o.quasiIdsValues); + checkUnnamed4399(o.quasiIdsValues); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationQuasiIdValues--; } -buildUnnamed4162() { +buildUnnamed4400() { var o = new core .List<api.GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket>(); o.add(buildGooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket()); @@ -1467,7 +1469,7 @@ return o; } -checkUnnamed4162( +checkUnnamed4400( core.List<api.GooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2DeltaPresenceEstimationHistogramBucket(o[0]); @@ -1479,7 +1481,7 @@ var o = new api.GooglePrivacyDlpV2DeltaPresenceEstimationResult(); buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult < 3) { - o.deltaPresenceEstimationHistogram = buildUnnamed4162(); + o.deltaPresenceEstimationHistogram = buildUnnamed4400(); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult--; return o; @@ -1489,7 +1491,7 @@ api.GooglePrivacyDlpV2DeltaPresenceEstimationResult o) { buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult++; if (buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult < 3) { - checkUnnamed4162(o.deltaPresenceEstimationHistogram); + checkUnnamed4400(o.deltaPresenceEstimationHistogram); } buildCounterGooglePrivacyDlpV2DeltaPresenceEstimationResult--; } @@ -1534,14 +1536,14 @@ buildCounterGooglePrivacyDlpV2Dictionary--; } -buildUnnamed4163() { +buildUnnamed4401() { var o = new core.List<api.GooglePrivacyDlpV2Error>(); o.add(buildGooglePrivacyDlpV2Error()); o.add(buildGooglePrivacyDlpV2Error()); return o; } -checkUnnamed4163(core.List<api.GooglePrivacyDlpV2Error> o) { +checkUnnamed4401(core.List<api.GooglePrivacyDlpV2Error> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Error(o[0]); checkGooglePrivacyDlpV2Error(o[1]); @@ -1554,7 +1556,7 @@ if (buildCounterGooglePrivacyDlpV2DlpJob < 3) { o.createTime = "foo"; o.endTime = "foo"; - o.errors = buildUnnamed4163(); + o.errors = buildUnnamed4401(); o.inspectDetails = buildGooglePrivacyDlpV2InspectDataSourceDetails(); o.jobTriggerName = "foo"; o.name = "foo"; @@ -1572,7 +1574,7 @@ if (buildCounterGooglePrivacyDlpV2DlpJob < 3) { unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed4163(o.errors); + checkUnnamed4401(o.errors); checkGooglePrivacyDlpV2InspectDataSourceDetails(o.inspectDetails); unittest.expect(o.jobTriggerName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -1623,14 +1625,14 @@ buildCounterGooglePrivacyDlpV2EntityId--; } -buildUnnamed4164() { +buildUnnamed4402() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4164(core.List<core.String> o) { +checkUnnamed4402(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1642,7 +1644,7 @@ buildCounterGooglePrivacyDlpV2Error++; if (buildCounterGooglePrivacyDlpV2Error < 3) { o.details = buildGoogleRpcStatus(); - o.timestamps = buildUnnamed4164(); + o.timestamps = buildUnnamed4402(); } buildCounterGooglePrivacyDlpV2Error--; return o; @@ -1652,19 +1654,19 @@ buildCounterGooglePrivacyDlpV2Error++; if (buildCounterGooglePrivacyDlpV2Error < 3) { checkGoogleRpcStatus(o.details); - checkUnnamed4164(o.timestamps); + checkUnnamed4402(o.timestamps); } buildCounterGooglePrivacyDlpV2Error--; } -buildUnnamed4165() { +buildUnnamed4403() { var o = new core.List<api.GooglePrivacyDlpV2InfoType>(); o.add(buildGooglePrivacyDlpV2InfoType()); o.add(buildGooglePrivacyDlpV2InfoType()); return o; } -checkUnnamed4165(core.List<api.GooglePrivacyDlpV2InfoType> o) { +checkUnnamed4403(core.List<api.GooglePrivacyDlpV2InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoType(o[0]); checkGooglePrivacyDlpV2InfoType(o[1]); @@ -1675,7 +1677,7 @@ var o = new api.GooglePrivacyDlpV2ExcludeInfoTypes(); buildCounterGooglePrivacyDlpV2ExcludeInfoTypes++; if (buildCounterGooglePrivacyDlpV2ExcludeInfoTypes < 3) { - o.infoTypes = buildUnnamed4165(); + o.infoTypes = buildUnnamed4403(); } buildCounterGooglePrivacyDlpV2ExcludeInfoTypes--; return o; @@ -1685,7 +1687,7 @@ api.GooglePrivacyDlpV2ExcludeInfoTypes o) { buildCounterGooglePrivacyDlpV2ExcludeInfoTypes++; if (buildCounterGooglePrivacyDlpV2ExcludeInfoTypes < 3) { - checkUnnamed4165(o.infoTypes); + checkUnnamed4403(o.infoTypes); } buildCounterGooglePrivacyDlpV2ExcludeInfoTypes--; } @@ -1755,14 +1757,14 @@ buildCounterGooglePrivacyDlpV2FieldId--; } -buildUnnamed4166() { +buildUnnamed4404() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4166(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4404(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -1774,7 +1776,7 @@ buildCounterGooglePrivacyDlpV2FieldTransformation++; if (buildCounterGooglePrivacyDlpV2FieldTransformation < 3) { o.condition = buildGooglePrivacyDlpV2RecordCondition(); - o.fields = buildUnnamed4166(); + o.fields = buildUnnamed4404(); o.infoTypeTransformations = buildGooglePrivacyDlpV2InfoTypeTransformations(); o.primitiveTransformation = @@ -1789,7 +1791,7 @@ buildCounterGooglePrivacyDlpV2FieldTransformation++; if (buildCounterGooglePrivacyDlpV2FieldTransformation < 3) { checkGooglePrivacyDlpV2RecordCondition(o.condition); - checkUnnamed4166(o.fields); + checkUnnamed4404(o.fields); checkGooglePrivacyDlpV2InfoTypeTransformations(o.infoTypeTransformations); checkGooglePrivacyDlpV2PrimitiveTransformation(o.primitiveTransformation); } @@ -1817,14 +1819,14 @@ buildCounterGooglePrivacyDlpV2FileSet--; } -buildUnnamed4167() { +buildUnnamed4405() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4167(core.Map<core.String, core.String> o) { +checkUnnamed4405(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -1839,7 +1841,7 @@ o.infoType = buildGooglePrivacyDlpV2InfoType(); o.jobCreateTime = "foo"; o.jobName = "foo"; - o.labels = buildUnnamed4167(); + o.labels = buildUnnamed4405(); o.likelihood = "foo"; o.location = buildGooglePrivacyDlpV2Location(); o.name = "foo"; @@ -1859,7 +1861,7 @@ checkGooglePrivacyDlpV2InfoType(o.infoType); unittest.expect(o.jobCreateTime, unittest.equals('foo')); unittest.expect(o.jobName, unittest.equals('foo')); - checkUnnamed4167(o.labels); + checkUnnamed4405(o.labels); unittest.expect(o.likelihood, unittest.equals('foo')); checkGooglePrivacyDlpV2Location(o.location); unittest.expect(o.name, unittest.equals('foo')); @@ -1871,14 +1873,14 @@ buildCounterGooglePrivacyDlpV2Finding--; } -buildUnnamed4168() { +buildUnnamed4406() { var o = new core.List<api.GooglePrivacyDlpV2InfoTypeLimit>(); o.add(buildGooglePrivacyDlpV2InfoTypeLimit()); o.add(buildGooglePrivacyDlpV2InfoTypeLimit()); return o; } -checkUnnamed4168(core.List<api.GooglePrivacyDlpV2InfoTypeLimit> o) { +checkUnnamed4406(core.List<api.GooglePrivacyDlpV2InfoTypeLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeLimit(o[0]); checkGooglePrivacyDlpV2InfoTypeLimit(o[1]); @@ -1889,7 +1891,7 @@ var o = new api.GooglePrivacyDlpV2FindingLimits(); buildCounterGooglePrivacyDlpV2FindingLimits++; if (buildCounterGooglePrivacyDlpV2FindingLimits < 3) { - o.maxFindingsPerInfoType = buildUnnamed4168(); + o.maxFindingsPerInfoType = buildUnnamed4406(); o.maxFindingsPerItem = 42; o.maxFindingsPerRequest = 42; } @@ -1900,7 +1902,7 @@ checkGooglePrivacyDlpV2FindingLimits(api.GooglePrivacyDlpV2FindingLimits o) { buildCounterGooglePrivacyDlpV2FindingLimits++; if (buildCounterGooglePrivacyDlpV2FindingLimits < 3) { - checkUnnamed4168(o.maxFindingsPerInfoType); + checkUnnamed4406(o.maxFindingsPerInfoType); unittest.expect(o.maxFindingsPerItem, unittest.equals(42)); unittest.expect(o.maxFindingsPerRequest, unittest.equals(42)); } @@ -1992,14 +1994,14 @@ buildCounterGooglePrivacyDlpV2HybridContentItem--; } -buildUnnamed4169() { +buildUnnamed4407() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4169(core.Map<core.String, core.String> o) { +checkUnnamed4407(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')); @@ -2012,7 +2014,7 @@ if (buildCounterGooglePrivacyDlpV2HybridFindingDetails < 3) { o.containerDetails = buildGooglePrivacyDlpV2Container(); o.fileOffset = "foo"; - o.labels = buildUnnamed4169(); + o.labels = buildUnnamed4407(); o.rowOffset = "foo"; o.tableOptions = buildGooglePrivacyDlpV2TableOptions(); } @@ -2026,7 +2028,7 @@ if (buildCounterGooglePrivacyDlpV2HybridFindingDetails < 3) { checkGooglePrivacyDlpV2Container(o.containerDetails); unittest.expect(o.fileOffset, unittest.equals('foo')); - checkUnnamed4169(o.labels); + checkUnnamed4407(o.labels); unittest.expect(o.rowOffset, unittest.equals('foo')); checkGooglePrivacyDlpV2TableOptions(o.tableOptions); } @@ -2113,27 +2115,27 @@ buildCounterGooglePrivacyDlpV2HybridInspectStatistics--; } -buildUnnamed4170() { +buildUnnamed4408() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4170(core.Map<core.String, core.String> o) { +checkUnnamed4408(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')); } -buildUnnamed4171() { +buildUnnamed4409() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4171(core.List<core.String> o) { +checkUnnamed4409(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2145,8 +2147,8 @@ buildCounterGooglePrivacyDlpV2HybridOptions++; if (buildCounterGooglePrivacyDlpV2HybridOptions < 3) { o.description = "foo"; - o.labels = buildUnnamed4170(); - o.requiredFindingLabelKeys = buildUnnamed4171(); + o.labels = buildUnnamed4408(); + o.requiredFindingLabelKeys = buildUnnamed4409(); o.tableOptions = buildGooglePrivacyDlpV2TableOptions(); } buildCounterGooglePrivacyDlpV2HybridOptions--; @@ -2157,21 +2159,21 @@ buildCounterGooglePrivacyDlpV2HybridOptions++; if (buildCounterGooglePrivacyDlpV2HybridOptions < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed4170(o.labels); - checkUnnamed4171(o.requiredFindingLabelKeys); + checkUnnamed4408(o.labels); + checkUnnamed4409(o.requiredFindingLabelKeys); checkGooglePrivacyDlpV2TableOptions(o.tableOptions); } buildCounterGooglePrivacyDlpV2HybridOptions--; } -buildUnnamed4172() { +buildUnnamed4410() { var o = new core.List<api.GooglePrivacyDlpV2BoundingBox>(); o.add(buildGooglePrivacyDlpV2BoundingBox()); o.add(buildGooglePrivacyDlpV2BoundingBox()); return o; } -checkUnnamed4172(core.List<api.GooglePrivacyDlpV2BoundingBox> o) { +checkUnnamed4410(core.List<api.GooglePrivacyDlpV2BoundingBox> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2BoundingBox(o[0]); checkGooglePrivacyDlpV2BoundingBox(o[1]); @@ -2182,7 +2184,7 @@ var o = new api.GooglePrivacyDlpV2ImageLocation(); buildCounterGooglePrivacyDlpV2ImageLocation++; if (buildCounterGooglePrivacyDlpV2ImageLocation < 3) { - o.boundingBoxes = buildUnnamed4172(); + o.boundingBoxes = buildUnnamed4410(); } buildCounterGooglePrivacyDlpV2ImageLocation--; return o; @@ -2191,7 +2193,7 @@ checkGooglePrivacyDlpV2ImageLocation(api.GooglePrivacyDlpV2ImageLocation o) { buildCounterGooglePrivacyDlpV2ImageLocation++; if (buildCounterGooglePrivacyDlpV2ImageLocation < 3) { - checkUnnamed4172(o.boundingBoxes); + checkUnnamed4410(o.boundingBoxes); } buildCounterGooglePrivacyDlpV2ImageLocation--; } @@ -2239,14 +2241,14 @@ buildCounterGooglePrivacyDlpV2InfoType--; } -buildUnnamed4173() { +buildUnnamed4411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4173(core.List<core.String> o) { +checkUnnamed4411(core.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,7 +2262,7 @@ o.description = "foo"; o.displayName = "foo"; o.name = "foo"; - o.supportedBy = buildUnnamed4173(); + o.supportedBy = buildUnnamed4411(); } buildCounterGooglePrivacyDlpV2InfoTypeDescription--; return o; @@ -2273,7 +2275,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4173(o.supportedBy); + checkUnnamed4411(o.supportedBy); } buildCounterGooglePrivacyDlpV2InfoTypeDescription--; } @@ -2320,14 +2322,14 @@ buildCounterGooglePrivacyDlpV2InfoTypeStats--; } -buildUnnamed4174() { +buildUnnamed4412() { var o = new core.List<api.GooglePrivacyDlpV2InfoType>(); o.add(buildGooglePrivacyDlpV2InfoType()); o.add(buildGooglePrivacyDlpV2InfoType()); return o; } -checkUnnamed4174(core.List<api.GooglePrivacyDlpV2InfoType> o) { +checkUnnamed4412(core.List<api.GooglePrivacyDlpV2InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoType(o[0]); checkGooglePrivacyDlpV2InfoType(o[1]); @@ -2338,7 +2340,7 @@ var o = new api.GooglePrivacyDlpV2InfoTypeTransformation(); buildCounterGooglePrivacyDlpV2InfoTypeTransformation++; if (buildCounterGooglePrivacyDlpV2InfoTypeTransformation < 3) { - o.infoTypes = buildUnnamed4174(); + o.infoTypes = buildUnnamed4412(); o.primitiveTransformation = buildGooglePrivacyDlpV2PrimitiveTransformation(); } @@ -2350,20 +2352,20 @@ api.GooglePrivacyDlpV2InfoTypeTransformation o) { buildCounterGooglePrivacyDlpV2InfoTypeTransformation++; if (buildCounterGooglePrivacyDlpV2InfoTypeTransformation < 3) { - checkUnnamed4174(o.infoTypes); + checkUnnamed4412(o.infoTypes); checkGooglePrivacyDlpV2PrimitiveTransformation(o.primitiveTransformation); } buildCounterGooglePrivacyDlpV2InfoTypeTransformation--; } -buildUnnamed4175() { +buildUnnamed4413() { var o = new core.List<api.GooglePrivacyDlpV2InfoTypeTransformation>(); o.add(buildGooglePrivacyDlpV2InfoTypeTransformation()); o.add(buildGooglePrivacyDlpV2InfoTypeTransformation()); return o; } -checkUnnamed4175(core.List<api.GooglePrivacyDlpV2InfoTypeTransformation> o) { +checkUnnamed4413(core.List<api.GooglePrivacyDlpV2InfoTypeTransformation> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeTransformation(o[0]); checkGooglePrivacyDlpV2InfoTypeTransformation(o[1]); @@ -2374,7 +2376,7 @@ var o = new api.GooglePrivacyDlpV2InfoTypeTransformations(); buildCounterGooglePrivacyDlpV2InfoTypeTransformations++; if (buildCounterGooglePrivacyDlpV2InfoTypeTransformations < 3) { - o.transformations = buildUnnamed4175(); + o.transformations = buildUnnamed4413(); } buildCounterGooglePrivacyDlpV2InfoTypeTransformations--; return o; @@ -2384,58 +2386,58 @@ api.GooglePrivacyDlpV2InfoTypeTransformations o) { buildCounterGooglePrivacyDlpV2InfoTypeTransformations++; if (buildCounterGooglePrivacyDlpV2InfoTypeTransformations < 3) { - checkUnnamed4175(o.transformations); + checkUnnamed4413(o.transformations); } buildCounterGooglePrivacyDlpV2InfoTypeTransformations--; } -buildUnnamed4176() { +buildUnnamed4414() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4176(core.List<core.String> o) { +checkUnnamed4414(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4177() { +buildUnnamed4415() { var o = new core.List<api.GooglePrivacyDlpV2CustomInfoType>(); o.add(buildGooglePrivacyDlpV2CustomInfoType()); o.add(buildGooglePrivacyDlpV2CustomInfoType()); return o; } -checkUnnamed4177(core.List<api.GooglePrivacyDlpV2CustomInfoType> o) { +checkUnnamed4415(core.List<api.GooglePrivacyDlpV2CustomInfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2CustomInfoType(o[0]); checkGooglePrivacyDlpV2CustomInfoType(o[1]); } -buildUnnamed4178() { +buildUnnamed4416() { var o = new core.List<api.GooglePrivacyDlpV2InfoType>(); o.add(buildGooglePrivacyDlpV2InfoType()); o.add(buildGooglePrivacyDlpV2InfoType()); return o; } -checkUnnamed4178(core.List<api.GooglePrivacyDlpV2InfoType> o) { +checkUnnamed4416(core.List<api.GooglePrivacyDlpV2InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoType(o[0]); checkGooglePrivacyDlpV2InfoType(o[1]); } -buildUnnamed4179() { +buildUnnamed4417() { var o = new core.List<api.GooglePrivacyDlpV2InspectionRuleSet>(); o.add(buildGooglePrivacyDlpV2InspectionRuleSet()); o.add(buildGooglePrivacyDlpV2InspectionRuleSet()); return o; } -checkUnnamed4179(core.List<api.GooglePrivacyDlpV2InspectionRuleSet> o) { +checkUnnamed4417(core.List<api.GooglePrivacyDlpV2InspectionRuleSet> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InspectionRuleSet(o[0]); checkGooglePrivacyDlpV2InspectionRuleSet(o[1]); @@ -2446,14 +2448,14 @@ var o = new api.GooglePrivacyDlpV2InspectConfig(); buildCounterGooglePrivacyDlpV2InspectConfig++; if (buildCounterGooglePrivacyDlpV2InspectConfig < 3) { - o.contentOptions = buildUnnamed4176(); - o.customInfoTypes = buildUnnamed4177(); + o.contentOptions = buildUnnamed4414(); + o.customInfoTypes = buildUnnamed4415(); o.excludeInfoTypes = true; o.includeQuote = true; - o.infoTypes = buildUnnamed4178(); + o.infoTypes = buildUnnamed4416(); o.limits = buildGooglePrivacyDlpV2FindingLimits(); o.minLikelihood = "foo"; - o.ruleSet = buildUnnamed4179(); + o.ruleSet = buildUnnamed4417(); } buildCounterGooglePrivacyDlpV2InspectConfig--; return o; @@ -2462,14 +2464,14 @@ checkGooglePrivacyDlpV2InspectConfig(api.GooglePrivacyDlpV2InspectConfig o) { buildCounterGooglePrivacyDlpV2InspectConfig++; if (buildCounterGooglePrivacyDlpV2InspectConfig < 3) { - checkUnnamed4176(o.contentOptions); - checkUnnamed4177(o.customInfoTypes); + checkUnnamed4414(o.contentOptions); + checkUnnamed4415(o.customInfoTypes); unittest.expect(o.excludeInfoTypes, unittest.isTrue); unittest.expect(o.includeQuote, unittest.isTrue); - checkUnnamed4178(o.infoTypes); + checkUnnamed4416(o.infoTypes); checkGooglePrivacyDlpV2FindingLimits(o.limits); unittest.expect(o.minLikelihood, unittest.equals('foo')); - checkUnnamed4179(o.ruleSet); + checkUnnamed4417(o.ruleSet); } buildCounterGooglePrivacyDlpV2InspectConfig--; } @@ -2542,14 +2544,14 @@ buildCounterGooglePrivacyDlpV2InspectDataSourceDetails--; } -buildUnnamed4180() { +buildUnnamed4418() { var o = new core.List<api.GooglePrivacyDlpV2Action>(); o.add(buildGooglePrivacyDlpV2Action()); o.add(buildGooglePrivacyDlpV2Action()); return o; } -checkUnnamed4180(core.List<api.GooglePrivacyDlpV2Action> o) { +checkUnnamed4418(core.List<api.GooglePrivacyDlpV2Action> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Action(o[0]); checkGooglePrivacyDlpV2Action(o[1]); @@ -2560,7 +2562,7 @@ var o = new api.GooglePrivacyDlpV2InspectJobConfig(); buildCounterGooglePrivacyDlpV2InspectJobConfig++; if (buildCounterGooglePrivacyDlpV2InspectJobConfig < 3) { - o.actions = buildUnnamed4180(); + o.actions = buildUnnamed4418(); o.inspectConfig = buildGooglePrivacyDlpV2InspectConfig(); o.inspectTemplateName = "foo"; o.storageConfig = buildGooglePrivacyDlpV2StorageConfig(); @@ -2573,7 +2575,7 @@ api.GooglePrivacyDlpV2InspectJobConfig o) { buildCounterGooglePrivacyDlpV2InspectJobConfig++; if (buildCounterGooglePrivacyDlpV2InspectJobConfig < 3) { - checkUnnamed4180(o.actions); + checkUnnamed4418(o.actions); checkGooglePrivacyDlpV2InspectConfig(o.inspectConfig); unittest.expect(o.inspectTemplateName, unittest.equals('foo')); checkGooglePrivacyDlpV2StorageConfig(o.storageConfig); @@ -2581,14 +2583,14 @@ buildCounterGooglePrivacyDlpV2InspectJobConfig--; } -buildUnnamed4181() { +buildUnnamed4419() { var o = new core.List<api.GooglePrivacyDlpV2Finding>(); o.add(buildGooglePrivacyDlpV2Finding()); o.add(buildGooglePrivacyDlpV2Finding()); return o; } -checkUnnamed4181(core.List<api.GooglePrivacyDlpV2Finding> o) { +checkUnnamed4419(core.List<api.GooglePrivacyDlpV2Finding> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Finding(o[0]); checkGooglePrivacyDlpV2Finding(o[1]); @@ -2599,7 +2601,7 @@ var o = new api.GooglePrivacyDlpV2InspectResult(); buildCounterGooglePrivacyDlpV2InspectResult++; if (buildCounterGooglePrivacyDlpV2InspectResult < 3) { - o.findings = buildUnnamed4181(); + o.findings = buildUnnamed4419(); o.findingsTruncated = true; } buildCounterGooglePrivacyDlpV2InspectResult--; @@ -2609,7 +2611,7 @@ checkGooglePrivacyDlpV2InspectResult(api.GooglePrivacyDlpV2InspectResult o) { buildCounterGooglePrivacyDlpV2InspectResult++; if (buildCounterGooglePrivacyDlpV2InspectResult < 3) { - checkUnnamed4181(o.findings); + checkUnnamed4419(o.findings); unittest.expect(o.findingsTruncated, unittest.isTrue); } buildCounterGooglePrivacyDlpV2InspectResult--; @@ -2666,27 +2668,27 @@ buildCounterGooglePrivacyDlpV2InspectionRule--; } -buildUnnamed4182() { +buildUnnamed4420() { var o = new core.List<api.GooglePrivacyDlpV2InfoType>(); o.add(buildGooglePrivacyDlpV2InfoType()); o.add(buildGooglePrivacyDlpV2InfoType()); return o; } -checkUnnamed4182(core.List<api.GooglePrivacyDlpV2InfoType> o) { +checkUnnamed4420(core.List<api.GooglePrivacyDlpV2InfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoType(o[0]); checkGooglePrivacyDlpV2InfoType(o[1]); } -buildUnnamed4183() { +buildUnnamed4421() { var o = new core.List<api.GooglePrivacyDlpV2InspectionRule>(); o.add(buildGooglePrivacyDlpV2InspectionRule()); o.add(buildGooglePrivacyDlpV2InspectionRule()); return o; } -checkUnnamed4183(core.List<api.GooglePrivacyDlpV2InspectionRule> o) { +checkUnnamed4421(core.List<api.GooglePrivacyDlpV2InspectionRule> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InspectionRule(o[0]); checkGooglePrivacyDlpV2InspectionRule(o[1]); @@ -2697,8 +2699,8 @@ var o = new api.GooglePrivacyDlpV2InspectionRuleSet(); buildCounterGooglePrivacyDlpV2InspectionRuleSet++; if (buildCounterGooglePrivacyDlpV2InspectionRuleSet < 3) { - o.infoTypes = buildUnnamed4182(); - o.rules = buildUnnamed4183(); + o.infoTypes = buildUnnamed4420(); + o.rules = buildUnnamed4421(); } buildCounterGooglePrivacyDlpV2InspectionRuleSet--; return o; @@ -2708,8 +2710,8 @@ api.GooglePrivacyDlpV2InspectionRuleSet o) { buildCounterGooglePrivacyDlpV2InspectionRuleSet++; if (buildCounterGooglePrivacyDlpV2InspectionRuleSet < 3) { - checkUnnamed4182(o.infoTypes); - checkUnnamed4183(o.rules); + checkUnnamed4420(o.infoTypes); + checkUnnamed4421(o.rules); } buildCounterGooglePrivacyDlpV2InspectionRuleSet--; } @@ -2730,27 +2732,27 @@ buildCounterGooglePrivacyDlpV2JobNotificationEmails--; } -buildUnnamed4184() { +buildUnnamed4422() { var o = new core.List<api.GooglePrivacyDlpV2Error>(); o.add(buildGooglePrivacyDlpV2Error()); o.add(buildGooglePrivacyDlpV2Error()); return o; } -checkUnnamed4184(core.List<api.GooglePrivacyDlpV2Error> o) { +checkUnnamed4422(core.List<api.GooglePrivacyDlpV2Error> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Error(o[0]); checkGooglePrivacyDlpV2Error(o[1]); } -buildUnnamed4185() { +buildUnnamed4423() { var o = new core.List<api.GooglePrivacyDlpV2Trigger>(); o.add(buildGooglePrivacyDlpV2Trigger()); o.add(buildGooglePrivacyDlpV2Trigger()); return o; } -checkUnnamed4185(core.List<api.GooglePrivacyDlpV2Trigger> o) { +checkUnnamed4423(core.List<api.GooglePrivacyDlpV2Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Trigger(o[0]); checkGooglePrivacyDlpV2Trigger(o[1]); @@ -2764,12 +2766,12 @@ o.createTime = "foo"; o.description = "foo"; o.displayName = "foo"; - o.errors = buildUnnamed4184(); + o.errors = buildUnnamed4422(); o.inspectJob = buildGooglePrivacyDlpV2InspectJobConfig(); o.lastRunTime = "foo"; o.name = "foo"; o.status = "foo"; - o.triggers = buildUnnamed4185(); + o.triggers = buildUnnamed4423(); o.updateTime = "foo"; } buildCounterGooglePrivacyDlpV2JobTrigger--; @@ -2782,25 +2784,25 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4184(o.errors); + checkUnnamed4422(o.errors); checkGooglePrivacyDlpV2InspectJobConfig(o.inspectJob); unittest.expect(o.lastRunTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); - checkUnnamed4185(o.triggers); + checkUnnamed4423(o.triggers); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2JobTrigger--; } -buildUnnamed4186() { +buildUnnamed4424() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4186(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4424(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -2812,7 +2814,7 @@ buildCounterGooglePrivacyDlpV2KAnonymityConfig++; if (buildCounterGooglePrivacyDlpV2KAnonymityConfig < 3) { o.entityId = buildGooglePrivacyDlpV2EntityId(); - o.quasiIds = buildUnnamed4186(); + o.quasiIds = buildUnnamed4424(); } buildCounterGooglePrivacyDlpV2KAnonymityConfig--; return o; @@ -2823,19 +2825,19 @@ buildCounterGooglePrivacyDlpV2KAnonymityConfig++; if (buildCounterGooglePrivacyDlpV2KAnonymityConfig < 3) { checkGooglePrivacyDlpV2EntityId(o.entityId); - checkUnnamed4186(o.quasiIds); + checkUnnamed4424(o.quasiIds); } buildCounterGooglePrivacyDlpV2KAnonymityConfig--; } -buildUnnamed4187() { +buildUnnamed4425() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4187(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4425(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -2847,7 +2849,7 @@ buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass++; if (buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass < 3) { o.equivalenceClassSize = "foo"; - o.quasiIdsValues = buildUnnamed4187(); + o.quasiIdsValues = buildUnnamed4425(); } buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass--; return o; @@ -2858,19 +2860,19 @@ buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass++; if (buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass < 3) { unittest.expect(o.equivalenceClassSize, unittest.equals('foo')); - checkUnnamed4187(o.quasiIdsValues); + checkUnnamed4425(o.quasiIdsValues); } buildCounterGooglePrivacyDlpV2KAnonymityEquivalenceClass--; } -buildUnnamed4188() { +buildUnnamed4426() { var o = new core.List<api.GooglePrivacyDlpV2KAnonymityEquivalenceClass>(); o.add(buildGooglePrivacyDlpV2KAnonymityEquivalenceClass()); o.add(buildGooglePrivacyDlpV2KAnonymityEquivalenceClass()); return o; } -checkUnnamed4188( +checkUnnamed4426( core.List<api.GooglePrivacyDlpV2KAnonymityEquivalenceClass> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2KAnonymityEquivalenceClass(o[0]); @@ -2884,7 +2886,7 @@ if (buildCounterGooglePrivacyDlpV2KAnonymityHistogramBucket < 3) { o.bucketSize = "foo"; o.bucketValueCount = "foo"; - o.bucketValues = buildUnnamed4188(); + o.bucketValues = buildUnnamed4426(); o.equivalenceClassSizeLowerBound = "foo"; o.equivalenceClassSizeUpperBound = "foo"; } @@ -2898,21 +2900,21 @@ if (buildCounterGooglePrivacyDlpV2KAnonymityHistogramBucket < 3) { unittest.expect(o.bucketSize, unittest.equals('foo')); unittest.expect(o.bucketValueCount, unittest.equals('foo')); - checkUnnamed4188(o.bucketValues); + checkUnnamed4426(o.bucketValues); unittest.expect(o.equivalenceClassSizeLowerBound, unittest.equals('foo')); unittest.expect(o.equivalenceClassSizeUpperBound, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2KAnonymityHistogramBucket--; } -buildUnnamed4189() { +buildUnnamed4427() { var o = new core.List<api.GooglePrivacyDlpV2KAnonymityHistogramBucket>(); o.add(buildGooglePrivacyDlpV2KAnonymityHistogramBucket()); o.add(buildGooglePrivacyDlpV2KAnonymityHistogramBucket()); return o; } -checkUnnamed4189(core.List<api.GooglePrivacyDlpV2KAnonymityHistogramBucket> o) { +checkUnnamed4427(core.List<api.GooglePrivacyDlpV2KAnonymityHistogramBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2KAnonymityHistogramBucket(o[0]); checkGooglePrivacyDlpV2KAnonymityHistogramBucket(o[1]); @@ -2923,7 +2925,7 @@ var o = new api.GooglePrivacyDlpV2KAnonymityResult(); buildCounterGooglePrivacyDlpV2KAnonymityResult++; if (buildCounterGooglePrivacyDlpV2KAnonymityResult < 3) { - o.equivalenceClassHistogramBuckets = buildUnnamed4189(); + o.equivalenceClassHistogramBuckets = buildUnnamed4427(); } buildCounterGooglePrivacyDlpV2KAnonymityResult--; return o; @@ -2933,32 +2935,32 @@ api.GooglePrivacyDlpV2KAnonymityResult o) { buildCounterGooglePrivacyDlpV2KAnonymityResult++; if (buildCounterGooglePrivacyDlpV2KAnonymityResult < 3) { - checkUnnamed4189(o.equivalenceClassHistogramBuckets); + checkUnnamed4427(o.equivalenceClassHistogramBuckets); } buildCounterGooglePrivacyDlpV2KAnonymityResult--; } -buildUnnamed4190() { +buildUnnamed4428() { var o = new core.List<api.GooglePrivacyDlpV2AuxiliaryTable>(); o.add(buildGooglePrivacyDlpV2AuxiliaryTable()); o.add(buildGooglePrivacyDlpV2AuxiliaryTable()); return o; } -checkUnnamed4190(core.List<api.GooglePrivacyDlpV2AuxiliaryTable> o) { +checkUnnamed4428(core.List<api.GooglePrivacyDlpV2AuxiliaryTable> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2AuxiliaryTable(o[0]); checkGooglePrivacyDlpV2AuxiliaryTable(o[1]); } -buildUnnamed4191() { +buildUnnamed4429() { var o = new core.List<api.GooglePrivacyDlpV2TaggedField>(); o.add(buildGooglePrivacyDlpV2TaggedField()); o.add(buildGooglePrivacyDlpV2TaggedField()); return o; } -checkUnnamed4191(core.List<api.GooglePrivacyDlpV2TaggedField> o) { +checkUnnamed4429(core.List<api.GooglePrivacyDlpV2TaggedField> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2TaggedField(o[0]); checkGooglePrivacyDlpV2TaggedField(o[1]); @@ -2969,8 +2971,8 @@ var o = new api.GooglePrivacyDlpV2KMapEstimationConfig(); buildCounterGooglePrivacyDlpV2KMapEstimationConfig++; if (buildCounterGooglePrivacyDlpV2KMapEstimationConfig < 3) { - o.auxiliaryTables = buildUnnamed4190(); - o.quasiIds = buildUnnamed4191(); + o.auxiliaryTables = buildUnnamed4428(); + o.quasiIds = buildUnnamed4429(); o.regionCode = "foo"; } buildCounterGooglePrivacyDlpV2KMapEstimationConfig--; @@ -2981,21 +2983,21 @@ api.GooglePrivacyDlpV2KMapEstimationConfig o) { buildCounterGooglePrivacyDlpV2KMapEstimationConfig++; if (buildCounterGooglePrivacyDlpV2KMapEstimationConfig < 3) { - checkUnnamed4190(o.auxiliaryTables); - checkUnnamed4191(o.quasiIds); + checkUnnamed4428(o.auxiliaryTables); + checkUnnamed4429(o.quasiIds); unittest.expect(o.regionCode, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2KMapEstimationConfig--; } -buildUnnamed4192() { +buildUnnamed4430() { var o = new core.List<api.GooglePrivacyDlpV2KMapEstimationQuasiIdValues>(); o.add(buildGooglePrivacyDlpV2KMapEstimationQuasiIdValues()); o.add(buildGooglePrivacyDlpV2KMapEstimationQuasiIdValues()); return o; } -checkUnnamed4192( +checkUnnamed4430( core.List<api.GooglePrivacyDlpV2KMapEstimationQuasiIdValues> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2KMapEstimationQuasiIdValues(o[0]); @@ -3009,7 +3011,7 @@ if (buildCounterGooglePrivacyDlpV2KMapEstimationHistogramBucket < 3) { o.bucketSize = "foo"; o.bucketValueCount = "foo"; - o.bucketValues = buildUnnamed4192(); + o.bucketValues = buildUnnamed4430(); o.maxAnonymity = "foo"; o.minAnonymity = "foo"; } @@ -3023,21 +3025,21 @@ if (buildCounterGooglePrivacyDlpV2KMapEstimationHistogramBucket < 3) { unittest.expect(o.bucketSize, unittest.equals('foo')); unittest.expect(o.bucketValueCount, unittest.equals('foo')); - checkUnnamed4192(o.bucketValues); + checkUnnamed4430(o.bucketValues); unittest.expect(o.maxAnonymity, unittest.equals('foo')); unittest.expect(o.minAnonymity, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2KMapEstimationHistogramBucket--; } -buildUnnamed4193() { +buildUnnamed4431() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4193(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4431(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -3049,7 +3051,7 @@ buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues++; if (buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues < 3) { o.estimatedAnonymity = "foo"; - o.quasiIdsValues = buildUnnamed4193(); + o.quasiIdsValues = buildUnnamed4431(); } buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues--; return o; @@ -3060,19 +3062,19 @@ buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues++; if (buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues < 3) { unittest.expect(o.estimatedAnonymity, unittest.equals('foo')); - checkUnnamed4193(o.quasiIdsValues); + checkUnnamed4431(o.quasiIdsValues); } buildCounterGooglePrivacyDlpV2KMapEstimationQuasiIdValues--; } -buildUnnamed4194() { +buildUnnamed4432() { var o = new core.List<api.GooglePrivacyDlpV2KMapEstimationHistogramBucket>(); o.add(buildGooglePrivacyDlpV2KMapEstimationHistogramBucket()); o.add(buildGooglePrivacyDlpV2KMapEstimationHistogramBucket()); return o; } -checkUnnamed4194( +checkUnnamed4432( core.List<api.GooglePrivacyDlpV2KMapEstimationHistogramBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2KMapEstimationHistogramBucket(o[0]); @@ -3084,7 +3086,7 @@ var o = new api.GooglePrivacyDlpV2KMapEstimationResult(); buildCounterGooglePrivacyDlpV2KMapEstimationResult++; if (buildCounterGooglePrivacyDlpV2KMapEstimationResult < 3) { - o.kMapEstimationHistogram = buildUnnamed4194(); + o.kMapEstimationHistogram = buildUnnamed4432(); } buildCounterGooglePrivacyDlpV2KMapEstimationResult--; return o; @@ -3094,19 +3096,19 @@ api.GooglePrivacyDlpV2KMapEstimationResult o) { buildCounterGooglePrivacyDlpV2KMapEstimationResult++; if (buildCounterGooglePrivacyDlpV2KMapEstimationResult < 3) { - checkUnnamed4194(o.kMapEstimationHistogram); + checkUnnamed4432(o.kMapEstimationHistogram); } buildCounterGooglePrivacyDlpV2KMapEstimationResult--; } -buildUnnamed4195() { +buildUnnamed4433() { var o = new core.List<api.GooglePrivacyDlpV2PathElement>(); o.add(buildGooglePrivacyDlpV2PathElement()); o.add(buildGooglePrivacyDlpV2PathElement()); return o; } -checkUnnamed4195(core.List<api.GooglePrivacyDlpV2PathElement> o) { +checkUnnamed4433(core.List<api.GooglePrivacyDlpV2PathElement> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2PathElement(o[0]); checkGooglePrivacyDlpV2PathElement(o[1]); @@ -3118,7 +3120,7 @@ buildCounterGooglePrivacyDlpV2Key++; if (buildCounterGooglePrivacyDlpV2Key < 3) { o.partitionId = buildGooglePrivacyDlpV2PartitionId(); - o.path = buildUnnamed4195(); + o.path = buildUnnamed4433(); } buildCounterGooglePrivacyDlpV2Key--; return o; @@ -3128,7 +3130,7 @@ buildCounterGooglePrivacyDlpV2Key++; if (buildCounterGooglePrivacyDlpV2Key < 3) { checkGooglePrivacyDlpV2PartitionId(o.partitionId); - checkUnnamed4195(o.path); + checkUnnamed4433(o.path); } buildCounterGooglePrivacyDlpV2Key--; } @@ -3174,14 +3176,14 @@ buildCounterGooglePrivacyDlpV2KmsWrappedCryptoKey--; } -buildUnnamed4196() { +buildUnnamed4434() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4196(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4434(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -3192,7 +3194,7 @@ var o = new api.GooglePrivacyDlpV2LDiversityConfig(); buildCounterGooglePrivacyDlpV2LDiversityConfig++; if (buildCounterGooglePrivacyDlpV2LDiversityConfig < 3) { - o.quasiIds = buildUnnamed4196(); + o.quasiIds = buildUnnamed4434(); o.sensitiveAttribute = buildGooglePrivacyDlpV2FieldId(); } buildCounterGooglePrivacyDlpV2LDiversityConfig--; @@ -3203,33 +3205,33 @@ api.GooglePrivacyDlpV2LDiversityConfig o) { buildCounterGooglePrivacyDlpV2LDiversityConfig++; if (buildCounterGooglePrivacyDlpV2LDiversityConfig < 3) { - checkUnnamed4196(o.quasiIds); + checkUnnamed4434(o.quasiIds); checkGooglePrivacyDlpV2FieldId(o.sensitiveAttribute); } buildCounterGooglePrivacyDlpV2LDiversityConfig--; } -buildUnnamed4197() { +buildUnnamed4435() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4197(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4435(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); } -buildUnnamed4198() { +buildUnnamed4436() { var o = new core.List<api.GooglePrivacyDlpV2ValueFrequency>(); o.add(buildGooglePrivacyDlpV2ValueFrequency()); o.add(buildGooglePrivacyDlpV2ValueFrequency()); return o; } -checkUnnamed4198(core.List<api.GooglePrivacyDlpV2ValueFrequency> o) { +checkUnnamed4436(core.List<api.GooglePrivacyDlpV2ValueFrequency> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2ValueFrequency(o[0]); checkGooglePrivacyDlpV2ValueFrequency(o[1]); @@ -3242,8 +3244,8 @@ if (buildCounterGooglePrivacyDlpV2LDiversityEquivalenceClass < 3) { o.equivalenceClassSize = "foo"; o.numDistinctSensitiveValues = "foo"; - o.quasiIdsValues = buildUnnamed4197(); - o.topSensitiveValues = buildUnnamed4198(); + o.quasiIdsValues = buildUnnamed4435(); + o.topSensitiveValues = buildUnnamed4436(); } buildCounterGooglePrivacyDlpV2LDiversityEquivalenceClass--; return o; @@ -3255,20 +3257,20 @@ if (buildCounterGooglePrivacyDlpV2LDiversityEquivalenceClass < 3) { unittest.expect(o.equivalenceClassSize, unittest.equals('foo')); unittest.expect(o.numDistinctSensitiveValues, unittest.equals('foo')); - checkUnnamed4197(o.quasiIdsValues); - checkUnnamed4198(o.topSensitiveValues); + checkUnnamed4435(o.quasiIdsValues); + checkUnnamed4436(o.topSensitiveValues); } buildCounterGooglePrivacyDlpV2LDiversityEquivalenceClass--; } -buildUnnamed4199() { +buildUnnamed4437() { var o = new core.List<api.GooglePrivacyDlpV2LDiversityEquivalenceClass>(); o.add(buildGooglePrivacyDlpV2LDiversityEquivalenceClass()); o.add(buildGooglePrivacyDlpV2LDiversityEquivalenceClass()); return o; } -checkUnnamed4199( +checkUnnamed4437( core.List<api.GooglePrivacyDlpV2LDiversityEquivalenceClass> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2LDiversityEquivalenceClass(o[0]); @@ -3282,7 +3284,7 @@ if (buildCounterGooglePrivacyDlpV2LDiversityHistogramBucket < 3) { o.bucketSize = "foo"; o.bucketValueCount = "foo"; - o.bucketValues = buildUnnamed4199(); + o.bucketValues = buildUnnamed4437(); o.sensitiveValueFrequencyLowerBound = "foo"; o.sensitiveValueFrequencyUpperBound = "foo"; } @@ -3296,7 +3298,7 @@ if (buildCounterGooglePrivacyDlpV2LDiversityHistogramBucket < 3) { unittest.expect(o.bucketSize, unittest.equals('foo')); unittest.expect(o.bucketValueCount, unittest.equals('foo')); - checkUnnamed4199(o.bucketValues); + checkUnnamed4437(o.bucketValues); unittest.expect( o.sensitiveValueFrequencyLowerBound, unittest.equals('foo')); unittest.expect( @@ -3305,14 +3307,14 @@ buildCounterGooglePrivacyDlpV2LDiversityHistogramBucket--; } -buildUnnamed4200() { +buildUnnamed4438() { var o = new core.List<api.GooglePrivacyDlpV2LDiversityHistogramBucket>(); o.add(buildGooglePrivacyDlpV2LDiversityHistogramBucket()); o.add(buildGooglePrivacyDlpV2LDiversityHistogramBucket()); return o; } -checkUnnamed4200(core.List<api.GooglePrivacyDlpV2LDiversityHistogramBucket> o) { +checkUnnamed4438(core.List<api.GooglePrivacyDlpV2LDiversityHistogramBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2LDiversityHistogramBucket(o[0]); checkGooglePrivacyDlpV2LDiversityHistogramBucket(o[1]); @@ -3323,7 +3325,7 @@ var o = new api.GooglePrivacyDlpV2LDiversityResult(); buildCounterGooglePrivacyDlpV2LDiversityResult++; if (buildCounterGooglePrivacyDlpV2LDiversityResult < 3) { - o.sensitiveValueFrequencyHistogramBuckets = buildUnnamed4200(); + o.sensitiveValueFrequencyHistogramBuckets = buildUnnamed4438(); } buildCounterGooglePrivacyDlpV2LDiversityResult--; return o; @@ -3333,7 +3335,7 @@ api.GooglePrivacyDlpV2LDiversityResult o) { buildCounterGooglePrivacyDlpV2LDiversityResult++; if (buildCounterGooglePrivacyDlpV2LDiversityResult < 3) { - checkUnnamed4200(o.sensitiveValueFrequencyHistogramBuckets); + checkUnnamed4438(o.sensitiveValueFrequencyHistogramBuckets); } buildCounterGooglePrivacyDlpV2LDiversityResult--; } @@ -3420,14 +3422,14 @@ buildCounterGooglePrivacyDlpV2LikelihoodAdjustment--; } -buildUnnamed4201() { +buildUnnamed4439() { var o = new core.List<api.GooglePrivacyDlpV2DeidentifyTemplate>(); o.add(buildGooglePrivacyDlpV2DeidentifyTemplate()); o.add(buildGooglePrivacyDlpV2DeidentifyTemplate()); return o; } -checkUnnamed4201(core.List<api.GooglePrivacyDlpV2DeidentifyTemplate> o) { +checkUnnamed4439(core.List<api.GooglePrivacyDlpV2DeidentifyTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2DeidentifyTemplate(o[0]); checkGooglePrivacyDlpV2DeidentifyTemplate(o[1]); @@ -3438,7 +3440,7 @@ var o = new api.GooglePrivacyDlpV2ListDeidentifyTemplatesResponse(); buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse++; if (buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse < 3) { - o.deidentifyTemplates = buildUnnamed4201(); + o.deidentifyTemplates = buildUnnamed4439(); o.nextPageToken = "foo"; } buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse--; @@ -3449,20 +3451,20 @@ api.GooglePrivacyDlpV2ListDeidentifyTemplatesResponse o) { buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse++; if (buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse < 3) { - checkUnnamed4201(o.deidentifyTemplates); + checkUnnamed4439(o.deidentifyTemplates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2ListDeidentifyTemplatesResponse--; } -buildUnnamed4202() { +buildUnnamed4440() { var o = new core.List<api.GooglePrivacyDlpV2DlpJob>(); o.add(buildGooglePrivacyDlpV2DlpJob()); o.add(buildGooglePrivacyDlpV2DlpJob()); return o; } -checkUnnamed4202(core.List<api.GooglePrivacyDlpV2DlpJob> o) { +checkUnnamed4440(core.List<api.GooglePrivacyDlpV2DlpJob> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2DlpJob(o[0]); checkGooglePrivacyDlpV2DlpJob(o[1]); @@ -3473,7 +3475,7 @@ var o = new api.GooglePrivacyDlpV2ListDlpJobsResponse(); buildCounterGooglePrivacyDlpV2ListDlpJobsResponse++; if (buildCounterGooglePrivacyDlpV2ListDlpJobsResponse < 3) { - o.jobs = buildUnnamed4202(); + o.jobs = buildUnnamed4440(); o.nextPageToken = "foo"; } buildCounterGooglePrivacyDlpV2ListDlpJobsResponse--; @@ -3484,20 +3486,20 @@ api.GooglePrivacyDlpV2ListDlpJobsResponse o) { buildCounterGooglePrivacyDlpV2ListDlpJobsResponse++; if (buildCounterGooglePrivacyDlpV2ListDlpJobsResponse < 3) { - checkUnnamed4202(o.jobs); + checkUnnamed4440(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2ListDlpJobsResponse--; } -buildUnnamed4203() { +buildUnnamed4441() { var o = new core.List<api.GooglePrivacyDlpV2InfoTypeDescription>(); o.add(buildGooglePrivacyDlpV2InfoTypeDescription()); o.add(buildGooglePrivacyDlpV2InfoTypeDescription()); return o; } -checkUnnamed4203(core.List<api.GooglePrivacyDlpV2InfoTypeDescription> o) { +checkUnnamed4441(core.List<api.GooglePrivacyDlpV2InfoTypeDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeDescription(o[0]); checkGooglePrivacyDlpV2InfoTypeDescription(o[1]); @@ -3508,7 +3510,7 @@ var o = new api.GooglePrivacyDlpV2ListInfoTypesResponse(); buildCounterGooglePrivacyDlpV2ListInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2ListInfoTypesResponse < 3) { - o.infoTypes = buildUnnamed4203(); + o.infoTypes = buildUnnamed4441(); } buildCounterGooglePrivacyDlpV2ListInfoTypesResponse--; return o; @@ -3518,19 +3520,19 @@ api.GooglePrivacyDlpV2ListInfoTypesResponse o) { buildCounterGooglePrivacyDlpV2ListInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2ListInfoTypesResponse < 3) { - checkUnnamed4203(o.infoTypes); + checkUnnamed4441(o.infoTypes); } buildCounterGooglePrivacyDlpV2ListInfoTypesResponse--; } -buildUnnamed4204() { +buildUnnamed4442() { var o = new core.List<api.GooglePrivacyDlpV2InspectTemplate>(); o.add(buildGooglePrivacyDlpV2InspectTemplate()); o.add(buildGooglePrivacyDlpV2InspectTemplate()); return o; } -checkUnnamed4204(core.List<api.GooglePrivacyDlpV2InspectTemplate> o) { +checkUnnamed4442(core.List<api.GooglePrivacyDlpV2InspectTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InspectTemplate(o[0]); checkGooglePrivacyDlpV2InspectTemplate(o[1]); @@ -3541,7 +3543,7 @@ var o = new api.GooglePrivacyDlpV2ListInspectTemplatesResponse(); buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse++; if (buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse < 3) { - o.inspectTemplates = buildUnnamed4204(); + o.inspectTemplates = buildUnnamed4442(); o.nextPageToken = "foo"; } buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse--; @@ -3552,20 +3554,20 @@ api.GooglePrivacyDlpV2ListInspectTemplatesResponse o) { buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse++; if (buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse < 3) { - checkUnnamed4204(o.inspectTemplates); + checkUnnamed4442(o.inspectTemplates); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2ListInspectTemplatesResponse--; } -buildUnnamed4205() { +buildUnnamed4443() { var o = new core.List<api.GooglePrivacyDlpV2JobTrigger>(); o.add(buildGooglePrivacyDlpV2JobTrigger()); o.add(buildGooglePrivacyDlpV2JobTrigger()); return o; } -checkUnnamed4205(core.List<api.GooglePrivacyDlpV2JobTrigger> o) { +checkUnnamed4443(core.List<api.GooglePrivacyDlpV2JobTrigger> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2JobTrigger(o[0]); checkGooglePrivacyDlpV2JobTrigger(o[1]); @@ -3576,7 +3578,7 @@ var o = new api.GooglePrivacyDlpV2ListJobTriggersResponse(); buildCounterGooglePrivacyDlpV2ListJobTriggersResponse++; if (buildCounterGooglePrivacyDlpV2ListJobTriggersResponse < 3) { - o.jobTriggers = buildUnnamed4205(); + o.jobTriggers = buildUnnamed4443(); o.nextPageToken = "foo"; } buildCounterGooglePrivacyDlpV2ListJobTriggersResponse--; @@ -3587,20 +3589,20 @@ api.GooglePrivacyDlpV2ListJobTriggersResponse o) { buildCounterGooglePrivacyDlpV2ListJobTriggersResponse++; if (buildCounterGooglePrivacyDlpV2ListJobTriggersResponse < 3) { - checkUnnamed4205(o.jobTriggers); + checkUnnamed4443(o.jobTriggers); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2ListJobTriggersResponse--; } -buildUnnamed4206() { +buildUnnamed4444() { var o = new core.List<api.GooglePrivacyDlpV2StoredInfoType>(); o.add(buildGooglePrivacyDlpV2StoredInfoType()); o.add(buildGooglePrivacyDlpV2StoredInfoType()); return o; } -checkUnnamed4206(core.List<api.GooglePrivacyDlpV2StoredInfoType> o) { +checkUnnamed4444(core.List<api.GooglePrivacyDlpV2StoredInfoType> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2StoredInfoType(o[0]); checkGooglePrivacyDlpV2StoredInfoType(o[1]); @@ -3612,7 +3614,7 @@ buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse < 3) { o.nextPageToken = "foo"; - o.storedInfoTypes = buildUnnamed4206(); + o.storedInfoTypes = buildUnnamed4444(); } buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse--; return o; @@ -3623,19 +3625,19 @@ buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse++; if (buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4206(o.storedInfoTypes); + checkUnnamed4444(o.storedInfoTypes); } buildCounterGooglePrivacyDlpV2ListStoredInfoTypesResponse--; } -buildUnnamed4207() { +buildUnnamed4445() { var o = new core.List<api.GooglePrivacyDlpV2ContentLocation>(); o.add(buildGooglePrivacyDlpV2ContentLocation()); o.add(buildGooglePrivacyDlpV2ContentLocation()); return o; } -checkUnnamed4207(core.List<api.GooglePrivacyDlpV2ContentLocation> o) { +checkUnnamed4445(core.List<api.GooglePrivacyDlpV2ContentLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2ContentLocation(o[0]); checkGooglePrivacyDlpV2ContentLocation(o[1]); @@ -3649,7 +3651,7 @@ o.byteRange = buildGooglePrivacyDlpV2Range(); o.codepointRange = buildGooglePrivacyDlpV2Range(); o.container = buildGooglePrivacyDlpV2Container(); - o.contentLocations = buildUnnamed4207(); + o.contentLocations = buildUnnamed4445(); } buildCounterGooglePrivacyDlpV2Location--; return o; @@ -3661,7 +3663,7 @@ checkGooglePrivacyDlpV2Range(o.byteRange); checkGooglePrivacyDlpV2Range(o.codepointRange); checkGooglePrivacyDlpV2Container(o.container); - checkUnnamed4207(o.contentLocations); + checkUnnamed4445(o.contentLocations); } buildCounterGooglePrivacyDlpV2Location--; } @@ -3723,14 +3725,14 @@ buildCounterGooglePrivacyDlpV2NumericalStatsConfig--; } -buildUnnamed4208() { +buildUnnamed4446() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4208(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4446(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -3743,7 +3745,7 @@ if (buildCounterGooglePrivacyDlpV2NumericalStatsResult < 3) { o.maxValue = buildGooglePrivacyDlpV2Value(); o.minValue = buildGooglePrivacyDlpV2Value(); - o.quantileValues = buildUnnamed4208(); + o.quantileValues = buildUnnamed4446(); } buildCounterGooglePrivacyDlpV2NumericalStatsResult--; return o; @@ -3755,7 +3757,7 @@ if (buildCounterGooglePrivacyDlpV2NumericalStatsResult < 3) { checkGooglePrivacyDlpV2Value(o.maxValue); checkGooglePrivacyDlpV2Value(o.minValue); - checkUnnamed4208(o.quantileValues); + checkUnnamed4446(o.quantileValues); } buildCounterGooglePrivacyDlpV2NumericalStatsResult--; } @@ -4121,14 +4123,14 @@ buildCounterGooglePrivacyDlpV2RecordCondition--; } -buildUnnamed4209() { +buildUnnamed4447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4209(core.List<core.String> o) { +checkUnnamed4447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4141,7 +4143,7 @@ if (buildCounterGooglePrivacyDlpV2RecordKey < 3) { o.bigQueryKey = buildGooglePrivacyDlpV2BigQueryKey(); o.datastoreKey = buildGooglePrivacyDlpV2DatastoreKey(); - o.idValues = buildUnnamed4209(); + o.idValues = buildUnnamed4447(); } buildCounterGooglePrivacyDlpV2RecordKey--; return o; @@ -4152,7 +4154,7 @@ if (buildCounterGooglePrivacyDlpV2RecordKey < 3) { checkGooglePrivacyDlpV2BigQueryKey(o.bigQueryKey); checkGooglePrivacyDlpV2DatastoreKey(o.datastoreKey); - checkUnnamed4209(o.idValues); + checkUnnamed4447(o.idValues); } buildCounterGooglePrivacyDlpV2RecordKey--; } @@ -4200,27 +4202,27 @@ buildCounterGooglePrivacyDlpV2RecordSuppression--; } -buildUnnamed4210() { +buildUnnamed4448() { var o = new core.List<api.GooglePrivacyDlpV2FieldTransformation>(); o.add(buildGooglePrivacyDlpV2FieldTransformation()); o.add(buildGooglePrivacyDlpV2FieldTransformation()); return o; } -checkUnnamed4210(core.List<api.GooglePrivacyDlpV2FieldTransformation> o) { +checkUnnamed4448(core.List<api.GooglePrivacyDlpV2FieldTransformation> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldTransformation(o[0]); checkGooglePrivacyDlpV2FieldTransformation(o[1]); } -buildUnnamed4211() { +buildUnnamed4449() { var o = new core.List<api.GooglePrivacyDlpV2RecordSuppression>(); o.add(buildGooglePrivacyDlpV2RecordSuppression()); o.add(buildGooglePrivacyDlpV2RecordSuppression()); return o; } -checkUnnamed4211(core.List<api.GooglePrivacyDlpV2RecordSuppression> o) { +checkUnnamed4449(core.List<api.GooglePrivacyDlpV2RecordSuppression> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2RecordSuppression(o[0]); checkGooglePrivacyDlpV2RecordSuppression(o[1]); @@ -4231,8 +4233,8 @@ var o = new api.GooglePrivacyDlpV2RecordTransformations(); buildCounterGooglePrivacyDlpV2RecordTransformations++; if (buildCounterGooglePrivacyDlpV2RecordTransformations < 3) { - o.fieldTransformations = buildUnnamed4210(); - o.recordSuppressions = buildUnnamed4211(); + o.fieldTransformations = buildUnnamed4448(); + o.recordSuppressions = buildUnnamed4449(); } buildCounterGooglePrivacyDlpV2RecordTransformations--; return o; @@ -4242,8 +4244,8 @@ api.GooglePrivacyDlpV2RecordTransformations o) { buildCounterGooglePrivacyDlpV2RecordTransformations++; if (buildCounterGooglePrivacyDlpV2RecordTransformations < 3) { - checkUnnamed4210(o.fieldTransformations); - checkUnnamed4211(o.recordSuppressions); + checkUnnamed4448(o.fieldTransformations); + checkUnnamed4449(o.recordSuppressions); } buildCounterGooglePrivacyDlpV2RecordTransformations--; } @@ -4263,14 +4265,14 @@ buildCounterGooglePrivacyDlpV2RedactConfig--; } -buildUnnamed4212() { +buildUnnamed4450() { var o = new core.List<api.GooglePrivacyDlpV2ImageRedactionConfig>(); o.add(buildGooglePrivacyDlpV2ImageRedactionConfig()); o.add(buildGooglePrivacyDlpV2ImageRedactionConfig()); return o; } -checkUnnamed4212(core.List<api.GooglePrivacyDlpV2ImageRedactionConfig> o) { +checkUnnamed4450(core.List<api.GooglePrivacyDlpV2ImageRedactionConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2ImageRedactionConfig(o[0]); checkGooglePrivacyDlpV2ImageRedactionConfig(o[1]); @@ -4282,7 +4284,7 @@ buildCounterGooglePrivacyDlpV2RedactImageRequest++; if (buildCounterGooglePrivacyDlpV2RedactImageRequest < 3) { o.byteItem = buildGooglePrivacyDlpV2ByteContentItem(); - o.imageRedactionConfigs = buildUnnamed4212(); + o.imageRedactionConfigs = buildUnnamed4450(); o.includeFindings = true; o.inspectConfig = buildGooglePrivacyDlpV2InspectConfig(); o.locationId = "foo"; @@ -4296,7 +4298,7 @@ buildCounterGooglePrivacyDlpV2RedactImageRequest++; if (buildCounterGooglePrivacyDlpV2RedactImageRequest < 3) { checkGooglePrivacyDlpV2ByteContentItem(o.byteItem); - checkUnnamed4212(o.imageRedactionConfigs); + checkUnnamed4450(o.imageRedactionConfigs); unittest.expect(o.includeFindings, unittest.isTrue); checkGooglePrivacyDlpV2InspectConfig(o.inspectConfig); unittest.expect(o.locationId, unittest.equals('foo')); @@ -4328,14 +4330,14 @@ buildCounterGooglePrivacyDlpV2RedactImageResponse--; } -buildUnnamed4213() { +buildUnnamed4451() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4213(core.List<core.int> o) { +checkUnnamed4451(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)); @@ -4346,7 +4348,7 @@ var o = new api.GooglePrivacyDlpV2Regex(); buildCounterGooglePrivacyDlpV2Regex++; if (buildCounterGooglePrivacyDlpV2Regex < 3) { - o.groupIndexes = buildUnnamed4213(); + o.groupIndexes = buildUnnamed4451(); o.pattern = "foo"; } buildCounterGooglePrivacyDlpV2Regex--; @@ -4356,7 +4358,7 @@ checkGooglePrivacyDlpV2Regex(api.GooglePrivacyDlpV2Regex o) { buildCounterGooglePrivacyDlpV2Regex++; if (buildCounterGooglePrivacyDlpV2Regex < 3) { - checkUnnamed4213(o.groupIndexes); + checkUnnamed4451(o.groupIndexes); unittest.expect(o.pattern, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2Regex--; @@ -4472,14 +4474,34 @@ buildCounterGooglePrivacyDlpV2RequestedOptions--; } -buildUnnamed4214() { +core.int buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions = 0; +buildGooglePrivacyDlpV2RequestedRiskAnalysisOptions() { + var o = new api.GooglePrivacyDlpV2RequestedRiskAnalysisOptions(); + buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions++; + if (buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions < 3) { + o.jobConfig = buildGooglePrivacyDlpV2RiskAnalysisJobConfig(); + } + buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions--; + return o; +} + +checkGooglePrivacyDlpV2RequestedRiskAnalysisOptions( + api.GooglePrivacyDlpV2RequestedRiskAnalysisOptions o) { + buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions++; + if (buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions < 3) { + checkGooglePrivacyDlpV2RiskAnalysisJobConfig(o.jobConfig); + } + buildCounterGooglePrivacyDlpV2RequestedRiskAnalysisOptions--; +} + +buildUnnamed4452() { var o = new core.List<api.GooglePrivacyDlpV2InfoTypeStats>(); o.add(buildGooglePrivacyDlpV2InfoTypeStats()); o.add(buildGooglePrivacyDlpV2InfoTypeStats()); return o; } -checkUnnamed4214(core.List<api.GooglePrivacyDlpV2InfoTypeStats> o) { +checkUnnamed4452(core.List<api.GooglePrivacyDlpV2InfoTypeStats> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2InfoTypeStats(o[0]); checkGooglePrivacyDlpV2InfoTypeStats(o[1]); @@ -4491,7 +4513,7 @@ buildCounterGooglePrivacyDlpV2Result++; if (buildCounterGooglePrivacyDlpV2Result < 3) { o.hybridStats = buildGooglePrivacyDlpV2HybridInspectStatistics(); - o.infoTypeStats = buildUnnamed4214(); + o.infoTypeStats = buildUnnamed4452(); o.processedBytes = "foo"; o.totalEstimatedBytes = "foo"; } @@ -4503,21 +4525,21 @@ buildCounterGooglePrivacyDlpV2Result++; if (buildCounterGooglePrivacyDlpV2Result < 3) { checkGooglePrivacyDlpV2HybridInspectStatistics(o.hybridStats); - checkUnnamed4214(o.infoTypeStats); + checkUnnamed4452(o.infoTypeStats); unittest.expect(o.processedBytes, unittest.equals('foo')); unittest.expect(o.totalEstimatedBytes, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2Result--; } -buildUnnamed4215() { +buildUnnamed4453() { var o = new core.List<api.GooglePrivacyDlpV2Action>(); o.add(buildGooglePrivacyDlpV2Action()); o.add(buildGooglePrivacyDlpV2Action()); return o; } -checkUnnamed4215(core.List<api.GooglePrivacyDlpV2Action> o) { +checkUnnamed4453(core.List<api.GooglePrivacyDlpV2Action> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Action(o[0]); checkGooglePrivacyDlpV2Action(o[1]); @@ -4528,7 +4550,7 @@ var o = new api.GooglePrivacyDlpV2RiskAnalysisJobConfig(); buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig++; if (buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig < 3) { - o.actions = buildUnnamed4215(); + o.actions = buildUnnamed4453(); o.privacyMetric = buildGooglePrivacyDlpV2PrivacyMetric(); o.sourceTable = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -4540,21 +4562,21 @@ api.GooglePrivacyDlpV2RiskAnalysisJobConfig o) { buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig++; if (buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig < 3) { - checkUnnamed4215(o.actions); + checkUnnamed4453(o.actions); checkGooglePrivacyDlpV2PrivacyMetric(o.privacyMetric); checkGooglePrivacyDlpV2BigQueryTable(o.sourceTable); } buildCounterGooglePrivacyDlpV2RiskAnalysisJobConfig--; } -buildUnnamed4216() { +buildUnnamed4454() { var o = new core.List<api.GooglePrivacyDlpV2Value>(); o.add(buildGooglePrivacyDlpV2Value()); o.add(buildGooglePrivacyDlpV2Value()); return o; } -checkUnnamed4216(core.List<api.GooglePrivacyDlpV2Value> o) { +checkUnnamed4454(core.List<api.GooglePrivacyDlpV2Value> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Value(o[0]); checkGooglePrivacyDlpV2Value(o[1]); @@ -4565,7 +4587,7 @@ var o = new api.GooglePrivacyDlpV2Row(); buildCounterGooglePrivacyDlpV2Row++; if (buildCounterGooglePrivacyDlpV2Row < 3) { - o.values = buildUnnamed4216(); + o.values = buildUnnamed4454(); } buildCounterGooglePrivacyDlpV2Row--; return o; @@ -4574,7 +4596,7 @@ checkGooglePrivacyDlpV2Row(api.GooglePrivacyDlpV2Row o) { buildCounterGooglePrivacyDlpV2Row++; if (buildCounterGooglePrivacyDlpV2Row < 3) { - checkUnnamed4216(o.values); + checkUnnamed4454(o.values); } buildCounterGooglePrivacyDlpV2Row--; } @@ -4617,14 +4639,14 @@ buildCounterGooglePrivacyDlpV2Schedule--; } -buildUnnamed4217() { +buildUnnamed4455() { var o = new core.List<api.GooglePrivacyDlpV2QuasiIdentifierField>(); o.add(buildGooglePrivacyDlpV2QuasiIdentifierField()); o.add(buildGooglePrivacyDlpV2QuasiIdentifierField()); return o; } -checkUnnamed4217(core.List<api.GooglePrivacyDlpV2QuasiIdentifierField> o) { +checkUnnamed4455(core.List<api.GooglePrivacyDlpV2QuasiIdentifierField> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2QuasiIdentifierField(o[0]); checkGooglePrivacyDlpV2QuasiIdentifierField(o[1]); @@ -4635,7 +4657,7 @@ var o = new api.GooglePrivacyDlpV2StatisticalTable(); buildCounterGooglePrivacyDlpV2StatisticalTable++; if (buildCounterGooglePrivacyDlpV2StatisticalTable < 3) { - o.quasiIds = buildUnnamed4217(); + o.quasiIds = buildUnnamed4455(); o.relativeFrequency = buildGooglePrivacyDlpV2FieldId(); o.table = buildGooglePrivacyDlpV2BigQueryTable(); } @@ -4647,7 +4669,7 @@ api.GooglePrivacyDlpV2StatisticalTable o) { buildCounterGooglePrivacyDlpV2StatisticalTable++; if (buildCounterGooglePrivacyDlpV2StatisticalTable < 3) { - checkUnnamed4217(o.quasiIds); + checkUnnamed4455(o.quasiIds); checkGooglePrivacyDlpV2FieldId(o.relativeFrequency); checkGooglePrivacyDlpV2BigQueryTable(o.table); } @@ -4701,14 +4723,14 @@ buildCounterGooglePrivacyDlpV2StorageMetadataLabel--; } -buildUnnamed4218() { +buildUnnamed4456() { var o = new core.List<api.GooglePrivacyDlpV2StoredInfoTypeVersion>(); o.add(buildGooglePrivacyDlpV2StoredInfoTypeVersion()); o.add(buildGooglePrivacyDlpV2StoredInfoTypeVersion()); return o; } -checkUnnamed4218(core.List<api.GooglePrivacyDlpV2StoredInfoTypeVersion> o) { +checkUnnamed4456(core.List<api.GooglePrivacyDlpV2StoredInfoTypeVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2StoredInfoTypeVersion(o[0]); checkGooglePrivacyDlpV2StoredInfoTypeVersion(o[1]); @@ -4721,7 +4743,7 @@ if (buildCounterGooglePrivacyDlpV2StoredInfoType < 3) { o.currentVersion = buildGooglePrivacyDlpV2StoredInfoTypeVersion(); o.name = "foo"; - o.pendingVersions = buildUnnamed4218(); + o.pendingVersions = buildUnnamed4456(); } buildCounterGooglePrivacyDlpV2StoredInfoType--; return o; @@ -4732,7 +4754,7 @@ if (buildCounterGooglePrivacyDlpV2StoredInfoType < 3) { checkGooglePrivacyDlpV2StoredInfoTypeVersion(o.currentVersion); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4218(o.pendingVersions); + checkUnnamed4456(o.pendingVersions); } buildCounterGooglePrivacyDlpV2StoredInfoType--; } @@ -4787,14 +4809,14 @@ buildCounterGooglePrivacyDlpV2StoredInfoTypeStats--; } -buildUnnamed4219() { +buildUnnamed4457() { var o = new core.List<api.GooglePrivacyDlpV2Error>(); o.add(buildGooglePrivacyDlpV2Error()); o.add(buildGooglePrivacyDlpV2Error()); return o; } -checkUnnamed4219(core.List<api.GooglePrivacyDlpV2Error> o) { +checkUnnamed4457(core.List<api.GooglePrivacyDlpV2Error> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Error(o[0]); checkGooglePrivacyDlpV2Error(o[1]); @@ -4807,7 +4829,7 @@ if (buildCounterGooglePrivacyDlpV2StoredInfoTypeVersion < 3) { o.config = buildGooglePrivacyDlpV2StoredInfoTypeConfig(); o.createTime = "foo"; - o.errors = buildUnnamed4219(); + o.errors = buildUnnamed4457(); o.state = "foo"; o.stats = buildGooglePrivacyDlpV2StoredInfoTypeStats(); } @@ -4821,7 +4843,7 @@ if (buildCounterGooglePrivacyDlpV2StoredInfoTypeVersion < 3) { checkGooglePrivacyDlpV2StoredInfoTypeConfig(o.config); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed4219(o.errors); + checkUnnamed4457(o.errors); unittest.expect(o.state, unittest.equals('foo')); checkGooglePrivacyDlpV2StoredInfoTypeStats(o.stats); } @@ -4887,27 +4909,27 @@ buildCounterGooglePrivacyDlpV2SurrogateType--; } -buildUnnamed4220() { +buildUnnamed4458() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4220(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4458(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); } -buildUnnamed4221() { +buildUnnamed4459() { var o = new core.List<api.GooglePrivacyDlpV2Row>(); o.add(buildGooglePrivacyDlpV2Row()); o.add(buildGooglePrivacyDlpV2Row()); return o; } -checkUnnamed4221(core.List<api.GooglePrivacyDlpV2Row> o) { +checkUnnamed4459(core.List<api.GooglePrivacyDlpV2Row> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2Row(o[0]); checkGooglePrivacyDlpV2Row(o[1]); @@ -4918,8 +4940,8 @@ var o = new api.GooglePrivacyDlpV2Table(); buildCounterGooglePrivacyDlpV2Table++; if (buildCounterGooglePrivacyDlpV2Table < 3) { - o.headers = buildUnnamed4220(); - o.rows = buildUnnamed4221(); + o.headers = buildUnnamed4458(); + o.rows = buildUnnamed4459(); } buildCounterGooglePrivacyDlpV2Table--; return o; @@ -4928,8 +4950,8 @@ checkGooglePrivacyDlpV2Table(api.GooglePrivacyDlpV2Table o) { buildCounterGooglePrivacyDlpV2Table++; if (buildCounterGooglePrivacyDlpV2Table < 3) { - checkUnnamed4220(o.headers); - checkUnnamed4221(o.rows); + checkUnnamed4458(o.headers); + checkUnnamed4459(o.rows); } buildCounterGooglePrivacyDlpV2Table--; } @@ -4953,14 +4975,14 @@ buildCounterGooglePrivacyDlpV2TableLocation--; } -buildUnnamed4222() { +buildUnnamed4460() { var o = new core.List<api.GooglePrivacyDlpV2FieldId>(); o.add(buildGooglePrivacyDlpV2FieldId()); o.add(buildGooglePrivacyDlpV2FieldId()); return o; } -checkUnnamed4222(core.List<api.GooglePrivacyDlpV2FieldId> o) { +checkUnnamed4460(core.List<api.GooglePrivacyDlpV2FieldId> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldId(o[0]); checkGooglePrivacyDlpV2FieldId(o[1]); @@ -4971,7 +4993,7 @@ var o = new api.GooglePrivacyDlpV2TableOptions(); buildCounterGooglePrivacyDlpV2TableOptions++; if (buildCounterGooglePrivacyDlpV2TableOptions < 3) { - o.identifyingFields = buildUnnamed4222(); + o.identifyingFields = buildUnnamed4460(); } buildCounterGooglePrivacyDlpV2TableOptions--; return o; @@ -4980,7 +5002,7 @@ checkGooglePrivacyDlpV2TableOptions(api.GooglePrivacyDlpV2TableOptions o) { buildCounterGooglePrivacyDlpV2TableOptions++; if (buildCounterGooglePrivacyDlpV2TableOptions < 3) { - checkUnnamed4222(o.identifyingFields); + checkUnnamed4460(o.identifyingFields); } buildCounterGooglePrivacyDlpV2TableOptions--; } @@ -5110,14 +5132,14 @@ buildCounterGooglePrivacyDlpV2TransformationErrorHandling--; } -buildUnnamed4223() { +buildUnnamed4461() { var o = new core.List<api.GooglePrivacyDlpV2TransformationSummary>(); o.add(buildGooglePrivacyDlpV2TransformationSummary()); o.add(buildGooglePrivacyDlpV2TransformationSummary()); return o; } -checkUnnamed4223(core.List<api.GooglePrivacyDlpV2TransformationSummary> o) { +checkUnnamed4461(core.List<api.GooglePrivacyDlpV2TransformationSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2TransformationSummary(o[0]); checkGooglePrivacyDlpV2TransformationSummary(o[1]); @@ -5128,7 +5150,7 @@ var o = new api.GooglePrivacyDlpV2TransformationOverview(); buildCounterGooglePrivacyDlpV2TransformationOverview++; if (buildCounterGooglePrivacyDlpV2TransformationOverview < 3) { - o.transformationSummaries = buildUnnamed4223(); + o.transformationSummaries = buildUnnamed4461(); o.transformedBytes = "foo"; } buildCounterGooglePrivacyDlpV2TransformationOverview--; @@ -5139,33 +5161,33 @@ api.GooglePrivacyDlpV2TransformationOverview o) { buildCounterGooglePrivacyDlpV2TransformationOverview++; if (buildCounterGooglePrivacyDlpV2TransformationOverview < 3) { - checkUnnamed4223(o.transformationSummaries); + checkUnnamed4461(o.transformationSummaries); unittest.expect(o.transformedBytes, unittest.equals('foo')); } buildCounterGooglePrivacyDlpV2TransformationOverview--; } -buildUnnamed4224() { +buildUnnamed4462() { var o = new core.List<api.GooglePrivacyDlpV2FieldTransformation>(); o.add(buildGooglePrivacyDlpV2FieldTransformation()); o.add(buildGooglePrivacyDlpV2FieldTransformation()); return o; } -checkUnnamed4224(core.List<api.GooglePrivacyDlpV2FieldTransformation> o) { +checkUnnamed4462(core.List<api.GooglePrivacyDlpV2FieldTransformation> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2FieldTransformation(o[0]); checkGooglePrivacyDlpV2FieldTransformation(o[1]); } -buildUnnamed4225() { +buildUnnamed4463() { var o = new core.List<api.GooglePrivacyDlpV2SummaryResult>(); o.add(buildGooglePrivacyDlpV2SummaryResult()); o.add(buildGooglePrivacyDlpV2SummaryResult()); return o; } -checkUnnamed4225(core.List<api.GooglePrivacyDlpV2SummaryResult> o) { +checkUnnamed4463(core.List<api.GooglePrivacyDlpV2SummaryResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGooglePrivacyDlpV2SummaryResult(o[0]); checkGooglePrivacyDlpV2SummaryResult(o[1]); @@ -5177,10 +5199,10 @@ buildCounterGooglePrivacyDlpV2TransformationSummary++; if (buildCounterGooglePrivacyDlpV2TransformationSummary < 3) { o.field = buildGooglePrivacyDlpV2FieldId(); - o.fieldTransformations = buildUnnamed4224(); + o.fieldTransformations = buildUnnamed4462(); o.infoType = buildGooglePrivacyDlpV2InfoType(); o.recordSuppress = buildGooglePrivacyDlpV2RecordSuppression(); - o.results = buildUnnamed4225(); + o.results = buildUnnamed4463(); o.transformation = buildGooglePrivacyDlpV2PrimitiveTransformation(); o.transformedBytes = "foo"; } @@ -5193,10 +5215,10 @@ buildCounterGooglePrivacyDlpV2TransformationSummary++; if (buildCounterGooglePrivacyDlpV2TransformationSummary < 3) { checkGooglePrivacyDlpV2FieldId(o.field); - checkUnnamed4224(o.fieldTransformations); + checkUnnamed4462(o.fieldTransformations); checkGooglePrivacyDlpV2InfoType(o.infoType); checkGooglePrivacyDlpV2RecordSuppression(o.recordSuppress); - checkUnnamed4225(o.results); + checkUnnamed4463(o.results); checkGooglePrivacyDlpV2PrimitiveTransformation(o.transformation); unittest.expect(o.transformedBytes, unittest.equals('foo')); } @@ -5406,14 +5428,14 @@ buildCounterGooglePrivacyDlpV2ValueFrequency--; } -buildUnnamed4226() { +buildUnnamed4464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4226(core.List<core.String> o) { +checkUnnamed4464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5424,7 +5446,7 @@ var o = new api.GooglePrivacyDlpV2WordList(); buildCounterGooglePrivacyDlpV2WordList++; if (buildCounterGooglePrivacyDlpV2WordList < 3) { - o.words = buildUnnamed4226(); + o.words = buildUnnamed4464(); } buildCounterGooglePrivacyDlpV2WordList--; return o; @@ -5433,7 +5455,7 @@ checkGooglePrivacyDlpV2WordList(api.GooglePrivacyDlpV2WordList o) { buildCounterGooglePrivacyDlpV2WordList++; if (buildCounterGooglePrivacyDlpV2WordList < 3) { - checkUnnamed4226(o.words); + checkUnnamed4464(o.words); } buildCounterGooglePrivacyDlpV2WordList--; } @@ -5453,7 +5475,7 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed4227() { +buildUnnamed4465() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -5468,7 +5490,7 @@ return o; } -checkUnnamed4227(core.Map<core.String, core.Object> o) { +checkUnnamed4465(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)); @@ -5482,17 +5504,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4228() { +buildUnnamed4466() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4227()); - o.add(buildUnnamed4227()); + o.add(buildUnnamed4465()); + o.add(buildUnnamed4465()); return o; } -checkUnnamed4228(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4466(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4227(o[0]); - checkUnnamed4227(o[1]); + checkUnnamed4465(o[0]); + checkUnnamed4465(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -5501,7 +5523,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed4228(); + o.details = buildUnnamed4466(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -5512,7 +5534,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4228(o.details); + checkUnnamed4466(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -6882,6 +6904,16 @@ }); }); + unittest.group("obj-schema-GooglePrivacyDlpV2RequestedRiskAnalysisOptions", + () { + unittest.test("to-json--from-json", () { + var o = buildGooglePrivacyDlpV2RequestedRiskAnalysisOptions(); + var od = new api.GooglePrivacyDlpV2RequestedRiskAnalysisOptions.fromJson( + o.toJson()); + checkGooglePrivacyDlpV2RequestedRiskAnalysisOptions(od); + }); + }); + unittest.group("obj-schema-GooglePrivacyDlpV2Result", () { unittest.test("to-json--from-json", () { var o = buildGooglePrivacyDlpV2Result(); @@ -7225,9 +7257,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.InfoTypesResourceApi res = new api.DlpApi(mock).infoTypes; - var arg_languageCode = "foo"; - var arg_filter = "foo"; var arg_locationId = "foo"; + var arg_filter = "foo"; + var arg_languageCode = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7260,6 +7293,75 @@ } } unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGooglePrivacyDlpV2ListInfoTypesResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + locationId: arg_locationId, + filter: arg_filter, + languageCode: arg_languageCode, + parent: arg_parent, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGooglePrivacyDlpV2ListInfoTypesResponse(response); + }))); + }); + }); + + unittest.group("resource-LocationsInfoTypesResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.LocationsInfoTypesResourceApi res = + new api.DlpApi(mock).locations.infoTypes; + var arg_parent = "foo"; + var arg_languageCode = "foo"; + var arg_filter = "foo"; + var arg_locationId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( @@ -7274,7 +7376,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list( + .list(arg_parent, languageCode: arg_languageCode, filter: arg_filter, locationId: arg_locationId, @@ -7285,77 +7387,6 @@ }); }); - unittest.group("resource-LocationsInfoTypesResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.LocationsInfoTypesResourceApi res = - new api.DlpApi(mock).locations.infoTypes; - var arg_locationId = "foo"; - var arg_languageCode = "foo"; - var arg_filter = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("v2/locations/")); - pathOffset += 13; - index = path.indexOf("/infoTypes", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_locationId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("/infoTypes")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["languageCode"].first, unittest.equals(arg_languageCode)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = - convert.json.encode(buildGooglePrivacyDlpV2ListInfoTypesResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_locationId, - languageCode: arg_languageCode, - filter: arg_filter, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGooglePrivacyDlpV2ListInfoTypesResponse(response); - }))); - }); - }); - unittest.group("resource-OrganizationsDeidentifyTemplatesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -7529,8 +7560,8 @@ var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_orderBy = "foo"; - var arg_pageSize = 42; var arg_locationId = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7567,10 +7598,10 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7584,8 +7615,8 @@ .list(arg_parent, pageToken: arg_pageToken, orderBy: arg_orderBy, - pageSize: arg_pageSize, locationId: arg_locationId, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListDeidentifyTemplatesResponse(response); @@ -7823,10 +7854,10 @@ api.OrganizationsInspectTemplatesResourceApi res = new api.DlpApi(mock).organizations.inspectTemplates; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_locationId = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7859,14 +7890,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7878,10 +7909,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, pageSize: arg_pageSize, + orderBy: arg_orderBy, locationId: arg_locationId, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListInspectTemplatesResponse(response); @@ -7957,7 +7988,6 @@ var arg_request = buildGooglePrivacyDlpV2CreateDeidentifyTemplateRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -8005,7 +8035,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2DeidentifyTemplate(response); }))); @@ -8121,9 +8151,9 @@ api.OrganizationsLocationsDeidentifyTemplatesResourceApi res = new api.DlpApi(mock).organizations.locations.deidentifyTemplates; var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_pageToken = "foo"; var arg_orderBy = "foo"; + var arg_locationId = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -8161,6 +8191,8 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -8173,9 +8205,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, + .list(arg_parent, pageToken: arg_pageToken, orderBy: arg_orderBy, + locationId: arg_locationId, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -8252,7 +8285,6 @@ new api.DlpApi(mock).organizations.locations.inspectTemplates; var arg_request = buildGooglePrivacyDlpV2CreateInspectTemplateRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -8300,7 +8332,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2InspectTemplate(response); }))); @@ -8416,10 +8448,10 @@ api.OrganizationsLocationsInspectTemplatesResourceApi res = new api.DlpApi(mock).organizations.locations.inspectTemplates; var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8454,10 +8486,12 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8468,10 +8502,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, + .list(arg_parent, pageToken: arg_pageToken, - orderBy: arg_orderBy, pageSize: arg_pageSize, + orderBy: arg_orderBy, + locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListInspectTemplatesResponse(response); @@ -8546,7 +8581,6 @@ new api.DlpApi(mock).organizations.locations.storedInfoTypes; var arg_request = buildGooglePrivacyDlpV2CreateStoredInfoTypeRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -8593,7 +8627,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2StoredInfoType(response); }))); @@ -8708,10 +8742,10 @@ api.OrganizationsLocationsStoredInfoTypesResourceApi res = new api.DlpApi(mock).organizations.locations.storedInfoTypes; var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_pageToken = "foo"; var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8750,6 +8784,8 @@ queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8760,10 +8796,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, + .list(arg_parent, pageToken: arg_pageToken, orderBy: arg_orderBy, pageSize: arg_pageSize, + locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListStoredInfoTypesResponse(response); @@ -8997,10 +9034,10 @@ api.OrganizationsStoredInfoTypesResourceApi res = new api.DlpApi(mock).organizations.storedInfoTypes; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; var arg_locationId = "foo"; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9033,14 +9070,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9052,10 +9089,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, pageSize: arg_pageSize, locationId: arg_locationId, + pageToken: arg_pageToken, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListStoredInfoTypesResponse(response); @@ -9468,10 +9505,10 @@ api.ProjectsDeidentifyTemplatesResourceApi res = new api.DlpApi(mock).projects.deidentifyTemplates; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_locationId = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9504,14 +9541,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9523,10 +9560,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, pageSize: arg_pageSize, + pageToken: arg_pageToken, locationId: arg_locationId, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListDeidentifyTemplatesResponse(response); @@ -9816,11 +9853,11 @@ api.ProjectsDlpJobsResourceApi res = new api.DlpApi(mock).projects.dlpJobs; var arg_parent = "foo"; - var arg_orderBy = "foo"; - var arg_type = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_orderBy = "foo"; var arg_locationId = "foo"; + var arg_type = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9855,13 +9892,13 @@ } } unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9875,11 +9912,11 @@ }), true); res .list(arg_parent, - orderBy: arg_orderBy, - type: arg_type, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, + orderBy: arg_orderBy, locationId: arg_locationId, + type: arg_type, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -10116,10 +10153,10 @@ api.ProjectsInspectTemplatesResourceApi res = new api.DlpApi(mock).projects.inspectTemplates; var arg_parent = "foo"; + var arg_locationId = "foo"; + var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_orderBy = "foo"; - var arg_pageSize = 42; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10153,13 +10190,13 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["locationId"].first, unittest.equals(arg_locationId)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10171,10 +10208,10 @@ }), true); res .list(arg_parent, + locationId: arg_locationId, + pageSize: arg_pageSize, pageToken: arg_pageToken, orderBy: arg_orderBy, - pageSize: arg_pageSize, - locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListInspectTemplatesResponse(response); @@ -10465,11 +10502,11 @@ api.ProjectsJobTriggersResourceApi res = new api.DlpApi(mock).projects.jobTriggers; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_locationId = "foo"; var arg_pageSize = 42; - var arg_orderBy = "foo"; + var arg_locationId = "foo"; var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10502,15 +10539,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10522,11 +10559,11 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - locationId: arg_locationId, pageSize: arg_pageSize, - orderBy: arg_orderBy, + locationId: arg_locationId, filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListJobTriggersResponse(response); @@ -10598,7 +10635,6 @@ new api.DlpApi(mock).projects.locations.content; var arg_request = buildGooglePrivacyDlpV2DeidentifyContentRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -10645,8 +10681,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .deidentify(arg_request, arg_parent, arg_locationId, - $fields: arg_$fields) + .deidentify(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2DeidentifyContentResponse(response); }))); @@ -10658,7 +10693,6 @@ new api.DlpApi(mock).projects.locations.content; var arg_request = buildGooglePrivacyDlpV2InspectContentRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -10705,8 +10739,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .inspect(arg_request, arg_parent, arg_locationId, - $fields: arg_$fields) + .inspect(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2InspectContentResponse(response); }))); @@ -10718,7 +10751,6 @@ new api.DlpApi(mock).projects.locations.content; var arg_request = buildGooglePrivacyDlpV2ReidentifyContentRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -10765,8 +10797,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .reidentify(arg_request, arg_parent, arg_locationId, - $fields: arg_$fields) + .reidentify(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ReidentifyContentResponse(response); }))); @@ -10782,7 +10813,6 @@ var arg_request = buildGooglePrivacyDlpV2CreateDeidentifyTemplateRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -10830,7 +10860,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2DeidentifyTemplate(response); }))); @@ -10983,6 +11013,8 @@ } } unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); @@ -10998,7 +11030,8 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, + .list(arg_parent, + locationId: arg_locationId, pageToken: arg_pageToken, orderBy: arg_orderBy, pageSize: arg_pageSize, @@ -11132,7 +11165,6 @@ new api.DlpApi(mock).projects.locations.dlpJobs; var arg_request = buildGooglePrivacyDlpV2CreateDlpJobRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GooglePrivacyDlpV2CreateDlpJobRequest.fromJson(json); @@ -11177,7 +11209,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2DlpJob(response); }))); @@ -11406,12 +11438,12 @@ api.ProjectsLocationsDlpJobsResourceApi res = new api.DlpApi(mock).projects.locations.dlpJobs; var arg_parent = "foo"; - var arg_locationId = "foo"; + var arg_pageSize = 42; var arg_type = "foo"; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_orderBy = "foo"; + var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11444,14 +11476,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11462,12 +11496,13 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, + .list(arg_parent, + pageSize: arg_pageSize, type: arg_type, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, orderBy: arg_orderBy, + locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListDlpJobsResponse(response); @@ -11482,7 +11517,6 @@ new api.DlpApi(mock).projects.locations.image; var arg_request = buildGooglePrivacyDlpV2RedactImageRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.GooglePrivacyDlpV2RedactImageRequest.fromJson(json); @@ -11528,7 +11562,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .redact(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .redact(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2RedactImageResponse(response); }))); @@ -11542,7 +11576,6 @@ new api.DlpApi(mock).projects.locations.inspectTemplates; var arg_request = buildGooglePrivacyDlpV2CreateInspectTemplateRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -11590,7 +11623,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2InspectTemplate(response); }))); @@ -11706,10 +11739,10 @@ api.ProjectsLocationsInspectTemplatesResourceApi res = new api.DlpApi(mock).projects.locations.inspectTemplates; var arg_parent = "foo"; - var arg_locationId = "foo"; - var arg_pageToken = "foo"; var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11743,11 +11776,13 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11758,10 +11793,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, - pageToken: arg_pageToken, + .list(arg_parent, orderBy: arg_orderBy, pageSize: arg_pageSize, + pageToken: arg_pageToken, + locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListInspectTemplatesResponse(response); @@ -11892,7 +11928,6 @@ new api.DlpApi(mock).projects.locations.jobTriggers; var arg_request = buildGooglePrivacyDlpV2CreateJobTriggerRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -11938,7 +11973,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2JobTrigger(response); }))); @@ -12112,11 +12147,11 @@ api.ProjectsLocationsJobTriggersResourceApi res = new api.DlpApi(mock).projects.locations.jobTriggers; var arg_parent = "foo"; - var arg_locationId = "foo"; - var arg_orderBy = "foo"; var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12149,13 +12184,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12166,11 +12203,12 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, - orderBy: arg_orderBy, + .list(arg_parent, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + orderBy: arg_orderBy, + locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListJobTriggersResponse(response); @@ -12242,7 +12280,6 @@ new api.DlpApi(mock).projects.locations.storedInfoTypes; var arg_request = buildGooglePrivacyDlpV2CreateStoredInfoTypeRequest(); var arg_parent = "foo"; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = @@ -12289,7 +12326,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .create(arg_request, arg_parent, arg_locationId, $fields: arg_$fields) + .create(arg_request, arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2StoredInfoType(response); }))); @@ -12404,10 +12441,10 @@ api.ProjectsLocationsStoredInfoTypesResourceApi res = new api.DlpApi(mock).projects.locations.storedInfoTypes; var arg_parent = "foo"; - var arg_locationId = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_locationId = "foo"; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12440,12 +12477,14 @@ 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["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12456,10 +12495,11 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_parent, arg_locationId, - pageToken: arg_pageToken, - orderBy: arg_orderBy, + .list(arg_parent, pageSize: arg_pageSize, + pageToken: arg_pageToken, + locationId: arg_locationId, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListStoredInfoTypesResponse(response); @@ -12694,9 +12734,9 @@ new api.DlpApi(mock).projects.storedInfoTypes; var arg_parent = "foo"; var arg_pageToken = "foo"; + var arg_locationId = "foo"; var arg_orderBy = "foo"; var arg_pageSize = 42; - var arg_locationId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12732,11 +12772,11 @@ unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( + queryMap["locationId"].first, unittest.equals(arg_locationId)); + unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["locationId"].first, unittest.equals(arg_locationId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12749,9 +12789,9 @@ res .list(arg_parent, pageToken: arg_pageToken, + locationId: arg_locationId, orderBy: arg_orderBy, pageSize: arg_pageSize, - locationId: arg_locationId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGooglePrivacyDlpV2ListStoredInfoTypesResponse(response);
diff --git a/generated/googleapis/test/dns/v1_test.dart b/generated/googleapis/test/dns/v1_test.dart index ad98545..403f597 100644 --- a/generated/googleapis/test/dns/v1_test.dart +++ b/generated/googleapis/test/dns/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed102() { +buildUnnamed83() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed102(core.List<api.ResourceRecordSet> o) { +checkUnnamed83(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); } -buildUnnamed103() { +buildUnnamed84() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed103(core.List<api.ResourceRecordSet> o) { +checkUnnamed84(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -81,8 +81,8 @@ var o = new api.Change(); buildCounterChange++; if (buildCounterChange < 3) { - o.additions = buildUnnamed102(); - o.deletions = buildUnnamed103(); + o.additions = buildUnnamed83(); + o.deletions = buildUnnamed84(); o.id = "foo"; o.isServing = true; o.kind = "foo"; @@ -96,8 +96,8 @@ checkChange(api.Change o) { buildCounterChange++; if (buildCounterChange < 3) { - checkUnnamed102(o.additions); - checkUnnamed103(o.deletions); + checkUnnamed83(o.additions); + checkUnnamed84(o.deletions); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isServing, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -107,14 +107,14 @@ buildCounterChange--; } -buildUnnamed104() { +buildUnnamed85() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed104(core.List<api.Change> o) { +checkUnnamed85(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -125,7 +125,7 @@ var o = new api.ChangesListResponse(); buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - o.changes = buildUnnamed104(); + o.changes = buildUnnamed85(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -137,7 +137,7 @@ checkChangesListResponse(api.ChangesListResponse o) { buildCounterChangesListResponse++; if (buildCounterChangesListResponse < 3) { - checkUnnamed104(o.changes); + checkUnnamed85(o.changes); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -145,14 +145,14 @@ buildCounterChangesListResponse--; } -buildUnnamed105() { +buildUnnamed86() { var o = new core.List<api.DnsKeyDigest>(); o.add(buildDnsKeyDigest()); o.add(buildDnsKeyDigest()); return o; } -checkUnnamed105(core.List<api.DnsKeyDigest> o) { +checkUnnamed86(core.List<api.DnsKeyDigest> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeyDigest(o[0]); checkDnsKeyDigest(o[1]); @@ -166,7 +166,7 @@ o.algorithm = "foo"; o.creationTime = "foo"; o.description = "foo"; - o.digests = buildUnnamed105(); + o.digests = buildUnnamed86(); o.id = "foo"; o.isActive = true; o.keyLength = 42; @@ -185,7 +185,7 @@ unittest.expect(o.algorithm, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed105(o.digests); + checkUnnamed86(o.digests); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.isActive, unittest.isTrue); unittest.expect(o.keyLength, unittest.equals(42)); @@ -243,14 +243,14 @@ buildCounterDnsKeySpec--; } -buildUnnamed106() { +buildUnnamed87() { var o = new core.List<api.DnsKey>(); o.add(buildDnsKey()); o.add(buildDnsKey()); return o; } -checkUnnamed106(core.List<api.DnsKey> o) { +checkUnnamed87(core.List<api.DnsKey> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKey(o[0]); checkDnsKey(o[1]); @@ -261,7 +261,7 @@ var o = new api.DnsKeysListResponse(); buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - o.dnsKeys = buildUnnamed106(); + o.dnsKeys = buildUnnamed87(); o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; @@ -273,7 +273,7 @@ checkDnsKeysListResponse(api.DnsKeysListResponse o) { buildCounterDnsKeysListResponse++; if (buildCounterDnsKeysListResponse < 3) { - checkUnnamed106(o.dnsKeys); + checkUnnamed87(o.dnsKeys); checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -281,27 +281,27 @@ buildCounterDnsKeysListResponse--; } -buildUnnamed107() { +buildUnnamed88() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed107(core.Map<core.String, core.String> o) { +checkUnnamed88(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')); } -buildUnnamed108() { +buildUnnamed89() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed108(core.List<core.String> o) { +checkUnnamed89(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -319,12 +319,13 @@ o.forwardingConfig = buildManagedZoneForwardingConfig(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed107(); + o.labels = buildUnnamed88(); o.name = "foo"; o.nameServerSet = "foo"; - o.nameServers = buildUnnamed108(); + o.nameServers = buildUnnamed89(); o.peeringConfig = buildManagedZonePeeringConfig(); o.privateVisibilityConfig = buildManagedZonePrivateVisibilityConfig(); + o.reverseLookupConfig = buildManagedZoneReverseLookupConfig(); o.visibility = "foo"; } buildCounterManagedZone--; @@ -341,25 +342,26 @@ checkManagedZoneForwardingConfig(o.forwardingConfig); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed107(o.labels); + checkUnnamed88(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nameServerSet, unittest.equals('foo')); - checkUnnamed108(o.nameServers); + checkUnnamed89(o.nameServers); checkManagedZonePeeringConfig(o.peeringConfig); checkManagedZonePrivateVisibilityConfig(o.privateVisibilityConfig); + checkManagedZoneReverseLookupConfig(o.reverseLookupConfig); unittest.expect(o.visibility, unittest.equals('foo')); } buildCounterManagedZone--; } -buildUnnamed109() { +buildUnnamed90() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed109(core.List<api.DnsKeySpec> o) { +checkUnnamed90(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -370,7 +372,7 @@ var o = new api.ManagedZoneDnsSecConfig(); buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - o.defaultKeySpecs = buildUnnamed109(); + o.defaultKeySpecs = buildUnnamed90(); o.kind = "foo"; o.nonExistence = "foo"; o.state = "foo"; @@ -382,7 +384,7 @@ checkManagedZoneDnsSecConfig(api.ManagedZoneDnsSecConfig o) { buildCounterManagedZoneDnsSecConfig++; if (buildCounterManagedZoneDnsSecConfig < 3) { - checkUnnamed109(o.defaultKeySpecs); + checkUnnamed90(o.defaultKeySpecs); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nonExistence, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -390,14 +392,14 @@ buildCounterManagedZoneDnsSecConfig--; } -buildUnnamed110() { +buildUnnamed91() { var o = new core.List<api.ManagedZoneForwardingConfigNameServerTarget>(); o.add(buildManagedZoneForwardingConfigNameServerTarget()); o.add(buildManagedZoneForwardingConfigNameServerTarget()); return o; } -checkUnnamed110(core.List<api.ManagedZoneForwardingConfigNameServerTarget> o) { +checkUnnamed91(core.List<api.ManagedZoneForwardingConfigNameServerTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZoneForwardingConfigNameServerTarget(o[0]); checkManagedZoneForwardingConfigNameServerTarget(o[1]); @@ -409,7 +411,7 @@ buildCounterManagedZoneForwardingConfig++; if (buildCounterManagedZoneForwardingConfig < 3) { o.kind = "foo"; - o.targetNameServers = buildUnnamed110(); + o.targetNameServers = buildUnnamed91(); } buildCounterManagedZoneForwardingConfig--; return o; @@ -419,7 +421,7 @@ buildCounterManagedZoneForwardingConfig++; if (buildCounterManagedZoneForwardingConfig < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed110(o.targetNameServers); + checkUnnamed91(o.targetNameServers); } buildCounterManagedZoneForwardingConfig--; } @@ -429,6 +431,7 @@ var o = new api.ManagedZoneForwardingConfigNameServerTarget(); buildCounterManagedZoneForwardingConfigNameServerTarget++; if (buildCounterManagedZoneForwardingConfigNameServerTarget < 3) { + o.forwardingPath = "foo"; o.ipv4Address = "foo"; o.kind = "foo"; } @@ -440,20 +443,21 @@ api.ManagedZoneForwardingConfigNameServerTarget o) { buildCounterManagedZoneForwardingConfigNameServerTarget++; if (buildCounterManagedZoneForwardingConfigNameServerTarget < 3) { + unittest.expect(o.forwardingPath, unittest.equals('foo')); unittest.expect(o.ipv4Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterManagedZoneForwardingConfigNameServerTarget--; } -buildUnnamed111() { +buildUnnamed92() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed111(core.List<api.Operation> o) { +checkUnnamed92(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -467,7 +471,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.operations = buildUnnamed111(); + o.operations = buildUnnamed92(); } buildCounterManagedZoneOperationsListResponse--; return o; @@ -480,7 +484,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed111(o.operations); + checkUnnamed92(o.operations); } buildCounterManagedZoneOperationsListResponse--; } @@ -530,14 +534,14 @@ buildCounterManagedZonePeeringConfigTargetNetwork--; } -buildUnnamed112() { +buildUnnamed93() { var o = new core.List<api.ManagedZonePrivateVisibilityConfigNetwork>(); o.add(buildManagedZonePrivateVisibilityConfigNetwork()); o.add(buildManagedZonePrivateVisibilityConfigNetwork()); return o; } -checkUnnamed112(core.List<api.ManagedZonePrivateVisibilityConfigNetwork> o) { +checkUnnamed93(core.List<api.ManagedZonePrivateVisibilityConfigNetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZonePrivateVisibilityConfigNetwork(o[0]); checkManagedZonePrivateVisibilityConfigNetwork(o[1]); @@ -549,7 +553,7 @@ buildCounterManagedZonePrivateVisibilityConfig++; if (buildCounterManagedZonePrivateVisibilityConfig < 3) { o.kind = "foo"; - o.networks = buildUnnamed112(); + o.networks = buildUnnamed93(); } buildCounterManagedZonePrivateVisibilityConfig--; return o; @@ -560,7 +564,7 @@ buildCounterManagedZonePrivateVisibilityConfig++; if (buildCounterManagedZonePrivateVisibilityConfig < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed112(o.networks); + checkUnnamed93(o.networks); } buildCounterManagedZonePrivateVisibilityConfig--; } @@ -587,14 +591,33 @@ buildCounterManagedZonePrivateVisibilityConfigNetwork--; } -buildUnnamed113() { +core.int buildCounterManagedZoneReverseLookupConfig = 0; +buildManagedZoneReverseLookupConfig() { + var o = new api.ManagedZoneReverseLookupConfig(); + buildCounterManagedZoneReverseLookupConfig++; + if (buildCounterManagedZoneReverseLookupConfig < 3) { + o.kind = "foo"; + } + buildCounterManagedZoneReverseLookupConfig--; + return o; +} + +checkManagedZoneReverseLookupConfig(api.ManagedZoneReverseLookupConfig o) { + buildCounterManagedZoneReverseLookupConfig++; + if (buildCounterManagedZoneReverseLookupConfig < 3) { + unittest.expect(o.kind, unittest.equals('foo')); + } + buildCounterManagedZoneReverseLookupConfig--; +} + +buildUnnamed94() { var o = new core.List<api.ManagedZone>(); o.add(buildManagedZone()); o.add(buildManagedZone()); return o; } -checkUnnamed113(core.List<api.ManagedZone> o) { +checkUnnamed94(core.List<api.ManagedZone> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedZone(o[0]); checkManagedZone(o[1]); @@ -607,7 +630,7 @@ if (buildCounterManagedZonesListResponse < 3) { o.header = buildResponseHeader(); o.kind = "foo"; - o.managedZones = buildUnnamed113(); + o.managedZones = buildUnnamed94(); o.nextPageToken = "foo"; } buildCounterManagedZonesListResponse--; @@ -619,7 +642,7 @@ if (buildCounterManagedZonesListResponse < 3) { checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed113(o.managedZones); + checkUnnamed94(o.managedZones); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterManagedZonesListResponse--; @@ -700,14 +723,14 @@ buildCounterOperationManagedZoneContext--; } -buildUnnamed114() { +buildUnnamed95() { var o = new core.List<api.Policy>(); o.add(buildPolicy()); o.add(buildPolicy()); return o; } -checkUnnamed114(core.List<api.Policy> o) { +checkUnnamed95(core.List<api.Policy> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicy(o[0]); checkPolicy(o[1]); @@ -721,7 +744,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.policies = buildUnnamed114(); + o.policies = buildUnnamed95(); } buildCounterPoliciesListResponse--; return o; @@ -733,7 +756,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed114(o.policies); + checkUnnamed95(o.policies); } buildCounterPoliciesListResponse--; } @@ -780,14 +803,14 @@ buildCounterPoliciesUpdateResponse--; } -buildUnnamed115() { +buildUnnamed96() { var o = new core.List<api.PolicyNetwork>(); o.add(buildPolicyNetwork()); o.add(buildPolicyNetwork()); return o; } -checkUnnamed115(core.List<api.PolicyNetwork> o) { +checkUnnamed96(core.List<api.PolicyNetwork> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyNetwork(o[0]); checkPolicyNetwork(o[1]); @@ -805,7 +828,7 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.networks = buildUnnamed115(); + o.networks = buildUnnamed96(); } buildCounterPolicy--; return o; @@ -821,12 +844,12 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed115(o.networks); + checkUnnamed96(o.networks); } buildCounterPolicy--; } -buildUnnamed116() { +buildUnnamed97() { var o = new core.List<api.PolicyAlternativeNameServerConfigTargetNameServer>(); o.add(buildPolicyAlternativeNameServerConfigTargetNameServer()); @@ -834,7 +857,7 @@ return o; } -checkUnnamed116( +checkUnnamed97( core.List<api.PolicyAlternativeNameServerConfigTargetNameServer> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyAlternativeNameServerConfigTargetNameServer(o[0]); @@ -847,7 +870,7 @@ buildCounterPolicyAlternativeNameServerConfig++; if (buildCounterPolicyAlternativeNameServerConfig < 3) { o.kind = "foo"; - o.targetNameServers = buildUnnamed116(); + o.targetNameServers = buildUnnamed97(); } buildCounterPolicyAlternativeNameServerConfig--; return o; @@ -858,7 +881,7 @@ buildCounterPolicyAlternativeNameServerConfig++; if (buildCounterPolicyAlternativeNameServerConfig < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed116(o.targetNameServers); + checkUnnamed97(o.targetNameServers); } buildCounterPolicyAlternativeNameServerConfig--; } @@ -868,6 +891,7 @@ var o = new api.PolicyAlternativeNameServerConfigTargetNameServer(); buildCounterPolicyAlternativeNameServerConfigTargetNameServer++; if (buildCounterPolicyAlternativeNameServerConfigTargetNameServer < 3) { + o.forwardingPath = "foo"; o.ipv4Address = "foo"; o.kind = "foo"; } @@ -879,6 +903,7 @@ api.PolicyAlternativeNameServerConfigTargetNameServer o) { buildCounterPolicyAlternativeNameServerConfigTargetNameServer++; if (buildCounterPolicyAlternativeNameServerConfigTargetNameServer < 3) { + unittest.expect(o.forwardingPath, unittest.equals('foo')); unittest.expect(o.ipv4Address, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); } @@ -931,14 +956,14 @@ buildCounterProject--; } -buildUnnamed117() { +buildUnnamed98() { var o = new core.List<api.DnsKeySpec>(); o.add(buildDnsKeySpec()); o.add(buildDnsKeySpec()); return o; } -checkUnnamed117(core.List<api.DnsKeySpec> o) { +checkUnnamed98(core.List<api.DnsKeySpec> o) { unittest.expect(o, unittest.hasLength(2)); checkDnsKeySpec(o[0]); checkDnsKeySpec(o[1]); @@ -963,7 +988,7 @@ o.targetNameServersPerManagedZone = 42; o.targetNameServersPerPolicy = 42; o.totalRrdataSizePerChange = 42; - o.whitelistedKeySpecs = buildUnnamed117(); + o.whitelistedKeySpecs = buildUnnamed98(); } buildCounterQuota--; return o; @@ -986,32 +1011,32 @@ unittest.expect(o.targetNameServersPerManagedZone, unittest.equals(42)); unittest.expect(o.targetNameServersPerPolicy, unittest.equals(42)); unittest.expect(o.totalRrdataSizePerChange, unittest.equals(42)); - checkUnnamed117(o.whitelistedKeySpecs); + checkUnnamed98(o.whitelistedKeySpecs); } buildCounterQuota--; } -buildUnnamed118() { +buildUnnamed99() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed118(core.List<core.String> o) { +checkUnnamed99(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed119() { +buildUnnamed100() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed119(core.List<core.String> o) { +checkUnnamed100(core.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,8 +1049,8 @@ if (buildCounterResourceRecordSet < 3) { o.kind = "foo"; o.name = "foo"; - o.rrdatas = buildUnnamed118(); - o.signatureRrdatas = buildUnnamed119(); + o.rrdatas = buildUnnamed99(); + o.signatureRrdatas = buildUnnamed100(); o.ttl = 42; o.type = "foo"; } @@ -1038,22 +1063,22 @@ if (buildCounterResourceRecordSet < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed118(o.rrdatas); - checkUnnamed119(o.signatureRrdatas); + checkUnnamed99(o.rrdatas); + checkUnnamed100(o.signatureRrdatas); unittest.expect(o.ttl, unittest.equals(42)); unittest.expect(o.type, unittest.equals('foo')); } buildCounterResourceRecordSet--; } -buildUnnamed120() { +buildUnnamed101() { var o = new core.List<api.ResourceRecordSet>(); o.add(buildResourceRecordSet()); o.add(buildResourceRecordSet()); return o; } -checkUnnamed120(core.List<api.ResourceRecordSet> o) { +checkUnnamed101(core.List<api.ResourceRecordSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecordSet(o[0]); checkResourceRecordSet(o[1]); @@ -1067,7 +1092,7 @@ o.header = buildResponseHeader(); o.kind = "foo"; o.nextPageToken = "foo"; - o.rrsets = buildUnnamed120(); + o.rrsets = buildUnnamed101(); } buildCounterResourceRecordSetsListResponse--; return o; @@ -1079,7 +1104,7 @@ checkResponseHeader(o.header); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed120(o.rrsets); + checkUnnamed101(o.rrsets); } buildCounterResourceRecordSetsListResponse--; } @@ -1227,6 +1252,14 @@ }); }); + unittest.group("obj-schema-ManagedZoneReverseLookupConfig", () { + unittest.test("to-json--from-json", () { + var o = buildManagedZoneReverseLookupConfig(); + var od = new api.ManagedZoneReverseLookupConfig.fromJson(o.toJson()); + checkManagedZoneReverseLookupConfig(od); + }); + }); + unittest.group("obj-schema-ManagedZonesListResponse", () { unittest.test("to-json--from-json", () { var o = buildManagedZonesListResponse(); @@ -1378,6 +1411,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/changes", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/changes")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -1431,6 +1485,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/changes/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/changes/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_changeId")); var query = (req.url).query; var queryOffset = 0; @@ -1473,10 +1551,10 @@ api.ChangesResourceApi res = new api.DnsApi(mock).changes; var arg_project = "foo"; var arg_managedZone = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_sortBy = "foo"; var arg_sortOrder = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1486,6 +1564,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/changes", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/changes")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -1505,13 +1604,13 @@ 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["sortBy"].first, unittest.equals(arg_sortBy)); unittest.expect( queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1522,10 +1621,10 @@ }), true); res .list(arg_project, arg_managedZone, - maxResults: arg_maxResults, pageToken: arg_pageToken, sortBy: arg_sortBy, sortOrder: arg_sortOrder, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChangesListResponse(response); @@ -1551,6 +1650,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/dnsKeys/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/dnsKeys/")); + pathOffset += 9; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_dnsKeyId")); var query = (req.url).query; var queryOffset = 0; @@ -1597,8 +1720,8 @@ api.DnsKeysResourceApi res = new api.DnsApi(mock).dnsKeys; var arg_project = "foo"; var arg_managedZone = "foo"; - var arg_digestType = "foo"; var arg_maxResults = 42; + var arg_digestType = "foo"; var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1609,6 +1732,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/dnsKeys", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/dnsKeys")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -1628,11 +1772,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["digestType"].first, unittest.equals(arg_digestType)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( + queryMap["digestType"].first, unittest.equals(arg_digestType)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1644,8 +1788,8 @@ }), true); res .list(arg_project, arg_managedZone, - digestType: arg_digestType, maxResults: arg_maxResults, + digestType: arg_digestType, pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1672,6 +1816,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + 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_managedZone")); + 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_operation")); var query = (req.url).query; var queryOffset = 0; @@ -1727,6 +1895,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + 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_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/operations")); + pathOffset += 11; var query = (req.url).query; var queryOffset = 0; @@ -1791,6 +1980,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), + unittest.equals("/managedZones")); + pathOffset += 13; var query = (req.url).query; var queryOffset = 0; @@ -1843,6 +2044,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); var query = (req.url).query; var queryOffset = 0; @@ -1893,6 +2109,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); var query = (req.url).query; var queryOffset = 0; @@ -1934,9 +2165,9 @@ var mock = new HttpServerMock(); api.ManagedZonesResourceApi res = new api.DnsApi(mock).managedZones; var arg_project = "foo"; + var arg_pageToken = "foo"; var arg_dnsName = "foo"; var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1946,6 +2177,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), + unittest.equals("/managedZones")); + pathOffset += 13; var query = (req.url).query; var queryOffset = 0; @@ -1966,11 +2209,11 @@ } } unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["dnsName"].first, unittest.equals(arg_dnsName)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1981,9 +2224,9 @@ }), true); res .list(arg_project, + pageToken: arg_pageToken, dnsName: arg_dnsName, maxResults: arg_maxResults, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkManagedZonesListResponse(response); @@ -2009,6 +2252,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); var query = (req.url).query; var queryOffset = 0; @@ -2065,6 +2323,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); var query = (req.url).query; var queryOffset = 0; @@ -2122,6 +2395,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/policies")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -2174,6 +2459,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/policies/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_policy")); var query = (req.url).query; var queryOffset = 0; @@ -2224,6 +2524,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/policies/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_policy")); var query = (req.url).query; var queryOffset = 0; @@ -2276,6 +2591,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/policies")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -2336,6 +2663,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/policies/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_policy")); var query = (req.url).query; var queryOffset = 0; @@ -2392,6 +2734,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/policies/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/policies/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_policy")); var query = (req.url).query; var queryOffset = 0; @@ -2445,6 +2802,12 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_project")); var query = (req.url).query; var queryOffset = 0; @@ -2491,9 +2854,9 @@ var arg_project = "foo"; var arg_managedZone = "foo"; var arg_maxResults = 42; - var arg_name = "foo"; var arg_pageToken = "foo"; var arg_type = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2503,6 +2866,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("dns/v1/projects/")); + pathOffset += 16; + index = path.indexOf("/managedZones/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_project")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/managedZones/")); + pathOffset += 14; + index = path.indexOf("/rrsets", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_managedZone")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/rrsets")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2524,10 +2908,10 @@ } 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["type"].first, unittest.equals(arg_type)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2539,9 +2923,9 @@ res .list(arg_project, arg_managedZone, maxResults: arg_maxResults, - name: arg_name, pageToken: arg_pageToken, type: arg_type, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkResourceRecordSetsListResponse(response);
diff --git a/generated/googleapis/test/docs/v1_test.dart b/generated/googleapis/test/docs/v1_test.dart index 8055eac..d3f1039 100644 --- a/generated/googleapis/test/docs/v1_test.dart +++ b/generated/googleapis/test/docs/v1_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed5347() { +buildUnnamed5746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5347(core.List<core.String> o) { +checkUnnamed5746(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5348() { +buildUnnamed5747() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5348(core.List<core.String> o) { +checkUnnamed5747(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5349() { +buildUnnamed5748() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5349(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5748(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -94,9 +94,9 @@ var o = new api.AutoText(); buildCounterAutoText++; if (buildCounterAutoText < 3) { - o.suggestedDeletionIds = buildUnnamed5347(); - o.suggestedInsertionIds = buildUnnamed5348(); - o.suggestedTextStyleChanges = buildUnnamed5349(); + o.suggestedDeletionIds = buildUnnamed5746(); + o.suggestedInsertionIds = buildUnnamed5747(); + o.suggestedTextStyleChanges = buildUnnamed5748(); o.textStyle = buildTextStyle(); o.type = "foo"; } @@ -107,9 +107,9 @@ checkAutoText(api.AutoText o) { buildCounterAutoText++; if (buildCounterAutoText < 3) { - checkUnnamed5347(o.suggestedDeletionIds); - checkUnnamed5348(o.suggestedInsertionIds); - checkUnnamed5349(o.suggestedTextStyleChanges); + checkUnnamed5746(o.suggestedDeletionIds); + checkUnnamed5747(o.suggestedInsertionIds); + checkUnnamed5748(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); unittest.expect(o.type, unittest.equals('foo')); } @@ -154,14 +154,14 @@ buildCounterBackgroundSuggestionState--; } -buildUnnamed5350() { +buildUnnamed5749() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed5350(core.List<api.Request> o) { +checkUnnamed5749(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -172,7 +172,7 @@ var o = new api.BatchUpdateDocumentRequest(); buildCounterBatchUpdateDocumentRequest++; if (buildCounterBatchUpdateDocumentRequest < 3) { - o.requests = buildUnnamed5350(); + o.requests = buildUnnamed5749(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdateDocumentRequest--; @@ -182,20 +182,20 @@ checkBatchUpdateDocumentRequest(api.BatchUpdateDocumentRequest o) { buildCounterBatchUpdateDocumentRequest++; if (buildCounterBatchUpdateDocumentRequest < 3) { - checkUnnamed5350(o.requests); + checkUnnamed5749(o.requests); checkWriteControl(o.writeControl); } buildCounterBatchUpdateDocumentRequest--; } -buildUnnamed5351() { +buildUnnamed5750() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed5351(core.List<api.Response> o) { +checkUnnamed5750(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -207,7 +207,7 @@ buildCounterBatchUpdateDocumentResponse++; if (buildCounterBatchUpdateDocumentResponse < 3) { o.documentId = "foo"; - o.replies = buildUnnamed5351(); + o.replies = buildUnnamed5750(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdateDocumentResponse--; @@ -218,20 +218,20 @@ buildCounterBatchUpdateDocumentResponse++; if (buildCounterBatchUpdateDocumentResponse < 3) { unittest.expect(o.documentId, unittest.equals('foo')); - checkUnnamed5351(o.replies); + checkUnnamed5750(o.replies); checkWriteControl(o.writeControl); } buildCounterBatchUpdateDocumentResponse--; } -buildUnnamed5352() { +buildUnnamed5751() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5352(core.List<api.StructuralElement> o) { +checkUnnamed5751(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); @@ -242,7 +242,7 @@ var o = new api.Body(); buildCounterBody++; if (buildCounterBody < 3) { - o.content = buildUnnamed5352(); + o.content = buildUnnamed5751(); } buildCounterBody--; return o; @@ -251,7 +251,7 @@ checkBody(api.Body o) { buildCounterBody++; if (buildCounterBody < 3) { - checkUnnamed5352(o.content); + checkUnnamed5751(o.content); } buildCounterBody--; } @@ -321,40 +321,40 @@ buildCounterColor--; } -buildUnnamed5353() { +buildUnnamed5752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5353(core.List<core.String> o) { +checkUnnamed5752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5354() { +buildUnnamed5753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5354(core.List<core.String> o) { +checkUnnamed5753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5355() { +buildUnnamed5754() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5355(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5754(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -365,9 +365,9 @@ var o = new api.ColumnBreak(); buildCounterColumnBreak++; if (buildCounterColumnBreak < 3) { - o.suggestedDeletionIds = buildUnnamed5353(); - o.suggestedInsertionIds = buildUnnamed5354(); - o.suggestedTextStyleChanges = buildUnnamed5355(); + o.suggestedDeletionIds = buildUnnamed5752(); + o.suggestedInsertionIds = buildUnnamed5753(); + o.suggestedTextStyleChanges = buildUnnamed5754(); o.textStyle = buildTextStyle(); } buildCounterColumnBreak--; @@ -377,9 +377,9 @@ checkColumnBreak(api.ColumnBreak o) { buildCounterColumnBreak++; if (buildCounterColumnBreak < 3) { - checkUnnamed5353(o.suggestedDeletionIds); - checkUnnamed5354(o.suggestedInsertionIds); - checkUnnamed5355(o.suggestedTextStyleChanges); + checkUnnamed5752(o.suggestedDeletionIds); + checkUnnamed5753(o.suggestedInsertionIds); + checkUnnamed5754(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterColumnBreak--; @@ -795,118 +795,118 @@ buildCounterDimension--; } -buildUnnamed5356() { +buildUnnamed5755() { var o = new core.Map<core.String, api.Footer>(); o["x"] = buildFooter(); o["y"] = buildFooter(); return o; } -checkUnnamed5356(core.Map<core.String, api.Footer> o) { +checkUnnamed5755(core.Map<core.String, api.Footer> o) { unittest.expect(o, unittest.hasLength(2)); checkFooter(o["x"]); checkFooter(o["y"]); } -buildUnnamed5357() { +buildUnnamed5756() { var o = new core.Map<core.String, api.Footnote>(); o["x"] = buildFootnote(); o["y"] = buildFootnote(); return o; } -checkUnnamed5357(core.Map<core.String, api.Footnote> o) { +checkUnnamed5756(core.Map<core.String, api.Footnote> o) { unittest.expect(o, unittest.hasLength(2)); checkFootnote(o["x"]); checkFootnote(o["y"]); } -buildUnnamed5358() { +buildUnnamed5757() { var o = new core.Map<core.String, api.Header>(); o["x"] = buildHeader(); o["y"] = buildHeader(); return o; } -checkUnnamed5358(core.Map<core.String, api.Header> o) { +checkUnnamed5757(core.Map<core.String, api.Header> o) { unittest.expect(o, unittest.hasLength(2)); checkHeader(o["x"]); checkHeader(o["y"]); } -buildUnnamed5359() { +buildUnnamed5758() { var o = new core.Map<core.String, api.InlineObject>(); o["x"] = buildInlineObject(); o["y"] = buildInlineObject(); return o; } -checkUnnamed5359(core.Map<core.String, api.InlineObject> o) { +checkUnnamed5758(core.Map<core.String, api.InlineObject> o) { unittest.expect(o, unittest.hasLength(2)); checkInlineObject(o["x"]); checkInlineObject(o["y"]); } -buildUnnamed5360() { +buildUnnamed5759() { var o = new core.Map<core.String, api.List>(); o["x"] = buildList(); o["y"] = buildList(); return o; } -checkUnnamed5360(core.Map<core.String, api.List> o) { +checkUnnamed5759(core.Map<core.String, api.List> o) { unittest.expect(o, unittest.hasLength(2)); checkList(o["x"]); checkList(o["y"]); } -buildUnnamed5361() { +buildUnnamed5760() { var o = new core.Map<core.String, api.NamedRanges>(); o["x"] = buildNamedRanges(); o["y"] = buildNamedRanges(); return o; } -checkUnnamed5361(core.Map<core.String, api.NamedRanges> o) { +checkUnnamed5760(core.Map<core.String, api.NamedRanges> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRanges(o["x"]); checkNamedRanges(o["y"]); } -buildUnnamed5362() { +buildUnnamed5761() { var o = new core.Map<core.String, api.PositionedObject>(); o["x"] = buildPositionedObject(); o["y"] = buildPositionedObject(); return o; } -checkUnnamed5362(core.Map<core.String, api.PositionedObject> o) { +checkUnnamed5761(core.Map<core.String, api.PositionedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkPositionedObject(o["x"]); checkPositionedObject(o["y"]); } -buildUnnamed5363() { +buildUnnamed5762() { var o = new core.Map<core.String, api.SuggestedDocumentStyle>(); o["x"] = buildSuggestedDocumentStyle(); o["y"] = buildSuggestedDocumentStyle(); return o; } -checkUnnamed5363(core.Map<core.String, api.SuggestedDocumentStyle> o) { +checkUnnamed5762(core.Map<core.String, api.SuggestedDocumentStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedDocumentStyle(o["x"]); checkSuggestedDocumentStyle(o["y"]); } -buildUnnamed5364() { +buildUnnamed5763() { var o = new core.Map<core.String, api.SuggestedNamedStyles>(); o["x"] = buildSuggestedNamedStyles(); o["y"] = buildSuggestedNamedStyles(); return o; } -checkUnnamed5364(core.Map<core.String, api.SuggestedNamedStyles> o) { +checkUnnamed5763(core.Map<core.String, api.SuggestedNamedStyles> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedNamedStyles(o["x"]); checkSuggestedNamedStyles(o["y"]); @@ -920,17 +920,17 @@ o.body = buildBody(); o.documentId = "foo"; o.documentStyle = buildDocumentStyle(); - o.footers = buildUnnamed5356(); - o.footnotes = buildUnnamed5357(); - o.headers = buildUnnamed5358(); - o.inlineObjects = buildUnnamed5359(); - o.lists = buildUnnamed5360(); - o.namedRanges = buildUnnamed5361(); + o.footers = buildUnnamed5755(); + o.footnotes = buildUnnamed5756(); + o.headers = buildUnnamed5757(); + o.inlineObjects = buildUnnamed5758(); + o.lists = buildUnnamed5759(); + o.namedRanges = buildUnnamed5760(); o.namedStyles = buildNamedStyles(); - o.positionedObjects = buildUnnamed5362(); + o.positionedObjects = buildUnnamed5761(); o.revisionId = "foo"; - o.suggestedDocumentStyleChanges = buildUnnamed5363(); - o.suggestedNamedStylesChanges = buildUnnamed5364(); + o.suggestedDocumentStyleChanges = buildUnnamed5762(); + o.suggestedNamedStylesChanges = buildUnnamed5763(); o.suggestionsViewMode = "foo"; o.title = "foo"; } @@ -944,17 +944,17 @@ checkBody(o.body); unittest.expect(o.documentId, unittest.equals('foo')); checkDocumentStyle(o.documentStyle); - checkUnnamed5356(o.footers); - checkUnnamed5357(o.footnotes); - checkUnnamed5358(o.headers); - checkUnnamed5359(o.inlineObjects); - checkUnnamed5360(o.lists); - checkUnnamed5361(o.namedRanges); + checkUnnamed5755(o.footers); + checkUnnamed5756(o.footnotes); + checkUnnamed5757(o.headers); + checkUnnamed5758(o.inlineObjects); + checkUnnamed5759(o.lists); + checkUnnamed5760(o.namedRanges); checkNamedStyles(o.namedStyles); - checkUnnamed5362(o.positionedObjects); + checkUnnamed5761(o.positionedObjects); unittest.expect(o.revisionId, unittest.equals('foo')); - checkUnnamed5363(o.suggestedDocumentStyleChanges); - checkUnnamed5364(o.suggestedNamedStylesChanges); + checkUnnamed5762(o.suggestedDocumentStyleChanges); + checkUnnamed5763(o.suggestedNamedStylesChanges); unittest.expect(o.suggestionsViewMode, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } @@ -1252,27 +1252,27 @@ buildCounterEndOfSegmentLocation--; } -buildUnnamed5365() { +buildUnnamed5764() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5365(core.List<core.String> o) { +checkUnnamed5764(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5366() { +buildUnnamed5765() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5366(core.List<core.String> o) { +checkUnnamed5765(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1283,8 +1283,8 @@ var o = new api.Equation(); buildCounterEquation++; if (buildCounterEquation < 3) { - o.suggestedDeletionIds = buildUnnamed5365(); - o.suggestedInsertionIds = buildUnnamed5366(); + o.suggestedDeletionIds = buildUnnamed5764(); + o.suggestedInsertionIds = buildUnnamed5765(); } buildCounterEquation--; return o; @@ -1293,20 +1293,20 @@ checkEquation(api.Equation o) { buildCounterEquation++; if (buildCounterEquation < 3) { - checkUnnamed5365(o.suggestedDeletionIds); - checkUnnamed5366(o.suggestedInsertionIds); + checkUnnamed5764(o.suggestedDeletionIds); + checkUnnamed5765(o.suggestedInsertionIds); } buildCounterEquation--; } -buildUnnamed5367() { +buildUnnamed5766() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5367(core.List<api.StructuralElement> o) { +checkUnnamed5766(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); @@ -1317,7 +1317,7 @@ var o = new api.Footer(); buildCounterFooter++; if (buildCounterFooter < 3) { - o.content = buildUnnamed5367(); + o.content = buildUnnamed5766(); o.footerId = "foo"; } buildCounterFooter--; @@ -1327,20 +1327,20 @@ checkFooter(api.Footer o) { buildCounterFooter++; if (buildCounterFooter < 3) { - checkUnnamed5367(o.content); + checkUnnamed5766(o.content); unittest.expect(o.footerId, unittest.equals('foo')); } buildCounterFooter--; } -buildUnnamed5368() { +buildUnnamed5767() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5368(core.List<api.StructuralElement> o) { +checkUnnamed5767(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); @@ -1351,7 +1351,7 @@ var o = new api.Footnote(); buildCounterFootnote++; if (buildCounterFootnote < 3) { - o.content = buildUnnamed5368(); + o.content = buildUnnamed5767(); o.footnoteId = "foo"; } buildCounterFootnote--; @@ -1361,46 +1361,46 @@ checkFootnote(api.Footnote o) { buildCounterFootnote++; if (buildCounterFootnote < 3) { - checkUnnamed5368(o.content); + checkUnnamed5767(o.content); unittest.expect(o.footnoteId, unittest.equals('foo')); } buildCounterFootnote--; } -buildUnnamed5369() { +buildUnnamed5768() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5369(core.List<core.String> o) { +checkUnnamed5768(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5370() { +buildUnnamed5769() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5370(core.List<core.String> o) { +checkUnnamed5769(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5371() { +buildUnnamed5770() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5371(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5770(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -1413,9 +1413,9 @@ if (buildCounterFootnoteReference < 3) { o.footnoteId = "foo"; o.footnoteNumber = "foo"; - o.suggestedDeletionIds = buildUnnamed5369(); - o.suggestedInsertionIds = buildUnnamed5370(); - o.suggestedTextStyleChanges = buildUnnamed5371(); + o.suggestedDeletionIds = buildUnnamed5768(); + o.suggestedInsertionIds = buildUnnamed5769(); + o.suggestedTextStyleChanges = buildUnnamed5770(); o.textStyle = buildTextStyle(); } buildCounterFootnoteReference--; @@ -1427,22 +1427,22 @@ if (buildCounterFootnoteReference < 3) { unittest.expect(o.footnoteId, unittest.equals('foo')); unittest.expect(o.footnoteNumber, unittest.equals('foo')); - checkUnnamed5369(o.suggestedDeletionIds); - checkUnnamed5370(o.suggestedInsertionIds); - checkUnnamed5371(o.suggestedTextStyleChanges); + checkUnnamed5768(o.suggestedDeletionIds); + checkUnnamed5769(o.suggestedInsertionIds); + checkUnnamed5770(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterFootnoteReference--; } -buildUnnamed5372() { +buildUnnamed5771() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5372(core.List<api.StructuralElement> o) { +checkUnnamed5771(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); @@ -1453,7 +1453,7 @@ var o = new api.Header(); buildCounterHeader++; if (buildCounterHeader < 3) { - o.content = buildUnnamed5372(); + o.content = buildUnnamed5771(); o.headerId = "foo"; } buildCounterHeader--; @@ -1463,46 +1463,46 @@ checkHeader(api.Header o) { buildCounterHeader++; if (buildCounterHeader < 3) { - checkUnnamed5372(o.content); + checkUnnamed5771(o.content); unittest.expect(o.headerId, unittest.equals('foo')); } buildCounterHeader--; } -buildUnnamed5373() { +buildUnnamed5772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5373(core.List<core.String> o) { +checkUnnamed5772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5374() { +buildUnnamed5773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5374(core.List<core.String> o) { +checkUnnamed5773(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5375() { +buildUnnamed5774() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5375(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5774(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -1513,9 +1513,9 @@ var o = new api.HorizontalRule(); buildCounterHorizontalRule++; if (buildCounterHorizontalRule < 3) { - o.suggestedDeletionIds = buildUnnamed5373(); - o.suggestedInsertionIds = buildUnnamed5374(); - o.suggestedTextStyleChanges = buildUnnamed5375(); + o.suggestedDeletionIds = buildUnnamed5772(); + o.suggestedInsertionIds = buildUnnamed5773(); + o.suggestedTextStyleChanges = buildUnnamed5774(); o.textStyle = buildTextStyle(); } buildCounterHorizontalRule--; @@ -1525,9 +1525,9 @@ checkHorizontalRule(api.HorizontalRule o) { buildCounterHorizontalRule++; if (buildCounterHorizontalRule < 3) { - checkUnnamed5373(o.suggestedDeletionIds); - checkUnnamed5374(o.suggestedInsertionIds); - checkUnnamed5375(o.suggestedTextStyleChanges); + checkUnnamed5772(o.suggestedDeletionIds); + checkUnnamed5773(o.suggestedInsertionIds); + checkUnnamed5774(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterHorizontalRule--; @@ -1595,27 +1595,27 @@ buildCounterImagePropertiesSuggestionState--; } -buildUnnamed5376() { +buildUnnamed5775() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5376(core.List<core.String> o) { +checkUnnamed5775(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5377() { +buildUnnamed5776() { var o = new core.Map<core.String, api.SuggestedInlineObjectProperties>(); o["x"] = buildSuggestedInlineObjectProperties(); o["y"] = buildSuggestedInlineObjectProperties(); return o; } -checkUnnamed5377(core.Map<core.String, api.SuggestedInlineObjectProperties> o) { +checkUnnamed5776(core.Map<core.String, api.SuggestedInlineObjectProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedInlineObjectProperties(o["x"]); checkSuggestedInlineObjectProperties(o["y"]); @@ -1628,8 +1628,8 @@ if (buildCounterInlineObject < 3) { o.inlineObjectProperties = buildInlineObjectProperties(); o.objectId = "foo"; - o.suggestedDeletionIds = buildUnnamed5376(); - o.suggestedInlineObjectPropertiesChanges = buildUnnamed5377(); + o.suggestedDeletionIds = buildUnnamed5775(); + o.suggestedInlineObjectPropertiesChanges = buildUnnamed5776(); o.suggestedInsertionId = "foo"; } buildCounterInlineObject--; @@ -1641,47 +1641,47 @@ if (buildCounterInlineObject < 3) { checkInlineObjectProperties(o.inlineObjectProperties); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed5376(o.suggestedDeletionIds); - checkUnnamed5377(o.suggestedInlineObjectPropertiesChanges); + checkUnnamed5775(o.suggestedDeletionIds); + checkUnnamed5776(o.suggestedInlineObjectPropertiesChanges); unittest.expect(o.suggestedInsertionId, unittest.equals('foo')); } buildCounterInlineObject--; } -buildUnnamed5378() { +buildUnnamed5777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5378(core.List<core.String> o) { +checkUnnamed5777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5379() { +buildUnnamed5778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5379(core.List<core.String> o) { +checkUnnamed5778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5380() { +buildUnnamed5779() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5380(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5779(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -1693,9 +1693,9 @@ buildCounterInlineObjectElement++; if (buildCounterInlineObjectElement < 3) { o.inlineObjectId = "foo"; - o.suggestedDeletionIds = buildUnnamed5378(); - o.suggestedInsertionIds = buildUnnamed5379(); - o.suggestedTextStyleChanges = buildUnnamed5380(); + o.suggestedDeletionIds = buildUnnamed5777(); + o.suggestedInsertionIds = buildUnnamed5778(); + o.suggestedTextStyleChanges = buildUnnamed5779(); o.textStyle = buildTextStyle(); } buildCounterInlineObjectElement--; @@ -1706,9 +1706,9 @@ buildCounterInlineObjectElement++; if (buildCounterInlineObjectElement < 3) { unittest.expect(o.inlineObjectId, unittest.equals('foo')); - checkUnnamed5378(o.suggestedDeletionIds); - checkUnnamed5379(o.suggestedInsertionIds); - checkUnnamed5380(o.suggestedTextStyleChanges); + checkUnnamed5777(o.suggestedDeletionIds); + checkUnnamed5778(o.suggestedInsertionIds); + checkUnnamed5779(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterInlineObjectElement--; @@ -2014,27 +2014,27 @@ buildCounterLinkedContentReferenceSuggestionState--; } -buildUnnamed5381() { +buildUnnamed5780() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5381(core.List<core.String> o) { +checkUnnamed5780(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5382() { +buildUnnamed5781() { var o = new core.Map<core.String, api.SuggestedListProperties>(); o["x"] = buildSuggestedListProperties(); o["y"] = buildSuggestedListProperties(); return o; } -checkUnnamed5382(core.Map<core.String, api.SuggestedListProperties> o) { +checkUnnamed5781(core.Map<core.String, api.SuggestedListProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedListProperties(o["x"]); checkSuggestedListProperties(o["y"]); @@ -2046,9 +2046,9 @@ buildCounterList++; if (buildCounterList < 3) { o.listProperties = buildListProperties(); - o.suggestedDeletionIds = buildUnnamed5381(); + o.suggestedDeletionIds = buildUnnamed5780(); o.suggestedInsertionId = "foo"; - o.suggestedListPropertiesChanges = buildUnnamed5382(); + o.suggestedListPropertiesChanges = buildUnnamed5781(); } buildCounterList--; return o; @@ -2058,21 +2058,21 @@ buildCounterList++; if (buildCounterList < 3) { checkListProperties(o.listProperties); - checkUnnamed5381(o.suggestedDeletionIds); + checkUnnamed5780(o.suggestedDeletionIds); unittest.expect(o.suggestedInsertionId, unittest.equals('foo')); - checkUnnamed5382(o.suggestedListPropertiesChanges); + checkUnnamed5781(o.suggestedListPropertiesChanges); } buildCounterList--; } -buildUnnamed5383() { +buildUnnamed5782() { var o = new core.List<api.NestingLevel>(); o.add(buildNestingLevel()); o.add(buildNestingLevel()); return o; } -checkUnnamed5383(core.List<api.NestingLevel> o) { +checkUnnamed5782(core.List<api.NestingLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevel(o[0]); checkNestingLevel(o[1]); @@ -2083,7 +2083,7 @@ var o = new api.ListProperties(); buildCounterListProperties++; if (buildCounterListProperties < 3) { - o.nestingLevels = buildUnnamed5383(); + o.nestingLevels = buildUnnamed5782(); } buildCounterListProperties--; return o; @@ -2092,19 +2092,19 @@ checkListProperties(api.ListProperties o) { buildCounterListProperties++; if (buildCounterListProperties < 3) { - checkUnnamed5383(o.nestingLevels); + checkUnnamed5782(o.nestingLevels); } buildCounterListProperties--; } -buildUnnamed5384() { +buildUnnamed5783() { var o = new core.List<api.NestingLevelSuggestionState>(); o.add(buildNestingLevelSuggestionState()); o.add(buildNestingLevelSuggestionState()); return o; } -checkUnnamed5384(core.List<api.NestingLevelSuggestionState> o) { +checkUnnamed5783(core.List<api.NestingLevelSuggestionState> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevelSuggestionState(o[0]); checkNestingLevelSuggestionState(o[1]); @@ -2115,7 +2115,7 @@ var o = new api.ListPropertiesSuggestionState(); buildCounterListPropertiesSuggestionState++; if (buildCounterListPropertiesSuggestionState < 3) { - o.nestingLevelsSuggestionStates = buildUnnamed5384(); + o.nestingLevelsSuggestionStates = buildUnnamed5783(); } buildCounterListPropertiesSuggestionState--; return o; @@ -2124,7 +2124,7 @@ checkListPropertiesSuggestionState(api.ListPropertiesSuggestionState o) { buildCounterListPropertiesSuggestionState++; if (buildCounterListPropertiesSuggestionState < 3) { - checkUnnamed5384(o.nestingLevelsSuggestionStates); + checkUnnamed5783(o.nestingLevelsSuggestionStates); } buildCounterListPropertiesSuggestionState--; } @@ -2169,14 +2169,14 @@ buildCounterMergeTableCellsRequest--; } -buildUnnamed5385() { +buildUnnamed5784() { var o = new core.List<api.Range>(); o.add(buildRange()); o.add(buildRange()); return o; } -checkUnnamed5385(core.List<api.Range> o) { +checkUnnamed5784(core.List<api.Range> o) { unittest.expect(o, unittest.hasLength(2)); checkRange(o[0]); checkRange(o[1]); @@ -2189,7 +2189,7 @@ if (buildCounterNamedRange < 3) { o.name = "foo"; o.namedRangeId = "foo"; - o.ranges = buildUnnamed5385(); + o.ranges = buildUnnamed5784(); } buildCounterNamedRange--; return o; @@ -2200,19 +2200,19 @@ if (buildCounterNamedRange < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.namedRangeId, unittest.equals('foo')); - checkUnnamed5385(o.ranges); + checkUnnamed5784(o.ranges); } buildCounterNamedRange--; } -buildUnnamed5386() { +buildUnnamed5785() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed5386(core.List<api.NamedRange> o) { +checkUnnamed5785(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); @@ -2224,7 +2224,7 @@ buildCounterNamedRanges++; if (buildCounterNamedRanges < 3) { o.name = "foo"; - o.namedRanges = buildUnnamed5386(); + o.namedRanges = buildUnnamed5785(); } buildCounterNamedRanges--; return o; @@ -2234,7 +2234,7 @@ buildCounterNamedRanges++; if (buildCounterNamedRanges < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5386(o.namedRanges); + checkUnnamed5785(o.namedRanges); } buildCounterNamedRanges--; } @@ -2285,14 +2285,14 @@ buildCounterNamedStyleSuggestionState--; } -buildUnnamed5387() { +buildUnnamed5786() { var o = new core.List<api.NamedStyle>(); o.add(buildNamedStyle()); o.add(buildNamedStyle()); return o; } -checkUnnamed5387(core.List<api.NamedStyle> o) { +checkUnnamed5786(core.List<api.NamedStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedStyle(o[0]); checkNamedStyle(o[1]); @@ -2303,7 +2303,7 @@ var o = new api.NamedStyles(); buildCounterNamedStyles++; if (buildCounterNamedStyles < 3) { - o.styles = buildUnnamed5387(); + o.styles = buildUnnamed5786(); } buildCounterNamedStyles--; return o; @@ -2312,19 +2312,19 @@ checkNamedStyles(api.NamedStyles o) { buildCounterNamedStyles++; if (buildCounterNamedStyles < 3) { - checkUnnamed5387(o.styles); + checkUnnamed5786(o.styles); } buildCounterNamedStyles--; } -buildUnnamed5388() { +buildUnnamed5787() { var o = new core.List<api.NamedStyleSuggestionState>(); o.add(buildNamedStyleSuggestionState()); o.add(buildNamedStyleSuggestionState()); return o; } -checkUnnamed5388(core.List<api.NamedStyleSuggestionState> o) { +checkUnnamed5787(core.List<api.NamedStyleSuggestionState> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedStyleSuggestionState(o[0]); checkNamedStyleSuggestionState(o[1]); @@ -2335,7 +2335,7 @@ var o = new api.NamedStylesSuggestionState(); buildCounterNamedStylesSuggestionState++; if (buildCounterNamedStylesSuggestionState < 3) { - o.stylesSuggestionStates = buildUnnamed5388(); + o.stylesSuggestionStates = buildUnnamed5787(); } buildCounterNamedStylesSuggestionState--; return o; @@ -2344,7 +2344,7 @@ checkNamedStylesSuggestionState(api.NamedStylesSuggestionState o) { buildCounterNamedStylesSuggestionState++; if (buildCounterNamedStylesSuggestionState < 3) { - checkUnnamed5388(o.stylesSuggestionStates); + checkUnnamed5787(o.stylesSuggestionStates); } buildCounterNamedStylesSuggestionState--; } @@ -2415,14 +2415,14 @@ buildCounterNestingLevelSuggestionState--; } -buildUnnamed5389() { +buildUnnamed5788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5389(core.List<core.String> o) { +checkUnnamed5788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2433,7 +2433,7 @@ var o = new api.ObjectReferences(); buildCounterObjectReferences++; if (buildCounterObjectReferences < 3) { - o.objectIds = buildUnnamed5389(); + o.objectIds = buildUnnamed5788(); } buildCounterObjectReferences--; return o; @@ -2442,7 +2442,7 @@ checkObjectReferences(api.ObjectReferences o) { buildCounterObjectReferences++; if (buildCounterObjectReferences < 3) { - checkUnnamed5389(o.objectIds); + checkUnnamed5788(o.objectIds); } buildCounterObjectReferences--; } @@ -2466,40 +2466,40 @@ buildCounterOptionalColor--; } -buildUnnamed5390() { +buildUnnamed5789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5390(core.List<core.String> o) { +checkUnnamed5789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5391() { +buildUnnamed5790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5391(core.List<core.String> o) { +checkUnnamed5790(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5392() { +buildUnnamed5791() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5392(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5791(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -2510,9 +2510,9 @@ var o = new api.PageBreak(); buildCounterPageBreak++; if (buildCounterPageBreak < 3) { - o.suggestedDeletionIds = buildUnnamed5390(); - o.suggestedInsertionIds = buildUnnamed5391(); - o.suggestedTextStyleChanges = buildUnnamed5392(); + o.suggestedDeletionIds = buildUnnamed5789(); + o.suggestedInsertionIds = buildUnnamed5790(); + o.suggestedTextStyleChanges = buildUnnamed5791(); o.textStyle = buildTextStyle(); } buildCounterPageBreak--; @@ -2522,74 +2522,74 @@ checkPageBreak(api.PageBreak o) { buildCounterPageBreak++; if (buildCounterPageBreak < 3) { - checkUnnamed5390(o.suggestedDeletionIds); - checkUnnamed5391(o.suggestedInsertionIds); - checkUnnamed5392(o.suggestedTextStyleChanges); + checkUnnamed5789(o.suggestedDeletionIds); + checkUnnamed5790(o.suggestedInsertionIds); + checkUnnamed5791(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterPageBreak--; } -buildUnnamed5393() { +buildUnnamed5792() { var o = new core.List<api.ParagraphElement>(); o.add(buildParagraphElement()); o.add(buildParagraphElement()); return o; } -checkUnnamed5393(core.List<api.ParagraphElement> o) { +checkUnnamed5792(core.List<api.ParagraphElement> o) { unittest.expect(o, unittest.hasLength(2)); checkParagraphElement(o[0]); checkParagraphElement(o[1]); } -buildUnnamed5394() { +buildUnnamed5793() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5394(core.List<core.String> o) { +checkUnnamed5793(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5395() { +buildUnnamed5794() { var o = new core.Map<core.String, api.SuggestedBullet>(); o["x"] = buildSuggestedBullet(); o["y"] = buildSuggestedBullet(); return o; } -checkUnnamed5395(core.Map<core.String, api.SuggestedBullet> o) { +checkUnnamed5794(core.Map<core.String, api.SuggestedBullet> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedBullet(o["x"]); checkSuggestedBullet(o["y"]); } -buildUnnamed5396() { +buildUnnamed5795() { var o = new core.Map<core.String, api.SuggestedParagraphStyle>(); o["x"] = buildSuggestedParagraphStyle(); o["y"] = buildSuggestedParagraphStyle(); return o; } -checkUnnamed5396(core.Map<core.String, api.SuggestedParagraphStyle> o) { +checkUnnamed5795(core.Map<core.String, api.SuggestedParagraphStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedParagraphStyle(o["x"]); checkSuggestedParagraphStyle(o["y"]); } -buildUnnamed5397() { +buildUnnamed5796() { var o = new core.Map<core.String, api.ObjectReferences>(); o["x"] = buildObjectReferences(); o["y"] = buildObjectReferences(); return o; } -checkUnnamed5397(core.Map<core.String, api.ObjectReferences> o) { +checkUnnamed5796(core.Map<core.String, api.ObjectReferences> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectReferences(o["x"]); checkObjectReferences(o["y"]); @@ -2601,12 +2601,12 @@ buildCounterParagraph++; if (buildCounterParagraph < 3) { o.bullet = buildBullet(); - o.elements = buildUnnamed5393(); + o.elements = buildUnnamed5792(); o.paragraphStyle = buildParagraphStyle(); - o.positionedObjectIds = buildUnnamed5394(); - o.suggestedBulletChanges = buildUnnamed5395(); - o.suggestedParagraphStyleChanges = buildUnnamed5396(); - o.suggestedPositionedObjectIds = buildUnnamed5397(); + o.positionedObjectIds = buildUnnamed5793(); + o.suggestedBulletChanges = buildUnnamed5794(); + o.suggestedParagraphStyleChanges = buildUnnamed5795(); + o.suggestedPositionedObjectIds = buildUnnamed5796(); } buildCounterParagraph--; return o; @@ -2616,12 +2616,12 @@ buildCounterParagraph++; if (buildCounterParagraph < 3) { checkBullet(o.bullet); - checkUnnamed5393(o.elements); + checkUnnamed5792(o.elements); checkParagraphStyle(o.paragraphStyle); - checkUnnamed5394(o.positionedObjectIds); - checkUnnamed5395(o.suggestedBulletChanges); - checkUnnamed5396(o.suggestedParagraphStyleChanges); - checkUnnamed5397(o.suggestedPositionedObjectIds); + checkUnnamed5793(o.positionedObjectIds); + checkUnnamed5794(o.suggestedBulletChanges); + checkUnnamed5795(o.suggestedParagraphStyleChanges); + checkUnnamed5796(o.suggestedPositionedObjectIds); } buildCounterParagraph--; } @@ -2688,14 +2688,14 @@ buildCounterParagraphElement--; } -buildUnnamed5398() { +buildUnnamed5797() { var o = new core.List<api.TabStop>(); o.add(buildTabStop()); o.add(buildTabStop()); return o; } -checkUnnamed5398(core.List<api.TabStop> o) { +checkUnnamed5797(core.List<api.TabStop> o) { unittest.expect(o, unittest.hasLength(2)); checkTabStop(o[0]); checkTabStop(o[1]); @@ -2726,7 +2726,7 @@ o.spaceAbove = buildDimension(); o.spaceBelow = buildDimension(); o.spacingMode = "foo"; - o.tabStops = buildUnnamed5398(); + o.tabStops = buildUnnamed5797(); } buildCounterParagraphStyle--; return o; @@ -2755,7 +2755,7 @@ checkDimension(o.spaceAbove); checkDimension(o.spaceBelow); unittest.expect(o.spacingMode, unittest.equals('foo')); - checkUnnamed5398(o.tabStops); + checkUnnamed5797(o.tabStops); } buildCounterParagraphStyle--; } @@ -2817,27 +2817,27 @@ buildCounterParagraphStyleSuggestionState--; } -buildUnnamed5399() { +buildUnnamed5798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5399(core.List<core.String> o) { +checkUnnamed5798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5400() { +buildUnnamed5799() { var o = new core.Map<core.String, api.SuggestedPositionedObjectProperties>(); o["x"] = buildSuggestedPositionedObjectProperties(); o["y"] = buildSuggestedPositionedObjectProperties(); return o; } -checkUnnamed5400( +checkUnnamed5799( core.Map<core.String, api.SuggestedPositionedObjectProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedPositionedObjectProperties(o["x"]); @@ -2851,9 +2851,9 @@ if (buildCounterPositionedObject < 3) { o.objectId = "foo"; o.positionedObjectProperties = buildPositionedObjectProperties(); - o.suggestedDeletionIds = buildUnnamed5399(); + o.suggestedDeletionIds = buildUnnamed5798(); o.suggestedInsertionId = "foo"; - o.suggestedPositionedObjectPropertiesChanges = buildUnnamed5400(); + o.suggestedPositionedObjectPropertiesChanges = buildUnnamed5799(); } buildCounterPositionedObject--; return o; @@ -2864,9 +2864,9 @@ if (buildCounterPositionedObject < 3) { unittest.expect(o.objectId, unittest.equals('foo')); checkPositionedObjectProperties(o.positionedObjectProperties); - checkUnnamed5399(o.suggestedDeletionIds); + checkUnnamed5798(o.suggestedDeletionIds); unittest.expect(o.suggestedInsertionId, unittest.equals('foo')); - checkUnnamed5400(o.suggestedPositionedObjectPropertiesChanges); + checkUnnamed5799(o.suggestedPositionedObjectPropertiesChanges); } buildCounterPositionedObject--; } @@ -3207,27 +3207,27 @@ buildCounterRgbColor--; } -buildUnnamed5401() { +buildUnnamed5800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5401(core.List<core.String> o) { +checkUnnamed5800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5402() { +buildUnnamed5801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5402(core.List<core.String> o) { +checkUnnamed5801(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3239,8 +3239,8 @@ buildCounterSectionBreak++; if (buildCounterSectionBreak < 3) { o.sectionStyle = buildSectionStyle(); - o.suggestedDeletionIds = buildUnnamed5401(); - o.suggestedInsertionIds = buildUnnamed5402(); + o.suggestedDeletionIds = buildUnnamed5800(); + o.suggestedInsertionIds = buildUnnamed5801(); } buildCounterSectionBreak--; return o; @@ -3250,8 +3250,8 @@ buildCounterSectionBreak++; if (buildCounterSectionBreak < 3) { checkSectionStyle(o.sectionStyle); - checkUnnamed5401(o.suggestedDeletionIds); - checkUnnamed5402(o.suggestedInsertionIds); + checkUnnamed5800(o.suggestedDeletionIds); + checkUnnamed5801(o.suggestedInsertionIds); } buildCounterSectionBreak--; } @@ -3277,14 +3277,14 @@ buildCounterSectionColumnProperties--; } -buildUnnamed5403() { +buildUnnamed5802() { var o = new core.List<api.SectionColumnProperties>(); o.add(buildSectionColumnProperties()); o.add(buildSectionColumnProperties()); return o; } -checkUnnamed5403(core.List<api.SectionColumnProperties> o) { +checkUnnamed5802(core.List<api.SectionColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkSectionColumnProperties(o[0]); checkSectionColumnProperties(o[1]); @@ -3295,7 +3295,7 @@ var o = new api.SectionStyle(); buildCounterSectionStyle++; if (buildCounterSectionStyle < 3) { - o.columnProperties = buildUnnamed5403(); + o.columnProperties = buildUnnamed5802(); o.columnSeparatorStyle = "foo"; o.contentDirection = "foo"; o.defaultFooterId = "foo"; @@ -3321,7 +3321,7 @@ checkSectionStyle(api.SectionStyle o) { buildCounterSectionStyle++; if (buildCounterSectionStyle < 3) { - checkUnnamed5403(o.columnProperties); + checkUnnamed5802(o.columnProperties); unittest.expect(o.columnSeparatorStyle, unittest.equals('foo')); unittest.expect(o.contentDirection, unittest.equals('foo')); unittest.expect(o.defaultFooterId, unittest.equals('foo')); @@ -3752,40 +3752,40 @@ buildCounterTabStop--; } -buildUnnamed5404() { +buildUnnamed5803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5404(core.List<core.String> o) { +checkUnnamed5803(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5405() { +buildUnnamed5804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5405(core.List<core.String> o) { +checkUnnamed5804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5406() { +buildUnnamed5805() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed5406(core.List<api.TableRow> o) { +checkUnnamed5805(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); @@ -3798,9 +3798,9 @@ if (buildCounterTable < 3) { o.columns = 42; o.rows = 42; - o.suggestedDeletionIds = buildUnnamed5404(); - o.suggestedInsertionIds = buildUnnamed5405(); - o.tableRows = buildUnnamed5406(); + o.suggestedDeletionIds = buildUnnamed5803(); + o.suggestedInsertionIds = buildUnnamed5804(); + o.tableRows = buildUnnamed5805(); o.tableStyle = buildTableStyle(); } buildCounterTable--; @@ -3812,61 +3812,61 @@ if (buildCounterTable < 3) { unittest.expect(o.columns, unittest.equals(42)); unittest.expect(o.rows, unittest.equals(42)); - checkUnnamed5404(o.suggestedDeletionIds); - checkUnnamed5405(o.suggestedInsertionIds); - checkUnnamed5406(o.tableRows); + checkUnnamed5803(o.suggestedDeletionIds); + checkUnnamed5804(o.suggestedInsertionIds); + checkUnnamed5805(o.tableRows); checkTableStyle(o.tableStyle); } buildCounterTable--; } -buildUnnamed5407() { +buildUnnamed5806() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5407(core.List<api.StructuralElement> o) { +checkUnnamed5806(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); } -buildUnnamed5408() { +buildUnnamed5807() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5408(core.List<core.String> o) { +checkUnnamed5807(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5409() { +buildUnnamed5808() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5409(core.List<core.String> o) { +checkUnnamed5808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5410() { +buildUnnamed5809() { var o = new core.Map<core.String, api.SuggestedTableCellStyle>(); o["x"] = buildSuggestedTableCellStyle(); o["y"] = buildSuggestedTableCellStyle(); return o; } -checkUnnamed5410(core.Map<core.String, api.SuggestedTableCellStyle> o) { +checkUnnamed5809(core.Map<core.String, api.SuggestedTableCellStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTableCellStyle(o["x"]); checkSuggestedTableCellStyle(o["y"]); @@ -3877,12 +3877,12 @@ var o = new api.TableCell(); buildCounterTableCell++; if (buildCounterTableCell < 3) { - o.content = buildUnnamed5407(); + o.content = buildUnnamed5806(); o.endIndex = 42; o.startIndex = 42; - o.suggestedDeletionIds = buildUnnamed5408(); - o.suggestedInsertionIds = buildUnnamed5409(); - o.suggestedTableCellStyleChanges = buildUnnamed5410(); + o.suggestedDeletionIds = buildUnnamed5807(); + o.suggestedInsertionIds = buildUnnamed5808(); + o.suggestedTableCellStyleChanges = buildUnnamed5809(); o.tableCellStyle = buildTableCellStyle(); } buildCounterTableCell--; @@ -3892,12 +3892,12 @@ checkTableCell(api.TableCell o) { buildCounterTableCell++; if (buildCounterTableCell < 3) { - checkUnnamed5407(o.content); + checkUnnamed5806(o.content); unittest.expect(o.endIndex, unittest.equals(42)); unittest.expect(o.startIndex, unittest.equals(42)); - checkUnnamed5408(o.suggestedDeletionIds); - checkUnnamed5409(o.suggestedInsertionIds); - checkUnnamed5410(o.suggestedTableCellStyleChanges); + checkUnnamed5807(o.suggestedDeletionIds); + checkUnnamed5808(o.suggestedInsertionIds); + checkUnnamed5809(o.suggestedTableCellStyleChanges); checkTableCellStyle(o.tableCellStyle); } buildCounterTableCell--; @@ -4052,40 +4052,40 @@ buildCounterTableColumnProperties--; } -buildUnnamed5411() { +buildUnnamed5810() { var o = new core.List<api.StructuralElement>(); o.add(buildStructuralElement()); o.add(buildStructuralElement()); return o; } -checkUnnamed5411(core.List<api.StructuralElement> o) { +checkUnnamed5810(core.List<api.StructuralElement> o) { unittest.expect(o, unittest.hasLength(2)); checkStructuralElement(o[0]); checkStructuralElement(o[1]); } -buildUnnamed5412() { +buildUnnamed5811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5412(core.List<core.String> o) { +checkUnnamed5811(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5413() { +buildUnnamed5812() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5413(core.List<core.String> o) { +checkUnnamed5812(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4096,9 +4096,9 @@ var o = new api.TableOfContents(); buildCounterTableOfContents++; if (buildCounterTableOfContents < 3) { - o.content = buildUnnamed5411(); - o.suggestedDeletionIds = buildUnnamed5412(); - o.suggestedInsertionIds = buildUnnamed5413(); + o.content = buildUnnamed5810(); + o.suggestedDeletionIds = buildUnnamed5811(); + o.suggestedInsertionIds = buildUnnamed5812(); } buildCounterTableOfContents--; return o; @@ -4107,9 +4107,9 @@ checkTableOfContents(api.TableOfContents o) { buildCounterTableOfContents++; if (buildCounterTableOfContents < 3) { - checkUnnamed5411(o.content); - checkUnnamed5412(o.suggestedDeletionIds); - checkUnnamed5413(o.suggestedInsertionIds); + checkUnnamed5810(o.content); + checkUnnamed5811(o.suggestedDeletionIds); + checkUnnamed5812(o.suggestedInsertionIds); } buildCounterTableOfContents--; } @@ -4137,53 +4137,53 @@ buildCounterTableRange--; } -buildUnnamed5414() { +buildUnnamed5813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5414(core.List<core.String> o) { +checkUnnamed5813(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5415() { +buildUnnamed5814() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5415(core.List<core.String> o) { +checkUnnamed5814(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5416() { +buildUnnamed5815() { var o = new core.Map<core.String, api.SuggestedTableRowStyle>(); o["x"] = buildSuggestedTableRowStyle(); o["y"] = buildSuggestedTableRowStyle(); return o; } -checkUnnamed5416(core.Map<core.String, api.SuggestedTableRowStyle> o) { +checkUnnamed5815(core.Map<core.String, api.SuggestedTableRowStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTableRowStyle(o["x"]); checkSuggestedTableRowStyle(o["y"]); } -buildUnnamed5417() { +buildUnnamed5816() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed5417(core.List<api.TableCell> o) { +checkUnnamed5816(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -4196,10 +4196,10 @@ if (buildCounterTableRow < 3) { o.endIndex = 42; o.startIndex = 42; - o.suggestedDeletionIds = buildUnnamed5414(); - o.suggestedInsertionIds = buildUnnamed5415(); - o.suggestedTableRowStyleChanges = buildUnnamed5416(); - o.tableCells = buildUnnamed5417(); + o.suggestedDeletionIds = buildUnnamed5813(); + o.suggestedInsertionIds = buildUnnamed5814(); + o.suggestedTableRowStyleChanges = buildUnnamed5815(); + o.tableCells = buildUnnamed5816(); o.tableRowStyle = buildTableRowStyle(); } buildCounterTableRow--; @@ -4211,10 +4211,10 @@ if (buildCounterTableRow < 3) { unittest.expect(o.endIndex, unittest.equals(42)); unittest.expect(o.startIndex, unittest.equals(42)); - checkUnnamed5414(o.suggestedDeletionIds); - checkUnnamed5415(o.suggestedInsertionIds); - checkUnnamed5416(o.suggestedTableRowStyleChanges); - checkUnnamed5417(o.tableCells); + checkUnnamed5813(o.suggestedDeletionIds); + checkUnnamed5814(o.suggestedInsertionIds); + checkUnnamed5815(o.suggestedTableRowStyleChanges); + checkUnnamed5816(o.tableCells); checkTableRowStyle(o.tableRowStyle); } buildCounterTableRow--; @@ -4258,14 +4258,14 @@ buildCounterTableRowStyleSuggestionState--; } -buildUnnamed5418() { +buildUnnamed5817() { var o = new core.List<api.TableColumnProperties>(); o.add(buildTableColumnProperties()); o.add(buildTableColumnProperties()); return o; } -checkUnnamed5418(core.List<api.TableColumnProperties> o) { +checkUnnamed5817(core.List<api.TableColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkTableColumnProperties(o[0]); checkTableColumnProperties(o[1]); @@ -4276,7 +4276,7 @@ var o = new api.TableStyle(); buildCounterTableStyle++; if (buildCounterTableStyle < 3) { - o.tableColumnProperties = buildUnnamed5418(); + o.tableColumnProperties = buildUnnamed5817(); } buildCounterTableStyle--; return o; @@ -4285,45 +4285,45 @@ checkTableStyle(api.TableStyle o) { buildCounterTableStyle++; if (buildCounterTableStyle < 3) { - checkUnnamed5418(o.tableColumnProperties); + checkUnnamed5817(o.tableColumnProperties); } buildCounterTableStyle--; } -buildUnnamed5419() { +buildUnnamed5818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5419(core.List<core.String> o) { +checkUnnamed5818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5420() { +buildUnnamed5819() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5420(core.List<core.String> o) { +checkUnnamed5819(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5421() { +buildUnnamed5820() { var o = new core.Map<core.String, api.SuggestedTextStyle>(); o["x"] = buildSuggestedTextStyle(); o["y"] = buildSuggestedTextStyle(); return o; } -checkUnnamed5421(core.Map<core.String, api.SuggestedTextStyle> o) { +checkUnnamed5820(core.Map<core.String, api.SuggestedTextStyle> o) { unittest.expect(o, unittest.hasLength(2)); checkSuggestedTextStyle(o["x"]); checkSuggestedTextStyle(o["y"]); @@ -4335,9 +4335,9 @@ buildCounterTextRun++; if (buildCounterTextRun < 3) { o.content = "foo"; - o.suggestedDeletionIds = buildUnnamed5419(); - o.suggestedInsertionIds = buildUnnamed5420(); - o.suggestedTextStyleChanges = buildUnnamed5421(); + o.suggestedDeletionIds = buildUnnamed5818(); + o.suggestedInsertionIds = buildUnnamed5819(); + o.suggestedTextStyleChanges = buildUnnamed5820(); o.textStyle = buildTextStyle(); } buildCounterTextRun--; @@ -4348,9 +4348,9 @@ buildCounterTextRun++; if (buildCounterTextRun < 3) { unittest.expect(o.content, unittest.equals('foo')); - checkUnnamed5419(o.suggestedDeletionIds); - checkUnnamed5420(o.suggestedInsertionIds); - checkUnnamed5421(o.suggestedTextStyleChanges); + checkUnnamed5818(o.suggestedDeletionIds); + checkUnnamed5819(o.suggestedInsertionIds); + checkUnnamed5820(o.suggestedTextStyleChanges); checkTextStyle(o.textStyle); } buildCounterTextRun--; @@ -4545,14 +4545,14 @@ buildCounterUpdateTableCellStyleRequest--; } -buildUnnamed5422() { +buildUnnamed5821() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed5422(core.List<core.int> o) { +checkUnnamed5821(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)); @@ -4563,7 +4563,7 @@ var o = new api.UpdateTableColumnPropertiesRequest(); buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - o.columnIndices = buildUnnamed5422(); + o.columnIndices = buildUnnamed5821(); o.fields = "foo"; o.tableColumnProperties = buildTableColumnProperties(); o.tableStartLocation = buildLocation(); @@ -4576,7 +4576,7 @@ api.UpdateTableColumnPropertiesRequest o) { buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - checkUnnamed5422(o.columnIndices); + checkUnnamed5821(o.columnIndices); unittest.expect(o.fields, unittest.equals('foo')); checkTableColumnProperties(o.tableColumnProperties); checkLocation(o.tableStartLocation); @@ -4584,14 +4584,14 @@ buildCounterUpdateTableColumnPropertiesRequest--; } -buildUnnamed5423() { +buildUnnamed5822() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed5423(core.List<core.int> o) { +checkUnnamed5822(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)); @@ -4603,7 +4603,7 @@ buildCounterUpdateTableRowStyleRequest++; if (buildCounterUpdateTableRowStyleRequest < 3) { o.fields = "foo"; - o.rowIndices = buildUnnamed5423(); + o.rowIndices = buildUnnamed5822(); o.tableRowStyle = buildTableRowStyle(); o.tableStartLocation = buildLocation(); } @@ -4615,7 +4615,7 @@ buildCounterUpdateTableRowStyleRequest++; if (buildCounterUpdateTableRowStyleRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed5423(o.rowIndices); + checkUnnamed5822(o.rowIndices); checkTableRowStyle(o.tableRowStyle); checkLocation(o.tableStartLocation); }
diff --git a/generated/googleapis/test/domainsrdap/v1_test.dart b/generated/googleapis/test/domainsrdap/v1_test.dart index bd6beac..a941b0e 100644 --- a/generated/googleapis/test/domainsrdap/v1_test.dart +++ b/generated/googleapis/test/domainsrdap/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4063() { +buildUnnamed4298() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed4063(core.Map<core.String, core.Object> o) { +checkUnnamed4298(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)); @@ -79,17 +79,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4064() { +buildUnnamed4299() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4063()); - o.add(buildUnnamed4063()); + o.add(buildUnnamed4298()); + o.add(buildUnnamed4298()); return o; } -checkUnnamed4064(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4299(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4063(o[0]); - checkUnnamed4063(o[1]); + checkUnnamed4298(o[0]); + checkUnnamed4298(o[1]); } core.int buildCounterHttpBody = 0; @@ -99,7 +99,7 @@ if (buildCounterHttpBody < 3) { o.contentType = "foo"; o.data = "foo"; - o.extensions = buildUnnamed4064(); + o.extensions = buildUnnamed4299(); } buildCounterHttpBody--; return o; @@ -110,7 +110,7 @@ if (buildCounterHttpBody < 3) { unittest.expect(o.contentType, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); - checkUnnamed4064(o.extensions); + checkUnnamed4299(o.extensions); } buildCounterHttpBody--; } @@ -146,27 +146,27 @@ buildCounterLink--; } -buildUnnamed4065() { +buildUnnamed4300() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4065(core.List<core.String> o) { +checkUnnamed4300(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4066() { +buildUnnamed4301() { var o = new core.List<api.Link>(); o.add(buildLink()); o.add(buildLink()); return o; } -checkUnnamed4066(core.List<api.Link> o) { +checkUnnamed4301(core.List<api.Link> o) { unittest.expect(o, unittest.hasLength(2)); checkLink(o[0]); checkLink(o[1]); @@ -177,8 +177,8 @@ var o = new api.Notice(); buildCounterNotice++; if (buildCounterNotice < 3) { - o.description = buildUnnamed4065(); - o.links = buildUnnamed4066(); + o.description = buildUnnamed4300(); + o.links = buildUnnamed4301(); o.title = "foo"; o.type = "foo"; } @@ -189,48 +189,48 @@ checkNotice(api.Notice o) { buildCounterNotice++; if (buildCounterNotice < 3) { - checkUnnamed4065(o.description); - checkUnnamed4066(o.links); + checkUnnamed4300(o.description); + checkUnnamed4301(o.links); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); } buildCounterNotice--; } -buildUnnamed4067() { +buildUnnamed4302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4067(core.List<core.String> o) { +checkUnnamed4302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4068() { +buildUnnamed4303() { var o = new core.List<api.Notice>(); o.add(buildNotice()); o.add(buildNotice()); return o; } -checkUnnamed4068(core.List<api.Notice> o) { +checkUnnamed4303(core.List<api.Notice> o) { unittest.expect(o, unittest.hasLength(2)); checkNotice(o[0]); checkNotice(o[1]); } -buildUnnamed4069() { +buildUnnamed4304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4069(core.List<core.String> o) { +checkUnnamed4304(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -241,12 +241,12 @@ var o = new api.RdapResponse(); buildCounterRdapResponse++; if (buildCounterRdapResponse < 3) { - o.description = buildUnnamed4067(); + o.description = buildUnnamed4302(); o.errorCode = 42; o.jsonResponse = buildHttpBody(); o.lang = "foo"; - o.notices = buildUnnamed4068(); - o.rdapConformance = buildUnnamed4069(); + o.notices = buildUnnamed4303(); + o.rdapConformance = buildUnnamed4304(); o.title = "foo"; } buildCounterRdapResponse--; @@ -256,12 +256,12 @@ checkRdapResponse(api.RdapResponse o) { buildCounterRdapResponse++; if (buildCounterRdapResponse < 3) { - checkUnnamed4067(o.description); + checkUnnamed4302(o.description); unittest.expect(o.errorCode, unittest.equals(42)); checkHttpBody(o.jsonResponse); unittest.expect(o.lang, unittest.equals('foo')); - checkUnnamed4068(o.notices); - checkUnnamed4069(o.rdapConformance); + checkUnnamed4303(o.notices); + checkUnnamed4304(o.rdapConformance); unittest.expect(o.title, unittest.equals('foo')); } buildCounterRdapResponse--;
diff --git a/generated/googleapis/test/doubleclickbidmanager/v1_1_test.dart b/generated/googleapis/test/doubleclickbidmanager/v1_1_test.dart index 29c89f5..2c8f396 100644 --- a/generated/googleapis/test/doubleclickbidmanager/v1_1_test.dart +++ b/generated/googleapis/test/doubleclickbidmanager/v1_1_test.dart
@@ -50,14 +50,82 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3632() { +buildUnnamed3809() { + var o = new core.List<api.Rule>(); + o.add(buildRule()); + o.add(buildRule()); + return o; +} + +checkUnnamed3809(core.List<api.Rule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRule(o[0]); + checkRule(o[1]); +} + +core.int buildCounterChannelGrouping = 0; +buildChannelGrouping() { + var o = new api.ChannelGrouping(); + buildCounterChannelGrouping++; + if (buildCounterChannelGrouping < 3) { + o.fallbackName = "foo"; + o.name = "foo"; + o.rules = buildUnnamed3809(); + } + buildCounterChannelGrouping--; + return o; +} + +checkChannelGrouping(api.ChannelGrouping o) { + buildCounterChannelGrouping++; + if (buildCounterChannelGrouping < 3) { + unittest.expect(o.fallbackName, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed3809(o.rules); + } + buildCounterChannelGrouping--; +} + +buildUnnamed3810() { + var o = new core.List<api.EventFilter>(); + o.add(buildEventFilter()); + o.add(buildEventFilter()); + return o; +} + +checkUnnamed3810(core.List<api.EventFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEventFilter(o[0]); + checkEventFilter(o[1]); +} + +core.int buildCounterDisjunctiveMatchStatement = 0; +buildDisjunctiveMatchStatement() { + var o = new api.DisjunctiveMatchStatement(); + buildCounterDisjunctiveMatchStatement++; + if (buildCounterDisjunctiveMatchStatement < 3) { + o.eventFilters = buildUnnamed3810(); + } + buildCounterDisjunctiveMatchStatement--; + return o; +} + +checkDisjunctiveMatchStatement(api.DisjunctiveMatchStatement o) { + buildCounterDisjunctiveMatchStatement++; + if (buildCounterDisjunctiveMatchStatement < 3) { + checkUnnamed3810(o.eventFilters); + } + buildCounterDisjunctiveMatchStatement--; +} + +buildUnnamed3811() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3632(core.List<core.String> o) { +checkUnnamed3811(core.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 +137,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { o.fileSpec = "foo"; - o.filterIds = buildUnnamed3632(); + o.filterIds = buildUnnamed3811(); o.filterType = "foo"; o.format = "foo"; } @@ -81,7 +149,7 @@ buildCounterDownloadLineItemsRequest++; if (buildCounterDownloadLineItemsRequest < 3) { unittest.expect(o.fileSpec, unittest.equals('foo')); - checkUnnamed3632(o.filterIds); + checkUnnamed3811(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); } @@ -107,27 +175,27 @@ buildCounterDownloadLineItemsResponse--; } -buildUnnamed3633() { +buildUnnamed3812() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3633(core.List<core.String> o) { +checkUnnamed3812(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3634() { +buildUnnamed3813() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3634(core.List<core.String> o) { +checkUnnamed3813(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -138,8 +206,8 @@ var o = new api.DownloadRequest(); buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - o.fileTypes = buildUnnamed3633(); - o.filterIds = buildUnnamed3634(); + o.fileTypes = buildUnnamed3812(); + o.filterIds = buildUnnamed3813(); o.filterType = "foo"; o.version = "foo"; } @@ -150,8 +218,8 @@ checkDownloadRequest(api.DownloadRequest o) { buildCounterDownloadRequest++; if (buildCounterDownloadRequest < 3) { - checkUnnamed3633(o.fileTypes); - checkUnnamed3634(o.filterIds); + checkUnnamed3812(o.fileTypes); + checkUnnamed3813(o.filterIds); unittest.expect(o.filterType, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -187,6 +255,25 @@ buildCounterDownloadResponse--; } +core.int buildCounterEventFilter = 0; +buildEventFilter() { + var o = new api.EventFilter(); + buildCounterEventFilter++; + if (buildCounterEventFilter < 3) { + o.dimensionFilter = buildPathQueryOptionsFilter(); + } + buildCounterEventFilter--; + return o; +} + +checkEventFilter(api.EventFilter o) { + buildCounterEventFilter++; + if (buildCounterEventFilter < 3) { + checkPathQueryOptionsFilter(o.dimensionFilter); + } + buildCounterEventFilter--; +} + core.int buildCounterFilterPair = 0; buildFilterPair() { var o = new api.FilterPair(); @@ -208,14 +295,14 @@ buildCounterFilterPair--; } -buildUnnamed3635() { +buildUnnamed3814() { var o = new core.List<api.Query>(); o.add(buildQuery()); o.add(buildQuery()); return o; } -checkUnnamed3635(core.List<api.Query> o) { +checkUnnamed3814(core.List<api.Query> o) { unittest.expect(o, unittest.hasLength(2)); checkQuery(o[0]); checkQuery(o[1]); @@ -228,7 +315,7 @@ if (buildCounterListQueriesResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.queries = buildUnnamed3635(); + o.queries = buildUnnamed3814(); } buildCounterListQueriesResponse--; return o; @@ -239,19 +326,19 @@ if (buildCounterListQueriesResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3635(o.queries); + checkUnnamed3814(o.queries); } buildCounterListQueriesResponse--; } -buildUnnamed3636() { +buildUnnamed3815() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed3636(core.List<api.Report> o) { +checkUnnamed3815(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -264,7 +351,7 @@ if (buildCounterListReportsResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.reports = buildUnnamed3636(); + o.reports = buildUnnamed3815(); } buildCounterListReportsResponse--; return o; @@ -275,7 +362,7 @@ if (buildCounterListReportsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3636(o.reports); + checkUnnamed3815(o.reports); } buildCounterListReportsResponse--; } @@ -286,6 +373,7 @@ buildCounterOptions++; if (buildCounterOptions < 3) { o.includeOnlyTargetedUserLists = true; + o.pathQueryOptions = buildPathQueryOptions(); } buildCounterOptions--; return o; @@ -295,44 +383,45 @@ buildCounterOptions++; if (buildCounterOptions < 3) { unittest.expect(o.includeOnlyTargetedUserLists, unittest.isTrue); + checkPathQueryOptions(o.pathQueryOptions); } buildCounterOptions--; } -buildUnnamed3637() { +buildUnnamed3816() { var o = new core.List<api.FilterPair>(); o.add(buildFilterPair()); o.add(buildFilterPair()); return o; } -checkUnnamed3637(core.List<api.FilterPair> o) { +checkUnnamed3816(core.List<api.FilterPair> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterPair(o[0]); checkFilterPair(o[1]); } -buildUnnamed3638() { +buildUnnamed3817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3638(core.List<core.String> o) { +checkUnnamed3817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3639() { +buildUnnamed3818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3639(core.List<core.String> o) { +checkUnnamed3818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -343,10 +432,10 @@ var o = new api.Parameters(); buildCounterParameters++; if (buildCounterParameters < 3) { - o.filters = buildUnnamed3637(); - o.groupBys = buildUnnamed3638(); + o.filters = buildUnnamed3816(); + o.groupBys = buildUnnamed3817(); o.includeInviteData = true; - o.metrics = buildUnnamed3639(); + o.metrics = buildUnnamed3818(); o.options = buildOptions(); o.type = "foo"; } @@ -357,16 +446,120 @@ checkParameters(api.Parameters o) { buildCounterParameters++; if (buildCounterParameters < 3) { - checkUnnamed3637(o.filters); - checkUnnamed3638(o.groupBys); + checkUnnamed3816(o.filters); + checkUnnamed3817(o.groupBys); unittest.expect(o.includeInviteData, unittest.isTrue); - checkUnnamed3639(o.metrics); + checkUnnamed3818(o.metrics); checkOptions(o.options); unittest.expect(o.type, unittest.equals('foo')); } buildCounterParameters--; } +buildUnnamed3819() { + var o = new core.List<api.EventFilter>(); + o.add(buildEventFilter()); + o.add(buildEventFilter()); + return o; +} + +checkUnnamed3819(core.List<api.EventFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkEventFilter(o[0]); + checkEventFilter(o[1]); +} + +core.int buildCounterPathFilter = 0; +buildPathFilter() { + var o = new api.PathFilter(); + buildCounterPathFilter++; + if (buildCounterPathFilter < 3) { + o.eventFilters = buildUnnamed3819(); + o.pathMatchPosition = "foo"; + } + buildCounterPathFilter--; + return o; +} + +checkPathFilter(api.PathFilter o) { + buildCounterPathFilter++; + if (buildCounterPathFilter < 3) { + checkUnnamed3819(o.eventFilters); + unittest.expect(o.pathMatchPosition, unittest.equals('foo')); + } + buildCounterPathFilter--; +} + +buildUnnamed3820() { + var o = new core.List<api.PathFilter>(); + o.add(buildPathFilter()); + o.add(buildPathFilter()); + return o; +} + +checkUnnamed3820(core.List<api.PathFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPathFilter(o[0]); + checkPathFilter(o[1]); +} + +core.int buildCounterPathQueryOptions = 0; +buildPathQueryOptions() { + var o = new api.PathQueryOptions(); + buildCounterPathQueryOptions++; + if (buildCounterPathQueryOptions < 3) { + o.channelGrouping = buildChannelGrouping(); + o.pathFilters = buildUnnamed3820(); + } + buildCounterPathQueryOptions--; + return o; +} + +checkPathQueryOptions(api.PathQueryOptions o) { + buildCounterPathQueryOptions++; + if (buildCounterPathQueryOptions < 3) { + checkChannelGrouping(o.channelGrouping); + checkUnnamed3820(o.pathFilters); + } + buildCounterPathQueryOptions--; +} + +buildUnnamed3821() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3821(core.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 buildCounterPathQueryOptionsFilter = 0; +buildPathQueryOptionsFilter() { + var o = new api.PathQueryOptionsFilter(); + buildCounterPathQueryOptionsFilter++; + if (buildCounterPathQueryOptionsFilter < 3) { + o.filter = "foo"; + o.match = "foo"; + o.values = buildUnnamed3821(); + } + buildCounterPathQueryOptionsFilter--; + return o; +} + +checkPathQueryOptionsFilter(api.PathQueryOptionsFilter o) { + buildCounterPathQueryOptionsFilter++; + if (buildCounterPathQueryOptionsFilter < 3) { + unittest.expect(o.filter, unittest.equals('foo')); + unittest.expect(o.match, unittest.equals('foo')); + checkUnnamed3821(o.values); + } + buildCounterPathQueryOptionsFilter--; +} + core.int buildCounterQuery = 0; buildQuery() { var o = new api.Query(); @@ -400,14 +593,14 @@ buildCounterQuery--; } -buildUnnamed3640() { +buildUnnamed3822() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3640(core.List<core.String> o) { +checkUnnamed3822(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -427,7 +620,7 @@ o.reportCount = 42; o.running = true; o.sendNotification = true; - o.shareEmailAddress = buildUnnamed3640(); + o.shareEmailAddress = buildUnnamed3822(); o.title = "foo"; } buildCounterQueryMetadata--; @@ -447,7 +640,7 @@ unittest.expect(o.reportCount, unittest.equals(42)); unittest.expect(o.running, unittest.isTrue); unittest.expect(o.sendNotification, unittest.isTrue); - checkUnnamed3640(o.shareEmailAddress); + checkUnnamed3822(o.shareEmailAddress); unittest.expect(o.title, unittest.equals('foo')); } buildCounterQueryMetadata--; @@ -593,14 +786,14 @@ buildCounterReportStatus--; } -buildUnnamed3641() { +buildUnnamed3823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3641(core.List<core.String> o) { +checkUnnamed3823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -614,7 +807,7 @@ o.changed = true; o.entityId = "foo"; o.entityName = "foo"; - o.errors = buildUnnamed3641(); + o.errors = buildUnnamed3823(); o.persisted = true; o.rowNumber = 42; } @@ -628,13 +821,47 @@ unittest.expect(o.changed, unittest.isTrue); unittest.expect(o.entityId, unittest.equals('foo')); unittest.expect(o.entityName, unittest.equals('foo')); - checkUnnamed3641(o.errors); + checkUnnamed3823(o.errors); unittest.expect(o.persisted, unittest.isTrue); unittest.expect(o.rowNumber, unittest.equals(42)); } buildCounterRowStatus--; } +buildUnnamed3824() { + var o = new core.List<api.DisjunctiveMatchStatement>(); + o.add(buildDisjunctiveMatchStatement()); + o.add(buildDisjunctiveMatchStatement()); + return o; +} + +checkUnnamed3824(core.List<api.DisjunctiveMatchStatement> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDisjunctiveMatchStatement(o[0]); + checkDisjunctiveMatchStatement(o[1]); +} + +core.int buildCounterRule = 0; +buildRule() { + var o = new api.Rule(); + buildCounterRule++; + if (buildCounterRule < 3) { + o.disjunctiveMatchStatements = buildUnnamed3824(); + o.name = "foo"; + } + buildCounterRule--; + return o; +} + +checkRule(api.Rule o) { + buildCounterRule++; + if (buildCounterRule < 3) { + checkUnnamed3824(o.disjunctiveMatchStatements); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterRule--; +} + core.int buildCounterRunQueryRequest = 0; buildRunQueryRequest() { var o = new api.RunQueryRequest(); @@ -702,27 +929,27 @@ buildCounterUploadLineItemsResponse--; } -buildUnnamed3642() { +buildUnnamed3825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3642(core.List<core.String> o) { +checkUnnamed3825(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3643() { +buildUnnamed3826() { var o = new core.List<api.RowStatus>(); o.add(buildRowStatus()); o.add(buildRowStatus()); return o; } -checkUnnamed3643(core.List<api.RowStatus> o) { +checkUnnamed3826(core.List<api.RowStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRowStatus(o[0]); checkRowStatus(o[1]); @@ -733,8 +960,8 @@ var o = new api.UploadStatus(); buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - o.errors = buildUnnamed3642(); - o.rowStatus = buildUnnamed3643(); + o.errors = buildUnnamed3825(); + o.rowStatus = buildUnnamed3826(); } buildCounterUploadStatus--; return o; @@ -743,13 +970,29 @@ checkUploadStatus(api.UploadStatus o) { buildCounterUploadStatus++; if (buildCounterUploadStatus < 3) { - checkUnnamed3642(o.errors); - checkUnnamed3643(o.rowStatus); + checkUnnamed3825(o.errors); + checkUnnamed3826(o.rowStatus); } buildCounterUploadStatus--; } main() { + unittest.group("obj-schema-ChannelGrouping", () { + unittest.test("to-json--from-json", () { + var o = buildChannelGrouping(); + var od = new api.ChannelGrouping.fromJson(o.toJson()); + checkChannelGrouping(od); + }); + }); + + unittest.group("obj-schema-DisjunctiveMatchStatement", () { + unittest.test("to-json--from-json", () { + var o = buildDisjunctiveMatchStatement(); + var od = new api.DisjunctiveMatchStatement.fromJson(o.toJson()); + checkDisjunctiveMatchStatement(od); + }); + }); + unittest.group("obj-schema-DownloadLineItemsRequest", () { unittest.test("to-json--from-json", () { var o = buildDownloadLineItemsRequest(); @@ -782,6 +1025,14 @@ }); }); + unittest.group("obj-schema-EventFilter", () { + unittest.test("to-json--from-json", () { + var o = buildEventFilter(); + var od = new api.EventFilter.fromJson(o.toJson()); + checkEventFilter(od); + }); + }); + unittest.group("obj-schema-FilterPair", () { unittest.test("to-json--from-json", () { var o = buildFilterPair(); @@ -822,6 +1073,30 @@ }); }); + unittest.group("obj-schema-PathFilter", () { + unittest.test("to-json--from-json", () { + var o = buildPathFilter(); + var od = new api.PathFilter.fromJson(o.toJson()); + checkPathFilter(od); + }); + }); + + unittest.group("obj-schema-PathQueryOptions", () { + unittest.test("to-json--from-json", () { + var o = buildPathQueryOptions(); + var od = new api.PathQueryOptions.fromJson(o.toJson()); + checkPathQueryOptions(od); + }); + }); + + unittest.group("obj-schema-PathQueryOptionsFilter", () { + unittest.test("to-json--from-json", () { + var o = buildPathQueryOptionsFilter(); + var od = new api.PathQueryOptionsFilter.fromJson(o.toJson()); + checkPathQueryOptionsFilter(od); + }); + }); + unittest.group("obj-schema-Query", () { unittest.test("to-json--from-json", () { var o = buildQuery(); @@ -894,6 +1169,14 @@ }); }); + 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-RunQueryRequest", () { unittest.test("to-json--from-json", () { var o = buildRunQueryRequest(); @@ -1220,8 +1503,8 @@ var mock = new HttpServerMock(); api.QueriesResourceApi res = new api.DoubleclickbidmanagerApi(mock).queries; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1256,10 +1539,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1270,8 +1553,8 @@ }), true); res .listqueries( - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListQueriesResponse(response); @@ -1348,8 +1631,8 @@ api.ReportsResourceApi res = new api.DoubleclickbidmanagerApi(mock).reports; var arg_queryId = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1393,10 +1676,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1407,8 +1690,8 @@ }), true); res .listreports(arg_queryId, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReportsResponse(response);
diff --git a/generated/googleapis/test/doubleclicksearch/v2_test.dart b/generated/googleapis/test/doubleclicksearch/v2_test.dart index c705c66..0f88bd4 100644 --- a/generated/googleapis/test/doubleclicksearch/v2_test.dart +++ b/generated/googleapis/test/doubleclicksearch/v2_test.dart
@@ -79,27 +79,27 @@ buildCounterAvailability--; } -buildUnnamed530() { +buildUnnamed549() { var o = new core.List<api.CustomDimension>(); o.add(buildCustomDimension()); o.add(buildCustomDimension()); return o; } -checkUnnamed530(core.List<api.CustomDimension> o) { +checkUnnamed549(core.List<api.CustomDimension> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomDimension(o[0]); checkCustomDimension(o[1]); } -buildUnnamed531() { +buildUnnamed550() { var o = new core.List<api.CustomMetric>(); o.add(buildCustomMetric()); o.add(buildCustomMetric()); return o; } -checkUnnamed531(core.List<api.CustomMetric> o) { +checkUnnamed550(core.List<api.CustomMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomMetric(o[0]); checkCustomMetric(o[1]); @@ -124,8 +124,8 @@ o.countMillis = "foo"; o.criterionId = "foo"; o.currencyCode = "foo"; - o.customDimension = buildUnnamed530(); - o.customMetric = buildUnnamed531(); + o.customDimension = buildUnnamed549(); + o.customMetric = buildUnnamed550(); o.deviceType = "foo"; o.dsConversionId = "foo"; o.engineAccountId = "foo"; @@ -165,8 +165,8 @@ unittest.expect(o.countMillis, unittest.equals('foo')); unittest.expect(o.criterionId, unittest.equals('foo')); unittest.expect(o.currencyCode, unittest.equals('foo')); - checkUnnamed530(o.customDimension); - checkUnnamed531(o.customMetric); + checkUnnamed549(o.customDimension); + checkUnnamed550(o.customMetric); unittest.expect(o.deviceType, unittest.equals('foo')); unittest.expect(o.dsConversionId, unittest.equals('foo')); unittest.expect(o.engineAccountId, unittest.equals('foo')); @@ -188,14 +188,14 @@ buildCounterConversion--; } -buildUnnamed532() { +buildUnnamed551() { var o = new core.List<api.Conversion>(); o.add(buildConversion()); o.add(buildConversion()); return o; } -checkUnnamed532(core.List<api.Conversion> o) { +checkUnnamed551(core.List<api.Conversion> o) { unittest.expect(o, unittest.hasLength(2)); checkConversion(o[0]); checkConversion(o[1]); @@ -206,7 +206,7 @@ var o = new api.ConversionList(); buildCounterConversionList++; if (buildCounterConversionList < 3) { - o.conversion = buildUnnamed532(); + o.conversion = buildUnnamed551(); o.kind = "foo"; } buildCounterConversionList--; @@ -216,7 +216,7 @@ checkConversionList(api.ConversionList o) { buildCounterConversionList++; if (buildCounterConversionList < 3) { - checkUnnamed532(o.conversion); + checkUnnamed551(o.conversion); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterConversionList--; @@ -285,27 +285,27 @@ buildCounterReportFiles--; } -buildUnnamed533() { +buildUnnamed552() { var o = new core.List<api.ReportFiles>(); o.add(buildReportFiles()); o.add(buildReportFiles()); return o; } -checkUnnamed533(core.List<api.ReportFiles> o) { +checkUnnamed552(core.List<api.ReportFiles> o) { unittest.expect(o, unittest.hasLength(2)); checkReportFiles(o[0]); checkReportFiles(o[1]); } -buildUnnamed534() { +buildUnnamed553() { var o = new core.List<api.ReportRow>(); o.add(buildReportRow()); o.add(buildReportRow()); return o; } -checkUnnamed534(core.List<api.ReportRow> o) { +checkUnnamed553(core.List<api.ReportRow> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRow(o[0]); checkReportRow(o[1]); @@ -316,13 +316,13 @@ var o = new api.Report(); buildCounterReport++; if (buildCounterReport < 3) { - o.files = buildUnnamed533(); + o.files = buildUnnamed552(); o.id = "foo"; o.isReportReady = true; o.kind = "foo"; o.request = buildReportRequest(); o.rowCount = 42; - o.rows = buildUnnamed534(); + o.rows = buildUnnamed553(); o.statisticsCurrencyCode = "foo"; o.statisticsTimeZone = "foo"; } @@ -333,13 +333,13 @@ checkReport(api.Report o) { buildCounterReport++; if (buildCounterReport < 3) { - checkUnnamed533(o.files); + checkUnnamed552(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)); - checkUnnamed534(o.rows); + checkUnnamed553(o.rows); unittest.expect(o.statisticsCurrencyCode, unittest.equals('foo')); unittest.expect(o.statisticsTimeZone, unittest.equals('foo')); } @@ -383,20 +383,20 @@ buildCounterReportApiColumnSpec--; } -buildUnnamed535() { +buildUnnamed554() { var o = new core.List<api.ReportApiColumnSpec>(); o.add(buildReportApiColumnSpec()); o.add(buildReportApiColumnSpec()); return o; } -checkUnnamed535(core.List<api.ReportApiColumnSpec> o) { +checkUnnamed554(core.List<api.ReportApiColumnSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkReportApiColumnSpec(o[0]); checkReportApiColumnSpec(o[1]); } -buildUnnamed536() { +buildUnnamed555() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -411,7 +411,7 @@ return o; } -checkUnnamed536(core.List<core.Object> o) { +checkUnnamed555(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -432,7 +432,7 @@ if (buildCounterReportRequestFilters < 3) { o.column = buildReportApiColumnSpec(); o.operator = "foo"; - o.values = buildUnnamed536(); + o.values = buildUnnamed555(); } buildCounterReportRequestFilters--; return o; @@ -443,19 +443,19 @@ if (buildCounterReportRequestFilters < 3) { checkReportApiColumnSpec(o.column); unittest.expect(o.operator, unittest.equals('foo')); - checkUnnamed536(o.values); + checkUnnamed555(o.values); } buildCounterReportRequestFilters--; } -buildUnnamed537() { +buildUnnamed556() { var o = new core.List<api.ReportRequestFilters>(); o.add(buildReportRequestFilters()); o.add(buildReportRequestFilters()); return o; } -checkUnnamed537(core.List<api.ReportRequestFilters> o) { +checkUnnamed556(core.List<api.ReportRequestFilters> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestFilters(o[0]); checkReportRequestFilters(o[1]); @@ -482,14 +482,14 @@ buildCounterReportRequestOrderBy--; } -buildUnnamed538() { +buildUnnamed557() { var o = new core.List<api.ReportRequestOrderBy>(); o.add(buildReportRequestOrderBy()); o.add(buildReportRequestOrderBy()); return o; } -checkUnnamed538(core.List<api.ReportRequestOrderBy> o) { +checkUnnamed557(core.List<api.ReportRequestOrderBy> o) { unittest.expect(o, unittest.hasLength(2)); checkReportRequestOrderBy(o[0]); checkReportRequestOrderBy(o[1]); @@ -531,9 +531,8 @@ var o = new api.ReportRequestTimeRange(); buildCounterReportRequestTimeRange++; if (buildCounterReportRequestTimeRange < 3) { - o.changedAttributesSinceTimestamp = - core.DateTime.parse("2002-02-27T14:01:02"); - o.changedMetricsSinceTimestamp = core.DateTime.parse("2002-02-27T14:01:02"); + o.changedAttributesSinceTimestamp = "foo"; + o.changedMetricsSinceTimestamp = "foo"; o.endDate = "foo"; o.startDate = "foo"; } @@ -544,10 +543,8 @@ checkReportRequestTimeRange(api.ReportRequestTimeRange o) { buildCounterReportRequestTimeRange++; if (buildCounterReportRequestTimeRange < 3) { - unittest.expect(o.changedAttributesSinceTimestamp, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.changedMetricsSinceTimestamp, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.changedAttributesSinceTimestamp, unittest.equals('foo')); + unittest.expect(o.changedMetricsSinceTimestamp, unittest.equals('foo')); unittest.expect(o.endDate, unittest.equals('foo')); unittest.expect(o.startDate, unittest.equals('foo')); } @@ -559,13 +556,13 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.columns = buildUnnamed535(); + o.columns = buildUnnamed554(); o.downloadFormat = "foo"; - o.filters = buildUnnamed537(); + o.filters = buildUnnamed556(); o.includeDeletedEntities = true; o.includeRemovedEntities = true; o.maxRowsPerFile = 42; - o.orderBy = buildUnnamed538(); + o.orderBy = buildUnnamed557(); o.reportScope = buildReportRequestReportScope(); o.reportType = "foo"; o.rowCount = 42; @@ -581,13 +578,13 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed535(o.columns); + checkUnnamed554(o.columns); unittest.expect(o.downloadFormat, unittest.equals('foo')); - checkUnnamed537(o.filters); + checkUnnamed556(o.filters); unittest.expect(o.includeDeletedEntities, unittest.isTrue); unittest.expect(o.includeRemovedEntities, unittest.isTrue); unittest.expect(o.maxRowsPerFile, unittest.equals(42)); - checkUnnamed538(o.orderBy); + checkUnnamed557(o.orderBy); checkReportRequestReportScope(o.reportScope); unittest.expect(o.reportType, unittest.equals('foo')); unittest.expect(o.rowCount, unittest.equals(42)); @@ -651,14 +648,14 @@ buildCounterSavedColumn--; } -buildUnnamed539() { +buildUnnamed558() { var o = new core.List<api.SavedColumn>(); o.add(buildSavedColumn()); o.add(buildSavedColumn()); return o; } -checkUnnamed539(core.List<api.SavedColumn> o) { +checkUnnamed558(core.List<api.SavedColumn> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedColumn(o[0]); checkSavedColumn(o[1]); @@ -669,7 +666,7 @@ var o = new api.SavedColumnList(); buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - o.items = buildUnnamed539(); + o.items = buildUnnamed558(); o.kind = "foo"; } buildCounterSavedColumnList--; @@ -679,20 +676,20 @@ checkSavedColumnList(api.SavedColumnList o) { buildCounterSavedColumnList++; if (buildCounterSavedColumnList < 3) { - checkUnnamed539(o.items); + checkUnnamed558(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterSavedColumnList--; } -buildUnnamed540() { +buildUnnamed559() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed540(core.List<api.Availability> o) { +checkUnnamed559(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -703,7 +700,7 @@ var o = new api.UpdateAvailabilityRequest(); buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - o.availabilities = buildUnnamed540(); + o.availabilities = buildUnnamed559(); } buildCounterUpdateAvailabilityRequest--; return o; @@ -712,19 +709,19 @@ checkUpdateAvailabilityRequest(api.UpdateAvailabilityRequest o) { buildCounterUpdateAvailabilityRequest++; if (buildCounterUpdateAvailabilityRequest < 3) { - checkUnnamed540(o.availabilities); + checkUnnamed559(o.availabilities); } buildCounterUpdateAvailabilityRequest--; } -buildUnnamed541() { +buildUnnamed560() { var o = new core.List<api.Availability>(); o.add(buildAvailability()); o.add(buildAvailability()); return o; } -checkUnnamed541(core.List<api.Availability> o) { +checkUnnamed560(core.List<api.Availability> o) { unittest.expect(o, unittest.hasLength(2)); checkAvailability(o[0]); checkAvailability(o[1]); @@ -735,7 +732,7 @@ var o = new api.UpdateAvailabilityResponse(); buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - o.availabilities = buildUnnamed541(); + o.availabilities = buildUnnamed560(); } buildCounterUpdateAvailabilityResponse--; return o; @@ -744,7 +741,7 @@ checkUpdateAvailabilityResponse(api.UpdateAvailabilityResponse o) { buildCounterUpdateAvailabilityResponse++; if (buildCounterUpdateAvailabilityResponse < 3) { - checkUnnamed541(o.availabilities); + checkUnnamed560(o.availabilities); } buildCounterUpdateAvailabilityResponse--; } @@ -906,10 +903,10 @@ var arg_rowCount = 42; var arg_startDate = 42; var arg_startRow = 42; - var arg_adGroupId = "foo"; var arg_adId = "foo"; - var arg_campaignId = "foo"; var arg_criterionId = "foo"; + var arg_adGroupId = "foo"; + var arg_campaignId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -919,12 +916,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("agency/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("doubleclicksearch/v2/agency/")); + pathOffset += 28; index = path.indexOf("/advertiser/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -979,13 +973,13 @@ unittest.equals(arg_startDate)); unittest.expect(core.int.parse(queryMap["startRow"].first), unittest.equals(arg_startRow)); - unittest.expect( - queryMap["adGroupId"].first, unittest.equals(arg_adGroupId)); unittest.expect(queryMap["adId"].first, unittest.equals(arg_adId)); unittest.expect( - queryMap["campaignId"].first, unittest.equals(arg_campaignId)); - unittest.expect( queryMap["criterionId"].first, unittest.equals(arg_criterionId)); + unittest.expect( + queryMap["adGroupId"].first, unittest.equals(arg_adGroupId)); + unittest.expect( + queryMap["campaignId"].first, unittest.equals(arg_campaignId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -997,10 +991,10 @@ res .get(arg_agencyId, arg_advertiserId, arg_engineAccountId, arg_endDate, arg_rowCount, arg_startDate, arg_startRow, - adGroupId: arg_adGroupId, adId: arg_adId, - campaignId: arg_campaignId, criterionId: arg_criterionId, + adGroupId: arg_adGroupId, + campaignId: arg_campaignId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkConversionList(response); @@ -1024,12 +1018,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("conversion")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("doubleclicksearch/v2/conversion")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -1081,12 +1072,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("conversion")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("doubleclicksearch/v2/conversion")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -1138,12 +1126,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 29), - unittest.equals("conversion/updateAvailability")); - pathOffset += 29; + unittest.expect( + path.substring(pathOffset, pathOffset + 50), + unittest + .equals("doubleclicksearch/v2/conversion/updateAvailability")); + pathOffset += 50; var query = (req.url).query; var queryOffset = 0; @@ -1196,12 +1183,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("reports/generate")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 37), + unittest.equals("doubleclicksearch/v2/reports/generate")); + pathOffset += 37; var query = (req.url).query; var queryOffset = 0; @@ -1249,12 +1233,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("reports/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("doubleclicksearch/v2/reports/")); + pathOffset += 29; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_reportId")); @@ -1309,12 +1290,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("reports/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("doubleclicksearch/v2/reports/")); + pathOffset += 29; index = path.indexOf("/files/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1375,12 +1353,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("reports")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("doubleclicksearch/v2/reports")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -1432,12 +1407,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("doubleclicksearch/v2/")); - pathOffset += 21; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("agency/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("doubleclicksearch/v2/agency/")); + pathOffset += 28; index = path.indexOf("/advertiser/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart =
diff --git a/generated/googleapis/test/drive/v2_test.dart b/generated/googleapis/test/drive/v2_test.dart index 38d16c4..24b0f64 100644 --- a/generated/googleapis/test/drive/v2_test.dart +++ b/generated/googleapis/test/drive/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1074() { +buildUnnamed1083() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1074(core.List<core.String> o) { +checkUnnamed1083(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AboutAdditionalRoleInfoRoleSets(); buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - o.additionalRoles = buildUnnamed1074(); + o.additionalRoles = buildUnnamed1083(); o.primaryRole = "foo"; } buildCounterAboutAdditionalRoleInfoRoleSets--; @@ -78,20 +78,20 @@ checkAboutAdditionalRoleInfoRoleSets(api.AboutAdditionalRoleInfoRoleSets o) { buildCounterAboutAdditionalRoleInfoRoleSets++; if (buildCounterAboutAdditionalRoleInfoRoleSets < 3) { - checkUnnamed1074(o.additionalRoles); + checkUnnamed1083(o.additionalRoles); unittest.expect(o.primaryRole, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfoRoleSets--; } -buildUnnamed1075() { +buildUnnamed1084() { var o = new core.List<api.AboutAdditionalRoleInfoRoleSets>(); o.add(buildAboutAdditionalRoleInfoRoleSets()); o.add(buildAboutAdditionalRoleInfoRoleSets()); return o; } -checkUnnamed1075(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { +checkUnnamed1084(core.List<api.AboutAdditionalRoleInfoRoleSets> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfoRoleSets(o[0]); checkAboutAdditionalRoleInfoRoleSets(o[1]); @@ -102,7 +102,7 @@ var o = new api.AboutAdditionalRoleInfo(); buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - o.roleSets = buildUnnamed1075(); + o.roleSets = buildUnnamed1084(); o.type = "foo"; } buildCounterAboutAdditionalRoleInfo--; @@ -112,20 +112,20 @@ checkAboutAdditionalRoleInfo(api.AboutAdditionalRoleInfo o) { buildCounterAboutAdditionalRoleInfo++; if (buildCounterAboutAdditionalRoleInfo < 3) { - checkUnnamed1075(o.roleSets); + checkUnnamed1084(o.roleSets); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAboutAdditionalRoleInfo--; } -buildUnnamed1076() { +buildUnnamed1085() { var o = new core.List<api.AboutAdditionalRoleInfo>(); o.add(buildAboutAdditionalRoleInfo()); o.add(buildAboutAdditionalRoleInfo()); return o; } -checkUnnamed1076(core.List<api.AboutAdditionalRoleInfo> o) { +checkUnnamed1085(core.List<api.AboutAdditionalRoleInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutAdditionalRoleInfo(o[0]); checkAboutAdditionalRoleInfo(o[1]); @@ -154,27 +154,27 @@ buildCounterAboutDriveThemes--; } -buildUnnamed1077() { +buildUnnamed1086() { var o = new core.List<api.AboutDriveThemes>(); o.add(buildAboutDriveThemes()); o.add(buildAboutDriveThemes()); return o; } -checkUnnamed1077(core.List<api.AboutDriveThemes> o) { +checkUnnamed1086(core.List<api.AboutDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutDriveThemes(o[0]); checkAboutDriveThemes(o[1]); } -buildUnnamed1078() { +buildUnnamed1087() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1078(core.List<core.String> o) { +checkUnnamed1087(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -186,7 +186,7 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { o.source = "foo"; - o.targets = buildUnnamed1078(); + o.targets = buildUnnamed1087(); } buildCounterAboutExportFormats--; return o; @@ -196,19 +196,19 @@ buildCounterAboutExportFormats++; if (buildCounterAboutExportFormats < 3) { unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed1078(o.targets); + checkUnnamed1087(o.targets); } buildCounterAboutExportFormats--; } -buildUnnamed1079() { +buildUnnamed1088() { var o = new core.List<api.AboutExportFormats>(); o.add(buildAboutExportFormats()); o.add(buildAboutExportFormats()); return o; } -checkUnnamed1079(core.List<api.AboutExportFormats> o) { +checkUnnamed1088(core.List<api.AboutExportFormats> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutExportFormats(o[0]); checkAboutExportFormats(o[1]); @@ -235,318 +235,19 @@ buildCounterAboutFeatures--; } -buildUnnamed1080() { +buildUnnamed1089() { var o = new core.List<api.AboutFeatures>(); o.add(buildAboutFeatures()); o.add(buildAboutFeatures()); return o; } -checkUnnamed1080(core.List<api.AboutFeatures> o) { +checkUnnamed1089(core.List<api.AboutFeatures> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutFeatures(o[0]); checkAboutFeatures(o[1]); } -buildUnnamed1081() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1081(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1082() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1082(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterAboutImportFormats = 0; -buildAboutImportFormats() { - var o = new api.AboutImportFormats(); - buildCounterAboutImportFormats++; - if (buildCounterAboutImportFormats < 3) { - o.source = "foo"; - o.targets = buildUnnamed1082(); - } - buildCounterAboutImportFormats--; - return o; -} - -checkAboutImportFormats(api.AboutImportFormats o) { - buildCounterAboutImportFormats++; - if (buildCounterAboutImportFormats < 3) { - unittest.expect(o.source, unittest.equals('foo')); - checkUnnamed1082(o.targets); - } - buildCounterAboutImportFormats--; -} - -buildUnnamed1083() { - var o = new core.List<api.AboutImportFormats>(); - o.add(buildAboutImportFormats()); - o.add(buildAboutImportFormats()); - return o; -} - -checkUnnamed1083(core.List<api.AboutImportFormats> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAboutImportFormats(o[0]); - checkAboutImportFormats(o[1]); -} - -core.int buildCounterAboutMaxUploadSizes = 0; -buildAboutMaxUploadSizes() { - var o = new api.AboutMaxUploadSizes(); - buildCounterAboutMaxUploadSizes++; - if (buildCounterAboutMaxUploadSizes < 3) { - o.size = "foo"; - o.type = "foo"; - } - buildCounterAboutMaxUploadSizes--; - return o; -} - -checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { - buildCounterAboutMaxUploadSizes++; - if (buildCounterAboutMaxUploadSizes < 3) { - unittest.expect(o.size, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterAboutMaxUploadSizes--; -} - -buildUnnamed1084() { - var o = new core.List<api.AboutMaxUploadSizes>(); - o.add(buildAboutMaxUploadSizes()); - o.add(buildAboutMaxUploadSizes()); - return o; -} - -checkUnnamed1084(core.List<api.AboutMaxUploadSizes> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAboutMaxUploadSizes(o[0]); - checkAboutMaxUploadSizes(o[1]); -} - -core.int buildCounterAboutQuotaBytesByService = 0; -buildAboutQuotaBytesByService() { - var o = new api.AboutQuotaBytesByService(); - buildCounterAboutQuotaBytesByService++; - if (buildCounterAboutQuotaBytesByService < 3) { - o.bytesUsed = "foo"; - o.serviceName = "foo"; - } - buildCounterAboutQuotaBytesByService--; - return o; -} - -checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { - buildCounterAboutQuotaBytesByService++; - if (buildCounterAboutQuotaBytesByService < 3) { - unittest.expect(o.bytesUsed, unittest.equals('foo')); - unittest.expect(o.serviceName, unittest.equals('foo')); - } - buildCounterAboutQuotaBytesByService--; -} - -buildUnnamed1085() { - var o = new core.List<api.AboutQuotaBytesByService>(); - o.add(buildAboutQuotaBytesByService()); - o.add(buildAboutQuotaBytesByService()); - return o; -} - -checkUnnamed1085(core.List<api.AboutQuotaBytesByService> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAboutQuotaBytesByService(o[0]); - checkAboutQuotaBytesByService(o[1]); -} - -core.int buildCounterAboutTeamDriveThemes = 0; -buildAboutTeamDriveThemes() { - var o = new api.AboutTeamDriveThemes(); - buildCounterAboutTeamDriveThemes++; - if (buildCounterAboutTeamDriveThemes < 3) { - o.backgroundImageLink = "foo"; - o.colorRgb = "foo"; - o.id = "foo"; - } - buildCounterAboutTeamDriveThemes--; - return o; -} - -checkAboutTeamDriveThemes(api.AboutTeamDriveThemes o) { - buildCounterAboutTeamDriveThemes++; - if (buildCounterAboutTeamDriveThemes < 3) { - unittest.expect(o.backgroundImageLink, unittest.equals('foo')); - unittest.expect(o.colorRgb, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - } - buildCounterAboutTeamDriveThemes--; -} - -buildUnnamed1086() { - var o = new core.List<api.AboutTeamDriveThemes>(); - o.add(buildAboutTeamDriveThemes()); - o.add(buildAboutTeamDriveThemes()); - return o; -} - -checkUnnamed1086(core.List<api.AboutTeamDriveThemes> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAboutTeamDriveThemes(o[0]); - checkAboutTeamDriveThemes(o[1]); -} - -core.int buildCounterAbout = 0; -buildAbout() { - var o = new api.About(); - buildCounterAbout++; - if (buildCounterAbout < 3) { - o.additionalRoleInfo = buildUnnamed1076(); - o.canCreateDrives = true; - o.canCreateTeamDrives = true; - o.domainSharingPolicy = "foo"; - o.driveThemes = buildUnnamed1077(); - o.etag = "foo"; - o.exportFormats = buildUnnamed1079(); - o.features = buildUnnamed1080(); - o.folderColorPalette = buildUnnamed1081(); - o.importFormats = buildUnnamed1083(); - o.isCurrentAppInstalled = true; - o.kind = "foo"; - o.languageCode = "foo"; - o.largestChangeId = "foo"; - o.maxUploadSizes = buildUnnamed1084(); - o.name = "foo"; - o.permissionId = "foo"; - o.quotaBytesByService = buildUnnamed1085(); - o.quotaBytesTotal = "foo"; - o.quotaBytesUsed = "foo"; - o.quotaBytesUsedAggregate = "foo"; - o.quotaBytesUsedInTrash = "foo"; - o.quotaType = "foo"; - o.remainingChangeIds = "foo"; - o.rootFolderId = "foo"; - o.selfLink = "foo"; - o.teamDriveThemes = buildUnnamed1086(); - o.user = buildUser(); - } - buildCounterAbout--; - return o; -} - -checkAbout(api.About o) { - buildCounterAbout++; - if (buildCounterAbout < 3) { - checkUnnamed1076(o.additionalRoleInfo); - unittest.expect(o.canCreateDrives, unittest.isTrue); - unittest.expect(o.canCreateTeamDrives, unittest.isTrue); - unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); - checkUnnamed1077(o.driveThemes); - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1079(o.exportFormats); - checkUnnamed1080(o.features); - checkUnnamed1081(o.folderColorPalette); - checkUnnamed1083(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')); - checkUnnamed1084(o.maxUploadSizes); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.permissionId, unittest.equals('foo')); - checkUnnamed1085(o.quotaBytesByService); - unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); - unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); - unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); - unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); - unittest.expect(o.quotaType, unittest.equals('foo')); - unittest.expect(o.remainingChangeIds, unittest.equals('foo')); - unittest.expect(o.rootFolderId, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed1086(o.teamDriveThemes); - checkUser(o.user); - } - buildCounterAbout--; -} - -core.int buildCounterAppIcons = 0; -buildAppIcons() { - var o = new api.AppIcons(); - buildCounterAppIcons++; - if (buildCounterAppIcons < 3) { - o.category = "foo"; - o.iconUrl = "foo"; - o.size = 42; - } - buildCounterAppIcons--; - return o; -} - -checkAppIcons(api.AppIcons o) { - buildCounterAppIcons++; - if (buildCounterAppIcons < 3) { - unittest.expect(o.category, unittest.equals('foo')); - unittest.expect(o.iconUrl, unittest.equals('foo')); - unittest.expect(o.size, unittest.equals(42)); - } - buildCounterAppIcons--; -} - -buildUnnamed1087() { - var o = new core.List<api.AppIcons>(); - o.add(buildAppIcons()); - o.add(buildAppIcons()); - return o; -} - -checkUnnamed1087(core.List<api.AppIcons> o) { - unittest.expect(o, unittest.hasLength(2)); - checkAppIcons(o[0]); - checkAppIcons(o[1]); -} - -buildUnnamed1088() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1088(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1089() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return 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')); -} - buildUnnamed1090() { var o = new core.List<core.String>(); o.add("foo"); @@ -573,6 +274,305 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterAboutImportFormats = 0; +buildAboutImportFormats() { + var o = new api.AboutImportFormats(); + buildCounterAboutImportFormats++; + if (buildCounterAboutImportFormats < 3) { + o.source = "foo"; + o.targets = buildUnnamed1091(); + } + buildCounterAboutImportFormats--; + return o; +} + +checkAboutImportFormats(api.AboutImportFormats o) { + buildCounterAboutImportFormats++; + if (buildCounterAboutImportFormats < 3) { + unittest.expect(o.source, unittest.equals('foo')); + checkUnnamed1091(o.targets); + } + buildCounterAboutImportFormats--; +} + +buildUnnamed1092() { + var o = new core.List<api.AboutImportFormats>(); + o.add(buildAboutImportFormats()); + o.add(buildAboutImportFormats()); + return o; +} + +checkUnnamed1092(core.List<api.AboutImportFormats> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAboutImportFormats(o[0]); + checkAboutImportFormats(o[1]); +} + +core.int buildCounterAboutMaxUploadSizes = 0; +buildAboutMaxUploadSizes() { + var o = new api.AboutMaxUploadSizes(); + buildCounterAboutMaxUploadSizes++; + if (buildCounterAboutMaxUploadSizes < 3) { + o.size = "foo"; + o.type = "foo"; + } + buildCounterAboutMaxUploadSizes--; + return o; +} + +checkAboutMaxUploadSizes(api.AboutMaxUploadSizes o) { + buildCounterAboutMaxUploadSizes++; + if (buildCounterAboutMaxUploadSizes < 3) { + unittest.expect(o.size, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterAboutMaxUploadSizes--; +} + +buildUnnamed1093() { + var o = new core.List<api.AboutMaxUploadSizes>(); + o.add(buildAboutMaxUploadSizes()); + o.add(buildAboutMaxUploadSizes()); + return o; +} + +checkUnnamed1093(core.List<api.AboutMaxUploadSizes> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAboutMaxUploadSizes(o[0]); + checkAboutMaxUploadSizes(o[1]); +} + +core.int buildCounterAboutQuotaBytesByService = 0; +buildAboutQuotaBytesByService() { + var o = new api.AboutQuotaBytesByService(); + buildCounterAboutQuotaBytesByService++; + if (buildCounterAboutQuotaBytesByService < 3) { + o.bytesUsed = "foo"; + o.serviceName = "foo"; + } + buildCounterAboutQuotaBytesByService--; + return o; +} + +checkAboutQuotaBytesByService(api.AboutQuotaBytesByService o) { + buildCounterAboutQuotaBytesByService++; + if (buildCounterAboutQuotaBytesByService < 3) { + unittest.expect(o.bytesUsed, unittest.equals('foo')); + unittest.expect(o.serviceName, unittest.equals('foo')); + } + buildCounterAboutQuotaBytesByService--; +} + +buildUnnamed1094() { + var o = new core.List<api.AboutQuotaBytesByService>(); + o.add(buildAboutQuotaBytesByService()); + o.add(buildAboutQuotaBytesByService()); + return o; +} + +checkUnnamed1094(core.List<api.AboutQuotaBytesByService> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAboutQuotaBytesByService(o[0]); + checkAboutQuotaBytesByService(o[1]); +} + +core.int buildCounterAboutTeamDriveThemes = 0; +buildAboutTeamDriveThemes() { + var o = new api.AboutTeamDriveThemes(); + buildCounterAboutTeamDriveThemes++; + if (buildCounterAboutTeamDriveThemes < 3) { + o.backgroundImageLink = "foo"; + o.colorRgb = "foo"; + o.id = "foo"; + } + buildCounterAboutTeamDriveThemes--; + return o; +} + +checkAboutTeamDriveThemes(api.AboutTeamDriveThemes o) { + buildCounterAboutTeamDriveThemes++; + if (buildCounterAboutTeamDriveThemes < 3) { + unittest.expect(o.backgroundImageLink, unittest.equals('foo')); + unittest.expect(o.colorRgb, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + } + buildCounterAboutTeamDriveThemes--; +} + +buildUnnamed1095() { + var o = new core.List<api.AboutTeamDriveThemes>(); + o.add(buildAboutTeamDriveThemes()); + o.add(buildAboutTeamDriveThemes()); + return o; +} + +checkUnnamed1095(core.List<api.AboutTeamDriveThemes> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAboutTeamDriveThemes(o[0]); + checkAboutTeamDriveThemes(o[1]); +} + +core.int buildCounterAbout = 0; +buildAbout() { + var o = new api.About(); + buildCounterAbout++; + if (buildCounterAbout < 3) { + o.additionalRoleInfo = buildUnnamed1085(); + o.canCreateDrives = true; + o.canCreateTeamDrives = true; + o.domainSharingPolicy = "foo"; + o.driveThemes = buildUnnamed1086(); + o.etag = "foo"; + o.exportFormats = buildUnnamed1088(); + o.features = buildUnnamed1089(); + o.folderColorPalette = buildUnnamed1090(); + o.importFormats = buildUnnamed1092(); + o.isCurrentAppInstalled = true; + o.kind = "foo"; + o.languageCode = "foo"; + o.largestChangeId = "foo"; + o.maxUploadSizes = buildUnnamed1093(); + o.name = "foo"; + o.permissionId = "foo"; + o.quotaBytesByService = buildUnnamed1094(); + o.quotaBytesTotal = "foo"; + o.quotaBytesUsed = "foo"; + o.quotaBytesUsedAggregate = "foo"; + o.quotaBytesUsedInTrash = "foo"; + o.quotaType = "foo"; + o.remainingChangeIds = "foo"; + o.rootFolderId = "foo"; + o.selfLink = "foo"; + o.teamDriveThemes = buildUnnamed1095(); + o.user = buildUser(); + } + buildCounterAbout--; + return o; +} + +checkAbout(api.About o) { + buildCounterAbout++; + if (buildCounterAbout < 3) { + checkUnnamed1085(o.additionalRoleInfo); + unittest.expect(o.canCreateDrives, unittest.isTrue); + unittest.expect(o.canCreateTeamDrives, unittest.isTrue); + unittest.expect(o.domainSharingPolicy, unittest.equals('foo')); + checkUnnamed1086(o.driveThemes); + unittest.expect(o.etag, unittest.equals('foo')); + checkUnnamed1088(o.exportFormats); + checkUnnamed1089(o.features); + checkUnnamed1090(o.folderColorPalette); + checkUnnamed1092(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')); + checkUnnamed1093(o.maxUploadSizes); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.permissionId, unittest.equals('foo')); + checkUnnamed1094(o.quotaBytesByService); + unittest.expect(o.quotaBytesTotal, unittest.equals('foo')); + unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); + unittest.expect(o.quotaBytesUsedAggregate, unittest.equals('foo')); + unittest.expect(o.quotaBytesUsedInTrash, unittest.equals('foo')); + unittest.expect(o.quotaType, unittest.equals('foo')); + unittest.expect(o.remainingChangeIds, unittest.equals('foo')); + unittest.expect(o.rootFolderId, unittest.equals('foo')); + unittest.expect(o.selfLink, unittest.equals('foo')); + checkUnnamed1095(o.teamDriveThemes); + checkUser(o.user); + } + buildCounterAbout--; +} + +core.int buildCounterAppIcons = 0; +buildAppIcons() { + var o = new api.AppIcons(); + buildCounterAppIcons++; + if (buildCounterAppIcons < 3) { + o.category = "foo"; + o.iconUrl = "foo"; + o.size = 42; + } + buildCounterAppIcons--; + return o; +} + +checkAppIcons(api.AppIcons o) { + buildCounterAppIcons++; + if (buildCounterAppIcons < 3) { + unittest.expect(o.category, unittest.equals('foo')); + unittest.expect(o.iconUrl, unittest.equals('foo')); + unittest.expect(o.size, unittest.equals(42)); + } + buildCounterAppIcons--; +} + +buildUnnamed1096() { + var o = new core.List<api.AppIcons>(); + o.add(buildAppIcons()); + o.add(buildAppIcons()); + return o; +} + +checkUnnamed1096(core.List<api.AppIcons> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAppIcons(o[0]); + checkAppIcons(o[1]); +} + +buildUnnamed1097() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1098() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1099() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1100() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + core.int buildCounterApp = 0; buildApp() { var o = new api.App(); @@ -582,7 +582,7 @@ o.createInFolderTemplate = "foo"; o.createUrl = "foo"; o.hasDriveWideScope = true; - o.icons = buildUnnamed1087(); + o.icons = buildUnnamed1096(); o.id = "foo"; o.installed = true; o.kind = "foo"; @@ -590,12 +590,12 @@ o.name = "foo"; o.objectType = "foo"; o.openUrlTemplate = "foo"; - o.primaryFileExtensions = buildUnnamed1088(); - o.primaryMimeTypes = buildUnnamed1089(); + o.primaryFileExtensions = buildUnnamed1097(); + o.primaryMimeTypes = buildUnnamed1098(); o.productId = "foo"; o.productUrl = "foo"; - o.secondaryFileExtensions = buildUnnamed1090(); - o.secondaryMimeTypes = buildUnnamed1091(); + o.secondaryFileExtensions = buildUnnamed1099(); + o.secondaryMimeTypes = buildUnnamed1100(); o.shortDescription = "foo"; o.supportsCreate = true; o.supportsImport = true; @@ -614,7 +614,7 @@ unittest.expect(o.createInFolderTemplate, unittest.equals('foo')); unittest.expect(o.createUrl, unittest.equals('foo')); unittest.expect(o.hasDriveWideScope, unittest.isTrue); - checkUnnamed1087(o.icons); + checkUnnamed1096(o.icons); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.installed, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -622,12 +622,12 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.objectType, unittest.equals('foo')); unittest.expect(o.openUrlTemplate, unittest.equals('foo')); - checkUnnamed1088(o.primaryFileExtensions); - checkUnnamed1089(o.primaryMimeTypes); + checkUnnamed1097(o.primaryFileExtensions); + checkUnnamed1098(o.primaryMimeTypes); unittest.expect(o.productId, unittest.equals('foo')); unittest.expect(o.productUrl, unittest.equals('foo')); - checkUnnamed1090(o.secondaryFileExtensions); - checkUnnamed1091(o.secondaryMimeTypes); + checkUnnamed1099(o.secondaryFileExtensions); + checkUnnamed1100(o.secondaryMimeTypes); unittest.expect(o.shortDescription, unittest.equals('foo')); unittest.expect(o.supportsCreate, unittest.isTrue); unittest.expect(o.supportsImport, unittest.isTrue); @@ -638,27 +638,27 @@ buildCounterApp--; } -buildUnnamed1092() { +buildUnnamed1101() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1092(core.List<core.String> o) { +checkUnnamed1101(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1093() { +buildUnnamed1102() { var o = new core.List<api.App>(); o.add(buildApp()); o.add(buildApp()); return o; } -checkUnnamed1093(core.List<api.App> o) { +checkUnnamed1102(core.List<api.App> o) { unittest.expect(o, unittest.hasLength(2)); checkApp(o[0]); checkApp(o[1]); @@ -669,9 +669,9 @@ var o = new api.AppList(); buildCounterAppList++; if (buildCounterAppList < 3) { - o.defaultAppIds = buildUnnamed1092(); + o.defaultAppIds = buildUnnamed1101(); o.etag = "foo"; - o.items = buildUnnamed1093(); + o.items = buildUnnamed1102(); o.kind = "foo"; o.selfLink = "foo"; } @@ -682,9 +682,9 @@ checkAppList(api.AppList o) { buildCounterAppList++; if (buildCounterAppList < 3) { - checkUnnamed1092(o.defaultAppIds); + checkUnnamed1101(o.defaultAppIds); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1093(o.items); + checkUnnamed1102(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -735,14 +735,14 @@ buildCounterChange--; } -buildUnnamed1094() { +buildUnnamed1103() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed1094(core.List<api.Change> o) { +checkUnnamed1103(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -754,7 +754,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { o.etag = "foo"; - o.items = buildUnnamed1094(); + o.items = buildUnnamed1103(); o.kind = "foo"; o.largestChangeId = "foo"; o.newStartPageToken = "foo"; @@ -770,7 +770,7 @@ buildCounterChangeList++; if (buildCounterChangeList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1094(o.items); + checkUnnamed1103(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.largestChangeId, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); @@ -781,14 +781,14 @@ buildCounterChangeList--; } -buildUnnamed1095() { +buildUnnamed1104() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1095(core.Map<core.String, core.String> o) { +checkUnnamed1104(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')); @@ -803,7 +803,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed1095(); + o.params = buildUnnamed1104(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -821,7 +821,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed1095(o.params); + checkUnnamed1104(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -831,14 +831,14 @@ buildCounterChannel--; } -buildUnnamed1096() { +buildUnnamed1105() { var o = new core.List<api.ChildReference>(); o.add(buildChildReference()); o.add(buildChildReference()); return o; } -checkUnnamed1096(core.List<api.ChildReference> o) { +checkUnnamed1105(core.List<api.ChildReference> o) { unittest.expect(o, unittest.hasLength(2)); checkChildReference(o[0]); checkChildReference(o[1]); @@ -850,7 +850,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { o.etag = "foo"; - o.items = buildUnnamed1096(); + o.items = buildUnnamed1105(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -864,7 +864,7 @@ buildCounterChildList++; if (buildCounterChildList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1096(o.items); + checkUnnamed1105(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -919,14 +919,14 @@ buildCounterCommentContext--; } -buildUnnamed1097() { +buildUnnamed1106() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed1097(core.List<api.CommentReply> o) { +checkUnnamed1106(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -949,7 +949,7 @@ o.htmlContent = "foo"; o.kind = "foo"; o.modifiedDate = core.DateTime.parse("2002-02-27T14:01:02"); - o.replies = buildUnnamed1097(); + o.replies = buildUnnamed1106(); o.selfLink = "foo"; o.status = "foo"; } @@ -974,21 +974,21 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1097(o.replies); + checkUnnamed1106(o.replies); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterComment--; } -buildUnnamed1098() { +buildUnnamed1107() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed1098(core.List<api.Comment> o) { +checkUnnamed1107(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -999,7 +999,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.items = buildUnnamed1098(); + o.items = buildUnnamed1107(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1012,7 +1012,7 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed1098(o.items); + checkUnnamed1107(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1058,14 +1058,14 @@ buildCounterCommentReply--; } -buildUnnamed1099() { +buildUnnamed1108() { var o = new core.List<api.CommentReply>(); o.add(buildCommentReply()); o.add(buildCommentReply()); return o; } -checkUnnamed1099(core.List<api.CommentReply> o) { +checkUnnamed1108(core.List<api.CommentReply> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentReply(o[0]); checkCommentReply(o[1]); @@ -1076,7 +1076,7 @@ var o = new api.CommentReplyList(); buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - o.items = buildUnnamed1099(); + o.items = buildUnnamed1108(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1089,7 +1089,7 @@ checkCommentReplyList(api.CommentReplyList o) { buildCounterCommentReplyList++; if (buildCounterCommentReplyList < 3) { - checkUnnamed1099(o.items); + checkUnnamed1108(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1098,6 +1098,34 @@ buildCounterCommentReplyList--; } +core.int buildCounterContentRestriction = 0; +buildContentRestriction() { + var o = new api.ContentRestriction(); + buildCounterContentRestriction++; + if (buildCounterContentRestriction < 3) { + o.readOnly = true; + o.reason = "foo"; + o.restrictingUser = buildUser(); + o.restrictionDate = core.DateTime.parse("2002-02-27T14:01:02"); + o.type = "foo"; + } + buildCounterContentRestriction--; + return o; +} + +checkContentRestriction(api.ContentRestriction o) { + buildCounterContentRestriction++; + if (buildCounterContentRestriction < 3) { + unittest.expect(o.readOnly, unittest.isTrue); + unittest.expect(o.reason, unittest.equals('foo')); + checkUser(o.restrictingUser); + unittest.expect(o.restrictionDate, + unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterContentRestriction--; +} + core.int buildCounterDriveBackgroundImageFile = 0; buildDriveBackgroundImageFile() { var o = new api.DriveBackgroundImageFile(); @@ -1242,14 +1270,14 @@ buildCounterDrive--; } -buildUnnamed1100() { +buildUnnamed1109() { var o = new core.List<api.Drive>(); o.add(buildDrive()); o.add(buildDrive()); return o; } -checkUnnamed1100(core.List<api.Drive> o) { +checkUnnamed1109(core.List<api.Drive> o) { unittest.expect(o, unittest.hasLength(2)); checkDrive(o[0]); checkDrive(o[1]); @@ -1260,7 +1288,7 @@ var o = new api.DriveList(); buildCounterDriveList++; if (buildCounterDriveList < 3) { - o.items = buildUnnamed1100(); + o.items = buildUnnamed1109(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1271,7 +1299,7 @@ checkDriveList(api.DriveList o) { buildCounterDriveList++; if (buildCounterDriveList < 3) { - checkUnnamed1100(o.items); + checkUnnamed1109(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1284,6 +1312,7 @@ buildCounterFileCapabilities++; if (buildCounterFileCapabilities < 3) { o.canAddChildren = true; + o.canAddFolderFromAnotherDrive = true; o.canAddMyDriveParent = true; o.canChangeCopyRequiresWriterPermission = true; o.canChangeRestrictedDownload = true; @@ -1295,6 +1324,7 @@ o.canEdit = true; o.canListChildren = true; o.canModifyContent = true; + o.canModifyContentRestriction = true; o.canMoveChildrenOutOfDrive = true; o.canMoveChildrenOutOfTeamDrive = true; o.canMoveChildrenWithinDrive = true; @@ -1324,6 +1354,7 @@ buildCounterFileCapabilities++; if (buildCounterFileCapabilities < 3) { unittest.expect(o.canAddChildren, unittest.isTrue); + unittest.expect(o.canAddFolderFromAnotherDrive, unittest.isTrue); unittest.expect(o.canAddMyDriveParent, unittest.isTrue); unittest.expect(o.canChangeCopyRequiresWriterPermission, unittest.isTrue); unittest.expect(o.canChangeRestrictedDownload, unittest.isTrue); @@ -1335,6 +1366,7 @@ unittest.expect(o.canEdit, unittest.isTrue); unittest.expect(o.canListChildren, unittest.isTrue); unittest.expect(o.canModifyContent, unittest.isTrue); + unittest.expect(o.canModifyContentRestriction, unittest.isTrue); unittest.expect(o.canMoveChildrenOutOfDrive, unittest.isTrue); unittest.expect(o.canMoveChildrenOutOfTeamDrive, unittest.isTrue); unittest.expect(o.canMoveChildrenWithinDrive, unittest.isTrue); @@ -1359,14 +1391,27 @@ buildCounterFileCapabilities--; } -buildUnnamed1101() { +buildUnnamed1110() { + var o = new core.List<api.ContentRestriction>(); + o.add(buildContentRestriction()); + o.add(buildContentRestriction()); + return o; +} + +checkUnnamed1110(core.List<api.ContentRestriction> o) { + unittest.expect(o, unittest.hasLength(2)); + checkContentRestriction(o[0]); + checkContentRestriction(o[1]); +} + +buildUnnamed1111() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1101(core.Map<core.String, core.String> o) { +checkUnnamed1111(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')); @@ -1502,92 +1547,92 @@ buildCounterFileLabels--; } -buildUnnamed1102() { +buildUnnamed1112() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1102(core.Map<core.String, core.String> o) { +checkUnnamed1112(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); } -buildUnnamed1103() { +buildUnnamed1113() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1103(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')); } -buildUnnamed1104() { +buildUnnamed1114() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed1104(core.List<api.User> o) { +checkUnnamed1114(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed1105() { +buildUnnamed1115() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed1105(core.List<api.ParentReference> o) { +checkUnnamed1115(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); } -buildUnnamed1106() { +buildUnnamed1116() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1106(core.List<core.String> o) { +checkUnnamed1116(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1107() { +buildUnnamed1117() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1107(core.List<api.Permission> o) { +checkUnnamed1117(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed1108() { +buildUnnamed1118() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1108(core.List<api.Property> o) { +checkUnnamed1118(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1614,14 +1659,14 @@ buildCounterFileShortcutDetails--; } -buildUnnamed1109() { +buildUnnamed1119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1109(core.List<core.String> o) { +checkUnnamed1119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1681,6 +1726,7 @@ o.canComment = true; o.canReadRevisions = true; o.capabilities = buildFileCapabilities(); + o.contentRestrictions = buildUnnamed1110(); o.copyRequiresWriterPermission = true; o.copyable = true; o.createdDate = core.DateTime.parse("2002-02-27T14:01:02"); @@ -1692,7 +1738,7 @@ o.embedLink = "foo"; o.etag = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed1101(); + o.exportLinks = buildUnnamed1111(); o.fileExtension = "foo"; o.fileSize = "foo"; o.folderColorRgb = "foo"; @@ -1715,15 +1761,15 @@ 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 = buildUnnamed1102(); + o.openWithLinks = buildUnnamed1112(); o.originalFilename = "foo"; o.ownedByMe = true; - o.ownerNames = buildUnnamed1103(); - o.owners = buildUnnamed1104(); - o.parents = buildUnnamed1105(); - o.permissionIds = buildUnnamed1106(); - o.permissions = buildUnnamed1107(); - o.properties = buildUnnamed1108(); + o.ownerNames = buildUnnamed1113(); + o.owners = buildUnnamed1114(); + o.parents = buildUnnamed1115(); + o.permissionIds = buildUnnamed1116(); + o.permissions = buildUnnamed1117(); + o.properties = buildUnnamed1118(); o.quotaBytesUsed = "foo"; o.selfLink = "foo"; o.shareable = true; @@ -1731,7 +1777,7 @@ o.sharedWithMeDate = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.shortcutDetails = buildFileShortcutDetails(); - o.spaces = buildUnnamed1109(); + o.spaces = buildUnnamed1119(); o.teamDriveId = "foo"; o.thumbnail = buildFileThumbnail(); o.thumbnailLink = "foo"; @@ -1758,6 +1804,7 @@ unittest.expect(o.canComment, unittest.isTrue); unittest.expect(o.canReadRevisions, unittest.isTrue); checkFileCapabilities(o.capabilities); + checkUnnamed1110(o.contentRestrictions); unittest.expect(o.copyRequiresWriterPermission, unittest.isTrue); unittest.expect(o.copyable, unittest.isTrue); unittest.expect(o.createdDate, @@ -1770,7 +1817,7 @@ unittest.expect(o.embedLink, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed1101(o.exportLinks); + checkUnnamed1111(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); @@ -1797,15 +1844,15 @@ unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.modifiedDate, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed1102(o.openWithLinks); + checkUnnamed1112(o.openWithLinks); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed1103(o.ownerNames); - checkUnnamed1104(o.owners); - checkUnnamed1105(o.parents); - checkUnnamed1106(o.permissionIds); - checkUnnamed1107(o.permissions); - checkUnnamed1108(o.properties); + checkUnnamed1113(o.ownerNames); + checkUnnamed1114(o.owners); + checkUnnamed1115(o.parents); + checkUnnamed1116(o.permissionIds); + checkUnnamed1117(o.permissions); + checkUnnamed1118(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.shareable, unittest.isTrue); @@ -1814,7 +1861,7 @@ unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkUser(o.sharingUser); checkFileShortcutDetails(o.shortcutDetails); - checkUnnamed1109(o.spaces); + checkUnnamed1119(o.spaces); unittest.expect(o.teamDriveId, unittest.equals('foo')); checkFileThumbnail(o.thumbnail); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -1833,14 +1880,14 @@ buildCounterFile--; } -buildUnnamed1110() { +buildUnnamed1120() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1110(core.List<api.File> o) { +checkUnnamed1120(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1853,7 +1900,7 @@ if (buildCounterFileList < 3) { o.etag = "foo"; o.incompleteSearch = true; - o.items = buildUnnamed1110(); + o.items = buildUnnamed1120(); o.kind = "foo"; o.nextLink = "foo"; o.nextPageToken = "foo"; @@ -1868,7 +1915,7 @@ if (buildCounterFileList < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.incompleteSearch, unittest.isTrue); - checkUnnamed1110(o.items); + checkUnnamed1120(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextLink, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1877,14 +1924,14 @@ buildCounterFileList--; } -buildUnnamed1111() { +buildUnnamed1121() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1111(core.List<core.String> o) { +checkUnnamed1121(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1895,7 +1942,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed1111(); + o.ids = buildUnnamed1121(); o.kind = "foo"; o.space = "foo"; } @@ -1906,21 +1953,21 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed1111(o.ids); + checkUnnamed1121(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } buildCounterGeneratedIds--; } -buildUnnamed1112() { +buildUnnamed1122() { var o = new core.List<api.ParentReference>(); o.add(buildParentReference()); o.add(buildParentReference()); return o; } -checkUnnamed1112(core.List<api.ParentReference> o) { +checkUnnamed1122(core.List<api.ParentReference> o) { unittest.expect(o, unittest.hasLength(2)); checkParentReference(o[0]); checkParentReference(o[1]); @@ -1932,7 +1979,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { o.etag = "foo"; - o.items = buildUnnamed1112(); + o.items = buildUnnamed1122(); o.kind = "foo"; o.selfLink = "foo"; } @@ -1944,7 +1991,7 @@ buildCounterParentList++; if (buildCounterParentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1112(o.items); + checkUnnamed1122(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } @@ -1978,27 +2025,27 @@ buildCounterParentReference--; } -buildUnnamed1113() { +buildUnnamed1123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1113(core.List<core.String> o) { +checkUnnamed1123(core.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() { +buildUnnamed1124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1114(core.List<core.String> o) { +checkUnnamed1124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2009,7 +2056,7 @@ var o = new api.PermissionPermissionDetails(); buildCounterPermissionPermissionDetails++; if (buildCounterPermissionPermissionDetails < 3) { - o.additionalRoles = buildUnnamed1114(); + o.additionalRoles = buildUnnamed1124(); o.inherited = true; o.inheritedFrom = "foo"; o.permissionType = "foo"; @@ -2022,7 +2069,7 @@ checkPermissionPermissionDetails(api.PermissionPermissionDetails o) { buildCounterPermissionPermissionDetails++; if (buildCounterPermissionPermissionDetails < 3) { - checkUnnamed1114(o.additionalRoles); + checkUnnamed1124(o.additionalRoles); unittest.expect(o.inherited, unittest.isTrue); unittest.expect(o.inheritedFrom, unittest.equals('foo')); unittest.expect(o.permissionType, unittest.equals('foo')); @@ -2031,27 +2078,27 @@ buildCounterPermissionPermissionDetails--; } -buildUnnamed1115() { +buildUnnamed1125() { var o = new core.List<api.PermissionPermissionDetails>(); o.add(buildPermissionPermissionDetails()); o.add(buildPermissionPermissionDetails()); return o; } -checkUnnamed1115(core.List<api.PermissionPermissionDetails> o) { +checkUnnamed1125(core.List<api.PermissionPermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionPermissionDetails(o[0]); checkPermissionPermissionDetails(o[1]); } -buildUnnamed1116() { +buildUnnamed1126() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1116(core.List<core.String> o) { +checkUnnamed1126(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2062,7 +2109,7 @@ var o = new api.PermissionTeamDrivePermissionDetails(); buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - o.additionalRoles = buildUnnamed1116(); + o.additionalRoles = buildUnnamed1126(); o.inherited = true; o.inheritedFrom = "foo"; o.role = "foo"; @@ -2076,7 +2123,7 @@ api.PermissionTeamDrivePermissionDetails o) { buildCounterPermissionTeamDrivePermissionDetails++; if (buildCounterPermissionTeamDrivePermissionDetails < 3) { - checkUnnamed1116(o.additionalRoles); + checkUnnamed1126(o.additionalRoles); unittest.expect(o.inherited, unittest.isTrue); unittest.expect(o.inheritedFrom, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); @@ -2085,14 +2132,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed1117() { +buildUnnamed1127() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed1117(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed1127(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -2103,7 +2150,7 @@ var o = new api.Permission(); buildCounterPermission++; if (buildCounterPermission < 3) { - o.additionalRoles = buildUnnamed1113(); + o.additionalRoles = buildUnnamed1123(); o.authKey = "foo"; o.deleted = true; o.domain = "foo"; @@ -2113,13 +2160,14 @@ o.id = "foo"; o.kind = "foo"; o.name = "foo"; - o.permissionDetails = buildUnnamed1115(); + o.permissionDetails = buildUnnamed1125(); o.photoLink = "foo"; o.role = "foo"; o.selfLink = "foo"; - o.teamDrivePermissionDetails = buildUnnamed1117(); + o.teamDrivePermissionDetails = buildUnnamed1127(); o.type = "foo"; o.value = "foo"; + o.view = "foo"; o.withLink = true; } buildCounterPermission--; @@ -2129,7 +2177,7 @@ checkPermission(api.Permission o) { buildCounterPermission++; if (buildCounterPermission < 3) { - checkUnnamed1113(o.additionalRoles); + checkUnnamed1123(o.additionalRoles); unittest.expect(o.authKey, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.domain, unittest.equals('foo')); @@ -2140,13 +2188,14 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1115(o.permissionDetails); + checkUnnamed1125(o.permissionDetails); unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); - checkUnnamed1117(o.teamDrivePermissionDetails); + checkUnnamed1127(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); + unittest.expect(o.view, unittest.equals('foo')); unittest.expect(o.withLink, unittest.isTrue); } buildCounterPermission--; @@ -2173,14 +2222,14 @@ buildCounterPermissionId--; } -buildUnnamed1118() { +buildUnnamed1128() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1118(core.List<api.Permission> o) { +checkUnnamed1128(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -2192,7 +2241,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { o.etag = "foo"; - o.items = buildUnnamed1118(); + o.items = buildUnnamed1128(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2205,7 +2254,7 @@ buildCounterPermissionList++; if (buildCounterPermissionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1118(o.items); + checkUnnamed1128(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2242,14 +2291,14 @@ buildCounterProperty--; } -buildUnnamed1119() { +buildUnnamed1129() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed1119(core.List<api.Property> o) { +checkUnnamed1129(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -2261,7 +2310,7 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { o.etag = "foo"; - o.items = buildUnnamed1119(); + o.items = buildUnnamed1129(); o.kind = "foo"; o.selfLink = "foo"; } @@ -2273,21 +2322,21 @@ buildCounterPropertyList++; if (buildCounterPropertyList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1119(o.items); + checkUnnamed1129(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); } buildCounterPropertyList--; } -buildUnnamed1120() { +buildUnnamed1130() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1120(core.Map<core.String, core.String> o) { +checkUnnamed1130(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')); @@ -2300,7 +2349,7 @@ if (buildCounterRevision < 3) { o.downloadUrl = "foo"; o.etag = "foo"; - o.exportLinks = buildUnnamed1120(); + o.exportLinks = buildUnnamed1130(); o.fileSize = "foo"; o.id = "foo"; o.kind = "foo"; @@ -2326,7 +2375,7 @@ if (buildCounterRevision < 3) { unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1120(o.exportLinks); + checkUnnamed1130(o.exportLinks); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); @@ -2347,14 +2396,14 @@ buildCounterRevision--; } -buildUnnamed1121() { +buildUnnamed1131() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed1121(core.List<api.Revision> o) { +checkUnnamed1131(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -2366,7 +2415,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { o.etag = "foo"; - o.items = buildUnnamed1121(); + o.items = buildUnnamed1131(); o.kind = "foo"; o.nextPageToken = "foo"; o.selfLink = "foo"; @@ -2379,7 +2428,7 @@ buildCounterRevisionList++; if (buildCounterRevisionList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1121(o.items); + checkUnnamed1131(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); @@ -2552,14 +2601,14 @@ buildCounterTeamDrive--; } -buildUnnamed1122() { +buildUnnamed1132() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed1122(core.List<api.TeamDrive> o) { +checkUnnamed1132(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -2570,7 +2619,7 @@ var o = new api.TeamDriveList(); buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - o.items = buildUnnamed1122(); + o.items = buildUnnamed1132(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2581,7 +2630,7 @@ checkTeamDriveList(api.TeamDriveList o) { buildCounterTeamDriveList++; if (buildCounterTeamDriveList < 3) { - checkUnnamed1122(o.items); + checkUnnamed1132(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -2821,6 +2870,14 @@ }); }); + unittest.group("obj-schema-ContentRestriction", () { + unittest.test("to-json--from-json", () { + var o = buildContentRestriction(); + var od = new api.ContentRestriction.fromJson(o.toJson()); + checkContentRestriction(od); + }); + }); + unittest.group("obj-schema-DriveBackgroundImageFile", () { unittest.test("to-json--from-json", () { var o = buildDriveBackgroundImageFile(); @@ -3442,6 +3499,7 @@ var arg_includeCorpusRemovals = true; var arg_includeDeleted = true; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeSubscribed = true; var arg_includeTeamDriveItems = true; var arg_maxResults = 42; @@ -3493,6 +3551,8 @@ unittest.equals("$arg_includeDeleted")); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeSubscribed"].first, unittest.equals("$arg_includeSubscribed")); unittest.expect(queryMap["includeTeamDriveItems"].first, @@ -3524,6 +3584,7 @@ includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, @@ -3547,6 +3608,7 @@ var arg_includeCorpusRemovals = true; var arg_includeDeleted = true; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeSubscribed = true; var arg_includeTeamDriveItems = true; var arg_maxResults = 42; @@ -3601,6 +3663,8 @@ unittest.equals("$arg_includeDeleted")); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeSubscribed"].first, unittest.equals("$arg_includeSubscribed")); unittest.expect(queryMap["includeTeamDriveItems"].first, @@ -3632,6 +3696,7 @@ includeCorpusRemovals: arg_includeCorpusRemovals, includeDeleted: arg_includeDeleted, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeSubscribed: arg_includeSubscribed, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, @@ -4860,6 +4925,7 @@ var arg_fileId = "foo"; var arg_convert = true; var arg_enforceSingleParent = true; + var arg_includePermissionsForView = "foo"; var arg_ocr = true; var arg_ocrLanguage = "foo"; var arg_pinned = true; @@ -4918,6 +4984,8 @@ queryMap["convert"].first, unittest.equals("$arg_convert")); unittest.expect(queryMap["enforceSingleParent"].first, unittest.equals("$arg_enforceSingleParent")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr")); unittest.expect( queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLanguage)); @@ -4945,6 +5013,7 @@ .copy(arg_request, arg_fileId, convert: arg_convert, enforceSingleParent: arg_enforceSingleParent, + includePermissionsForView: arg_includePermissionsForView, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, @@ -4963,6 +5032,7 @@ var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; + var arg_enforceSingleParent = true; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -5002,6 +5072,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["enforceSingleParent"].first, + unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -5016,6 +5088,7 @@ }), true); res .delete(arg_fileId, + enforceSingleParent: arg_enforceSingleParent, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -5025,6 +5098,7 @@ unittest.test("method--emptyTrash", () { var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; + var arg_enforceSingleParent = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5059,6 +5133,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["enforceSingleParent"].first, + unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5067,7 +5143,11 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.emptyTrash($fields: arg_$fields).then(unittest.expectAsync1((_) {})); + res + .emptyTrash( + enforceSingleParent: arg_enforceSingleParent, + $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); }); unittest.test("method--export", () { @@ -5204,6 +5284,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; + var arg_includePermissionsForView = "foo"; var arg_projection = "foo"; var arg_revisionId = "foo"; var arg_supportsAllDrives = true; @@ -5248,6 +5329,8 @@ } unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); unittest.expect( @@ -5269,6 +5352,7 @@ res .get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, + includePermissionsForView: arg_includePermissionsForView, projection: arg_projection, revisionId: arg_revisionId, supportsAllDrives: arg_supportsAllDrives, @@ -5289,6 +5373,7 @@ var arg_request = buildFile(); var arg_convert = true; var arg_enforceSingleParent = true; + var arg_includePermissionsForView = "foo"; var arg_ocr = true; var arg_ocrLanguage = "foo"; var arg_pinned = true; @@ -5339,6 +5424,8 @@ queryMap["convert"].first, unittest.equals("$arg_convert")); unittest.expect(queryMap["enforceSingleParent"].first, unittest.equals("$arg_enforceSingleParent")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["ocr"].first, unittest.equals("$arg_ocr")); unittest.expect( queryMap["ocrLanguage"].first, unittest.equals(arg_ocrLanguage)); @@ -5368,6 +5455,7 @@ .insert(arg_request, convert: arg_convert, enforceSingleParent: arg_enforceSingleParent, + includePermissionsForView: arg_includePermissionsForView, ocr: arg_ocr, ocrLanguage: arg_ocrLanguage, pinned: arg_pinned, @@ -5390,6 +5478,7 @@ var arg_corpus = "foo"; var arg_driveId = "foo"; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeTeamDriveItems = true; var arg_maxResults = 42; var arg_orderBy = "foo"; @@ -5441,6 +5530,8 @@ queryMap["driveId"].first, unittest.equals(arg_driveId)); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeTeamDriveItems"].first, unittest.equals("$arg_includeTeamDriveItems")); unittest.expect(core.int.parse(queryMap["maxResults"].first), @@ -5473,6 +5564,7 @@ corpus: arg_corpus, driveId: arg_driveId, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeTeamDriveItems: arg_includeTeamDriveItems, maxResults: arg_maxResults, orderBy: arg_orderBy, @@ -5497,6 +5589,7 @@ var arg_addParents = "foo"; var arg_convert = true; var arg_enforceSingleParent = true; + var arg_includePermissionsForView = "foo"; var arg_modifiedDateBehavior = "foo"; var arg_newRevision = true; var arg_ocr = true; @@ -5556,6 +5649,8 @@ queryMap["convert"].first, unittest.equals("$arg_convert")); unittest.expect(queryMap["enforceSingleParent"].first, unittest.equals("$arg_enforceSingleParent")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["modifiedDateBehavior"].first, unittest.equals(arg_modifiedDateBehavior)); unittest.expect( @@ -5594,6 +5689,7 @@ addParents: arg_addParents, convert: arg_convert, enforceSingleParent: arg_enforceSingleParent, + includePermissionsForView: arg_includePermissionsForView, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, @@ -5617,6 +5713,7 @@ var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; + var arg_includePermissionsForView = "foo"; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -5662,6 +5759,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -5676,6 +5775,7 @@ }), true); res .touch(arg_fileId, + includePermissionsForView: arg_includePermissionsForView, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -5688,6 +5788,7 @@ var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; + var arg_includePermissionsForView = "foo"; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -5733,6 +5834,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -5747,6 +5850,7 @@ }), true); res .trash(arg_fileId, + includePermissionsForView: arg_includePermissionsForView, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -5759,6 +5863,7 @@ var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; + var arg_includePermissionsForView = "foo"; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -5804,6 +5909,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -5818,6 +5925,7 @@ }), true); res .untrash(arg_fileId, + includePermissionsForView: arg_includePermissionsForView, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -5837,6 +5945,7 @@ var arg_addParents = "foo"; var arg_convert = true; var arg_enforceSingleParent = true; + var arg_includePermissionsForView = "foo"; var arg_modifiedDateBehavior = "foo"; var arg_newRevision = true; var arg_ocr = true; @@ -5896,6 +6005,8 @@ queryMap["convert"].first, unittest.equals("$arg_convert")); unittest.expect(queryMap["enforceSingleParent"].first, unittest.equals("$arg_enforceSingleParent")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["modifiedDateBehavior"].first, unittest.equals(arg_modifiedDateBehavior)); unittest.expect( @@ -5934,6 +6045,7 @@ addParents: arg_addParents, convert: arg_convert, enforceSingleParent: arg_enforceSingleParent, + includePermissionsForView: arg_includePermissionsForView, modifiedDateBehavior: arg_modifiedDateBehavior, newRevision: arg_newRevision, ocr: arg_ocr, @@ -5962,6 +6074,7 @@ var arg_request = buildChannel(); var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; + var arg_includePermissionsForView = "foo"; var arg_projection = "foo"; var arg_revisionId = "foo"; var arg_supportsAllDrives = true; @@ -6015,6 +6128,8 @@ } unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect( queryMap["projection"].first, unittest.equals(arg_projection)); unittest.expect( @@ -6036,6 +6151,7 @@ res .watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, + includePermissionsForView: arg_includePermissionsForView, projection: arg_projection, revisionId: arg_revisionId, supportsAllDrives: arg_supportsAllDrives, @@ -6638,6 +6754,7 @@ var mock = new HttpServerMock(); api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; var arg_fileId = "foo"; + var arg_includePermissionsForView = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_supportsAllDrives = true; @@ -6686,6 +6803,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -6706,6 +6825,7 @@ }), true); res .list(arg_fileId, + includePermissionsForView: arg_includePermissionsForView, maxResults: arg_maxResults, pageToken: arg_pageToken, supportsAllDrives: arg_supportsAllDrives,
diff --git a/generated/googleapis/test/drive/v3_test.dart b/generated/googleapis/test/drive/v3_test.dart index 20ed91c..04a77ef 100644 --- a/generated/googleapis/test/drive/v3_test.dart +++ b/generated/googleapis/test/drive/v3_test.dart
@@ -73,92 +73,92 @@ buildCounterAboutDriveThemes--; } -buildUnnamed4070() { +buildUnnamed4305() { var o = new core.List<api.AboutDriveThemes>(); o.add(buildAboutDriveThemes()); o.add(buildAboutDriveThemes()); return o; } -checkUnnamed4070(core.List<api.AboutDriveThemes> o) { +checkUnnamed4305(core.List<api.AboutDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutDriveThemes(o[0]); checkAboutDriveThemes(o[1]); } -buildUnnamed4071() { +buildUnnamed4306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4071(core.List<core.String> o) { +checkUnnamed4306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4072() { +buildUnnamed4307() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed4071(); - o["y"] = buildUnnamed4071(); + o["x"] = buildUnnamed4306(); + o["y"] = buildUnnamed4306(); return o; } -checkUnnamed4072(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed4307(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4071(o["x"]); - checkUnnamed4071(o["y"]); + checkUnnamed4306(o["x"]); + checkUnnamed4306(o["y"]); } -buildUnnamed4073() { +buildUnnamed4308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4073(core.List<core.String> o) { +checkUnnamed4308(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4074() { +buildUnnamed4309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4074(core.List<core.String> o) { +checkUnnamed4309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4075() { +buildUnnamed4310() { var o = new core.Map<core.String, core.List<core.String>>(); - o["x"] = buildUnnamed4074(); - o["y"] = buildUnnamed4074(); + o["x"] = buildUnnamed4309(); + o["y"] = buildUnnamed4309(); return o; } -checkUnnamed4075(core.Map<core.String, core.List<core.String>> o) { +checkUnnamed4310(core.Map<core.String, core.List<core.String>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4074(o["x"]); - checkUnnamed4074(o["y"]); + checkUnnamed4309(o["x"]); + checkUnnamed4309(o["y"]); } -buildUnnamed4076() { +buildUnnamed4311() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4076(core.Map<core.String, core.String> o) { +checkUnnamed4311(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')); @@ -212,14 +212,14 @@ buildCounterAboutTeamDriveThemes--; } -buildUnnamed4077() { +buildUnnamed4312() { var o = new core.List<api.AboutTeamDriveThemes>(); o.add(buildAboutTeamDriveThemes()); o.add(buildAboutTeamDriveThemes()); return o; } -checkUnnamed4077(core.List<api.AboutTeamDriveThemes> o) { +checkUnnamed4312(core.List<api.AboutTeamDriveThemes> o) { unittest.expect(o, unittest.hasLength(2)); checkAboutTeamDriveThemes(o[0]); checkAboutTeamDriveThemes(o[1]); @@ -233,15 +233,15 @@ o.appInstalled = true; o.canCreateDrives = true; o.canCreateTeamDrives = true; - o.driveThemes = buildUnnamed4070(); - o.exportFormats = buildUnnamed4072(); - o.folderColorPalette = buildUnnamed4073(); - o.importFormats = buildUnnamed4075(); + o.driveThemes = buildUnnamed4305(); + o.exportFormats = buildUnnamed4307(); + o.folderColorPalette = buildUnnamed4308(); + o.importFormats = buildUnnamed4310(); o.kind = "foo"; - o.maxImportSizes = buildUnnamed4076(); + o.maxImportSizes = buildUnnamed4311(); o.maxUploadSize = "foo"; o.storageQuota = buildAboutStorageQuota(); - o.teamDriveThemes = buildUnnamed4077(); + o.teamDriveThemes = buildUnnamed4312(); o.user = buildUser(); } buildCounterAbout--; @@ -254,15 +254,15 @@ unittest.expect(o.appInstalled, unittest.isTrue); unittest.expect(o.canCreateDrives, unittest.isTrue); unittest.expect(o.canCreateTeamDrives, unittest.isTrue); - checkUnnamed4070(o.driveThemes); - checkUnnamed4072(o.exportFormats); - checkUnnamed4073(o.folderColorPalette); - checkUnnamed4075(o.importFormats); + checkUnnamed4305(o.driveThemes); + checkUnnamed4307(o.exportFormats); + checkUnnamed4308(o.folderColorPalette); + checkUnnamed4310(o.importFormats); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4076(o.maxImportSizes); + checkUnnamed4311(o.maxImportSizes); unittest.expect(o.maxUploadSize, unittest.equals('foo')); checkAboutStorageQuota(o.storageQuota); - checkUnnamed4077(o.teamDriveThemes); + checkUnnamed4312(o.teamDriveThemes); checkUser(o.user); } buildCounterAbout--; @@ -308,14 +308,14 @@ buildCounterChange--; } -buildUnnamed4078() { +buildUnnamed4313() { var o = new core.List<api.Change>(); o.add(buildChange()); o.add(buildChange()); return o; } -checkUnnamed4078(core.List<api.Change> o) { +checkUnnamed4313(core.List<api.Change> o) { unittest.expect(o, unittest.hasLength(2)); checkChange(o[0]); checkChange(o[1]); @@ -326,7 +326,7 @@ var o = new api.ChangeList(); buildCounterChangeList++; if (buildCounterChangeList < 3) { - o.changes = buildUnnamed4078(); + o.changes = buildUnnamed4313(); o.kind = "foo"; o.newStartPageToken = "foo"; o.nextPageToken = "foo"; @@ -338,7 +338,7 @@ checkChangeList(api.ChangeList o) { buildCounterChangeList++; if (buildCounterChangeList < 3) { - checkUnnamed4078(o.changes); + checkUnnamed4313(o.changes); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.newStartPageToken, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -346,14 +346,14 @@ buildCounterChangeList--; } -buildUnnamed4079() { +buildUnnamed4314() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4079(core.Map<core.String, core.String> o) { +checkUnnamed4314(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')); @@ -368,7 +368,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed4079(); + o.params = buildUnnamed4314(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -386,7 +386,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4079(o.params); + checkUnnamed4314(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -417,14 +417,14 @@ buildCounterCommentQuotedFileContent--; } -buildUnnamed4080() { +buildUnnamed4315() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed4080(core.List<api.Reply> o) { +checkUnnamed4315(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -445,7 +445,7 @@ o.kind = "foo"; o.modifiedTime = core.DateTime.parse("2002-02-27T14:01:02"); o.quotedFileContent = buildCommentQuotedFileContent(); - o.replies = buildUnnamed4080(); + o.replies = buildUnnamed4315(); o.resolved = true; } buildCounterComment--; @@ -467,20 +467,20 @@ unittest.expect(o.modifiedTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkCommentQuotedFileContent(o.quotedFileContent); - checkUnnamed4080(o.replies); + checkUnnamed4315(o.replies); unittest.expect(o.resolved, unittest.isTrue); } buildCounterComment--; } -buildUnnamed4081() { +buildUnnamed4316() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed4081(core.List<api.Comment> o) { +checkUnnamed4316(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -491,7 +491,7 @@ var o = new api.CommentList(); buildCounterCommentList++; if (buildCounterCommentList < 3) { - o.comments = buildUnnamed4081(); + o.comments = buildUnnamed4316(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -502,13 +502,41 @@ checkCommentList(api.CommentList o) { buildCounterCommentList++; if (buildCounterCommentList < 3) { - checkUnnamed4081(o.comments); + checkUnnamed4316(o.comments); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCommentList--; } +core.int buildCounterContentRestriction = 0; +buildContentRestriction() { + var o = new api.ContentRestriction(); + buildCounterContentRestriction++; + if (buildCounterContentRestriction < 3) { + o.readOnly = true; + o.reason = "foo"; + o.restrictingUser = buildUser(); + o.restrictionTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.type = "foo"; + } + buildCounterContentRestriction--; + return o; +} + +checkContentRestriction(api.ContentRestriction o) { + buildCounterContentRestriction++; + if (buildCounterContentRestriction < 3) { + unittest.expect(o.readOnly, unittest.isTrue); + unittest.expect(o.reason, unittest.equals('foo')); + checkUser(o.restrictingUser); + unittest.expect(o.restrictionTime, + unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterContentRestriction--; +} + core.int buildCounterDriveBackgroundImageFile = 0; buildDriveBackgroundImageFile() { var o = new api.DriveBackgroundImageFile(); @@ -653,14 +681,14 @@ buildCounterDrive--; } -buildUnnamed4082() { +buildUnnamed4317() { var o = new core.List<api.Drive>(); o.add(buildDrive()); o.add(buildDrive()); return o; } -checkUnnamed4082(core.List<api.Drive> o) { +checkUnnamed4317(core.List<api.Drive> o) { unittest.expect(o, unittest.hasLength(2)); checkDrive(o[0]); checkDrive(o[1]); @@ -671,7 +699,7 @@ var o = new api.DriveList(); buildCounterDriveList++; if (buildCounterDriveList < 3) { - o.drives = buildUnnamed4082(); + o.drives = buildUnnamed4317(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -682,21 +710,21 @@ checkDriveList(api.DriveList o) { buildCounterDriveList++; if (buildCounterDriveList < 3) { - checkUnnamed4082(o.drives); + checkUnnamed4317(o.drives); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterDriveList--; } -buildUnnamed4083() { +buildUnnamed4318() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4083(core.Map<core.String, core.String> o) { +checkUnnamed4318(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')); @@ -708,6 +736,7 @@ buildCounterFileCapabilities++; if (buildCounterFileCapabilities < 3) { o.canAddChildren = true; + o.canAddFolderFromAnotherDrive = true; o.canAddMyDriveParent = true; o.canChangeCopyRequiresWriterPermission = true; o.canChangeViewersCanCopyContent = true; @@ -719,6 +748,7 @@ o.canEdit = true; o.canListChildren = true; o.canModifyContent = true; + o.canModifyContentRestriction = true; o.canMoveChildrenOutOfDrive = true; o.canMoveChildrenOutOfTeamDrive = true; o.canMoveChildrenWithinDrive = true; @@ -748,6 +778,7 @@ buildCounterFileCapabilities++; if (buildCounterFileCapabilities < 3) { unittest.expect(o.canAddChildren, unittest.isTrue); + unittest.expect(o.canAddFolderFromAnotherDrive, unittest.isTrue); unittest.expect(o.canAddMyDriveParent, unittest.isTrue); unittest.expect(o.canChangeCopyRequiresWriterPermission, unittest.isTrue); unittest.expect(o.canChangeViewersCanCopyContent, unittest.isTrue); @@ -759,6 +790,7 @@ unittest.expect(o.canEdit, unittest.isTrue); unittest.expect(o.canListChildren, unittest.isTrue); unittest.expect(o.canModifyContent, unittest.isTrue); + unittest.expect(o.canModifyContentRestriction, unittest.isTrue); unittest.expect(o.canMoveChildrenOutOfDrive, unittest.isTrue); unittest.expect(o.canMoveChildrenOutOfTeamDrive, unittest.isTrue); unittest.expect(o.canMoveChildrenWithinDrive, unittest.isTrue); @@ -825,14 +857,27 @@ buildCounterFileContentHints--; } -buildUnnamed4084() { +buildUnnamed4319() { + var o = new core.List<api.ContentRestriction>(); + o.add(buildContentRestriction()); + o.add(buildContentRestriction()); + return o; +} + +checkUnnamed4319(core.List<api.ContentRestriction> o) { + unittest.expect(o, unittest.hasLength(2)); + checkContentRestriction(o[0]); + checkContentRestriction(o[1]); +} + +buildUnnamed4320() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4084(core.Map<core.String, core.String> o) { +checkUnnamed4320(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')); @@ -920,66 +965,66 @@ buildCounterFileImageMediaMetadata--; } -buildUnnamed4085() { +buildUnnamed4321() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed4085(core.List<api.User> o) { +checkUnnamed4321(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); } -buildUnnamed4086() { +buildUnnamed4322() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4086(core.List<core.String> o) { +checkUnnamed4322(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4087() { +buildUnnamed4323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4087(core.List<core.String> o) { +checkUnnamed4323(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4088() { +buildUnnamed4324() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed4088(core.List<api.Permission> o) { +checkUnnamed4324(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed4089() { +buildUnnamed4325() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4089(core.Map<core.String, core.String> o) { +checkUnnamed4325(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')); @@ -1006,14 +1051,14 @@ buildCounterFileShortcutDetails--; } -buildUnnamed4090() { +buildUnnamed4326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4090(core.List<core.String> o) { +checkUnnamed4326(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1047,15 +1092,16 @@ var o = new api.File(); buildCounterFile++; if (buildCounterFile < 3) { - o.appProperties = buildUnnamed4083(); + o.appProperties = buildUnnamed4318(); o.capabilities = buildFileCapabilities(); o.contentHints = buildFileContentHints(); + o.contentRestrictions = buildUnnamed4319(); o.copyRequiresWriterPermission = true; o.createdTime = core.DateTime.parse("2002-02-27T14:01:02"); o.description = "foo"; o.driveId = "foo"; o.explicitlyTrashed = true; - o.exportLinks = buildUnnamed4084(); + o.exportLinks = buildUnnamed4320(); o.fileExtension = "foo"; o.folderColorRgb = "foo"; o.fullFileExtension = "foo"; @@ -1076,18 +1122,18 @@ o.name = "foo"; o.originalFilename = "foo"; o.ownedByMe = true; - o.owners = buildUnnamed4085(); - o.parents = buildUnnamed4086(); - o.permissionIds = buildUnnamed4087(); - o.permissions = buildUnnamed4088(); - o.properties = buildUnnamed4089(); + o.owners = buildUnnamed4321(); + o.parents = buildUnnamed4322(); + o.permissionIds = buildUnnamed4323(); + o.permissions = buildUnnamed4324(); + o.properties = buildUnnamed4325(); o.quotaBytesUsed = "foo"; o.shared = true; o.sharedWithMeTime = core.DateTime.parse("2002-02-27T14:01:02"); o.sharingUser = buildUser(); o.shortcutDetails = buildFileShortcutDetails(); o.size = "foo"; - o.spaces = buildUnnamed4090(); + o.spaces = buildUnnamed4326(); o.starred = true; o.teamDriveId = "foo"; o.thumbnailLink = "foo"; @@ -1111,16 +1157,17 @@ checkFile(api.File o) { buildCounterFile++; if (buildCounterFile < 3) { - checkUnnamed4083(o.appProperties); + checkUnnamed4318(o.appProperties); checkFileCapabilities(o.capabilities); checkFileContentHints(o.contentHints); + checkUnnamed4319(o.contentRestrictions); unittest.expect(o.copyRequiresWriterPermission, unittest.isTrue); unittest.expect(o.createdTime, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.driveId, unittest.equals('foo')); unittest.expect(o.explicitlyTrashed, unittest.isTrue); - checkUnnamed4084(o.exportLinks); + checkUnnamed4320(o.exportLinks); unittest.expect(o.fileExtension, unittest.equals('foo')); unittest.expect(o.folderColorRgb, unittest.equals('foo')); unittest.expect(o.fullFileExtension, unittest.equals('foo')); @@ -1143,11 +1190,11 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.ownedByMe, unittest.isTrue); - checkUnnamed4085(o.owners); - checkUnnamed4086(o.parents); - checkUnnamed4087(o.permissionIds); - checkUnnamed4088(o.permissions); - checkUnnamed4089(o.properties); + checkUnnamed4321(o.owners); + checkUnnamed4322(o.parents); + checkUnnamed4323(o.permissionIds); + checkUnnamed4324(o.permissions); + checkUnnamed4325(o.properties); unittest.expect(o.quotaBytesUsed, unittest.equals('foo')); unittest.expect(o.shared, unittest.isTrue); unittest.expect(o.sharedWithMeTime, @@ -1155,7 +1202,7 @@ checkUser(o.sharingUser); checkFileShortcutDetails(o.shortcutDetails); unittest.expect(o.size, unittest.equals('foo')); - checkUnnamed4090(o.spaces); + checkUnnamed4326(o.spaces); unittest.expect(o.starred, unittest.isTrue); unittest.expect(o.teamDriveId, unittest.equals('foo')); unittest.expect(o.thumbnailLink, unittest.equals('foo')); @@ -1177,14 +1224,14 @@ buildCounterFile--; } -buildUnnamed4091() { +buildUnnamed4327() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed4091(core.List<api.File> o) { +checkUnnamed4327(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -1195,7 +1242,7 @@ var o = new api.FileList(); buildCounterFileList++; if (buildCounterFileList < 3) { - o.files = buildUnnamed4091(); + o.files = buildUnnamed4327(); o.incompleteSearch = true; o.kind = "foo"; o.nextPageToken = "foo"; @@ -1207,7 +1254,7 @@ checkFileList(api.FileList o) { buildCounterFileList++; if (buildCounterFileList < 3) { - checkUnnamed4091(o.files); + checkUnnamed4327(o.files); unittest.expect(o.incompleteSearch, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); @@ -1215,14 +1262,14 @@ buildCounterFileList--; } -buildUnnamed4092() { +buildUnnamed4328() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4092(core.List<core.String> o) { +checkUnnamed4328(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1233,7 +1280,7 @@ var o = new api.GeneratedIds(); buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - o.ids = buildUnnamed4092(); + o.ids = buildUnnamed4328(); o.kind = "foo"; o.space = "foo"; } @@ -1244,7 +1291,7 @@ checkGeneratedIds(api.GeneratedIds o) { buildCounterGeneratedIds++; if (buildCounterGeneratedIds < 3) { - checkUnnamed4092(o.ids); + checkUnnamed4328(o.ids); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.space, unittest.equals('foo')); } @@ -1276,14 +1323,14 @@ buildCounterPermissionPermissionDetails--; } -buildUnnamed4093() { +buildUnnamed4329() { var o = new core.List<api.PermissionPermissionDetails>(); o.add(buildPermissionPermissionDetails()); o.add(buildPermissionPermissionDetails()); return o; } -checkUnnamed4093(core.List<api.PermissionPermissionDetails> o) { +checkUnnamed4329(core.List<api.PermissionPermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionPermissionDetails(o[0]); checkPermissionPermissionDetails(o[1]); @@ -1315,14 +1362,14 @@ buildCounterPermissionTeamDrivePermissionDetails--; } -buildUnnamed4094() { +buildUnnamed4330() { var o = new core.List<api.PermissionTeamDrivePermissionDetails>(); o.add(buildPermissionTeamDrivePermissionDetails()); o.add(buildPermissionTeamDrivePermissionDetails()); return o; } -checkUnnamed4094(core.List<api.PermissionTeamDrivePermissionDetails> o) { +checkUnnamed4330(core.List<api.PermissionTeamDrivePermissionDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPermissionTeamDrivePermissionDetails(o[0]); checkPermissionTeamDrivePermissionDetails(o[1]); @@ -1341,11 +1388,12 @@ o.expirationTime = core.DateTime.parse("2002-02-27T14:01:02"); o.id = "foo"; o.kind = "foo"; - o.permissionDetails = buildUnnamed4093(); + o.permissionDetails = buildUnnamed4329(); o.photoLink = "foo"; o.role = "foo"; - o.teamDrivePermissionDetails = buildUnnamed4094(); + o.teamDrivePermissionDetails = buildUnnamed4330(); o.type = "foo"; + o.view = "foo"; } buildCounterPermission--; return o; @@ -1363,23 +1411,24 @@ unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4093(o.permissionDetails); + checkUnnamed4329(o.permissionDetails); unittest.expect(o.photoLink, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); - checkUnnamed4094(o.teamDrivePermissionDetails); + checkUnnamed4330(o.teamDrivePermissionDetails); unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.view, unittest.equals('foo')); } buildCounterPermission--; } -buildUnnamed4095() { +buildUnnamed4331() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed4095(core.List<api.Permission> o) { +checkUnnamed4331(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -1392,7 +1441,7 @@ if (buildCounterPermissionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.permissions = buildUnnamed4095(); + o.permissions = buildUnnamed4331(); } buildCounterPermissionList--; return o; @@ -1403,7 +1452,7 @@ if (buildCounterPermissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4095(o.permissions); + checkUnnamed4331(o.permissions); } buildCounterPermissionList--; } @@ -1445,14 +1494,14 @@ buildCounterReply--; } -buildUnnamed4096() { +buildUnnamed4332() { var o = new core.List<api.Reply>(); o.add(buildReply()); o.add(buildReply()); return o; } -checkUnnamed4096(core.List<api.Reply> o) { +checkUnnamed4332(core.List<api.Reply> o) { unittest.expect(o, unittest.hasLength(2)); checkReply(o[0]); checkReply(o[1]); @@ -1465,7 +1514,7 @@ if (buildCounterReplyList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.replies = buildUnnamed4096(); + o.replies = buildUnnamed4332(); } buildCounterReplyList--; return o; @@ -1476,19 +1525,19 @@ if (buildCounterReplyList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4096(o.replies); + checkUnnamed4332(o.replies); } buildCounterReplyList--; } -buildUnnamed4097() { +buildUnnamed4333() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4097(core.Map<core.String, core.String> o) { +checkUnnamed4333(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')); @@ -1499,7 +1548,7 @@ var o = new api.Revision(); buildCounterRevision++; if (buildCounterRevision < 3) { - o.exportLinks = buildUnnamed4097(); + o.exportLinks = buildUnnamed4333(); o.id = "foo"; o.keepForever = true; o.kind = "foo"; @@ -1510,6 +1559,7 @@ o.originalFilename = "foo"; o.publishAuto = true; o.published = true; + o.publishedLink = "foo"; o.publishedOutsideDomain = true; o.size = "foo"; } @@ -1520,7 +1570,7 @@ checkRevision(api.Revision o) { buildCounterRevision++; if (buildCounterRevision < 3) { - checkUnnamed4097(o.exportLinks); + checkUnnamed4333(o.exportLinks); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.keepForever, unittest.isTrue); unittest.expect(o.kind, unittest.equals('foo')); @@ -1532,20 +1582,21 @@ unittest.expect(o.originalFilename, unittest.equals('foo')); unittest.expect(o.publishAuto, unittest.isTrue); unittest.expect(o.published, unittest.isTrue); + unittest.expect(o.publishedLink, unittest.equals('foo')); unittest.expect(o.publishedOutsideDomain, unittest.isTrue); unittest.expect(o.size, unittest.equals('foo')); } buildCounterRevision--; } -buildUnnamed4098() { +buildUnnamed4334() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed4098(core.List<api.Revision> o) { +checkUnnamed4334(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); @@ -1558,7 +1609,7 @@ if (buildCounterRevisionList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.revisions = buildUnnamed4098(); + o.revisions = buildUnnamed4334(); } buildCounterRevisionList--; return o; @@ -1569,7 +1620,7 @@ if (buildCounterRevisionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4098(o.revisions); + checkUnnamed4334(o.revisions); } buildCounterRevisionList--; } @@ -1739,14 +1790,14 @@ buildCounterTeamDrive--; } -buildUnnamed4099() { +buildUnnamed4335() { var o = new core.List<api.TeamDrive>(); o.add(buildTeamDrive()); o.add(buildTeamDrive()); return o; } -checkUnnamed4099(core.List<api.TeamDrive> o) { +checkUnnamed4335(core.List<api.TeamDrive> o) { unittest.expect(o, unittest.hasLength(2)); checkTeamDrive(o[0]); checkTeamDrive(o[1]); @@ -1759,7 +1810,7 @@ if (buildCounterTeamDriveList < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.teamDrives = buildUnnamed4099(); + o.teamDrives = buildUnnamed4335(); } buildCounterTeamDriveList--; return o; @@ -1770,7 +1821,7 @@ if (buildCounterTeamDriveList < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4099(o.teamDrives); + checkUnnamed4335(o.teamDrives); } buildCounterTeamDriveList--; } @@ -1885,6 +1936,14 @@ }); }); + unittest.group("obj-schema-ContentRestriction", () { + unittest.test("to-json--from-json", () { + var o = buildContentRestriction(); + var od = new api.ContentRestriction.fromJson(o.toJson()); + checkContentRestriction(od); + }); + }); + unittest.group("obj-schema-DriveBackgroundImageFile", () { unittest.test("to-json--from-json", () { var o = buildDriveBackgroundImageFile(); @@ -2255,6 +2314,7 @@ var arg_driveId = "foo"; var arg_includeCorpusRemovals = true; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeRemoved = true; var arg_includeTeamDriveItems = true; var arg_pageSize = 42; @@ -2305,6 +2365,8 @@ unittest.equals("$arg_includeCorpusRemovals")); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeRemoved"].first, unittest.equals("$arg_includeRemoved")); unittest.expect(queryMap["includeTeamDriveItems"].first, @@ -2333,6 +2395,7 @@ driveId: arg_driveId, includeCorpusRemovals: arg_includeCorpusRemovals, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, @@ -2355,6 +2418,7 @@ var arg_driveId = "foo"; var arg_includeCorpusRemovals = true; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeRemoved = true; var arg_includeTeamDriveItems = true; var arg_pageSize = 42; @@ -2408,6 +2472,8 @@ unittest.equals("$arg_includeCorpusRemovals")); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeRemoved"].first, unittest.equals("$arg_includeRemoved")); unittest.expect(queryMap["includeTeamDriveItems"].first, @@ -2436,6 +2502,7 @@ driveId: arg_driveId, includeCorpusRemovals: arg_includeCorpusRemovals, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeRemoved: arg_includeRemoved, includeTeamDriveItems: arg_includeTeamDriveItems, pageSize: arg_pageSize, @@ -3299,6 +3366,7 @@ var arg_fileId = "foo"; var arg_enforceSingleParent = true; var arg_ignoreDefaultVisibility = true; + var arg_includePermissionsForView = "foo"; var arg_keepRevisionForever = true; var arg_ocrLanguage = "foo"; var arg_supportsAllDrives = true; @@ -3353,6 +3421,8 @@ unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["ignoreDefaultVisibility"].first, unittest.equals("$arg_ignoreDefaultVisibility")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["keepRevisionForever"].first, unittest.equals("$arg_keepRevisionForever")); unittest.expect( @@ -3373,6 +3443,7 @@ .copy(arg_request, arg_fileId, enforceSingleParent: arg_enforceSingleParent, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, + includePermissionsForView: arg_includePermissionsForView, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsAllDrives: arg_supportsAllDrives, @@ -3392,6 +3463,7 @@ var arg_request = buildFile(); var arg_enforceSingleParent = true; var arg_ignoreDefaultVisibility = true; + var arg_includePermissionsForView = "foo"; var arg_keepRevisionForever = true; var arg_ocrLanguage = "foo"; var arg_supportsAllDrives = true; @@ -3438,6 +3510,8 @@ unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["ignoreDefaultVisibility"].first, unittest.equals("$arg_ignoreDefaultVisibility")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["keepRevisionForever"].first, unittest.equals("$arg_keepRevisionForever")); unittest.expect( @@ -3460,6 +3534,7 @@ .create(arg_request, enforceSingleParent: arg_enforceSingleParent, ignoreDefaultVisibility: arg_ignoreDefaultVisibility, + includePermissionsForView: arg_includePermissionsForView, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, supportsAllDrives: arg_supportsAllDrives, @@ -3475,6 +3550,7 @@ var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; + var arg_enforceSingleParent = true; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -3514,6 +3590,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["enforceSingleParent"].first, + unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -3528,6 +3606,7 @@ }), true); res .delete(arg_fileId, + enforceSingleParent: arg_enforceSingleParent, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -3537,6 +3616,7 @@ unittest.test("method--emptyTrash", () { var mock = new HttpServerMock(); api.FilesResourceApi res = new api.DriveApi(mock).files; + var arg_enforceSingleParent = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3571,6 +3651,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["enforceSingleParent"].first, + unittest.equals("$arg_enforceSingleParent")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3579,7 +3661,11 @@ var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); - res.emptyTrash($fields: arg_$fields).then(unittest.expectAsync1((_) {})); + res + .emptyTrash( + enforceSingleParent: arg_enforceSingleParent, + $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); }); unittest.test("method--export", () { @@ -3713,6 +3799,7 @@ api.FilesResourceApi res = new api.DriveApi(mock).files; var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; + var arg_includePermissionsForView = "foo"; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -3754,6 +3841,8 @@ } unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -3769,6 +3858,7 @@ res .get(arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, + includePermissionsForView: arg_includePermissionsForView, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -3784,6 +3874,7 @@ var arg_corpus = "foo"; var arg_driveId = "foo"; var arg_includeItemsFromAllDrives = true; + var arg_includePermissionsForView = "foo"; var arg_includeTeamDriveItems = true; var arg_orderBy = "foo"; var arg_pageSize = 42; @@ -3834,6 +3925,8 @@ queryMap["driveId"].first, unittest.equals(arg_driveId)); unittest.expect(queryMap["includeItemsFromAllDrives"].first, unittest.equals("$arg_includeItemsFromAllDrives")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["includeTeamDriveItems"].first, unittest.equals("$arg_includeTeamDriveItems")); unittest.expect( @@ -3864,6 +3957,7 @@ corpus: arg_corpus, driveId: arg_driveId, includeItemsFromAllDrives: arg_includeItemsFromAllDrives, + includePermissionsForView: arg_includePermissionsForView, includeTeamDriveItems: arg_includeTeamDriveItems, orderBy: arg_orderBy, pageSize: arg_pageSize, @@ -3889,6 +3983,7 @@ var arg_fileId = "foo"; var arg_addParents = "foo"; var arg_enforceSingleParent = true; + var arg_includePermissionsForView = "foo"; var arg_keepRevisionForever = true; var arg_ocrLanguage = "foo"; var arg_removeParents = "foo"; @@ -3939,6 +4034,8 @@ queryMap["addParents"].first, unittest.equals(arg_addParents)); unittest.expect(queryMap["enforceSingleParent"].first, unittest.equals("$arg_enforceSingleParent")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["keepRevisionForever"].first, unittest.equals("$arg_keepRevisionForever")); unittest.expect( @@ -3963,6 +4060,7 @@ .update(arg_request, arg_fileId, addParents: arg_addParents, enforceSingleParent: arg_enforceSingleParent, + includePermissionsForView: arg_includePermissionsForView, keepRevisionForever: arg_keepRevisionForever, ocrLanguage: arg_ocrLanguage, removeParents: arg_removeParents, @@ -3984,6 +4082,7 @@ var arg_request = buildChannel(); var arg_fileId = "foo"; var arg_acknowledgeAbuse = true; + var arg_includePermissionsForView = "foo"; var arg_supportsAllDrives = true; var arg_supportsTeamDrives = true; var arg_$fields = "foo"; @@ -4034,6 +4133,8 @@ } unittest.expect(queryMap["acknowledgeAbuse"].first, unittest.equals("$arg_acknowledgeAbuse")); + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(queryMap["supportsAllDrives"].first, unittest.equals("$arg_supportsAllDrives")); unittest.expect(queryMap["supportsTeamDrives"].first, @@ -4049,6 +4150,7 @@ res .watch(arg_request, arg_fileId, acknowledgeAbuse: arg_acknowledgeAbuse, + includePermissionsForView: arg_includePermissionsForView, supportsAllDrives: arg_supportsAllDrives, supportsTeamDrives: arg_supportsTeamDrives, $fields: arg_$fields) @@ -4318,6 +4420,7 @@ var mock = new HttpServerMock(); api.PermissionsResourceApi res = new api.DriveApi(mock).permissions; var arg_fileId = "foo"; + var arg_includePermissionsForView = "foo"; var arg_pageSize = 42; var arg_pageToken = "foo"; var arg_supportsAllDrives = true; @@ -4366,6 +4469,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["includePermissionsForView"].first, + unittest.equals(arg_includePermissionsForView)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( @@ -4386,6 +4491,7 @@ }), true); res .list(arg_fileId, + includePermissionsForView: arg_includePermissionsForView, pageSize: arg_pageSize, pageToken: arg_pageToken, supportsAllDrives: arg_supportsAllDrives,
diff --git a/generated/googleapis/test/driveactivity/v2_test.dart b/generated/googleapis/test/driveactivity/v2_test.dart index 0f7c9fe..c3dfc75 100644 --- a/generated/googleapis/test/driveactivity/v2_test.dart +++ b/generated/googleapis/test/driveactivity/v2_test.dart
@@ -228,14 +228,14 @@ buildCounterAssignment--; } -buildUnnamed3902() { +buildUnnamed4101() { var o = new core.List<api.User>(); o.add(buildUser()); o.add(buildUser()); return o; } -checkUnnamed3902(core.List<api.User> o) { +checkUnnamed4101(core.List<api.User> o) { unittest.expect(o, unittest.hasLength(2)); checkUser(o[0]); checkUser(o[1]); @@ -247,7 +247,7 @@ buildCounterComment++; if (buildCounterComment < 3) { o.assignment = buildAssignment(); - o.mentionedUsers = buildUnnamed3902(); + o.mentionedUsers = buildUnnamed4101(); o.post = buildPost(); o.suggestion = buildSuggestion(); } @@ -259,7 +259,7 @@ buildCounterComment++; if (buildCounterComment < 3) { checkAssignment(o.assignment); - checkUnnamed3902(o.mentionedUsers); + checkUnnamed4101(o.mentionedUsers); checkPost(o.post); checkSuggestion(o.suggestion); } @@ -426,40 +426,40 @@ buildCounterDrive--; } -buildUnnamed3903() { +buildUnnamed4102() { var o = new core.List<api.Action>(); o.add(buildAction()); o.add(buildAction()); return o; } -checkUnnamed3903(core.List<api.Action> o) { +checkUnnamed4102(core.List<api.Action> o) { unittest.expect(o, unittest.hasLength(2)); checkAction(o[0]); checkAction(o[1]); } -buildUnnamed3904() { +buildUnnamed4103() { var o = new core.List<api.Actor>(); o.add(buildActor()); o.add(buildActor()); return o; } -checkUnnamed3904(core.List<api.Actor> o) { +checkUnnamed4103(core.List<api.Actor> o) { unittest.expect(o, unittest.hasLength(2)); checkActor(o[0]); checkActor(o[1]); } -buildUnnamed3905() { +buildUnnamed4104() { var o = new core.List<api.Target>(); o.add(buildTarget()); o.add(buildTarget()); return o; } -checkUnnamed3905(core.List<api.Target> o) { +checkUnnamed4104(core.List<api.Target> o) { unittest.expect(o, unittest.hasLength(2)); checkTarget(o[0]); checkTarget(o[1]); @@ -470,10 +470,10 @@ var o = new api.DriveActivity(); buildCounterDriveActivity++; if (buildCounterDriveActivity < 3) { - o.actions = buildUnnamed3903(); - o.actors = buildUnnamed3904(); + o.actions = buildUnnamed4102(); + o.actors = buildUnnamed4103(); o.primaryActionDetail = buildActionDetail(); - o.targets = buildUnnamed3905(); + o.targets = buildUnnamed4104(); o.timeRange = buildTimeRange(); o.timestamp = "foo"; } @@ -484,10 +484,10 @@ checkDriveActivity(api.DriveActivity o) { buildCounterDriveActivity++; if (buildCounterDriveActivity < 3) { - checkUnnamed3903(o.actions); - checkUnnamed3904(o.actors); + checkUnnamed4102(o.actions); + checkUnnamed4103(o.actors); checkActionDetail(o.primaryActionDetail); - checkUnnamed3905(o.targets); + checkUnnamed4104(o.targets); checkTimeRange(o.timeRange); unittest.expect(o.timestamp, unittest.equals('foo')); } @@ -761,27 +761,27 @@ buildCounterLegacy--; } -buildUnnamed3906() { +buildUnnamed4105() { var o = new core.List<api.TargetReference>(); o.add(buildTargetReference()); o.add(buildTargetReference()); return o; } -checkUnnamed3906(core.List<api.TargetReference> o) { +checkUnnamed4105(core.List<api.TargetReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetReference(o[0]); checkTargetReference(o[1]); } -buildUnnamed3907() { +buildUnnamed4106() { var o = new core.List<api.TargetReference>(); o.add(buildTargetReference()); o.add(buildTargetReference()); return o; } -checkUnnamed3907(core.List<api.TargetReference> o) { +checkUnnamed4106(core.List<api.TargetReference> o) { unittest.expect(o, unittest.hasLength(2)); checkTargetReference(o[0]); checkTargetReference(o[1]); @@ -792,8 +792,8 @@ var o = new api.Move(); buildCounterMove++; if (buildCounterMove < 3) { - o.addedParents = buildUnnamed3906(); - o.removedParents = buildUnnamed3907(); + o.addedParents = buildUnnamed4105(); + o.removedParents = buildUnnamed4106(); } buildCounterMove--; return o; @@ -802,8 +802,8 @@ checkMove(api.Move o) { buildCounterMove++; if (buildCounterMove < 3) { - checkUnnamed3906(o.addedParents); - checkUnnamed3907(o.removedParents); + checkUnnamed4105(o.addedParents); + checkUnnamed4106(o.removedParents); } buildCounterMove--; } @@ -892,27 +892,27 @@ buildCounterPermission--; } -buildUnnamed3908() { +buildUnnamed4107() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed3908(core.List<api.Permission> o) { +checkUnnamed4107(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); } -buildUnnamed3909() { +buildUnnamed4108() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed3909(core.List<api.Permission> o) { +checkUnnamed4108(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -923,8 +923,8 @@ var o = new api.PermissionChange(); buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - o.addedPermissions = buildUnnamed3908(); - o.removedPermissions = buildUnnamed3909(); + o.addedPermissions = buildUnnamed4107(); + o.removedPermissions = buildUnnamed4108(); } buildCounterPermissionChange--; return o; @@ -933,8 +933,8 @@ checkPermissionChange(api.PermissionChange o) { buildCounterPermissionChange++; if (buildCounterPermissionChange < 3) { - checkUnnamed3908(o.addedPermissions); - checkUnnamed3909(o.removedPermissions); + checkUnnamed4107(o.addedPermissions); + checkUnnamed4108(o.removedPermissions); } buildCounterPermissionChange--; } @@ -987,14 +987,14 @@ buildCounterQueryDriveActivityRequest--; } -buildUnnamed3910() { +buildUnnamed4109() { var o = new core.List<api.DriveActivity>(); o.add(buildDriveActivity()); o.add(buildDriveActivity()); return o; } -checkUnnamed3910(core.List<api.DriveActivity> o) { +checkUnnamed4109(core.List<api.DriveActivity> o) { unittest.expect(o, unittest.hasLength(2)); checkDriveActivity(o[0]); checkDriveActivity(o[1]); @@ -1005,7 +1005,7 @@ var o = new api.QueryDriveActivityResponse(); buildCounterQueryDriveActivityResponse++; if (buildCounterQueryDriveActivityResponse < 3) { - o.activities = buildUnnamed3910(); + o.activities = buildUnnamed4109(); o.nextPageToken = "foo"; } buildCounterQueryDriveActivityResponse--; @@ -1015,7 +1015,7 @@ checkQueryDriveActivityResponse(api.QueryDriveActivityResponse o) { buildCounterQueryDriveActivityResponse++; if (buildCounterQueryDriveActivityResponse < 3) { - checkUnnamed3910(o.activities); + checkUnnamed4109(o.activities); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterQueryDriveActivityResponse--; @@ -1082,14 +1082,14 @@ buildCounterRestrictionChange--; } -buildUnnamed3911() { +buildUnnamed4110() { var o = new core.List<api.RestrictionChange>(); o.add(buildRestrictionChange()); o.add(buildRestrictionChange()); return o; } -checkUnnamed3911(core.List<api.RestrictionChange> o) { +checkUnnamed4110(core.List<api.RestrictionChange> o) { unittest.expect(o, unittest.hasLength(2)); checkRestrictionChange(o[0]); checkRestrictionChange(o[1]); @@ -1100,7 +1100,7 @@ var o = new api.SettingsChange(); buildCounterSettingsChange++; if (buildCounterSettingsChange < 3) { - o.restrictionChanges = buildUnnamed3911(); + o.restrictionChanges = buildUnnamed4110(); } buildCounterSettingsChange--; return o; @@ -1109,7 +1109,7 @@ checkSettingsChange(api.SettingsChange o) { buildCounterSettingsChange++; if (buildCounterSettingsChange < 3) { - checkUnnamed3911(o.restrictionChanges); + checkUnnamed4110(o.restrictionChanges); } buildCounterSettingsChange--; }
diff --git a/generated/googleapis/test/file/v1_test.dart b/generated/googleapis/test/file/v1_test.dart index 8eb2ceb..53cb6e6 100644 --- a/generated/googleapis/test/file/v1_test.dart +++ b/generated/googleapis/test/file/v1_test.dart
@@ -101,33 +101,33 @@ buildCounterFileShareConfig--; } -buildUnnamed2381() { +buildUnnamed2493() { 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) { +checkUnnamed2493(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')); } -buildUnnamed2382() { +buildUnnamed2494() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2382(core.Map<core.String, core.String> o) { +checkUnnamed2494(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')); } -buildUnnamed2383() { +buildUnnamed2495() { var o = new core.Map<core.String, api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>(); o["x"] = @@ -137,7 +137,7 @@ return o; } -checkUnnamed2383( +checkUnnamed2495( core.Map<core.String, api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule> o) { @@ -148,20 +148,20 @@ o["y"]); } -buildUnnamed2384() { +buildUnnamed2496() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2384(core.Map<core.String, core.String> o) { +checkUnnamed2496(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')); } -buildUnnamed2385() { +buildUnnamed2497() { var o = new core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>(); o.add( @@ -171,7 +171,7 @@ return o; } -checkUnnamed2385( +checkUnnamed2497( core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource> o) { @@ -180,14 +180,14 @@ checkGoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource(o[1]); } -buildUnnamed2386() { +buildUnnamed2498() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2386(core.Map<core.String, core.String> o) { +checkUnnamed2498(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')); @@ -201,16 +201,18 @@ if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1Instance < 3) { o.consumerDefinedName = "foo"; o.createTime = "foo"; - o.labels = buildUnnamed2381(); - o.maintenancePolicyNames = buildUnnamed2382(); - o.maintenanceSchedules = buildUnnamed2383(); + o.labels = buildUnnamed2493(); + o.maintenancePolicyNames = buildUnnamed2494(); + o.maintenanceSchedules = buildUnnamed2495(); + o.maintenanceSettings = + buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); o.name = "foo"; - o.producerMetadata = buildUnnamed2384(); - o.provisionedResources = buildUnnamed2385(); + o.producerMetadata = buildUnnamed2496(); + o.provisionedResources = buildUnnamed2497(); o.slmInstanceTemplate = "foo"; o.sloMetadata = buildGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata(); - o.softwareVersions = buildUnnamed2386(); + o.softwareVersions = buildUnnamed2498(); o.state = "foo"; o.tenantProjectId = "foo"; o.updateTime = "foo"; @@ -225,16 +227,18 @@ if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1Instance < 3) { unittest.expect(o.consumerDefinedName, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2381(o.labels); - checkUnnamed2382(o.maintenancePolicyNames); - checkUnnamed2383(o.maintenanceSchedules); + checkUnnamed2493(o.labels); + checkUnnamed2494(o.maintenancePolicyNames); + checkUnnamed2495(o.maintenanceSchedules); + checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + o.maintenanceSettings); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2384(o.producerMetadata); - checkUnnamed2385(o.provisionedResources); + checkUnnamed2496(o.producerMetadata); + checkUnnamed2497(o.provisionedResources); unittest.expect(o.slmInstanceTemplate, unittest.equals('foo')); checkGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata( o.sloMetadata); - checkUnnamed2386(o.softwareVersions); + checkUnnamed2498(o.softwareVersions); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.tenantProjectId, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -273,7 +277,32 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule--; } -buildUnnamed2387() { +core.int + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings = + 0; +buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings() { + var o = new api + .GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings++; + if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings < + 3) { + o.exclude = true; + } + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings--; + return o; +} + +checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings o) { + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings++; + if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings < + 3) { + unittest.expect(o.exclude, unittest.isTrue); + } + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings--; +} + +buildUnnamed2499() { var o = new core .List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion()); @@ -281,7 +310,7 @@ return o; } -checkUnnamed2387( +checkUnnamed2499( core.List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion> o) { unittest.expect(o, unittest.hasLength(2)); @@ -298,7 +327,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata++; if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata < 3) { - o.exclusions = buildUnnamed2387(); + o.exclusions = buildUnnamed2499(); o.location = "foo"; o.nodeId = "foo"; } @@ -311,7 +340,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata++; if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata < 3) { - checkUnnamed2387(o.exclusions); + checkUnnamed2499(o.exclusions); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.nodeId, unittest.equals('foo')); } @@ -401,7 +430,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion--; } -buildUnnamed2388() { +buildUnnamed2500() { var o = new core .List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion()); @@ -409,7 +438,7 @@ return o; } -checkUnnamed2388( +checkUnnamed2500( core.List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion> o) { unittest.expect(o, unittest.hasLength(2)); @@ -417,7 +446,7 @@ checkGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion(o[1]); } -buildUnnamed2389() { +buildUnnamed2501() { var o = new core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata()); @@ -425,7 +454,7 @@ return o; } -checkUnnamed2389( +checkUnnamed2501( core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata> o) { @@ -443,8 +472,8 @@ 3) { o.eligibility = buildGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility(); - o.exclusions = buildUnnamed2388(); - o.nodes = buildUnnamed2389(); + o.exclusions = buildUnnamed2500(); + o.nodes = buildUnnamed2501(); o.tier = "foo"; } buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata--; @@ -458,47 +487,47 @@ 3) { checkGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility( o.eligibility); - checkUnnamed2388(o.exclusions); - checkUnnamed2389(o.nodes); + checkUnnamed2500(o.exclusions); + checkUnnamed2501(o.nodes); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata--; } -buildUnnamed2390() { +buildUnnamed2502() { var o = new core.List<api.FileShareConfig>(); o.add(buildFileShareConfig()); o.add(buildFileShareConfig()); return o; } -checkUnnamed2390(core.List<api.FileShareConfig> o) { +checkUnnamed2502(core.List<api.FileShareConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkFileShareConfig(o[0]); checkFileShareConfig(o[1]); } -buildUnnamed2391() { +buildUnnamed2503() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2391(core.Map<core.String, core.String> o) { +checkUnnamed2503(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')); } -buildUnnamed2392() { +buildUnnamed2504() { var o = new core.List<api.NetworkConfig>(); o.add(buildNetworkConfig()); o.add(buildNetworkConfig()); return o; } -checkUnnamed2392(core.List<api.NetworkConfig> o) { +checkUnnamed2504(core.List<api.NetworkConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkConfig(o[0]); checkNetworkConfig(o[1]); @@ -512,10 +541,10 @@ o.createTime = "foo"; o.description = "foo"; o.etag = "foo"; - o.fileShares = buildUnnamed2390(); - o.labels = buildUnnamed2391(); + o.fileShares = buildUnnamed2502(); + o.labels = buildUnnamed2503(); o.name = "foo"; - o.networks = buildUnnamed2392(); + o.networks = buildUnnamed2504(); o.state = "foo"; o.statusMessage = "foo"; o.tier = "foo"; @@ -530,10 +559,10 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2390(o.fileShares); - checkUnnamed2391(o.labels); + checkUnnamed2502(o.fileShares); + checkUnnamed2503(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2392(o.networks); + checkUnnamed2504(o.networks); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); unittest.expect(o.tier, unittest.equals('foo')); @@ -541,27 +570,27 @@ buildCounterInstance--; } -buildUnnamed2393() { +buildUnnamed2505() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed2393(core.List<api.Instance> o) { +checkUnnamed2505(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); } -buildUnnamed2394() { +buildUnnamed2506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2394(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')); @@ -572,9 +601,9 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed2393(); + o.instances = buildUnnamed2505(); o.nextPageToken = "foo"; - o.unreachable = buildUnnamed2394(); + o.unreachable = buildUnnamed2506(); } buildCounterListInstancesResponse--; return o; @@ -583,21 +612,21 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed2393(o.instances); + checkUnnamed2505(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2394(o.unreachable); + checkUnnamed2506(o.unreachable); } buildCounterListInstancesResponse--; } -buildUnnamed2395() { +buildUnnamed2507() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2395(core.List<api.Location> o) { +checkUnnamed2507(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -608,7 +637,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed2395(); + o.locations = buildUnnamed2507(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -618,20 +647,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed2395(o.locations); + checkUnnamed2507(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed2396() { +buildUnnamed2508() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2396(core.List<api.Operation> o) { +checkUnnamed2508(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -643,7 +672,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2396(); + o.operations = buildUnnamed2508(); } buildCounterListOperationsResponse--; return o; @@ -653,25 +682,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2396(o.operations); + checkUnnamed2508(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2397() { +buildUnnamed2509() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2397(core.Map<core.String, core.String> o) { +checkUnnamed2509(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')); } -buildUnnamed2398() { +buildUnnamed2510() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -686,7 +715,7 @@ return o; } -checkUnnamed2398(core.Map<core.String, core.Object> o) { +checkUnnamed2510(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)); @@ -706,9 +735,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed2397(); + o.labels = buildUnnamed2509(); o.locationId = "foo"; - o.metadata = buildUnnamed2398(); + o.metadata = buildUnnamed2510(); o.name = "foo"; } buildCounterLocation--; @@ -719,35 +748,35 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2397(o.labels); + checkUnnamed2509(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed2398(o.metadata); + checkUnnamed2510(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed2399() { +buildUnnamed2511() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2399(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')); } -buildUnnamed2400() { +buildUnnamed2512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2400(core.List<core.String> o) { +checkUnnamed2512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -758,8 +787,8 @@ var o = new api.NetworkConfig(); buildCounterNetworkConfig++; if (buildCounterNetworkConfig < 3) { - o.ipAddresses = buildUnnamed2399(); - o.modes = buildUnnamed2400(); + o.ipAddresses = buildUnnamed2511(); + o.modes = buildUnnamed2512(); o.network = "foo"; o.reservedIpRange = "foo"; } @@ -770,15 +799,15 @@ checkNetworkConfig(api.NetworkConfig o) { buildCounterNetworkConfig++; if (buildCounterNetworkConfig < 3) { - checkUnnamed2399(o.ipAddresses); - checkUnnamed2400(o.modes); + checkUnnamed2511(o.ipAddresses); + checkUnnamed2512(o.modes); unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.reservedIpRange, unittest.equals('foo')); } buildCounterNetworkConfig--; } -buildUnnamed2401() { +buildUnnamed2513() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -793,7 +822,7 @@ return o; } -checkUnnamed2401(core.Map<core.String, core.Object> o) { +checkUnnamed2513(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)); @@ -807,7 +836,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2402() { +buildUnnamed2514() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -822,7 +851,7 @@ return o; } -checkUnnamed2402(core.Map<core.String, core.Object> o) { +checkUnnamed2514(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)); @@ -843,9 +872,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2401(); + o.metadata = buildUnnamed2513(); o.name = "foo"; - o.response = buildUnnamed2402(); + o.response = buildUnnamed2514(); } buildCounterOperation--; return o; @@ -856,9 +885,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2401(o.metadata); + checkUnnamed2513(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2402(o.response); + checkUnnamed2514(o.response); } buildCounterOperation--; } @@ -894,7 +923,7 @@ buildCounterOperationMetadata--; } -buildUnnamed2403() { +buildUnnamed2515() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -909,7 +938,7 @@ return o; } -checkUnnamed2403(core.Map<core.String, core.Object> o) { +checkUnnamed2515(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)); @@ -923,17 +952,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2404() { +buildUnnamed2516() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2403()); - o.add(buildUnnamed2403()); + o.add(buildUnnamed2515()); + o.add(buildUnnamed2515()); return o; } -checkUnnamed2404(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2516(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2403(o[0]); - checkUnnamed2403(o[1]); + checkUnnamed2515(o[0]); + checkUnnamed2515(o[1]); } core.int buildCounterStatus = 0; @@ -942,7 +971,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2404(); + o.details = buildUnnamed2516(); o.message = "foo"; } buildCounterStatus--; @@ -953,7 +982,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2404(o.details); + checkUnnamed2516(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1010,6 +1039,20 @@ }); unittest.group( + "obj-schema-GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); + var od = new api + .GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings.fromJson( + o.toJson()); + checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata", () { unittest.test("to-json--from-json", () { @@ -1204,10 +1247,10 @@ api.ProjectsLocationsResourceApi res = new api.FileApi(mock).projects.locations; var arg_name = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; - var arg_includeUnrevealedLocations = true; var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_includeUnrevealedLocations = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1240,13 +1283,13 @@ 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["includeUnrevealedLocations"].first, - unittest.equals("$arg_includeUnrevealedLocations")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["includeUnrevealedLocations"].first, + unittest.equals("$arg_includeUnrevealedLocations")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1257,10 +1300,10 @@ }), true); res .list(arg_name, - pageSize: arg_pageSize, filter: arg_filter, - includeUnrevealedLocations: arg_includeUnrevealedLocations, pageToken: arg_pageToken, + pageSize: arg_pageSize, + includeUnrevealedLocations: arg_includeUnrevealedLocations, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1439,9 +1482,9 @@ new api.FileApi(mock).projects.locations.instances; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_orderBy = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1476,11 +1519,11 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + 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["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1492,9 +1535,9 @@ res .list(arg_parent, pageToken: arg_pageToken, - orderBy: arg_orderBy, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInstancesResponse(response); @@ -1728,9 +1771,9 @@ api.ProjectsLocationsOperationsResourceApi res = new api.FileApi(mock).projects.locations.operations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1763,11 +1806,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1778,9 +1821,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart index 3c15b37..24e91fc 100644 --- a/generated/googleapis/test/firebasedynamiclinks/v1_test.dart +++ b/generated/googleapis/test/firebasedynamiclinks/v1_test.dart
@@ -123,14 +123,14 @@ buildCounterCreateManagedShortLinkRequest--; } -buildUnnamed98() { +buildUnnamed79() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed98(core.List<api.DynamicLinkWarning> o) { +checkUnnamed79(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -143,7 +143,7 @@ if (buildCounterCreateManagedShortLinkResponse < 3) { o.managedShortLink = buildManagedShortLink(); o.previewLink = "foo"; - o.warning = buildUnnamed98(); + o.warning = buildUnnamed79(); } buildCounterCreateManagedShortLinkResponse--; return o; @@ -154,7 +154,7 @@ if (buildCounterCreateManagedShortLinkResponse < 3) { checkManagedShortLink(o.managedShortLink); unittest.expect(o.previewLink, unittest.equals('foo')); - checkUnnamed98(o.warning); + checkUnnamed79(o.warning); } buildCounterCreateManagedShortLinkResponse--; } @@ -184,14 +184,14 @@ buildCounterCreateShortDynamicLinkRequest--; } -buildUnnamed99() { +buildUnnamed80() { var o = new core.List<api.DynamicLinkWarning>(); o.add(buildDynamicLinkWarning()); o.add(buildDynamicLinkWarning()); return o; } -checkUnnamed99(core.List<api.DynamicLinkWarning> o) { +checkUnnamed80(core.List<api.DynamicLinkWarning> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkWarning(o[0]); checkDynamicLinkWarning(o[1]); @@ -204,7 +204,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { o.previewLink = "foo"; o.shortLink = "foo"; - o.warning = buildUnnamed99(); + o.warning = buildUnnamed80(); } buildCounterCreateShortDynamicLinkResponse--; return o; @@ -215,7 +215,7 @@ if (buildCounterCreateShortDynamicLinkResponse < 3) { unittest.expect(o.previewLink, unittest.equals('foo')); unittest.expect(o.shortLink, unittest.equals('foo')); - checkUnnamed99(o.warning); + checkUnnamed80(o.warning); } buildCounterCreateShortDynamicLinkResponse--; } @@ -328,14 +328,14 @@ buildCounterDynamicLinkInfo--; } -buildUnnamed100() { +buildUnnamed81() { var o = new core.List<api.DynamicLinkEventStat>(); o.add(buildDynamicLinkEventStat()); o.add(buildDynamicLinkEventStat()); return o; } -checkUnnamed100(core.List<api.DynamicLinkEventStat> o) { +checkUnnamed81(core.List<api.DynamicLinkEventStat> o) { unittest.expect(o, unittest.hasLength(2)); checkDynamicLinkEventStat(o[0]); checkDynamicLinkEventStat(o[1]); @@ -346,7 +346,7 @@ var o = new api.DynamicLinkStats(); buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - o.linkEventStats = buildUnnamed100(); + o.linkEventStats = buildUnnamed81(); } buildCounterDynamicLinkStats--; return o; @@ -355,7 +355,7 @@ checkDynamicLinkStats(api.DynamicLinkStats o) { buildCounterDynamicLinkStats++; if (buildCounterDynamicLinkStats < 3) { - checkUnnamed100(o.linkEventStats); + checkUnnamed81(o.linkEventStats); } buildCounterDynamicLinkStats--; } @@ -610,14 +610,14 @@ buildCounterIosInfo--; } -buildUnnamed101() { +buildUnnamed82() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed101(core.List<core.String> o) { +checkUnnamed82(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -629,7 +629,7 @@ buildCounterManagedShortLink++; if (buildCounterManagedShortLink < 3) { o.creationTime = "foo"; - o.flaggedAttribute = buildUnnamed101(); + o.flaggedAttribute = buildUnnamed82(); o.info = buildDynamicLinkInfo(); o.link = "foo"; o.linkName = "foo"; @@ -643,7 +643,7 @@ buildCounterManagedShortLink++; if (buildCounterManagedShortLink < 3) { unittest.expect(o.creationTime, unittest.equals('foo')); - checkUnnamed101(o.flaggedAttribute); + checkUnnamed82(o.flaggedAttribute); checkDynamicLinkInfo(o.info); unittest.expect(o.link, unittest.equals('foo')); unittest.expect(o.linkName, unittest.equals('foo'));
diff --git a/generated/googleapis/test/firebaserules/v1_test.dart b/generated/googleapis/test/firebaserules/v1_test.dart index bc33abb..2c318af 100644 --- a/generated/googleapis/test/firebaserules/v1_test.dart +++ b/generated/googleapis/test/firebaserules/v1_test.dart
@@ -94,27 +94,27 @@ buildCounterEmpty--; } -buildUnnamed2255() { +buildUnnamed2363() { var o = new core.List<api.ExpressionReport>(); o.add(buildExpressionReport()); o.add(buildExpressionReport()); return o; } -checkUnnamed2255(core.List<api.ExpressionReport> o) { +checkUnnamed2363(core.List<api.ExpressionReport> o) { unittest.expect(o, unittest.hasLength(2)); checkExpressionReport(o[0]); checkExpressionReport(o[1]); } -buildUnnamed2256() { +buildUnnamed2364() { var o = new core.List<api.ValueCount>(); o.add(buildValueCount()); o.add(buildValueCount()); return o; } -checkUnnamed2256(core.List<api.ValueCount> o) { +checkUnnamed2364(core.List<api.ValueCount> o) { unittest.expect(o, unittest.hasLength(2)); checkValueCount(o[0]); checkValueCount(o[1]); @@ -125,9 +125,9 @@ var o = new api.ExpressionReport(); buildCounterExpressionReport++; if (buildCounterExpressionReport < 3) { - o.children = buildUnnamed2255(); + o.children = buildUnnamed2363(); o.sourcePosition = buildSourcePosition(); - o.values = buildUnnamed2256(); + o.values = buildUnnamed2364(); } buildCounterExpressionReport--; return o; @@ -136,9 +136,9 @@ checkExpressionReport(api.ExpressionReport o) { buildCounterExpressionReport++; if (buildCounterExpressionReport < 3) { - checkUnnamed2255(o.children); + checkUnnamed2363(o.children); checkSourcePosition(o.sourcePosition); - checkUnnamed2256(o.values); + checkUnnamed2364(o.values); } buildCounterExpressionReport--; } @@ -166,7 +166,7 @@ buildCounterFile--; } -buildUnnamed2257() { +buildUnnamed2365() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -181,7 +181,7 @@ return o; } -checkUnnamed2257(core.List<core.Object> o) { +checkUnnamed2365(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o[0]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); @@ -200,7 +200,7 @@ var o = new api.FunctionCall(); buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - o.args = buildUnnamed2257(); + o.args = buildUnnamed2365(); o.function = "foo"; } buildCounterFunctionCall--; @@ -210,20 +210,20 @@ checkFunctionCall(api.FunctionCall o) { buildCounterFunctionCall++; if (buildCounterFunctionCall < 3) { - checkUnnamed2257(o.args); + checkUnnamed2365(o.args); unittest.expect(o.function, unittest.equals('foo')); } buildCounterFunctionCall--; } -buildUnnamed2258() { +buildUnnamed2366() { var o = new core.List<api.Arg>(); o.add(buildArg()); o.add(buildArg()); return o; } -checkUnnamed2258(core.List<api.Arg> o) { +checkUnnamed2366(core.List<api.Arg> o) { unittest.expect(o, unittest.hasLength(2)); checkArg(o[0]); checkArg(o[1]); @@ -234,7 +234,7 @@ var o = new api.FunctionMock(); buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - o.args = buildUnnamed2258(); + o.args = buildUnnamed2366(); o.function = "foo"; o.result = buildResult(); } @@ -245,7 +245,7 @@ checkFunctionMock(api.FunctionMock o) { buildCounterFunctionMock++; if (buildCounterFunctionMock < 3) { - checkUnnamed2258(o.args); + checkUnnamed2366(o.args); unittest.expect(o.function, unittest.equals('foo')); checkResult(o.result); } @@ -304,14 +304,14 @@ buildCounterIssue--; } -buildUnnamed2259() { +buildUnnamed2367() { var o = new core.List<api.Release>(); o.add(buildRelease()); o.add(buildRelease()); return o; } -checkUnnamed2259(core.List<api.Release> o) { +checkUnnamed2367(core.List<api.Release> o) { unittest.expect(o, unittest.hasLength(2)); checkRelease(o[0]); checkRelease(o[1]); @@ -323,7 +323,7 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { o.nextPageToken = "foo"; - o.releases = buildUnnamed2259(); + o.releases = buildUnnamed2367(); } buildCounterListReleasesResponse--; return o; @@ -333,19 +333,19 @@ buildCounterListReleasesResponse++; if (buildCounterListReleasesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2259(o.releases); + checkUnnamed2367(o.releases); } buildCounterListReleasesResponse--; } -buildUnnamed2260() { +buildUnnamed2368() { var o = new core.List<api.Ruleset>(); o.add(buildRuleset()); o.add(buildRuleset()); return o; } -checkUnnamed2260(core.List<api.Ruleset> o) { +checkUnnamed2368(core.List<api.Ruleset> o) { unittest.expect(o, unittest.hasLength(2)); checkRuleset(o[0]); checkRuleset(o[1]); @@ -357,7 +357,7 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { o.nextPageToken = "foo"; - o.rulesets = buildUnnamed2260(); + o.rulesets = buildUnnamed2368(); } buildCounterListRulesetsResponse--; return o; @@ -367,19 +367,19 @@ buildCounterListRulesetsResponse++; if (buildCounterListRulesetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2260(o.rulesets); + checkUnnamed2368(o.rulesets); } buildCounterListRulesetsResponse--; } -buildUnnamed2261() { +buildUnnamed2369() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2261(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')); @@ -390,7 +390,7 @@ var o = new api.Metadata(); buildCounterMetadata++; if (buildCounterMetadata < 3) { - o.services = buildUnnamed2261(); + o.services = buildUnnamed2369(); } buildCounterMetadata--; return o; @@ -399,7 +399,7 @@ checkMetadata(api.Metadata o) { buildCounterMetadata++; if (buildCounterMetadata < 3) { - checkUnnamed2261(o.services); + checkUnnamed2369(o.services); } buildCounterMetadata--; } @@ -483,14 +483,14 @@ buildCounterRuleset--; } -buildUnnamed2262() { +buildUnnamed2370() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed2262(core.List<api.File> o) { +checkUnnamed2370(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -501,7 +501,7 @@ var o = new api.Source(); buildCounterSource++; if (buildCounterSource < 3) { - o.files = buildUnnamed2262(); + o.files = buildUnnamed2370(); } buildCounterSource--; return o; @@ -510,7 +510,7 @@ checkSource(api.Source o) { buildCounterSource++; if (buildCounterSource < 3) { - checkUnnamed2262(o.files); + checkUnnamed2370(o.files); } buildCounterSource--; } @@ -542,14 +542,14 @@ buildCounterSourcePosition--; } -buildUnnamed2263() { +buildUnnamed2371() { var o = new core.List<api.FunctionMock>(); o.add(buildFunctionMock()); o.add(buildFunctionMock()); return o; } -checkUnnamed2263(core.List<api.FunctionMock> o) { +checkUnnamed2371(core.List<api.FunctionMock> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionMock(o[0]); checkFunctionMock(o[1]); @@ -562,7 +562,7 @@ if (buildCounterTestCase < 3) { o.expectation = "foo"; o.expressionReportLevel = "foo"; - o.functionMocks = buildUnnamed2263(); + o.functionMocks = buildUnnamed2371(); o.pathEncoding = "foo"; o.request = { 'list': [1, 2, 3], @@ -584,7 +584,7 @@ if (buildCounterTestCase < 3) { unittest.expect(o.expectation, unittest.equals('foo')); unittest.expect(o.expressionReportLevel, unittest.equals('foo')); - checkUnnamed2263(o.functionMocks); + checkUnnamed2371(o.functionMocks); unittest.expect(o.pathEncoding, unittest.equals('foo')); var casted5 = (o.request) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -600,53 +600,53 @@ buildCounterTestCase--; } -buildUnnamed2264() { +buildUnnamed2372() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2264(core.List<core.String> o) { +checkUnnamed2372(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2265() { +buildUnnamed2373() { var o = new core.List<api.ExpressionReport>(); o.add(buildExpressionReport()); o.add(buildExpressionReport()); return o; } -checkUnnamed2265(core.List<api.ExpressionReport> o) { +checkUnnamed2373(core.List<api.ExpressionReport> o) { unittest.expect(o, unittest.hasLength(2)); checkExpressionReport(o[0]); checkExpressionReport(o[1]); } -buildUnnamed2266() { +buildUnnamed2374() { var o = new core.List<api.FunctionCall>(); o.add(buildFunctionCall()); o.add(buildFunctionCall()); return o; } -checkUnnamed2266(core.List<api.FunctionCall> o) { +checkUnnamed2374(core.List<api.FunctionCall> o) { unittest.expect(o, unittest.hasLength(2)); checkFunctionCall(o[0]); checkFunctionCall(o[1]); } -buildUnnamed2267() { +buildUnnamed2375() { var o = new core.List<api.VisitedExpression>(); o.add(buildVisitedExpression()); o.add(buildVisitedExpression()); return o; } -checkUnnamed2267(core.List<api.VisitedExpression> o) { +checkUnnamed2375(core.List<api.VisitedExpression> o) { unittest.expect(o, unittest.hasLength(2)); checkVisitedExpression(o[0]); checkVisitedExpression(o[1]); @@ -657,12 +657,12 @@ var o = new api.TestResult(); buildCounterTestResult++; if (buildCounterTestResult < 3) { - o.debugMessages = buildUnnamed2264(); + o.debugMessages = buildUnnamed2372(); o.errorPosition = buildSourcePosition(); - o.expressionReports = buildUnnamed2265(); - o.functionCalls = buildUnnamed2266(); + o.expressionReports = buildUnnamed2373(); + o.functionCalls = buildUnnamed2374(); o.state = "foo"; - o.visitedExpressions = buildUnnamed2267(); + o.visitedExpressions = buildUnnamed2375(); } buildCounterTestResult--; return o; @@ -671,12 +671,12 @@ checkTestResult(api.TestResult o) { buildCounterTestResult++; if (buildCounterTestResult < 3) { - checkUnnamed2264(o.debugMessages); + checkUnnamed2372(o.debugMessages); checkSourcePosition(o.errorPosition); - checkUnnamed2265(o.expressionReports); - checkUnnamed2266(o.functionCalls); + checkUnnamed2373(o.expressionReports); + checkUnnamed2374(o.functionCalls); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2267(o.visitedExpressions); + checkUnnamed2375(o.visitedExpressions); } buildCounterTestResult--; } @@ -702,27 +702,27 @@ buildCounterTestRulesetRequest--; } -buildUnnamed2268() { +buildUnnamed2376() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed2268(core.List<api.Issue> o) { +checkUnnamed2376(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); } -buildUnnamed2269() { +buildUnnamed2377() { var o = new core.List<api.TestResult>(); o.add(buildTestResult()); o.add(buildTestResult()); return o; } -checkUnnamed2269(core.List<api.TestResult> o) { +checkUnnamed2377(core.List<api.TestResult> o) { unittest.expect(o, unittest.hasLength(2)); checkTestResult(o[0]); checkTestResult(o[1]); @@ -733,8 +733,8 @@ var o = new api.TestRulesetResponse(); buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - o.issues = buildUnnamed2268(); - o.testResults = buildUnnamed2269(); + o.issues = buildUnnamed2376(); + o.testResults = buildUnnamed2377(); } buildCounterTestRulesetResponse--; return o; @@ -743,20 +743,20 @@ checkTestRulesetResponse(api.TestRulesetResponse o) { buildCounterTestRulesetResponse++; if (buildCounterTestRulesetResponse < 3) { - checkUnnamed2268(o.issues); - checkUnnamed2269(o.testResults); + checkUnnamed2376(o.issues); + checkUnnamed2377(o.testResults); } buildCounterTestRulesetResponse--; } -buildUnnamed2270() { +buildUnnamed2378() { var o = new core.List<api.TestCase>(); o.add(buildTestCase()); o.add(buildTestCase()); return o; } -checkUnnamed2270(core.List<api.TestCase> o) { +checkUnnamed2378(core.List<api.TestCase> o) { unittest.expect(o, unittest.hasLength(2)); checkTestCase(o[0]); checkTestCase(o[1]); @@ -767,7 +767,7 @@ var o = new api.TestSuite(); buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - o.testCases = buildUnnamed2270(); + o.testCases = buildUnnamed2378(); } buildCounterTestSuite--; return o; @@ -776,7 +776,7 @@ checkTestSuite(api.TestSuite o) { buildCounterTestSuite++; if (buildCounterTestSuite < 3) { - checkUnnamed2270(o.testCases); + checkUnnamed2378(o.testCases); } buildCounterTestSuite--; } @@ -1332,9 +1332,9 @@ api.ProjectsReleasesResourceApi res = new api.FirebaserulesApi(mock).projects.releases; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1367,11 +1367,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1382,9 +1382,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReleasesResponse(response);
diff --git a/generated/googleapis/test/firestore/v1_test.dart b/generated/googleapis/test/firestore/v1_test.dart index fe3ca9e..3bb2a81 100644 --- a/generated/googleapis/test/firestore/v1_test.dart +++ b/generated/googleapis/test/firestore/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2441() { +buildUnnamed2555() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2441(core.List<api.Value> o) { +checkUnnamed2555(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -68,7 +68,7 @@ var o = new api.ArrayValue(); buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - o.values = buildUnnamed2441(); + o.values = buildUnnamed2555(); } buildCounterArrayValue--; return o; @@ -77,19 +77,19 @@ checkArrayValue(api.ArrayValue o) { buildCounterArrayValue++; if (buildCounterArrayValue < 3) { - checkUnnamed2441(o.values); + checkUnnamed2555(o.values); } buildCounterArrayValue--; } -buildUnnamed2442() { +buildUnnamed2556() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2442(core.List<core.String> o) { +checkUnnamed2556(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -100,7 +100,7 @@ var o = new api.BatchGetDocumentsRequest(); buildCounterBatchGetDocumentsRequest++; if (buildCounterBatchGetDocumentsRequest < 3) { - o.documents = buildUnnamed2442(); + o.documents = buildUnnamed2556(); o.mask = buildDocumentMask(); o.newTransaction = buildTransactionOptions(); o.readTime = "foo"; @@ -113,7 +113,7 @@ checkBatchGetDocumentsRequest(api.BatchGetDocumentsRequest o) { buildCounterBatchGetDocumentsRequest++; if (buildCounterBatchGetDocumentsRequest < 3) { - checkUnnamed2442(o.documents); + checkUnnamed2556(o.documents); checkDocumentMask(o.mask); checkTransactionOptions(o.newTransaction); unittest.expect(o.readTime, unittest.equals('foo')); @@ -147,6 +147,100 @@ buildCounterBatchGetDocumentsResponse--; } +buildUnnamed2557() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed2557(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')); +} + +buildUnnamed2558() { + var o = new core.List<api.Write>(); + o.add(buildWrite()); + o.add(buildWrite()); + return o; +} + +checkUnnamed2558(core.List<api.Write> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWrite(o[0]); + checkWrite(o[1]); +} + +core.int buildCounterBatchWriteRequest = 0; +buildBatchWriteRequest() { + var o = new api.BatchWriteRequest(); + buildCounterBatchWriteRequest++; + if (buildCounterBatchWriteRequest < 3) { + o.labels = buildUnnamed2557(); + o.writes = buildUnnamed2558(); + } + buildCounterBatchWriteRequest--; + return o; +} + +checkBatchWriteRequest(api.BatchWriteRequest o) { + buildCounterBatchWriteRequest++; + if (buildCounterBatchWriteRequest < 3) { + checkUnnamed2557(o.labels); + checkUnnamed2558(o.writes); + } + buildCounterBatchWriteRequest--; +} + +buildUnnamed2559() { + var o = new core.List<api.Status>(); + o.add(buildStatus()); + o.add(buildStatus()); + return o; +} + +checkUnnamed2559(core.List<api.Status> o) { + unittest.expect(o, unittest.hasLength(2)); + checkStatus(o[0]); + checkStatus(o[1]); +} + +buildUnnamed2560() { + var o = new core.List<api.WriteResult>(); + o.add(buildWriteResult()); + o.add(buildWriteResult()); + return o; +} + +checkUnnamed2560(core.List<api.WriteResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWriteResult(o[0]); + checkWriteResult(o[1]); +} + +core.int buildCounterBatchWriteResponse = 0; +buildBatchWriteResponse() { + var o = new api.BatchWriteResponse(); + buildCounterBatchWriteResponse++; + if (buildCounterBatchWriteResponse < 3) { + o.status = buildUnnamed2559(); + o.writeResults = buildUnnamed2560(); + } + buildCounterBatchWriteResponse--; + return o; +} + +checkBatchWriteResponse(api.BatchWriteResponse o) { + buildCounterBatchWriteResponse++; + if (buildCounterBatchWriteResponse < 3) { + checkUnnamed2559(o.status); + checkUnnamed2560(o.writeResults); + } + buildCounterBatchWriteResponse--; +} + core.int buildCounterBeginTransactionRequest = 0; buildBeginTransactionRequest() { var o = new api.BeginTransactionRequest(); @@ -206,14 +300,14 @@ buildCounterCollectionSelector--; } -buildUnnamed2443() { +buildUnnamed2561() { var o = new core.List<api.Write>(); o.add(buildWrite()); o.add(buildWrite()); return o; } -checkUnnamed2443(core.List<api.Write> o) { +checkUnnamed2561(core.List<api.Write> o) { unittest.expect(o, unittest.hasLength(2)); checkWrite(o[0]); checkWrite(o[1]); @@ -225,7 +319,7 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { o.transaction = "foo"; - o.writes = buildUnnamed2443(); + o.writes = buildUnnamed2561(); } buildCounterCommitRequest--; return o; @@ -235,19 +329,19 @@ buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { unittest.expect(o.transaction, unittest.equals('foo')); - checkUnnamed2443(o.writes); + checkUnnamed2561(o.writes); } buildCounterCommitRequest--; } -buildUnnamed2444() { +buildUnnamed2562() { var o = new core.List<api.WriteResult>(); o.add(buildWriteResult()); o.add(buildWriteResult()); return o; } -checkUnnamed2444(core.List<api.WriteResult> o) { +checkUnnamed2562(core.List<api.WriteResult> o) { unittest.expect(o, unittest.hasLength(2)); checkWriteResult(o[0]); checkWriteResult(o[1]); @@ -259,7 +353,7 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { o.commitTime = "foo"; - o.writeResults = buildUnnamed2444(); + o.writeResults = buildUnnamed2562(); } buildCounterCommitResponse--; return o; @@ -269,19 +363,19 @@ buildCounterCommitResponse++; if (buildCounterCommitResponse < 3) { unittest.expect(o.commitTime, unittest.equals('foo')); - checkUnnamed2444(o.writeResults); + checkUnnamed2562(o.writeResults); } buildCounterCommitResponse--; } -buildUnnamed2445() { +buildUnnamed2563() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed2445(core.List<api.Filter> o) { +checkUnnamed2563(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -292,7 +386,7 @@ var o = new api.CompositeFilter(); buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - o.filters = buildUnnamed2445(); + o.filters = buildUnnamed2563(); o.op = "foo"; } buildCounterCompositeFilter--; @@ -302,20 +396,20 @@ checkCompositeFilter(api.CompositeFilter o) { buildCounterCompositeFilter++; if (buildCounterCompositeFilter < 3) { - checkUnnamed2445(o.filters); + checkUnnamed2563(o.filters); unittest.expect(o.op, unittest.equals('foo')); } buildCounterCompositeFilter--; } -buildUnnamed2446() { +buildUnnamed2564() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2446(core.List<api.Value> o) { +checkUnnamed2564(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -327,7 +421,7 @@ buildCounterCursor++; if (buildCounterCursor < 3) { o.before = true; - o.values = buildUnnamed2446(); + o.values = buildUnnamed2564(); } buildCounterCursor--; return o; @@ -337,19 +431,19 @@ buildCounterCursor++; if (buildCounterCursor < 3) { unittest.expect(o.before, unittest.isTrue); - checkUnnamed2446(o.values); + checkUnnamed2564(o.values); } buildCounterCursor--; } -buildUnnamed2447() { +buildUnnamed2565() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed2447(core.Map<core.String, api.Value> o) { +checkUnnamed2565(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -361,7 +455,7 @@ buildCounterDocument++; if (buildCounterDocument < 3) { o.createTime = "foo"; - o.fields = buildUnnamed2447(); + o.fields = buildUnnamed2565(); o.name = "foo"; o.updateTime = "foo"; } @@ -373,34 +467,34 @@ buildCounterDocument++; if (buildCounterDocument < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2447(o.fields); + checkUnnamed2565(o.fields); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterDocument--; } -buildUnnamed2448() { +buildUnnamed2566() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2448(core.List<core.int> o) { +checkUnnamed2566(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)); } -buildUnnamed2449() { +buildUnnamed2567() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2449(core.List<core.int> o) { +checkUnnamed2567(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)); @@ -412,8 +506,8 @@ buildCounterDocumentChange++; if (buildCounterDocumentChange < 3) { o.document = buildDocument(); - o.removedTargetIds = buildUnnamed2448(); - o.targetIds = buildUnnamed2449(); + o.removedTargetIds = buildUnnamed2566(); + o.targetIds = buildUnnamed2567(); } buildCounterDocumentChange--; return o; @@ -423,20 +517,20 @@ buildCounterDocumentChange++; if (buildCounterDocumentChange < 3) { checkDocument(o.document); - checkUnnamed2448(o.removedTargetIds); - checkUnnamed2449(o.targetIds); + checkUnnamed2566(o.removedTargetIds); + checkUnnamed2567(o.targetIds); } buildCounterDocumentChange--; } -buildUnnamed2450() { +buildUnnamed2568() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2450(core.List<core.int> o) { +checkUnnamed2568(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)); @@ -449,7 +543,7 @@ if (buildCounterDocumentDelete < 3) { o.document = "foo"; o.readTime = "foo"; - o.removedTargetIds = buildUnnamed2450(); + o.removedTargetIds = buildUnnamed2568(); } buildCounterDocumentDelete--; return o; @@ -460,19 +554,19 @@ if (buildCounterDocumentDelete < 3) { unittest.expect(o.document, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); - checkUnnamed2450(o.removedTargetIds); + checkUnnamed2568(o.removedTargetIds); } buildCounterDocumentDelete--; } -buildUnnamed2451() { +buildUnnamed2569() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2451(core.List<core.String> o) { +checkUnnamed2569(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -483,7 +577,7 @@ var o = new api.DocumentMask(); buildCounterDocumentMask++; if (buildCounterDocumentMask < 3) { - o.fieldPaths = buildUnnamed2451(); + o.fieldPaths = buildUnnamed2569(); } buildCounterDocumentMask--; return o; @@ -492,19 +586,19 @@ checkDocumentMask(api.DocumentMask o) { buildCounterDocumentMask++; if (buildCounterDocumentMask < 3) { - checkUnnamed2451(o.fieldPaths); + checkUnnamed2569(o.fieldPaths); } buildCounterDocumentMask--; } -buildUnnamed2452() { +buildUnnamed2570() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2452(core.List<core.int> o) { +checkUnnamed2570(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)); @@ -517,7 +611,7 @@ if (buildCounterDocumentRemove < 3) { o.document = "foo"; o.readTime = "foo"; - o.removedTargetIds = buildUnnamed2452(); + o.removedTargetIds = buildUnnamed2570(); } buildCounterDocumentRemove--; return o; @@ -528,19 +622,19 @@ if (buildCounterDocumentRemove < 3) { unittest.expect(o.document, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); - checkUnnamed2452(o.removedTargetIds); + checkUnnamed2570(o.removedTargetIds); } buildCounterDocumentRemove--; } -buildUnnamed2453() { +buildUnnamed2571() { var o = new core.List<api.FieldTransform>(); o.add(buildFieldTransform()); o.add(buildFieldTransform()); return o; } -checkUnnamed2453(core.List<api.FieldTransform> o) { +checkUnnamed2571(core.List<api.FieldTransform> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldTransform(o[0]); checkFieldTransform(o[1]); @@ -552,7 +646,7 @@ buildCounterDocumentTransform++; if (buildCounterDocumentTransform < 3) { o.document = "foo"; - o.fieldTransforms = buildUnnamed2453(); + o.fieldTransforms = buildUnnamed2571(); } buildCounterDocumentTransform--; return o; @@ -562,19 +656,19 @@ buildCounterDocumentTransform++; if (buildCounterDocumentTransform < 3) { unittest.expect(o.document, unittest.equals('foo')); - checkUnnamed2453(o.fieldTransforms); + checkUnnamed2571(o.fieldTransforms); } buildCounterDocumentTransform--; } -buildUnnamed2454() { +buildUnnamed2572() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2454(core.List<core.String> o) { +checkUnnamed2572(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -585,7 +679,7 @@ var o = new api.DocumentsTarget(); buildCounterDocumentsTarget++; if (buildCounterDocumentsTarget < 3) { - o.documents = buildUnnamed2454(); + o.documents = buildUnnamed2572(); } buildCounterDocumentsTarget--; return o; @@ -594,7 +688,7 @@ checkDocumentsTarget(api.DocumentsTarget o) { buildCounterDocumentsTarget++; if (buildCounterDocumentsTarget < 3) { - checkUnnamed2454(o.documents); + checkUnnamed2572(o.documents); } buildCounterDocumentsTarget--; } @@ -731,14 +825,14 @@ buildCounterFilter--; } -buildUnnamed2455() { +buildUnnamed2573() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2455(core.List<core.String> o) { +checkUnnamed2573(core.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 +843,7 @@ var o = new api.GoogleFirestoreAdminV1ExportDocumentsMetadata(); buildCounterGoogleFirestoreAdminV1ExportDocumentsMetadata++; if (buildCounterGoogleFirestoreAdminV1ExportDocumentsMetadata < 3) { - o.collectionIds = buildUnnamed2455(); + o.collectionIds = buildUnnamed2573(); o.endTime = "foo"; o.operationState = "foo"; o.outputUriPrefix = "foo"; @@ -765,7 +859,7 @@ api.GoogleFirestoreAdminV1ExportDocumentsMetadata o) { buildCounterGoogleFirestoreAdminV1ExportDocumentsMetadata++; if (buildCounterGoogleFirestoreAdminV1ExportDocumentsMetadata < 3) { - checkUnnamed2455(o.collectionIds); + checkUnnamed2573(o.collectionIds); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.operationState, unittest.equals('foo')); unittest.expect(o.outputUriPrefix, unittest.equals('foo')); @@ -776,14 +870,14 @@ buildCounterGoogleFirestoreAdminV1ExportDocumentsMetadata--; } -buildUnnamed2456() { +buildUnnamed2574() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2456(core.List<core.String> o) { +checkUnnamed2574(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -794,7 +888,7 @@ var o = new api.GoogleFirestoreAdminV1ExportDocumentsRequest(); buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest++; if (buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest < 3) { - o.collectionIds = buildUnnamed2456(); + o.collectionIds = buildUnnamed2574(); o.outputUriPrefix = "foo"; } buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest--; @@ -805,7 +899,7 @@ api.GoogleFirestoreAdminV1ExportDocumentsRequest o) { buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest++; if (buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest < 3) { - checkUnnamed2456(o.collectionIds); + checkUnnamed2574(o.collectionIds); unittest.expect(o.outputUriPrefix, unittest.equals('foo')); } buildCounterGoogleFirestoreAdminV1ExportDocumentsRequest--; @@ -852,14 +946,14 @@ buildCounterGoogleFirestoreAdminV1Field--; } -buildUnnamed2457() { +buildUnnamed2575() { var o = new core.List<api.GoogleFirestoreAdminV1IndexConfigDelta>(); o.add(buildGoogleFirestoreAdminV1IndexConfigDelta()); o.add(buildGoogleFirestoreAdminV1IndexConfigDelta()); return o; } -checkUnnamed2457(core.List<api.GoogleFirestoreAdminV1IndexConfigDelta> o) { +checkUnnamed2575(core.List<api.GoogleFirestoreAdminV1IndexConfigDelta> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleFirestoreAdminV1IndexConfigDelta(o[0]); checkGoogleFirestoreAdminV1IndexConfigDelta(o[1]); @@ -872,7 +966,7 @@ if (buildCounterGoogleFirestoreAdminV1FieldOperationMetadata < 3) { o.endTime = "foo"; o.field = "foo"; - o.indexConfigDeltas = buildUnnamed2457(); + o.indexConfigDeltas = buildUnnamed2575(); o.progressBytes = buildGoogleFirestoreAdminV1Progress(); o.progressDocuments = buildGoogleFirestoreAdminV1Progress(); o.startTime = "foo"; @@ -888,7 +982,7 @@ if (buildCounterGoogleFirestoreAdminV1FieldOperationMetadata < 3) { unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.field, unittest.equals('foo')); - checkUnnamed2457(o.indexConfigDeltas); + checkUnnamed2575(o.indexConfigDeltas); checkGoogleFirestoreAdminV1Progress(o.progressBytes); checkGoogleFirestoreAdminV1Progress(o.progressDocuments); unittest.expect(o.startTime, unittest.equals('foo')); @@ -897,14 +991,14 @@ buildCounterGoogleFirestoreAdminV1FieldOperationMetadata--; } -buildUnnamed2458() { +buildUnnamed2576() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2458(core.List<core.String> o) { +checkUnnamed2576(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -915,7 +1009,7 @@ var o = new api.GoogleFirestoreAdminV1ImportDocumentsMetadata(); buildCounterGoogleFirestoreAdminV1ImportDocumentsMetadata++; if (buildCounterGoogleFirestoreAdminV1ImportDocumentsMetadata < 3) { - o.collectionIds = buildUnnamed2458(); + o.collectionIds = buildUnnamed2576(); o.endTime = "foo"; o.inputUriPrefix = "foo"; o.operationState = "foo"; @@ -931,7 +1025,7 @@ api.GoogleFirestoreAdminV1ImportDocumentsMetadata o) { buildCounterGoogleFirestoreAdminV1ImportDocumentsMetadata++; if (buildCounterGoogleFirestoreAdminV1ImportDocumentsMetadata < 3) { - checkUnnamed2458(o.collectionIds); + checkUnnamed2576(o.collectionIds); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.inputUriPrefix, unittest.equals('foo')); unittest.expect(o.operationState, unittest.equals('foo')); @@ -942,14 +1036,14 @@ buildCounterGoogleFirestoreAdminV1ImportDocumentsMetadata--; } -buildUnnamed2459() { +buildUnnamed2577() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2459(core.List<core.String> o) { +checkUnnamed2577(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -960,7 +1054,7 @@ var o = new api.GoogleFirestoreAdminV1ImportDocumentsRequest(); buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest++; if (buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest < 3) { - o.collectionIds = buildUnnamed2459(); + o.collectionIds = buildUnnamed2577(); o.inputUriPrefix = "foo"; } buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest--; @@ -971,20 +1065,20 @@ api.GoogleFirestoreAdminV1ImportDocumentsRequest o) { buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest++; if (buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest < 3) { - checkUnnamed2459(o.collectionIds); + checkUnnamed2577(o.collectionIds); unittest.expect(o.inputUriPrefix, unittest.equals('foo')); } buildCounterGoogleFirestoreAdminV1ImportDocumentsRequest--; } -buildUnnamed2460() { +buildUnnamed2578() { var o = new core.List<api.GoogleFirestoreAdminV1IndexField>(); o.add(buildGoogleFirestoreAdminV1IndexField()); o.add(buildGoogleFirestoreAdminV1IndexField()); return o; } -checkUnnamed2460(core.List<api.GoogleFirestoreAdminV1IndexField> o) { +checkUnnamed2578(core.List<api.GoogleFirestoreAdminV1IndexField> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleFirestoreAdminV1IndexField(o[0]); checkGoogleFirestoreAdminV1IndexField(o[1]); @@ -995,7 +1089,7 @@ var o = new api.GoogleFirestoreAdminV1Index(); buildCounterGoogleFirestoreAdminV1Index++; if (buildCounterGoogleFirestoreAdminV1Index < 3) { - o.fields = buildUnnamed2460(); + o.fields = buildUnnamed2578(); o.name = "foo"; o.queryScope = "foo"; o.state = "foo"; @@ -1007,7 +1101,7 @@ checkGoogleFirestoreAdminV1Index(api.GoogleFirestoreAdminV1Index o) { buildCounterGoogleFirestoreAdminV1Index++; if (buildCounterGoogleFirestoreAdminV1Index < 3) { - checkUnnamed2460(o.fields); + checkUnnamed2578(o.fields); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.queryScope, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -1015,14 +1109,14 @@ buildCounterGoogleFirestoreAdminV1Index--; } -buildUnnamed2461() { +buildUnnamed2579() { var o = new core.List<api.GoogleFirestoreAdminV1Index>(); o.add(buildGoogleFirestoreAdminV1Index()); o.add(buildGoogleFirestoreAdminV1Index()); return o; } -checkUnnamed2461(core.List<api.GoogleFirestoreAdminV1Index> o) { +checkUnnamed2579(core.List<api.GoogleFirestoreAdminV1Index> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleFirestoreAdminV1Index(o[0]); checkGoogleFirestoreAdminV1Index(o[1]); @@ -1034,7 +1128,7 @@ buildCounterGoogleFirestoreAdminV1IndexConfig++; if (buildCounterGoogleFirestoreAdminV1IndexConfig < 3) { o.ancestorField = "foo"; - o.indexes = buildUnnamed2461(); + o.indexes = buildUnnamed2579(); o.reverting = true; o.usesAncestorConfig = true; } @@ -1047,7 +1141,7 @@ buildCounterGoogleFirestoreAdminV1IndexConfig++; if (buildCounterGoogleFirestoreAdminV1IndexConfig < 3) { unittest.expect(o.ancestorField, unittest.equals('foo')); - checkUnnamed2461(o.indexes); + checkUnnamed2579(o.indexes); unittest.expect(o.reverting, unittest.isTrue); unittest.expect(o.usesAncestorConfig, unittest.isTrue); } @@ -1129,14 +1223,14 @@ buildCounterGoogleFirestoreAdminV1IndexOperationMetadata--; } -buildUnnamed2462() { +buildUnnamed2580() { var o = new core.List<api.GoogleFirestoreAdminV1Field>(); o.add(buildGoogleFirestoreAdminV1Field()); o.add(buildGoogleFirestoreAdminV1Field()); return o; } -checkUnnamed2462(core.List<api.GoogleFirestoreAdminV1Field> o) { +checkUnnamed2580(core.List<api.GoogleFirestoreAdminV1Field> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleFirestoreAdminV1Field(o[0]); checkGoogleFirestoreAdminV1Field(o[1]); @@ -1147,7 +1241,7 @@ var o = new api.GoogleFirestoreAdminV1ListFieldsResponse(); buildCounterGoogleFirestoreAdminV1ListFieldsResponse++; if (buildCounterGoogleFirestoreAdminV1ListFieldsResponse < 3) { - o.fields = buildUnnamed2462(); + o.fields = buildUnnamed2580(); o.nextPageToken = "foo"; } buildCounterGoogleFirestoreAdminV1ListFieldsResponse--; @@ -1158,20 +1252,20 @@ api.GoogleFirestoreAdminV1ListFieldsResponse o) { buildCounterGoogleFirestoreAdminV1ListFieldsResponse++; if (buildCounterGoogleFirestoreAdminV1ListFieldsResponse < 3) { - checkUnnamed2462(o.fields); + checkUnnamed2580(o.fields); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleFirestoreAdminV1ListFieldsResponse--; } -buildUnnamed2463() { +buildUnnamed2581() { var o = new core.List<api.GoogleFirestoreAdminV1Index>(); o.add(buildGoogleFirestoreAdminV1Index()); o.add(buildGoogleFirestoreAdminV1Index()); return o; } -checkUnnamed2463(core.List<api.GoogleFirestoreAdminV1Index> o) { +checkUnnamed2581(core.List<api.GoogleFirestoreAdminV1Index> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleFirestoreAdminV1Index(o[0]); checkGoogleFirestoreAdminV1Index(o[1]); @@ -1182,7 +1276,7 @@ var o = new api.GoogleFirestoreAdminV1ListIndexesResponse(); buildCounterGoogleFirestoreAdminV1ListIndexesResponse++; if (buildCounterGoogleFirestoreAdminV1ListIndexesResponse < 3) { - o.indexes = buildUnnamed2463(); + o.indexes = buildUnnamed2581(); o.nextPageToken = "foo"; } buildCounterGoogleFirestoreAdminV1ListIndexesResponse--; @@ -1193,7 +1287,7 @@ api.GoogleFirestoreAdminV1ListIndexesResponse o) { buildCounterGoogleFirestoreAdminV1ListIndexesResponse++; if (buildCounterGoogleFirestoreAdminV1ListIndexesResponse < 3) { - checkUnnamed2463(o.indexes); + checkUnnamed2581(o.indexes); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleFirestoreAdminV1ListIndexesResponse--; @@ -1252,14 +1346,14 @@ buildCounterGoogleLongrunningCancelOperationRequest--; } -buildUnnamed2464() { +buildUnnamed2582() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed2464(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed2582(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -1271,7 +1365,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2464(); + o.operations = buildUnnamed2582(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -1282,12 +1376,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2464(o.operations); + checkUnnamed2582(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed2465() { +buildUnnamed2583() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1302,7 +1396,7 @@ return o; } -checkUnnamed2465(core.Map<core.String, core.Object> o) { +checkUnnamed2583(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)); @@ -1316,7 +1410,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2466() { +buildUnnamed2584() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1331,7 +1425,7 @@ return o; } -checkUnnamed2466(core.Map<core.String, core.Object> o) { +checkUnnamed2584(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)); @@ -1352,9 +1446,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2465(); + o.metadata = buildUnnamed2583(); o.name = "foo"; - o.response = buildUnnamed2466(); + o.response = buildUnnamed2584(); } buildCounterGoogleLongrunningOperation--; return o; @@ -1365,9 +1459,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2465(o.metadata); + checkUnnamed2583(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2466(o.response); + checkUnnamed2584(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -1414,14 +1508,14 @@ buildCounterListCollectionIdsRequest--; } -buildUnnamed2467() { +buildUnnamed2585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2467(core.List<core.String> o) { +checkUnnamed2585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1432,7 +1526,7 @@ var o = new api.ListCollectionIdsResponse(); buildCounterListCollectionIdsResponse++; if (buildCounterListCollectionIdsResponse < 3) { - o.collectionIds = buildUnnamed2467(); + o.collectionIds = buildUnnamed2585(); o.nextPageToken = "foo"; } buildCounterListCollectionIdsResponse--; @@ -1442,20 +1536,20 @@ checkListCollectionIdsResponse(api.ListCollectionIdsResponse o) { buildCounterListCollectionIdsResponse++; if (buildCounterListCollectionIdsResponse < 3) { - checkUnnamed2467(o.collectionIds); + checkUnnamed2585(o.collectionIds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCollectionIdsResponse--; } -buildUnnamed2468() { +buildUnnamed2586() { var o = new core.List<api.Document>(); o.add(buildDocument()); o.add(buildDocument()); return o; } -checkUnnamed2468(core.List<api.Document> o) { +checkUnnamed2586(core.List<api.Document> o) { unittest.expect(o, unittest.hasLength(2)); checkDocument(o[0]); checkDocument(o[1]); @@ -1466,7 +1560,7 @@ var o = new api.ListDocumentsResponse(); buildCounterListDocumentsResponse++; if (buildCounterListDocumentsResponse < 3) { - o.documents = buildUnnamed2468(); + o.documents = buildUnnamed2586(); o.nextPageToken = "foo"; } buildCounterListDocumentsResponse--; @@ -1476,20 +1570,20 @@ checkListDocumentsResponse(api.ListDocumentsResponse o) { buildCounterListDocumentsResponse++; if (buildCounterListDocumentsResponse < 3) { - checkUnnamed2468(o.documents); + checkUnnamed2586(o.documents); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDocumentsResponse--; } -buildUnnamed2469() { +buildUnnamed2587() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2469(core.List<api.Location> o) { +checkUnnamed2587(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1500,7 +1594,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed2469(); + o.locations = buildUnnamed2587(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -1510,20 +1604,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed2469(o.locations); + checkUnnamed2587(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed2470() { +buildUnnamed2588() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2470(core.Map<core.String, core.String> o) { +checkUnnamed2588(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')); @@ -1535,7 +1629,7 @@ buildCounterListenRequest++; if (buildCounterListenRequest < 3) { o.addTarget = buildTarget(); - o.labels = buildUnnamed2470(); + o.labels = buildUnnamed2588(); o.removeTarget = 42; } buildCounterListenRequest--; @@ -1546,7 +1640,7 @@ buildCounterListenRequest++; if (buildCounterListenRequest < 3) { checkTarget(o.addTarget); - checkUnnamed2470(o.labels); + checkUnnamed2588(o.labels); unittest.expect(o.removeTarget, unittest.equals(42)); } buildCounterListenRequest--; @@ -1579,20 +1673,20 @@ buildCounterListenResponse--; } -buildUnnamed2471() { +buildUnnamed2589() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2471(core.Map<core.String, core.String> o) { +checkUnnamed2589(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')); } -buildUnnamed2472() { +buildUnnamed2590() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1607,7 +1701,7 @@ return o; } -checkUnnamed2472(core.Map<core.String, core.Object> o) { +checkUnnamed2590(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)); @@ -1627,9 +1721,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed2471(); + o.labels = buildUnnamed2589(); o.locationId = "foo"; - o.metadata = buildUnnamed2472(); + o.metadata = buildUnnamed2590(); o.name = "foo"; } buildCounterLocation--; @@ -1640,22 +1734,22 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2471(o.labels); + checkUnnamed2589(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed2472(o.metadata); + checkUnnamed2590(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed2473() { +buildUnnamed2591() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed2473(core.Map<core.String, api.Value> o) { +checkUnnamed2591(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -1666,7 +1760,7 @@ var o = new api.MapValue(); buildCounterMapValue++; if (buildCounterMapValue < 3) { - o.fields = buildUnnamed2473(); + o.fields = buildUnnamed2591(); } buildCounterMapValue--; return o; @@ -1675,7 +1769,7 @@ checkMapValue(api.MapValue o) { buildCounterMapValue++; if (buildCounterMapValue < 3) { - checkUnnamed2473(o.fields); + checkUnnamed2591(o.fields); } buildCounterMapValue--; } @@ -1701,6 +1795,65 @@ buildCounterOrder--; } +core.int buildCounterPartitionQueryRequest = 0; +buildPartitionQueryRequest() { + var o = new api.PartitionQueryRequest(); + buildCounterPartitionQueryRequest++; + if (buildCounterPartitionQueryRequest < 3) { + o.pageSize = 42; + o.pageToken = "foo"; + o.partitionCount = "foo"; + o.structuredQuery = buildStructuredQuery(); + } + buildCounterPartitionQueryRequest--; + return o; +} + +checkPartitionQueryRequest(api.PartitionQueryRequest o) { + buildCounterPartitionQueryRequest++; + if (buildCounterPartitionQueryRequest < 3) { + unittest.expect(o.pageSize, unittest.equals(42)); + unittest.expect(o.pageToken, unittest.equals('foo')); + unittest.expect(o.partitionCount, unittest.equals('foo')); + checkStructuredQuery(o.structuredQuery); + } + buildCounterPartitionQueryRequest--; +} + +buildUnnamed2592() { + var o = new core.List<api.Cursor>(); + o.add(buildCursor()); + o.add(buildCursor()); + return o; +} + +checkUnnamed2592(core.List<api.Cursor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCursor(o[0]); + checkCursor(o[1]); +} + +core.int buildCounterPartitionQueryResponse = 0; +buildPartitionQueryResponse() { + var o = new api.PartitionQueryResponse(); + buildCounterPartitionQueryResponse++; + if (buildCounterPartitionQueryResponse < 3) { + o.nextPageToken = "foo"; + o.partitions = buildUnnamed2592(); + } + buildCounterPartitionQueryResponse--; + return o; +} + +checkPartitionQueryResponse(api.PartitionQueryResponse o) { + buildCounterPartitionQueryResponse++; + if (buildCounterPartitionQueryResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed2592(o.partitions); + } + buildCounterPartitionQueryResponse--; +} + core.int buildCounterPrecondition = 0; buildPrecondition() { var o = new api.Precondition(); @@ -1722,14 +1875,14 @@ buildCounterPrecondition--; } -buildUnnamed2474() { +buildUnnamed2593() { var o = new core.List<api.FieldReference>(); o.add(buildFieldReference()); o.add(buildFieldReference()); return o; } -checkUnnamed2474(core.List<api.FieldReference> o) { +checkUnnamed2593(core.List<api.FieldReference> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldReference(o[0]); checkFieldReference(o[1]); @@ -1740,7 +1893,7 @@ var o = new api.Projection(); buildCounterProjection++; if (buildCounterProjection < 3) { - o.fields = buildUnnamed2474(); + o.fields = buildUnnamed2593(); } buildCounterProjection--; return o; @@ -1749,7 +1902,7 @@ checkProjection(api.Projection o) { buildCounterProjection++; if (buildCounterProjection < 3) { - checkUnnamed2474(o.fields); + checkUnnamed2593(o.fields); } buildCounterProjection--; } @@ -1882,7 +2035,7 @@ buildCounterRunQueryResponse--; } -buildUnnamed2475() { +buildUnnamed2594() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1897,7 +2050,7 @@ return o; } -checkUnnamed2475(core.Map<core.String, core.Object> o) { +checkUnnamed2594(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)); @@ -1911,17 +2064,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2476() { +buildUnnamed2595() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2475()); - o.add(buildUnnamed2475()); + o.add(buildUnnamed2594()); + o.add(buildUnnamed2594()); return o; } -checkUnnamed2476(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2595(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2475(o[0]); - checkUnnamed2475(o[1]); + checkUnnamed2594(o[0]); + checkUnnamed2594(o[1]); } core.int buildCounterStatus = 0; @@ -1930,7 +2083,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2476(); + o.details = buildUnnamed2595(); o.message = "foo"; } buildCounterStatus--; @@ -1941,33 +2094,33 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2476(o.details); + checkUnnamed2595(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2477() { +buildUnnamed2596() { var o = new core.List<api.CollectionSelector>(); o.add(buildCollectionSelector()); o.add(buildCollectionSelector()); return o; } -checkUnnamed2477(core.List<api.CollectionSelector> o) { +checkUnnamed2596(core.List<api.CollectionSelector> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectionSelector(o[0]); checkCollectionSelector(o[1]); } -buildUnnamed2478() { +buildUnnamed2597() { var o = new core.List<api.Order>(); o.add(buildOrder()); o.add(buildOrder()); return o; } -checkUnnamed2478(core.List<api.Order> o) { +checkUnnamed2597(core.List<api.Order> o) { unittest.expect(o, unittest.hasLength(2)); checkOrder(o[0]); checkOrder(o[1]); @@ -1979,10 +2132,10 @@ buildCounterStructuredQuery++; if (buildCounterStructuredQuery < 3) { o.endAt = buildCursor(); - o.from = buildUnnamed2477(); + o.from = buildUnnamed2596(); o.limit = 42; o.offset = 42; - o.orderBy = buildUnnamed2478(); + o.orderBy = buildUnnamed2597(); o.select = buildProjection(); o.startAt = buildCursor(); o.where = buildFilter(); @@ -1995,10 +2148,10 @@ buildCounterStructuredQuery++; if (buildCounterStructuredQuery < 3) { checkCursor(o.endAt); - checkUnnamed2477(o.from); + checkUnnamed2596(o.from); unittest.expect(o.limit, unittest.equals(42)); unittest.expect(o.offset, unittest.equals(42)); - checkUnnamed2478(o.orderBy); + checkUnnamed2597(o.orderBy); checkProjection(o.select); checkCursor(o.startAt); checkFilter(o.where); @@ -2035,14 +2188,14 @@ buildCounterTarget--; } -buildUnnamed2479() { +buildUnnamed2598() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2479(core.List<core.int> o) { +checkUnnamed2598(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)); @@ -2057,7 +2210,7 @@ o.readTime = "foo"; o.resumeToken = "foo"; o.targetChangeType = "foo"; - o.targetIds = buildUnnamed2479(); + o.targetIds = buildUnnamed2598(); } buildCounterTargetChange--; return o; @@ -2070,7 +2223,7 @@ unittest.expect(o.readTime, unittest.equals('foo')); unittest.expect(o.resumeToken, unittest.equals('foo')); unittest.expect(o.targetChangeType, unittest.equals('foo')); - checkUnnamed2479(o.targetIds); + checkUnnamed2598(o.targetIds); } buildCounterTargetChange--; } @@ -2156,14 +2309,14 @@ buildCounterValue--; } -buildUnnamed2480() { +buildUnnamed2599() { var o = new core.List<api.FieldTransform>(); o.add(buildFieldTransform()); o.add(buildFieldTransform()); return o; } -checkUnnamed2480(core.List<api.FieldTransform> o) { +checkUnnamed2599(core.List<api.FieldTransform> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldTransform(o[0]); checkFieldTransform(o[1]); @@ -2179,7 +2332,7 @@ o.transform = buildDocumentTransform(); o.update = buildDocument(); o.updateMask = buildDocumentMask(); - o.updateTransforms = buildUnnamed2480(); + o.updateTransforms = buildUnnamed2599(); } buildCounterWrite--; return o; @@ -2193,32 +2346,32 @@ checkDocumentTransform(o.transform); checkDocument(o.update); checkDocumentMask(o.updateMask); - checkUnnamed2480(o.updateTransforms); + checkUnnamed2599(o.updateTransforms); } buildCounterWrite--; } -buildUnnamed2481() { +buildUnnamed2600() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2481(core.Map<core.String, core.String> o) { +checkUnnamed2600(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')); } -buildUnnamed2482() { +buildUnnamed2601() { var o = new core.List<api.Write>(); o.add(buildWrite()); o.add(buildWrite()); return o; } -checkUnnamed2482(core.List<api.Write> o) { +checkUnnamed2601(core.List<api.Write> o) { unittest.expect(o, unittest.hasLength(2)); checkWrite(o[0]); checkWrite(o[1]); @@ -2229,10 +2382,10 @@ var o = new api.WriteRequest(); buildCounterWriteRequest++; if (buildCounterWriteRequest < 3) { - o.labels = buildUnnamed2481(); + o.labels = buildUnnamed2600(); o.streamId = "foo"; o.streamToken = "foo"; - o.writes = buildUnnamed2482(); + o.writes = buildUnnamed2601(); } buildCounterWriteRequest--; return o; @@ -2241,22 +2394,22 @@ checkWriteRequest(api.WriteRequest o) { buildCounterWriteRequest++; if (buildCounterWriteRequest < 3) { - checkUnnamed2481(o.labels); + checkUnnamed2600(o.labels); unittest.expect(o.streamId, unittest.equals('foo')); unittest.expect(o.streamToken, unittest.equals('foo')); - checkUnnamed2482(o.writes); + checkUnnamed2601(o.writes); } buildCounterWriteRequest--; } -buildUnnamed2483() { +buildUnnamed2602() { var o = new core.List<api.WriteResult>(); o.add(buildWriteResult()); o.add(buildWriteResult()); return o; } -checkUnnamed2483(core.List<api.WriteResult> o) { +checkUnnamed2602(core.List<api.WriteResult> o) { unittest.expect(o, unittest.hasLength(2)); checkWriteResult(o[0]); checkWriteResult(o[1]); @@ -2270,7 +2423,7 @@ o.commitTime = "foo"; o.streamId = "foo"; o.streamToken = "foo"; - o.writeResults = buildUnnamed2483(); + o.writeResults = buildUnnamed2602(); } buildCounterWriteResponse--; return o; @@ -2282,19 +2435,19 @@ unittest.expect(o.commitTime, unittest.equals('foo')); unittest.expect(o.streamId, unittest.equals('foo')); unittest.expect(o.streamToken, unittest.equals('foo')); - checkUnnamed2483(o.writeResults); + checkUnnamed2602(o.writeResults); } buildCounterWriteResponse--; } -buildUnnamed2484() { +buildUnnamed2603() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed2484(core.List<api.Value> o) { +checkUnnamed2603(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -2305,7 +2458,7 @@ var o = new api.WriteResult(); buildCounterWriteResult++; if (buildCounterWriteResult < 3) { - o.transformResults = buildUnnamed2484(); + o.transformResults = buildUnnamed2603(); o.updateTime = "foo"; } buildCounterWriteResult--; @@ -2315,72 +2468,72 @@ checkWriteResult(api.WriteResult o) { buildCounterWriteResult++; if (buildCounterWriteResult < 3) { - checkUnnamed2484(o.transformResults); + checkUnnamed2603(o.transformResults); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterWriteResult--; } -buildUnnamed2485() { +buildUnnamed2604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2485(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')); } -buildUnnamed2486() { +buildUnnamed2605() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2486(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')); } -buildUnnamed2487() { +buildUnnamed2606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2487(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')); } -buildUnnamed2488() { +buildUnnamed2607() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2488(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')); } -buildUnnamed2489() { +buildUnnamed2608() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2489(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')); @@ -2411,6 +2564,22 @@ }); }); + unittest.group("obj-schema-BatchWriteRequest", () { + unittest.test("to-json--from-json", () { + var o = buildBatchWriteRequest(); + var od = new api.BatchWriteRequest.fromJson(o.toJson()); + checkBatchWriteRequest(od); + }); + }); + + unittest.group("obj-schema-BatchWriteResponse", () { + unittest.test("to-json--from-json", () { + var o = buildBatchWriteResponse(); + var od = new api.BatchWriteResponse.fromJson(o.toJson()); + checkBatchWriteResponse(od); + }); + }); + unittest.group("obj-schema-BeginTransactionRequest", () { unittest.test("to-json--from-json", () { var o = buildBeginTransactionRequest(); @@ -2819,6 +2988,22 @@ }); }); + unittest.group("obj-schema-PartitionQueryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildPartitionQueryRequest(); + var od = new api.PartitionQueryRequest.fromJson(o.toJson()); + checkPartitionQueryRequest(od); + }); + }); + + unittest.group("obj-schema-PartitionQueryResponse", () { + unittest.test("to-json--from-json", () { + var o = buildPartitionQueryResponse(); + var od = new api.PartitionQueryResponse.fromJson(o.toJson()); + checkPartitionQueryResponse(od); + }); + }); + unittest.group("obj-schema-Precondition", () { unittest.test("to-json--from-json", () { var o = buildPrecondition(); @@ -3568,6 +3753,62 @@ }))); }); + unittest.test("method--batchWrite", () { + var mock = new HttpServerMock(); + api.ProjectsDatabasesDocumentsResourceApi res = + new api.FirestoreApi(mock).projects.databases.documents; + var arg_request = buildBatchWriteRequest(); + var arg_database = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.BatchWriteRequest.fromJson(json); + checkBatchWriteRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildBatchWriteResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .batchWrite(arg_request, arg_database, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkBatchWriteResponse(response); + }))); + }); + unittest.test("method--beginTransaction", () { var mock = new HttpServerMock(); api.ProjectsDatabasesDocumentsResourceApi res = @@ -3687,8 +3928,8 @@ var arg_request = buildDocument(); var arg_parent = "foo"; var arg_collectionId = "foo"; + var arg_mask_fieldPaths = buildUnnamed2604(); var arg_documentId = "foo"; - var arg_mask_fieldPaths = buildUnnamed2485(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Document.fromJson(json); @@ -3725,9 +3966,9 @@ } } unittest.expect( - queryMap["documentId"].first, unittest.equals(arg_documentId)); - unittest.expect( queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); + unittest.expect( + queryMap["documentId"].first, unittest.equals(arg_documentId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3738,8 +3979,8 @@ }), true); res .createDocument(arg_request, arg_parent, arg_collectionId, - documentId: arg_documentId, mask_fieldPaths: arg_mask_fieldPaths, + documentId: arg_documentId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDocument(response); @@ -3751,8 +3992,8 @@ api.ProjectsDatabasesDocumentsResourceApi res = new api.FirestoreApi(mock).projects.databases.documents; var arg_name = "foo"; - var arg_currentDocument_updateTime = "foo"; var arg_currentDocument_exists = true; + var arg_currentDocument_updateTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3785,10 +4026,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["currentDocument.updateTime"].first, - unittest.equals(arg_currentDocument_updateTime)); unittest.expect(queryMap["currentDocument.exists"].first, unittest.equals("$arg_currentDocument_exists")); + unittest.expect(queryMap["currentDocument.updateTime"].first, + unittest.equals(arg_currentDocument_updateTime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3799,8 +4040,8 @@ }), true); res .delete(arg_name, - currentDocument_updateTime: arg_currentDocument_updateTime, currentDocument_exists: arg_currentDocument_exists, + currentDocument_updateTime: arg_currentDocument_updateTime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEmpty(response); @@ -3812,8 +4053,8 @@ api.ProjectsDatabasesDocumentsResourceApi res = new api.FirestoreApi(mock).projects.databases.documents; var arg_name = "foo"; - var arg_mask_fieldPaths = buildUnnamed2486(); var arg_readTime = "foo"; + var arg_mask_fieldPaths = buildUnnamed2605(); var arg_transaction = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3848,10 +4089,10 @@ } } unittest.expect( - queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); - unittest.expect( queryMap["readTime"].first, unittest.equals(arg_readTime)); unittest.expect( + queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); + unittest.expect( queryMap["transaction"].first, unittest.equals(arg_transaction)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3863,8 +4104,8 @@ }), true); res .get(arg_name, - mask_fieldPaths: arg_mask_fieldPaths, readTime: arg_readTime, + mask_fieldPaths: arg_mask_fieldPaths, transaction: arg_transaction, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3878,13 +4119,13 @@ new api.FirestoreApi(mock).projects.databases.documents; var arg_parent = "foo"; var arg_collectionId = "foo"; - var arg_mask_fieldPaths = buildUnnamed2487(); - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_transaction = "foo"; - var arg_readTime = "foo"; var arg_orderBy = "foo"; + var arg_readTime = "foo"; var arg_showMissing = true; + var arg_pageSize = 42; + var arg_mask_fieldPaths = buildUnnamed2606(); + var arg_pageToken = "foo"; + var arg_transaction = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3918,19 +4159,19 @@ } } unittest.expect( - queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["transaction"].first, unittest.equals(arg_transaction)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["readTime"].first, unittest.equals(arg_readTime)); unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( queryMap["showMissing"].first, unittest.equals("$arg_showMissing")); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["transaction"].first, unittest.equals(arg_transaction)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3941,13 +4182,13 @@ }), true); res .list(arg_parent, arg_collectionId, + orderBy: arg_orderBy, + readTime: arg_readTime, + showMissing: arg_showMissing, + pageSize: arg_pageSize, mask_fieldPaths: arg_mask_fieldPaths, pageToken: arg_pageToken, - pageSize: arg_pageSize, transaction: arg_transaction, - readTime: arg_readTime, - orderBy: arg_orderBy, - showMissing: arg_showMissing, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDocumentsResponse(response); @@ -4066,15 +4307,71 @@ }))); }); + unittest.test("method--partitionQuery", () { + var mock = new HttpServerMock(); + api.ProjectsDatabasesDocumentsResourceApi res = + new api.FirestoreApi(mock).projects.databases.documents; + var arg_request = buildPartitionQueryRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PartitionQueryRequest.fromJson(json); + checkPartitionQueryRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPartitionQueryResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .partitionQuery(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPartitionQueryResponse(response); + }))); + }); + unittest.test("method--patch", () { var mock = new HttpServerMock(); api.ProjectsDatabasesDocumentsResourceApi res = new api.FirestoreApi(mock).projects.databases.documents; var arg_request = buildDocument(); var arg_name = "foo"; + var arg_updateMask_fieldPaths = buildUnnamed2607(); var arg_currentDocument_exists = true; - var arg_updateMask_fieldPaths = buildUnnamed2488(); - var arg_mask_fieldPaths = buildUnnamed2489(); + var arg_mask_fieldPaths = buildUnnamed2608(); var arg_currentDocument_updateTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4111,10 +4408,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["currentDocument.exists"].first, - unittest.equals("$arg_currentDocument_exists")); unittest.expect(queryMap["updateMask.fieldPaths"], unittest.equals(arg_updateMask_fieldPaths)); + unittest.expect(queryMap["currentDocument.exists"].first, + unittest.equals("$arg_currentDocument_exists")); unittest.expect( queryMap["mask.fieldPaths"], unittest.equals(arg_mask_fieldPaths)); unittest.expect(queryMap["currentDocument.updateTime"].first, @@ -4129,8 +4426,8 @@ }), true); res .patch(arg_request, arg_name, - currentDocument_exists: arg_currentDocument_exists, updateMask_fieldPaths: arg_updateMask_fieldPaths, + currentDocument_exists: arg_currentDocument_exists, mask_fieldPaths: arg_mask_fieldPaths, currentDocument_updateTime: arg_currentDocument_updateTime, $fields: arg_$fields) @@ -4476,8 +4773,8 @@ new api.FirestoreApi(mock).projects.databases.operations; var arg_name = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4511,10 +4808,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4527,8 +4824,8 @@ res .list(arg_name, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response); @@ -4594,8 +4891,8 @@ api.ProjectsLocationsResourceApi res = new api.FirestoreApi(mock).projects.locations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4629,9 +4926,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4644,8 +4941,8 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) {
diff --git a/generated/googleapis/test/fitness/v1_test.dart b/generated/googleapis/test/fitness/v1_test.dart index 0261149..c9ab22c 100644 --- a/generated/googleapis/test/fitness/v1_test.dart +++ b/generated/googleapis/test/fitness/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1017() { +buildUnnamed1042() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed1017(core.List<api.Dataset> o) { +checkUnnamed1042(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -69,7 +69,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { o.activity = 42; - o.dataset = buildUnnamed1017(); + o.dataset = buildUnnamed1042(); o.endTimeMillis = "foo"; o.session = buildSession(); o.startTimeMillis = "foo"; @@ -83,7 +83,7 @@ buildCounterAggregateBucket++; if (buildCounterAggregateBucket < 3) { unittest.expect(o.activity, unittest.equals(42)); - checkUnnamed1017(o.dataset); + checkUnnamed1042(o.dataset); unittest.expect(o.endTimeMillis, unittest.equals('foo')); checkSession(o.session); unittest.expect(o.startTimeMillis, unittest.equals('foo')); @@ -113,27 +113,27 @@ buildCounterAggregateBy--; } -buildUnnamed1018() { +buildUnnamed1043() { var o = new core.List<api.AggregateBy>(); o.add(buildAggregateBy()); o.add(buildAggregateBy()); return o; } -checkUnnamed1018(core.List<api.AggregateBy> o) { +checkUnnamed1043(core.List<api.AggregateBy> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBy(o[0]); checkAggregateBy(o[1]); } -buildUnnamed1019() { +buildUnnamed1044() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1019(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')); @@ -144,13 +144,13 @@ var o = new api.AggregateRequest(); buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - o.aggregateBy = buildUnnamed1018(); + o.aggregateBy = buildUnnamed1043(); o.bucketByActivitySegment = buildBucketByActivity(); o.bucketByActivityType = buildBucketByActivity(); o.bucketBySession = buildBucketBySession(); o.bucketByTime = buildBucketByTime(); o.endTimeMillis = "foo"; - o.filteredDataQualityStandard = buildUnnamed1019(); + o.filteredDataQualityStandard = buildUnnamed1044(); o.startTimeMillis = "foo"; } buildCounterAggregateRequest--; @@ -160,26 +160,26 @@ checkAggregateRequest(api.AggregateRequest o) { buildCounterAggregateRequest++; if (buildCounterAggregateRequest < 3) { - checkUnnamed1018(o.aggregateBy); + checkUnnamed1043(o.aggregateBy); checkBucketByActivity(o.bucketByActivitySegment); checkBucketByActivity(o.bucketByActivityType); checkBucketBySession(o.bucketBySession); checkBucketByTime(o.bucketByTime); unittest.expect(o.endTimeMillis, unittest.equals('foo')); - checkUnnamed1019(o.filteredDataQualityStandard); + checkUnnamed1044(o.filteredDataQualityStandard); unittest.expect(o.startTimeMillis, unittest.equals('foo')); } buildCounterAggregateRequest--; } -buildUnnamed1020() { +buildUnnamed1045() { var o = new core.List<api.AggregateBucket>(); o.add(buildAggregateBucket()); o.add(buildAggregateBucket()); return o; } -checkUnnamed1020(core.List<api.AggregateBucket> o) { +checkUnnamed1045(core.List<api.AggregateBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregateBucket(o[0]); checkAggregateBucket(o[1]); @@ -190,7 +190,7 @@ var o = new api.AggregateResponse(); buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - o.bucket = buildUnnamed1020(); + o.bucket = buildUnnamed1045(); } buildCounterAggregateResponse--; return o; @@ -199,7 +199,7 @@ checkAggregateResponse(api.AggregateResponse o) { buildCounterAggregateResponse++; if (buildCounterAggregateResponse < 3) { - checkUnnamed1020(o.bucket); + checkUnnamed1045(o.bucket); } buildCounterAggregateResponse--; } @@ -313,14 +313,14 @@ buildCounterBucketByTimePeriod--; } -buildUnnamed1021() { +buildUnnamed1046() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed1021(core.List<api.Value> o) { +checkUnnamed1046(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -338,7 +338,7 @@ o.originDataSourceId = "foo"; o.rawTimestampNanos = "foo"; o.startTimeNanos = "foo"; - o.value = buildUnnamed1021(); + o.value = buildUnnamed1046(); } buildCounterDataPoint--; return o; @@ -354,19 +354,19 @@ unittest.expect(o.originDataSourceId, unittest.equals('foo')); unittest.expect(o.rawTimestampNanos, unittest.equals('foo')); unittest.expect(o.startTimeNanos, unittest.equals('foo')); - checkUnnamed1021(o.value); + checkUnnamed1046(o.value); } buildCounterDataPoint--; } -buildUnnamed1022() { +buildUnnamed1047() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1022(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')); @@ -378,7 +378,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { o.application = buildApplication(); - o.dataQualityStandard = buildUnnamed1022(); + o.dataQualityStandard = buildUnnamed1047(); o.dataStreamId = "foo"; o.dataStreamName = "foo"; o.dataType = buildDataType(); @@ -394,7 +394,7 @@ buildCounterDataSource++; if (buildCounterDataSource < 3) { checkApplication(o.application); - checkUnnamed1022(o.dataQualityStandard); + checkUnnamed1047(o.dataQualityStandard); unittest.expect(o.dataStreamId, unittest.equals('foo')); unittest.expect(o.dataStreamName, unittest.equals('foo')); checkDataType(o.dataType); @@ -405,14 +405,14 @@ buildCounterDataSource--; } -buildUnnamed1023() { +buildUnnamed1048() { var o = new core.List<api.DataTypeField>(); o.add(buildDataTypeField()); o.add(buildDataTypeField()); return o; } -checkUnnamed1023(core.List<api.DataTypeField> o) { +checkUnnamed1048(core.List<api.DataTypeField> o) { unittest.expect(o, unittest.hasLength(2)); checkDataTypeField(o[0]); checkDataTypeField(o[1]); @@ -423,7 +423,7 @@ var o = new api.DataType(); buildCounterDataType++; if (buildCounterDataType < 3) { - o.field = buildUnnamed1023(); + o.field = buildUnnamed1048(); o.name = "foo"; } buildCounterDataType--; @@ -433,7 +433,7 @@ checkDataType(api.DataType o) { buildCounterDataType++; if (buildCounterDataType < 3) { - checkUnnamed1023(o.field); + checkUnnamed1048(o.field); unittest.expect(o.name, unittest.equals('foo')); } buildCounterDataType--; @@ -462,14 +462,14 @@ buildCounterDataTypeField--; } -buildUnnamed1024() { +buildUnnamed1049() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1024(core.List<api.DataPoint> o) { +checkUnnamed1049(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -484,7 +484,7 @@ o.maxEndTimeNs = "foo"; o.minStartTimeNs = "foo"; o.nextPageToken = "foo"; - o.point = buildUnnamed1024(); + o.point = buildUnnamed1049(); } buildCounterDataset--; return o; @@ -497,7 +497,7 @@ unittest.expect(o.maxEndTimeNs, unittest.equals('foo')); unittest.expect(o.minStartTimeNs, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1024(o.point); + checkUnnamed1049(o.point); } buildCounterDataset--; } @@ -529,27 +529,27 @@ buildCounterDevice--; } -buildUnnamed1025() { +buildUnnamed1050() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1025(core.List<api.DataPoint> o) { +checkUnnamed1050(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); } -buildUnnamed1026() { +buildUnnamed1051() { var o = new core.List<api.DataPoint>(); o.add(buildDataPoint()); o.add(buildDataPoint()); return o; } -checkUnnamed1026(core.List<api.DataPoint> o) { +checkUnnamed1051(core.List<api.DataPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkDataPoint(o[0]); checkDataPoint(o[1]); @@ -561,8 +561,8 @@ buildCounterListDataPointChangesResponse++; if (buildCounterListDataPointChangesResponse < 3) { o.dataSourceId = "foo"; - o.deletedDataPoint = buildUnnamed1025(); - o.insertedDataPoint = buildUnnamed1026(); + o.deletedDataPoint = buildUnnamed1050(); + o.insertedDataPoint = buildUnnamed1051(); o.nextPageToken = "foo"; } buildCounterListDataPointChangesResponse--; @@ -573,21 +573,21 @@ buildCounterListDataPointChangesResponse++; if (buildCounterListDataPointChangesResponse < 3) { unittest.expect(o.dataSourceId, unittest.equals('foo')); - checkUnnamed1025(o.deletedDataPoint); - checkUnnamed1026(o.insertedDataPoint); + checkUnnamed1050(o.deletedDataPoint); + checkUnnamed1051(o.insertedDataPoint); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDataPointChangesResponse--; } -buildUnnamed1027() { +buildUnnamed1052() { var o = new core.List<api.DataSource>(); o.add(buildDataSource()); o.add(buildDataSource()); return o; } -checkUnnamed1027(core.List<api.DataSource> o) { +checkUnnamed1052(core.List<api.DataSource> o) { unittest.expect(o, unittest.hasLength(2)); checkDataSource(o[0]); checkDataSource(o[1]); @@ -598,7 +598,7 @@ var o = new api.ListDataSourcesResponse(); buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - o.dataSource = buildUnnamed1027(); + o.dataSource = buildUnnamed1052(); } buildCounterListDataSourcesResponse--; return o; @@ -607,32 +607,32 @@ checkListDataSourcesResponse(api.ListDataSourcesResponse o) { buildCounterListDataSourcesResponse++; if (buildCounterListDataSourcesResponse < 3) { - checkUnnamed1027(o.dataSource); + checkUnnamed1052(o.dataSource); } buildCounterListDataSourcesResponse--; } -buildUnnamed1028() { +buildUnnamed1053() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed1028(core.List<api.Session> o) { +checkUnnamed1053(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); } -buildUnnamed1029() { +buildUnnamed1054() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed1029(core.List<api.Session> o) { +checkUnnamed1054(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -643,10 +643,10 @@ var o = new api.ListSessionsResponse(); buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - o.deletedSession = buildUnnamed1028(); + o.deletedSession = buildUnnamed1053(); o.hasMoreData = true; o.nextPageToken = "foo"; - o.session = buildUnnamed1029(); + o.session = buildUnnamed1054(); } buildCounterListSessionsResponse--; return o; @@ -655,10 +655,10 @@ checkListSessionsResponse(api.ListSessionsResponse o) { buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { - checkUnnamed1028(o.deletedSession); + checkUnnamed1053(o.deletedSession); unittest.expect(o.hasMoreData, unittest.isTrue); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1029(o.session); + checkUnnamed1054(o.session); } buildCounterListSessionsResponse--; } @@ -717,14 +717,14 @@ buildCounterSession--; } -buildUnnamed1030() { +buildUnnamed1055() { var o = new core.List<api.ValueMapValEntry>(); o.add(buildValueMapValEntry()); o.add(buildValueMapValEntry()); return o; } -checkUnnamed1030(core.List<api.ValueMapValEntry> o) { +checkUnnamed1055(core.List<api.ValueMapValEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkValueMapValEntry(o[0]); checkValueMapValEntry(o[1]); @@ -737,7 +737,7 @@ if (buildCounterValue < 3) { o.fpVal = 42.0; o.intVal = 42; - o.mapVal = buildUnnamed1030(); + o.mapVal = buildUnnamed1055(); o.stringVal = "foo"; } buildCounterValue--; @@ -749,7 +749,7 @@ if (buildCounterValue < 3) { unittest.expect(o.fpVal, unittest.equals(42.0)); unittest.expect(o.intVal, unittest.equals(42)); - checkUnnamed1030(o.mapVal); + checkUnnamed1055(o.mapVal); unittest.expect(o.stringVal, unittest.equals('foo')); } buildCounterValue--; @@ -776,27 +776,27 @@ buildCounterValueMapValEntry--; } -buildUnnamed1031() { +buildUnnamed1056() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1031(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')); } -buildUnnamed1032() { +buildUnnamed1057() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1032(core.List<core.int> o) { +checkUnnamed1057(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)); @@ -1135,7 +1135,7 @@ api.UsersDataSourcesResourceApi res = new api.FitnessApi(mock).users.dataSources; var arg_userId = "foo"; - var arg_dataTypeName = buildUnnamed1031(); + var arg_dataTypeName = buildUnnamed1056(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1303,8 +1303,8 @@ var arg_userId = "foo"; var arg_dataSourceId = "foo"; var arg_datasetId = "foo"; - var arg_currentTimeMillis = "foo"; var arg_modifiedTimeMillis = "foo"; + var arg_currentTimeMillis = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1333,10 +1333,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["currentTimeMillis"].first, - unittest.equals(arg_currentTimeMillis)); unittest.expect(queryMap["modifiedTimeMillis"].first, unittest.equals(arg_modifiedTimeMillis)); + unittest.expect(queryMap["currentTimeMillis"].first, + unittest.equals(arg_currentTimeMillis)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1347,8 +1347,8 @@ }), true); res .delete(arg_userId, arg_dataSourceId, arg_datasetId, - currentTimeMillis: arg_currentTimeMillis, modifiedTimeMillis: arg_modifiedTimeMillis, + currentTimeMillis: arg_currentTimeMillis, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -1360,8 +1360,8 @@ var arg_userId = "foo"; var arg_dataSourceId = "foo"; var arg_datasetId = "foo"; - var arg_limit = 42; var arg_pageToken = "foo"; + var arg_limit = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1390,10 +1390,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1404,7 +1404,7 @@ }), true); res .get(arg_userId, arg_dataSourceId, arg_datasetId, - limit: arg_limit, pageToken: arg_pageToken, $fields: arg_$fields) + pageToken: arg_pageToken, limit: arg_limit, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDataset(response); }))); @@ -1579,11 +1579,11 @@ api.UsersSessionsResourceApi res = new api.FitnessApi(mock).users.sessions; var arg_userId = "foo"; - var arg_activityType = buildUnnamed1032(); - var arg_endTime = "foo"; - var arg_includeDeleted = true; var arg_pageToken = "foo"; + var arg_includeDeleted = true; + var arg_endTime = "foo"; var arg_startTime = "foo"; + var arg_activityType = buildUnnamed1057(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1612,16 +1612,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["activityType"].map(core.int.parse).toList(), - unittest.equals(arg_activityType)); unittest.expect( - queryMap["endTime"].first, unittest.equals(arg_endTime)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["includeDeleted"].first, unittest.equals("$arg_includeDeleted")); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["endTime"].first, unittest.equals(arg_endTime)); unittest.expect( queryMap["startTime"].first, unittest.equals(arg_startTime)); + unittest.expect(queryMap["activityType"].map(core.int.parse).toList(), + unittest.equals(arg_activityType)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1632,11 +1632,11 @@ }), true); res .list(arg_userId, - activityType: arg_activityType, - endTime: arg_endTime, - includeDeleted: arg_includeDeleted, pageToken: arg_pageToken, + includeDeleted: arg_includeDeleted, + endTime: arg_endTime, startTime: arg_startTime, + activityType: arg_activityType, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSessionsResponse(response);
diff --git a/generated/googleapis/test/games/v1_test.dart b/generated/googleapis/test/games/v1_test.dart index 8bb1ee5..dd727a7 100644 --- a/generated/googleapis/test/games/v1_test.dart +++ b/generated/googleapis/test/games/v1_test.dart
@@ -93,14 +93,14 @@ buildCounterAchievementDefinition--; } -buildUnnamed3545() { +buildUnnamed3717() { var o = new core.List<api.AchievementDefinition>(); o.add(buildAchievementDefinition()); o.add(buildAchievementDefinition()); return o; } -checkUnnamed3545(core.List<api.AchievementDefinition> o) { +checkUnnamed3717(core.List<api.AchievementDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementDefinition(o[0]); checkAchievementDefinition(o[1]); @@ -111,7 +111,7 @@ var o = new api.AchievementDefinitionsListResponse(); buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - o.items = buildUnnamed3545(); + o.items = buildUnnamed3717(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -123,7 +123,7 @@ api.AchievementDefinitionsListResponse o) { buildCounterAchievementDefinitionsListResponse++; if (buildCounterAchievementDefinitionsListResponse < 3) { - checkUnnamed3545(o.items); + checkUnnamed3717(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -219,14 +219,14 @@ buildCounterAchievementUnlockResponse--; } -buildUnnamed3546() { +buildUnnamed3718() { var o = new core.List<api.AchievementUpdateRequest>(); o.add(buildAchievementUpdateRequest()); o.add(buildAchievementUpdateRequest()); return o; } -checkUnnamed3546(core.List<api.AchievementUpdateRequest> o) { +checkUnnamed3718(core.List<api.AchievementUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateRequest(o[0]); checkAchievementUpdateRequest(o[1]); @@ -238,7 +238,7 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { o.kind = "foo"; - o.updates = buildUnnamed3546(); + o.updates = buildUnnamed3718(); } buildCounterAchievementUpdateMultipleRequest--; return o; @@ -248,19 +248,19 @@ buildCounterAchievementUpdateMultipleRequest++; if (buildCounterAchievementUpdateMultipleRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3546(o.updates); + checkUnnamed3718(o.updates); } buildCounterAchievementUpdateMultipleRequest--; } -buildUnnamed3547() { +buildUnnamed3719() { var o = new core.List<api.AchievementUpdateResponse>(); o.add(buildAchievementUpdateResponse()); o.add(buildAchievementUpdateResponse()); return o; } -checkUnnamed3547(core.List<api.AchievementUpdateResponse> o) { +checkUnnamed3719(core.List<api.AchievementUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementUpdateResponse(o[0]); checkAchievementUpdateResponse(o[1]); @@ -272,7 +272,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { o.kind = "foo"; - o.updatedAchievements = buildUnnamed3547(); + o.updatedAchievements = buildUnnamed3719(); } buildCounterAchievementUpdateMultipleResponse--; return o; @@ -283,7 +283,7 @@ buildCounterAchievementUpdateMultipleResponse++; if (buildCounterAchievementUpdateMultipleResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3547(o.updatedAchievements); + checkUnnamed3719(o.updatedAchievements); } buildCounterAchievementUpdateMultipleResponse--; } @@ -344,90 +344,40 @@ buildCounterAchievementUpdateResponse--; } -core.int buildCounterAggregateStats = 0; -buildAggregateStats() { - var o = new api.AggregateStats(); - buildCounterAggregateStats++; - if (buildCounterAggregateStats < 3) { - o.count = "foo"; - o.kind = "foo"; - o.max = "foo"; - o.min = "foo"; - o.sum = "foo"; - } - buildCounterAggregateStats--; - return o; -} - -checkAggregateStats(api.AggregateStats o) { - buildCounterAggregateStats++; - if (buildCounterAggregateStats < 3) { - unittest.expect(o.count, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.max, unittest.equals('foo')); - unittest.expect(o.min, unittest.equals('foo')); - unittest.expect(o.sum, unittest.equals('foo')); - } - buildCounterAggregateStats--; -} - -core.int buildCounterAnonymousPlayer = 0; -buildAnonymousPlayer() { - var o = new api.AnonymousPlayer(); - buildCounterAnonymousPlayer++; - if (buildCounterAnonymousPlayer < 3) { - o.avatarImageUrl = "foo"; - o.displayName = "foo"; - o.kind = "foo"; - } - buildCounterAnonymousPlayer--; - return o; -} - -checkAnonymousPlayer(api.AnonymousPlayer o) { - buildCounterAnonymousPlayer++; - if (buildCounterAnonymousPlayer < 3) { - unittest.expect(o.avatarImageUrl, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAnonymousPlayer--; -} - -buildUnnamed3548() { +buildUnnamed3720() { var o = new core.List<api.ImageAsset>(); o.add(buildImageAsset()); o.add(buildImageAsset()); return o; } -checkUnnamed3548(core.List<api.ImageAsset> o) { +checkUnnamed3720(core.List<api.ImageAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkImageAsset(o[0]); checkImageAsset(o[1]); } -buildUnnamed3549() { +buildUnnamed3721() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3549(core.List<core.String> o) { +checkUnnamed3721(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3550() { +buildUnnamed3722() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3550(core.List<api.Instance> o) { +checkUnnamed3722(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -439,13 +389,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { o.achievementCount = 42; - o.assets = buildUnnamed3548(); + o.assets = buildUnnamed3720(); o.author = "foo"; o.category = buildApplicationCategory(); o.description = "foo"; - o.enabledFeatures = buildUnnamed3549(); + o.enabledFeatures = buildUnnamed3721(); o.id = "foo"; - o.instances = buildUnnamed3550(); + o.instances = buildUnnamed3722(); o.kind = "foo"; o.lastUpdatedTimestamp = "foo"; o.leaderboardCount = 42; @@ -460,13 +410,13 @@ buildCounterApplication++; if (buildCounterApplication < 3) { unittest.expect(o.achievementCount, unittest.equals(42)); - checkUnnamed3548(o.assets); + checkUnnamed3720(o.assets); unittest.expect(o.author, unittest.equals('foo')); checkApplicationCategory(o.category); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3549(o.enabledFeatures); + checkUnnamed3721(o.enabledFeatures); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed3550(o.instances); + checkUnnamed3722(o.instances); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.lastUpdatedTimestamp, unittest.equals('foo')); unittest.expect(o.leaderboardCount, unittest.equals(42)); @@ -545,14 +495,14 @@ buildCounterCategory--; } -buildUnnamed3551() { +buildUnnamed3723() { var o = new core.List<api.Category>(); o.add(buildCategory()); o.add(buildCategory()); return o; } -checkUnnamed3551(core.List<api.Category> o) { +checkUnnamed3723(core.List<api.Category> o) { unittest.expect(o, unittest.hasLength(2)); checkCategory(o[0]); checkCategory(o[1]); @@ -563,7 +513,7 @@ var o = new api.CategoryListResponse(); buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - o.items = buildUnnamed3551(); + o.items = buildUnnamed3723(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -574,7 +524,7 @@ checkCategoryListResponse(api.CategoryListResponse o) { buildCounterCategoryListResponse++; if (buildCounterCategoryListResponse < 3) { - checkUnnamed3551(o.items); + checkUnnamed3723(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -625,14 +575,14 @@ buildCounterEventChild--; } -buildUnnamed3552() { +buildUnnamed3724() { var o = new core.List<api.EventChild>(); o.add(buildEventChild()); o.add(buildEventChild()); return o; } -checkUnnamed3552(core.List<api.EventChild> o) { +checkUnnamed3724(core.List<api.EventChild> o) { unittest.expect(o, unittest.hasLength(2)); checkEventChild(o[0]); checkEventChild(o[1]); @@ -643,7 +593,7 @@ var o = new api.EventDefinition(); buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - o.childEvents = buildUnnamed3552(); + o.childEvents = buildUnnamed3724(); o.description = "foo"; o.displayName = "foo"; o.id = "foo"; @@ -659,7 +609,7 @@ checkEventDefinition(api.EventDefinition o) { buildCounterEventDefinition++; if (buildCounterEventDefinition < 3) { - checkUnnamed3552(o.childEvents); + checkUnnamed3724(o.childEvents); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); @@ -671,14 +621,14 @@ buildCounterEventDefinition--; } -buildUnnamed3553() { +buildUnnamed3725() { var o = new core.List<api.EventDefinition>(); o.add(buildEventDefinition()); o.add(buildEventDefinition()); return o; } -checkUnnamed3553(core.List<api.EventDefinition> o) { +checkUnnamed3725(core.List<api.EventDefinition> o) { unittest.expect(o, unittest.hasLength(2)); checkEventDefinition(o[0]); checkEventDefinition(o[1]); @@ -689,7 +639,7 @@ var o = new api.EventDefinitionListResponse(); buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - o.items = buildUnnamed3553(); + o.items = buildUnnamed3725(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -700,7 +650,7 @@ checkEventDefinitionListResponse(api.EventDefinitionListResponse o) { buildCounterEventDefinitionListResponse++; if (buildCounterEventDefinitionListResponse < 3) { - checkUnnamed3553(o.items); + checkUnnamed3725(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -730,14 +680,14 @@ buildCounterEventPeriodRange--; } -buildUnnamed3554() { +buildUnnamed3726() { var o = new core.List<api.EventUpdateRequest>(); o.add(buildEventUpdateRequest()); o.add(buildEventUpdateRequest()); return o; } -checkUnnamed3554(core.List<api.EventUpdateRequest> o) { +checkUnnamed3726(core.List<api.EventUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkEventUpdateRequest(o[0]); checkEventUpdateRequest(o[1]); @@ -750,7 +700,7 @@ if (buildCounterEventPeriodUpdate < 3) { o.kind = "foo"; o.timePeriod = buildEventPeriodRange(); - o.updates = buildUnnamed3554(); + o.updates = buildUnnamed3726(); } buildCounterEventPeriodUpdate--; return o; @@ -761,7 +711,7 @@ if (buildCounterEventPeriodUpdate < 3) { unittest.expect(o.kind, unittest.equals('foo')); checkEventPeriodRange(o.timePeriod); - checkUnnamed3554(o.updates); + checkUnnamed3726(o.updates); } buildCounterEventPeriodUpdate--; } @@ -789,14 +739,14 @@ buildCounterEventRecordFailure--; } -buildUnnamed3555() { +buildUnnamed3727() { var o = new core.List<api.EventPeriodUpdate>(); o.add(buildEventPeriodUpdate()); o.add(buildEventPeriodUpdate()); return o; } -checkUnnamed3555(core.List<api.EventPeriodUpdate> o) { +checkUnnamed3727(core.List<api.EventPeriodUpdate> o) { unittest.expect(o, unittest.hasLength(2)); checkEventPeriodUpdate(o[0]); checkEventPeriodUpdate(o[1]); @@ -810,7 +760,7 @@ o.currentTimeMillis = "foo"; o.kind = "foo"; o.requestId = "foo"; - o.timePeriods = buildUnnamed3555(); + o.timePeriods = buildUnnamed3727(); } buildCounterEventRecordRequest--; return o; @@ -822,7 +772,7 @@ unittest.expect(o.currentTimeMillis, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); - checkUnnamed3555(o.timePeriods); + checkUnnamed3727(o.timePeriods); } buildCounterEventRecordRequest--; } @@ -850,40 +800,40 @@ buildCounterEventUpdateRequest--; } -buildUnnamed3556() { +buildUnnamed3728() { var o = new core.List<api.EventBatchRecordFailure>(); o.add(buildEventBatchRecordFailure()); o.add(buildEventBatchRecordFailure()); return o; } -checkUnnamed3556(core.List<api.EventBatchRecordFailure> o) { +checkUnnamed3728(core.List<api.EventBatchRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventBatchRecordFailure(o[0]); checkEventBatchRecordFailure(o[1]); } -buildUnnamed3557() { +buildUnnamed3729() { var o = new core.List<api.EventRecordFailure>(); o.add(buildEventRecordFailure()); o.add(buildEventRecordFailure()); return o; } -checkUnnamed3557(core.List<api.EventRecordFailure> o) { +checkUnnamed3729(core.List<api.EventRecordFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEventRecordFailure(o[0]); checkEventRecordFailure(o[1]); } -buildUnnamed3558() { +buildUnnamed3730() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed3558(core.List<api.PlayerEvent> o) { +checkUnnamed3730(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -894,10 +844,10 @@ var o = new api.EventUpdateResponse(); buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - o.batchFailures = buildUnnamed3556(); - o.eventFailures = buildUnnamed3557(); + o.batchFailures = buildUnnamed3728(); + o.eventFailures = buildUnnamed3729(); o.kind = "foo"; - o.playerEvents = buildUnnamed3558(); + o.playerEvents = buildUnnamed3730(); } buildCounterEventUpdateResponse--; return o; @@ -906,10 +856,10 @@ checkEventUpdateResponse(api.EventUpdateResponse o) { buildCounterEventUpdateResponse++; if (buildCounterEventUpdateResponse < 3) { - checkUnnamed3556(o.batchFailures); - checkUnnamed3557(o.eventFailures); + checkUnnamed3728(o.batchFailures); + checkUnnamed3729(o.eventFailures); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3558(o.playerEvents); + checkUnnamed3730(o.playerEvents); } buildCounterEventUpdateResponse--; } @@ -1163,14 +1113,14 @@ buildCounterLeaderboardEntry--; } -buildUnnamed3559() { +buildUnnamed3731() { var o = new core.List<api.Leaderboard>(); o.add(buildLeaderboard()); o.add(buildLeaderboard()); return o; } -checkUnnamed3559(core.List<api.Leaderboard> o) { +checkUnnamed3731(core.List<api.Leaderboard> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboard(o[0]); checkLeaderboard(o[1]); @@ -1181,7 +1131,7 @@ var o = new api.LeaderboardListResponse(); buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - o.items = buildUnnamed3559(); + o.items = buildUnnamed3731(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1192,7 +1142,7 @@ checkLeaderboardListResponse(api.LeaderboardListResponse o) { buildCounterLeaderboardListResponse++; if (buildCounterLeaderboardListResponse < 3) { - checkUnnamed3559(o.items); + checkUnnamed3731(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1226,14 +1176,14 @@ buildCounterLeaderboardScoreRank--; } -buildUnnamed3560() { +buildUnnamed3732() { var o = new core.List<api.LeaderboardEntry>(); o.add(buildLeaderboardEntry()); o.add(buildLeaderboardEntry()); return o; } -checkUnnamed3560(core.List<api.LeaderboardEntry> o) { +checkUnnamed3732(core.List<api.LeaderboardEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLeaderboardEntry(o[0]); checkLeaderboardEntry(o[1]); @@ -1244,7 +1194,7 @@ var o = new api.LeaderboardScores(); buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - o.items = buildUnnamed3560(); + o.items = buildUnnamed3732(); o.kind = "foo"; o.nextPageToken = "foo"; o.numScores = "foo"; @@ -1258,7 +1208,7 @@ checkLeaderboardScores(api.LeaderboardScores o) { buildCounterLeaderboardScores++; if (buildCounterLeaderboardScores < 3) { - checkUnnamed3560(o.items); + checkUnnamed3732(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.numScores, unittest.equals('foo')); @@ -1268,14 +1218,14 @@ buildCounterLeaderboardScores--; } -buildUnnamed3561() { +buildUnnamed3733() { var o = new core.List<api.PlayerLevel>(); o.add(buildPlayerLevel()); o.add(buildPlayerLevel()); return o; } -checkUnnamed3561(core.List<api.PlayerLevel> o) { +checkUnnamed3733(core.List<api.PlayerLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLevel(o[0]); checkPlayerLevel(o[1]); @@ -1288,7 +1238,7 @@ if (buildCounterMetagameConfig < 3) { o.currentVersion = 42; o.kind = "foo"; - o.playerLevels = buildUnnamed3561(); + o.playerLevels = buildUnnamed3733(); } buildCounterMetagameConfig--; return o; @@ -1299,150 +1249,11 @@ if (buildCounterMetagameConfig < 3) { unittest.expect(o.currentVersion, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3561(o.playerLevels); + checkUnnamed3733(o.playerLevels); } buildCounterMetagameConfig--; } -core.int buildCounterNetworkDiagnostics = 0; -buildNetworkDiagnostics() { - var o = new api.NetworkDiagnostics(); - buildCounterNetworkDiagnostics++; - if (buildCounterNetworkDiagnostics < 3) { - o.androidNetworkSubtype = 42; - o.androidNetworkType = 42; - o.iosNetworkType = 42; - o.kind = "foo"; - o.networkOperatorCode = "foo"; - o.networkOperatorName = "foo"; - o.registrationLatencyMillis = 42; - } - buildCounterNetworkDiagnostics--; - return o; -} - -checkNetworkDiagnostics(api.NetworkDiagnostics o) { - buildCounterNetworkDiagnostics++; - if (buildCounterNetworkDiagnostics < 3) { - unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); - unittest.expect(o.androidNetworkType, unittest.equals(42)); - unittest.expect(o.iosNetworkType, unittest.equals(42)); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.networkOperatorCode, unittest.equals('foo')); - unittest.expect(o.networkOperatorName, unittest.equals('foo')); - unittest.expect(o.registrationLatencyMillis, unittest.equals(42)); - } - buildCounterNetworkDiagnostics--; -} - -core.int buildCounterParticipantResult = 0; -buildParticipantResult() { - var o = new api.ParticipantResult(); - buildCounterParticipantResult++; - if (buildCounterParticipantResult < 3) { - o.kind = "foo"; - o.participantId = "foo"; - o.placing = 42; - o.result = "foo"; - } - buildCounterParticipantResult--; - return o; -} - -checkParticipantResult(api.ParticipantResult o) { - buildCounterParticipantResult++; - if (buildCounterParticipantResult < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.participantId, unittest.equals('foo')); - unittest.expect(o.placing, unittest.equals(42)); - unittest.expect(o.result, unittest.equals('foo')); - } - buildCounterParticipantResult--; -} - -core.int buildCounterPeerChannelDiagnostics = 0; -buildPeerChannelDiagnostics() { - var o = new api.PeerChannelDiagnostics(); - buildCounterPeerChannelDiagnostics++; - if (buildCounterPeerChannelDiagnostics < 3) { - o.bytesReceived = buildAggregateStats(); - o.bytesSent = buildAggregateStats(); - o.kind = "foo"; - o.numMessagesLost = 42; - o.numMessagesReceived = 42; - o.numMessagesSent = 42; - o.numSendFailures = 42; - o.roundtripLatencyMillis = buildAggregateStats(); - } - buildCounterPeerChannelDiagnostics--; - return o; -} - -checkPeerChannelDiagnostics(api.PeerChannelDiagnostics o) { - buildCounterPeerChannelDiagnostics++; - if (buildCounterPeerChannelDiagnostics < 3) { - checkAggregateStats(o.bytesReceived); - checkAggregateStats(o.bytesSent); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.numMessagesLost, unittest.equals(42)); - unittest.expect(o.numMessagesReceived, unittest.equals(42)); - unittest.expect(o.numMessagesSent, unittest.equals(42)); - unittest.expect(o.numSendFailures, unittest.equals(42)); - checkAggregateStats(o.roundtripLatencyMillis); - } - buildCounterPeerChannelDiagnostics--; -} - -core.int buildCounterPeerSessionDiagnostics = 0; -buildPeerSessionDiagnostics() { - var o = new api.PeerSessionDiagnostics(); - buildCounterPeerSessionDiagnostics++; - if (buildCounterPeerSessionDiagnostics < 3) { - o.connectedTimestampMillis = "foo"; - o.kind = "foo"; - o.participantId = "foo"; - o.reliableChannel = buildPeerChannelDiagnostics(); - o.unreliableChannel = buildPeerChannelDiagnostics(); - } - buildCounterPeerSessionDiagnostics--; - return o; -} - -checkPeerSessionDiagnostics(api.PeerSessionDiagnostics o) { - buildCounterPeerSessionDiagnostics++; - if (buildCounterPeerSessionDiagnostics < 3) { - unittest.expect(o.connectedTimestampMillis, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.participantId, unittest.equals('foo')); - checkPeerChannelDiagnostics(o.reliableChannel); - checkPeerChannelDiagnostics(o.unreliableChannel); - } - buildCounterPeerSessionDiagnostics--; -} - -core.int buildCounterPlayed = 0; -buildPlayed() { - var o = new api.Played(); - buildCounterPlayed++; - if (buildCounterPlayed < 3) { - o.autoMatched = true; - o.kind = "foo"; - o.timeMillis = "foo"; - } - buildCounterPlayed--; - return o; -} - -checkPlayed(api.Played o) { - buildCounterPlayed++; - if (buildCounterPlayed < 3) { - unittest.expect(o.autoMatched, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.timeMillis, unittest.equals('foo')); - } - buildCounterPlayed--; -} - core.int buildCounterPlayerName = 0; buildPlayerName() { var o = new api.PlayerName(); @@ -1476,7 +1287,6 @@ o.experienceInfo = buildPlayerExperienceInfo(); o.friendStatus = "foo"; o.kind = "foo"; - o.lastPlayedWith = buildPlayed(); o.name = buildPlayerName(); o.originalPlayerId = "foo"; o.playerId = "foo"; @@ -1497,7 +1307,6 @@ checkPlayerExperienceInfo(o.experienceInfo); unittest.expect(o.friendStatus, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkPlayed(o.lastPlayedWith); checkPlayerName(o.name); unittest.expect(o.originalPlayerId, unittest.equals('foo')); unittest.expect(o.playerId, unittest.equals('foo')); @@ -1538,14 +1347,14 @@ buildCounterPlayerAchievement--; } -buildUnnamed3562() { +buildUnnamed3734() { var o = new core.List<api.PlayerAchievement>(); o.add(buildPlayerAchievement()); o.add(buildPlayerAchievement()); return o; } -checkUnnamed3562(core.List<api.PlayerAchievement> o) { +checkUnnamed3734(core.List<api.PlayerAchievement> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerAchievement(o[0]); checkPlayerAchievement(o[1]); @@ -1556,7 +1365,7 @@ var o = new api.PlayerAchievementListResponse(); buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - o.items = buildUnnamed3562(); + o.items = buildUnnamed3734(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1567,7 +1376,7 @@ checkPlayerAchievementListResponse(api.PlayerAchievementListResponse o) { buildCounterPlayerAchievementListResponse++; if (buildCounterPlayerAchievementListResponse < 3) { - checkUnnamed3562(o.items); + checkUnnamed3734(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1601,14 +1410,14 @@ buildCounterPlayerEvent--; } -buildUnnamed3563() { +buildUnnamed3735() { var o = new core.List<api.PlayerEvent>(); o.add(buildPlayerEvent()); o.add(buildPlayerEvent()); return o; } -checkUnnamed3563(core.List<api.PlayerEvent> o) { +checkUnnamed3735(core.List<api.PlayerEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerEvent(o[0]); checkPlayerEvent(o[1]); @@ -1619,7 +1428,7 @@ var o = new api.PlayerEventListResponse(); buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - o.items = buildUnnamed3563(); + o.items = buildUnnamed3735(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1630,7 +1439,7 @@ checkPlayerEventListResponse(api.PlayerEventListResponse o) { buildCounterPlayerEventListResponse++; if (buildCounterPlayerEventListResponse < 3) { - checkUnnamed3563(o.items); + checkUnnamed3735(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1669,6 +1478,7 @@ var o = new api.PlayerLeaderboardScore(); buildCounterPlayerLeaderboardScore++; if (buildCounterPlayerLeaderboardScore < 3) { + o.friendsRank = buildLeaderboardScoreRank(); o.kind = "foo"; o.leaderboardId = "foo"; o.publicRank = buildLeaderboardScoreRank(); @@ -1686,6 +1496,7 @@ checkPlayerLeaderboardScore(api.PlayerLeaderboardScore o) { buildCounterPlayerLeaderboardScore++; if (buildCounterPlayerLeaderboardScore < 3) { + checkLeaderboardScoreRank(o.friendsRank); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.leaderboardId, unittest.equals('foo')); checkLeaderboardScoreRank(o.publicRank); @@ -1699,14 +1510,14 @@ buildCounterPlayerLeaderboardScore--; } -buildUnnamed3564() { +buildUnnamed3736() { var o = new core.List<api.PlayerLeaderboardScore>(); o.add(buildPlayerLeaderboardScore()); o.add(buildPlayerLeaderboardScore()); return o; } -checkUnnamed3564(core.List<api.PlayerLeaderboardScore> o) { +checkUnnamed3736(core.List<api.PlayerLeaderboardScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerLeaderboardScore(o[0]); checkPlayerLeaderboardScore(o[1]); @@ -1717,7 +1528,7 @@ var o = new api.PlayerLeaderboardScoreListResponse(); buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - o.items = buildUnnamed3564(); + o.items = buildUnnamed3736(); o.kind = "foo"; o.nextPageToken = "foo"; o.player = buildPlayer(); @@ -1730,7 +1541,7 @@ api.PlayerLeaderboardScoreListResponse o) { buildCounterPlayerLeaderboardScoreListResponse++; if (buildCounterPlayerLeaderboardScoreListResponse < 3) { - checkUnnamed3564(o.items); + checkUnnamed3736(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPlayer(o.player); @@ -1763,14 +1574,14 @@ buildCounterPlayerLevel--; } -buildUnnamed3565() { +buildUnnamed3737() { var o = new core.List<api.Player>(); o.add(buildPlayer()); o.add(buildPlayer()); return o; } -checkUnnamed3565(core.List<api.Player> o) { +checkUnnamed3737(core.List<api.Player> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayer(o[0]); checkPlayer(o[1]); @@ -1781,7 +1592,7 @@ var o = new api.PlayerListResponse(); buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - o.items = buildUnnamed3565(); + o.items = buildUnnamed3737(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -1792,7 +1603,7 @@ checkPlayerListResponse(api.PlayerListResponse o) { buildCounterPlayerListResponse++; if (buildCounterPlayerListResponse < 3) { - checkUnnamed3565(o.items); + checkUnnamed3737(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1826,14 +1637,14 @@ buildCounterPlayerScore--; } -buildUnnamed3566() { +buildUnnamed3738() { var o = new core.List<api.PlayerScoreResponse>(); o.add(buildPlayerScoreResponse()); o.add(buildPlayerScoreResponse()); return o; } -checkUnnamed3566(core.List<api.PlayerScoreResponse> o) { +checkUnnamed3738(core.List<api.PlayerScoreResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResponse(o[0]); checkPlayerScoreResponse(o[1]); @@ -1845,7 +1656,7 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { o.kind = "foo"; - o.submittedScores = buildUnnamed3566(); + o.submittedScores = buildUnnamed3738(); } buildCounterPlayerScoreListResponse--; return o; @@ -1855,32 +1666,32 @@ buildCounterPlayerScoreListResponse++; if (buildCounterPlayerScoreListResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3566(o.submittedScores); + checkUnnamed3738(o.submittedScores); } buildCounterPlayerScoreListResponse--; } -buildUnnamed3567() { +buildUnnamed3739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3567(core.List<core.String> o) { +checkUnnamed3739(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3568() { +buildUnnamed3740() { var o = new core.List<api.PlayerScore>(); o.add(buildPlayerScore()); o.add(buildPlayerScore()); return o; } -checkUnnamed3568(core.List<api.PlayerScore> o) { +checkUnnamed3740(core.List<api.PlayerScore> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScore(o[0]); checkPlayerScore(o[1]); @@ -1891,12 +1702,12 @@ var o = new api.PlayerScoreResponse(); buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - o.beatenScoreTimeSpans = buildUnnamed3567(); + o.beatenScoreTimeSpans = buildUnnamed3739(); o.formattedScore = "foo"; o.kind = "foo"; o.leaderboardId = "foo"; o.scoreTag = "foo"; - o.unbeatenScores = buildUnnamed3568(); + o.unbeatenScores = buildUnnamed3740(); } buildCounterPlayerScoreResponse--; return o; @@ -1905,24 +1716,24 @@ checkPlayerScoreResponse(api.PlayerScoreResponse o) { buildCounterPlayerScoreResponse++; if (buildCounterPlayerScoreResponse < 3) { - checkUnnamed3567(o.beatenScoreTimeSpans); + checkUnnamed3739(o.beatenScoreTimeSpans); unittest.expect(o.formattedScore, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.leaderboardId, unittest.equals('foo')); unittest.expect(o.scoreTag, unittest.equals('foo')); - checkUnnamed3568(o.unbeatenScores); + checkUnnamed3740(o.unbeatenScores); } buildCounterPlayerScoreResponse--; } -buildUnnamed3569() { +buildUnnamed3741() { var o = new core.List<api.ScoreSubmission>(); o.add(buildScoreSubmission()); o.add(buildScoreSubmission()); return o; } -checkUnnamed3569(core.List<api.ScoreSubmission> o) { +checkUnnamed3741(core.List<api.ScoreSubmission> o) { unittest.expect(o, unittest.hasLength(2)); checkScoreSubmission(o[0]); checkScoreSubmission(o[1]); @@ -1934,7 +1745,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { o.kind = "foo"; - o.scores = buildUnnamed3569(); + o.scores = buildUnnamed3741(); } buildCounterPlayerScoreSubmissionList--; return o; @@ -1944,7 +1755,7 @@ buildCounterPlayerScoreSubmissionList++; if (buildCounterPlayerScoreSubmissionList < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3569(o.scores); + checkUnnamed3741(o.scores); } buildCounterPlayerScoreSubmissionList--; } @@ -1972,73 +1783,6 @@ buildCounterProfileSettings--; } -core.int buildCounterPushToken = 0; -buildPushToken() { - var o = new api.PushToken(); - buildCounterPushToken++; - if (buildCounterPushToken < 3) { - o.clientRevision = "foo"; - o.id = buildPushTokenId(); - o.kind = "foo"; - o.language = "foo"; - } - buildCounterPushToken--; - return o; -} - -checkPushToken(api.PushToken o) { - buildCounterPushToken++; - if (buildCounterPushToken < 3) { - unittest.expect(o.clientRevision, unittest.equals('foo')); - checkPushTokenId(o.id); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.language, unittest.equals('foo')); - } - buildCounterPushToken--; -} - -core.int buildCounterPushTokenIdIos = 0; -buildPushTokenIdIos() { - var o = new api.PushTokenIdIos(); - buildCounterPushTokenIdIos++; - if (buildCounterPushTokenIdIos < 3) { - o.apnsDeviceToken = "foo"; - o.apnsEnvironment = "foo"; - } - buildCounterPushTokenIdIos--; - return o; -} - -checkPushTokenIdIos(api.PushTokenIdIos o) { - buildCounterPushTokenIdIos++; - if (buildCounterPushTokenIdIos < 3) { - unittest.expect(o.apnsDeviceToken, unittest.equals('foo')); - unittest.expect(o.apnsEnvironment, unittest.equals('foo')); - } - buildCounterPushTokenIdIos--; -} - -core.int buildCounterPushTokenId = 0; -buildPushTokenId() { - var o = new api.PushTokenId(); - buildCounterPushTokenId++; - if (buildCounterPushTokenId < 3) { - o.ios = buildPushTokenIdIos(); - o.kind = "foo"; - } - buildCounterPushTokenId--; - return o; -} - -checkPushTokenId(api.PushTokenId o) { - buildCounterPushTokenId++; - if (buildCounterPushTokenId < 3) { - checkPushTokenIdIos(o.ios); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterPushTokenId--; -} - core.int buildCounterRevisionCheckResponse = 0; buildRevisionCheckResponse() { var o = new api.RevisionCheckResponse(); @@ -2062,511 +1806,6 @@ buildCounterRevisionCheckResponse--; } -buildUnnamed3570() { - var o = new core.List<api.RoomParticipant>(); - o.add(buildRoomParticipant()); - o.add(buildRoomParticipant()); - return o; -} - -checkUnnamed3570(core.List<api.RoomParticipant> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRoomParticipant(o[0]); - checkRoomParticipant(o[1]); -} - -core.int buildCounterRoom = 0; -buildRoom() { - var o = new api.Room(); - buildCounterRoom++; - if (buildCounterRoom < 3) { - o.applicationId = "foo"; - o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); - o.autoMatchingStatus = buildRoomAutoMatchStatus(); - o.creationDetails = buildRoomModification(); - o.description = "foo"; - o.inviterId = "foo"; - o.kind = "foo"; - o.lastUpdateDetails = buildRoomModification(); - o.participants = buildUnnamed3570(); - o.roomId = "foo"; - o.roomStatusVersion = 42; - o.status = "foo"; - o.variant = 42; - } - buildCounterRoom--; - return o; -} - -checkRoom(api.Room o) { - buildCounterRoom++; - if (buildCounterRoom < 3) { - unittest.expect(o.applicationId, unittest.equals('foo')); - checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); - checkRoomAutoMatchStatus(o.autoMatchingStatus); - checkRoomModification(o.creationDetails); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.inviterId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkRoomModification(o.lastUpdateDetails); - checkUnnamed3570(o.participants); - unittest.expect(o.roomId, unittest.equals('foo')); - unittest.expect(o.roomStatusVersion, unittest.equals(42)); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.variant, unittest.equals(42)); - } - buildCounterRoom--; -} - -core.int buildCounterRoomAutoMatchStatus = 0; -buildRoomAutoMatchStatus() { - var o = new api.RoomAutoMatchStatus(); - buildCounterRoomAutoMatchStatus++; - if (buildCounterRoomAutoMatchStatus < 3) { - o.kind = "foo"; - o.waitEstimateSeconds = 42; - } - buildCounterRoomAutoMatchStatus--; - return o; -} - -checkRoomAutoMatchStatus(api.RoomAutoMatchStatus o) { - buildCounterRoomAutoMatchStatus++; - if (buildCounterRoomAutoMatchStatus < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.waitEstimateSeconds, unittest.equals(42)); - } - buildCounterRoomAutoMatchStatus--; -} - -core.int buildCounterRoomAutoMatchingCriteria = 0; -buildRoomAutoMatchingCriteria() { - var o = new api.RoomAutoMatchingCriteria(); - buildCounterRoomAutoMatchingCriteria++; - if (buildCounterRoomAutoMatchingCriteria < 3) { - o.exclusiveBitmask = "foo"; - o.kind = "foo"; - o.maxAutoMatchingPlayers = 42; - o.minAutoMatchingPlayers = 42; - } - buildCounterRoomAutoMatchingCriteria--; - return o; -} - -checkRoomAutoMatchingCriteria(api.RoomAutoMatchingCriteria o) { - buildCounterRoomAutoMatchingCriteria++; - if (buildCounterRoomAutoMatchingCriteria < 3) { - unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); - unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); - } - buildCounterRoomAutoMatchingCriteria--; -} - -core.int buildCounterRoomClientAddress = 0; -buildRoomClientAddress() { - var o = new api.RoomClientAddress(); - buildCounterRoomClientAddress++; - if (buildCounterRoomClientAddress < 3) { - o.kind = "foo"; - o.xmppAddress = "foo"; - } - buildCounterRoomClientAddress--; - return o; -} - -checkRoomClientAddress(api.RoomClientAddress o) { - buildCounterRoomClientAddress++; - if (buildCounterRoomClientAddress < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.xmppAddress, unittest.equals('foo')); - } - buildCounterRoomClientAddress--; -} - -buildUnnamed3571() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3571(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3572() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3572(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterRoomCreateRequest = 0; -buildRoomCreateRequest() { - var o = new api.RoomCreateRequest(); - buildCounterRoomCreateRequest++; - if (buildCounterRoomCreateRequest < 3) { - o.autoMatchingCriteria = buildRoomAutoMatchingCriteria(); - o.capabilities = buildUnnamed3571(); - o.clientAddress = buildRoomClientAddress(); - o.invitedPlayerIds = buildUnnamed3572(); - o.kind = "foo"; - o.networkDiagnostics = buildNetworkDiagnostics(); - o.requestId = "foo"; - o.variant = 42; - } - buildCounterRoomCreateRequest--; - return o; -} - -checkRoomCreateRequest(api.RoomCreateRequest o) { - buildCounterRoomCreateRequest++; - if (buildCounterRoomCreateRequest < 3) { - checkRoomAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed3571(o.capabilities); - checkRoomClientAddress(o.clientAddress); - checkUnnamed3572(o.invitedPlayerIds); - unittest.expect(o.kind, unittest.equals('foo')); - checkNetworkDiagnostics(o.networkDiagnostics); - unittest.expect(o.requestId, unittest.equals('foo')); - unittest.expect(o.variant, unittest.equals(42)); - } - buildCounterRoomCreateRequest--; -} - -buildUnnamed3573() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3573(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -core.int buildCounterRoomJoinRequest = 0; -buildRoomJoinRequest() { - var o = new api.RoomJoinRequest(); - buildCounterRoomJoinRequest++; - if (buildCounterRoomJoinRequest < 3) { - o.capabilities = buildUnnamed3573(); - o.clientAddress = buildRoomClientAddress(); - o.kind = "foo"; - o.networkDiagnostics = buildNetworkDiagnostics(); - } - buildCounterRoomJoinRequest--; - return o; -} - -checkRoomJoinRequest(api.RoomJoinRequest o) { - buildCounterRoomJoinRequest++; - if (buildCounterRoomJoinRequest < 3) { - checkUnnamed3573(o.capabilities); - checkRoomClientAddress(o.clientAddress); - unittest.expect(o.kind, unittest.equals('foo')); - checkNetworkDiagnostics(o.networkDiagnostics); - } - buildCounterRoomJoinRequest--; -} - -buildUnnamed3574() { - var o = new core.List<api.PeerSessionDiagnostics>(); - o.add(buildPeerSessionDiagnostics()); - o.add(buildPeerSessionDiagnostics()); - return o; -} - -checkUnnamed3574(core.List<api.PeerSessionDiagnostics> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPeerSessionDiagnostics(o[0]); - checkPeerSessionDiagnostics(o[1]); -} - -core.int buildCounterRoomLeaveDiagnostics = 0; -buildRoomLeaveDiagnostics() { - var o = new api.RoomLeaveDiagnostics(); - buildCounterRoomLeaveDiagnostics++; - if (buildCounterRoomLeaveDiagnostics < 3) { - o.androidNetworkSubtype = 42; - o.androidNetworkType = 42; - o.iosNetworkType = 42; - o.kind = "foo"; - o.networkOperatorCode = "foo"; - o.networkOperatorName = "foo"; - o.peerSession = buildUnnamed3574(); - o.socketsUsed = true; - } - buildCounterRoomLeaveDiagnostics--; - return o; -} - -checkRoomLeaveDiagnostics(api.RoomLeaveDiagnostics o) { - buildCounterRoomLeaveDiagnostics++; - if (buildCounterRoomLeaveDiagnostics < 3) { - unittest.expect(o.androidNetworkSubtype, unittest.equals(42)); - unittest.expect(o.androidNetworkType, unittest.equals(42)); - unittest.expect(o.iosNetworkType, unittest.equals(42)); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.networkOperatorCode, unittest.equals('foo')); - unittest.expect(o.networkOperatorName, unittest.equals('foo')); - checkUnnamed3574(o.peerSession); - unittest.expect(o.socketsUsed, unittest.isTrue); - } - buildCounterRoomLeaveDiagnostics--; -} - -core.int buildCounterRoomLeaveRequest = 0; -buildRoomLeaveRequest() { - var o = new api.RoomLeaveRequest(); - buildCounterRoomLeaveRequest++; - if (buildCounterRoomLeaveRequest < 3) { - o.kind = "foo"; - o.leaveDiagnostics = buildRoomLeaveDiagnostics(); - o.reason = "foo"; - } - buildCounterRoomLeaveRequest--; - return o; -} - -checkRoomLeaveRequest(api.RoomLeaveRequest o) { - buildCounterRoomLeaveRequest++; - if (buildCounterRoomLeaveRequest < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkRoomLeaveDiagnostics(o.leaveDiagnostics); - unittest.expect(o.reason, unittest.equals('foo')); - } - buildCounterRoomLeaveRequest--; -} - -buildUnnamed3575() { - var o = new core.List<api.Room>(); - o.add(buildRoom()); - o.add(buildRoom()); - return o; -} - -checkUnnamed3575(core.List<api.Room> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRoom(o[0]); - checkRoom(o[1]); -} - -core.int buildCounterRoomList = 0; -buildRoomList() { - var o = new api.RoomList(); - buildCounterRoomList++; - if (buildCounterRoomList < 3) { - o.items = buildUnnamed3575(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterRoomList--; - return o; -} - -checkRoomList(api.RoomList o) { - buildCounterRoomList++; - if (buildCounterRoomList < 3) { - checkUnnamed3575(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterRoomList--; -} - -core.int buildCounterRoomModification = 0; -buildRoomModification() { - var o = new api.RoomModification(); - buildCounterRoomModification++; - if (buildCounterRoomModification < 3) { - o.kind = "foo"; - o.modifiedTimestampMillis = "foo"; - o.participantId = "foo"; - } - buildCounterRoomModification--; - return o; -} - -checkRoomModification(api.RoomModification o) { - buildCounterRoomModification++; - if (buildCounterRoomModification < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.modifiedTimestampMillis, unittest.equals('foo')); - unittest.expect(o.participantId, unittest.equals('foo')); - } - buildCounterRoomModification--; -} - -core.int buildCounterRoomP2PStatus = 0; -buildRoomP2PStatus() { - var o = new api.RoomP2PStatus(); - buildCounterRoomP2PStatus++; - if (buildCounterRoomP2PStatus < 3) { - o.connectionSetupLatencyMillis = 42; - o.error = "foo"; - o.errorReason = "foo"; - o.kind = "foo"; - o.participantId = "foo"; - o.status = "foo"; - o.unreliableRoundtripLatencyMillis = 42; - } - buildCounterRoomP2PStatus--; - return o; -} - -checkRoomP2PStatus(api.RoomP2PStatus o) { - buildCounterRoomP2PStatus++; - if (buildCounterRoomP2PStatus < 3) { - unittest.expect(o.connectionSetupLatencyMillis, unittest.equals(42)); - unittest.expect(o.error, unittest.equals('foo')); - unittest.expect(o.errorReason, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.participantId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.unreliableRoundtripLatencyMillis, unittest.equals(42)); - } - buildCounterRoomP2PStatus--; -} - -buildUnnamed3576() { - var o = new core.List<api.RoomP2PStatus>(); - o.add(buildRoomP2PStatus()); - o.add(buildRoomP2PStatus()); - return o; -} - -checkUnnamed3576(core.List<api.RoomP2PStatus> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRoomP2PStatus(o[0]); - checkRoomP2PStatus(o[1]); -} - -core.int buildCounterRoomP2PStatuses = 0; -buildRoomP2PStatuses() { - var o = new api.RoomP2PStatuses(); - buildCounterRoomP2PStatuses++; - if (buildCounterRoomP2PStatuses < 3) { - o.kind = "foo"; - o.updates = buildUnnamed3576(); - } - buildCounterRoomP2PStatuses--; - return o; -} - -checkRoomP2PStatuses(api.RoomP2PStatuses o) { - buildCounterRoomP2PStatuses++; - if (buildCounterRoomP2PStatuses < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3576(o.updates); - } - buildCounterRoomP2PStatuses--; -} - -buildUnnamed3577() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3577(core.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 buildCounterRoomParticipant = 0; -buildRoomParticipant() { - var o = new api.RoomParticipant(); - buildCounterRoomParticipant++; - if (buildCounterRoomParticipant < 3) { - o.autoMatched = true; - o.autoMatchedPlayer = buildAnonymousPlayer(); - o.capabilities = buildUnnamed3577(); - o.clientAddress = buildRoomClientAddress(); - o.connected = true; - o.id = "foo"; - o.kind = "foo"; - o.leaveReason = "foo"; - o.player = buildPlayer(); - o.status = "foo"; - } - buildCounterRoomParticipant--; - return o; -} - -checkRoomParticipant(api.RoomParticipant o) { - buildCounterRoomParticipant++; - if (buildCounterRoomParticipant < 3) { - unittest.expect(o.autoMatched, unittest.isTrue); - checkAnonymousPlayer(o.autoMatchedPlayer); - checkUnnamed3577(o.capabilities); - checkRoomClientAddress(o.clientAddress); - unittest.expect(o.connected, unittest.isTrue); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.leaveReason, unittest.equals('foo')); - checkPlayer(o.player); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterRoomParticipant--; -} - -buildUnnamed3578() { - var o = new core.List<api.RoomParticipant>(); - o.add(buildRoomParticipant()); - o.add(buildRoomParticipant()); - return o; -} - -checkUnnamed3578(core.List<api.RoomParticipant> o) { - unittest.expect(o, unittest.hasLength(2)); - checkRoomParticipant(o[0]); - checkRoomParticipant(o[1]); -} - -core.int buildCounterRoomStatus = 0; -buildRoomStatus() { - var o = new api.RoomStatus(); - buildCounterRoomStatus++; - if (buildCounterRoomStatus < 3) { - o.autoMatchingStatus = buildRoomAutoMatchStatus(); - o.kind = "foo"; - o.participants = buildUnnamed3578(); - o.roomId = "foo"; - o.status = "foo"; - o.statusVersion = 42; - } - buildCounterRoomStatus--; - return o; -} - -checkRoomStatus(api.RoomStatus o) { - buildCounterRoomStatus++; - if (buildCounterRoomStatus < 3) { - checkRoomAutoMatchStatus(o.autoMatchingStatus); - unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3578(o.participants); - unittest.expect(o.roomId, unittest.equals('foo')); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.statusVersion, unittest.equals(42)); - } - buildCounterRoomStatus--; -} - core.int buildCounterScoreSubmission = 0; buildScoreSubmission() { var o = new api.ScoreSubmission(); @@ -2660,14 +1899,14 @@ buildCounterSnapshotImage--; } -buildUnnamed3579() { +buildUnnamed3742() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed3579(core.List<api.Snapshot> o) { +checkUnnamed3742(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -2678,7 +1917,7 @@ var o = new api.SnapshotListResponse(); buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - o.items = buildUnnamed3579(); + o.items = buildUnnamed3742(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -2689,430 +1928,50 @@ checkSnapshotListResponse(api.SnapshotListResponse o) { buildCounterSnapshotListResponse++; if (buildCounterSnapshotListResponse < 3) { - checkUnnamed3579(o.items); + checkUnnamed3742(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterSnapshotListResponse--; } -core.int buildCounterTurnBasedAutoMatchingCriteria = 0; -buildTurnBasedAutoMatchingCriteria() { - var o = new api.TurnBasedAutoMatchingCriteria(); - buildCounterTurnBasedAutoMatchingCriteria++; - if (buildCounterTurnBasedAutoMatchingCriteria < 3) { - o.exclusiveBitmask = "foo"; +core.int buildCounterStatsResponse = 0; +buildStatsResponse() { + var o = new api.StatsResponse(); + buildCounterStatsResponse++; + if (buildCounterStatsResponse < 3) { + o.avgSessionLengthMinutes = 42.0; + o.churnProbability = 42.0; + o.daysSinceLastPlayed = 42; + o.highSpenderProbability = 42.0; o.kind = "foo"; - o.maxAutoMatchingPlayers = 42; - o.minAutoMatchingPlayers = 42; + o.numPurchases = 42; + o.numSessions = 42; + o.numSessionsPercentile = 42.0; + o.spendPercentile = 42.0; + o.spendProbability = 42.0; + o.totalSpendNext28Days = 42.0; } - buildCounterTurnBasedAutoMatchingCriteria--; + buildCounterStatsResponse--; return o; } -checkTurnBasedAutoMatchingCriteria(api.TurnBasedAutoMatchingCriteria o) { - buildCounterTurnBasedAutoMatchingCriteria++; - if (buildCounterTurnBasedAutoMatchingCriteria < 3) { - unittest.expect(o.exclusiveBitmask, unittest.equals('foo')); +checkStatsResponse(api.StatsResponse o) { + buildCounterStatsResponse++; + if (buildCounterStatsResponse < 3) { + unittest.expect(o.avgSessionLengthMinutes, unittest.equals(42.0)); + unittest.expect(o.churnProbability, unittest.equals(42.0)); + unittest.expect(o.daysSinceLastPlayed, unittest.equals(42)); + unittest.expect(o.highSpenderProbability, unittest.equals(42.0)); unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.maxAutoMatchingPlayers, unittest.equals(42)); - unittest.expect(o.minAutoMatchingPlayers, unittest.equals(42)); + unittest.expect(o.numPurchases, unittest.equals(42)); + unittest.expect(o.numSessions, unittest.equals(42)); + unittest.expect(o.numSessionsPercentile, unittest.equals(42.0)); + unittest.expect(o.spendPercentile, unittest.equals(42.0)); + unittest.expect(o.spendProbability, unittest.equals(42.0)); + unittest.expect(o.totalSpendNext28Days, unittest.equals(42.0)); } - buildCounterTurnBasedAutoMatchingCriteria--; -} - -buildUnnamed3580() { - var o = new core.List<api.TurnBasedMatchParticipant>(); - o.add(buildTurnBasedMatchParticipant()); - o.add(buildTurnBasedMatchParticipant()); - return o; -} - -checkUnnamed3580(core.List<api.TurnBasedMatchParticipant> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTurnBasedMatchParticipant(o[0]); - checkTurnBasedMatchParticipant(o[1]); -} - -buildUnnamed3581() { - var o = new core.List<api.ParticipantResult>(); - o.add(buildParticipantResult()); - o.add(buildParticipantResult()); - return o; -} - -checkUnnamed3581(core.List<api.ParticipantResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParticipantResult(o[0]); - checkParticipantResult(o[1]); -} - -core.int buildCounterTurnBasedMatch = 0; -buildTurnBasedMatch() { - var o = new api.TurnBasedMatch(); - buildCounterTurnBasedMatch++; - if (buildCounterTurnBasedMatch < 3) { - o.applicationId = "foo"; - o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); - o.creationDetails = buildTurnBasedMatchModification(); - o.data = buildTurnBasedMatchData(); - o.description = "foo"; - o.inviterId = "foo"; - o.kind = "foo"; - o.lastUpdateDetails = buildTurnBasedMatchModification(); - o.matchId = "foo"; - o.matchNumber = 42; - o.matchVersion = 42; - o.participants = buildUnnamed3580(); - o.pendingParticipantId = "foo"; - o.previousMatchData = buildTurnBasedMatchData(); - o.rematchId = "foo"; - o.results = buildUnnamed3581(); - o.status = "foo"; - o.userMatchStatus = "foo"; - o.variant = 42; - o.withParticipantId = "foo"; - } - buildCounterTurnBasedMatch--; - return o; -} - -checkTurnBasedMatch(api.TurnBasedMatch o) { - buildCounterTurnBasedMatch++; - if (buildCounterTurnBasedMatch < 3) { - unittest.expect(o.applicationId, unittest.equals('foo')); - checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); - checkTurnBasedMatchModification(o.creationDetails); - checkTurnBasedMatchData(o.data); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.inviterId, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkTurnBasedMatchModification(o.lastUpdateDetails); - unittest.expect(o.matchId, unittest.equals('foo')); - unittest.expect(o.matchNumber, unittest.equals(42)); - unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed3580(o.participants); - unittest.expect(o.pendingParticipantId, unittest.equals('foo')); - checkTurnBasedMatchData(o.previousMatchData); - unittest.expect(o.rematchId, unittest.equals('foo')); - checkUnnamed3581(o.results); - unittest.expect(o.status, unittest.equals('foo')); - unittest.expect(o.userMatchStatus, unittest.equals('foo')); - unittest.expect(o.variant, unittest.equals(42)); - unittest.expect(o.withParticipantId, unittest.equals('foo')); - } - buildCounterTurnBasedMatch--; -} - -buildUnnamed3582() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3582(core.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 buildCounterTurnBasedMatchCreateRequest = 0; -buildTurnBasedMatchCreateRequest() { - var o = new api.TurnBasedMatchCreateRequest(); - buildCounterTurnBasedMatchCreateRequest++; - if (buildCounterTurnBasedMatchCreateRequest < 3) { - o.autoMatchingCriteria = buildTurnBasedAutoMatchingCriteria(); - o.invitedPlayerIds = buildUnnamed3582(); - o.kind = "foo"; - o.requestId = "foo"; - o.variant = 42; - } - buildCounterTurnBasedMatchCreateRequest--; - return o; -} - -checkTurnBasedMatchCreateRequest(api.TurnBasedMatchCreateRequest o) { - buildCounterTurnBasedMatchCreateRequest++; - if (buildCounterTurnBasedMatchCreateRequest < 3) { - checkTurnBasedAutoMatchingCriteria(o.autoMatchingCriteria); - checkUnnamed3582(o.invitedPlayerIds); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.requestId, unittest.equals('foo')); - unittest.expect(o.variant, unittest.equals(42)); - } - buildCounterTurnBasedMatchCreateRequest--; -} - -core.int buildCounterTurnBasedMatchData = 0; -buildTurnBasedMatchData() { - var o = new api.TurnBasedMatchData(); - buildCounterTurnBasedMatchData++; - if (buildCounterTurnBasedMatchData < 3) { - o.data = "foo"; - o.dataAvailable = true; - o.kind = "foo"; - } - buildCounterTurnBasedMatchData--; - return o; -} - -checkTurnBasedMatchData(api.TurnBasedMatchData o) { - buildCounterTurnBasedMatchData++; - if (buildCounterTurnBasedMatchData < 3) { - unittest.expect(o.data, unittest.equals('foo')); - unittest.expect(o.dataAvailable, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterTurnBasedMatchData--; -} - -core.int buildCounterTurnBasedMatchDataRequest = 0; -buildTurnBasedMatchDataRequest() { - var o = new api.TurnBasedMatchDataRequest(); - buildCounterTurnBasedMatchDataRequest++; - if (buildCounterTurnBasedMatchDataRequest < 3) { - o.data = "foo"; - o.kind = "foo"; - } - buildCounterTurnBasedMatchDataRequest--; - return o; -} - -checkTurnBasedMatchDataRequest(api.TurnBasedMatchDataRequest o) { - buildCounterTurnBasedMatchDataRequest++; - if (buildCounterTurnBasedMatchDataRequest < 3) { - unittest.expect(o.data, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterTurnBasedMatchDataRequest--; -} - -buildUnnamed3583() { - var o = new core.List<api.TurnBasedMatch>(); - o.add(buildTurnBasedMatch()); - o.add(buildTurnBasedMatch()); - return o; -} - -checkUnnamed3583(core.List<api.TurnBasedMatch> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTurnBasedMatch(o[0]); - checkTurnBasedMatch(o[1]); -} - -core.int buildCounterTurnBasedMatchList = 0; -buildTurnBasedMatchList() { - var o = new api.TurnBasedMatchList(); - buildCounterTurnBasedMatchList++; - if (buildCounterTurnBasedMatchList < 3) { - o.items = buildUnnamed3583(); - o.kind = "foo"; - o.nextPageToken = "foo"; - } - buildCounterTurnBasedMatchList--; - return o; -} - -checkTurnBasedMatchList(api.TurnBasedMatchList o) { - buildCounterTurnBasedMatchList++; - if (buildCounterTurnBasedMatchList < 3) { - checkUnnamed3583(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterTurnBasedMatchList--; -} - -core.int buildCounterTurnBasedMatchModification = 0; -buildTurnBasedMatchModification() { - var o = new api.TurnBasedMatchModification(); - buildCounterTurnBasedMatchModification++; - if (buildCounterTurnBasedMatchModification < 3) { - o.kind = "foo"; - o.modifiedTimestampMillis = "foo"; - o.participantId = "foo"; - } - buildCounterTurnBasedMatchModification--; - return o; -} - -checkTurnBasedMatchModification(api.TurnBasedMatchModification o) { - buildCounterTurnBasedMatchModification++; - if (buildCounterTurnBasedMatchModification < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.modifiedTimestampMillis, unittest.equals('foo')); - unittest.expect(o.participantId, unittest.equals('foo')); - } - buildCounterTurnBasedMatchModification--; -} - -core.int buildCounterTurnBasedMatchParticipant = 0; -buildTurnBasedMatchParticipant() { - var o = new api.TurnBasedMatchParticipant(); - buildCounterTurnBasedMatchParticipant++; - if (buildCounterTurnBasedMatchParticipant < 3) { - o.autoMatched = true; - o.autoMatchedPlayer = buildAnonymousPlayer(); - o.id = "foo"; - o.kind = "foo"; - o.player = buildPlayer(); - o.status = "foo"; - } - buildCounterTurnBasedMatchParticipant--; - return o; -} - -checkTurnBasedMatchParticipant(api.TurnBasedMatchParticipant o) { - buildCounterTurnBasedMatchParticipant++; - if (buildCounterTurnBasedMatchParticipant < 3) { - unittest.expect(o.autoMatched, unittest.isTrue); - checkAnonymousPlayer(o.autoMatchedPlayer); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkPlayer(o.player); - unittest.expect(o.status, unittest.equals('foo')); - } - buildCounterTurnBasedMatchParticipant--; -} - -core.int buildCounterTurnBasedMatchRematch = 0; -buildTurnBasedMatchRematch() { - var o = new api.TurnBasedMatchRematch(); - buildCounterTurnBasedMatchRematch++; - if (buildCounterTurnBasedMatchRematch < 3) { - o.kind = "foo"; - o.previousMatch = buildTurnBasedMatch(); - o.rematch = buildTurnBasedMatch(); - } - buildCounterTurnBasedMatchRematch--; - return o; -} - -checkTurnBasedMatchRematch(api.TurnBasedMatchRematch o) { - buildCounterTurnBasedMatchRematch++; - if (buildCounterTurnBasedMatchRematch < 3) { - unittest.expect(o.kind, unittest.equals('foo')); - checkTurnBasedMatch(o.previousMatch); - checkTurnBasedMatch(o.rematch); - } - buildCounterTurnBasedMatchRematch--; -} - -buildUnnamed3584() { - var o = new core.List<api.ParticipantResult>(); - o.add(buildParticipantResult()); - o.add(buildParticipantResult()); - return o; -} - -checkUnnamed3584(core.List<api.ParticipantResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParticipantResult(o[0]); - checkParticipantResult(o[1]); -} - -core.int buildCounterTurnBasedMatchResults = 0; -buildTurnBasedMatchResults() { - var o = new api.TurnBasedMatchResults(); - buildCounterTurnBasedMatchResults++; - if (buildCounterTurnBasedMatchResults < 3) { - o.data = buildTurnBasedMatchDataRequest(); - o.kind = "foo"; - o.matchVersion = 42; - o.results = buildUnnamed3584(); - } - buildCounterTurnBasedMatchResults--; - return o; -} - -checkTurnBasedMatchResults(api.TurnBasedMatchResults o) { - buildCounterTurnBasedMatchResults++; - if (buildCounterTurnBasedMatchResults < 3) { - checkTurnBasedMatchDataRequest(o.data); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.matchVersion, unittest.equals(42)); - checkUnnamed3584(o.results); - } - buildCounterTurnBasedMatchResults--; -} - -buildUnnamed3585() { - var o = new core.List<api.TurnBasedMatch>(); - o.add(buildTurnBasedMatch()); - o.add(buildTurnBasedMatch()); - return o; -} - -checkUnnamed3585(core.List<api.TurnBasedMatch> o) { - unittest.expect(o, unittest.hasLength(2)); - checkTurnBasedMatch(o[0]); - checkTurnBasedMatch(o[1]); -} - -core.int buildCounterTurnBasedMatchSync = 0; -buildTurnBasedMatchSync() { - var o = new api.TurnBasedMatchSync(); - buildCounterTurnBasedMatchSync++; - if (buildCounterTurnBasedMatchSync < 3) { - o.items = buildUnnamed3585(); - o.kind = "foo"; - o.moreAvailable = true; - o.nextPageToken = "foo"; - } - buildCounterTurnBasedMatchSync--; - return o; -} - -checkTurnBasedMatchSync(api.TurnBasedMatchSync o) { - buildCounterTurnBasedMatchSync++; - if (buildCounterTurnBasedMatchSync < 3) { - checkUnnamed3585(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.moreAvailable, unittest.isTrue); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - } - buildCounterTurnBasedMatchSync--; -} - -buildUnnamed3586() { - var o = new core.List<api.ParticipantResult>(); - o.add(buildParticipantResult()); - o.add(buildParticipantResult()); - return o; -} - -checkUnnamed3586(core.List<api.ParticipantResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkParticipantResult(o[0]); - checkParticipantResult(o[1]); -} - -core.int buildCounterTurnBasedMatchTurn = 0; -buildTurnBasedMatchTurn() { - var o = new api.TurnBasedMatchTurn(); - buildCounterTurnBasedMatchTurn++; - if (buildCounterTurnBasedMatchTurn < 3) { - o.data = buildTurnBasedMatchDataRequest(); - o.kind = "foo"; - o.matchVersion = 42; - o.pendingParticipantId = "foo"; - o.results = buildUnnamed3586(); - } - buildCounterTurnBasedMatchTurn--; - return o; -} - -checkTurnBasedMatchTurn(api.TurnBasedMatchTurn o) { - buildCounterTurnBasedMatchTurn++; - if (buildCounterTurnBasedMatchTurn < 3) { - checkTurnBasedMatchDataRequest(o.data); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.matchVersion, unittest.equals(42)); - unittest.expect(o.pendingParticipantId, unittest.equals('foo')); - checkUnnamed3586(o.results); - } - buildCounterTurnBasedMatchTurn--; + buildCounterStatsResponse--; } main() { @@ -3196,22 +2055,6 @@ }); }); - unittest.group("obj-schema-AggregateStats", () { - unittest.test("to-json--from-json", () { - var o = buildAggregateStats(); - var od = new api.AggregateStats.fromJson(o.toJson()); - checkAggregateStats(od); - }); - }); - - unittest.group("obj-schema-AnonymousPlayer", () { - unittest.test("to-json--from-json", () { - var o = buildAnonymousPlayer(); - var od = new api.AnonymousPlayer.fromJson(o.toJson()); - checkAnonymousPlayer(od); - }); - }); - unittest.group("obj-schema-Application", () { unittest.test("to-json--from-json", () { var o = buildApplication(); @@ -3436,46 +2279,6 @@ }); }); - unittest.group("obj-schema-NetworkDiagnostics", () { - unittest.test("to-json--from-json", () { - var o = buildNetworkDiagnostics(); - var od = new api.NetworkDiagnostics.fromJson(o.toJson()); - checkNetworkDiagnostics(od); - }); - }); - - unittest.group("obj-schema-ParticipantResult", () { - unittest.test("to-json--from-json", () { - var o = buildParticipantResult(); - var od = new api.ParticipantResult.fromJson(o.toJson()); - checkParticipantResult(od); - }); - }); - - unittest.group("obj-schema-PeerChannelDiagnostics", () { - unittest.test("to-json--from-json", () { - var o = buildPeerChannelDiagnostics(); - var od = new api.PeerChannelDiagnostics.fromJson(o.toJson()); - checkPeerChannelDiagnostics(od); - }); - }); - - unittest.group("obj-schema-PeerSessionDiagnostics", () { - unittest.test("to-json--from-json", () { - var o = buildPeerSessionDiagnostics(); - var od = new api.PeerSessionDiagnostics.fromJson(o.toJson()); - checkPeerSessionDiagnostics(od); - }); - }); - - unittest.group("obj-schema-Played", () { - unittest.test("to-json--from-json", () { - var o = buildPlayed(); - var od = new api.Played.fromJson(o.toJson()); - checkPlayed(od); - }); - }); - unittest.group("obj-schema-PlayerName", () { unittest.test("to-json--from-json", () { var o = buildPlayerName(); @@ -3604,30 +2407,6 @@ }); }); - unittest.group("obj-schema-PushToken", () { - unittest.test("to-json--from-json", () { - var o = buildPushToken(); - var od = new api.PushToken.fromJson(o.toJson()); - checkPushToken(od); - }); - }); - - unittest.group("obj-schema-PushTokenIdIos", () { - unittest.test("to-json--from-json", () { - var o = buildPushTokenIdIos(); - var od = new api.PushTokenIdIos.fromJson(o.toJson()); - checkPushTokenIdIos(od); - }); - }); - - unittest.group("obj-schema-PushTokenId", () { - unittest.test("to-json--from-json", () { - var o = buildPushTokenId(); - var od = new api.PushTokenId.fromJson(o.toJson()); - checkPushTokenId(od); - }); - }); - unittest.group("obj-schema-RevisionCheckResponse", () { unittest.test("to-json--from-json", () { var o = buildRevisionCheckResponse(); @@ -3636,118 +2415,6 @@ }); }); - unittest.group("obj-schema-Room", () { - unittest.test("to-json--from-json", () { - var o = buildRoom(); - var od = new api.Room.fromJson(o.toJson()); - checkRoom(od); - }); - }); - - unittest.group("obj-schema-RoomAutoMatchStatus", () { - unittest.test("to-json--from-json", () { - var o = buildRoomAutoMatchStatus(); - var od = new api.RoomAutoMatchStatus.fromJson(o.toJson()); - checkRoomAutoMatchStatus(od); - }); - }); - - unittest.group("obj-schema-RoomAutoMatchingCriteria", () { - unittest.test("to-json--from-json", () { - var o = buildRoomAutoMatchingCriteria(); - var od = new api.RoomAutoMatchingCriteria.fromJson(o.toJson()); - checkRoomAutoMatchingCriteria(od); - }); - }); - - unittest.group("obj-schema-RoomClientAddress", () { - unittest.test("to-json--from-json", () { - var o = buildRoomClientAddress(); - var od = new api.RoomClientAddress.fromJson(o.toJson()); - checkRoomClientAddress(od); - }); - }); - - unittest.group("obj-schema-RoomCreateRequest", () { - unittest.test("to-json--from-json", () { - var o = buildRoomCreateRequest(); - var od = new api.RoomCreateRequest.fromJson(o.toJson()); - checkRoomCreateRequest(od); - }); - }); - - unittest.group("obj-schema-RoomJoinRequest", () { - unittest.test("to-json--from-json", () { - var o = buildRoomJoinRequest(); - var od = new api.RoomJoinRequest.fromJson(o.toJson()); - checkRoomJoinRequest(od); - }); - }); - - unittest.group("obj-schema-RoomLeaveDiagnostics", () { - unittest.test("to-json--from-json", () { - var o = buildRoomLeaveDiagnostics(); - var od = new api.RoomLeaveDiagnostics.fromJson(o.toJson()); - checkRoomLeaveDiagnostics(od); - }); - }); - - unittest.group("obj-schema-RoomLeaveRequest", () { - unittest.test("to-json--from-json", () { - var o = buildRoomLeaveRequest(); - var od = new api.RoomLeaveRequest.fromJson(o.toJson()); - checkRoomLeaveRequest(od); - }); - }); - - unittest.group("obj-schema-RoomList", () { - unittest.test("to-json--from-json", () { - var o = buildRoomList(); - var od = new api.RoomList.fromJson(o.toJson()); - checkRoomList(od); - }); - }); - - unittest.group("obj-schema-RoomModification", () { - unittest.test("to-json--from-json", () { - var o = buildRoomModification(); - var od = new api.RoomModification.fromJson(o.toJson()); - checkRoomModification(od); - }); - }); - - unittest.group("obj-schema-RoomP2PStatus", () { - unittest.test("to-json--from-json", () { - var o = buildRoomP2PStatus(); - var od = new api.RoomP2PStatus.fromJson(o.toJson()); - checkRoomP2PStatus(od); - }); - }); - - unittest.group("obj-schema-RoomP2PStatuses", () { - unittest.test("to-json--from-json", () { - var o = buildRoomP2PStatuses(); - var od = new api.RoomP2PStatuses.fromJson(o.toJson()); - checkRoomP2PStatuses(od); - }); - }); - - unittest.group("obj-schema-RoomParticipant", () { - unittest.test("to-json--from-json", () { - var o = buildRoomParticipant(); - var od = new api.RoomParticipant.fromJson(o.toJson()); - checkRoomParticipant(od); - }); - }); - - unittest.group("obj-schema-RoomStatus", () { - unittest.test("to-json--from-json", () { - var o = buildRoomStatus(); - var od = new api.RoomStatus.fromJson(o.toJson()); - checkRoomStatus(od); - }); - }); - unittest.group("obj-schema-ScoreSubmission", () { unittest.test("to-json--from-json", () { var o = buildScoreSubmission(); @@ -3780,99 +2447,11 @@ }); }); - unittest.group("obj-schema-TurnBasedAutoMatchingCriteria", () { + unittest.group("obj-schema-StatsResponse", () { unittest.test("to-json--from-json", () { - var o = buildTurnBasedAutoMatchingCriteria(); - var od = new api.TurnBasedAutoMatchingCriteria.fromJson(o.toJson()); - checkTurnBasedAutoMatchingCriteria(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatch", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatch(); - var od = new api.TurnBasedMatch.fromJson(o.toJson()); - checkTurnBasedMatch(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchCreateRequest", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchCreateRequest(); - var od = new api.TurnBasedMatchCreateRequest.fromJson(o.toJson()); - checkTurnBasedMatchCreateRequest(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchData", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchData(); - var od = new api.TurnBasedMatchData.fromJson(o.toJson()); - checkTurnBasedMatchData(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchDataRequest", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchDataRequest(); - var od = new api.TurnBasedMatchDataRequest.fromJson(o.toJson()); - checkTurnBasedMatchDataRequest(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchList", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchList(); - var od = new api.TurnBasedMatchList.fromJson(o.toJson()); - checkTurnBasedMatchList(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchModification", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchModification(); - var od = new api.TurnBasedMatchModification.fromJson(o.toJson()); - checkTurnBasedMatchModification(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchParticipant", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchParticipant(); - var od = new api.TurnBasedMatchParticipant.fromJson(o.toJson()); - checkTurnBasedMatchParticipant(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchRematch", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchRematch(); - var od = new api.TurnBasedMatchRematch.fromJson(o.toJson()); - checkTurnBasedMatchRematch(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchResults", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchResults(); - var od = new api.TurnBasedMatchResults.fromJson(o.toJson()); - checkTurnBasedMatchResults(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchSync", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchSync(); - var od = new api.TurnBasedMatchSync.fromJson(o.toJson()); - checkTurnBasedMatchSync(od); - }); - }); - - unittest.group("obj-schema-TurnBasedMatchTurn", () { - unittest.test("to-json--from-json", () { - var o = buildTurnBasedMatchTurn(); - var od = new api.TurnBasedMatchTurn.fromJson(o.toJson()); - checkTurnBasedMatchTurn(od); + var o = buildStatsResponse(); + var od = new api.StatsResponse.fromJson(o.toJson()); + checkStatsResponse(od); }); }); @@ -3893,12 +2472,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("achievements")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("games/v1/achievements")); + pathOffset += 21; var query = (req.url).query; var queryOffset = 0; @@ -3961,12 +2537,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/achievements/")); + pathOffset += 22; index = path.indexOf("/increment", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4019,10 +2592,10 @@ var mock = new HttpServerMock(); api.AchievementsResourceApi res = new api.GamesApi(mock).achievements; var arg_playerId = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_state = "foo"; + var arg_language = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4032,12 +2605,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("players/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("games/v1/players/")); + pathOffset += 17; index = path.indexOf("/achievements", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4067,12 +2637,12 @@ } } unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); + unittest.expect( + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4083,10 +2653,10 @@ }), true); res .list(arg_playerId, - language: arg_language, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, state: arg_state, + language: arg_language, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlayerAchievementListResponse(response); @@ -4106,12 +2676,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/achievements/")); + pathOffset += 22; index = path.indexOf("/reveal", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4169,12 +2736,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/achievements/")); + pathOffset += 22; index = path.indexOf("/setStepsAtLeast", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4234,12 +2798,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/achievements/")); + pathOffset += 22; index = path.indexOf("/unlock", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4299,12 +2860,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 27), - unittest.equals("achievements/updateMultiple")); - pathOffset += 27; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("games/v1/achievements/updateMultiple")); + pathOffset += 36; var query = (req.url).query; var queryOffset = 0; @@ -4357,12 +2915,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/applications/")); + pathOffset += 22; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_applicationId")); @@ -4419,12 +2974,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("applications/played")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("games/v1/applications/played")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -4468,12 +3020,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/applications/")); + pathOffset += 22; index = path.indexOf("/verify", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4522,9 +3071,9 @@ unittest.test("method--listByPlayer", () { var mock = new HttpServerMock(); api.EventsResourceApi res = new api.GamesApi(mock).events; + var arg_pageToken = "foo"; var arg_language = "foo"; var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4534,12 +3083,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("events")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("games/v1/events")); + pathOffset += 15; var query = (req.url).query; var queryOffset = 0; @@ -4560,11 +3106,11 @@ } } unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4575,9 +3121,9 @@ }), true); res .listByPlayer( + pageToken: arg_pageToken, language: arg_language, maxResults: arg_maxResults, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlayerEventListResponse(response); @@ -4599,12 +3145,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("eventDefinitions")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("games/v1/eventDefinitions")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -4666,12 +3209,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("events")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("games/v1/events")); + pathOffset += 15; var query = (req.url).query; var queryOffset = 0; @@ -4724,12 +3264,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/leaderboards/")); + pathOffset += 22; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_leaderboardId")); @@ -4772,9 +3309,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.LeaderboardsResourceApi res = new api.GamesApi(mock).leaderboards; - var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_language = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4784,12 +3321,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("leaderboards")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("games/v1/leaderboards")); + pathOffset += 21; var query = (req.url).query; var queryOffset = 0; @@ -4809,12 +3343,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4825,9 +3359,9 @@ }), true); res .list( - language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, + language: arg_language, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLeaderboardListResponse(response); @@ -4848,12 +3382,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("metagameConfig")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 23), + unittest.equals("games/v1/metagameConfig")); + pathOffset += 23; var query = (req.url).query; var queryOffset = 0; @@ -4905,12 +3436,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("players/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("games/v1/players/")); + pathOffset += 17; index = path.indexOf("/categories/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -4983,12 +3511,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("players/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("games/v1/players/")); + pathOffset += 17; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_playerId")); @@ -5032,9 +3557,9 @@ var mock = new HttpServerMock(); api.PlayersResourceApi res = new api.GamesApi(mock).players; var arg_collection = "foo"; - var arg_language = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_language = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5044,12 +3569,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("players/me/players/")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("games/v1/players/me/players/")); + pathOffset += 28; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_collection")); @@ -5072,12 +3594,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5088,9 +3610,9 @@ }), true); res .list(arg_collection, - language: arg_language, maxResults: arg_maxResults, pageToken: arg_pageToken, + language: arg_language, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlayerListResponse(response); @@ -5098,116 +3620,6 @@ }); }); - unittest.group("resource-PushtokensResourceApi", () { - unittest.test("method--remove", () { - var mock = new HttpServerMock(); - api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; - var arg_request = buildPushTokenId(); - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.PushTokenId.fromJson(json); - checkPushTokenId(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("pushtokens/remove")); - pathOffset += 17; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .remove(arg_request, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--update", () { - var mock = new HttpServerMock(); - api.PushtokensResourceApi res = new api.GamesApi(mock).pushtokens; - var arg_request = buildPushToken(); - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.PushToken.fromJson(json); - checkPushToken(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("pushtokens")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .update(arg_request, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - }); - unittest.group("resource-RevisionsResourceApi", () { unittest.test("method--check", () { var mock = new HttpServerMock(); @@ -5222,12 +3634,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("revisions/check")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("games/v1/revisions/check")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -5265,526 +3674,6 @@ }); }); - unittest.group("resource-RoomsResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_request = buildRoomCreateRequest(); - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.RoomCreateRequest.fromJson(json); - checkRoomCreateRequest(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("rooms/create")); - pathOffset += 12; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoom()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoom(response); - }))); - }); - - unittest.test("method--decline", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_roomId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - index = path.indexOf("/decline", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/decline")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoom()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .decline(arg_roomId, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoom(response); - }))); - }); - - unittest.test("method--dismiss", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_roomId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - index = path.indexOf("/dismiss", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/dismiss")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .dismiss(arg_roomId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_roomId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoom()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_roomId, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoom(response); - }))); - }); - - unittest.test("method--join", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_request = buildRoomJoinRequest(); - var arg_roomId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.RoomJoinRequest.fromJson(json); - checkRoomJoinRequest(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - index = path.indexOf("/join", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), - unittest.equals("/join")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoom()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .join(arg_request, arg_roomId, - language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoom(response); - }))); - }); - - unittest.test("method--leave", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_request = buildRoomLeaveRequest(); - var arg_roomId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.RoomLeaveRequest.fromJson(json); - checkRoomLeaveRequest(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - index = path.indexOf("/leave", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("/leave")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoom()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .leave(arg_request, arg_roomId, - language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoom(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_language = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 5), - unittest.equals("rooms")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoomList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - language: arg_language, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoomList(response); - }))); - }); - - unittest.test("method--reportStatus", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesApi(mock).rooms; - var arg_request = buildRoomP2PStatuses(); - var arg_roomId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.RoomP2PStatuses.fromJson(json); - checkRoomP2PStatuses(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("rooms/")); - pathOffset += 6; - index = path.indexOf("/reportstatus", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_roomId")); - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("/reportstatus")); - pathOffset += 13; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildRoomStatus()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .reportStatus(arg_request, arg_roomId, - language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkRoomStatus(response); - }))); - }); - }); - unittest.group("resource-ScoresResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -5792,8 +3681,8 @@ var arg_playerId = "foo"; var arg_leaderboardId = "foo"; var arg_timeSpan = "foo"; - var arg_includeRankType = "foo"; var arg_language = "foo"; + var arg_includeRankType = "foo"; var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; @@ -5805,12 +3694,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("players/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("games/v1/players/")); + pathOffset += 17; index = path.indexOf("/leaderboards/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5851,10 +3737,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeRankType"].first, - unittest.equals(arg_includeRankType)); unittest.expect( queryMap["language"].first, unittest.equals(arg_language)); + unittest.expect(queryMap["includeRankType"].first, + unittest.equals(arg_includeRankType)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( @@ -5870,8 +3756,8 @@ }), true); res .get(arg_playerId, arg_leaderboardId, arg_timeSpan, - includeRankType: arg_includeRankType, language: arg_language, + includeRankType: arg_includeRankType, maxResults: arg_maxResults, pageToken: arg_pageToken, $fields: arg_$fields) @@ -5886,9 +3772,9 @@ var arg_leaderboardId = "foo"; var arg_collection = "foo"; var arg_timeSpan = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_language = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5898,12 +3784,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/leaderboards/")); + pathOffset += 22; index = path.indexOf("/scores/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -5938,11 +3821,11 @@ unittest.expect( queryMap["timeSpan"].first, unittest.equals(arg_timeSpan)); unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5953,9 +3836,9 @@ }), true); res .list(arg_leaderboardId, arg_collection, arg_timeSpan, - language: arg_language, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, + language: arg_language, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLeaderboardScores(response); @@ -5968,10 +3851,10 @@ var arg_leaderboardId = "foo"; var arg_collection = "foo"; var arg_timeSpan = "foo"; - var arg_language = "foo"; var arg_maxResults = 42; - var arg_pageToken = "foo"; + var arg_language = "foo"; var arg_resultsAbove = 42; + var arg_pageToken = "foo"; var arg_returnTopIfAbsent = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5982,12 +3865,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/leaderboards/")); + pathOffset += 22; index = path.indexOf("/window/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6021,14 +3901,14 @@ } unittest.expect( queryMap["timeSpan"].first, unittest.equals(arg_timeSpan)); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(core.int.parse(queryMap["resultsAbove"].first), unittest.equals(arg_resultsAbove)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["returnTopIfAbsent"].first, unittest.equals("$arg_returnTopIfAbsent")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -6041,10 +3921,10 @@ }), true); res .listWindow(arg_leaderboardId, arg_collection, arg_timeSpan, - language: arg_language, maxResults: arg_maxResults, - pageToken: arg_pageToken, + language: arg_language, resultsAbove: arg_resultsAbove, + pageToken: arg_pageToken, returnTopIfAbsent: arg_returnTopIfAbsent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -6068,12 +3948,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("games/v1/leaderboards/")); + pathOffset += 22; index = path.indexOf("/scores", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6142,12 +4019,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("leaderboards/scores")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("games/v1/leaderboards/scores")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -6201,12 +4075,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("snapshots/")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("games/v1/snapshots/")); + pathOffset += 19; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_snapshotId")); @@ -6250,9 +4121,9 @@ var mock = new HttpServerMock(); api.SnapshotsResourceApi res = new api.GamesApi(mock).snapshots; var arg_playerId = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_language = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6262,12 +4133,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("players/")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("games/v1/players/")); + pathOffset += 17; index = path.indexOf("/snapshots", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -6297,11 +4165,11 @@ } } unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6312,9 +4180,9 @@ }), true); res .list(arg_playerId, - language: arg_language, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, + language: arg_language, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSnapshotListResponse(response); @@ -6322,333 +4190,10 @@ }); }); - unittest.group("resource-TurnBasedMatchesResourceApi", () { - unittest.test("method--cancel", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/cancel", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("/cancel")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .cancel(arg_matchId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_request = buildTurnBasedMatchCreateRequest(); - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.TurnBasedMatchCreateRequest.fromJson(json); - checkTurnBasedMatchCreateRequest(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 23), - unittest.equals("turnbasedmatches/create")); - pathOffset += 23; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--decline", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/decline", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/decline")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .decline(arg_matchId, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--dismiss", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/dismiss", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/dismiss")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .dismiss(arg_matchId, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--finish", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_request = buildTurnBasedMatchResults(); - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.TurnBasedMatchResults.fromJson(json); - checkTurnBasedMatchResults(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/finish", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("/finish")); - pathOffset += 7; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .finish(arg_request, arg_matchId, - language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - + unittest.group("resource-StatsResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_includeMatchData = true; - var arg_language = "foo"; + api.StatsResourceApi res = new api.GamesApi(mock).stats; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6658,15 +4203,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_matchId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("games/v1/stats")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -6686,523 +4225,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeMatchData"].first, - unittest.equals("$arg_includeMatchData")); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildTurnBasedMatch()); + var resp = convert.json.encode(buildStatsResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); - res - .get(arg_matchId, - includeMatchData: arg_includeMatchData, - language: arg_language, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--join", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/join", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), - unittest.equals("/join")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .join(arg_matchId, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--leave", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/leave", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("/leave")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .leave(arg_matchId, language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--leaveTurn", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_matchVersion = 42; - var arg_language = "foo"; - var arg_pendingParticipantId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/leaveTurn", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("/leaveTurn")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["matchVersion"].first), - unittest.equals(arg_matchVersion)); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["pendingParticipantId"].first, - unittest.equals(arg_pendingParticipantId)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .leaveTurn(arg_matchId, arg_matchVersion, - language: arg_language, - pendingParticipantId: arg_pendingParticipantId, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_includeMatchData = true; - var arg_language = "foo"; - var arg_maxCompletedMatches = 42; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("turnbasedmatches")); - pathOffset += 16; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["includeMatchData"].first, - unittest.equals("$arg_includeMatchData")); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); - unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), - unittest.equals(arg_maxCompletedMatches)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatchList()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list( - includeMatchData: arg_includeMatchData, - language: arg_language, - maxCompletedMatches: arg_maxCompletedMatches, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatchList(response); - }))); - }); - - unittest.test("method--rematch", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_requestId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/rematch", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/rematch")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect( - queryMap["requestId"].first, unittest.equals(arg_requestId)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatchRematch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .rematch(arg_matchId, - language: arg_language, - requestId: arg_requestId, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatchRematch(response); - }))); - }); - - unittest.test("method--sync", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_includeMatchData = true; - var arg_language = "foo"; - var arg_maxCompletedMatches = 42; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("turnbasedmatches/sync")); - pathOffset += 21; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["includeMatchData"].first, - unittest.equals("$arg_includeMatchData")); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); - unittest.expect(core.int.parse(queryMap["maxCompletedMatches"].first), - unittest.equals(arg_maxCompletedMatches)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatchSync()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .sync( - includeMatchData: arg_includeMatchData, - language: arg_language, - maxCompletedMatches: arg_maxCompletedMatches, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatchSync(response); - }))); - }); - - unittest.test("method--takeTurn", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesApi(mock).turnBasedMatches; - var arg_request = buildTurnBasedMatchTurn(); - var arg_matchId = "foo"; - var arg_language = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.TurnBasedMatchTurn.fromJson(json); - checkTurnBasedMatchTurn(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 + 9), - unittest.equals("games/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("turnbasedmatches/")); - pathOffset += 17; - index = path.indexOf("/turn", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_matchId")); - unittest.expect(path.substring(pathOffset, pathOffset + 5), - unittest.equals("/turn")); - pathOffset += 5; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["language"].first, unittest.equals(arg_language)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTurnBasedMatch()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .takeTurn(arg_request, arg_matchId, - language: arg_language, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTurnBasedMatch(response); + res.get($fields: arg_$fields).then(unittest.expectAsync1(((response) { + checkStatsResponse(response); }))); }); });
diff --git a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart index 53d42a4..43c7d58 100644 --- a/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart +++ b/generated/googleapis/test/gamesconfiguration/v1configuration_test.dart
@@ -112,14 +112,14 @@ buildCounterAchievementConfigurationDetail--; } -buildUnnamed3055() { +buildUnnamed3186() { var o = new core.List<api.AchievementConfiguration>(); o.add(buildAchievementConfiguration()); o.add(buildAchievementConfiguration()); return o; } -checkUnnamed3055(core.List<api.AchievementConfiguration> o) { +checkUnnamed3186(core.List<api.AchievementConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementConfiguration(o[0]); checkAchievementConfiguration(o[1]); @@ -130,7 +130,7 @@ var o = new api.AchievementConfigurationListResponse(); buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - o.items = buildUnnamed3055(); + o.items = buildUnnamed3186(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -142,7 +142,7 @@ api.AchievementConfigurationListResponse o) { buildCounterAchievementConfigurationListResponse++; if (buildCounterAchievementConfigurationListResponse < 3) { - checkUnnamed3055(o.items); + checkUnnamed3186(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -288,14 +288,14 @@ buildCounterLeaderboardConfigurationDetail--; } -buildUnnamed3056() { +buildUnnamed3187() { var o = new core.List<api.LeaderboardConfiguration>(); o.add(buildLeaderboardConfiguration()); o.add(buildLeaderboardConfiguration()); return o; } -checkUnnamed3056(core.List<api.LeaderboardConfiguration> o) { +checkUnnamed3187(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 = buildUnnamed3056(); + o.items = buildUnnamed3187(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -318,7 +318,7 @@ api.LeaderboardConfigurationListResponse o) { buildCounterLeaderboardConfigurationListResponse++; if (buildCounterLeaderboardConfigurationListResponse < 3) { - checkUnnamed3056(o.items); + checkUnnamed3187(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -348,14 +348,14 @@ buildCounterLocalizedString--; } -buildUnnamed3057() { +buildUnnamed3188() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed3057(core.List<api.LocalizedString> o) { +checkUnnamed3188(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -367,7 +367,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { o.kind = "foo"; - o.translations = buildUnnamed3057(); + o.translations = buildUnnamed3188(); } buildCounterLocalizedStringBundle--; return o; @@ -377,7 +377,7 @@ buildCounterLocalizedStringBundle++; if (buildCounterLocalizedStringBundle < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3057(o.translations); + checkUnnamed3188(o.translations); } buildCounterLocalizedStringBundle--; } @@ -649,8 +649,8 @@ api.AchievementConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).achievementConfigurations; var arg_applicationId = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -691,10 +691,10 @@ 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(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -706,8 +706,8 @@ }), true); res .list(arg_applicationId, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAchievementConfigurationListResponse(response); @@ -1018,8 +1018,8 @@ api.LeaderboardConfigurationsResourceApi res = new api.GamesConfigurationApi(mock).leaderboardConfigurations; var arg_applicationId = "foo"; - var arg_pageToken = "foo"; var arg_maxResults = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1060,10 +1060,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1075,8 +1075,8 @@ }), true); res .list(arg_applicationId, - pageToken: arg_pageToken, maxResults: arg_maxResults, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLeaderboardConfigurationListResponse(response);
diff --git a/generated/googleapis/test/gamesmanagement/v1management_test.dart b/generated/googleapis/test/gamesmanagement/v1management_test.dart index af9e99f..9796606 100644 --- a/generated/googleapis/test/gamesmanagement/v1management_test.dart +++ b/generated/googleapis/test/gamesmanagement/v1management_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed5338() { +buildUnnamed5737() { var o = new core.List<api.AchievementResetResponse>(); o.add(buildAchievementResetResponse()); o.add(buildAchievementResetResponse()); return o; } -checkUnnamed5338(core.List<api.AchievementResetResponse> o) { +checkUnnamed5737(core.List<api.AchievementResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAchievementResetResponse(o[0]); checkAchievementResetResponse(o[1]); @@ -69,7 +69,7 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed5338(); + o.results = buildUnnamed5737(); } buildCounterAchievementResetAllResponse--; return o; @@ -79,19 +79,19 @@ buildCounterAchievementResetAllResponse++; if (buildCounterAchievementResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5338(o.results); + checkUnnamed5737(o.results); } buildCounterAchievementResetAllResponse--; } -buildUnnamed5339() { +buildUnnamed5738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5339(core.List<core.String> o) { +checkUnnamed5738(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -102,7 +102,7 @@ var o = new api.AchievementResetMultipleForAllRequest(); buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - o.achievementIds = buildUnnamed5339(); + o.achievementIds = buildUnnamed5738(); o.kind = "foo"; } buildCounterAchievementResetMultipleForAllRequest--; @@ -113,7 +113,7 @@ api.AchievementResetMultipleForAllRequest o) { buildCounterAchievementResetMultipleForAllRequest++; if (buildCounterAchievementResetMultipleForAllRequest < 3) { - checkUnnamed5339(o.achievementIds); + checkUnnamed5738(o.achievementIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterAchievementResetMultipleForAllRequest--; @@ -144,14 +144,14 @@ buildCounterAchievementResetResponse--; } -buildUnnamed5340() { +buildUnnamed5739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5340(core.List<core.String> o) { +checkUnnamed5739(core.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 = buildUnnamed5340(); + o.eventIds = buildUnnamed5739(); o.kind = "foo"; } buildCounterEventsResetMultipleForAllRequest--; @@ -172,33 +172,12 @@ checkEventsResetMultipleForAllRequest(api.EventsResetMultipleForAllRequest o) { buildCounterEventsResetMultipleForAllRequest++; if (buildCounterEventsResetMultipleForAllRequest < 3) { - checkUnnamed5340(o.eventIds); + checkUnnamed5739(o.eventIds); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterEventsResetMultipleForAllRequest--; } -core.int buildCounterGamesPlayedResource = 0; -buildGamesPlayedResource() { - var o = new api.GamesPlayedResource(); - buildCounterGamesPlayedResource++; - if (buildCounterGamesPlayedResource < 3) { - o.autoMatched = true; - o.timeMillis = "foo"; - } - buildCounterGamesPlayedResource--; - return o; -} - -checkGamesPlayedResource(api.GamesPlayedResource o) { - buildCounterGamesPlayedResource++; - if (buildCounterGamesPlayedResource < 3) { - unittest.expect(o.autoMatched, unittest.isTrue); - unittest.expect(o.timeMillis, unittest.equals('foo')); - } - buildCounterGamesPlayedResource--; -} - core.int buildCounterGamesPlayerExperienceInfoResource = 0; buildGamesPlayerExperienceInfoResource() { var o = new api.GamesPlayerExperienceInfoResource(); @@ -271,14 +250,14 @@ buildCounterHiddenPlayer--; } -buildUnnamed5341() { +buildUnnamed5740() { var o = new core.List<api.HiddenPlayer>(); o.add(buildHiddenPlayer()); o.add(buildHiddenPlayer()); return o; } -checkUnnamed5341(core.List<api.HiddenPlayer> o) { +checkUnnamed5740(core.List<api.HiddenPlayer> o) { unittest.expect(o, unittest.hasLength(2)); checkHiddenPlayer(o[0]); checkHiddenPlayer(o[1]); @@ -289,7 +268,7 @@ var o = new api.HiddenPlayerList(); buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - o.items = buildUnnamed5341(); + o.items = buildUnnamed5740(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -300,7 +279,7 @@ checkHiddenPlayerList(api.HiddenPlayerList o) { buildCounterHiddenPlayerList++; if (buildCounterHiddenPlayerList < 3) { - checkUnnamed5341(o.items); + checkUnnamed5740(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -338,9 +317,7 @@ o.bannerUrlPortrait = "foo"; o.displayName = "foo"; o.experienceInfo = buildGamesPlayerExperienceInfoResource(); - o.friendStatus = "foo"; o.kind = "foo"; - o.lastPlayedWith = buildGamesPlayedResource(); o.name = buildPlayerName(); o.originalPlayerId = "foo"; o.playerId = "foo"; @@ -359,9 +336,7 @@ unittest.expect(o.bannerUrlPortrait, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); checkGamesPlayerExperienceInfoResource(o.experienceInfo); - unittest.expect(o.friendStatus, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkGamesPlayedResource(o.lastPlayedWith); checkPlayerName(o.name); unittest.expect(o.originalPlayerId, unittest.equals('foo')); unittest.expect(o.playerId, unittest.equals('foo')); @@ -371,14 +346,14 @@ buildCounterPlayer--; } -buildUnnamed5342() { +buildUnnamed5741() { var o = new core.List<api.PlayerScoreResetResponse>(); o.add(buildPlayerScoreResetResponse()); o.add(buildPlayerScoreResetResponse()); return o; } -checkUnnamed5342(core.List<api.PlayerScoreResetResponse> o) { +checkUnnamed5741(core.List<api.PlayerScoreResetResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPlayerScoreResetResponse(o[0]); checkPlayerScoreResetResponse(o[1]); @@ -390,7 +365,7 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { o.kind = "foo"; - o.results = buildUnnamed5342(); + o.results = buildUnnamed5741(); } buildCounterPlayerScoreResetAllResponse--; return o; @@ -400,19 +375,19 @@ buildCounterPlayerScoreResetAllResponse++; if (buildCounterPlayerScoreResetAllResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5342(o.results); + checkUnnamed5741(o.results); } buildCounterPlayerScoreResetAllResponse--; } -buildUnnamed5343() { +buildUnnamed5742() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5343(core.List<core.String> o) { +checkUnnamed5742(core.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 +400,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { o.definitionId = "foo"; o.kind = "foo"; - o.resetScoreTimeSpans = buildUnnamed5343(); + o.resetScoreTimeSpans = buildUnnamed5742(); } buildCounterPlayerScoreResetResponse--; return o; @@ -436,7 +411,7 @@ if (buildCounterPlayerScoreResetResponse < 3) { unittest.expect(o.definitionId, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5343(o.resetScoreTimeSpans); + checkUnnamed5742(o.resetScoreTimeSpans); } buildCounterPlayerScoreResetResponse--; } @@ -462,14 +437,14 @@ buildCounterProfileSettings--; } -buildUnnamed5344() { +buildUnnamed5743() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5344(core.List<core.String> o) { +checkUnnamed5743(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -481,7 +456,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { o.kind = "foo"; - o.leaderboardIds = buildUnnamed5344(); + o.leaderboardIds = buildUnnamed5743(); } buildCounterScoresResetMultipleForAllRequest--; return o; @@ -491,7 +466,7 @@ buildCounterScoresResetMultipleForAllRequest++; if (buildCounterScoresResetMultipleForAllRequest < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5344(o.leaderboardIds); + checkUnnamed5743(o.leaderboardIds); } buildCounterScoresResetMultipleForAllRequest--; } @@ -530,14 +505,6 @@ }); }); - unittest.group("obj-schema-GamesPlayedResource", () { - unittest.test("to-json--from-json", () { - var o = buildGamesPlayedResource(); - var od = new api.GamesPlayedResource.fromJson(o.toJson()); - checkGamesPlayedResource(od); - }); - }); - unittest.group("obj-schema-GamesPlayerExperienceInfoResource", () { unittest.test("to-json--from-json", () { var o = buildGamesPlayerExperienceInfoResource(); @@ -633,12 +600,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/achievements/")); + pathOffset += 32; index = path.indexOf("/reset", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -695,12 +659,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 18), - unittest.equals("achievements/reset")); - pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 37), + unittest.equals("games/v1management/achievements/reset")); + pathOffset += 37; var query = (req.url).query; var queryOffset = 0; @@ -748,12 +709,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 34), - unittest.equals("achievements/resetAllForAllPlayers")); - pathOffset += 34; + unittest.expect( + path.substring(pathOffset, pathOffset + 53), + unittest.equals( + "games/v1management/achievements/resetAllForAllPlayers")); + pathOffset += 53; var query = (req.url).query; var queryOffset = 0; @@ -800,12 +760,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("achievements/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/achievements/")); + pathOffset += 32; index = path.indexOf("/resetForAllPlayers", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -864,12 +821,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 39), - unittest.equals("achievements/resetMultipleForAllPlayers")); - pathOffset += 39; + unittest.expect( + path.substring(pathOffset, pathOffset + 58), + unittest.equals( + "games/v1management/achievements/resetMultipleForAllPlayers")); + pathOffset += 58; var query = (req.url).query; var queryOffset = 0; @@ -920,12 +876,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/applications/")); + pathOffset += 32; index = path.indexOf("/players/hidden", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -991,12 +944,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("events/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("games/v1management/events/")); + pathOffset += 26; index = path.indexOf("/reset", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1050,12 +1000,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("events/reset")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("games/v1management/events/reset")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -1098,12 +1045,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 28), - unittest.equals("events/resetAllForAllPlayers")); - pathOffset += 28; + unittest.expect(path.substring(pathOffset, pathOffset + 47), + unittest.equals("games/v1management/events/resetAllForAllPlayers")); + pathOffset += 47; var query = (req.url).query; var queryOffset = 0; @@ -1149,12 +1093,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("events/")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("games/v1management/events/")); + pathOffset += 26; index = path.indexOf("/resetForAllPlayers", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1212,12 +1153,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 33), - unittest.equals("events/resetMultipleForAllPlayers")); - pathOffset += 33; + unittest.expect( + path.substring(pathOffset, pathOffset + 52), + unittest.equals( + "games/v1management/events/resetMultipleForAllPlayers")); + pathOffset += 52; var query = (req.url).query; var queryOffset = 0; @@ -1266,12 +1206,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/applications/")); + pathOffset += 32; index = path.indexOf("/players/hidden/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1330,12 +1267,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("applications/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/applications/")); + pathOffset += 32; index = path.indexOf("/players/hidden/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1381,106 +1315,6 @@ }); }); - unittest.group("resource-RoomsResourceApi", () { - unittest.test("method--reset", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesManagementApi(mock).rooms; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("rooms/reset")); - pathOffset += 11; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.reset($fields: arg_$fields).then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--resetForAllPlayers", () { - var mock = new HttpServerMock(); - api.RoomsResourceApi res = new api.GamesManagementApi(mock).rooms; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 24), - unittest.equals("rooms/resetForAllPlayers")); - pathOffset += 24; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .resetForAllPlayers($fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - }); - unittest.group("resource-ScoresResourceApi", () { unittest.test("method--reset", () { var mock = new HttpServerMock(); @@ -1495,12 +1329,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/leaderboards/")); + pathOffset += 32; index = path.indexOf("/scores/reset", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1556,12 +1387,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("scores/reset")); - pathOffset += 12; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("games/v1management/scores/reset")); + pathOffset += 31; var query = (req.url).query; var queryOffset = 0; @@ -1608,12 +1436,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 28), - unittest.equals("scores/resetAllForAllPlayers")); - pathOffset += 28; + unittest.expect(path.substring(pathOffset, pathOffset + 47), + unittest.equals("games/v1management/scores/resetAllForAllPlayers")); + pathOffset += 47; var query = (req.url).query; var queryOffset = 0; @@ -1659,12 +1484,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("leaderboards/")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("games/v1management/leaderboards/")); + pathOffset += 32; index = path.indexOf("/scores/resetForAllPlayers", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1722,12 +1544,11 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 33), - unittest.equals("scores/resetMultipleForAllPlayers")); - pathOffset += 33; + unittest.expect( + path.substring(pathOffset, pathOffset + 52), + unittest.equals( + "games/v1management/scores/resetMultipleForAllPlayers")); + pathOffset += 52; var query = (req.url).query; var queryOffset = 0; @@ -1760,106 +1581,4 @@ .then(unittest.expectAsync1((_) {})); }); }); - - unittest.group("resource-TurnBasedMatchesResourceApi", () { - unittest.test("method--reset", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesManagementApi(mock).turnBasedMatches; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("turnbasedmatches/reset")); - pathOffset += 22; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.reset($fields: arg_$fields).then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--resetForAllPlayers", () { - var mock = new HttpServerMock(); - api.TurnBasedMatchesResourceApi res = - new api.GamesManagementApi(mock).turnBasedMatches; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("games/v1management/")); - pathOffset += 19; - unittest.expect(path.substring(pathOffset, pathOffset + 35), - unittest.equals("turnbasedmatches/resetForAllPlayers")); - pathOffset += 35; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .resetForAllPlayers($fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - }); }
diff --git a/generated/googleapis/test/genomics/v1_test.dart b/generated/googleapis/test/genomics/v1_test.dart index 51c0cb5..3d8bd8d 100644 --- a/generated/googleapis/test/genomics/v1_test.dart +++ b/generated/googleapis/test/genomics/v1_test.dart
@@ -65,14 +65,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed548() { +buildUnnamed567() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed548(core.List<core.String> o) { +checkUnnamed567(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -83,7 +83,7 @@ var o = new api.ComputeEngine(); buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - o.diskNames = buildUnnamed548(); + o.diskNames = buildUnnamed567(); o.instanceName = "foo"; o.machineType = "foo"; o.zone = "foo"; @@ -95,7 +95,7 @@ checkComputeEngine(api.ComputeEngine o) { buildCounterComputeEngine++; if (buildCounterComputeEngine < 3) { - checkUnnamed548(o.diskNames); + checkUnnamed567(o.diskNames); unittest.expect(o.instanceName, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.zone, unittest.equals('foo')); @@ -122,14 +122,14 @@ buildCounterContainerKilledEvent--; } -buildUnnamed549() { +buildUnnamed568() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed549(core.Map<core.String, core.int> o) { +checkUnnamed568(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -142,7 +142,7 @@ if (buildCounterContainerStartedEvent < 3) { o.actionId = 42; o.ipAddress = "foo"; - o.portMappings = buildUnnamed549(); + o.portMappings = buildUnnamed568(); } buildCounterContainerStartedEvent--; return o; @@ -153,7 +153,7 @@ if (buildCounterContainerStartedEvent < 3) { unittest.expect(o.actionId, unittest.equals(42)); unittest.expect(o.ipAddress, unittest.equals('foo')); - checkUnnamed549(o.portMappings); + checkUnnamed568(o.portMappings); } buildCounterContainerStartedEvent--; } @@ -181,14 +181,14 @@ buildCounterContainerStoppedEvent--; } -buildUnnamed550() { +buildUnnamed569() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed550(core.List<core.String> o) { +checkUnnamed569(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -200,7 +200,7 @@ buildCounterDelayedEvent++; if (buildCounterDelayedEvent < 3) { o.cause = "foo"; - o.metrics = buildUnnamed550(); + o.metrics = buildUnnamed569(); } buildCounterDelayedEvent--; return o; @@ -210,7 +210,7 @@ buildCounterDelayedEvent++; if (buildCounterDelayedEvent < 3) { unittest.expect(o.cause, unittest.equals('foo')); - checkUnnamed550(o.metrics); + checkUnnamed569(o.metrics); } buildCounterDelayedEvent--; } @@ -230,7 +230,7 @@ buildCounterEmpty--; } -buildUnnamed551() { +buildUnnamed570() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -245,7 +245,7 @@ return o; } -checkUnnamed551(core.Map<core.String, core.Object> o) { +checkUnnamed570(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)); @@ -265,7 +265,7 @@ buildCounterEvent++; if (buildCounterEvent < 3) { o.description = "foo"; - o.details = buildUnnamed551(); + o.details = buildUnnamed570(); o.timestamp = "foo"; } buildCounterEvent--; @@ -276,7 +276,7 @@ buildCounterEvent++; if (buildCounterEvent < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed551(o.details); + checkUnnamed570(o.details); unittest.expect(o.timestamp, unittest.equals('foo')); } buildCounterEvent--; @@ -303,14 +303,14 @@ buildCounterFailedEvent--; } -buildUnnamed552() { +buildUnnamed571() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed552(core.List<api.Operation> o) { +checkUnnamed571(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -322,7 +322,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed552(); + o.operations = buildUnnamed571(); } buildCounterListOperationsResponse--; return o; @@ -332,12 +332,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed552(o.operations); + checkUnnamed571(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed553() { +buildUnnamed572() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -352,7 +352,7 @@ return o; } -checkUnnamed553(core.Map<core.String, core.Object> o) { +checkUnnamed572(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)); @@ -366,7 +366,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed554() { +buildUnnamed573() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -381,7 +381,7 @@ return o; } -checkUnnamed554(core.Map<core.String, core.Object> o) { +checkUnnamed573(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)); @@ -402,9 +402,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed553(); + o.metadata = buildUnnamed572(); o.name = "foo"; - o.response = buildUnnamed554(); + o.response = buildUnnamed573(); } buildCounterOperation--; return o; @@ -415,9 +415,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed553(o.metadata); + checkUnnamed572(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed554(o.response); + checkUnnamed573(o.response); } buildCounterOperation--; } @@ -445,33 +445,33 @@ buildCounterOperationEvent--; } -buildUnnamed555() { +buildUnnamed574() { var o = new core.List<api.OperationEvent>(); o.add(buildOperationEvent()); o.add(buildOperationEvent()); return o; } -checkUnnamed555(core.List<api.OperationEvent> o) { +checkUnnamed574(core.List<api.OperationEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationEvent(o[0]); checkOperationEvent(o[1]); } -buildUnnamed556() { +buildUnnamed575() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed556(core.Map<core.String, core.String> o) { +checkUnnamed575(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')); } -buildUnnamed557() { +buildUnnamed576() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -486,7 +486,7 @@ return o; } -checkUnnamed557(core.Map<core.String, core.Object> o) { +checkUnnamed576(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)); @@ -500,7 +500,7 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed558() { +buildUnnamed577() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -515,7 +515,7 @@ return o; } -checkUnnamed558(core.Map<core.String, core.Object> o) { +checkUnnamed577(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)); @@ -537,11 +537,11 @@ o.clientId = "foo"; o.createTime = "foo"; o.endTime = "foo"; - o.events = buildUnnamed555(); - o.labels = buildUnnamed556(); + o.events = buildUnnamed574(); + o.labels = buildUnnamed575(); o.projectId = "foo"; - o.request = buildUnnamed557(); - o.runtimeMetadata = buildUnnamed558(); + o.request = buildUnnamed576(); + o.runtimeMetadata = buildUnnamed577(); o.startTime = "foo"; } buildCounterOperationMetadata--; @@ -554,11 +554,11 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed555(o.events); - checkUnnamed556(o.labels); + checkUnnamed574(o.events); + checkUnnamed575(o.labels); unittest.expect(o.projectId, unittest.equals('foo')); - checkUnnamed557(o.request); - checkUnnamed558(o.runtimeMetadata); + checkUnnamed576(o.request); + checkUnnamed577(o.runtimeMetadata); unittest.expect(o.startTime, unittest.equals('foo')); } buildCounterOperationMetadata--; @@ -636,7 +636,7 @@ buildCounterRuntimeMetadata--; } -buildUnnamed559() { +buildUnnamed578() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -651,7 +651,7 @@ return o; } -checkUnnamed559(core.Map<core.String, core.Object> o) { +checkUnnamed578(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)); @@ -665,17 +665,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed560() { +buildUnnamed579() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed559()); - o.add(buildUnnamed559()); + o.add(buildUnnamed578()); + o.add(buildUnnamed578()); return o; } -checkUnnamed560(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed579(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed559(o[0]); - checkUnnamed559(o[1]); + checkUnnamed578(o[0]); + checkUnnamed578(o[1]); } core.int buildCounterStatus = 0; @@ -684,7 +684,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed560(); + o.details = buildUnnamed579(); o.message = "foo"; } buildCounterStatus--; @@ -695,7 +695,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed560(o.details); + checkUnnamed579(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1046,8 +1046,8 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.GenomicsApi(mock).operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1081,10 +1081,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1096,8 +1096,8 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) {
diff --git a/generated/googleapis/test/gmail/v1_test.dart b/generated/googleapis/test/gmail/v1_test.dart index e28a212..0b1338f 100644 --- a/generated/googleapis/test/gmail/v1_test.dart +++ b/generated/googleapis/test/gmail/v1_test.dart
@@ -73,14 +73,14 @@ buildCounterAutoForwarding--; } -buildUnnamed2189() { +buildUnnamed2297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2189(core.List<core.String> o) { +checkUnnamed2297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -91,7 +91,7 @@ var o = new api.BatchDeleteMessagesRequest(); buildCounterBatchDeleteMessagesRequest++; if (buildCounterBatchDeleteMessagesRequest < 3) { - o.ids = buildUnnamed2189(); + o.ids = buildUnnamed2297(); } buildCounterBatchDeleteMessagesRequest--; return o; @@ -100,45 +100,45 @@ checkBatchDeleteMessagesRequest(api.BatchDeleteMessagesRequest o) { buildCounterBatchDeleteMessagesRequest++; if (buildCounterBatchDeleteMessagesRequest < 3) { - checkUnnamed2189(o.ids); + checkUnnamed2297(o.ids); } buildCounterBatchDeleteMessagesRequest--; } -buildUnnamed2190() { +buildUnnamed2298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2190(core.List<core.String> o) { +checkUnnamed2298(core.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() { +buildUnnamed2299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2191(core.List<core.String> o) { +checkUnnamed2299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2192() { +buildUnnamed2300() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2192(core.List<core.String> o) { +checkUnnamed2300(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -149,9 +149,9 @@ var o = new api.BatchModifyMessagesRequest(); buildCounterBatchModifyMessagesRequest++; if (buildCounterBatchModifyMessagesRequest < 3) { - o.addLabelIds = buildUnnamed2190(); - o.ids = buildUnnamed2191(); - o.removeLabelIds = buildUnnamed2192(); + o.addLabelIds = buildUnnamed2298(); + o.ids = buildUnnamed2299(); + o.removeLabelIds = buildUnnamed2300(); } buildCounterBatchModifyMessagesRequest--; return o; @@ -160,9 +160,9 @@ checkBatchModifyMessagesRequest(api.BatchModifyMessagesRequest o) { buildCounterBatchModifyMessagesRequest++; if (buildCounterBatchModifyMessagesRequest < 3) { - checkUnnamed2190(o.addLabelIds); - checkUnnamed2191(o.ids); - checkUnnamed2192(o.removeLabelIds); + checkUnnamed2298(o.addLabelIds); + checkUnnamed2299(o.ids); + checkUnnamed2300(o.removeLabelIds); } buildCounterBatchModifyMessagesRequest--; } @@ -232,27 +232,27 @@ buildCounterFilter--; } -buildUnnamed2193() { +buildUnnamed2301() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2193(core.List<core.String> o) { +checkUnnamed2301(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2194() { +buildUnnamed2302() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2194(core.List<core.String> o) { +checkUnnamed2302(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -263,9 +263,9 @@ var o = new api.FilterAction(); buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - o.addLabelIds = buildUnnamed2193(); + o.addLabelIds = buildUnnamed2301(); o.forward = "foo"; - o.removeLabelIds = buildUnnamed2194(); + o.removeLabelIds = buildUnnamed2302(); } buildCounterFilterAction--; return o; @@ -274,9 +274,9 @@ checkFilterAction(api.FilterAction o) { buildCounterFilterAction++; if (buildCounterFilterAction < 3) { - checkUnnamed2193(o.addLabelIds); + checkUnnamed2301(o.addLabelIds); unittest.expect(o.forward, unittest.equals('foo')); - checkUnnamed2194(o.removeLabelIds); + checkUnnamed2302(o.removeLabelIds); } buildCounterFilterAction--; } @@ -337,66 +337,66 @@ buildCounterForwardingAddress--; } -buildUnnamed2195() { +buildUnnamed2303() { var o = new core.List<api.HistoryLabelAdded>(); o.add(buildHistoryLabelAdded()); o.add(buildHistoryLabelAdded()); return o; } -checkUnnamed2195(core.List<api.HistoryLabelAdded> o) { +checkUnnamed2303(core.List<api.HistoryLabelAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelAdded(o[0]); checkHistoryLabelAdded(o[1]); } -buildUnnamed2196() { +buildUnnamed2304() { var o = new core.List<api.HistoryLabelRemoved>(); o.add(buildHistoryLabelRemoved()); o.add(buildHistoryLabelRemoved()); return o; } -checkUnnamed2196(core.List<api.HistoryLabelRemoved> o) { +checkUnnamed2304(core.List<api.HistoryLabelRemoved> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryLabelRemoved(o[0]); checkHistoryLabelRemoved(o[1]); } -buildUnnamed2197() { +buildUnnamed2305() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed2197(core.List<api.Message> o) { +checkUnnamed2305(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); } -buildUnnamed2198() { +buildUnnamed2306() { var o = new core.List<api.HistoryMessageAdded>(); o.add(buildHistoryMessageAdded()); o.add(buildHistoryMessageAdded()); return o; } -checkUnnamed2198(core.List<api.HistoryMessageAdded> o) { +checkUnnamed2306(core.List<api.HistoryMessageAdded> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageAdded(o[0]); checkHistoryMessageAdded(o[1]); } -buildUnnamed2199() { +buildUnnamed2307() { var o = new core.List<api.HistoryMessageDeleted>(); o.add(buildHistoryMessageDeleted()); o.add(buildHistoryMessageDeleted()); return o; } -checkUnnamed2199(core.List<api.HistoryMessageDeleted> o) { +checkUnnamed2307(core.List<api.HistoryMessageDeleted> o) { unittest.expect(o, unittest.hasLength(2)); checkHistoryMessageDeleted(o[0]); checkHistoryMessageDeleted(o[1]); @@ -408,11 +408,11 @@ buildCounterHistory++; if (buildCounterHistory < 3) { o.id = "foo"; - o.labelsAdded = buildUnnamed2195(); - o.labelsRemoved = buildUnnamed2196(); - o.messages = buildUnnamed2197(); - o.messagesAdded = buildUnnamed2198(); - o.messagesDeleted = buildUnnamed2199(); + o.labelsAdded = buildUnnamed2303(); + o.labelsRemoved = buildUnnamed2304(); + o.messages = buildUnnamed2305(); + o.messagesAdded = buildUnnamed2306(); + o.messagesDeleted = buildUnnamed2307(); } buildCounterHistory--; return o; @@ -422,23 +422,23 @@ buildCounterHistory++; if (buildCounterHistory < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2195(o.labelsAdded); - checkUnnamed2196(o.labelsRemoved); - checkUnnamed2197(o.messages); - checkUnnamed2198(o.messagesAdded); - checkUnnamed2199(o.messagesDeleted); + checkUnnamed2303(o.labelsAdded); + checkUnnamed2304(o.labelsRemoved); + checkUnnamed2305(o.messages); + checkUnnamed2306(o.messagesAdded); + checkUnnamed2307(o.messagesDeleted); } buildCounterHistory--; } -buildUnnamed2200() { +buildUnnamed2308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2200(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')); @@ -449,7 +449,7 @@ var o = new api.HistoryLabelAdded(); buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - o.labelIds = buildUnnamed2200(); + o.labelIds = buildUnnamed2308(); o.message = buildMessage(); } buildCounterHistoryLabelAdded--; @@ -459,20 +459,20 @@ checkHistoryLabelAdded(api.HistoryLabelAdded o) { buildCounterHistoryLabelAdded++; if (buildCounterHistoryLabelAdded < 3) { - checkUnnamed2200(o.labelIds); + checkUnnamed2308(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelAdded--; } -buildUnnamed2201() { +buildUnnamed2309() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2201(core.List<core.String> o) { +checkUnnamed2309(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -483,7 +483,7 @@ var o = new api.HistoryLabelRemoved(); buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - o.labelIds = buildUnnamed2201(); + o.labelIds = buildUnnamed2309(); o.message = buildMessage(); } buildCounterHistoryLabelRemoved--; @@ -493,7 +493,7 @@ checkHistoryLabelRemoved(api.HistoryLabelRemoved o) { buildCounterHistoryLabelRemoved++; if (buildCounterHistoryLabelRemoved < 3) { - checkUnnamed2201(o.labelIds); + checkUnnamed2309(o.labelIds); checkMessage(o.message); } buildCounterHistoryLabelRemoved--; @@ -639,14 +639,14 @@ buildCounterLanguageSettings--; } -buildUnnamed2202() { +buildUnnamed2310() { var o = new core.List<api.Delegate>(); o.add(buildDelegate()); o.add(buildDelegate()); return o; } -checkUnnamed2202(core.List<api.Delegate> o) { +checkUnnamed2310(core.List<api.Delegate> o) { unittest.expect(o, unittest.hasLength(2)); checkDelegate(o[0]); checkDelegate(o[1]); @@ -657,7 +657,7 @@ var o = new api.ListDelegatesResponse(); buildCounterListDelegatesResponse++; if (buildCounterListDelegatesResponse < 3) { - o.delegates = buildUnnamed2202(); + o.delegates = buildUnnamed2310(); } buildCounterListDelegatesResponse--; return o; @@ -666,19 +666,19 @@ checkListDelegatesResponse(api.ListDelegatesResponse o) { buildCounterListDelegatesResponse++; if (buildCounterListDelegatesResponse < 3) { - checkUnnamed2202(o.delegates); + checkUnnamed2310(o.delegates); } buildCounterListDelegatesResponse--; } -buildUnnamed2203() { +buildUnnamed2311() { var o = new core.List<api.Draft>(); o.add(buildDraft()); o.add(buildDraft()); return o; } -checkUnnamed2203(core.List<api.Draft> o) { +checkUnnamed2311(core.List<api.Draft> o) { unittest.expect(o, unittest.hasLength(2)); checkDraft(o[0]); checkDraft(o[1]); @@ -689,7 +689,7 @@ var o = new api.ListDraftsResponse(); buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - o.drafts = buildUnnamed2203(); + o.drafts = buildUnnamed2311(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -700,21 +700,21 @@ checkListDraftsResponse(api.ListDraftsResponse o) { buildCounterListDraftsResponse++; if (buildCounterListDraftsResponse < 3) { - checkUnnamed2203(o.drafts); + checkUnnamed2311(o.drafts); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListDraftsResponse--; } -buildUnnamed2204() { +buildUnnamed2312() { var o = new core.List<api.Filter>(); o.add(buildFilter()); o.add(buildFilter()); return o; } -checkUnnamed2204(core.List<api.Filter> o) { +checkUnnamed2312(core.List<api.Filter> o) { unittest.expect(o, unittest.hasLength(2)); checkFilter(o[0]); checkFilter(o[1]); @@ -725,7 +725,7 @@ var o = new api.ListFiltersResponse(); buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - o.filter = buildUnnamed2204(); + o.filter = buildUnnamed2312(); } buildCounterListFiltersResponse--; return o; @@ -734,19 +734,19 @@ checkListFiltersResponse(api.ListFiltersResponse o) { buildCounterListFiltersResponse++; if (buildCounterListFiltersResponse < 3) { - checkUnnamed2204(o.filter); + checkUnnamed2312(o.filter); } buildCounterListFiltersResponse--; } -buildUnnamed2205() { +buildUnnamed2313() { var o = new core.List<api.ForwardingAddress>(); o.add(buildForwardingAddress()); o.add(buildForwardingAddress()); return o; } -checkUnnamed2205(core.List<api.ForwardingAddress> o) { +checkUnnamed2313(core.List<api.ForwardingAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkForwardingAddress(o[0]); checkForwardingAddress(o[1]); @@ -757,7 +757,7 @@ var o = new api.ListForwardingAddressesResponse(); buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - o.forwardingAddresses = buildUnnamed2205(); + o.forwardingAddresses = buildUnnamed2313(); } buildCounterListForwardingAddressesResponse--; return o; @@ -766,19 +766,19 @@ checkListForwardingAddressesResponse(api.ListForwardingAddressesResponse o) { buildCounterListForwardingAddressesResponse++; if (buildCounterListForwardingAddressesResponse < 3) { - checkUnnamed2205(o.forwardingAddresses); + checkUnnamed2313(o.forwardingAddresses); } buildCounterListForwardingAddressesResponse--; } -buildUnnamed2206() { +buildUnnamed2314() { var o = new core.List<api.History>(); o.add(buildHistory()); o.add(buildHistory()); return o; } -checkUnnamed2206(core.List<api.History> o) { +checkUnnamed2314(core.List<api.History> o) { unittest.expect(o, unittest.hasLength(2)); checkHistory(o[0]); checkHistory(o[1]); @@ -789,7 +789,7 @@ var o = new api.ListHistoryResponse(); buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - o.history = buildUnnamed2206(); + o.history = buildUnnamed2314(); o.historyId = "foo"; o.nextPageToken = "foo"; } @@ -800,21 +800,21 @@ checkListHistoryResponse(api.ListHistoryResponse o) { buildCounterListHistoryResponse++; if (buildCounterListHistoryResponse < 3) { - checkUnnamed2206(o.history); + checkUnnamed2314(o.history); unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHistoryResponse--; } -buildUnnamed2207() { +buildUnnamed2315() { var o = new core.List<api.Label>(); o.add(buildLabel()); o.add(buildLabel()); return o; } -checkUnnamed2207(core.List<api.Label> o) { +checkUnnamed2315(core.List<api.Label> o) { unittest.expect(o, unittest.hasLength(2)); checkLabel(o[0]); checkLabel(o[1]); @@ -825,7 +825,7 @@ var o = new api.ListLabelsResponse(); buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - o.labels = buildUnnamed2207(); + o.labels = buildUnnamed2315(); } buildCounterListLabelsResponse--; return o; @@ -834,19 +834,19 @@ checkListLabelsResponse(api.ListLabelsResponse o) { buildCounterListLabelsResponse++; if (buildCounterListLabelsResponse < 3) { - checkUnnamed2207(o.labels); + checkUnnamed2315(o.labels); } buildCounterListLabelsResponse--; } -buildUnnamed2208() { +buildUnnamed2316() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed2208(core.List<api.Message> o) { +checkUnnamed2316(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -857,7 +857,7 @@ var o = new api.ListMessagesResponse(); buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - o.messages = buildUnnamed2208(); + o.messages = buildUnnamed2316(); o.nextPageToken = "foo"; o.resultSizeEstimate = 42; } @@ -868,21 +868,21 @@ checkListMessagesResponse(api.ListMessagesResponse o) { buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - checkUnnamed2208(o.messages); + checkUnnamed2316(o.messages); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); } buildCounterListMessagesResponse--; } -buildUnnamed2209() { +buildUnnamed2317() { var o = new core.List<api.SendAs>(); o.add(buildSendAs()); o.add(buildSendAs()); return o; } -checkUnnamed2209(core.List<api.SendAs> o) { +checkUnnamed2317(core.List<api.SendAs> o) { unittest.expect(o, unittest.hasLength(2)); checkSendAs(o[0]); checkSendAs(o[1]); @@ -893,7 +893,7 @@ var o = new api.ListSendAsResponse(); buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - o.sendAs = buildUnnamed2209(); + o.sendAs = buildUnnamed2317(); } buildCounterListSendAsResponse--; return o; @@ -902,19 +902,19 @@ checkListSendAsResponse(api.ListSendAsResponse o) { buildCounterListSendAsResponse++; if (buildCounterListSendAsResponse < 3) { - checkUnnamed2209(o.sendAs); + checkUnnamed2317(o.sendAs); } buildCounterListSendAsResponse--; } -buildUnnamed2210() { +buildUnnamed2318() { var o = new core.List<api.SmimeInfo>(); o.add(buildSmimeInfo()); o.add(buildSmimeInfo()); return o; } -checkUnnamed2210(core.List<api.SmimeInfo> o) { +checkUnnamed2318(core.List<api.SmimeInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSmimeInfo(o[0]); checkSmimeInfo(o[1]); @@ -925,7 +925,7 @@ var o = new api.ListSmimeInfoResponse(); buildCounterListSmimeInfoResponse++; if (buildCounterListSmimeInfoResponse < 3) { - o.smimeInfo = buildUnnamed2210(); + o.smimeInfo = buildUnnamed2318(); } buildCounterListSmimeInfoResponse--; return o; @@ -934,19 +934,19 @@ checkListSmimeInfoResponse(api.ListSmimeInfoResponse o) { buildCounterListSmimeInfoResponse++; if (buildCounterListSmimeInfoResponse < 3) { - checkUnnamed2210(o.smimeInfo); + checkUnnamed2318(o.smimeInfo); } buildCounterListSmimeInfoResponse--; } -buildUnnamed2211() { +buildUnnamed2319() { var o = new core.List<api.Thread>(); o.add(buildThread()); o.add(buildThread()); return o; } -checkUnnamed2211(core.List<api.Thread> o) { +checkUnnamed2319(core.List<api.Thread> o) { unittest.expect(o, unittest.hasLength(2)); checkThread(o[0]); checkThread(o[1]); @@ -959,7 +959,7 @@ if (buildCounterListThreadsResponse < 3) { o.nextPageToken = "foo"; o.resultSizeEstimate = 42; - o.threads = buildUnnamed2211(); + o.threads = buildUnnamed2319(); } buildCounterListThreadsResponse--; return o; @@ -970,19 +970,19 @@ if (buildCounterListThreadsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.resultSizeEstimate, unittest.equals(42)); - checkUnnamed2211(o.threads); + checkUnnamed2319(o.threads); } buildCounterListThreadsResponse--; } -buildUnnamed2212() { +buildUnnamed2320() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2212(core.List<core.String> o) { +checkUnnamed2320(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -996,7 +996,7 @@ o.historyId = "foo"; o.id = "foo"; o.internalDate = "foo"; - o.labelIds = buildUnnamed2212(); + o.labelIds = buildUnnamed2320(); o.payload = buildMessagePart(); o.raw = "foo"; o.sizeEstimate = 42; @@ -1013,7 +1013,7 @@ unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.internalDate, unittest.equals('foo')); - checkUnnamed2212(o.labelIds); + checkUnnamed2320(o.labelIds); checkMessagePart(o.payload); unittest.expect(o.raw, unittest.equals('foo')); unittest.expect(o.sizeEstimate, unittest.equals(42)); @@ -1023,27 +1023,27 @@ buildCounterMessage--; } -buildUnnamed2213() { +buildUnnamed2321() { var o = new core.List<api.MessagePartHeader>(); o.add(buildMessagePartHeader()); o.add(buildMessagePartHeader()); return o; } -checkUnnamed2213(core.List<api.MessagePartHeader> o) { +checkUnnamed2321(core.List<api.MessagePartHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePartHeader(o[0]); checkMessagePartHeader(o[1]); } -buildUnnamed2214() { +buildUnnamed2322() { var o = new core.List<api.MessagePart>(); o.add(buildMessagePart()); o.add(buildMessagePart()); return o; } -checkUnnamed2214(core.List<api.MessagePart> o) { +checkUnnamed2322(core.List<api.MessagePart> o) { unittest.expect(o, unittest.hasLength(2)); checkMessagePart(o[0]); checkMessagePart(o[1]); @@ -1056,10 +1056,10 @@ if (buildCounterMessagePart < 3) { o.body = buildMessagePartBody(); o.filename = "foo"; - o.headers = buildUnnamed2213(); + o.headers = buildUnnamed2321(); o.mimeType = "foo"; o.partId = "foo"; - o.parts = buildUnnamed2214(); + o.parts = buildUnnamed2322(); } buildCounterMessagePart--; return o; @@ -1070,10 +1070,10 @@ if (buildCounterMessagePart < 3) { checkMessagePartBody(o.body); unittest.expect(o.filename, unittest.equals('foo')); - checkUnnamed2213(o.headers); + checkUnnamed2321(o.headers); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.partId, unittest.equals('foo')); - checkUnnamed2214(o.parts); + checkUnnamed2322(o.parts); } buildCounterMessagePart--; } @@ -1122,27 +1122,27 @@ buildCounterMessagePartHeader--; } -buildUnnamed2215() { +buildUnnamed2323() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2215(core.List<core.String> o) { +checkUnnamed2323(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2216() { +buildUnnamed2324() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2216(core.List<core.String> o) { +checkUnnamed2324(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1153,8 +1153,8 @@ var o = new api.ModifyMessageRequest(); buildCounterModifyMessageRequest++; if (buildCounterModifyMessageRequest < 3) { - o.addLabelIds = buildUnnamed2215(); - o.removeLabelIds = buildUnnamed2216(); + o.addLabelIds = buildUnnamed2323(); + o.removeLabelIds = buildUnnamed2324(); } buildCounterModifyMessageRequest--; return o; @@ -1163,33 +1163,33 @@ checkModifyMessageRequest(api.ModifyMessageRequest o) { buildCounterModifyMessageRequest++; if (buildCounterModifyMessageRequest < 3) { - checkUnnamed2215(o.addLabelIds); - checkUnnamed2216(o.removeLabelIds); + checkUnnamed2323(o.addLabelIds); + checkUnnamed2324(o.removeLabelIds); } buildCounterModifyMessageRequest--; } -buildUnnamed2217() { +buildUnnamed2325() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2217(core.List<core.String> o) { +checkUnnamed2325(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2218() { +buildUnnamed2326() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2218(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')); @@ -1200,8 +1200,8 @@ var o = new api.ModifyThreadRequest(); buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - o.addLabelIds = buildUnnamed2217(); - o.removeLabelIds = buildUnnamed2218(); + o.addLabelIds = buildUnnamed2325(); + o.removeLabelIds = buildUnnamed2326(); } buildCounterModifyThreadRequest--; return o; @@ -1210,8 +1210,8 @@ checkModifyThreadRequest(api.ModifyThreadRequest o) { buildCounterModifyThreadRequest++; if (buildCounterModifyThreadRequest < 3) { - checkUnnamed2217(o.addLabelIds); - checkUnnamed2218(o.removeLabelIds); + checkUnnamed2325(o.addLabelIds); + checkUnnamed2326(o.removeLabelIds); } buildCounterModifyThreadRequest--; } @@ -1355,14 +1355,14 @@ buildCounterSmtpMsa--; } -buildUnnamed2219() { +buildUnnamed2327() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed2219(core.List<api.Message> o) { +checkUnnamed2327(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -1375,7 +1375,7 @@ if (buildCounterThread < 3) { o.historyId = "foo"; o.id = "foo"; - o.messages = buildUnnamed2219(); + o.messages = buildUnnamed2327(); o.snippet = "foo"; } buildCounterThread--; @@ -1387,7 +1387,7 @@ if (buildCounterThread < 3) { unittest.expect(o.historyId, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed2219(o.messages); + checkUnnamed2327(o.messages); unittest.expect(o.snippet, unittest.equals('foo')); } buildCounterThread--; @@ -1426,14 +1426,14 @@ buildCounterVacationSettings--; } -buildUnnamed2220() { +buildUnnamed2328() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2220(core.List<core.String> o) { +checkUnnamed2328(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1445,7 +1445,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { o.labelFilterAction = "foo"; - o.labelIds = buildUnnamed2220(); + o.labelIds = buildUnnamed2328(); o.topicName = "foo"; } buildCounterWatchRequest--; @@ -1456,7 +1456,7 @@ buildCounterWatchRequest++; if (buildCounterWatchRequest < 3) { unittest.expect(o.labelFilterAction, unittest.equals('foo')); - checkUnnamed2220(o.labelIds); + checkUnnamed2328(o.labelIds); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterWatchRequest--; @@ -1483,66 +1483,66 @@ buildCounterWatchResponse--; } -buildUnnamed2221() { +buildUnnamed2329() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2221(core.List<core.String> o) { +checkUnnamed2329(core.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() { +buildUnnamed2330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2222(core.List<core.String> o) { +checkUnnamed2330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2223() { +buildUnnamed2331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2223(core.List<core.String> o) { +checkUnnamed2331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2224() { +buildUnnamed2332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2224(core.List<core.String> o) { +checkUnnamed2332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2225() { +buildUnnamed2333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2225(core.List<core.String> o) { +checkUnnamed2333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1907,6 +1907,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/profile", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/profile")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -1954,6 +1966,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + 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_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/stop")); + pathOffset += 5; var query = (req.url).query; var queryOffset = 0; @@ -2003,6 +2027,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/watch", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/watch")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -2059,6 +2095,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/drafts")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2107,6 +2155,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/drafts/")); + 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; @@ -2154,6 +2217,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/drafts/")); + 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; @@ -2193,10 +2271,10 @@ var mock = new HttpServerMock(); api.UsersDraftsResourceApi res = new api.GmailApi(mock).users.drafts; var arg_userId = "foo"; - var arg_includeSpamTrash = true; - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_q = "foo"; + var arg_includeSpamTrash = true; + var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2206,6 +2284,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/drafts")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2225,13 +2315,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect(queryMap["includeSpamTrash"].first, unittest.equals("$arg_includeSpamTrash")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2242,10 +2332,10 @@ }), true); res .list(arg_userId, - includeSpamTrash: arg_includeSpamTrash, - maxResults: arg_maxResults, - pageToken: arg_pageToken, q: arg_q, + includeSpamTrash: arg_includeSpamTrash, + pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDraftsResponse(response); @@ -2272,6 +2362,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts/send", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 12), + unittest.equals("/drafts/send")); + pathOffset += 12; var query = (req.url).query; var queryOffset = 0; @@ -2327,6 +2429,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/drafts/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/drafts/")); + 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; @@ -2367,10 +2484,10 @@ var mock = new HttpServerMock(); api.UsersHistoryResourceApi res = new api.GmailApi(mock).users.history; var arg_userId = "foo"; - var arg_historyTypes = buildUnnamed2221(); + var arg_historyTypes = buildUnnamed2329(); + var arg_pageToken = "foo"; var arg_labelId = "foo"; var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_startHistoryId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2381,6 +2498,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/history", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/history")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -2403,11 +2532,11 @@ unittest.expect( queryMap["historyTypes"], unittest.equals(arg_historyTypes)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["labelId"].first, unittest.equals(arg_labelId)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["startHistoryId"].first, unittest.equals(arg_startHistoryId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2421,9 +2550,9 @@ res .list(arg_userId, historyTypes: arg_historyTypes, + pageToken: arg_pageToken, labelId: arg_labelId, maxResults: arg_maxResults, - pageToken: arg_pageToken, startHistoryId: arg_startHistoryId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2450,6 +2579,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/labels")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2498,6 +2639,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/labels/")); + 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; @@ -2544,6 +2700,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/labels/")); + 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; @@ -2591,6 +2762,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/labels")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -2643,6 +2826,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/labels/")); + 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; @@ -2695,6 +2893,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/labels/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/labels/")); + 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; @@ -2748,6 +2961,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/batchDelete", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("/messages/batchDelete")); + pathOffset += 21; var query = (req.url).query; var queryOffset = 0; @@ -2797,6 +3022,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/batchModify", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("/messages/batchModify")); + pathOffset += 21; var query = (req.url).query; var queryOffset = 0; @@ -2843,6 +3080,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + 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; @@ -2880,8 +3132,8 @@ api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_userId = "foo"; var arg_id = "foo"; + var arg_metadataHeaders = buildUnnamed2330(); var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed2222(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2891,6 +3143,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + 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; @@ -2910,9 +3177,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect( queryMap["metadataHeaders"], unittest.equals(arg_metadataHeaders)); + unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2923,8 +3190,8 @@ }), true); res .get(arg_userId, arg_id, - format: arg_format, metadataHeaders: arg_metadataHeaders, + format: arg_format, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMessage(response); @@ -2939,10 +3206,10 @@ api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_request = buildMessage(); var arg_userId = "foo"; - var arg_deleted = true; - var arg_internalDateSource = "foo"; - var arg_neverMarkSpam = true; var arg_processForCalendar = true; + var arg_deleted = true; + var arg_neverMarkSpam = true; + var arg_internalDateSource = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Message.fromJson(json); @@ -2955,6 +3222,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/import", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/messages/import")); + pathOffset += 16; var query = (req.url).query; var queryOffset = 0; @@ -2974,14 +3253,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["deleted"].first, unittest.equals("$arg_deleted")); - unittest.expect(queryMap["internalDateSource"].first, - unittest.equals(arg_internalDateSource)); - unittest.expect(queryMap["neverMarkSpam"].first, - unittest.equals("$arg_neverMarkSpam")); unittest.expect(queryMap["processForCalendar"].first, unittest.equals("$arg_processForCalendar")); + unittest.expect( + queryMap["deleted"].first, unittest.equals("$arg_deleted")); + unittest.expect(queryMap["neverMarkSpam"].first, + unittest.equals("$arg_neverMarkSpam")); + unittest.expect(queryMap["internalDateSource"].first, + unittest.equals(arg_internalDateSource)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2992,10 +3271,10 @@ }), true); res .import(arg_request, arg_userId, - deleted: arg_deleted, - internalDateSource: arg_internalDateSource, - neverMarkSpam: arg_neverMarkSpam, processForCalendar: arg_processForCalendar, + deleted: arg_deleted, + neverMarkSpam: arg_neverMarkSpam, + internalDateSource: arg_internalDateSource, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMessage(response); @@ -3010,8 +3289,8 @@ api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_request = buildMessage(); var arg_userId = "foo"; - var arg_deleted = true; var arg_internalDateSource = "foo"; + var arg_deleted = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Message.fromJson(json); @@ -3024,6 +3303,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/messages")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -3043,10 +3334,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["deleted"].first, unittest.equals("$arg_deleted")); unittest.expect(queryMap["internalDateSource"].first, unittest.equals(arg_internalDateSource)); + unittest.expect( + queryMap["deleted"].first, unittest.equals("$arg_deleted")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3057,8 +3348,8 @@ }), true); res .insert(arg_request, arg_userId, - deleted: arg_deleted, internalDateSource: arg_internalDateSource, + deleted: arg_deleted, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMessage(response); @@ -3069,10 +3360,10 @@ var mock = new HttpServerMock(); api.UsersMessagesResourceApi res = new api.GmailApi(mock).users.messages; var arg_userId = "foo"; - var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed2223(); var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_includeSpamTrash = true; + var arg_labelIds = buildUnnamed2331(); var arg_q = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3083,6 +3374,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/messages")); + pathOffset += 9; var query = (req.url).query; var queryOffset = 0; @@ -3102,13 +3405,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeSpamTrash"].first, - unittest.equals("$arg_includeSpamTrash")); - unittest.expect(queryMap["labelIds"], unittest.equals(arg_labelIds)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["includeSpamTrash"].first, + unittest.equals("$arg_includeSpamTrash")); + unittest.expect(queryMap["labelIds"], unittest.equals(arg_labelIds)); unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3120,10 +3423,10 @@ }), true); res .list(arg_userId, - includeSpamTrash: arg_includeSpamTrash, - labelIds: arg_labelIds, maxResults: arg_maxResults, pageToken: arg_pageToken, + includeSpamTrash: arg_includeSpamTrash, + labelIds: arg_labelIds, q: arg_q, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3149,6 +3452,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + pathOffset += 10; + index = path.indexOf("/modify", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/modify")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -3203,6 +3527,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/send", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/messages/send")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -3251,6 +3587,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + pathOffset += 10; + index = path.indexOf("/trash", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/trash")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -3299,6 +3656,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + pathOffset += 10; + index = path.indexOf("/untrash", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/untrash")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -3351,6 +3729,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/messages/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/messages/")); + pathOffset += 10; + index = path.indexOf("/attachments/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_messageId")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), + unittest.equals("/attachments/")); + 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; @@ -3400,6 +3802,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/autoForwarding", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("/settings/autoForwarding")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -3447,6 +3861,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/imap", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/settings/imap")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -3494,6 +3920,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/language", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/language")); + pathOffset += 18; var query = (req.url).query; var queryOffset = 0; @@ -3541,6 +3979,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/pop", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), + unittest.equals("/settings/pop")); + pathOffset += 13; var query = (req.url).query; var queryOffset = 0; @@ -3588,6 +4038,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/vacation", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/vacation")); + pathOffset += 18; var query = (req.url).query; var queryOffset = 0; @@ -3639,6 +4101,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/autoForwarding", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("/settings/autoForwarding")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -3690,6 +4164,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/imap", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 14), + unittest.equals("/settings/imap")); + pathOffset += 14; var query = (req.url).query; var queryOffset = 0; @@ -3741,6 +4227,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/language", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/language")); + pathOffset += 18; var query = (req.url).query; var queryOffset = 0; @@ -3792,6 +4290,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/pop", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 13), + unittest.equals("/settings/pop")); + pathOffset += 13; var query = (req.url).query; var queryOffset = 0; @@ -3843,6 +4353,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/vacation", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/vacation")); + pathOffset += 18; var query = (req.url).query; var queryOffset = 0; @@ -3897,6 +4419,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/delegates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("/settings/delegates")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -3946,6 +4480,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/delegates/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/settings/delegates/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_delegateEmail")); var query = (req.url).query; var queryOffset = 0; @@ -3993,6 +4542,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/delegates/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("/settings/delegates/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_delegateEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4041,6 +4605,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/delegates", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("/settings/delegates")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -4095,6 +4671,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/filters", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/filters")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -4144,6 +4732,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/filters/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/filters/")); + 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; @@ -4191,6 +4794,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/filters/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("/settings/filters/")); + 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; @@ -4239,6 +4857,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/filters", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/filters")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -4293,6 +4923,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/forwardingAddresses", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("/settings/forwardingAddresses")); + pathOffset += 29; var query = (req.url).query; var queryOffset = 0; @@ -4342,6 +4984,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/forwardingAddresses/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("/settings/forwardingAddresses/")); + pathOffset += 30; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_forwardingEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4389,6 +5046,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/forwardingAddresses/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("/settings/forwardingAddresses/")); + pathOffset += 30; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_forwardingEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4437,6 +5109,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/forwardingAddresses", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("/settings/forwardingAddresses")); + pathOffset += 29; var query = (req.url).query; var queryOffset = 0; @@ -4491,6 +5175,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/settings/sendAs")); + pathOffset += 16; var query = (req.url).query; var queryOffset = 0; @@ -4540,6 +5236,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4587,6 +5298,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4635,6 +5361,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("/settings/sendAs")); + pathOffset += 16; var query = (req.url).query; var queryOffset = 0; @@ -4688,6 +5426,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4741,6 +5494,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); var query = (req.url).query; var queryOffset = 0; @@ -4791,6 +5559,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/verify", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/verify")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -4841,6 +5630,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/smimeInfo/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/smimeInfo/")); + 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; @@ -4889,6 +5702,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/smimeInfo/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/smimeInfo/")); + 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; @@ -4942,6 +5779,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/smimeInfo", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/smimeInfo")); + pathOffset += 10; var query = (req.url).query; var queryOffset = 0; @@ -4992,6 +5850,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/smimeInfo", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/smimeInfo")); + pathOffset += 10; var query = (req.url).query; var queryOffset = 0; @@ -5042,6 +5921,36 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/settings/sendAs/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("/settings/sendAs/")); + pathOffset += 17; + index = path.indexOf("/smimeInfo/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_sendAsEmail")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/smimeInfo/")); + pathOffset += 11; + index = path.indexOf("/setDefault", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/setDefault")); + pathOffset += 11; var query = (req.url).query; var queryOffset = 0; @@ -5090,6 +5999,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/threads/")); + pathOffset += 9; + 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; @@ -5128,7 +6052,7 @@ var arg_userId = "foo"; var arg_id = "foo"; var arg_format = "foo"; - var arg_metadataHeaders = buildUnnamed2224(); + var arg_metadataHeaders = buildUnnamed2332(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5138,6 +6062,21 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/threads/")); + pathOffset += 9; + 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; @@ -5182,11 +6121,11 @@ var mock = new HttpServerMock(); api.UsersThreadsResourceApi res = new api.GmailApi(mock).users.threads; var arg_userId = "foo"; - var arg_includeSpamTrash = true; - var arg_labelIds = buildUnnamed2225(); - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_q = "foo"; + var arg_labelIds = buildUnnamed2333(); + var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_includeSpamTrash = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5196,6 +6135,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/threads")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0; @@ -5215,14 +6166,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeSpamTrash"].first, - unittest.equals("$arg_includeSpamTrash")); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); unittest.expect(queryMap["labelIds"], unittest.equals(arg_labelIds)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["includeSpamTrash"].first, + unittest.equals("$arg_includeSpamTrash")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5233,11 +6184,11 @@ }), true); res .list(arg_userId, - includeSpamTrash: arg_includeSpamTrash, - labelIds: arg_labelIds, - maxResults: arg_maxResults, - pageToken: arg_pageToken, q: arg_q, + labelIds: arg_labelIds, + pageToken: arg_pageToken, + maxResults: arg_maxResults, + includeSpamTrash: arg_includeSpamTrash, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListThreadsResponse(response); @@ -5262,6 +6213,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/threads/")); + pathOffset += 9; + index = path.indexOf("/modify", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 7), + unittest.equals("/modify")); + pathOffset += 7; var query = (req.url).query; var queryOffset = 0; @@ -5310,6 +6282,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/threads/")); + pathOffset += 9; + index = path.indexOf("/trash", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/trash")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -5358,6 +6351,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("gmail/v1/users/")); + pathOffset += 15; + index = path.indexOf("/threads/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_userId")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/threads/")); + pathOffset += 9; + index = path.indexOf("/untrash", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_id")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/untrash")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/groupsmigration/v1_test.dart b/generated/googleapis/test/groupsmigration/v1_test.dart index 140e5f6..ffcd6c9 100644 --- a/generated/googleapis/test/groupsmigration/v1_test.dart +++ b/generated/googleapis/test/groupsmigration/v1_test.dart
@@ -97,6 +97,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("groups/v1/groups/")); + pathOffset += 17; + index = path.indexOf("/archive", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_groupId")); + unittest.expect(path.substring(pathOffset, pathOffset + 8), + unittest.equals("/archive")); + pathOffset += 8; var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/healthcare/v1_test.dart b/generated/googleapis/test/healthcare/v1_test.dart index 31ed47c..1e1f67c 100644 --- a/generated/googleapis/test/healthcare/v1_test.dart +++ b/generated/googleapis/test/healthcare/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1597() { +buildUnnamed1642() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed1597(core.List<api.AuditLogConfig> o) { +checkUnnamed1642(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed1597(); + o.auditLogConfigs = buildUnnamed1642(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,20 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed1597(o.auditLogConfigs); + checkUnnamed1642(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed1598() { +buildUnnamed1643() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1598(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')); @@ -102,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed1598(); + o.exemptedMembers = buildUnnamed1643(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -112,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed1598(o.exemptedMembers); + checkUnnamed1643(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed1599() { +buildUnnamed1644() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1599(core.List<core.String> o) { +checkUnnamed1644(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -137,7 +137,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed1599(); + o.members = buildUnnamed1644(); o.role = "foo"; } buildCounterBinding--; @@ -148,7 +148,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed1599(o.members); + checkUnnamed1644(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -417,14 +417,14 @@ buildCounterDicomFilterConfig--; } -buildUnnamed1600() { +buildUnnamed1645() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1600(core.Map<core.String, core.String> o) { +checkUnnamed1645(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')); @@ -435,7 +435,7 @@ var o = new api.DicomStore(); buildCounterDicomStore++; if (buildCounterDicomStore < 3) { - o.labels = buildUnnamed1600(); + o.labels = buildUnnamed1645(); o.name = "foo"; o.notificationConfig = buildNotificationConfig(); } @@ -446,7 +446,7 @@ checkDicomStore(api.DicomStore o) { buildCounterDicomStore++; if (buildCounterDicomStore < 3) { - checkUnnamed1600(o.labels); + checkUnnamed1645(o.labels); unittest.expect(o.name, unittest.equals('foo')); checkNotificationConfig(o.notificationConfig); } @@ -567,14 +567,14 @@ buildCounterExpr--; } -buildUnnamed1601() { +buildUnnamed1646() { var o = new core.List<api.FieldMetadata>(); o.add(buildFieldMetadata()); o.add(buildFieldMetadata()); return o; } -checkUnnamed1601(core.List<api.FieldMetadata> o) { +checkUnnamed1646(core.List<api.FieldMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkFieldMetadata(o[0]); checkFieldMetadata(o[1]); @@ -585,7 +585,7 @@ var o = new api.FhirConfig(); buildCounterFhirConfig++; if (buildCounterFhirConfig < 3) { - o.fieldMetadataList = buildUnnamed1601(); + o.fieldMetadataList = buildUnnamed1646(); } buildCounterFhirConfig--; return o; @@ -594,7 +594,7 @@ checkFhirConfig(api.FhirConfig o) { buildCounterFhirConfig++; if (buildCounterFhirConfig < 3) { - checkUnnamed1601(o.fieldMetadataList); + checkUnnamed1646(o.fieldMetadataList); } buildCounterFhirConfig--; } @@ -618,27 +618,27 @@ buildCounterFhirFilter--; } -buildUnnamed1602() { +buildUnnamed1647() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1602(core.Map<core.String, core.String> o) { +checkUnnamed1647(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')); } -buildUnnamed1603() { +buildUnnamed1648() { var o = new core.List<api.StreamConfig>(); o.add(buildStreamConfig()); o.add(buildStreamConfig()); return o; } -checkUnnamed1603(core.List<api.StreamConfig> o) { +checkUnnamed1648(core.List<api.StreamConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkStreamConfig(o[0]); checkStreamConfig(o[1]); @@ -652,10 +652,10 @@ o.disableReferentialIntegrity = true; o.disableResourceVersioning = true; o.enableUpdateCreate = true; - o.labels = buildUnnamed1602(); + o.labels = buildUnnamed1647(); o.name = "foo"; o.notificationConfig = buildNotificationConfig(); - o.streamConfigs = buildUnnamed1603(); + o.streamConfigs = buildUnnamed1648(); o.version = "foo"; } buildCounterFhirStore--; @@ -668,23 +668,23 @@ unittest.expect(o.disableReferentialIntegrity, unittest.isTrue); unittest.expect(o.disableResourceVersioning, unittest.isTrue); unittest.expect(o.enableUpdateCreate, unittest.isTrue); - checkUnnamed1602(o.labels); + checkUnnamed1647(o.labels); unittest.expect(o.name, unittest.equals('foo')); checkNotificationConfig(o.notificationConfig); - checkUnnamed1603(o.streamConfigs); + checkUnnamed1648(o.streamConfigs); unittest.expect(o.version, unittest.equals('foo')); } buildCounterFhirStore--; } -buildUnnamed1604() { +buildUnnamed1649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1604(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')); @@ -696,7 +696,7 @@ buildCounterFieldMetadata++; if (buildCounterFieldMetadata < 3) { o.action = "foo"; - o.paths = buildUnnamed1604(); + o.paths = buildUnnamed1649(); } buildCounterFieldMetadata--; return o; @@ -706,7 +706,7 @@ buildCounterFieldMetadata++; if (buildCounterFieldMetadata < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed1604(o.paths); + checkUnnamed1649(o.paths); } buildCounterFieldMetadata--; } @@ -900,27 +900,27 @@ buildCounterHl7V2NotificationConfig--; } -buildUnnamed1605() { +buildUnnamed1650() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1605(core.Map<core.String, core.String> o) { +checkUnnamed1650(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')); } -buildUnnamed1606() { +buildUnnamed1651() { var o = new core.List<api.Hl7V2NotificationConfig>(); o.add(buildHl7V2NotificationConfig()); o.add(buildHl7V2NotificationConfig()); return o; } -checkUnnamed1606(core.List<api.Hl7V2NotificationConfig> o) { +checkUnnamed1651(core.List<api.Hl7V2NotificationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkHl7V2NotificationConfig(o[0]); checkHl7V2NotificationConfig(o[1]); @@ -931,9 +931,9 @@ var o = new api.Hl7V2Store(); buildCounterHl7V2Store++; if (buildCounterHl7V2Store < 3) { - o.labels = buildUnnamed1605(); + o.labels = buildUnnamed1650(); o.name = "foo"; - o.notificationConfigs = buildUnnamed1606(); + o.notificationConfigs = buildUnnamed1651(); o.parserConfig = buildParserConfig(); o.rejectDuplicateMessage = true; } @@ -944,16 +944,16 @@ checkHl7V2Store(api.Hl7V2Store o) { buildCounterHl7V2Store++; if (buildCounterHl7V2Store < 3) { - checkUnnamed1605(o.labels); + checkUnnamed1650(o.labels); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1606(o.notificationConfigs); + checkUnnamed1651(o.notificationConfigs); checkParserConfig(o.parserConfig); unittest.expect(o.rejectDuplicateMessage, unittest.isTrue); } buildCounterHl7V2Store--; } -buildUnnamed1607() { +buildUnnamed1652() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -968,7 +968,7 @@ return o; } -checkUnnamed1607(core.Map<core.String, core.Object> o) { +checkUnnamed1652(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)); @@ -982,17 +982,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1608() { +buildUnnamed1653() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1607()); - o.add(buildUnnamed1607()); + o.add(buildUnnamed1652()); + o.add(buildUnnamed1652()); return o; } -checkUnnamed1608(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1653(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1607(o[0]); - checkUnnamed1607(o[1]); + checkUnnamed1652(o[0]); + checkUnnamed1652(o[1]); } core.int buildCounterHttpBody = 0; @@ -1002,7 +1002,7 @@ if (buildCounterHttpBody < 3) { o.contentType = "foo"; o.data = "foo"; - o.extensions = buildUnnamed1608(); + o.extensions = buildUnnamed1653(); } buildCounterHttpBody--; return o; @@ -1013,7 +1013,7 @@ if (buildCounterHttpBody < 3) { unittest.expect(o.contentType, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); - checkUnnamed1608(o.extensions); + checkUnnamed1653(o.extensions); } buildCounterHttpBody--; } @@ -1107,14 +1107,14 @@ buildCounterImportResourcesResponse--; } -buildUnnamed1609() { +buildUnnamed1654() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1609(core.List<core.String> o) { +checkUnnamed1654(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1128,7 +1128,7 @@ o.characterMaskConfig = buildCharacterMaskConfig(); o.cryptoHashConfig = buildCryptoHashConfig(); o.dateShiftConfig = buildDateShiftConfig(); - o.infoTypes = buildUnnamed1609(); + o.infoTypes = buildUnnamed1654(); o.redactConfig = buildRedactConfig(); o.replaceWithInfoTypeConfig = buildReplaceWithInfoTypeConfig(); } @@ -1142,7 +1142,7 @@ checkCharacterMaskConfig(o.characterMaskConfig); checkCryptoHashConfig(o.cryptoHashConfig); checkDateShiftConfig(o.dateShiftConfig); - checkUnnamed1609(o.infoTypes); + checkUnnamed1654(o.infoTypes); checkRedactConfig(o.redactConfig); checkReplaceWithInfoTypeConfig(o.replaceWithInfoTypeConfig); } @@ -1189,14 +1189,14 @@ buildCounterIngestMessageResponse--; } -buildUnnamed1610() { +buildUnnamed1655() { var o = new core.List<api.Dataset>(); o.add(buildDataset()); o.add(buildDataset()); return o; } -checkUnnamed1610(core.List<api.Dataset> o) { +checkUnnamed1655(core.List<api.Dataset> o) { unittest.expect(o, unittest.hasLength(2)); checkDataset(o[0]); checkDataset(o[1]); @@ -1207,7 +1207,7 @@ var o = new api.ListDatasetsResponse(); buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - o.datasets = buildUnnamed1610(); + o.datasets = buildUnnamed1655(); o.nextPageToken = "foo"; } buildCounterListDatasetsResponse--; @@ -1217,20 +1217,20 @@ checkListDatasetsResponse(api.ListDatasetsResponse o) { buildCounterListDatasetsResponse++; if (buildCounterListDatasetsResponse < 3) { - checkUnnamed1610(o.datasets); + checkUnnamed1655(o.datasets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatasetsResponse--; } -buildUnnamed1611() { +buildUnnamed1656() { var o = new core.List<api.DicomStore>(); o.add(buildDicomStore()); o.add(buildDicomStore()); return o; } -checkUnnamed1611(core.List<api.DicomStore> o) { +checkUnnamed1656(core.List<api.DicomStore> o) { unittest.expect(o, unittest.hasLength(2)); checkDicomStore(o[0]); checkDicomStore(o[1]); @@ -1241,7 +1241,7 @@ var o = new api.ListDicomStoresResponse(); buildCounterListDicomStoresResponse++; if (buildCounterListDicomStoresResponse < 3) { - o.dicomStores = buildUnnamed1611(); + o.dicomStores = buildUnnamed1656(); o.nextPageToken = "foo"; } buildCounterListDicomStoresResponse--; @@ -1251,20 +1251,20 @@ checkListDicomStoresResponse(api.ListDicomStoresResponse o) { buildCounterListDicomStoresResponse++; if (buildCounterListDicomStoresResponse < 3) { - checkUnnamed1611(o.dicomStores); + checkUnnamed1656(o.dicomStores); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDicomStoresResponse--; } -buildUnnamed1612() { +buildUnnamed1657() { var o = new core.List<api.FhirStore>(); o.add(buildFhirStore()); o.add(buildFhirStore()); return o; } -checkUnnamed1612(core.List<api.FhirStore> o) { +checkUnnamed1657(core.List<api.FhirStore> o) { unittest.expect(o, unittest.hasLength(2)); checkFhirStore(o[0]); checkFhirStore(o[1]); @@ -1275,7 +1275,7 @@ var o = new api.ListFhirStoresResponse(); buildCounterListFhirStoresResponse++; if (buildCounterListFhirStoresResponse < 3) { - o.fhirStores = buildUnnamed1612(); + o.fhirStores = buildUnnamed1657(); o.nextPageToken = "foo"; } buildCounterListFhirStoresResponse--; @@ -1285,20 +1285,20 @@ checkListFhirStoresResponse(api.ListFhirStoresResponse o) { buildCounterListFhirStoresResponse++; if (buildCounterListFhirStoresResponse < 3) { - checkUnnamed1612(o.fhirStores); + checkUnnamed1657(o.fhirStores); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFhirStoresResponse--; } -buildUnnamed1613() { +buildUnnamed1658() { var o = new core.List<api.Hl7V2Store>(); o.add(buildHl7V2Store()); o.add(buildHl7V2Store()); return o; } -checkUnnamed1613(core.List<api.Hl7V2Store> o) { +checkUnnamed1658(core.List<api.Hl7V2Store> o) { unittest.expect(o, unittest.hasLength(2)); checkHl7V2Store(o[0]); checkHl7V2Store(o[1]); @@ -1309,7 +1309,7 @@ var o = new api.ListHl7V2StoresResponse(); buildCounterListHl7V2StoresResponse++; if (buildCounterListHl7V2StoresResponse < 3) { - o.hl7V2Stores = buildUnnamed1613(); + o.hl7V2Stores = buildUnnamed1658(); o.nextPageToken = "foo"; } buildCounterListHl7V2StoresResponse--; @@ -1319,20 +1319,54 @@ checkListHl7V2StoresResponse(api.ListHl7V2StoresResponse o) { buildCounterListHl7V2StoresResponse++; if (buildCounterListHl7V2StoresResponse < 3) { - checkUnnamed1613(o.hl7V2Stores); + checkUnnamed1658(o.hl7V2Stores); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHl7V2StoresResponse--; } -buildUnnamed1614() { +buildUnnamed1659() { + var o = new core.List<api.Location>(); + o.add(buildLocation()); + o.add(buildLocation()); + return o; +} + +checkUnnamed1659(core.List<api.Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLocation(o[0]); + checkLocation(o[1]); +} + +core.int buildCounterListLocationsResponse = 0; +buildListLocationsResponse() { + var o = new api.ListLocationsResponse(); + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + o.locations = buildUnnamed1659(); + o.nextPageToken = "foo"; + } + buildCounterListLocationsResponse--; + return o; +} + +checkListLocationsResponse(api.ListLocationsResponse o) { + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + checkUnnamed1659(o.locations); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLocationsResponse--; +} + +buildUnnamed1660() { var o = new core.List<api.Message>(); o.add(buildMessage()); o.add(buildMessage()); return o; } -checkUnnamed1614(core.List<api.Message> o) { +checkUnnamed1660(core.List<api.Message> o) { unittest.expect(o, unittest.hasLength(2)); checkMessage(o[0]); checkMessage(o[1]); @@ -1343,7 +1377,7 @@ var o = new api.ListMessagesResponse(); buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - o.hl7V2Messages = buildUnnamed1614(); + o.hl7V2Messages = buildUnnamed1660(); o.nextPageToken = "foo"; } buildCounterListMessagesResponse--; @@ -1353,20 +1387,20 @@ checkListMessagesResponse(api.ListMessagesResponse o) { buildCounterListMessagesResponse++; if (buildCounterListMessagesResponse < 3) { - checkUnnamed1614(o.hl7V2Messages); + checkUnnamed1660(o.hl7V2Messages); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMessagesResponse--; } -buildUnnamed1615() { +buildUnnamed1661() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1615(core.List<api.Operation> o) { +checkUnnamed1661(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1378,7 +1412,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1615(); + o.operations = buildUnnamed1661(); } buildCounterListOperationsResponse--; return o; @@ -1388,32 +1422,101 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1615(o.operations); + checkUnnamed1661(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1616() { +buildUnnamed1662() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1616(core.Map<core.String, core.String> o) { +checkUnnamed1662(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')); } -buildUnnamed1617() { +buildUnnamed1663() { + var o = new core.Map<core.String, core.Object>(); + o["x"] = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; + o["y"] = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; + return o; +} + +checkUnnamed1663(core.Map<core.String, core.Object> o) { + 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 buildCounterLocation = 0; +buildLocation() { + var o = new api.Location(); + buildCounterLocation++; + if (buildCounterLocation < 3) { + o.displayName = "foo"; + o.labels = buildUnnamed1662(); + o.locationId = "foo"; + o.metadata = buildUnnamed1663(); + o.name = "foo"; + } + buildCounterLocation--; + return o; +} + +checkLocation(api.Location o) { + buildCounterLocation++; + if (buildCounterLocation < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed1662(o.labels); + unittest.expect(o.locationId, unittest.equals('foo')); + checkUnnamed1663(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLocation--; +} + +buildUnnamed1664() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed1664(core.Map<core.String, core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals('foo')); + unittest.expect(o["y"], unittest.equals('foo')); +} + +buildUnnamed1665() { var o = new core.List<api.PatientId>(); o.add(buildPatientId()); o.add(buildPatientId()); return o; } -checkUnnamed1617(core.List<api.PatientId> o) { +checkUnnamed1665(core.List<api.PatientId> o) { unittest.expect(o, unittest.hasLength(2)); checkPatientId(o[0]); checkPatientId(o[1]); @@ -1426,11 +1529,11 @@ if (buildCounterMessage < 3) { o.createTime = "foo"; o.data = "foo"; - o.labels = buildUnnamed1616(); + o.labels = buildUnnamed1664(); o.messageType = "foo"; o.name = "foo"; o.parsedData = buildParsedData(); - o.patientIds = buildUnnamed1617(); + o.patientIds = buildUnnamed1665(); o.sendFacility = "foo"; o.sendTime = "foo"; } @@ -1443,11 +1546,11 @@ if (buildCounterMessage < 3) { unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); - checkUnnamed1616(o.labels); + checkUnnamed1664(o.labels); unittest.expect(o.messageType, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkParsedData(o.parsedData); - checkUnnamed1617(o.patientIds); + checkUnnamed1665(o.patientIds); unittest.expect(o.sendFacility, unittest.equals('foo')); unittest.expect(o.sendTime, unittest.equals('foo')); } @@ -1473,7 +1576,7 @@ buildCounterNotificationConfig--; } -buildUnnamed1618() { +buildUnnamed1666() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1488,36 +1591,7 @@ return o; } -checkUnnamed1618(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')); -} - -buildUnnamed1619() { - 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; -} - -checkUnnamed1619(core.Map<core.String, core.Object> o) { +checkUnnamed1666(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)); @@ -1531,6 +1605,35 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } +buildUnnamed1667() { + 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; +} + +checkUnnamed1667(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')); +} + core.int buildCounterOperation = 0; buildOperation() { var o = new api.Operation(); @@ -1538,9 +1641,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1618(); + o.metadata = buildUnnamed1666(); o.name = "foo"; - o.response = buildUnnamed1619(); + o.response = buildUnnamed1667(); } buildCounterOperation--; return o; @@ -1551,9 +1654,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1618(o.metadata); + checkUnnamed1666(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1619(o.response); + checkUnnamed1667(o.response); } buildCounterOperation--; } @@ -1587,14 +1690,14 @@ buildCounterOperationMetadata--; } -buildUnnamed1620() { +buildUnnamed1668() { var o = new core.List<api.Segment>(); o.add(buildSegment()); o.add(buildSegment()); return o; } -checkUnnamed1620(core.List<api.Segment> o) { +checkUnnamed1668(core.List<api.Segment> o) { unittest.expect(o, unittest.hasLength(2)); checkSegment(o[0]); checkSegment(o[1]); @@ -1605,7 +1708,7 @@ var o = new api.ParsedData(); buildCounterParsedData++; if (buildCounterParsedData < 3) { - o.segments = buildUnnamed1620(); + o.segments = buildUnnamed1668(); } buildCounterParsedData--; return o; @@ -1614,7 +1717,7 @@ checkParsedData(api.ParsedData o) { buildCounterParsedData++; if (buildCounterParsedData < 3) { - checkUnnamed1620(o.segments); + checkUnnamed1668(o.segments); } buildCounterParsedData--; } @@ -1661,27 +1764,27 @@ buildCounterPatientId--; } -buildUnnamed1621() { +buildUnnamed1669() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1621(core.List<api.AuditConfig> o) { +checkUnnamed1669(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1622() { +buildUnnamed1670() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1622(core.List<api.Binding> o) { +checkUnnamed1670(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1692,8 +1795,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1621(); - o.bindings = buildUnnamed1622(); + o.auditConfigs = buildUnnamed1669(); + o.bindings = buildUnnamed1670(); o.etag = "foo"; o.version = 42; } @@ -1704,8 +1807,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1621(o.auditConfigs); - checkUnnamed1622(o.bindings); + checkUnnamed1669(o.auditConfigs); + checkUnnamed1670(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1765,14 +1868,14 @@ buildCounterReplaceWithInfoTypeConfig--; } -buildUnnamed1623() { +buildUnnamed1671() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1623(core.List<core.String> o) { +checkUnnamed1671(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1783,7 +1886,7 @@ var o = new api.Resources(); buildCounterResources++; if (buildCounterResources < 3) { - o.resources = buildUnnamed1623(); + o.resources = buildUnnamed1671(); } buildCounterResources--; return o; @@ -1792,7 +1895,7 @@ checkResources(api.Resources o) { buildCounterResources++; if (buildCounterResources < 3) { - checkUnnamed1623(o.resources); + checkUnnamed1671(o.resources); } buildCounterResources--; } @@ -1837,14 +1940,14 @@ buildCounterSearchResourcesRequest--; } -buildUnnamed1624() { +buildUnnamed1672() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1624(core.Map<core.String, core.String> o) { +checkUnnamed1672(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')); @@ -1855,7 +1958,7 @@ var o = new api.Segment(); buildCounterSegment++; if (buildCounterSegment < 3) { - o.fields = buildUnnamed1624(); + o.fields = buildUnnamed1672(); o.segmentId = "foo"; o.setId = "foo"; } @@ -1866,7 +1969,7 @@ checkSegment(api.Segment o) { buildCounterSegment++; if (buildCounterSegment < 3) { - checkUnnamed1624(o.fields); + checkUnnamed1672(o.fields); unittest.expect(o.segmentId, unittest.equals('foo')); unittest.expect(o.setId, unittest.equals('foo')); } @@ -1894,7 +1997,7 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed1625() { +buildUnnamed1673() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1909,31 +2012,31 @@ return o; } -checkUnnamed1625(core.Map<core.String, core.Object> o) { +checkUnnamed1673(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')); + 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')); } -buildUnnamed1626() { +buildUnnamed1674() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1625()); - o.add(buildUnnamed1625()); + o.add(buildUnnamed1673()); + o.add(buildUnnamed1673()); return o; } -checkUnnamed1626(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1674(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1625(o[0]); - checkUnnamed1625(o[1]); + checkUnnamed1673(o[0]); + checkUnnamed1673(o[1]); } core.int buildCounterStatus = 0; @@ -1942,7 +2045,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1626(); + o.details = buildUnnamed1674(); o.message = "foo"; } buildCounterStatus--; @@ -1953,20 +2056,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1626(o.details); + checkUnnamed1674(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1627() { +buildUnnamed1675() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1627(core.List<core.String> o) { +checkUnnamed1675(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1979,7 +2082,7 @@ if (buildCounterStreamConfig < 3) { o.bigqueryDestination = buildGoogleCloudHealthcareV1FhirBigQueryDestination(); - o.resourceTypes = buildUnnamed1627(); + o.resourceTypes = buildUnnamed1675(); } buildCounterStreamConfig--; return o; @@ -1989,19 +2092,19 @@ buildCounterStreamConfig++; if (buildCounterStreamConfig < 3) { checkGoogleCloudHealthcareV1FhirBigQueryDestination(o.bigqueryDestination); - checkUnnamed1627(o.resourceTypes); + checkUnnamed1675(o.resourceTypes); } buildCounterStreamConfig--; } -buildUnnamed1628() { +buildUnnamed1676() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1628(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')); @@ -2012,7 +2115,7 @@ var o = new api.TagFilterList(); buildCounterTagFilterList++; if (buildCounterTagFilterList < 3) { - o.tags = buildUnnamed1628(); + o.tags = buildUnnamed1676(); } buildCounterTagFilterList--; return o; @@ -2021,19 +2124,19 @@ checkTagFilterList(api.TagFilterList o) { buildCounterTagFilterList++; if (buildCounterTagFilterList < 3) { - checkUnnamed1628(o.tags); + checkUnnamed1676(o.tags); } buildCounterTagFilterList--; } -buildUnnamed1629() { +buildUnnamed1677() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1629(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')); @@ -2044,7 +2147,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1629(); + o.permissions = buildUnnamed1677(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2053,19 +2156,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1629(o.permissions); + checkUnnamed1677(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1630() { +buildUnnamed1678() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1630(core.List<core.String> o) { +checkUnnamed1678(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2076,7 +2179,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1630(); + o.permissions = buildUnnamed1678(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2085,19 +2188,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1630(o.permissions); + checkUnnamed1678(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed1631() { +buildUnnamed1679() { var o = new core.List<api.InfoTypeTransformation>(); o.add(buildInfoTypeTransformation()); o.add(buildInfoTypeTransformation()); return o; } -checkUnnamed1631(core.List<api.InfoTypeTransformation> o) { +checkUnnamed1679(core.List<api.InfoTypeTransformation> o) { unittest.expect(o, unittest.hasLength(2)); checkInfoTypeTransformation(o[0]); checkInfoTypeTransformation(o[1]); @@ -2108,7 +2211,7 @@ var o = new api.TextConfig(); buildCounterTextConfig++; if (buildCounterTextConfig < 3) { - o.transformations = buildUnnamed1631(); + o.transformations = buildUnnamed1679(); } buildCounterTextConfig--; return o; @@ -2117,7 +2220,7 @@ checkTextConfig(api.TextConfig o) { buildCounterTextConfig++; if (buildCounterTextConfig < 3) { - checkUnnamed1631(o.transformations); + checkUnnamed1679(o.transformations); } buildCounterTextConfig--; } @@ -2541,6 +2644,14 @@ }); }); + unittest.group("obj-schema-ListLocationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLocationsResponse(); + var od = new api.ListLocationsResponse.fromJson(o.toJson()); + checkListLocationsResponse(od); + }); + }); + unittest.group("obj-schema-ListMessagesResponse", () { unittest.test("to-json--from-json", () { var o = buildListMessagesResponse(); @@ -2557,6 +2668,14 @@ }); }); + unittest.group("obj-schema-Location", () { + unittest.test("to-json--from-json", () { + var o = buildLocation(); + var od = new api.Location.fromJson(o.toJson()); + checkLocation(od); + }); + }); + unittest.group("obj-schema-Message", () { unittest.test("to-json--from-json", () { var o = buildMessage(); @@ -2733,6 +2852,124 @@ }); }); + unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.HealthcareApi(mock).projects.locations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLocation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLocation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.HealthcareApi(mock).projects.locations; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListLocationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, + pageSize: arg_pageSize, + filter: arg_filter, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListLocationsResponse(response); + }))); + }); + }); + unittest.group("resource-ProjectsLocationsDatasetsResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -3018,8 +3255,8 @@ api.ProjectsLocationsDatasetsResourceApi res = new api.HealthcareApi(mock).projects.locations.datasets; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3052,10 +3289,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3066,8 +3303,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDatasetsResponse(response); @@ -3645,9 +3882,9 @@ api.ProjectsLocationsDatasetsDicomStoresResourceApi res = new api.HealthcareApi(mock).projects.locations.datasets.dicomStores; var arg_parent = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3680,11 +3917,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3695,9 +3932,9 @@ }), true); res .list(arg_parent, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDicomStoresResponse(response); @@ -5461,8 +5698,8 @@ new api.HealthcareApi(mock).projects.locations.datasets.fhirStores; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5497,9 +5734,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5511,8 +5748,8 @@ res .list(arg_parent, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListFhirStoresResponse(response); @@ -5579,62 +5816,6 @@ }))); }); - unittest.test("method--search", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsDatasetsFhirStoresResourceApi res = - new api.HealthcareApi(mock).projects.locations.datasets.fhirStores; - var arg_parent = "foo"; - var arg_resourceType = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["resourceType"].first, unittest.equals(arg_resourceType)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildHttpBody()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .search(arg_parent, - resourceType: arg_resourceType, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkHttpBody(response); - }))); - }); - unittest.test("method--setIamPolicy", () { var mock = new HttpServerMock(); api.ProjectsLocationsDatasetsFhirStoresResourceApi res = @@ -5761,9 +5942,11 @@ .fhir; var arg_name = "foo"; var arg_end = "foo"; - var arg_P_count = 42; - var arg_start = "foo"; var arg_P_pageToken = "foo"; + var arg_P_type = "foo"; + var arg_P_since = "foo"; + var arg_start = "foo"; + var arg_P_count = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5797,11 +5980,13 @@ } } unittest.expect(queryMap["end"].first, unittest.equals(arg_end)); - unittest.expect(core.int.parse(queryMap["_count"].first), - unittest.equals(arg_P_count)); - unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); unittest.expect( queryMap["_page_token"].first, unittest.equals(arg_P_pageToken)); + unittest.expect(queryMap["_type"].first, unittest.equals(arg_P_type)); + unittest.expect(queryMap["_since"].first, unittest.equals(arg_P_since)); + unittest.expect(queryMap["start"].first, unittest.equals(arg_start)); + unittest.expect(core.int.parse(queryMap["_count"].first), + unittest.equals(arg_P_count)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5812,9 +5997,11 @@ }), true); res.Patient_everything(arg_name, end: arg_end, - P_count: arg_P_count, - start: arg_start, P_pageToken: arg_P_pageToken, + P_type: arg_P_type, + P_since: arg_P_since, + start: arg_start, + P_count: arg_P_count, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHttpBody(response); @@ -6124,10 +6311,10 @@ .fhirStores .fhir; var arg_name = "foo"; - var arg_P_count = 42; - var arg_P_since = "foo"; - var arg_P_at = "foo"; var arg_P_pageToken = "foo"; + var arg_P_since = "foo"; + var arg_P_count = 42; + var arg_P_at = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6160,12 +6347,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["_count"].first), - unittest.equals(arg_P_count)); - unittest.expect(queryMap["_since"].first, unittest.equals(arg_P_since)); - unittest.expect(queryMap["_at"].first, unittest.equals(arg_P_at)); unittest.expect( queryMap["_page_token"].first, unittest.equals(arg_P_pageToken)); + unittest.expect(queryMap["_since"].first, unittest.equals(arg_P_since)); + unittest.expect(core.int.parse(queryMap["_count"].first), + unittest.equals(arg_P_count)); + unittest.expect(queryMap["_at"].first, unittest.equals(arg_P_at)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6176,10 +6363,10 @@ }), true); res .history(arg_name, - P_count: arg_P_count, - P_since: arg_P_since, - P_at: arg_P_at, P_pageToken: arg_P_pageToken, + P_since: arg_P_since, + P_count: arg_P_count, + P_at: arg_P_at, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkHttpBody(response); @@ -6714,8 +6901,8 @@ api.ProjectsLocationsDatasetsHl7V2StoresResourceApi res = new api.HealthcareApi(mock).projects.locations.datasets.hl7V2Stores; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -6749,10 +6936,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -6764,8 +6951,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -7196,11 +7383,11 @@ .hl7V2Stores .messages; var arg_parent = "foo"; + var arg_view = "foo"; var arg_filter = "foo"; + var arg_orderBy = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_view = "foo"; - var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7233,14 +7420,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7251,11 +7438,11 @@ }), true); res .list(arg_parent, + view: arg_view, filter: arg_filter, + orderBy: arg_orderBy, pageToken: arg_pageToken, pageSize: arg_pageSize, - view: arg_view, - orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMessagesResponse(response); @@ -7442,9 +7629,9 @@ api.ProjectsLocationsDatasetsOperationsResourceApi res = new api.HealthcareApi(mock).projects.locations.datasets.operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7477,11 +7664,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7492,9 +7679,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/homegraph/v1_test.dart b/generated/googleapis/test/homegraph/v1_test.dart index 0e4b14f..e0f7ab1 100644 --- a/generated/googleapis/test/homegraph/v1_test.dart +++ b/generated/googleapis/test/homegraph/v1_test.dart
@@ -90,7 +90,7 @@ buildCounterAgentOtherDeviceId--; } -buildUnnamed3875() { +buildUnnamed4074() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -105,7 +105,7 @@ return o; } -checkUnnamed3875(core.Map<core.String, core.Object> o) { +checkUnnamed4074(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)); @@ -119,7 +119,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3876() { +buildUnnamed4075() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -134,7 +134,7 @@ return o; } -checkUnnamed3876(core.Map<core.String, core.Object> o) { +checkUnnamed4075(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)); @@ -148,27 +148,27 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3877() { +buildUnnamed4076() { var o = new core.List<api.AgentOtherDeviceId>(); o.add(buildAgentOtherDeviceId()); o.add(buildAgentOtherDeviceId()); return o; } -checkUnnamed3877(core.List<api.AgentOtherDeviceId> o) { +checkUnnamed4076(core.List<api.AgentOtherDeviceId> o) { unittest.expect(o, unittest.hasLength(2)); checkAgentOtherDeviceId(o[0]); checkAgentOtherDeviceId(o[1]); } -buildUnnamed3878() { +buildUnnamed4077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3878(core.List<core.String> o) { +checkUnnamed4077(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -179,16 +179,16 @@ var o = new api.Device(); buildCounterDevice++; if (buildCounterDevice < 3) { - o.attributes = buildUnnamed3875(); - o.customData = buildUnnamed3876(); + o.attributes = buildUnnamed4074(); + o.customData = buildUnnamed4075(); o.deviceInfo = buildDeviceInfo(); o.id = "foo"; o.name = buildDeviceNames(); o.notificationSupportedByAgent = true; - o.otherDeviceIds = buildUnnamed3877(); + o.otherDeviceIds = buildUnnamed4076(); o.roomHint = "foo"; o.structureHint = "foo"; - o.traits = buildUnnamed3878(); + o.traits = buildUnnamed4077(); o.type = "foo"; o.willReportState = true; } @@ -199,16 +199,16 @@ checkDevice(api.Device o) { buildCounterDevice++; if (buildCounterDevice < 3) { - checkUnnamed3875(o.attributes); - checkUnnamed3876(o.customData); + checkUnnamed4074(o.attributes); + checkUnnamed4075(o.customData); checkDeviceInfo(o.deviceInfo); unittest.expect(o.id, unittest.equals('foo')); checkDeviceNames(o.name); unittest.expect(o.notificationSupportedByAgent, unittest.isTrue); - checkUnnamed3877(o.otherDeviceIds); + checkUnnamed4076(o.otherDeviceIds); unittest.expect(o.roomHint, unittest.equals('foo')); unittest.expect(o.structureHint, unittest.equals('foo')); - checkUnnamed3878(o.traits); + checkUnnamed4077(o.traits); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.willReportState, unittest.isTrue); } @@ -240,27 +240,27 @@ buildCounterDeviceInfo--; } -buildUnnamed3879() { +buildUnnamed4078() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3879(core.List<core.String> o) { +checkUnnamed4078(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3880() { +buildUnnamed4079() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3880(core.List<core.String> o) { +checkUnnamed4079(core.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,9 +271,9 @@ var o = new api.DeviceNames(); buildCounterDeviceNames++; if (buildCounterDeviceNames < 3) { - o.defaultNames = buildUnnamed3879(); + o.defaultNames = buildUnnamed4078(); o.name = "foo"; - o.nicknames = buildUnnamed3880(); + o.nicknames = buildUnnamed4079(); } buildCounterDeviceNames--; return o; @@ -282,9 +282,9 @@ checkDeviceNames(api.DeviceNames o) { buildCounterDeviceNames++; if (buildCounterDeviceNames < 3) { - checkUnnamed3879(o.defaultNames); + checkUnnamed4078(o.defaultNames); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3880(o.nicknames); + checkUnnamed4079(o.nicknames); } buildCounterDeviceNames--; } @@ -304,14 +304,14 @@ buildCounterEmpty--; } -buildUnnamed3881() { +buildUnnamed4080() { var o = new core.List<api.QueryRequestInput>(); o.add(buildQueryRequestInput()); o.add(buildQueryRequestInput()); return o; } -checkUnnamed3881(core.List<api.QueryRequestInput> o) { +checkUnnamed4080(core.List<api.QueryRequestInput> o) { unittest.expect(o, unittest.hasLength(2)); checkQueryRequestInput(o[0]); checkQueryRequestInput(o[1]); @@ -323,7 +323,7 @@ buildCounterQueryRequest++; if (buildCounterQueryRequest < 3) { o.agentUserId = "foo"; - o.inputs = buildUnnamed3881(); + o.inputs = buildUnnamed4080(); o.requestId = "foo"; } buildCounterQueryRequest--; @@ -334,7 +334,7 @@ buildCounterQueryRequest++; if (buildCounterQueryRequest < 3) { unittest.expect(o.agentUserId, unittest.equals('foo')); - checkUnnamed3881(o.inputs); + checkUnnamed4080(o.inputs); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterQueryRequest--; @@ -359,14 +359,14 @@ buildCounterQueryRequestInput--; } -buildUnnamed3882() { +buildUnnamed4081() { var o = new core.List<api.AgentDeviceId>(); o.add(buildAgentDeviceId()); o.add(buildAgentDeviceId()); return o; } -checkUnnamed3882(core.List<api.AgentDeviceId> o) { +checkUnnamed4081(core.List<api.AgentDeviceId> o) { unittest.expect(o, unittest.hasLength(2)); checkAgentDeviceId(o[0]); checkAgentDeviceId(o[1]); @@ -377,7 +377,7 @@ var o = new api.QueryRequestPayload(); buildCounterQueryRequestPayload++; if (buildCounterQueryRequestPayload < 3) { - o.devices = buildUnnamed3882(); + o.devices = buildUnnamed4081(); } buildCounterQueryRequestPayload--; return o; @@ -386,7 +386,7 @@ checkQueryRequestPayload(api.QueryRequestPayload o) { buildCounterQueryRequestPayload++; if (buildCounterQueryRequestPayload < 3) { - checkUnnamed3882(o.devices); + checkUnnamed4081(o.devices); } buildCounterQueryRequestPayload--; } @@ -412,7 +412,7 @@ buildCounterQueryResponse--; } -buildUnnamed3883() { +buildUnnamed4082() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -427,7 +427,7 @@ return o; } -checkUnnamed3883(core.Map<core.String, core.Object> o) { +checkUnnamed4082(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)); @@ -441,17 +441,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3884() { +buildUnnamed4083() { var o = new core.Map<core.String, core.Map<core.String, core.Object>>(); - o["x"] = buildUnnamed3883(); - o["y"] = buildUnnamed3883(); + o["x"] = buildUnnamed4082(); + o["y"] = buildUnnamed4082(); return o; } -checkUnnamed3884(core.Map<core.String, core.Map<core.String, core.Object>> o) { +checkUnnamed4083(core.Map<core.String, core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3883(o["x"]); - checkUnnamed3883(o["y"]); + checkUnnamed4082(o["x"]); + checkUnnamed4082(o["y"]); } core.int buildCounterQueryResponsePayload = 0; @@ -459,7 +459,7 @@ var o = new api.QueryResponsePayload(); buildCounterQueryResponsePayload++; if (buildCounterQueryResponsePayload < 3) { - o.devices = buildUnnamed3884(); + o.devices = buildUnnamed4083(); } buildCounterQueryResponsePayload--; return o; @@ -468,12 +468,12 @@ checkQueryResponsePayload(api.QueryResponsePayload o) { buildCounterQueryResponsePayload++; if (buildCounterQueryResponsePayload < 3) { - checkUnnamed3884(o.devices); + checkUnnamed4083(o.devices); } buildCounterQueryResponsePayload--; } -buildUnnamed3885() { +buildUnnamed4084() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -488,7 +488,7 @@ return o; } -checkUnnamed3885(core.Map<core.String, core.Object> o) { +checkUnnamed4084(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)); @@ -502,7 +502,7 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3886() { +buildUnnamed4085() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -517,7 +517,7 @@ return o; } -checkUnnamed3886(core.Map<core.String, core.Object> o) { +checkUnnamed4085(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)); @@ -536,8 +536,8 @@ var o = new api.ReportStateAndNotificationDevice(); buildCounterReportStateAndNotificationDevice++; if (buildCounterReportStateAndNotificationDevice < 3) { - o.notifications = buildUnnamed3885(); - o.states = buildUnnamed3886(); + o.notifications = buildUnnamed4084(); + o.states = buildUnnamed4085(); } buildCounterReportStateAndNotificationDevice--; return o; @@ -546,8 +546,8 @@ checkReportStateAndNotificationDevice(api.ReportStateAndNotificationDevice o) { buildCounterReportStateAndNotificationDevice++; if (buildCounterReportStateAndNotificationDevice < 3) { - checkUnnamed3885(o.notifications); - checkUnnamed3886(o.states); + checkUnnamed4084(o.notifications); + checkUnnamed4085(o.states); } buildCounterReportStateAndNotificationDevice--; } @@ -697,14 +697,14 @@ buildCounterSyncResponse--; } -buildUnnamed3887() { +buildUnnamed4086() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed3887(core.List<api.Device> o) { +checkUnnamed4086(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -716,7 +716,7 @@ buildCounterSyncResponsePayload++; if (buildCounterSyncResponsePayload < 3) { o.agentUserId = "foo"; - o.devices = buildUnnamed3887(); + o.devices = buildUnnamed4086(); } buildCounterSyncResponsePayload--; return o; @@ -726,7 +726,7 @@ buildCounterSyncResponsePayload++; if (buildCounterSyncResponsePayload < 3) { unittest.expect(o.agentUserId, unittest.equals('foo')); - checkUnnamed3887(o.devices); + checkUnnamed4086(o.devices); } buildCounterSyncResponsePayload--; }
diff --git a/generated/googleapis/test/iam/v1_test.dart b/generated/googleapis/test/iam/v1_test.dart index d0ecc88..8a8c00e 100644 --- a/generated/googleapis/test/iam/v1_test.dart +++ b/generated/googleapis/test/iam/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterAdminAuditData--; } -buildUnnamed998() { +buildUnnamed1023() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed998(core.List<api.AuditLogConfig> o) { +checkUnnamed1023(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -87,7 +87,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed998(); + o.auditLogConfigs = buildUnnamed1023(); o.service = "foo"; } buildCounterAuditConfig--; @@ -97,7 +97,7 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed998(o.auditLogConfigs); + checkUnnamed1023(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; @@ -122,14 +122,14 @@ buildCounterAuditData--; } -buildUnnamed999() { +buildUnnamed1024() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed999(core.List<core.String> o) { +checkUnnamed1024(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -140,7 +140,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed999(); + o.exemptedMembers = buildUnnamed1024(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -150,7 +150,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed999(o.exemptedMembers); + checkUnnamed1024(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -175,14 +175,14 @@ buildCounterAuditableService--; } -buildUnnamed1000() { +buildUnnamed1025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1000(core.List<core.String> o) { +checkUnnamed1025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -193,8 +193,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed1000(); + o.members = buildUnnamed1025(); o.role = "foo"; } buildCounterBinding--; @@ -204,8 +205,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed1000(o.members); + checkUnnamed1025(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -390,14 +392,14 @@ buildCounterLintPolicyRequest--; } -buildUnnamed1001() { +buildUnnamed1026() { var o = new core.List<api.LintResult>(); o.add(buildLintResult()); o.add(buildLintResult()); return o; } -checkUnnamed1001(core.List<api.LintResult> o) { +checkUnnamed1026(core.List<api.LintResult> o) { unittest.expect(o, unittest.hasLength(2)); checkLintResult(o[0]); checkLintResult(o[1]); @@ -408,7 +410,7 @@ var o = new api.LintPolicyResponse(); buildCounterLintPolicyResponse++; if (buildCounterLintPolicyResponse < 3) { - o.lintResults = buildUnnamed1001(); + o.lintResults = buildUnnamed1026(); } buildCounterLintPolicyResponse--; return o; @@ -417,7 +419,7 @@ checkLintPolicyResponse(api.LintPolicyResponse o) { buildCounterLintPolicyResponse++; if (buildCounterLintPolicyResponse < 3) { - checkUnnamed1001(o.lintResults); + checkUnnamed1026(o.lintResults); } buildCounterLintPolicyResponse--; } @@ -451,14 +453,14 @@ buildCounterLintResult--; } -buildUnnamed1002() { +buildUnnamed1027() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed1002(core.List<api.Role> o) { +checkUnnamed1027(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -470,7 +472,7 @@ buildCounterListRolesResponse++; if (buildCounterListRolesResponse < 3) { o.nextPageToken = "foo"; - o.roles = buildUnnamed1002(); + o.roles = buildUnnamed1027(); } buildCounterListRolesResponse--; return o; @@ -480,19 +482,19 @@ buildCounterListRolesResponse++; if (buildCounterListRolesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1002(o.roles); + checkUnnamed1027(o.roles); } buildCounterListRolesResponse--; } -buildUnnamed1003() { +buildUnnamed1028() { var o = new core.List<api.ServiceAccountKey>(); o.add(buildServiceAccountKey()); o.add(buildServiceAccountKey()); return o; } -checkUnnamed1003(core.List<api.ServiceAccountKey> o) { +checkUnnamed1028(core.List<api.ServiceAccountKey> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountKey(o[0]); checkServiceAccountKey(o[1]); @@ -503,7 +505,7 @@ var o = new api.ListServiceAccountKeysResponse(); buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - o.keys = buildUnnamed1003(); + o.keys = buildUnnamed1028(); } buildCounterListServiceAccountKeysResponse--; return o; @@ -512,19 +514,19 @@ checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { buildCounterListServiceAccountKeysResponse++; if (buildCounterListServiceAccountKeysResponse < 3) { - checkUnnamed1003(o.keys); + checkUnnamed1028(o.keys); } buildCounterListServiceAccountKeysResponse--; } -buildUnnamed1004() { +buildUnnamed1029() { var o = new core.List<api.ServiceAccount>(); o.add(buildServiceAccount()); o.add(buildServiceAccount()); return o; } -checkUnnamed1004(core.List<api.ServiceAccount> o) { +checkUnnamed1029(core.List<api.ServiceAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccount(o[0]); checkServiceAccount(o[1]); @@ -535,7 +537,7 @@ var o = new api.ListServiceAccountsResponse(); buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - o.accounts = buildUnnamed1004(); + o.accounts = buildUnnamed1029(); o.nextPageToken = "foo"; } buildCounterListServiceAccountsResponse--; @@ -545,7 +547,7 @@ checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { buildCounterListServiceAccountsResponse++; if (buildCounterListServiceAccountsResponse < 3) { - checkUnnamed1004(o.accounts); + checkUnnamed1029(o.accounts); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListServiceAccountsResponse--; @@ -605,27 +607,27 @@ buildCounterPermission--; } -buildUnnamed1005() { +buildUnnamed1030() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1005(core.List<core.String> o) { +checkUnnamed1030(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1006() { +buildUnnamed1031() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1006(core.List<core.String> o) { +checkUnnamed1031(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -636,8 +638,8 @@ var o = new api.PermissionDelta(); buildCounterPermissionDelta++; if (buildCounterPermissionDelta < 3) { - o.addedPermissions = buildUnnamed1005(); - o.removedPermissions = buildUnnamed1006(); + o.addedPermissions = buildUnnamed1030(); + o.removedPermissions = buildUnnamed1031(); } buildCounterPermissionDelta--; return o; @@ -646,33 +648,33 @@ checkPermissionDelta(api.PermissionDelta o) { buildCounterPermissionDelta++; if (buildCounterPermissionDelta < 3) { - checkUnnamed1005(o.addedPermissions); - checkUnnamed1006(o.removedPermissions); + checkUnnamed1030(o.addedPermissions); + checkUnnamed1031(o.removedPermissions); } buildCounterPermissionDelta--; } -buildUnnamed1007() { +buildUnnamed1032() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed1007(core.List<api.AuditConfig> o) { +checkUnnamed1032(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed1008() { +buildUnnamed1033() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed1008(core.List<api.Binding> o) { +checkUnnamed1033(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -683,8 +685,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed1007(); - o.bindings = buildUnnamed1008(); + o.auditConfigs = buildUnnamed1032(); + o.bindings = buildUnnamed1033(); o.etag = "foo"; o.version = 42; } @@ -695,22 +697,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed1007(o.auditConfigs); - checkUnnamed1008(o.bindings); + checkUnnamed1032(o.auditConfigs); + checkUnnamed1033(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed1009() { +buildUnnamed1034() { var o = new core.List<api.BindingDelta>(); o.add(buildBindingDelta()); o.add(buildBindingDelta()); return o; } -checkUnnamed1009(core.List<api.BindingDelta> o) { +checkUnnamed1034(core.List<api.BindingDelta> o) { unittest.expect(o, unittest.hasLength(2)); checkBindingDelta(o[0]); checkBindingDelta(o[1]); @@ -721,7 +723,7 @@ var o = new api.PolicyDelta(); buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - o.bindingDeltas = buildUnnamed1009(); + o.bindingDeltas = buildUnnamed1034(); } buildCounterPolicyDelta--; return o; @@ -730,7 +732,7 @@ checkPolicyDelta(api.PolicyDelta o) { buildCounterPolicyDelta++; if (buildCounterPolicyDelta < 3) { - checkUnnamed1009(o.bindingDeltas); + checkUnnamed1034(o.bindingDeltas); } buildCounterPolicyDelta--; } @@ -754,14 +756,14 @@ buildCounterQueryAuditableServicesRequest--; } -buildUnnamed1010() { +buildUnnamed1035() { var o = new core.List<api.AuditableService>(); o.add(buildAuditableService()); o.add(buildAuditableService()); return o; } -checkUnnamed1010(core.List<api.AuditableService> o) { +checkUnnamed1035(core.List<api.AuditableService> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditableService(o[0]); checkAuditableService(o[1]); @@ -772,7 +774,7 @@ var o = new api.QueryAuditableServicesResponse(); buildCounterQueryAuditableServicesResponse++; if (buildCounterQueryAuditableServicesResponse < 3) { - o.services = buildUnnamed1010(); + o.services = buildUnnamed1035(); } buildCounterQueryAuditableServicesResponse--; return o; @@ -781,7 +783,7 @@ checkQueryAuditableServicesResponse(api.QueryAuditableServicesResponse o) { buildCounterQueryAuditableServicesResponse++; if (buildCounterQueryAuditableServicesResponse < 3) { - checkUnnamed1010(o.services); + checkUnnamed1035(o.services); } buildCounterQueryAuditableServicesResponse--; } @@ -811,14 +813,14 @@ buildCounterQueryGrantableRolesRequest--; } -buildUnnamed1011() { +buildUnnamed1036() { var o = new core.List<api.Role>(); o.add(buildRole()); o.add(buildRole()); return o; } -checkUnnamed1011(core.List<api.Role> o) { +checkUnnamed1036(core.List<api.Role> o) { unittest.expect(o, unittest.hasLength(2)); checkRole(o[0]); checkRole(o[1]); @@ -830,7 +832,7 @@ buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { o.nextPageToken = "foo"; - o.roles = buildUnnamed1011(); + o.roles = buildUnnamed1036(); } buildCounterQueryGrantableRolesResponse--; return o; @@ -840,7 +842,7 @@ buildCounterQueryGrantableRolesResponse++; if (buildCounterQueryGrantableRolesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1011(o.roles); + checkUnnamed1036(o.roles); } buildCounterQueryGrantableRolesResponse--; } @@ -868,14 +870,14 @@ buildCounterQueryTestablePermissionsRequest--; } -buildUnnamed1012() { +buildUnnamed1037() { var o = new core.List<api.Permission>(); o.add(buildPermission()); o.add(buildPermission()); return o; } -checkUnnamed1012(core.List<api.Permission> o) { +checkUnnamed1037(core.List<api.Permission> o) { unittest.expect(o, unittest.hasLength(2)); checkPermission(o[0]); checkPermission(o[1]); @@ -887,7 +889,7 @@ buildCounterQueryTestablePermissionsResponse++; if (buildCounterQueryTestablePermissionsResponse < 3) { o.nextPageToken = "foo"; - o.permissions = buildUnnamed1012(); + o.permissions = buildUnnamed1037(); } buildCounterQueryTestablePermissionsResponse--; return o; @@ -897,19 +899,19 @@ buildCounterQueryTestablePermissionsResponse++; if (buildCounterQueryTestablePermissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1012(o.permissions); + checkUnnamed1037(o.permissions); } buildCounterQueryTestablePermissionsResponse--; } -buildUnnamed1013() { +buildUnnamed1038() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1013(core.List<core.String> o) { +checkUnnamed1038(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -923,7 +925,7 @@ o.deleted = true; o.description = "foo"; o.etag = "foo"; - o.includedPermissions = buildUnnamed1013(); + o.includedPermissions = buildUnnamed1038(); o.name = "foo"; o.stage = "foo"; o.title = "foo"; @@ -938,7 +940,7 @@ unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed1013(o.includedPermissions); + checkUnnamed1038(o.includedPermissions); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.stage, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -1117,14 +1119,14 @@ buildCounterSignJwtResponse--; } -buildUnnamed1014() { +buildUnnamed1039() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1014(core.List<core.String> o) { +checkUnnamed1039(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1135,7 +1137,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed1014(); + o.permissions = buildUnnamed1039(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1144,19 +1146,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed1014(o.permissions); + checkUnnamed1039(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed1015() { +buildUnnamed1040() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1015(core.List<core.String> o) { +checkUnnamed1040(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1167,7 +1169,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed1015(); + o.permissions = buildUnnamed1040(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1176,7 +1178,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed1015(o.permissions); + checkUnnamed1040(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1253,14 +1255,14 @@ buildCounterUploadServiceAccountKeyRequest--; } -buildUnnamed1016() { +buildUnnamed1041() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1016(core.List<core.String> o) { +checkUnnamed1041(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1903,10 +1905,10 @@ api.OrganizationsRolesResourceApi res = new api.IamApi(mock).organizations.roles; var arg_parent = "foo"; - var arg_showDeleted = true; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_view = "foo"; + var arg_pageSize = 42; + var arg_showDeleted = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1940,12 +1942,12 @@ } } unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1956,10 +1958,10 @@ }), true); res .list(arg_parent, - showDeleted: arg_showDeleted, pageToken: arg_pageToken, - pageSize: arg_pageSize, view: arg_view, + pageSize: arg_pageSize, + showDeleted: arg_showDeleted, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRolesResponse(response); @@ -2302,10 +2304,10 @@ var mock = new HttpServerMock(); api.ProjectsRolesResourceApi res = new api.IamApi(mock).projects.roles; var arg_parent = "foo"; + var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; var arg_showDeleted = true; - var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2338,13 +2340,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2355,10 +2357,10 @@ }), true); res .list(arg_parent, + pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, showDeleted: arg_showDeleted, - pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRolesResponse(response); @@ -2817,8 +2819,8 @@ api.ProjectsServiceAccountsResourceApi res = new api.IamApi(mock).projects.serviceAccounts; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2851,10 +2853,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2865,8 +2867,8 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServiceAccountsResponse(response); @@ -3435,7 +3437,7 @@ api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).projects.serviceAccounts.keys; var arg_name = "foo"; - var arg_keyTypes = buildUnnamed1016(); + var arg_keyTypes = buildUnnamed1041(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3596,11 +3598,11 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.RolesResourceApi res = new api.IamApi(mock).roles; + var arg_pageSize = 42; + var arg_parent = "foo"; var arg_showDeleted = true; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_view = "foo"; - var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3632,14 +3634,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect( queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); - unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3650,11 +3652,11 @@ }), true); res .list( + pageSize: arg_pageSize, + parent: arg_parent, showDeleted: arg_showDeleted, pageToken: arg_pageToken, - pageSize: arg_pageSize, view: arg_view, - parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRolesResponse(response);
diff --git a/generated/googleapis/test/iamcredentials/v1_test.dart b/generated/googleapis/test/iamcredentials/v1_test.dart index e6861fc..ac66186 100644 --- a/generated/googleapis/test/iamcredentials/v1_test.dart +++ b/generated/googleapis/test/iamcredentials/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed5038() { +buildUnnamed5419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5038(core.List<core.String> o) { +checkUnnamed5419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5039() { +buildUnnamed5420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5039(core.List<core.String> o) { +checkUnnamed5420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,9 +81,9 @@ var o = new api.GenerateAccessTokenRequest(); buildCounterGenerateAccessTokenRequest++; if (buildCounterGenerateAccessTokenRequest < 3) { - o.delegates = buildUnnamed5038(); + o.delegates = buildUnnamed5419(); o.lifetime = "foo"; - o.scope = buildUnnamed5039(); + o.scope = buildUnnamed5420(); } buildCounterGenerateAccessTokenRequest--; return o; @@ -92,9 +92,9 @@ checkGenerateAccessTokenRequest(api.GenerateAccessTokenRequest o) { buildCounterGenerateAccessTokenRequest++; if (buildCounterGenerateAccessTokenRequest < 3) { - checkUnnamed5038(o.delegates); + checkUnnamed5419(o.delegates); unittest.expect(o.lifetime, unittest.equals('foo')); - checkUnnamed5039(o.scope); + checkUnnamed5420(o.scope); } buildCounterGenerateAccessTokenRequest--; } @@ -120,14 +120,14 @@ buildCounterGenerateAccessTokenResponse--; } -buildUnnamed5040() { +buildUnnamed5421() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5040(core.List<core.String> o) { +checkUnnamed5421(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -139,7 +139,7 @@ buildCounterGenerateIdTokenRequest++; if (buildCounterGenerateIdTokenRequest < 3) { o.audience = "foo"; - o.delegates = buildUnnamed5040(); + o.delegates = buildUnnamed5421(); o.includeEmail = true; } buildCounterGenerateIdTokenRequest--; @@ -150,7 +150,7 @@ buildCounterGenerateIdTokenRequest++; if (buildCounterGenerateIdTokenRequest < 3) { unittest.expect(o.audience, unittest.equals('foo')); - checkUnnamed5040(o.delegates); + checkUnnamed5421(o.delegates); unittest.expect(o.includeEmail, unittest.isTrue); } buildCounterGenerateIdTokenRequest--; @@ -175,14 +175,14 @@ buildCounterGenerateIdTokenResponse--; } -buildUnnamed5041() { +buildUnnamed5422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5041(core.List<core.String> o) { +checkUnnamed5422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -193,7 +193,7 @@ var o = new api.SignBlobRequest(); buildCounterSignBlobRequest++; if (buildCounterSignBlobRequest < 3) { - o.delegates = buildUnnamed5041(); + o.delegates = buildUnnamed5422(); o.payload = "foo"; } buildCounterSignBlobRequest--; @@ -203,7 +203,7 @@ checkSignBlobRequest(api.SignBlobRequest o) { buildCounterSignBlobRequest++; if (buildCounterSignBlobRequest < 3) { - checkUnnamed5041(o.delegates); + checkUnnamed5422(o.delegates); unittest.expect(o.payload, unittest.equals('foo')); } buildCounterSignBlobRequest--; @@ -230,14 +230,14 @@ buildCounterSignBlobResponse--; } -buildUnnamed5042() { +buildUnnamed5423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5042(core.List<core.String> o) { +checkUnnamed5423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -248,7 +248,7 @@ var o = new api.SignJwtRequest(); buildCounterSignJwtRequest++; if (buildCounterSignJwtRequest < 3) { - o.delegates = buildUnnamed5042(); + o.delegates = buildUnnamed5423(); o.payload = "foo"; } buildCounterSignJwtRequest--; @@ -258,7 +258,7 @@ checkSignJwtRequest(api.SignJwtRequest o) { buildCounterSignJwtRequest++; if (buildCounterSignJwtRequest < 3) { - checkUnnamed5042(o.delegates); + checkUnnamed5423(o.delegates); unittest.expect(o.payload, unittest.equals('foo')); } buildCounterSignJwtRequest--;
diff --git a/generated/googleapis/test/iap/v1_test.dart b/generated/googleapis/test/iap/v1_test.dart index 6c839c7..e09d577 100644 --- a/generated/googleapis/test/iap/v1_test.dart +++ b/generated/googleapis/test/iap/v1_test.dart
@@ -100,6 +100,7 @@ buildCounterApplicationSettings++; if (buildCounterApplicationSettings < 3) { o.accessDeniedPageSettings = buildAccessDeniedPageSettings(); + o.cookieDomain = "foo"; o.csmSettings = buildCsmSettings(); } buildCounterApplicationSettings--; @@ -110,19 +111,20 @@ buildCounterApplicationSettings++; if (buildCounterApplicationSettings < 3) { checkAccessDeniedPageSettings(o.accessDeniedPageSettings); + unittest.expect(o.cookieDomain, unittest.equals('foo')); checkCsmSettings(o.csmSettings); } buildCounterApplicationSettings--; } -buildUnnamed4349() { +buildUnnamed4597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4349(core.List<core.String> o) { +checkUnnamed4597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -133,8 +135,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed4349(); + o.members = buildUnnamed4597(); o.role = "foo"; } buildCounterBinding--; @@ -144,8 +147,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed4349(o.members); + checkUnnamed4597(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -254,14 +258,14 @@ buildCounterExpr--; } -buildUnnamed4350() { +buildUnnamed4598() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4350(core.List<core.String> o) { +checkUnnamed4598(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -273,7 +277,7 @@ buildCounterGcipSettings++; if (buildCounterGcipSettings < 3) { o.loginPageUri = "foo"; - o.tenantIds = buildUnnamed4350(); + o.tenantIds = buildUnnamed4598(); } buildCounterGcipSettings--; return o; @@ -283,7 +287,7 @@ buildCounterGcipSettings++; if (buildCounterGcipSettings < 3) { unittest.expect(o.loginPageUri, unittest.equals('foo')); - checkUnnamed4350(o.tenantIds); + checkUnnamed4598(o.tenantIds); } buildCounterGcipSettings--; } @@ -372,14 +376,14 @@ buildCounterIdentityAwareProxyClient--; } -buildUnnamed4351() { +buildUnnamed4599() { var o = new core.List<api.Brand>(); o.add(buildBrand()); o.add(buildBrand()); return o; } -checkUnnamed4351(core.List<api.Brand> o) { +checkUnnamed4599(core.List<api.Brand> o) { unittest.expect(o, unittest.hasLength(2)); checkBrand(o[0]); checkBrand(o[1]); @@ -390,7 +394,7 @@ var o = new api.ListBrandsResponse(); buildCounterListBrandsResponse++; if (buildCounterListBrandsResponse < 3) { - o.brands = buildUnnamed4351(); + o.brands = buildUnnamed4599(); } buildCounterListBrandsResponse--; return o; @@ -399,19 +403,19 @@ checkListBrandsResponse(api.ListBrandsResponse o) { buildCounterListBrandsResponse++; if (buildCounterListBrandsResponse < 3) { - checkUnnamed4351(o.brands); + checkUnnamed4599(o.brands); } buildCounterListBrandsResponse--; } -buildUnnamed4352() { +buildUnnamed4600() { var o = new core.List<api.IdentityAwareProxyClient>(); o.add(buildIdentityAwareProxyClient()); o.add(buildIdentityAwareProxyClient()); return o; } -checkUnnamed4352(core.List<api.IdentityAwareProxyClient> o) { +checkUnnamed4600(core.List<api.IdentityAwareProxyClient> o) { unittest.expect(o, unittest.hasLength(2)); checkIdentityAwareProxyClient(o[0]); checkIdentityAwareProxyClient(o[1]); @@ -422,7 +426,7 @@ var o = new api.ListIdentityAwareProxyClientsResponse(); buildCounterListIdentityAwareProxyClientsResponse++; if (buildCounterListIdentityAwareProxyClientsResponse < 3) { - o.identityAwareProxyClients = buildUnnamed4352(); + o.identityAwareProxyClients = buildUnnamed4600(); o.nextPageToken = "foo"; } buildCounterListIdentityAwareProxyClientsResponse--; @@ -433,7 +437,7 @@ api.ListIdentityAwareProxyClientsResponse o) { buildCounterListIdentityAwareProxyClientsResponse++; if (buildCounterListIdentityAwareProxyClientsResponse < 3) { - checkUnnamed4352(o.identityAwareProxyClients); + checkUnnamed4600(o.identityAwareProxyClients); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListIdentityAwareProxyClientsResponse--; @@ -460,14 +464,14 @@ buildCounterOAuthSettings--; } -buildUnnamed4353() { +buildUnnamed4601() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed4353(core.List<api.Binding> o) { +checkUnnamed4601(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -478,7 +482,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed4353(); + o.bindings = buildUnnamed4601(); o.etag = "foo"; o.version = 42; } @@ -489,7 +493,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed4353(o.bindings); + checkUnnamed4601(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -560,14 +564,14 @@ buildCounterResetIdentityAwareProxyClientSecretRequest--; } -buildUnnamed4354() { +buildUnnamed4602() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4354(core.Map<core.String, core.String> o) { +checkUnnamed4602(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')); @@ -578,7 +582,7 @@ var o = new api.Resource(); buildCounterResource++; if (buildCounterResource < 3) { - o.labels = buildUnnamed4354(); + o.labels = buildUnnamed4602(); o.name = "foo"; o.service = "foo"; o.type = "foo"; @@ -590,7 +594,7 @@ checkResource(api.Resource o) { buildCounterResource++; if (buildCounterResource < 3) { - checkUnnamed4354(o.labels); + checkUnnamed4602(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -617,14 +621,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed4355() { +buildUnnamed4603() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4355(core.List<core.String> o) { +checkUnnamed4603(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -635,7 +639,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed4355(); + o.permissions = buildUnnamed4603(); } buildCounterTestIamPermissionsRequest--; return o; @@ -644,19 +648,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed4355(o.permissions); + checkUnnamed4603(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed4356() { +buildUnnamed4604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4356(core.List<core.String> o) { +checkUnnamed4604(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -667,7 +671,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed4356(); + o.permissions = buildUnnamed4604(); } buildCounterTestIamPermissionsResponse--; return o; @@ -676,7 +680,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed4356(o.permissions); + checkUnnamed4604(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1210,8 +1214,8 @@ api.ProjectsBrandsIdentityAwareProxyClientsResourceApi res = new api.IapApi(mock).projects.brands.identityAwareProxyClients; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1244,10 +1248,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1259,8 +1263,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListIdentityAwareProxyClientsResponse(response);
diff --git a/generated/googleapis/test/identitytoolkit/v3_test.dart b/generated/googleapis/test/identitytoolkit/v3_test.dart index 299d14d..c712d71 100644 --- a/generated/googleapis/test/identitytoolkit/v3_test.dart +++ b/generated/googleapis/test/identitytoolkit/v3_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed719() { +buildUnnamed738() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed719(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')); } -buildUnnamed720() { +buildUnnamed739() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed720(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')); @@ -81,7 +81,7 @@ var o = new api.CreateAuthUriResponse(); buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - o.allProviders = buildUnnamed719(); + o.allProviders = buildUnnamed738(); o.authUri = "foo"; o.captchaRequired = true; o.forExistingProvider = true; @@ -89,7 +89,7 @@ o.providerId = "foo"; o.registered = true; o.sessionId = "foo"; - o.signinMethods = buildUnnamed720(); + o.signinMethods = buildUnnamed739(); } buildCounterCreateAuthUriResponse--; return o; @@ -98,7 +98,7 @@ checkCreateAuthUriResponse(api.CreateAuthUriResponse o) { buildCounterCreateAuthUriResponse++; if (buildCounterCreateAuthUriResponse < 3) { - checkUnnamed719(o.allProviders); + checkUnnamed738(o.allProviders); unittest.expect(o.authUri, unittest.equals('foo')); unittest.expect(o.captchaRequired, unittest.isTrue); unittest.expect(o.forExistingProvider, unittest.isTrue); @@ -106,7 +106,7 @@ unittest.expect(o.providerId, unittest.equals('foo')); unittest.expect(o.registered, unittest.isTrue); unittest.expect(o.sessionId, unittest.equals('foo')); - checkUnnamed720(o.signinMethods); + checkUnnamed739(o.signinMethods); } buildCounterCreateAuthUriResponse--; } @@ -130,14 +130,14 @@ buildCounterDeleteAccountResponse--; } -buildUnnamed721() { +buildUnnamed740() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed721(core.List<api.UserInfo> o) { +checkUnnamed740(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -150,7 +150,7 @@ if (buildCounterDownloadAccountResponse < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.users = buildUnnamed721(); + o.users = buildUnnamed740(); } buildCounterDownloadAccountResponse--; return o; @@ -161,7 +161,7 @@ if (buildCounterDownloadAccountResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed721(o.users); + checkUnnamed740(o.users); } buildCounterDownloadAccountResponse--; } @@ -226,14 +226,14 @@ buildCounterEmailTemplate--; } -buildUnnamed722() { +buildUnnamed741() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed722(core.List<api.UserInfo> o) { +checkUnnamed741(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -245,7 +245,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { o.kind = "foo"; - o.users = buildUnnamed722(); + o.users = buildUnnamed741(); } buildCounterGetAccountInfoResponse--; return o; @@ -255,7 +255,7 @@ buildCounterGetAccountInfoResponse++; if (buildCounterGetAccountInfoResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed722(o.users); + checkUnnamed741(o.users); } buildCounterGetAccountInfoResponse--; } @@ -306,14 +306,14 @@ buildCounterGetRecaptchaParamResponse--; } -buildUnnamed723() { +buildUnnamed742() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed723(core.Map<core.String, core.String> o) { +checkUnnamed742(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -329,7 +329,7 @@ o.clientId = "foo"; o.context = "foo"; o.continueUri = "foo"; - o.customParameter = buildUnnamed723(); + o.customParameter = buildUnnamed742(); o.hostedDomain = "foo"; o.identifier = "foo"; o.oauthConsumerKey = "foo"; @@ -354,7 +354,7 @@ unittest.expect(o.clientId, unittest.equals('foo')); unittest.expect(o.context, unittest.equals('foo')); unittest.expect(o.continueUri, unittest.equals('foo')); - checkUnnamed723(o.customParameter); + checkUnnamed742(o.customParameter); unittest.expect(o.hostedDomain, unittest.equals('foo')); unittest.expect(o.identifier, unittest.equals('foo')); unittest.expect(o.oauthConsumerKey, unittest.equals('foo')); @@ -443,40 +443,40 @@ buildCounterIdentitytoolkitRelyingpartyEmailLinkSigninRequest--; } -buildUnnamed724() { +buildUnnamed743() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed724(core.List<core.String> o) { +checkUnnamed743(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed725() { +buildUnnamed744() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed725(core.List<core.String> o) { +checkUnnamed744(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed726() { +buildUnnamed745() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed726(core.List<core.String> o) { +checkUnnamed745(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -488,10 +488,10 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { o.delegatedProjectNumber = "foo"; - o.email = buildUnnamed724(); + o.email = buildUnnamed743(); o.idToken = "foo"; - o.localId = buildUnnamed725(); - o.phoneNumber = buildUnnamed726(); + o.localId = buildUnnamed744(); + o.phoneNumber = buildUnnamed745(); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; return o; @@ -502,35 +502,35 @@ buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest++; if (buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest < 3) { unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed724(o.email); + checkUnnamed743(o.email); unittest.expect(o.idToken, unittest.equals('foo')); - checkUnnamed725(o.localId); - checkUnnamed726(o.phoneNumber); + checkUnnamed744(o.localId); + checkUnnamed745(o.phoneNumber); } buildCounterIdentitytoolkitRelyingpartyGetAccountInfoRequest--; } -buildUnnamed727() { +buildUnnamed746() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed727(core.List<core.String> o) { +checkUnnamed746(core.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() { +buildUnnamed747() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed728(core.List<api.IdpConfig> o) { +checkUnnamed747(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -543,11 +543,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed727(); + o.authorizedDomains = buildUnnamed746(); o.changeEmailTemplate = buildEmailTemplate(); o.dynamicLinksDomain = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed728(); + o.idpConfig = buildUnnamed747(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.projectId = "foo"; o.resetPasswordTemplate = buildEmailTemplate(); @@ -564,11 +564,11 @@ if (buildCounterIdentitytoolkitRelyingpartyGetProjectConfigResponse < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed727(o.authorizedDomains); + checkUnnamed746(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.dynamicLinksDomain, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed728(o.idpConfig); + checkUnnamed747(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); unittest.expect(o.projectId, unittest.equals('foo')); checkEmailTemplate(o.resetPasswordTemplate); @@ -665,40 +665,40 @@ buildCounterIdentitytoolkitRelyingpartySendVerificationCodeResponse--; } -buildUnnamed729() { +buildUnnamed748() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed729(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')); } -buildUnnamed730() { +buildUnnamed749() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed730(core.List<core.String> o) { +checkUnnamed749(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed731() { +buildUnnamed750() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed731(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')); @@ -714,8 +714,8 @@ o.createdAt = "foo"; o.customAttributes = "foo"; o.delegatedProjectNumber = "foo"; - o.deleteAttribute = buildUnnamed729(); - o.deleteProvider = buildUnnamed730(); + o.deleteAttribute = buildUnnamed748(); + o.deleteProvider = buildUnnamed749(); o.disableUser = true; o.displayName = "foo"; o.email = "foo"; @@ -728,7 +728,7 @@ o.password = "foo"; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.provider = buildUnnamed731(); + o.provider = buildUnnamed750(); o.returnSecureToken = true; o.upgradeToFederatedLogin = true; o.validSince = "foo"; @@ -746,8 +746,8 @@ unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.customAttributes, unittest.equals('foo')); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); - checkUnnamed729(o.deleteAttribute); - checkUnnamed730(o.deleteProvider); + checkUnnamed748(o.deleteAttribute); + checkUnnamed749(o.deleteProvider); unittest.expect(o.disableUser, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.email, unittest.equals('foo')); @@ -760,7 +760,7 @@ unittest.expect(o.password, unittest.equals('foo')); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed731(o.provider); + checkUnnamed750(o.provider); unittest.expect(o.returnSecureToken, unittest.isTrue); unittest.expect(o.upgradeToFederatedLogin, unittest.isTrue); unittest.expect(o.validSince, unittest.equals('foo')); @@ -768,27 +768,27 @@ buildCounterIdentitytoolkitRelyingpartySetAccountInfoRequest--; } -buildUnnamed732() { +buildUnnamed751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed732(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')); } -buildUnnamed733() { +buildUnnamed752() { var o = new core.List<api.IdpConfig>(); o.add(buildIdpConfig()); o.add(buildIdpConfig()); return o; } -checkUnnamed733(core.List<api.IdpConfig> o) { +checkUnnamed752(core.List<api.IdpConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkIdpConfig(o[0]); checkIdpConfig(o[1]); @@ -801,11 +801,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { o.allowPasswordUser = true; o.apiKey = "foo"; - o.authorizedDomains = buildUnnamed732(); + o.authorizedDomains = buildUnnamed751(); o.changeEmailTemplate = buildEmailTemplate(); o.delegatedProjectNumber = "foo"; o.enableAnonymousUser = true; - o.idpConfig = buildUnnamed733(); + o.idpConfig = buildUnnamed752(); o.legacyResetPasswordTemplate = buildEmailTemplate(); o.resetPasswordTemplate = buildEmailTemplate(); o.useEmailSending = true; @@ -821,11 +821,11 @@ if (buildCounterIdentitytoolkitRelyingpartySetProjectConfigRequest < 3) { unittest.expect(o.allowPasswordUser, unittest.isTrue); unittest.expect(o.apiKey, unittest.equals('foo')); - checkUnnamed732(o.authorizedDomains); + checkUnnamed751(o.authorizedDomains); checkEmailTemplate(o.changeEmailTemplate); unittest.expect(o.delegatedProjectNumber, unittest.equals('foo')); unittest.expect(o.enableAnonymousUser, unittest.isTrue); - checkUnnamed733(o.idpConfig); + checkUnnamed752(o.idpConfig); checkEmailTemplate(o.legacyResetPasswordTemplate); checkEmailTemplate(o.resetPasswordTemplate); unittest.expect(o.useEmailSending, unittest.isTrue); @@ -942,14 +942,14 @@ buildCounterIdentitytoolkitRelyingpartySignupNewUserRequest--; } -buildUnnamed734() { +buildUnnamed753() { var o = new core.List<api.UserInfo>(); o.add(buildUserInfo()); o.add(buildUserInfo()); return o; } -checkUnnamed734(core.List<api.UserInfo> o) { +checkUnnamed753(core.List<api.UserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfo(o[0]); checkUserInfo(o[1]); @@ -973,7 +973,7 @@ o.sanityCheck = true; o.signerKey = "foo"; o.targetProjectId = "foo"; - o.users = buildUnnamed734(); + o.users = buildUnnamed753(); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; return o; @@ -996,7 +996,7 @@ unittest.expect(o.sanityCheck, unittest.isTrue); unittest.expect(o.signerKey, unittest.equals('foo')); unittest.expect(o.targetProjectId, unittest.equals('foo')); - checkUnnamed734(o.users); + checkUnnamed753(o.users); } buildCounterIdentitytoolkitRelyingpartyUploadAccountRequest--; } @@ -1181,14 +1181,14 @@ buildCounterIdentitytoolkitRelyingpartyVerifyPhoneNumberResponse--; } -buildUnnamed735() { +buildUnnamed754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed735(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')); @@ -1204,7 +1204,7 @@ o.experimentPercent = 42; o.provider = "foo"; o.secret = "foo"; - o.whitelistedAudiences = buildUnnamed735(); + o.whitelistedAudiences = buildUnnamed754(); } buildCounterIdpConfig--; return o; @@ -1218,7 +1218,7 @@ unittest.expect(o.experimentPercent, unittest.equals(42)); unittest.expect(o.provider, unittest.equals('foo')); unittest.expect(o.secret, unittest.equals('foo')); - checkUnnamed735(o.whitelistedAudiences); + checkUnnamed754(o.whitelistedAudiences); } buildCounterIdpConfig--; } @@ -1321,14 +1321,14 @@ buildCounterSetAccountInfoResponseProviderUserInfo--; } -buildUnnamed736() { +buildUnnamed755() { var o = new core.List<api.SetAccountInfoResponseProviderUserInfo>(); o.add(buildSetAccountInfoResponseProviderUserInfo()); o.add(buildSetAccountInfoResponseProviderUserInfo()); return o; } -checkUnnamed736(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { +checkUnnamed755(core.List<api.SetAccountInfoResponseProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkSetAccountInfoResponseProviderUserInfo(o[0]); checkSetAccountInfoResponseProviderUserInfo(o[1]); @@ -1349,7 +1349,7 @@ o.newEmail = "foo"; o.passwordHash = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed736(); + o.providerUserInfo = buildUnnamed755(); o.refreshToken = "foo"; } buildCounterSetAccountInfoResponse--; @@ -1369,7 +1369,7 @@ unittest.expect(o.newEmail, unittest.equals('foo')); unittest.expect(o.passwordHash, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed736(o.providerUserInfo); + checkUnnamed755(o.providerUserInfo); unittest.expect(o.refreshToken, unittest.equals('foo')); } buildCounterSetAccountInfoResponse--; @@ -1427,14 +1427,14 @@ buildCounterUploadAccountResponseError--; } -buildUnnamed737() { +buildUnnamed756() { var o = new core.List<api.UploadAccountResponseError>(); o.add(buildUploadAccountResponseError()); o.add(buildUploadAccountResponseError()); return o; } -checkUnnamed737(core.List<api.UploadAccountResponseError> o) { +checkUnnamed756(core.List<api.UploadAccountResponseError> o) { unittest.expect(o, unittest.hasLength(2)); checkUploadAccountResponseError(o[0]); checkUploadAccountResponseError(o[1]); @@ -1445,7 +1445,7 @@ var o = new api.UploadAccountResponse(); buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - o.error = buildUnnamed737(); + o.error = buildUnnamed756(); o.kind = "foo"; } buildCounterUploadAccountResponse--; @@ -1455,7 +1455,7 @@ checkUploadAccountResponse(api.UploadAccountResponse o) { buildCounterUploadAccountResponse++; if (buildCounterUploadAccountResponse < 3) { - checkUnnamed737(o.error); + checkUnnamed756(o.error); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterUploadAccountResponse--; @@ -1494,14 +1494,14 @@ buildCounterUserInfoProviderUserInfo--; } -buildUnnamed738() { +buildUnnamed757() { var o = new core.List<api.UserInfoProviderUserInfo>(); o.add(buildUserInfoProviderUserInfo()); o.add(buildUserInfoProviderUserInfo()); return o; } -checkUnnamed738(core.List<api.UserInfoProviderUserInfo> o) { +checkUnnamed757(core.List<api.UserInfoProviderUserInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkUserInfoProviderUserInfo(o[0]); checkUserInfoProviderUserInfo(o[1]); @@ -1525,7 +1525,7 @@ o.passwordUpdatedAt = 42.0; o.phoneNumber = "foo"; o.photoUrl = "foo"; - o.providerUserInfo = buildUnnamed738(); + o.providerUserInfo = buildUnnamed757(); o.rawPassword = "foo"; o.salt = "foo"; o.screenName = "foo"; @@ -1552,7 +1552,7 @@ unittest.expect(o.passwordUpdatedAt, unittest.equals(42.0)); unittest.expect(o.phoneNumber, unittest.equals('foo')); unittest.expect(o.photoUrl, unittest.equals('foo')); - checkUnnamed738(o.providerUserInfo); + checkUnnamed757(o.providerUserInfo); unittest.expect(o.rawPassword, unittest.equals('foo')); unittest.expect(o.salt, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); @@ -1562,14 +1562,14 @@ buildCounterUserInfo--; } -buildUnnamed739() { +buildUnnamed758() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed739(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')); @@ -1618,7 +1618,7 @@ o.refreshToken = "foo"; o.screenName = "foo"; o.timeZone = "foo"; - o.verifiedProvider = buildUnnamed739(); + o.verifiedProvider = buildUnnamed758(); } buildCounterVerifyAssertionResponse--; return o; @@ -1665,7 +1665,7 @@ unittest.expect(o.refreshToken, unittest.equals('foo')); unittest.expect(o.screenName, unittest.equals('foo')); unittest.expect(o.timeZone, unittest.equals('foo')); - checkUnnamed739(o.verifiedProvider); + checkUnnamed758(o.verifiedProvider); } buildCounterVerifyAssertionResponse--; }
diff --git a/generated/googleapis/test/jobs/v2_test.dart b/generated/googleapis/test/jobs/v2_test.dart index 540486e..8cdf5d2 100644 --- a/generated/googleapis/test/jobs/v2_test.dart +++ b/generated/googleapis/test/jobs/v2_test.dart
@@ -161,40 +161,40 @@ buildCounterCommutePreference--; } -buildUnnamed1198() { +buildUnnamed1210() { var o = new core.List<api.CompanyInfoSource>(); o.add(buildCompanyInfoSource()); o.add(buildCompanyInfoSource()); return o; } -checkUnnamed1198(core.List<api.CompanyInfoSource> o) { +checkUnnamed1210(core.List<api.CompanyInfoSource> o) { unittest.expect(o, unittest.hasLength(2)); checkCompanyInfoSource(o[0]); checkCompanyInfoSource(o[1]); } -buildUnnamed1199() { +buildUnnamed1211() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1199(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')); } -buildUnnamed1200() { +buildUnnamed1212() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1200(core.List<core.int> o) { +checkUnnamed1212(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)); @@ -206,7 +206,7 @@ buildCounterCompany++; if (buildCounterCompany < 3) { o.careerPageLink = "foo"; - o.companyInfoSources = buildUnnamed1198(); + o.companyInfoSources = buildUnnamed1210(); o.companySize = "foo"; o.disableLocationOptimization = true; o.displayName = "foo"; @@ -216,8 +216,8 @@ o.hiringAgency = true; o.hqLocation = "foo"; o.imageUrl = "foo"; - o.keywordSearchableCustomAttributes = buildUnnamed1199(); - o.keywordSearchableCustomFields = buildUnnamed1200(); + o.keywordSearchableCustomAttributes = buildUnnamed1211(); + o.keywordSearchableCustomFields = buildUnnamed1212(); o.name = "foo"; o.structuredCompanyHqLocation = buildJobLocation(); o.suspended = true; @@ -232,7 +232,7 @@ buildCounterCompany++; if (buildCounterCompany < 3) { unittest.expect(o.careerPageLink, unittest.equals('foo')); - checkUnnamed1198(o.companyInfoSources); + checkUnnamed1210(o.companyInfoSources); unittest.expect(o.companySize, unittest.equals('foo')); unittest.expect(o.disableLocationOptimization, unittest.isTrue); unittest.expect(o.displayName, unittest.equals('foo')); @@ -242,8 +242,8 @@ unittest.expect(o.hiringAgency, unittest.isTrue); unittest.expect(o.hqLocation, unittest.equals('foo')); unittest.expect(o.imageUrl, unittest.equals('foo')); - checkUnnamed1199(o.keywordSearchableCustomAttributes); - checkUnnamed1200(o.keywordSearchableCustomFields); + checkUnnamed1211(o.keywordSearchableCustomAttributes); + checkUnnamed1212(o.keywordSearchableCustomFields); unittest.expect(o.name, unittest.equals('foo')); checkJobLocation(o.structuredCompanyHqLocation); unittest.expect(o.suspended, unittest.isTrue); @@ -307,14 +307,14 @@ buildCounterCompensationEntry--; } -buildUnnamed1201() { +buildUnnamed1213() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1201(core.List<core.String> o) { +checkUnnamed1213(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -328,7 +328,7 @@ o.includeJobsWithUnspecifiedCompensationRange = true; o.range = buildCompensationRange(); o.type = "foo"; - o.units = buildUnnamed1201(); + o.units = buildUnnamed1213(); } buildCounterCompensationFilter--; return o; @@ -341,7 +341,7 @@ o.includeJobsWithUnspecifiedCompensationRange, unittest.isTrue); checkCompensationRange(o.range); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed1201(o.units); + checkUnnamed1213(o.units); } buildCounterCompensationFilter--; } @@ -388,14 +388,14 @@ buildCounterCompensationHistogramResult--; } -buildUnnamed1202() { +buildUnnamed1214() { var o = new core.List<api.CompensationEntry>(); o.add(buildCompensationEntry()); o.add(buildCompensationEntry()); return o; } -checkUnnamed1202(core.List<api.CompensationEntry> o) { +checkUnnamed1214(core.List<api.CompensationEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkCompensationEntry(o[0]); checkCompensationEntry(o[1]); @@ -409,7 +409,7 @@ o.amount = buildMoney(); o.annualizedBaseCompensationRange = buildCompensationRange(); o.annualizedTotalCompensationRange = buildCompensationRange(); - o.entries = buildUnnamed1202(); + o.entries = buildUnnamed1214(); o.max = buildMoney(); o.min = buildMoney(); o.type = "foo"; @@ -424,7 +424,7 @@ checkMoney(o.amount); checkCompensationRange(o.annualizedBaseCompensationRange); checkCompensationRange(o.annualizedTotalCompensationRange); - checkUnnamed1202(o.entries); + checkUnnamed1214(o.entries); checkMoney(o.max); checkMoney(o.min); unittest.expect(o.type, unittest.equals('foo')); @@ -453,14 +453,14 @@ buildCounterCompensationRange--; } -buildUnnamed1203() { +buildUnnamed1215() { var o = new core.List<api.CompletionResult>(); o.add(buildCompletionResult()); o.add(buildCompletionResult()); return o; } -checkUnnamed1203(core.List<api.CompletionResult> o) { +checkUnnamed1215(core.List<api.CompletionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkCompletionResult(o[0]); checkCompletionResult(o[1]); @@ -471,7 +471,7 @@ var o = new api.CompleteQueryResponse(); buildCounterCompleteQueryResponse++; if (buildCounterCompleteQueryResponse < 3) { - o.completionResults = buildUnnamed1203(); + o.completionResults = buildUnnamed1215(); o.metadata = buildResponseMetadata(); } buildCounterCompleteQueryResponse--; @@ -481,7 +481,7 @@ checkCompleteQueryResponse(api.CompleteQueryResponse o) { buildCounterCompleteQueryResponse++; if (buildCounterCompleteQueryResponse < 3) { - checkUnnamed1203(o.completionResults); + checkUnnamed1215(o.completionResults); checkResponseMetadata(o.metadata); } buildCounterCompleteQueryResponse--; @@ -579,14 +579,14 @@ buildCounterCustomAttributeHistogramRequest--; } -buildUnnamed1204() { +buildUnnamed1216() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed1204(core.Map<core.String, core.int> o) { +checkUnnamed1216(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -599,7 +599,7 @@ if (buildCounterCustomAttributeHistogramResult < 3) { o.key = "foo"; o.longValueHistogramResult = buildNumericBucketingResult(); - o.stringValueHistogramResult = buildUnnamed1204(); + o.stringValueHistogramResult = buildUnnamed1216(); } buildCounterCustomAttributeHistogramResult--; return o; @@ -610,19 +610,19 @@ if (buildCounterCustomAttributeHistogramResult < 3) { unittest.expect(o.key, unittest.equals('foo')); checkNumericBucketingResult(o.longValueHistogramResult); - checkUnnamed1204(o.stringValueHistogramResult); + checkUnnamed1216(o.stringValueHistogramResult); } buildCounterCustomAttributeHistogramResult--; } -buildUnnamed1205() { +buildUnnamed1217() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1205(core.List<core.String> o) { +checkUnnamed1217(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -633,7 +633,7 @@ var o = new api.CustomField(); buildCounterCustomField++; if (buildCounterCustomField < 3) { - o.values = buildUnnamed1205(); + o.values = buildUnnamed1217(); } buildCounterCustomField--; return o; @@ -642,19 +642,19 @@ checkCustomField(api.CustomField o) { buildCounterCustomField++; if (buildCounterCustomField < 3) { - checkUnnamed1205(o.values); + checkUnnamed1217(o.values); } buildCounterCustomField--; } -buildUnnamed1206() { +buildUnnamed1218() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1206(core.List<core.String> o) { +checkUnnamed1218(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -665,7 +665,7 @@ var o = new api.CustomFieldFilter(); buildCounterCustomFieldFilter++; if (buildCounterCustomFieldFilter < 3) { - o.queries = buildUnnamed1206(); + o.queries = buildUnnamed1218(); o.type = "foo"; } buildCounterCustomFieldFilter--; @@ -675,7 +675,7 @@ checkCustomFieldFilter(api.CustomFieldFilter o) { buildCounterCustomFieldFilter++; if (buildCounterCustomFieldFilter < 3) { - checkUnnamed1206(o.queries); + checkUnnamed1218(o.queries); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCustomFieldFilter--; @@ -761,14 +761,14 @@ buildCounterEmpty--; } -buildUnnamed1207() { +buildUnnamed1219() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1207(core.List<core.String> o) { +checkUnnamed1219(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -780,7 +780,7 @@ buildCounterExtendedCompensationFilter++; if (buildCounterExtendedCompensationFilter < 3) { o.compensationRange = buildExtendedCompensationInfoCompensationRange(); - o.compensationUnits = buildUnnamed1207(); + o.compensationUnits = buildUnnamed1219(); o.currency = "foo"; o.includeJobWithUnspecifiedCompensationRange = true; o.type = "foo"; @@ -793,7 +793,7 @@ buildCounterExtendedCompensationFilter++; if (buildCounterExtendedCompensationFilter < 3) { checkExtendedCompensationInfoCompensationRange(o.compensationRange); - checkUnnamed1207(o.compensationUnits); + checkUnnamed1219(o.compensationUnits); unittest.expect(o.currency, unittest.equals('foo')); unittest.expect( o.includeJobWithUnspecifiedCompensationRange, unittest.isTrue); @@ -802,14 +802,14 @@ buildCounterExtendedCompensationFilter--; } -buildUnnamed1208() { +buildUnnamed1220() { var o = new core.List<api.ExtendedCompensationInfoCompensationEntry>(); o.add(buildExtendedCompensationInfoCompensationEntry()); o.add(buildExtendedCompensationInfoCompensationEntry()); return o; } -checkUnnamed1208(core.List<api.ExtendedCompensationInfoCompensationEntry> o) { +checkUnnamed1220(core.List<api.ExtendedCompensationInfoCompensationEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedCompensationInfoCompensationEntry(o[0]); checkExtendedCompensationInfoCompensationEntry(o[1]); @@ -827,7 +827,7 @@ buildExtendedCompensationInfoCompensationRange(); o.annualizedTotalCompensationUnspecified = true; o.currency = "foo"; - o.entries = buildUnnamed1208(); + o.entries = buildUnnamed1220(); } buildCounterExtendedCompensationInfo--; return o; @@ -843,7 +843,7 @@ o.annualizedTotalCompensationRange); unittest.expect(o.annualizedTotalCompensationUnspecified, unittest.isTrue); unittest.expect(o.currency, unittest.equals('foo')); - checkUnnamed1208(o.entries); + checkUnnamed1220(o.entries); } buildCounterExtendedCompensationInfo--; } @@ -942,14 +942,14 @@ buildCounterFilter--; } -buildUnnamed1209() { +buildUnnamed1221() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1209(core.List<core.String> o) { +checkUnnamed1221(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -964,7 +964,7 @@ o.filters = buildJobFilters(); o.query = buildJobQuery(); o.requestMetadata = buildRequestMetadata(); - o.searchTypes = buildUnnamed1209(); + o.searchTypes = buildUnnamed1221(); } buildCounterGetHistogramRequest--; return o; @@ -977,19 +977,19 @@ checkJobFilters(o.filters); checkJobQuery(o.query); checkRequestMetadata(o.requestMetadata); - checkUnnamed1209(o.searchTypes); + checkUnnamed1221(o.searchTypes); } buildCounterGetHistogramRequest--; } -buildUnnamed1210() { +buildUnnamed1222() { var o = new core.List<api.HistogramResult>(); o.add(buildHistogramResult()); o.add(buildHistogramResult()); return o; } -checkUnnamed1210(core.List<api.HistogramResult> o) { +checkUnnamed1222(core.List<api.HistogramResult> o) { unittest.expect(o, unittest.hasLength(2)); checkHistogramResult(o[0]); checkHistogramResult(o[1]); @@ -1001,7 +1001,7 @@ buildCounterGetHistogramResponse++; if (buildCounterGetHistogramResponse < 3) { o.metadata = buildResponseMetadata(); - o.results = buildUnnamed1210(); + o.results = buildUnnamed1222(); } buildCounterGetHistogramResponse--; return o; @@ -1011,392 +1011,252 @@ buildCounterGetHistogramResponse++; if (buildCounterGetHistogramResponse < 3) { checkResponseMetadata(o.metadata); - checkUnnamed1210(o.results); + checkUnnamed1222(o.results); } buildCounterGetHistogramResponse--; } -buildUnnamed1211() { - var o = new core.List<api.CompensationHistogramRequest>(); - o.add(buildCompensationHistogramRequest()); - o.add(buildCompensationHistogramRequest()); - return o; -} - -checkUnnamed1211(core.List<api.CompensationHistogramRequest> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCompensationHistogramRequest(o[0]); - checkCompensationHistogramRequest(o[1]); -} - -buildUnnamed1212() { - var o = new core.List<api.CustomAttributeHistogramRequest>(); - o.add(buildCustomAttributeHistogramRequest()); - o.add(buildCustomAttributeHistogramRequest()); - return o; -} - -checkUnnamed1212(core.List<api.CustomAttributeHistogramRequest> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomAttributeHistogramRequest(o[0]); - checkCustomAttributeHistogramRequest(o[1]); -} - -buildUnnamed1213() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1213(core.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 buildCounterHistogramFacets = 0; -buildHistogramFacets() { - var o = new api.HistogramFacets(); - buildCounterHistogramFacets++; - if (buildCounterHistogramFacets < 3) { - o.compensationHistogramFacets = buildUnnamed1211(); - o.customAttributeHistogramFacets = buildUnnamed1212(); - o.simpleHistogramFacets = buildUnnamed1213(); - } - buildCounterHistogramFacets--; - return o; -} - -checkHistogramFacets(api.HistogramFacets o) { - buildCounterHistogramFacets++; - if (buildCounterHistogramFacets < 3) { - checkUnnamed1211(o.compensationHistogramFacets); - checkUnnamed1212(o.customAttributeHistogramFacets); - checkUnnamed1213(o.simpleHistogramFacets); - } - buildCounterHistogramFacets--; -} - -buildUnnamed1214() { - var o = new core.Map<core.String, core.int>(); - o["x"] = 42; - o["y"] = 42; - return o; -} - -checkUnnamed1214(core.Map<core.String, core.int> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o["x"], unittest.equals(42)); - unittest.expect(o["y"], unittest.equals(42)); -} - -core.int buildCounterHistogramResult = 0; -buildHistogramResult() { - var o = new api.HistogramResult(); - buildCounterHistogramResult++; - if (buildCounterHistogramResult < 3) { - o.searchType = "foo"; - o.values = buildUnnamed1214(); - } - buildCounterHistogramResult--; - return o; -} - -checkHistogramResult(api.HistogramResult o) { - buildCounterHistogramResult++; - if (buildCounterHistogramResult < 3) { - unittest.expect(o.searchType, unittest.equals('foo')); - checkUnnamed1214(o.values); - } - buildCounterHistogramResult--; -} - -buildUnnamed1215() { - var o = new core.List<api.CompensationHistogramResult>(); - o.add(buildCompensationHistogramResult()); - o.add(buildCompensationHistogramResult()); - return o; -} - -checkUnnamed1215(core.List<api.CompensationHistogramResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCompensationHistogramResult(o[0]); - checkCompensationHistogramResult(o[1]); -} - -buildUnnamed1216() { - var o = new core.List<api.CustomAttributeHistogramResult>(); - o.add(buildCustomAttributeHistogramResult()); - o.add(buildCustomAttributeHistogramResult()); - return o; -} - -checkUnnamed1216(core.List<api.CustomAttributeHistogramResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomAttributeHistogramResult(o[0]); - checkCustomAttributeHistogramResult(o[1]); -} - -buildUnnamed1217() { - var o = new core.List<api.HistogramResult>(); - o.add(buildHistogramResult()); - o.add(buildHistogramResult()); - return o; -} - -checkUnnamed1217(core.List<api.HistogramResult> o) { - unittest.expect(o, unittest.hasLength(2)); - checkHistogramResult(o[0]); - checkHistogramResult(o[1]); -} - -core.int buildCounterHistogramResults = 0; -buildHistogramResults() { - var o = new api.HistogramResults(); - buildCounterHistogramResults++; - if (buildCounterHistogramResults < 3) { - o.compensationHistogramResults = buildUnnamed1215(); - o.customAttributeHistogramResults = buildUnnamed1216(); - o.simpleHistogramResults = buildUnnamed1217(); - } - buildCounterHistogramResults--; - return o; -} - -checkHistogramResults(api.HistogramResults o) { - buildCounterHistogramResults++; - if (buildCounterHistogramResults < 3) { - checkUnnamed1215(o.compensationHistogramResults); - checkUnnamed1216(o.customAttributeHistogramResults); - checkUnnamed1217(o.simpleHistogramResults); - } - buildCounterHistogramResults--; -} - -buildUnnamed1218() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1218(core.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() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1219(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1220() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1220(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed1221() { - var o = new core.Map<core.String, api.CustomAttribute>(); - o["x"] = buildCustomAttribute(); - o["y"] = buildCustomAttribute(); - return o; -} - -checkUnnamed1221(core.Map<core.String, api.CustomAttribute> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomAttribute(o["x"]); - checkCustomAttribute(o["y"]); -} - -buildUnnamed1222() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed1222(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - buildUnnamed1223() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); return o; } -checkUnnamed1223(core.List<core.String> o) { +checkUnnamed1223(core.List<api.GoogleCloudTalentV4JobResult> o) { unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4BatchCreateJobsResponse = 0; +buildGoogleCloudTalentV4BatchCreateJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchCreateJobsResponse(); + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchCreateJobsResponse < 3) { + o.jobResults = buildUnnamed1223(); + } + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse--; + return o; +} + +checkGoogleCloudTalentV4BatchCreateJobsResponse( + api.GoogleCloudTalentV4BatchCreateJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchCreateJobsResponse < 3) { + checkUnnamed1223(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse--; } buildUnnamed1224() { - var o = new core.Map<core.String, api.CustomField>(); - o["x"] = buildCustomField(); - o["y"] = buildCustomField(); + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); return o; } -checkUnnamed1224(core.Map<core.String, api.CustomField> o) { +checkUnnamed1224(core.List<api.GoogleCloudTalentV4JobResult> o) { unittest.expect(o, unittest.hasLength(2)); - checkCustomField(o["x"]); - checkCustomField(o["y"]); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse = 0; +buildGoogleCloudTalentV4BatchDeleteJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchDeleteJobsResponse(); + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse < 3) { + o.jobResults = buildUnnamed1224(); + } + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse--; + return o; +} + +checkGoogleCloudTalentV4BatchDeleteJobsResponse( + api.GoogleCloudTalentV4BatchDeleteJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse < 3) { + checkUnnamed1224(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse--; +} + +core.int buildCounterGoogleCloudTalentV4BatchOperationMetadata = 0; +buildGoogleCloudTalentV4BatchOperationMetadata() { + var o = new api.GoogleCloudTalentV4BatchOperationMetadata(); + buildCounterGoogleCloudTalentV4BatchOperationMetadata++; + if (buildCounterGoogleCloudTalentV4BatchOperationMetadata < 3) { + o.createTime = "foo"; + o.endTime = "foo"; + o.failureCount = 42; + o.state = "foo"; + o.stateDescription = "foo"; + o.successCount = 42; + o.totalCount = 42; + o.updateTime = "foo"; + } + buildCounterGoogleCloudTalentV4BatchOperationMetadata--; + return o; +} + +checkGoogleCloudTalentV4BatchOperationMetadata( + api.GoogleCloudTalentV4BatchOperationMetadata o) { + buildCounterGoogleCloudTalentV4BatchOperationMetadata++; + if (buildCounterGoogleCloudTalentV4BatchOperationMetadata < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.failureCount, unittest.equals(42)); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.stateDescription, unittest.equals('foo')); + unittest.expect(o.successCount, unittest.equals(42)); + unittest.expect(o.totalCount, unittest.equals(42)); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4BatchOperationMetadata--; } buildUnnamed1225() { - var o = new core.List<api.JobLocation>(); - o.add(buildJobLocation()); - o.add(buildJobLocation()); + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); return o; } -checkUnnamed1225(core.List<api.JobLocation> o) { +checkUnnamed1225(core.List<api.GoogleCloudTalentV4JobResult> o) { unittest.expect(o, unittest.hasLength(2)); - checkJobLocation(o[0]); - checkJobLocation(o[1]); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse = 0; +buildGoogleCloudTalentV4BatchUpdateJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchUpdateJobsResponse(); + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse < 3) { + o.jobResults = buildUnnamed1225(); + } + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse--; + return o; +} + +checkGoogleCloudTalentV4BatchUpdateJobsResponse( + api.GoogleCloudTalentV4BatchUpdateJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse < 3) { + checkUnnamed1225(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse--; } buildUnnamed1226() { + var o = + new core.List<api.GoogleCloudTalentV4CompensationInfoCompensationEntry>(); + o.add(buildGoogleCloudTalentV4CompensationInfoCompensationEntry()); + o.add(buildGoogleCloudTalentV4CompensationInfoCompensationEntry()); + return o; +} + +checkUnnamed1226( + core.List<api.GoogleCloudTalentV4CompensationInfoCompensationEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(o[0]); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfo = 0; +buildGoogleCloudTalentV4CompensationInfo() { + var o = new api.GoogleCloudTalentV4CompensationInfo(); + buildCounterGoogleCloudTalentV4CompensationInfo++; + if (buildCounterGoogleCloudTalentV4CompensationInfo < 3) { + o.annualizedBaseCompensationRange = + buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.annualizedTotalCompensationRange = + buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.entries = buildUnnamed1226(); + } + buildCounterGoogleCloudTalentV4CompensationInfo--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfo( + api.GoogleCloudTalentV4CompensationInfo o) { + buildCounterGoogleCloudTalentV4CompensationInfo++; + if (buildCounterGoogleCloudTalentV4CompensationInfo < 3) { + checkGoogleCloudTalentV4CompensationInfoCompensationRange( + o.annualizedBaseCompensationRange); + checkGoogleCloudTalentV4CompensationInfoCompensationRange( + o.annualizedTotalCompensationRange); + checkUnnamed1226(o.entries); + } + buildCounterGoogleCloudTalentV4CompensationInfo--; +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry = 0; +buildGoogleCloudTalentV4CompensationInfoCompensationEntry() { + var o = new api.GoogleCloudTalentV4CompensationInfoCompensationEntry(); + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry < 3) { + o.amount = buildMoney(); + o.description = "foo"; + o.expectedUnitsPerYear = 42.0; + o.range = buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.type = "foo"; + o.unit = "foo"; + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfoCompensationEntry( + api.GoogleCloudTalentV4CompensationInfoCompensationEntry o) { + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry < 3) { + checkMoney(o.amount); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.expectedUnitsPerYear, unittest.equals(42.0)); + checkGoogleCloudTalentV4CompensationInfoCompensationRange(o.range); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry--; +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange = 0; +buildGoogleCloudTalentV4CompensationInfoCompensationRange() { + var o = new api.GoogleCloudTalentV4CompensationInfoCompensationRange(); + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange < 3) { + o.maxCompensation = buildMoney(); + o.minCompensation = buildMoney(); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfoCompensationRange( + api.GoogleCloudTalentV4CompensationInfoCompensationRange o) { + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange < 3) { + checkMoney(o.maxCompensation); + checkMoney(o.minCompensation); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange--; +} + +buildUnnamed1227() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1226(core.List<core.String> o) { +checkUnnamed1227(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1227() { - var o = new core.Map<core.String, api.CustomField>(); - o["x"] = buildCustomField(); - o["y"] = buildCustomField(); - return o; -} - -checkUnnamed1227(core.Map<core.String, api.CustomField> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomField(o["x"]); - checkCustomField(o["y"]); -} - -core.int buildCounterJob = 0; -buildJob() { - var o = new api.Job(); - buildCounterJob++; - if (buildCounterJob < 3) { - o.applicationEmailList = buildUnnamed1218(); - o.applicationInstruction = "foo"; - o.applicationUrls = buildUnnamed1219(); - o.benefits = buildUnnamed1220(); - o.companyDisplayName = "foo"; - o.companyName = "foo"; - o.companyTitle = "foo"; - o.compensationInfo = buildCompensationInfo(); - o.createTime = "foo"; - o.customAttributes = buildUnnamed1221(); - o.department = "foo"; - o.description = "foo"; - o.distributorCompanyId = "foo"; - o.educationLevels = buildUnnamed1222(); - o.employmentTypes = buildUnnamed1223(); - o.endDate = buildDate(); - o.expireTime = "foo"; - o.expiryDate = buildDate(); - o.extendedCompensationInfo = buildExtendedCompensationInfo(); - o.filterableCustomFields = buildUnnamed1224(); - o.incentives = "foo"; - o.jobLocations = buildUnnamed1225(); - o.jobTitle = "foo"; - o.languageCode = "foo"; - o.level = "foo"; - o.locations = buildUnnamed1226(); - o.name = "foo"; - o.promotionValue = 42; - o.publishDate = buildDate(); - o.qualifications = "foo"; - o.referenceUrl = "foo"; - o.region = "foo"; - o.requisitionId = "foo"; - o.responsibilities = "foo"; - o.startDate = buildDate(); - o.unindexedCustomFields = buildUnnamed1227(); - o.updateTime = "foo"; - o.visibility = "foo"; - } - buildCounterJob--; - return o; -} - -checkJob(api.Job o) { - buildCounterJob++; - if (buildCounterJob < 3) { - checkUnnamed1218(o.applicationEmailList); - unittest.expect(o.applicationInstruction, unittest.equals('foo')); - checkUnnamed1219(o.applicationUrls); - checkUnnamed1220(o.benefits); - unittest.expect(o.companyDisplayName, unittest.equals('foo')); - unittest.expect(o.companyName, unittest.equals('foo')); - unittest.expect(o.companyTitle, unittest.equals('foo')); - checkCompensationInfo(o.compensationInfo); - unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed1221(o.customAttributes); - unittest.expect(o.department, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.distributorCompanyId, unittest.equals('foo')); - checkUnnamed1222(o.educationLevels); - checkUnnamed1223(o.employmentTypes); - checkDate(o.endDate); - unittest.expect(o.expireTime, unittest.equals('foo')); - checkDate(o.expiryDate); - checkExtendedCompensationInfo(o.extendedCompensationInfo); - checkUnnamed1224(o.filterableCustomFields); - unittest.expect(o.incentives, unittest.equals('foo')); - checkUnnamed1225(o.jobLocations); - unittest.expect(o.jobTitle, unittest.equals('foo')); - unittest.expect(o.languageCode, unittest.equals('foo')); - unittest.expect(o.level, unittest.equals('foo')); - checkUnnamed1226(o.locations); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.promotionValue, unittest.equals(42)); - checkDate(o.publishDate); - unittest.expect(o.qualifications, unittest.equals('foo')); - unittest.expect(o.referenceUrl, unittest.equals('foo')); - unittest.expect(o.region, unittest.equals('foo')); - unittest.expect(o.requisitionId, unittest.equals('foo')); - unittest.expect(o.responsibilities, unittest.equals('foo')); - checkDate(o.startDate); - checkUnnamed1227(o.unindexedCustomFields); - unittest.expect(o.updateTime, unittest.equals('foo')); - unittest.expect(o.visibility, unittest.equals('foo')); - } - buildCounterJob--; -} - buildUnnamed1228() { var o = new core.List<core.String>(); o.add("foo"); @@ -1410,6 +1270,32 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterGoogleCloudTalentV4CustomAttribute = 0; +buildGoogleCloudTalentV4CustomAttribute() { + var o = new api.GoogleCloudTalentV4CustomAttribute(); + buildCounterGoogleCloudTalentV4CustomAttribute++; + if (buildCounterGoogleCloudTalentV4CustomAttribute < 3) { + o.filterable = true; + o.keywordSearchable = true; + o.longValues = buildUnnamed1227(); + o.stringValues = buildUnnamed1228(); + } + buildCounterGoogleCloudTalentV4CustomAttribute--; + return o; +} + +checkGoogleCloudTalentV4CustomAttribute( + api.GoogleCloudTalentV4CustomAttribute o) { + buildCounterGoogleCloudTalentV4CustomAttribute++; + if (buildCounterGoogleCloudTalentV4CustomAttribute < 3) { + unittest.expect(o.filterable, unittest.isTrue); + unittest.expect(o.keywordSearchable, unittest.isTrue); + checkUnnamed1227(o.longValues); + checkUnnamed1228(o.stringValues); + } + buildCounterGoogleCloudTalentV4CustomAttribute--; +} + buildUnnamed1229() { var o = new core.List<core.String>(); o.add("foo"); @@ -1424,31 +1310,32 @@ } buildUnnamed1230() { + var o = new core.Map<core.String, api.GoogleCloudTalentV4CustomAttribute>(); + o["x"] = buildGoogleCloudTalentV4CustomAttribute(); + o["y"] = buildGoogleCloudTalentV4CustomAttribute(); + return o; +} + +checkUnnamed1230( + core.Map<core.String, api.GoogleCloudTalentV4CustomAttribute> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4CustomAttribute(o["x"]); + checkGoogleCloudTalentV4CustomAttribute(o["y"]); +} + +buildUnnamed1231() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1230(core.List<core.String> o) { +checkUnnamed1231(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1231() { - var o = new core.Map<core.String, api.CustomFieldFilter>(); - o["x"] = buildCustomFieldFilter(); - o["y"] = buildCustomFieldFilter(); - return o; -} - -checkUnnamed1231(core.Map<core.String, api.CustomFieldFilter> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomFieldFilter(o["x"]); - checkCustomFieldFilter(o["y"]); -} - buildUnnamed1232() { var o = new core.List<core.String>(); o.add("foo"); @@ -1475,14 +1362,716 @@ unittest.expect(o[1], unittest.equals('foo')); } +core.int buildCounterGoogleCloudTalentV4Job = 0; +buildGoogleCloudTalentV4Job() { + var o = new api.GoogleCloudTalentV4Job(); + buildCounterGoogleCloudTalentV4Job++; + if (buildCounterGoogleCloudTalentV4Job < 3) { + o.addresses = buildUnnamed1229(); + o.applicationInfo = buildGoogleCloudTalentV4JobApplicationInfo(); + o.company = "foo"; + o.companyDisplayName = "foo"; + o.compensationInfo = buildGoogleCloudTalentV4CompensationInfo(); + o.customAttributes = buildUnnamed1230(); + o.degreeTypes = buildUnnamed1231(); + o.department = "foo"; + o.derivedInfo = buildGoogleCloudTalentV4JobDerivedInfo(); + o.description = "foo"; + o.employmentTypes = buildUnnamed1232(); + o.incentives = "foo"; + o.jobBenefits = buildUnnamed1233(); + o.jobEndTime = "foo"; + o.jobLevel = "foo"; + o.jobStartTime = "foo"; + o.languageCode = "foo"; + o.name = "foo"; + o.postingCreateTime = "foo"; + o.postingExpireTime = "foo"; + o.postingPublishTime = "foo"; + o.postingRegion = "foo"; + o.postingUpdateTime = "foo"; + o.processingOptions = buildGoogleCloudTalentV4JobProcessingOptions(); + o.promotionValue = 42; + o.qualifications = "foo"; + o.requisitionId = "foo"; + o.responsibilities = "foo"; + o.title = "foo"; + o.visibility = "foo"; + } + buildCounterGoogleCloudTalentV4Job--; + return o; +} + +checkGoogleCloudTalentV4Job(api.GoogleCloudTalentV4Job o) { + buildCounterGoogleCloudTalentV4Job++; + if (buildCounterGoogleCloudTalentV4Job < 3) { + checkUnnamed1229(o.addresses); + checkGoogleCloudTalentV4JobApplicationInfo(o.applicationInfo); + unittest.expect(o.company, unittest.equals('foo')); + unittest.expect(o.companyDisplayName, unittest.equals('foo')); + checkGoogleCloudTalentV4CompensationInfo(o.compensationInfo); + checkUnnamed1230(o.customAttributes); + checkUnnamed1231(o.degreeTypes); + unittest.expect(o.department, unittest.equals('foo')); + checkGoogleCloudTalentV4JobDerivedInfo(o.derivedInfo); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed1232(o.employmentTypes); + unittest.expect(o.incentives, unittest.equals('foo')); + checkUnnamed1233(o.jobBenefits); + unittest.expect(o.jobEndTime, unittest.equals('foo')); + unittest.expect(o.jobLevel, unittest.equals('foo')); + unittest.expect(o.jobStartTime, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.postingCreateTime, unittest.equals('foo')); + unittest.expect(o.postingExpireTime, unittest.equals('foo')); + unittest.expect(o.postingPublishTime, unittest.equals('foo')); + unittest.expect(o.postingRegion, unittest.equals('foo')); + unittest.expect(o.postingUpdateTime, unittest.equals('foo')); + checkGoogleCloudTalentV4JobProcessingOptions(o.processingOptions); + unittest.expect(o.promotionValue, unittest.equals(42)); + unittest.expect(o.qualifications, unittest.equals('foo')); + unittest.expect(o.requisitionId, unittest.equals('foo')); + unittest.expect(o.responsibilities, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.visibility, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4Job--; +} + buildUnnamed1234() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1234(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1235(core.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 buildCounterGoogleCloudTalentV4JobApplicationInfo = 0; +buildGoogleCloudTalentV4JobApplicationInfo() { + var o = new api.GoogleCloudTalentV4JobApplicationInfo(); + buildCounterGoogleCloudTalentV4JobApplicationInfo++; + if (buildCounterGoogleCloudTalentV4JobApplicationInfo < 3) { + o.emails = buildUnnamed1234(); + o.instruction = "foo"; + o.uris = buildUnnamed1235(); + } + buildCounterGoogleCloudTalentV4JobApplicationInfo--; + return o; +} + +checkGoogleCloudTalentV4JobApplicationInfo( + api.GoogleCloudTalentV4JobApplicationInfo o) { + buildCounterGoogleCloudTalentV4JobApplicationInfo++; + if (buildCounterGoogleCloudTalentV4JobApplicationInfo < 3) { + checkUnnamed1234(o.emails); + unittest.expect(o.instruction, unittest.equals('foo')); + checkUnnamed1235(o.uris); + } + buildCounterGoogleCloudTalentV4JobApplicationInfo--; +} + +buildUnnamed1236() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1237() { + var o = new core.List<api.GoogleCloudTalentV4Location>(); + o.add(buildGoogleCloudTalentV4Location()); + o.add(buildGoogleCloudTalentV4Location()); + return o; +} + +checkUnnamed1237(core.List<api.GoogleCloudTalentV4Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4Location(o[0]); + checkGoogleCloudTalentV4Location(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4JobDerivedInfo = 0; +buildGoogleCloudTalentV4JobDerivedInfo() { + var o = new api.GoogleCloudTalentV4JobDerivedInfo(); + buildCounterGoogleCloudTalentV4JobDerivedInfo++; + if (buildCounterGoogleCloudTalentV4JobDerivedInfo < 3) { + o.jobCategories = buildUnnamed1236(); + o.locations = buildUnnamed1237(); + } + buildCounterGoogleCloudTalentV4JobDerivedInfo--; + return o; +} + +checkGoogleCloudTalentV4JobDerivedInfo( + api.GoogleCloudTalentV4JobDerivedInfo o) { + buildCounterGoogleCloudTalentV4JobDerivedInfo++; + if (buildCounterGoogleCloudTalentV4JobDerivedInfo < 3) { + checkUnnamed1236(o.jobCategories); + checkUnnamed1237(o.locations); + } + buildCounterGoogleCloudTalentV4JobDerivedInfo--; +} + +core.int buildCounterGoogleCloudTalentV4JobProcessingOptions = 0; +buildGoogleCloudTalentV4JobProcessingOptions() { + var o = new api.GoogleCloudTalentV4JobProcessingOptions(); + buildCounterGoogleCloudTalentV4JobProcessingOptions++; + if (buildCounterGoogleCloudTalentV4JobProcessingOptions < 3) { + o.disableStreetAddressResolution = true; + o.htmlSanitization = "foo"; + } + buildCounterGoogleCloudTalentV4JobProcessingOptions--; + return o; +} + +checkGoogleCloudTalentV4JobProcessingOptions( + api.GoogleCloudTalentV4JobProcessingOptions o) { + buildCounterGoogleCloudTalentV4JobProcessingOptions++; + if (buildCounterGoogleCloudTalentV4JobProcessingOptions < 3) { + unittest.expect(o.disableStreetAddressResolution, unittest.isTrue); + unittest.expect(o.htmlSanitization, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4JobProcessingOptions--; +} + +core.int buildCounterGoogleCloudTalentV4JobResult = 0; +buildGoogleCloudTalentV4JobResult() { + var o = new api.GoogleCloudTalentV4JobResult(); + buildCounterGoogleCloudTalentV4JobResult++; + if (buildCounterGoogleCloudTalentV4JobResult < 3) { + o.job = buildGoogleCloudTalentV4Job(); + o.status = buildStatus(); + } + buildCounterGoogleCloudTalentV4JobResult--; + return o; +} + +checkGoogleCloudTalentV4JobResult(api.GoogleCloudTalentV4JobResult o) { + buildCounterGoogleCloudTalentV4JobResult++; + if (buildCounterGoogleCloudTalentV4JobResult < 3) { + checkGoogleCloudTalentV4Job(o.job); + checkStatus(o.status); + } + buildCounterGoogleCloudTalentV4JobResult--; +} + +core.int buildCounterGoogleCloudTalentV4Location = 0; +buildGoogleCloudTalentV4Location() { + var o = new api.GoogleCloudTalentV4Location(); + buildCounterGoogleCloudTalentV4Location++; + if (buildCounterGoogleCloudTalentV4Location < 3) { + o.latLng = buildLatLng(); + o.locationType = "foo"; + o.postalAddress = buildPostalAddress(); + o.radiusMiles = 42.0; + } + buildCounterGoogleCloudTalentV4Location--; + return o; +} + +checkGoogleCloudTalentV4Location(api.GoogleCloudTalentV4Location o) { + buildCounterGoogleCloudTalentV4Location++; + if (buildCounterGoogleCloudTalentV4Location < 3) { + checkLatLng(o.latLng); + unittest.expect(o.locationType, unittest.equals('foo')); + checkPostalAddress(o.postalAddress); + unittest.expect(o.radiusMiles, unittest.equals(42.0)); + } + buildCounterGoogleCloudTalentV4Location--; +} + +buildUnnamed1238() { + var o = new core.List<api.CompensationHistogramRequest>(); + o.add(buildCompensationHistogramRequest()); + o.add(buildCompensationHistogramRequest()); + return o; +} + +checkUnnamed1238(core.List<api.CompensationHistogramRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCompensationHistogramRequest(o[0]); + checkCompensationHistogramRequest(o[1]); +} + +buildUnnamed1239() { + var o = new core.List<api.CustomAttributeHistogramRequest>(); + o.add(buildCustomAttributeHistogramRequest()); + o.add(buildCustomAttributeHistogramRequest()); + return o; +} + +checkUnnamed1239(core.List<api.CustomAttributeHistogramRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomAttributeHistogramRequest(o[0]); + checkCustomAttributeHistogramRequest(o[1]); +} + +buildUnnamed1240() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1240(core.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 buildCounterHistogramFacets = 0; +buildHistogramFacets() { + var o = new api.HistogramFacets(); + buildCounterHistogramFacets++; + if (buildCounterHistogramFacets < 3) { + o.compensationHistogramFacets = buildUnnamed1238(); + o.customAttributeHistogramFacets = buildUnnamed1239(); + o.simpleHistogramFacets = buildUnnamed1240(); + } + buildCounterHistogramFacets--; + return o; +} + +checkHistogramFacets(api.HistogramFacets o) { + buildCounterHistogramFacets++; + if (buildCounterHistogramFacets < 3) { + checkUnnamed1238(o.compensationHistogramFacets); + checkUnnamed1239(o.customAttributeHistogramFacets); + checkUnnamed1240(o.simpleHistogramFacets); + } + buildCounterHistogramFacets--; +} + +buildUnnamed1241() { + var o = new core.Map<core.String, core.int>(); + o["x"] = 42; + o["y"] = 42; + return o; +} + +checkUnnamed1241(core.Map<core.String, core.int> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o["x"], unittest.equals(42)); + unittest.expect(o["y"], unittest.equals(42)); +} + +core.int buildCounterHistogramResult = 0; +buildHistogramResult() { + var o = new api.HistogramResult(); + buildCounterHistogramResult++; + if (buildCounterHistogramResult < 3) { + o.searchType = "foo"; + o.values = buildUnnamed1241(); + } + buildCounterHistogramResult--; + return o; +} + +checkHistogramResult(api.HistogramResult o) { + buildCounterHistogramResult++; + if (buildCounterHistogramResult < 3) { + unittest.expect(o.searchType, unittest.equals('foo')); + checkUnnamed1241(o.values); + } + buildCounterHistogramResult--; +} + +buildUnnamed1242() { + var o = new core.List<api.CompensationHistogramResult>(); + o.add(buildCompensationHistogramResult()); + o.add(buildCompensationHistogramResult()); + return o; +} + +checkUnnamed1242(core.List<api.CompensationHistogramResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCompensationHistogramResult(o[0]); + checkCompensationHistogramResult(o[1]); +} + +buildUnnamed1243() { + var o = new core.List<api.CustomAttributeHistogramResult>(); + o.add(buildCustomAttributeHistogramResult()); + o.add(buildCustomAttributeHistogramResult()); + return o; +} + +checkUnnamed1243(core.List<api.CustomAttributeHistogramResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomAttributeHistogramResult(o[0]); + checkCustomAttributeHistogramResult(o[1]); +} + +buildUnnamed1244() { + var o = new core.List<api.HistogramResult>(); + o.add(buildHistogramResult()); + o.add(buildHistogramResult()); + return o; +} + +checkUnnamed1244(core.List<api.HistogramResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkHistogramResult(o[0]); + checkHistogramResult(o[1]); +} + +core.int buildCounterHistogramResults = 0; +buildHistogramResults() { + var o = new api.HistogramResults(); + buildCounterHistogramResults++; + if (buildCounterHistogramResults < 3) { + o.compensationHistogramResults = buildUnnamed1242(); + o.customAttributeHistogramResults = buildUnnamed1243(); + o.simpleHistogramResults = buildUnnamed1244(); + } + buildCounterHistogramResults--; + return o; +} + +checkHistogramResults(api.HistogramResults o) { + buildCounterHistogramResults++; + if (buildCounterHistogramResults < 3) { + checkUnnamed1242(o.compensationHistogramResults); + checkUnnamed1243(o.customAttributeHistogramResults); + checkUnnamed1244(o.simpleHistogramResults); + } + buildCounterHistogramResults--; +} + +buildUnnamed1245() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1246() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1246(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1247() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1247(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1248() { + var o = new core.Map<core.String, api.CustomAttribute>(); + o["x"] = buildCustomAttribute(); + o["y"] = buildCustomAttribute(); + return o; +} + +checkUnnamed1248(core.Map<core.String, api.CustomAttribute> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomAttribute(o["x"]); + checkCustomAttribute(o["y"]); +} + +buildUnnamed1249() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1250() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1250(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1251() { + var o = new core.Map<core.String, api.CustomField>(); + o["x"] = buildCustomField(); + o["y"] = buildCustomField(); + return o; +} + +checkUnnamed1251(core.Map<core.String, api.CustomField> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomField(o["x"]); + checkCustomField(o["y"]); +} + +buildUnnamed1252() { + var o = new core.List<api.JobLocation>(); + o.add(buildJobLocation()); + o.add(buildJobLocation()); + return o; +} + +checkUnnamed1252(core.List<api.JobLocation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkJobLocation(o[0]); + checkJobLocation(o[1]); +} + +buildUnnamed1253() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1253(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1254() { + var o = new core.Map<core.String, api.CustomField>(); + o["x"] = buildCustomField(); + o["y"] = buildCustomField(); + return o; +} + +checkUnnamed1254(core.Map<core.String, api.CustomField> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomField(o["x"]); + checkCustomField(o["y"]); +} + +core.int buildCounterJob = 0; +buildJob() { + var o = new api.Job(); + buildCounterJob++; + if (buildCounterJob < 3) { + o.applicationEmailList = buildUnnamed1245(); + o.applicationInstruction = "foo"; + o.applicationUrls = buildUnnamed1246(); + o.benefits = buildUnnamed1247(); + o.companyDisplayName = "foo"; + o.companyName = "foo"; + o.companyTitle = "foo"; + o.compensationInfo = buildCompensationInfo(); + o.createTime = "foo"; + o.customAttributes = buildUnnamed1248(); + o.department = "foo"; + o.description = "foo"; + o.distributorCompanyId = "foo"; + o.educationLevels = buildUnnamed1249(); + o.employmentTypes = buildUnnamed1250(); + o.endDate = buildDate(); + o.expireTime = "foo"; + o.expiryDate = buildDate(); + o.extendedCompensationInfo = buildExtendedCompensationInfo(); + o.filterableCustomFields = buildUnnamed1251(); + o.incentives = "foo"; + o.jobLocations = buildUnnamed1252(); + o.jobTitle = "foo"; + o.languageCode = "foo"; + o.level = "foo"; + o.locations = buildUnnamed1253(); + o.name = "foo"; + o.promotionValue = 42; + o.publishDate = buildDate(); + o.qualifications = "foo"; + o.referenceUrl = "foo"; + o.region = "foo"; + o.requisitionId = "foo"; + o.responsibilities = "foo"; + o.startDate = buildDate(); + o.unindexedCustomFields = buildUnnamed1254(); + o.updateTime = "foo"; + o.visibility = "foo"; + } + buildCounterJob--; + return o; +} + +checkJob(api.Job o) { + buildCounterJob++; + if (buildCounterJob < 3) { + checkUnnamed1245(o.applicationEmailList); + unittest.expect(o.applicationInstruction, unittest.equals('foo')); + checkUnnamed1246(o.applicationUrls); + checkUnnamed1247(o.benefits); + unittest.expect(o.companyDisplayName, unittest.equals('foo')); + unittest.expect(o.companyName, unittest.equals('foo')); + unittest.expect(o.companyTitle, unittest.equals('foo')); + checkCompensationInfo(o.compensationInfo); + unittest.expect(o.createTime, unittest.equals('foo')); + checkUnnamed1248(o.customAttributes); + unittest.expect(o.department, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.distributorCompanyId, unittest.equals('foo')); + checkUnnamed1249(o.educationLevels); + checkUnnamed1250(o.employmentTypes); + checkDate(o.endDate); + unittest.expect(o.expireTime, unittest.equals('foo')); + checkDate(o.expiryDate); + checkExtendedCompensationInfo(o.extendedCompensationInfo); + checkUnnamed1251(o.filterableCustomFields); + unittest.expect(o.incentives, unittest.equals('foo')); + checkUnnamed1252(o.jobLocations); + unittest.expect(o.jobTitle, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.level, unittest.equals('foo')); + checkUnnamed1253(o.locations); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.promotionValue, unittest.equals(42)); + checkDate(o.publishDate); + unittest.expect(o.qualifications, unittest.equals('foo')); + unittest.expect(o.referenceUrl, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.requisitionId, unittest.equals('foo')); + unittest.expect(o.responsibilities, unittest.equals('foo')); + checkDate(o.startDate); + checkUnnamed1254(o.unindexedCustomFields); + unittest.expect(o.updateTime, unittest.equals('foo')); + unittest.expect(o.visibility, unittest.equals('foo')); + } + buildCounterJob--; +} + +buildUnnamed1255() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1255(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1256() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1257() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1257(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1258() { + var o = new core.Map<core.String, api.CustomFieldFilter>(); + o["x"] = buildCustomFieldFilter(); + o["y"] = buildCustomFieldFilter(); + return o; +} + +checkUnnamed1258(core.Map<core.String, api.CustomFieldFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomFieldFilter(o["x"]); + checkCustomFieldFilter(o["y"]); +} + +buildUnnamed1259() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1259(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed1260() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + +buildUnnamed1261() { var o = new core.List<api.LocationFilter>(); o.add(buildLocationFilter()); o.add(buildLocationFilter()); return o; } -checkUnnamed1234(core.List<api.LocationFilter> o) { +checkUnnamed1261(core.List<api.LocationFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationFilter(o[0]); checkLocationFilter(o[1]); @@ -1493,18 +2082,18 @@ var o = new api.JobFilters(); buildCounterJobFilters++; if (buildCounterJobFilters < 3) { - o.categories = buildUnnamed1228(); + o.categories = buildUnnamed1255(); o.commuteFilter = buildCommutePreference(); - o.companyNames = buildUnnamed1229(); - o.companyTitles = buildUnnamed1230(); + o.companyNames = buildUnnamed1256(); + o.companyTitles = buildUnnamed1257(); o.compensationFilter = buildCompensationFilter(); o.customAttributeFilter = "foo"; - o.customFieldFilters = buildUnnamed1231(); + o.customFieldFilters = buildUnnamed1258(); o.disableSpellCheck = true; - o.employmentTypes = buildUnnamed1232(); + o.employmentTypes = buildUnnamed1259(); o.extendedCompensationFilter = buildExtendedCompensationFilter(); - o.languageCodes = buildUnnamed1233(); - o.locationFilters = buildUnnamed1234(); + o.languageCodes = buildUnnamed1260(); + o.locationFilters = buildUnnamed1261(); o.publishDateRange = "foo"; o.query = "foo"; o.tenantJobOnly = true; @@ -1516,18 +2105,18 @@ checkJobFilters(api.JobFilters o) { buildCounterJobFilters++; if (buildCounterJobFilters < 3) { - checkUnnamed1228(o.categories); + checkUnnamed1255(o.categories); checkCommutePreference(o.commuteFilter); - checkUnnamed1229(o.companyNames); - checkUnnamed1230(o.companyTitles); + checkUnnamed1256(o.companyNames); + checkUnnamed1257(o.companyTitles); checkCompensationFilter(o.compensationFilter); unittest.expect(o.customAttributeFilter, unittest.equals('foo')); - checkUnnamed1231(o.customFieldFilters); + checkUnnamed1258(o.customFieldFilters); unittest.expect(o.disableSpellCheck, unittest.isTrue); - checkUnnamed1232(o.employmentTypes); + checkUnnamed1259(o.employmentTypes); checkExtendedCompensationFilter(o.extendedCompensationFilter); - checkUnnamed1233(o.languageCodes); - checkUnnamed1234(o.locationFilters); + checkUnnamed1260(o.languageCodes); + checkUnnamed1261(o.locationFilters); unittest.expect(o.publishDateRange, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.tenantJobOnly, unittest.isTrue); @@ -1581,79 +2170,79 @@ buildCounterJobProcessingOptions--; } -buildUnnamed1235() { +buildUnnamed1262() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1235(core.List<core.String> o) { +checkUnnamed1262(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1236() { +buildUnnamed1263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1236(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')); } -buildUnnamed1237() { +buildUnnamed1264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1237(core.List<core.String> o) { +checkUnnamed1264(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1238() { +buildUnnamed1265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1238(core.List<core.String> o) { +checkUnnamed1265(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1239() { +buildUnnamed1266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1239(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')); } -buildUnnamed1240() { +buildUnnamed1267() { var o = new core.List<api.LocationFilter>(); o.add(buildLocationFilter()); o.add(buildLocationFilter()); return o; } -checkUnnamed1240(core.List<api.LocationFilter> o) { +checkUnnamed1267(core.List<api.LocationFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationFilter(o[0]); checkLocationFilter(o[1]); @@ -1664,16 +2253,16 @@ var o = new api.JobQuery(); buildCounterJobQuery++; if (buildCounterJobQuery < 3) { - o.categories = buildUnnamed1235(); + o.categories = buildUnnamed1262(); o.commuteFilter = buildCommutePreference(); - o.companyDisplayNames = buildUnnamed1236(); - o.companyNames = buildUnnamed1237(); + o.companyDisplayNames = buildUnnamed1263(); + o.companyNames = buildUnnamed1264(); o.compensationFilter = buildCompensationFilter(); o.customAttributeFilter = "foo"; o.disableSpellCheck = true; - o.employmentTypes = buildUnnamed1238(); - o.languageCodes = buildUnnamed1239(); - o.locationFilters = buildUnnamed1240(); + o.employmentTypes = buildUnnamed1265(); + o.languageCodes = buildUnnamed1266(); + o.locationFilters = buildUnnamed1267(); o.publishDateRange = "foo"; o.query = "foo"; } @@ -1684,16 +2273,16 @@ checkJobQuery(api.JobQuery o) { buildCounterJobQuery++; if (buildCounterJobQuery < 3) { - checkUnnamed1235(o.categories); + checkUnnamed1262(o.categories); checkCommutePreference(o.commuteFilter); - checkUnnamed1236(o.companyDisplayNames); - checkUnnamed1237(o.companyNames); + checkUnnamed1263(o.companyDisplayNames); + checkUnnamed1264(o.companyNames); checkCompensationFilter(o.compensationFilter); unittest.expect(o.customAttributeFilter, unittest.equals('foo')); unittest.expect(o.disableSpellCheck, unittest.isTrue); - checkUnnamed1238(o.employmentTypes); - checkUnnamed1239(o.languageCodes); - checkUnnamed1240(o.locationFilters); + checkUnnamed1265(o.employmentTypes); + checkUnnamed1266(o.languageCodes); + checkUnnamed1267(o.locationFilters); unittest.expect(o.publishDateRange, unittest.equals('foo')); unittest.expect(o.query, unittest.equals('foo')); } @@ -1721,14 +2310,14 @@ buildCounterLatLng--; } -buildUnnamed1241() { +buildUnnamed1268() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed1241(core.List<api.Company> o) { +checkUnnamed1268(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -1739,7 +2328,7 @@ var o = new api.ListCompaniesResponse(); buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - o.companies = buildUnnamed1241(); + o.companies = buildUnnamed1268(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; } @@ -1750,21 +2339,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed1241(o.companies); + checkUnnamed1268(o.companies); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCompaniesResponse--; } -buildUnnamed1242() { +buildUnnamed1269() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1242(core.List<api.Job> o) { +checkUnnamed1269(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1775,7 +2364,7 @@ var o = new api.ListCompanyJobsResponse(); buildCounterListCompanyJobsResponse++; if (buildCounterListCompanyJobsResponse < 3) { - o.jobs = buildUnnamed1242(); + o.jobs = buildUnnamed1269(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; o.totalSize = "foo"; @@ -1787,7 +2376,7 @@ checkListCompanyJobsResponse(api.ListCompanyJobsResponse o) { buildCounterListCompanyJobsResponse++; if (buildCounterListCompanyJobsResponse < 3) { - checkUnnamed1242(o.jobs); + checkUnnamed1269(o.jobs); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals('foo')); @@ -1795,14 +2384,14 @@ buildCounterListCompanyJobsResponse--; } -buildUnnamed1243() { +buildUnnamed1270() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed1243(core.List<api.Job> o) { +checkUnnamed1270(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1813,7 +2402,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed1243(); + o.jobs = buildUnnamed1270(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; } @@ -1824,7 +2413,7 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed1243(o.jobs); + checkUnnamed1270(o.jobs); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1885,14 +2474,14 @@ buildCounterMatchingJob--; } -buildUnnamed1244() { +buildUnnamed1271() { var o = new core.Map<core.String, api.NamespacedDebugInput>(); o["x"] = buildNamespacedDebugInput(); o["y"] = buildNamespacedDebugInput(); return o; } -checkUnnamed1244(core.Map<core.String, api.NamespacedDebugInput> o) { +checkUnnamed1271(core.Map<core.String, api.NamespacedDebugInput> o) { unittest.expect(o, unittest.hasLength(2)); checkNamespacedDebugInput(o["x"]); checkNamespacedDebugInput(o["y"]); @@ -1903,7 +2492,7 @@ var o = new api.MendelDebugInput(); buildCounterMendelDebugInput++; if (buildCounterMendelDebugInput < 3) { - o.namespacedDebugInput = buildUnnamed1244(); + o.namespacedDebugInput = buildUnnamed1271(); } buildCounterMendelDebugInput--; return o; @@ -1912,7 +2501,7 @@ checkMendelDebugInput(api.MendelDebugInput o) { buildCounterMendelDebugInput++; if (buildCounterMendelDebugInput < 3) { - checkUnnamed1244(o.namespacedDebugInput); + checkUnnamed1271(o.namespacedDebugInput); } buildCounterMendelDebugInput--; } @@ -1940,144 +2529,144 @@ buildCounterMoney--; } -buildUnnamed1245() { +buildUnnamed1272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1245(core.List<core.String> o) { +checkUnnamed1272(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1246() { +buildUnnamed1273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1246(core.List<core.String> o) { +checkUnnamed1273(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1247() { +buildUnnamed1274() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1247(core.List<core.int> o) { +checkUnnamed1274(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)); } -buildUnnamed1248() { +buildUnnamed1275() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1248(core.List<core.String> o) { +checkUnnamed1275(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1249() { +buildUnnamed1276() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1249(core.List<core.String> o) { +checkUnnamed1276(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1250() { +buildUnnamed1277() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1250(core.List<core.int> o) { +checkUnnamed1277(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)); } -buildUnnamed1251() { +buildUnnamed1278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1251(core.List<core.String> o) { +checkUnnamed1278(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1252() { +buildUnnamed1279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1252(core.List<core.String> o) { +checkUnnamed1279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1253() { +buildUnnamed1280() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1253(core.List<core.int> o) { +checkUnnamed1280(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)); } -buildUnnamed1254() { +buildUnnamed1281() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1254(core.Map<core.String, core.String> o) { +checkUnnamed1281(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')); } -buildUnnamed1255() { +buildUnnamed1282() { var o = new core.Map<core.String, core.bool>(); o["x"] = true; o["y"] = true; return o; } -checkUnnamed1255(core.Map<core.String, core.bool> o) { +checkUnnamed1282(core.Map<core.String, core.bool> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.isTrue); unittest.expect(o["y"], unittest.isTrue); @@ -2088,20 +2677,20 @@ var o = new api.NamespacedDebugInput(); buildCounterNamespacedDebugInput++; if (buildCounterNamespacedDebugInput < 3) { - o.absolutelyForcedExpNames = buildUnnamed1245(); - o.absolutelyForcedExpTags = buildUnnamed1246(); - o.absolutelyForcedExps = buildUnnamed1247(); - o.conditionallyForcedExpNames = buildUnnamed1248(); - o.conditionallyForcedExpTags = buildUnnamed1249(); - o.conditionallyForcedExps = buildUnnamed1250(); + o.absolutelyForcedExpNames = buildUnnamed1272(); + o.absolutelyForcedExpTags = buildUnnamed1273(); + o.absolutelyForcedExps = buildUnnamed1274(); + o.conditionallyForcedExpNames = buildUnnamed1275(); + o.conditionallyForcedExpTags = buildUnnamed1276(); + o.conditionallyForcedExps = buildUnnamed1277(); o.disableAutomaticEnrollmentSelection = true; - o.disableExpNames = buildUnnamed1251(); - o.disableExpTags = buildUnnamed1252(); - o.disableExps = buildUnnamed1253(); + o.disableExpNames = buildUnnamed1278(); + o.disableExpTags = buildUnnamed1279(); + o.disableExps = buildUnnamed1280(); o.disableManualEnrollmentSelection = true; o.disableOrganicSelection = true; - o.forcedFlags = buildUnnamed1254(); - o.forcedRollouts = buildUnnamed1255(); + o.forcedFlags = buildUnnamed1281(); + o.forcedRollouts = buildUnnamed1282(); } buildCounterNamespacedDebugInput--; return o; @@ -2110,32 +2699,32 @@ checkNamespacedDebugInput(api.NamespacedDebugInput o) { buildCounterNamespacedDebugInput++; if (buildCounterNamespacedDebugInput < 3) { - checkUnnamed1245(o.absolutelyForcedExpNames); - checkUnnamed1246(o.absolutelyForcedExpTags); - checkUnnamed1247(o.absolutelyForcedExps); - checkUnnamed1248(o.conditionallyForcedExpNames); - checkUnnamed1249(o.conditionallyForcedExpTags); - checkUnnamed1250(o.conditionallyForcedExps); + checkUnnamed1272(o.absolutelyForcedExpNames); + checkUnnamed1273(o.absolutelyForcedExpTags); + checkUnnamed1274(o.absolutelyForcedExps); + checkUnnamed1275(o.conditionallyForcedExpNames); + checkUnnamed1276(o.conditionallyForcedExpTags); + checkUnnamed1277(o.conditionallyForcedExps); unittest.expect(o.disableAutomaticEnrollmentSelection, unittest.isTrue); - checkUnnamed1251(o.disableExpNames); - checkUnnamed1252(o.disableExpTags); - checkUnnamed1253(o.disableExps); + checkUnnamed1278(o.disableExpNames); + checkUnnamed1279(o.disableExpTags); + checkUnnamed1280(o.disableExps); unittest.expect(o.disableManualEnrollmentSelection, unittest.isTrue); unittest.expect(o.disableOrganicSelection, unittest.isTrue); - checkUnnamed1254(o.forcedFlags); - checkUnnamed1255(o.forcedRollouts); + checkUnnamed1281(o.forcedFlags); + checkUnnamed1282(o.forcedRollouts); } buildCounterNamespacedDebugInput--; } -buildUnnamed1256() { +buildUnnamed1283() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed1256(core.List<core.double> o) { +checkUnnamed1283(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)); @@ -2146,7 +2735,7 @@ var o = new api.NumericBucketingOption(); buildCounterNumericBucketingOption++; if (buildCounterNumericBucketingOption < 3) { - o.bucketBounds = buildUnnamed1256(); + o.bucketBounds = buildUnnamed1283(); o.requiresMinMax = true; } buildCounterNumericBucketingOption--; @@ -2156,20 +2745,20 @@ checkNumericBucketingOption(api.NumericBucketingOption o) { buildCounterNumericBucketingOption++; if (buildCounterNumericBucketingOption < 3) { - checkUnnamed1256(o.bucketBounds); + checkUnnamed1283(o.bucketBounds); unittest.expect(o.requiresMinMax, unittest.isTrue); } buildCounterNumericBucketingOption--; } -buildUnnamed1257() { +buildUnnamed1284() { var o = new core.List<api.BucketizedCount>(); o.add(buildBucketizedCount()); o.add(buildBucketizedCount()); return o; } -checkUnnamed1257(core.List<api.BucketizedCount> o) { +checkUnnamed1284(core.List<api.BucketizedCount> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketizedCount(o[0]); checkBucketizedCount(o[1]); @@ -2180,7 +2769,7 @@ var o = new api.NumericBucketingResult(); buildCounterNumericBucketingResult++; if (buildCounterNumericBucketingResult < 3) { - o.counts = buildUnnamed1257(); + o.counts = buildUnnamed1284(); o.maxValue = 42.0; o.minValue = 42.0; } @@ -2191,34 +2780,34 @@ checkNumericBucketingResult(api.NumericBucketingResult o) { buildCounterNumericBucketingResult++; if (buildCounterNumericBucketingResult < 3) { - checkUnnamed1257(o.counts); + checkUnnamed1284(o.counts); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); } buildCounterNumericBucketingResult--; } -buildUnnamed1258() { +buildUnnamed1285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1258(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')); } -buildUnnamed1259() { +buildUnnamed1286() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1259(core.List<core.String> o) { +checkUnnamed1286(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2229,13 +2818,13 @@ var o = new api.PostalAddress(); buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - o.addressLines = buildUnnamed1258(); + o.addressLines = buildUnnamed1285(); o.administrativeArea = "foo"; o.languageCode = "foo"; o.locality = "foo"; o.organization = "foo"; o.postalCode = "foo"; - o.recipients = buildUnnamed1259(); + o.recipients = buildUnnamed1286(); o.regionCode = "foo"; o.revision = 42; o.sortingCode = "foo"; @@ -2248,13 +2837,13 @@ checkPostalAddress(api.PostalAddress o) { buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - checkUnnamed1258(o.addressLines); + checkUnnamed1285(o.addressLines); unittest.expect(o.administrativeArea, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.organization, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); - checkUnnamed1259(o.recipients); + checkUnnamed1286(o.recipients); unittest.expect(o.regionCode, unittest.equals('foo')); unittest.expect(o.revision, unittest.equals(42)); unittest.expect(o.sortingCode, unittest.equals('foo')); @@ -2288,14 +2877,14 @@ buildCounterRequestMetadata--; } -buildUnnamed1260() { +buildUnnamed1287() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed1260(core.List<core.int> o) { +checkUnnamed1287(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)); @@ -2306,7 +2895,7 @@ var o = new api.ResponseMetadata(); buildCounterResponseMetadata++; if (buildCounterResponseMetadata < 3) { - o.experimentIdList = buildUnnamed1260(); + o.experimentIdList = buildUnnamed1287(); o.mode = "foo"; o.requestId = "foo"; } @@ -2317,7 +2906,7 @@ checkResponseMetadata(api.ResponseMetadata o) { buildCounterResponseMetadata++; if (buildCounterResponseMetadata < 3) { - checkUnnamed1260(o.experimentIdList); + checkUnnamed1287(o.experimentIdList); unittest.expect(o.mode, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); } @@ -2369,27 +2958,27 @@ buildCounterSearchJobsRequest--; } -buildUnnamed1261() { +buildUnnamed1288() { var o = new core.List<api.JobLocation>(); o.add(buildJobLocation()); o.add(buildJobLocation()); return o; } -checkUnnamed1261(core.List<api.JobLocation> o) { +checkUnnamed1288(core.List<api.JobLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkJobLocation(o[0]); checkJobLocation(o[1]); } -buildUnnamed1262() { +buildUnnamed1289() { var o = new core.List<api.MatchingJob>(); o.add(buildMatchingJob()); o.add(buildMatchingJob()); return o; } -checkUnnamed1262(core.List<api.MatchingJob> o) { +checkUnnamed1289(core.List<api.MatchingJob> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchingJob(o[0]); checkMatchingJob(o[1]); @@ -2401,11 +2990,11 @@ buildCounterSearchJobsResponse++; if (buildCounterSearchJobsResponse < 3) { o.appliedCommuteFilter = buildCommutePreference(); - o.appliedJobLocationFilters = buildUnnamed1261(); + o.appliedJobLocationFilters = buildUnnamed1288(); o.estimatedTotalSize = "foo"; o.histogramResults = buildHistogramResults(); o.jobView = "foo"; - o.matchingJobs = buildUnnamed1262(); + o.matchingJobs = buildUnnamed1289(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; o.numJobsFromBroadenedQuery = 42; @@ -2420,11 +3009,11 @@ buildCounterSearchJobsResponse++; if (buildCounterSearchJobsResponse < 3) { checkCommutePreference(o.appliedCommuteFilter); - checkUnnamed1261(o.appliedJobLocationFilters); + checkUnnamed1288(o.appliedJobLocationFilters); unittest.expect(o.estimatedTotalSize, unittest.equals('foo')); checkHistogramResults(o.histogramResults); unittest.expect(o.jobView, unittest.equals('foo')); - checkUnnamed1262(o.matchingJobs); + checkUnnamed1289(o.matchingJobs); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.numJobsFromBroadenedQuery, unittest.equals(42)); @@ -2455,14 +3044,79 @@ buildCounterSpellingCorrection--; } -buildUnnamed1263() { +buildUnnamed1290() { + 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; +} + +checkUnnamed1290(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')); +} + +buildUnnamed1291() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed1290()); + o.add(buildUnnamed1290()); + return o; +} + +checkUnnamed1291(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed1290(o[0]); + checkUnnamed1290(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed1291(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed1291(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +buildUnnamed1292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1263(core.List<core.String> o) { +checkUnnamed1292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2473,7 +3127,7 @@ var o = new api.StringValues(); buildCounterStringValues++; if (buildCounterStringValues < 3) { - o.values = buildUnnamed1263(); + o.values = buildUnnamed1292(); } buildCounterStringValues--; return o; @@ -2482,7 +3136,7 @@ checkStringValues(api.StringValues o) { buildCounterStringValues++; if (buildCounterStringValues < 3) { - checkUnnamed1263(o.values); + checkUnnamed1292(o.values); } buildCounterStringValues--; } @@ -2779,6 +3433,130 @@ }); }); + unittest.group("obj-schema-GoogleCloudTalentV4BatchCreateJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchCreateJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchCreateJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchCreateJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchDeleteJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchDeleteJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchDeleteJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchDeleteJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchOperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchOperationMetadata(); + var od = new api.GoogleCloudTalentV4BatchOperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchUpdateJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchUpdateJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchUpdateJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchUpdateJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4CompensationInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfo(); + var od = new api.GoogleCloudTalentV4CompensationInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4CompensationInfo(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudTalentV4CompensationInfoCompensationEntry", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfoCompensationEntry(); + var od = + new api.GoogleCloudTalentV4CompensationInfoCompensationEntry.fromJson( + o.toJson()); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudTalentV4CompensationInfoCompensationRange", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + var od = + new api.GoogleCloudTalentV4CompensationInfoCompensationRange.fromJson( + o.toJson()); + checkGoogleCloudTalentV4CompensationInfoCompensationRange(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4CustomAttribute", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CustomAttribute(); + var od = new api.GoogleCloudTalentV4CustomAttribute.fromJson(o.toJson()); + checkGoogleCloudTalentV4CustomAttribute(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4Job", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4Job(); + var od = new api.GoogleCloudTalentV4Job.fromJson(o.toJson()); + checkGoogleCloudTalentV4Job(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobApplicationInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobApplicationInfo(); + var od = + new api.GoogleCloudTalentV4JobApplicationInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobApplicationInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobDerivedInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobDerivedInfo(); + var od = new api.GoogleCloudTalentV4JobDerivedInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobDerivedInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobProcessingOptions", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobProcessingOptions(); + var od = + new api.GoogleCloudTalentV4JobProcessingOptions.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobProcessingOptions(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobResult", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobResult(); + var od = new api.GoogleCloudTalentV4JobResult.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobResult(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4Location", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4Location(); + var od = new api.GoogleCloudTalentV4Location.fromJson(o.toJson()); + checkGoogleCloudTalentV4Location(od); + }); + }); + unittest.group("obj-schema-HistogramFacets", () { unittest.test("to-json--from-json", () { var o = buildHistogramFacets(); @@ -2979,6 +3757,14 @@ }); }); + 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("obj-schema-StringValues", () { unittest.test("to-json--from-json", () { var o = buildStringValues(); @@ -3154,8 +3940,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CompaniesResourceApi res = new api.JobsApi(mock).companies; - var arg_mustHaveOpenJobs = true; var arg_pageToken = "foo"; + var arg_mustHaveOpenJobs = true; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3188,10 +3974,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["mustHaveOpenJobs"].first, - unittest.equals("$arg_mustHaveOpenJobs")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["mustHaveOpenJobs"].first, + unittest.equals("$arg_mustHaveOpenJobs")); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3204,8 +3990,8 @@ }), true); res .list( - mustHaveOpenJobs: arg_mustHaveOpenJobs, pageToken: arg_pageToken, + mustHaveOpenJobs: arg_mustHaveOpenJobs, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -3279,11 +4065,11 @@ var mock = new HttpServerMock(); api.CompaniesJobsResourceApi res = new api.JobsApi(mock).companies.jobs; var arg_companyName = "foo"; - var arg_jobRequisitionId = "foo"; - var arg_includeJobsCount = true; - var arg_pageToken = "foo"; var arg_idsOnly = true; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_jobRequisitionId = "foo"; + var arg_includeJobsCount = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3316,16 +4102,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["jobRequisitionId"].first, - unittest.equals(arg_jobRequisitionId)); - unittest.expect(queryMap["includeJobsCount"].first, - unittest.equals("$arg_includeJobsCount")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["idsOnly"].first, unittest.equals("$arg_idsOnly")); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["jobRequisitionId"].first, + unittest.equals(arg_jobRequisitionId)); + unittest.expect(queryMap["includeJobsCount"].first, + unittest.equals("$arg_includeJobsCount")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3336,11 +4122,11 @@ }), true); res .list(arg_companyName, - jobRequisitionId: arg_jobRequisitionId, - includeJobsCount: arg_includeJobsCount, - pageToken: arg_pageToken, idsOnly: arg_idsOnly, pageSize: arg_pageSize, + pageToken: arg_pageToken, + jobRequisitionId: arg_jobRequisitionId, + includeJobsCount: arg_includeJobsCount, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCompanyJobsResponse(response); @@ -3670,8 +4456,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.JobsResourceApi res = new api.JobsApi(mock).jobs; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_idsOnly = true; var arg_$fields = "foo"; @@ -3705,9 +4491,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( @@ -3722,8 +4508,8 @@ }), true); res .list( - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, idsOnly: arg_idsOnly, $fields: arg_$fields) @@ -3899,11 +4685,11 @@ var mock = new HttpServerMock(); api.V2ResourceApi res = new api.JobsApi(mock).v2; var arg_companyName = "foo"; - var arg_scope = "foo"; var arg_pageSize = 42; var arg_query = "foo"; var arg_languageCode = "foo"; var arg_type = "foo"; + var arg_scope = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3937,13 +4723,13 @@ } unittest.expect( queryMap["companyName"].first, unittest.equals(arg_companyName)); - unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3955,11 +4741,11 @@ res .complete( companyName: arg_companyName, - scope: arg_scope, pageSize: arg_pageSize, query: arg_query, languageCode: arg_languageCode, type: arg_type, + scope: arg_scope, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCompleteQueryResponse(response);
diff --git a/generated/googleapis/test/jobs/v3_test.dart b/generated/googleapis/test/jobs/v3_test.dart index 9230385..60aa1b8 100644 --- a/generated/googleapis/test/jobs/v3_test.dart +++ b/generated/googleapis/test/jobs/v3_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3090() { +buildUnnamed3229() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3090(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')); } -buildUnnamed3091() { +buildUnnamed3230() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3091(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')); @@ -81,9 +81,9 @@ var o = new api.ApplicationInfo(); buildCounterApplicationInfo++; if (buildCounterApplicationInfo < 3) { - o.emails = buildUnnamed3090(); + o.emails = buildUnnamed3229(); o.instruction = "foo"; - o.uris = buildUnnamed3091(); + o.uris = buildUnnamed3230(); } buildCounterApplicationInfo--; return o; @@ -92,9 +92,9 @@ checkApplicationInfo(api.ApplicationInfo o) { buildCounterApplicationInfo++; if (buildCounterApplicationInfo < 3) { - checkUnnamed3090(o.emails); + checkUnnamed3229(o.emails); unittest.expect(o.instruction, unittest.equals('foo')); - checkUnnamed3091(o.uris); + checkUnnamed3230(o.uris); } buildCounterApplicationInfo--; } @@ -160,14 +160,14 @@ buildCounterBucketizedCount--; } -buildUnnamed3092() { +buildUnnamed3231() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3092(core.Map<core.String, core.String> o) { +checkUnnamed3231(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')); @@ -180,7 +180,7 @@ if (buildCounterClientEvent < 3) { o.createTime = "foo"; o.eventId = "foo"; - o.extraInfo = buildUnnamed3092(); + o.extraInfo = buildUnnamed3231(); o.jobEvent = buildJobEvent(); o.parentEventId = "foo"; o.requestId = "foo"; @@ -194,7 +194,7 @@ if (buildCounterClientEvent < 3) { unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed3092(o.extraInfo); + checkUnnamed3231(o.extraInfo); checkJobEvent(o.jobEvent); unittest.expect(o.parentEventId, unittest.equals('foo')); unittest.expect(o.requestId, unittest.equals('foo')); @@ -252,14 +252,14 @@ buildCounterCommuteInfo--; } -buildUnnamed3093() { +buildUnnamed3232() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3093(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')); @@ -278,7 +278,7 @@ o.headquartersAddress = "foo"; o.hiringAgency = true; o.imageUri = "foo"; - o.keywordSearchableJobCustomAttributes = buildUnnamed3093(); + o.keywordSearchableJobCustomAttributes = buildUnnamed3232(); o.name = "foo"; o.size = "foo"; o.suspended = true; @@ -299,7 +299,7 @@ unittest.expect(o.headquartersAddress, unittest.equals('foo')); unittest.expect(o.hiringAgency, unittest.isTrue); unittest.expect(o.imageUri, unittest.equals('foo')); - checkUnnamed3093(o.keywordSearchableJobCustomAttributes); + checkUnnamed3232(o.keywordSearchableJobCustomAttributes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.size, unittest.equals('foo')); unittest.expect(o.suspended, unittest.isTrue); @@ -356,14 +356,14 @@ buildCounterCompensationEntry--; } -buildUnnamed3094() { +buildUnnamed3233() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3094(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')); @@ -377,7 +377,7 @@ o.includeJobsWithUnspecifiedCompensationRange = true; o.range = buildCompensationRange(); o.type = "foo"; - o.units = buildUnnamed3094(); + o.units = buildUnnamed3233(); } buildCounterCompensationFilter--; return o; @@ -390,7 +390,7 @@ o.includeJobsWithUnspecifiedCompensationRange, unittest.isTrue); checkCompensationRange(o.range); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed3094(o.units); + checkUnnamed3233(o.units); } buildCounterCompensationFilter--; } @@ -437,14 +437,14 @@ buildCounterCompensationHistogramResult--; } -buildUnnamed3095() { +buildUnnamed3234() { var o = new core.List<api.CompensationEntry>(); o.add(buildCompensationEntry()); o.add(buildCompensationEntry()); return o; } -checkUnnamed3095(core.List<api.CompensationEntry> o) { +checkUnnamed3234(core.List<api.CompensationEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkCompensationEntry(o[0]); checkCompensationEntry(o[1]); @@ -457,7 +457,7 @@ if (buildCounterCompensationInfo < 3) { o.annualizedBaseCompensationRange = buildCompensationRange(); o.annualizedTotalCompensationRange = buildCompensationRange(); - o.entries = buildUnnamed3095(); + o.entries = buildUnnamed3234(); } buildCounterCompensationInfo--; return o; @@ -468,7 +468,7 @@ if (buildCounterCompensationInfo < 3) { checkCompensationRange(o.annualizedBaseCompensationRange); checkCompensationRange(o.annualizedTotalCompensationRange); - checkUnnamed3095(o.entries); + checkUnnamed3234(o.entries); } buildCounterCompensationInfo--; } @@ -494,14 +494,14 @@ buildCounterCompensationRange--; } -buildUnnamed3096() { +buildUnnamed3235() { var o = new core.List<api.CompletionResult>(); o.add(buildCompletionResult()); o.add(buildCompletionResult()); return o; } -checkUnnamed3096(core.List<api.CompletionResult> o) { +checkUnnamed3235(core.List<api.CompletionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkCompletionResult(o[0]); checkCompletionResult(o[1]); @@ -512,7 +512,7 @@ var o = new api.CompleteQueryResponse(); buildCounterCompleteQueryResponse++; if (buildCounterCompleteQueryResponse < 3) { - o.completionResults = buildUnnamed3096(); + o.completionResults = buildUnnamed3235(); o.metadata = buildResponseMetadata(); } buildCounterCompleteQueryResponse--; @@ -522,7 +522,7 @@ checkCompleteQueryResponse(api.CompleteQueryResponse o) { buildCounterCompleteQueryResponse++; if (buildCounterCompleteQueryResponse < 3) { - checkUnnamed3096(o.completionResults); + checkUnnamed3235(o.completionResults); checkResponseMetadata(o.metadata); } buildCounterCompleteQueryResponse--; @@ -608,27 +608,27 @@ buildCounterCreateJobRequest--; } -buildUnnamed3097() { +buildUnnamed3236() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3097(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')); } -buildUnnamed3098() { +buildUnnamed3237() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3098(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')); @@ -640,8 +640,8 @@ buildCounterCustomAttribute++; if (buildCounterCustomAttribute < 3) { o.filterable = true; - o.longValues = buildUnnamed3097(); - o.stringValues = buildUnnamed3098(); + o.longValues = buildUnnamed3236(); + o.stringValues = buildUnnamed3237(); } buildCounterCustomAttribute--; return o; @@ -651,8 +651,8 @@ buildCounterCustomAttribute++; if (buildCounterCustomAttribute < 3) { unittest.expect(o.filterable, unittest.isTrue); - checkUnnamed3097(o.longValues); - checkUnnamed3098(o.stringValues); + checkUnnamed3236(o.longValues); + checkUnnamed3237(o.stringValues); } buildCounterCustomAttribute--; } @@ -680,14 +680,14 @@ buildCounterCustomAttributeHistogramRequest--; } -buildUnnamed3099() { +buildUnnamed3238() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed3099(core.Map<core.String, core.int> o) { +checkUnnamed3238(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -700,7 +700,7 @@ if (buildCounterCustomAttributeHistogramResult < 3) { o.key = "foo"; o.longValueHistogramResult = buildNumericBucketingResult(); - o.stringValueHistogramResult = buildUnnamed3099(); + o.stringValueHistogramResult = buildUnnamed3238(); } buildCounterCustomAttributeHistogramResult--; return o; @@ -711,7 +711,7 @@ if (buildCounterCustomAttributeHistogramResult < 3) { unittest.expect(o.key, unittest.equals('foo')); checkNumericBucketingResult(o.longValueHistogramResult); - checkUnnamed3099(o.stringValueHistogramResult); + checkUnnamed3238(o.stringValueHistogramResult); } buildCounterCustomAttributeHistogramResult--; } @@ -752,40 +752,629 @@ buildCounterEmpty--; } -buildUnnamed3100() { - var o = new core.List<api.CompensationHistogramRequest>(); - o.add(buildCompensationHistogramRequest()); - o.add(buildCompensationHistogramRequest()); +buildUnnamed3239() { + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); return o; } -checkUnnamed3100(core.List<api.CompensationHistogramRequest> o) { +checkUnnamed3239(core.List<api.GoogleCloudTalentV4JobResult> o) { unittest.expect(o, unittest.hasLength(2)); - checkCompensationHistogramRequest(o[0]); - checkCompensationHistogramRequest(o[1]); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); } -buildUnnamed3101() { - var o = new core.List<api.CustomAttributeHistogramRequest>(); - o.add(buildCustomAttributeHistogramRequest()); - o.add(buildCustomAttributeHistogramRequest()); +core.int buildCounterGoogleCloudTalentV4BatchCreateJobsResponse = 0; +buildGoogleCloudTalentV4BatchCreateJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchCreateJobsResponse(); + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchCreateJobsResponse < 3) { + o.jobResults = buildUnnamed3239(); + } + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse--; return o; } -checkUnnamed3101(core.List<api.CustomAttributeHistogramRequest> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCustomAttributeHistogramRequest(o[0]); - checkCustomAttributeHistogramRequest(o[1]); +checkGoogleCloudTalentV4BatchCreateJobsResponse( + api.GoogleCloudTalentV4BatchCreateJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchCreateJobsResponse < 3) { + checkUnnamed3239(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchCreateJobsResponse--; } -buildUnnamed3102() { +buildUnnamed3240() { + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); + return o; +} + +checkUnnamed3240(core.List<api.GoogleCloudTalentV4JobResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse = 0; +buildGoogleCloudTalentV4BatchDeleteJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchDeleteJobsResponse(); + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse < 3) { + o.jobResults = buildUnnamed3240(); + } + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse--; + return o; +} + +checkGoogleCloudTalentV4BatchDeleteJobsResponse( + api.GoogleCloudTalentV4BatchDeleteJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse < 3) { + checkUnnamed3240(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchDeleteJobsResponse--; +} + +core.int buildCounterGoogleCloudTalentV4BatchOperationMetadata = 0; +buildGoogleCloudTalentV4BatchOperationMetadata() { + var o = new api.GoogleCloudTalentV4BatchOperationMetadata(); + buildCounterGoogleCloudTalentV4BatchOperationMetadata++; + if (buildCounterGoogleCloudTalentV4BatchOperationMetadata < 3) { + o.createTime = "foo"; + o.endTime = "foo"; + o.failureCount = 42; + o.state = "foo"; + o.stateDescription = "foo"; + o.successCount = 42; + o.totalCount = 42; + o.updateTime = "foo"; + } + buildCounterGoogleCloudTalentV4BatchOperationMetadata--; + return o; +} + +checkGoogleCloudTalentV4BatchOperationMetadata( + api.GoogleCloudTalentV4BatchOperationMetadata o) { + buildCounterGoogleCloudTalentV4BatchOperationMetadata++; + if (buildCounterGoogleCloudTalentV4BatchOperationMetadata < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.failureCount, unittest.equals(42)); + unittest.expect(o.state, unittest.equals('foo')); + unittest.expect(o.stateDescription, unittest.equals('foo')); + unittest.expect(o.successCount, unittest.equals(42)); + unittest.expect(o.totalCount, unittest.equals(42)); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4BatchOperationMetadata--; +} + +buildUnnamed3241() { + var o = new core.List<api.GoogleCloudTalentV4JobResult>(); + o.add(buildGoogleCloudTalentV4JobResult()); + o.add(buildGoogleCloudTalentV4JobResult()); + return o; +} + +checkUnnamed3241(core.List<api.GoogleCloudTalentV4JobResult> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4JobResult(o[0]); + checkGoogleCloudTalentV4JobResult(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse = 0; +buildGoogleCloudTalentV4BatchUpdateJobsResponse() { + var o = new api.GoogleCloudTalentV4BatchUpdateJobsResponse(); + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse < 3) { + o.jobResults = buildUnnamed3241(); + } + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse--; + return o; +} + +checkGoogleCloudTalentV4BatchUpdateJobsResponse( + api.GoogleCloudTalentV4BatchUpdateJobsResponse o) { + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse++; + if (buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse < 3) { + checkUnnamed3241(o.jobResults); + } + buildCounterGoogleCloudTalentV4BatchUpdateJobsResponse--; +} + +buildUnnamed3242() { + var o = + new core.List<api.GoogleCloudTalentV4CompensationInfoCompensationEntry>(); + o.add(buildGoogleCloudTalentV4CompensationInfoCompensationEntry()); + o.add(buildGoogleCloudTalentV4CompensationInfoCompensationEntry()); + return o; +} + +checkUnnamed3242( + core.List<api.GoogleCloudTalentV4CompensationInfoCompensationEntry> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(o[0]); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfo = 0; +buildGoogleCloudTalentV4CompensationInfo() { + var o = new api.GoogleCloudTalentV4CompensationInfo(); + buildCounterGoogleCloudTalentV4CompensationInfo++; + if (buildCounterGoogleCloudTalentV4CompensationInfo < 3) { + o.annualizedBaseCompensationRange = + buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.annualizedTotalCompensationRange = + buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.entries = buildUnnamed3242(); + } + buildCounterGoogleCloudTalentV4CompensationInfo--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfo( + api.GoogleCloudTalentV4CompensationInfo o) { + buildCounterGoogleCloudTalentV4CompensationInfo++; + if (buildCounterGoogleCloudTalentV4CompensationInfo < 3) { + checkGoogleCloudTalentV4CompensationInfoCompensationRange( + o.annualizedBaseCompensationRange); + checkGoogleCloudTalentV4CompensationInfoCompensationRange( + o.annualizedTotalCompensationRange); + checkUnnamed3242(o.entries); + } + buildCounterGoogleCloudTalentV4CompensationInfo--; +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry = 0; +buildGoogleCloudTalentV4CompensationInfoCompensationEntry() { + var o = new api.GoogleCloudTalentV4CompensationInfoCompensationEntry(); + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry < 3) { + o.amount = buildMoney(); + o.description = "foo"; + o.expectedUnitsPerYear = 42.0; + o.range = buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + o.type = "foo"; + o.unit = "foo"; + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfoCompensationEntry( + api.GoogleCloudTalentV4CompensationInfoCompensationEntry o) { + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry < 3) { + checkMoney(o.amount); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.expectedUnitsPerYear, unittest.equals(42.0)); + checkGoogleCloudTalentV4CompensationInfoCompensationRange(o.range); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationEntry--; +} + +core.int buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange = 0; +buildGoogleCloudTalentV4CompensationInfoCompensationRange() { + var o = new api.GoogleCloudTalentV4CompensationInfoCompensationRange(); + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange < 3) { + o.maxCompensation = buildMoney(); + o.minCompensation = buildMoney(); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange--; + return o; +} + +checkGoogleCloudTalentV4CompensationInfoCompensationRange( + api.GoogleCloudTalentV4CompensationInfoCompensationRange o) { + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange++; + if (buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange < 3) { + checkMoney(o.maxCompensation); + checkMoney(o.minCompensation); + } + buildCounterGoogleCloudTalentV4CompensationInfoCompensationRange--; +} + +buildUnnamed3243() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3102(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')); +} + +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')); +} + +core.int buildCounterGoogleCloudTalentV4CustomAttribute = 0; +buildGoogleCloudTalentV4CustomAttribute() { + var o = new api.GoogleCloudTalentV4CustomAttribute(); + buildCounterGoogleCloudTalentV4CustomAttribute++; + if (buildCounterGoogleCloudTalentV4CustomAttribute < 3) { + o.filterable = true; + o.keywordSearchable = true; + o.longValues = buildUnnamed3243(); + o.stringValues = buildUnnamed3244(); + } + buildCounterGoogleCloudTalentV4CustomAttribute--; + return o; +} + +checkGoogleCloudTalentV4CustomAttribute( + api.GoogleCloudTalentV4CustomAttribute o) { + buildCounterGoogleCloudTalentV4CustomAttribute++; + if (buildCounterGoogleCloudTalentV4CustomAttribute < 3) { + unittest.expect(o.filterable, unittest.isTrue); + unittest.expect(o.keywordSearchable, unittest.isTrue); + checkUnnamed3243(o.longValues); + checkUnnamed3244(o.stringValues); + } + buildCounterGoogleCloudTalentV4CustomAttribute--; +} + +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.Map<core.String, api.GoogleCloudTalentV4CustomAttribute>(); + o["x"] = buildGoogleCloudTalentV4CustomAttribute(); + o["y"] = buildGoogleCloudTalentV4CustomAttribute(); + return o; +} + +checkUnnamed3246( + core.Map<core.String, api.GoogleCloudTalentV4CustomAttribute> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4CustomAttribute(o["x"]); + checkGoogleCloudTalentV4CustomAttribute(o["y"]); +} + +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')); +} + +core.int buildCounterGoogleCloudTalentV4Job = 0; +buildGoogleCloudTalentV4Job() { + var o = new api.GoogleCloudTalentV4Job(); + buildCounterGoogleCloudTalentV4Job++; + if (buildCounterGoogleCloudTalentV4Job < 3) { + o.addresses = buildUnnamed3245(); + o.applicationInfo = buildGoogleCloudTalentV4JobApplicationInfo(); + o.company = "foo"; + o.companyDisplayName = "foo"; + o.compensationInfo = buildGoogleCloudTalentV4CompensationInfo(); + o.customAttributes = buildUnnamed3246(); + o.degreeTypes = buildUnnamed3247(); + o.department = "foo"; + o.derivedInfo = buildGoogleCloudTalentV4JobDerivedInfo(); + o.description = "foo"; + o.employmentTypes = buildUnnamed3248(); + o.incentives = "foo"; + o.jobBenefits = buildUnnamed3249(); + o.jobEndTime = "foo"; + o.jobLevel = "foo"; + o.jobStartTime = "foo"; + o.languageCode = "foo"; + o.name = "foo"; + o.postingCreateTime = "foo"; + o.postingExpireTime = "foo"; + o.postingPublishTime = "foo"; + o.postingRegion = "foo"; + o.postingUpdateTime = "foo"; + o.processingOptions = buildGoogleCloudTalentV4JobProcessingOptions(); + o.promotionValue = 42; + o.qualifications = "foo"; + o.requisitionId = "foo"; + o.responsibilities = "foo"; + o.title = "foo"; + o.visibility = "foo"; + } + buildCounterGoogleCloudTalentV4Job--; + return o; +} + +checkGoogleCloudTalentV4Job(api.GoogleCloudTalentV4Job o) { + buildCounterGoogleCloudTalentV4Job++; + if (buildCounterGoogleCloudTalentV4Job < 3) { + checkUnnamed3245(o.addresses); + checkGoogleCloudTalentV4JobApplicationInfo(o.applicationInfo); + unittest.expect(o.company, unittest.equals('foo')); + unittest.expect(o.companyDisplayName, unittest.equals('foo')); + checkGoogleCloudTalentV4CompensationInfo(o.compensationInfo); + checkUnnamed3246(o.customAttributes); + checkUnnamed3247(o.degreeTypes); + unittest.expect(o.department, unittest.equals('foo')); + checkGoogleCloudTalentV4JobDerivedInfo(o.derivedInfo); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed3248(o.employmentTypes); + unittest.expect(o.incentives, unittest.equals('foo')); + checkUnnamed3249(o.jobBenefits); + unittest.expect(o.jobEndTime, unittest.equals('foo')); + unittest.expect(o.jobLevel, unittest.equals('foo')); + unittest.expect(o.jobStartTime, unittest.equals('foo')); + unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.postingCreateTime, unittest.equals('foo')); + unittest.expect(o.postingExpireTime, unittest.equals('foo')); + unittest.expect(o.postingPublishTime, unittest.equals('foo')); + unittest.expect(o.postingRegion, unittest.equals('foo')); + unittest.expect(o.postingUpdateTime, unittest.equals('foo')); + checkGoogleCloudTalentV4JobProcessingOptions(o.processingOptions); + unittest.expect(o.promotionValue, unittest.equals(42)); + unittest.expect(o.qualifications, unittest.equals('foo')); + unittest.expect(o.requisitionId, unittest.equals('foo')); + unittest.expect(o.responsibilities, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + unittest.expect(o.visibility, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4Job--; +} + +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')); +} + +core.int buildCounterGoogleCloudTalentV4JobApplicationInfo = 0; +buildGoogleCloudTalentV4JobApplicationInfo() { + var o = new api.GoogleCloudTalentV4JobApplicationInfo(); + buildCounterGoogleCloudTalentV4JobApplicationInfo++; + if (buildCounterGoogleCloudTalentV4JobApplicationInfo < 3) { + o.emails = buildUnnamed3250(); + o.instruction = "foo"; + o.uris = buildUnnamed3251(); + } + buildCounterGoogleCloudTalentV4JobApplicationInfo--; + return o; +} + +checkGoogleCloudTalentV4JobApplicationInfo( + api.GoogleCloudTalentV4JobApplicationInfo o) { + buildCounterGoogleCloudTalentV4JobApplicationInfo++; + if (buildCounterGoogleCloudTalentV4JobApplicationInfo < 3) { + checkUnnamed3250(o.emails); + unittest.expect(o.instruction, unittest.equals('foo')); + checkUnnamed3251(o.uris); + } + buildCounterGoogleCloudTalentV4JobApplicationInfo--; +} + +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<api.GoogleCloudTalentV4Location>(); + o.add(buildGoogleCloudTalentV4Location()); + o.add(buildGoogleCloudTalentV4Location()); + return o; +} + +checkUnnamed3253(core.List<api.GoogleCloudTalentV4Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudTalentV4Location(o[0]); + checkGoogleCloudTalentV4Location(o[1]); +} + +core.int buildCounterGoogleCloudTalentV4JobDerivedInfo = 0; +buildGoogleCloudTalentV4JobDerivedInfo() { + var o = new api.GoogleCloudTalentV4JobDerivedInfo(); + buildCounterGoogleCloudTalentV4JobDerivedInfo++; + if (buildCounterGoogleCloudTalentV4JobDerivedInfo < 3) { + o.jobCategories = buildUnnamed3252(); + o.locations = buildUnnamed3253(); + } + buildCounterGoogleCloudTalentV4JobDerivedInfo--; + return o; +} + +checkGoogleCloudTalentV4JobDerivedInfo( + api.GoogleCloudTalentV4JobDerivedInfo o) { + buildCounterGoogleCloudTalentV4JobDerivedInfo++; + if (buildCounterGoogleCloudTalentV4JobDerivedInfo < 3) { + checkUnnamed3252(o.jobCategories); + checkUnnamed3253(o.locations); + } + buildCounterGoogleCloudTalentV4JobDerivedInfo--; +} + +core.int buildCounterGoogleCloudTalentV4JobProcessingOptions = 0; +buildGoogleCloudTalentV4JobProcessingOptions() { + var o = new api.GoogleCloudTalentV4JobProcessingOptions(); + buildCounterGoogleCloudTalentV4JobProcessingOptions++; + if (buildCounterGoogleCloudTalentV4JobProcessingOptions < 3) { + o.disableStreetAddressResolution = true; + o.htmlSanitization = "foo"; + } + buildCounterGoogleCloudTalentV4JobProcessingOptions--; + return o; +} + +checkGoogleCloudTalentV4JobProcessingOptions( + api.GoogleCloudTalentV4JobProcessingOptions o) { + buildCounterGoogleCloudTalentV4JobProcessingOptions++; + if (buildCounterGoogleCloudTalentV4JobProcessingOptions < 3) { + unittest.expect(o.disableStreetAddressResolution, unittest.isTrue); + unittest.expect(o.htmlSanitization, unittest.equals('foo')); + } + buildCounterGoogleCloudTalentV4JobProcessingOptions--; +} + +core.int buildCounterGoogleCloudTalentV4JobResult = 0; +buildGoogleCloudTalentV4JobResult() { + var o = new api.GoogleCloudTalentV4JobResult(); + buildCounterGoogleCloudTalentV4JobResult++; + if (buildCounterGoogleCloudTalentV4JobResult < 3) { + o.job = buildGoogleCloudTalentV4Job(); + o.status = buildStatus(); + } + buildCounterGoogleCloudTalentV4JobResult--; + return o; +} + +checkGoogleCloudTalentV4JobResult(api.GoogleCloudTalentV4JobResult o) { + buildCounterGoogleCloudTalentV4JobResult++; + if (buildCounterGoogleCloudTalentV4JobResult < 3) { + checkGoogleCloudTalentV4Job(o.job); + checkStatus(o.status); + } + buildCounterGoogleCloudTalentV4JobResult--; +} + +core.int buildCounterGoogleCloudTalentV4Location = 0; +buildGoogleCloudTalentV4Location() { + var o = new api.GoogleCloudTalentV4Location(); + buildCounterGoogleCloudTalentV4Location++; + if (buildCounterGoogleCloudTalentV4Location < 3) { + o.latLng = buildLatLng(); + o.locationType = "foo"; + o.postalAddress = buildPostalAddress(); + o.radiusMiles = 42.0; + } + buildCounterGoogleCloudTalentV4Location--; + return o; +} + +checkGoogleCloudTalentV4Location(api.GoogleCloudTalentV4Location o) { + buildCounterGoogleCloudTalentV4Location++; + if (buildCounterGoogleCloudTalentV4Location < 3) { + checkLatLng(o.latLng); + unittest.expect(o.locationType, unittest.equals('foo')); + checkPostalAddress(o.postalAddress); + unittest.expect(o.radiusMiles, unittest.equals(42.0)); + } + buildCounterGoogleCloudTalentV4Location--; +} + +buildUnnamed3254() { + var o = new core.List<api.CompensationHistogramRequest>(); + o.add(buildCompensationHistogramRequest()); + o.add(buildCompensationHistogramRequest()); + return o; +} + +checkUnnamed3254(core.List<api.CompensationHistogramRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCompensationHistogramRequest(o[0]); + checkCompensationHistogramRequest(o[1]); +} + +buildUnnamed3255() { + var o = new core.List<api.CustomAttributeHistogramRequest>(); + o.add(buildCustomAttributeHistogramRequest()); + o.add(buildCustomAttributeHistogramRequest()); + return o; +} + +checkUnnamed3255(core.List<api.CustomAttributeHistogramRequest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCustomAttributeHistogramRequest(o[0]); + checkCustomAttributeHistogramRequest(o[1]); +} + +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')); @@ -796,9 +1385,9 @@ var o = new api.HistogramFacets(); buildCounterHistogramFacets++; if (buildCounterHistogramFacets < 3) { - o.compensationHistogramFacets = buildUnnamed3100(); - o.customAttributeHistogramFacets = buildUnnamed3101(); - o.simpleHistogramFacets = buildUnnamed3102(); + o.compensationHistogramFacets = buildUnnamed3254(); + o.customAttributeHistogramFacets = buildUnnamed3255(); + o.simpleHistogramFacets = buildUnnamed3256(); } buildCounterHistogramFacets--; return o; @@ -807,21 +1396,21 @@ checkHistogramFacets(api.HistogramFacets o) { buildCounterHistogramFacets++; if (buildCounterHistogramFacets < 3) { - checkUnnamed3100(o.compensationHistogramFacets); - checkUnnamed3101(o.customAttributeHistogramFacets); - checkUnnamed3102(o.simpleHistogramFacets); + checkUnnamed3254(o.compensationHistogramFacets); + checkUnnamed3255(o.customAttributeHistogramFacets); + checkUnnamed3256(o.simpleHistogramFacets); } buildCounterHistogramFacets--; } -buildUnnamed3103() { +buildUnnamed3257() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed3103(core.Map<core.String, core.int> o) { +checkUnnamed3257(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -833,7 +1422,7 @@ buildCounterHistogramResult++; if (buildCounterHistogramResult < 3) { o.searchType = "foo"; - o.values = buildUnnamed3103(); + o.values = buildUnnamed3257(); } buildCounterHistogramResult--; return o; @@ -843,45 +1432,45 @@ buildCounterHistogramResult++; if (buildCounterHistogramResult < 3) { unittest.expect(o.searchType, unittest.equals('foo')); - checkUnnamed3103(o.values); + checkUnnamed3257(o.values); } buildCounterHistogramResult--; } -buildUnnamed3104() { +buildUnnamed3258() { var o = new core.List<api.CompensationHistogramResult>(); o.add(buildCompensationHistogramResult()); o.add(buildCompensationHistogramResult()); return o; } -checkUnnamed3104(core.List<api.CompensationHistogramResult> o) { +checkUnnamed3258(core.List<api.CompensationHistogramResult> o) { unittest.expect(o, unittest.hasLength(2)); checkCompensationHistogramResult(o[0]); checkCompensationHistogramResult(o[1]); } -buildUnnamed3105() { +buildUnnamed3259() { var o = new core.List<api.CustomAttributeHistogramResult>(); o.add(buildCustomAttributeHistogramResult()); o.add(buildCustomAttributeHistogramResult()); return o; } -checkUnnamed3105(core.List<api.CustomAttributeHistogramResult> o) { +checkUnnamed3259(core.List<api.CustomAttributeHistogramResult> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomAttributeHistogramResult(o[0]); checkCustomAttributeHistogramResult(o[1]); } -buildUnnamed3106() { +buildUnnamed3260() { var o = new core.List<api.HistogramResult>(); o.add(buildHistogramResult()); o.add(buildHistogramResult()); return o; } -checkUnnamed3106(core.List<api.HistogramResult> o) { +checkUnnamed3260(core.List<api.HistogramResult> o) { unittest.expect(o, unittest.hasLength(2)); checkHistogramResult(o[0]); checkHistogramResult(o[1]); @@ -892,9 +1481,9 @@ var o = new api.HistogramResults(); buildCounterHistogramResults++; if (buildCounterHistogramResults < 3) { - o.compensationHistogramResults = buildUnnamed3104(); - o.customAttributeHistogramResults = buildUnnamed3105(); - o.simpleHistogramResults = buildUnnamed3106(); + o.compensationHistogramResults = buildUnnamed3258(); + o.customAttributeHistogramResults = buildUnnamed3259(); + o.simpleHistogramResults = buildUnnamed3260(); } buildCounterHistogramResults--; return o; @@ -903,73 +1492,73 @@ checkHistogramResults(api.HistogramResults o) { buildCounterHistogramResults++; if (buildCounterHistogramResults < 3) { - checkUnnamed3104(o.compensationHistogramResults); - checkUnnamed3105(o.customAttributeHistogramResults); - checkUnnamed3106(o.simpleHistogramResults); + checkUnnamed3258(o.compensationHistogramResults); + checkUnnamed3259(o.customAttributeHistogramResults); + checkUnnamed3260(o.simpleHistogramResults); } buildCounterHistogramResults--; } -buildUnnamed3107() { +buildUnnamed3261() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3107(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')); } -buildUnnamed3108() { +buildUnnamed3262() { var o = new core.Map<core.String, api.CustomAttribute>(); o["x"] = buildCustomAttribute(); o["y"] = buildCustomAttribute(); return o; } -checkUnnamed3108(core.Map<core.String, api.CustomAttribute> o) { +checkUnnamed3262(core.Map<core.String, api.CustomAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomAttribute(o["x"]); checkCustomAttribute(o["y"]); } -buildUnnamed3109() { +buildUnnamed3263() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3109(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')); } -buildUnnamed3110() { +buildUnnamed3264() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3110(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')); } -buildUnnamed3111() { +buildUnnamed3265() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3111(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')); @@ -980,19 +1569,19 @@ var o = new api.Job(); buildCounterJob++; if (buildCounterJob < 3) { - o.addresses = buildUnnamed3107(); + o.addresses = buildUnnamed3261(); o.applicationInfo = buildApplicationInfo(); o.companyDisplayName = "foo"; o.companyName = "foo"; o.compensationInfo = buildCompensationInfo(); - o.customAttributes = buildUnnamed3108(); - o.degreeTypes = buildUnnamed3109(); + o.customAttributes = buildUnnamed3262(); + o.degreeTypes = buildUnnamed3263(); o.department = "foo"; o.derivedInfo = buildJobDerivedInfo(); o.description = "foo"; - o.employmentTypes = buildUnnamed3110(); + o.employmentTypes = buildUnnamed3264(); o.incentives = "foo"; - o.jobBenefits = buildUnnamed3111(); + o.jobBenefits = buildUnnamed3265(); o.jobEndTime = "foo"; o.jobLevel = "foo"; o.jobStartTime = "foo"; @@ -1018,19 +1607,19 @@ checkJob(api.Job o) { buildCounterJob++; if (buildCounterJob < 3) { - checkUnnamed3107(o.addresses); + checkUnnamed3261(o.addresses); checkApplicationInfo(o.applicationInfo); unittest.expect(o.companyDisplayName, unittest.equals('foo')); unittest.expect(o.companyName, unittest.equals('foo')); checkCompensationInfo(o.compensationInfo); - checkUnnamed3108(o.customAttributes); - checkUnnamed3109(o.degreeTypes); + checkUnnamed3262(o.customAttributes); + checkUnnamed3263(o.degreeTypes); unittest.expect(o.department, unittest.equals('foo')); checkJobDerivedInfo(o.derivedInfo); unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3110(o.employmentTypes); + checkUnnamed3264(o.employmentTypes); unittest.expect(o.incentives, unittest.equals('foo')); - checkUnnamed3111(o.jobBenefits); + checkUnnamed3265(o.jobBenefits); unittest.expect(o.jobEndTime, unittest.equals('foo')); unittest.expect(o.jobLevel, unittest.equals('foo')); unittest.expect(o.jobStartTime, unittest.equals('foo')); @@ -1052,27 +1641,27 @@ buildCounterJob--; } -buildUnnamed3112() { +buildUnnamed3266() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3112(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')); } -buildUnnamed3113() { +buildUnnamed3267() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3113(core.List<api.Location> o) { +checkUnnamed3267(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1083,8 +1672,8 @@ var o = new api.JobDerivedInfo(); buildCounterJobDerivedInfo++; if (buildCounterJobDerivedInfo < 3) { - o.jobCategories = buildUnnamed3112(); - o.locations = buildUnnamed3113(); + o.jobCategories = buildUnnamed3266(); + o.locations = buildUnnamed3267(); } buildCounterJobDerivedInfo--; return o; @@ -1093,20 +1682,20 @@ checkJobDerivedInfo(api.JobDerivedInfo o) { buildCounterJobDerivedInfo++; if (buildCounterJobDerivedInfo < 3) { - checkUnnamed3112(o.jobCategories); - checkUnnamed3113(o.locations); + checkUnnamed3266(o.jobCategories); + checkUnnamed3267(o.locations); } buildCounterJobDerivedInfo--; } -buildUnnamed3114() { +buildUnnamed3268() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3114(core.List<core.String> 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')); @@ -1117,7 +1706,7 @@ var o = new api.JobEvent(); buildCounterJobEvent++; if (buildCounterJobEvent < 3) { - o.jobs = buildUnnamed3114(); + o.jobs = buildUnnamed3268(); o.type = "foo"; } buildCounterJobEvent--; @@ -1127,85 +1716,85 @@ checkJobEvent(api.JobEvent o) { buildCounterJobEvent++; if (buildCounterJobEvent < 3) { - checkUnnamed3114(o.jobs); + checkUnnamed3268(o.jobs); unittest.expect(o.type, unittest.equals('foo')); } buildCounterJobEvent--; } -buildUnnamed3115() { +buildUnnamed3269() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3115(core.List<core.String> 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')); } -buildUnnamed3116() { +buildUnnamed3270() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3116(core.List<core.String> o) { +checkUnnamed3270(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3117() { +buildUnnamed3271() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3117(core.List<core.String> o) { +checkUnnamed3271(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3118() { +buildUnnamed3272() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3118(core.List<core.String> 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')); } -buildUnnamed3119() { +buildUnnamed3273() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3119(core.List<core.String> 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')); } -buildUnnamed3120() { +buildUnnamed3274() { var o = new core.List<api.LocationFilter>(); o.add(buildLocationFilter()); o.add(buildLocationFilter()); return o; } -checkUnnamed3120(core.List<api.LocationFilter> o) { +checkUnnamed3274(core.List<api.LocationFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationFilter(o[0]); checkLocationFilter(o[1]); @@ -1217,15 +1806,15 @@ buildCounterJobQuery++; if (buildCounterJobQuery < 3) { o.commuteFilter = buildCommuteFilter(); - o.companyDisplayNames = buildUnnamed3115(); - o.companyNames = buildUnnamed3116(); + o.companyDisplayNames = buildUnnamed3269(); + o.companyNames = buildUnnamed3270(); o.compensationFilter = buildCompensationFilter(); o.customAttributeFilter = "foo"; o.disableSpellCheck = true; - o.employmentTypes = buildUnnamed3117(); - o.jobCategories = buildUnnamed3118(); - o.languageCodes = buildUnnamed3119(); - o.locationFilters = buildUnnamed3120(); + o.employmentTypes = buildUnnamed3271(); + o.jobCategories = buildUnnamed3272(); + o.languageCodes = buildUnnamed3273(); + o.locationFilters = buildUnnamed3274(); o.publishTimeRange = buildTimestampRange(); o.query = "foo"; o.queryLanguageCode = "foo"; @@ -1238,15 +1827,15 @@ buildCounterJobQuery++; if (buildCounterJobQuery < 3) { checkCommuteFilter(o.commuteFilter); - checkUnnamed3115(o.companyDisplayNames); - checkUnnamed3116(o.companyNames); + checkUnnamed3269(o.companyDisplayNames); + checkUnnamed3270(o.companyNames); checkCompensationFilter(o.compensationFilter); unittest.expect(o.customAttributeFilter, unittest.equals('foo')); unittest.expect(o.disableSpellCheck, unittest.isTrue); - checkUnnamed3117(o.employmentTypes); - checkUnnamed3118(o.jobCategories); - checkUnnamed3119(o.languageCodes); - checkUnnamed3120(o.locationFilters); + checkUnnamed3271(o.employmentTypes); + checkUnnamed3272(o.jobCategories); + checkUnnamed3273(o.languageCodes); + checkUnnamed3274(o.locationFilters); checkTimestampRange(o.publishTimeRange); unittest.expect(o.query, unittest.equals('foo')); unittest.expect(o.queryLanguageCode, unittest.equals('foo')); @@ -1275,14 +1864,14 @@ buildCounterLatLng--; } -buildUnnamed3121() { +buildUnnamed3275() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed3121(core.List<api.Company> o) { +checkUnnamed3275(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -1293,7 +1882,7 @@ var o = new api.ListCompaniesResponse(); buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - o.companies = buildUnnamed3121(); + o.companies = buildUnnamed3275(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; } @@ -1304,21 +1893,21 @@ checkListCompaniesResponse(api.ListCompaniesResponse o) { buildCounterListCompaniesResponse++; if (buildCounterListCompaniesResponse < 3) { - checkUnnamed3121(o.companies); + checkUnnamed3275(o.companies); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCompaniesResponse--; } -buildUnnamed3122() { +buildUnnamed3276() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed3122(core.List<api.Job> o) { +checkUnnamed3276(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -1329,7 +1918,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed3122(); + o.jobs = buildUnnamed3276(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; } @@ -1340,7 +1929,7 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed3122(o.jobs); + checkUnnamed3276(o.jobs); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -1426,14 +2015,14 @@ buildCounterMatchingJob--; } -buildUnnamed3123() { +buildUnnamed3277() { var o = new core.Map<core.String, api.NamespacedDebugInput>(); o["x"] = buildNamespacedDebugInput(); o["y"] = buildNamespacedDebugInput(); return o; } -checkUnnamed3123(core.Map<core.String, api.NamespacedDebugInput> o) { +checkUnnamed3277(core.Map<core.String, api.NamespacedDebugInput> o) { unittest.expect(o, unittest.hasLength(2)); checkNamespacedDebugInput(o["x"]); checkNamespacedDebugInput(o["y"]); @@ -1444,7 +2033,7 @@ var o = new api.MendelDebugInput(); buildCounterMendelDebugInput++; if (buildCounterMendelDebugInput < 3) { - o.namespacedDebugInput = buildUnnamed3123(); + o.namespacedDebugInput = buildUnnamed3277(); } buildCounterMendelDebugInput--; return o; @@ -1453,7 +2042,7 @@ checkMendelDebugInput(api.MendelDebugInput o) { buildCounterMendelDebugInput++; if (buildCounterMendelDebugInput < 3) { - checkUnnamed3123(o.namespacedDebugInput); + checkUnnamed3277(o.namespacedDebugInput); } buildCounterMendelDebugInput--; } @@ -1481,144 +2070,144 @@ buildCounterMoney--; } -buildUnnamed3124() { +buildUnnamed3278() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3124(core.List<core.String> o) { +checkUnnamed3278(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3125() { +buildUnnamed3279() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3125(core.List<core.String> o) { +checkUnnamed3279(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3126() { +buildUnnamed3280() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3126(core.List<core.int> o) { +checkUnnamed3280(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)); } -buildUnnamed3127() { +buildUnnamed3281() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3127(core.List<core.String> 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')); } -buildUnnamed3128() { +buildUnnamed3282() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3128(core.List<core.String> 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')); } -buildUnnamed3129() { +buildUnnamed3283() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3129(core.List<core.int> o) { +checkUnnamed3283(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)); } -buildUnnamed3130() { +buildUnnamed3284() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3130(core.List<core.String> 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')); } -buildUnnamed3131() { +buildUnnamed3285() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3131(core.List<core.String> 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')); } -buildUnnamed3132() { +buildUnnamed3286() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed3132(core.List<core.int> o) { +checkUnnamed3286(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)); } -buildUnnamed3133() { +buildUnnamed3287() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3133(core.Map<core.String, core.String> o) { +checkUnnamed3287(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')); } -buildUnnamed3134() { +buildUnnamed3288() { var o = new core.Map<core.String, core.bool>(); o["x"] = true; o["y"] = true; return o; } -checkUnnamed3134(core.Map<core.String, core.bool> o) { +checkUnnamed3288(core.Map<core.String, core.bool> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.isTrue); unittest.expect(o["y"], unittest.isTrue); @@ -1629,20 +2218,20 @@ var o = new api.NamespacedDebugInput(); buildCounterNamespacedDebugInput++; if (buildCounterNamespacedDebugInput < 3) { - o.absolutelyForcedExpNames = buildUnnamed3124(); - o.absolutelyForcedExpTags = buildUnnamed3125(); - o.absolutelyForcedExps = buildUnnamed3126(); - o.conditionallyForcedExpNames = buildUnnamed3127(); - o.conditionallyForcedExpTags = buildUnnamed3128(); - o.conditionallyForcedExps = buildUnnamed3129(); + o.absolutelyForcedExpNames = buildUnnamed3278(); + o.absolutelyForcedExpTags = buildUnnamed3279(); + o.absolutelyForcedExps = buildUnnamed3280(); + o.conditionallyForcedExpNames = buildUnnamed3281(); + o.conditionallyForcedExpTags = buildUnnamed3282(); + o.conditionallyForcedExps = buildUnnamed3283(); o.disableAutomaticEnrollmentSelection = true; - o.disableExpNames = buildUnnamed3130(); - o.disableExpTags = buildUnnamed3131(); - o.disableExps = buildUnnamed3132(); + o.disableExpNames = buildUnnamed3284(); + o.disableExpTags = buildUnnamed3285(); + o.disableExps = buildUnnamed3286(); o.disableManualEnrollmentSelection = true; o.disableOrganicSelection = true; - o.forcedFlags = buildUnnamed3133(); - o.forcedRollouts = buildUnnamed3134(); + o.forcedFlags = buildUnnamed3287(); + o.forcedRollouts = buildUnnamed3288(); } buildCounterNamespacedDebugInput--; return o; @@ -1651,32 +2240,32 @@ checkNamespacedDebugInput(api.NamespacedDebugInput o) { buildCounterNamespacedDebugInput++; if (buildCounterNamespacedDebugInput < 3) { - checkUnnamed3124(o.absolutelyForcedExpNames); - checkUnnamed3125(o.absolutelyForcedExpTags); - checkUnnamed3126(o.absolutelyForcedExps); - checkUnnamed3127(o.conditionallyForcedExpNames); - checkUnnamed3128(o.conditionallyForcedExpTags); - checkUnnamed3129(o.conditionallyForcedExps); + checkUnnamed3278(o.absolutelyForcedExpNames); + checkUnnamed3279(o.absolutelyForcedExpTags); + checkUnnamed3280(o.absolutelyForcedExps); + checkUnnamed3281(o.conditionallyForcedExpNames); + checkUnnamed3282(o.conditionallyForcedExpTags); + checkUnnamed3283(o.conditionallyForcedExps); unittest.expect(o.disableAutomaticEnrollmentSelection, unittest.isTrue); - checkUnnamed3130(o.disableExpNames); - checkUnnamed3131(o.disableExpTags); - checkUnnamed3132(o.disableExps); + checkUnnamed3284(o.disableExpNames); + checkUnnamed3285(o.disableExpTags); + checkUnnamed3286(o.disableExps); unittest.expect(o.disableManualEnrollmentSelection, unittest.isTrue); unittest.expect(o.disableOrganicSelection, unittest.isTrue); - checkUnnamed3133(o.forcedFlags); - checkUnnamed3134(o.forcedRollouts); + checkUnnamed3287(o.forcedFlags); + checkUnnamed3288(o.forcedRollouts); } buildCounterNamespacedDebugInput--; } -buildUnnamed3135() { +buildUnnamed3289() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3135(core.List<core.double> o) { +checkUnnamed3289(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)); @@ -1687,7 +2276,7 @@ var o = new api.NumericBucketingOption(); buildCounterNumericBucketingOption++; if (buildCounterNumericBucketingOption < 3) { - o.bucketBounds = buildUnnamed3135(); + o.bucketBounds = buildUnnamed3289(); o.requiresMinMax = true; } buildCounterNumericBucketingOption--; @@ -1697,20 +2286,20 @@ checkNumericBucketingOption(api.NumericBucketingOption o) { buildCounterNumericBucketingOption++; if (buildCounterNumericBucketingOption < 3) { - checkUnnamed3135(o.bucketBounds); + checkUnnamed3289(o.bucketBounds); unittest.expect(o.requiresMinMax, unittest.isTrue); } buildCounterNumericBucketingOption--; } -buildUnnamed3136() { +buildUnnamed3290() { var o = new core.List<api.BucketizedCount>(); o.add(buildBucketizedCount()); o.add(buildBucketizedCount()); return o; } -checkUnnamed3136(core.List<api.BucketizedCount> o) { +checkUnnamed3290(core.List<api.BucketizedCount> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketizedCount(o[0]); checkBucketizedCount(o[1]); @@ -1721,7 +2310,7 @@ var o = new api.NumericBucketingResult(); buildCounterNumericBucketingResult++; if (buildCounterNumericBucketingResult < 3) { - o.counts = buildUnnamed3136(); + o.counts = buildUnnamed3290(); o.maxValue = 42.0; o.minValue = 42.0; } @@ -1732,34 +2321,34 @@ checkNumericBucketingResult(api.NumericBucketingResult o) { buildCounterNumericBucketingResult++; if (buildCounterNumericBucketingResult < 3) { - checkUnnamed3136(o.counts); + checkUnnamed3290(o.counts); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); } buildCounterNumericBucketingResult--; } -buildUnnamed3137() { +buildUnnamed3291() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3137(core.List<core.String> 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')); } -buildUnnamed3138() { +buildUnnamed3292() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3138(core.List<core.String> o) { +checkUnnamed3292(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1770,13 +2359,13 @@ var o = new api.PostalAddress(); buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - o.addressLines = buildUnnamed3137(); + o.addressLines = buildUnnamed3291(); o.administrativeArea = "foo"; o.languageCode = "foo"; o.locality = "foo"; o.organization = "foo"; o.postalCode = "foo"; - o.recipients = buildUnnamed3138(); + o.recipients = buildUnnamed3292(); o.regionCode = "foo"; o.revision = 42; o.sortingCode = "foo"; @@ -1789,13 +2378,13 @@ checkPostalAddress(api.PostalAddress o) { buildCounterPostalAddress++; if (buildCounterPostalAddress < 3) { - checkUnnamed3137(o.addressLines); + checkUnnamed3291(o.addressLines); unittest.expect(o.administrativeArea, unittest.equals('foo')); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.locality, unittest.equals('foo')); unittest.expect(o.organization, unittest.equals('foo')); unittest.expect(o.postalCode, unittest.equals('foo')); - checkUnnamed3138(o.recipients); + checkUnnamed3292(o.recipients); unittest.expect(o.regionCode, unittest.equals('foo')); unittest.expect(o.revision, unittest.equals(42)); unittest.expect(o.sortingCode, unittest.equals('foo')); @@ -1912,27 +2501,27 @@ buildCounterSearchJobsRequest--; } -buildUnnamed3139() { +buildUnnamed3293() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3139(core.List<api.Location> o) { +checkUnnamed3293(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); } -buildUnnamed3140() { +buildUnnamed3294() { var o = new core.List<api.MatchingJob>(); o.add(buildMatchingJob()); o.add(buildMatchingJob()); return o; } -checkUnnamed3140(core.List<api.MatchingJob> o) { +checkUnnamed3294(core.List<api.MatchingJob> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchingJob(o[0]); checkMatchingJob(o[1]); @@ -1946,8 +2535,8 @@ o.broadenedQueryJobsCount = 42; o.estimatedTotalSize = 42; o.histogramResults = buildHistogramResults(); - o.locationFilters = buildUnnamed3139(); - o.matchingJobs = buildUnnamed3140(); + o.locationFilters = buildUnnamed3293(); + o.matchingJobs = buildUnnamed3294(); o.metadata = buildResponseMetadata(); o.nextPageToken = "foo"; o.spellCorrection = buildSpellingCorrection(); @@ -1963,8 +2552,8 @@ unittest.expect(o.broadenedQueryJobsCount, unittest.equals(42)); unittest.expect(o.estimatedTotalSize, unittest.equals(42)); checkHistogramResults(o.histogramResults); - checkUnnamed3139(o.locationFilters); - checkUnnamed3140(o.matchingJobs); + checkUnnamed3293(o.locationFilters); + checkUnnamed3294(o.matchingJobs); checkResponseMetadata(o.metadata); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkSpellingCorrection(o.spellCorrection); @@ -1994,6 +2583,71 @@ buildCounterSpellingCorrection--; } +buildUnnamed3295() { + 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; +} + +checkUnnamed3295(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')); +} + +buildUnnamed3296() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed3295()); + o.add(buildUnnamed3295()); + return o; +} + +checkUnnamed3296(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed3295(o[0]); + checkUnnamed3295(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed3296(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed3296(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + core.int buildCounterTimeOfDay = 0; buildTimeOfDay() { var o = new api.TimeOfDay(); @@ -2082,14 +2736,14 @@ buildCounterUpdateJobRequest--; } -buildUnnamed3141() { +buildUnnamed3297() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3141(core.List<core.String> o) { +checkUnnamed3297(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2296,6 +2950,130 @@ }); }); + unittest.group("obj-schema-GoogleCloudTalentV4BatchCreateJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchCreateJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchCreateJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchCreateJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchDeleteJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchDeleteJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchDeleteJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchDeleteJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchOperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchOperationMetadata(); + var od = new api.GoogleCloudTalentV4BatchOperationMetadata.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchOperationMetadata(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4BatchUpdateJobsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4BatchUpdateJobsResponse(); + var od = new api.GoogleCloudTalentV4BatchUpdateJobsResponse.fromJson( + o.toJson()); + checkGoogleCloudTalentV4BatchUpdateJobsResponse(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4CompensationInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfo(); + var od = new api.GoogleCloudTalentV4CompensationInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4CompensationInfo(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudTalentV4CompensationInfoCompensationEntry", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfoCompensationEntry(); + var od = + new api.GoogleCloudTalentV4CompensationInfoCompensationEntry.fromJson( + o.toJson()); + checkGoogleCloudTalentV4CompensationInfoCompensationEntry(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudTalentV4CompensationInfoCompensationRange", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CompensationInfoCompensationRange(); + var od = + new api.GoogleCloudTalentV4CompensationInfoCompensationRange.fromJson( + o.toJson()); + checkGoogleCloudTalentV4CompensationInfoCompensationRange(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4CustomAttribute", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4CustomAttribute(); + var od = new api.GoogleCloudTalentV4CustomAttribute.fromJson(o.toJson()); + checkGoogleCloudTalentV4CustomAttribute(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4Job", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4Job(); + var od = new api.GoogleCloudTalentV4Job.fromJson(o.toJson()); + checkGoogleCloudTalentV4Job(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobApplicationInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobApplicationInfo(); + var od = + new api.GoogleCloudTalentV4JobApplicationInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobApplicationInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobDerivedInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobDerivedInfo(); + var od = new api.GoogleCloudTalentV4JobDerivedInfo.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobDerivedInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobProcessingOptions", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobProcessingOptions(); + var od = + new api.GoogleCloudTalentV4JobProcessingOptions.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobProcessingOptions(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4JobResult", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4JobResult(); + var od = new api.GoogleCloudTalentV4JobResult.fromJson(o.toJson()); + checkGoogleCloudTalentV4JobResult(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudTalentV4Location", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudTalentV4Location(); + var od = new api.GoogleCloudTalentV4Location.fromJson(o.toJson()); + checkGoogleCloudTalentV4Location(od); + }); + }); + unittest.group("obj-schema-HistogramFacets", () { unittest.test("to-json--from-json", () { var o = buildHistogramFacets(); @@ -2496,6 +3274,14 @@ }); }); + 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("obj-schema-TimeOfDay", () { unittest.test("to-json--from-json", () { var o = buildTimeOfDay(); @@ -2533,13 +3319,13 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.JobsApi(mock).projects; var arg_name = "foo"; - var arg_languageCodes = buildUnnamed3141(); var arg_scope = "foo"; var arg_companyName = "foo"; - var arg_pageSize = 42; - var arg_query = "foo"; var arg_languageCode = "foo"; + var arg_query = "foo"; + var arg_pageSize = 42; var arg_type = "foo"; + var arg_languageCodes = buildUnnamed3297(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2572,17 +3358,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["languageCodes"], unittest.equals(arg_languageCodes)); unittest.expect(queryMap["scope"].first, unittest.equals(arg_scope)); unittest.expect( queryMap["companyName"].first, unittest.equals(arg_companyName)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + unittest.expect( + queryMap["languageCodes"], unittest.equals(arg_languageCodes)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2593,13 +3379,13 @@ }), true); res .complete(arg_name, - languageCodes: arg_languageCodes, scope: arg_scope, companyName: arg_companyName, - pageSize: arg_pageSize, - query: arg_query, languageCode: arg_languageCode, + query: arg_query, + pageSize: arg_pageSize, type: arg_type, + languageCodes: arg_languageCodes, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCompleteQueryResponse(response); @@ -2831,9 +3617,9 @@ api.ProjectsCompaniesResourceApi res = new api.JobsApi(mock).projects.companies; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_requireOpenJobs = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2866,12 +3652,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["requireOpenJobs"].first, unittest.equals("$arg_requireOpenJobs")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2882,9 +3668,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, requireOpenJobs: arg_requireOpenJobs, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCompaniesResponse(response); @@ -3166,9 +3952,9 @@ api.ProjectsJobsResourceApi res = new api.JobsApi(mock).projects.jobs; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_jobView = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_jobView = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3203,11 +3989,11 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( - queryMap["jobView"].first, unittest.equals(arg_jobView)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["jobView"].first, unittest.equals(arg_jobView)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3219,9 +4005,9 @@ res .list(arg_parent, filter: arg_filter, - jobView: arg_jobView, pageToken: arg_pageToken, pageSize: arg_pageSize, + jobView: arg_jobView, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListJobsResponse(response);
diff --git a/generated/googleapis/test/kgsearch/v1_test.dart b/generated/googleapis/test/kgsearch/v1_test.dart index 21dca8b..6e26df9 100644 --- a/generated/googleapis/test/kgsearch/v1_test.dart +++ b/generated/googleapis/test/kgsearch/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1639() { +buildUnnamed1687() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed1639(core.List<core.Object> o) { +checkUnnamed1687(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -94,7 +94,7 @@ 'bool': true, 'string': 'foo' }; - o.itemListElement = buildUnnamed1639(); + o.itemListElement = buildUnnamed1687(); } buildCounterSearchResponse--; return o; @@ -113,45 +113,45 @@ unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.expect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"], unittest.equals('foo')); - checkUnnamed1639(o.itemListElement); + checkUnnamed1687(o.itemListElement); } buildCounterSearchResponse--; } -buildUnnamed1640() { +buildUnnamed1688() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1640(core.List<core.String> o) { +checkUnnamed1688(core.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() { +buildUnnamed1689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1641(core.List<core.String> o) { +checkUnnamed1689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1642() { +buildUnnamed1690() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1642(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')); @@ -170,13 +170,13 @@ unittest.test("method--search", () { var mock = new HttpServerMock(); api.EntitiesResourceApi res = new api.KgsearchApi(mock).entities; - var arg_ids = buildUnnamed1640(); + var arg_types = buildUnnamed1688(); + var arg_languages = buildUnnamed1689(); var arg_limit = 42; - var arg_prefix = true; - var arg_query = "foo"; - var arg_types = buildUnnamed1641(); + var arg_ids = buildUnnamed1690(); var arg_indent = true; - var arg_languages = buildUnnamed1642(); + var arg_query = "foo"; + var arg_prefix = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -208,16 +208,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); + unittest.expect(queryMap["types"], unittest.equals(arg_types)); + unittest.expect(queryMap["languages"], unittest.equals(arg_languages)); unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect( - queryMap["prefix"].first, unittest.equals("$arg_prefix")); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); - unittest.expect(queryMap["types"], unittest.equals(arg_types)); + unittest.expect(queryMap["ids"], unittest.equals(arg_ids)); unittest.expect( queryMap["indent"].first, unittest.equals("$arg_indent")); - unittest.expect(queryMap["languages"], unittest.equals(arg_languages)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["prefix"].first, unittest.equals("$arg_prefix")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -228,13 +228,13 @@ }), true); res .search( - ids: arg_ids, - limit: arg_limit, - prefix: arg_prefix, - query: arg_query, types: arg_types, - indent: arg_indent, languages: arg_languages, + limit: arg_limit, + ids: arg_ids, + indent: arg_indent, + query: arg_query, + prefix: arg_prefix, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearchResponse(response);
diff --git a/generated/googleapis/test/language/v1_test.dart b/generated/googleapis/test/language/v1_test.dart index 4ff1ba9..2b8c058 100644 --- a/generated/googleapis/test/language/v1_test.dart +++ b/generated/googleapis/test/language/v1_test.dart
@@ -71,14 +71,14 @@ buildCounterAnalyzeEntitiesRequest--; } -buildUnnamed3888() { +buildUnnamed4087() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3888(core.List<api.Entity> o) { +checkUnnamed4087(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -89,7 +89,7 @@ var o = new api.AnalyzeEntitiesResponse(); buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - o.entities = buildUnnamed3888(); + o.entities = buildUnnamed4087(); o.language = "foo"; } buildCounterAnalyzeEntitiesResponse--; @@ -99,7 +99,7 @@ checkAnalyzeEntitiesResponse(api.AnalyzeEntitiesResponse o) { buildCounterAnalyzeEntitiesResponse++; if (buildCounterAnalyzeEntitiesResponse < 3) { - checkUnnamed3888(o.entities); + checkUnnamed4087(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitiesResponse--; @@ -126,14 +126,14 @@ buildCounterAnalyzeEntitySentimentRequest--; } -buildUnnamed3889() { +buildUnnamed4088() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3889(core.List<api.Entity> o) { +checkUnnamed4088(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -144,7 +144,7 @@ var o = new api.AnalyzeEntitySentimentResponse(); buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - o.entities = buildUnnamed3889(); + o.entities = buildUnnamed4088(); o.language = "foo"; } buildCounterAnalyzeEntitySentimentResponse--; @@ -154,7 +154,7 @@ checkAnalyzeEntitySentimentResponse(api.AnalyzeEntitySentimentResponse o) { buildCounterAnalyzeEntitySentimentResponse++; if (buildCounterAnalyzeEntitySentimentResponse < 3) { - checkUnnamed3889(o.entities); + checkUnnamed4088(o.entities); unittest.expect(o.language, unittest.equals('foo')); } buildCounterAnalyzeEntitySentimentResponse--; @@ -181,14 +181,14 @@ buildCounterAnalyzeSentimentRequest--; } -buildUnnamed3890() { +buildUnnamed4089() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3890(core.List<api.Sentence> o) { +checkUnnamed4089(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); @@ -201,7 +201,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { o.documentSentiment = buildSentiment(); o.language = "foo"; - o.sentences = buildUnnamed3890(); + o.sentences = buildUnnamed4089(); } buildCounterAnalyzeSentimentResponse--; return o; @@ -212,7 +212,7 @@ if (buildCounterAnalyzeSentimentResponse < 3) { checkSentiment(o.documentSentiment); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3890(o.sentences); + checkUnnamed4089(o.sentences); } buildCounterAnalyzeSentimentResponse--; } @@ -238,27 +238,27 @@ buildCounterAnalyzeSyntaxRequest--; } -buildUnnamed3891() { +buildUnnamed4090() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3891(core.List<api.Sentence> o) { +checkUnnamed4090(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3892() { +buildUnnamed4091() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3892(core.List<api.Token> o) { +checkUnnamed4091(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -270,8 +270,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { o.language = "foo"; - o.sentences = buildUnnamed3891(); - o.tokens = buildUnnamed3892(); + o.sentences = buildUnnamed4090(); + o.tokens = buildUnnamed4091(); } buildCounterAnalyzeSyntaxResponse--; return o; @@ -281,8 +281,8 @@ buildCounterAnalyzeSyntaxResponse++; if (buildCounterAnalyzeSyntaxResponse < 3) { unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3891(o.sentences); - checkUnnamed3892(o.tokens); + checkUnnamed4090(o.sentences); + checkUnnamed4091(o.tokens); } buildCounterAnalyzeSyntaxResponse--; } @@ -310,53 +310,53 @@ buildCounterAnnotateTextRequest--; } -buildUnnamed3893() { +buildUnnamed4092() { var o = new core.List<api.ClassificationCategory>(); o.add(buildClassificationCategory()); o.add(buildClassificationCategory()); return o; } -checkUnnamed3893(core.List<api.ClassificationCategory> o) { +checkUnnamed4092(core.List<api.ClassificationCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkClassificationCategory(o[0]); checkClassificationCategory(o[1]); } -buildUnnamed3894() { +buildUnnamed4093() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed3894(core.List<api.Entity> o) { +checkUnnamed4093(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); } -buildUnnamed3895() { +buildUnnamed4094() { var o = new core.List<api.Sentence>(); o.add(buildSentence()); o.add(buildSentence()); return o; } -checkUnnamed3895(core.List<api.Sentence> o) { +checkUnnamed4094(core.List<api.Sentence> o) { unittest.expect(o, unittest.hasLength(2)); checkSentence(o[0]); checkSentence(o[1]); } -buildUnnamed3896() { +buildUnnamed4095() { var o = new core.List<api.Token>(); o.add(buildToken()); o.add(buildToken()); return o; } -checkUnnamed3896(core.List<api.Token> o) { +checkUnnamed4095(core.List<api.Token> o) { unittest.expect(o, unittest.hasLength(2)); checkToken(o[0]); checkToken(o[1]); @@ -367,12 +367,12 @@ var o = new api.AnnotateTextResponse(); buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { - o.categories = buildUnnamed3893(); + o.categories = buildUnnamed4092(); o.documentSentiment = buildSentiment(); - o.entities = buildUnnamed3894(); + o.entities = buildUnnamed4093(); o.language = "foo"; - o.sentences = buildUnnamed3895(); - o.tokens = buildUnnamed3896(); + o.sentences = buildUnnamed4094(); + o.tokens = buildUnnamed4095(); } buildCounterAnnotateTextResponse--; return o; @@ -381,12 +381,12 @@ checkAnnotateTextResponse(api.AnnotateTextResponse o) { buildCounterAnnotateTextResponse++; if (buildCounterAnnotateTextResponse < 3) { - checkUnnamed3893(o.categories); + checkUnnamed4092(o.categories); checkSentiment(o.documentSentiment); - checkUnnamed3894(o.entities); + checkUnnamed4093(o.entities); unittest.expect(o.language, unittest.equals('foo')); - checkUnnamed3895(o.sentences); - checkUnnamed3896(o.tokens); + checkUnnamed4094(o.sentences); + checkUnnamed4095(o.tokens); } buildCounterAnnotateTextResponse--; } @@ -431,14 +431,14 @@ buildCounterClassifyTextRequest--; } -buildUnnamed3897() { +buildUnnamed4096() { var o = new core.List<api.ClassificationCategory>(); o.add(buildClassificationCategory()); o.add(buildClassificationCategory()); return o; } -checkUnnamed3897(core.List<api.ClassificationCategory> o) { +checkUnnamed4096(core.List<api.ClassificationCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkClassificationCategory(o[0]); checkClassificationCategory(o[1]); @@ -449,7 +449,7 @@ var o = new api.ClassifyTextResponse(); buildCounterClassifyTextResponse++; if (buildCounterClassifyTextResponse < 3) { - o.categories = buildUnnamed3897(); + o.categories = buildUnnamed4096(); } buildCounterClassifyTextResponse--; return o; @@ -458,7 +458,7 @@ checkClassifyTextResponse(api.ClassifyTextResponse o) { buildCounterClassifyTextResponse++; if (buildCounterClassifyTextResponse < 3) { - checkUnnamed3897(o.categories); + checkUnnamed4096(o.categories); } buildCounterClassifyTextResponse--; } @@ -509,27 +509,27 @@ buildCounterDocument--; } -buildUnnamed3898() { +buildUnnamed4097() { var o = new core.List<api.EntityMention>(); o.add(buildEntityMention()); o.add(buildEntityMention()); return o; } -checkUnnamed3898(core.List<api.EntityMention> o) { +checkUnnamed4097(core.List<api.EntityMention> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityMention(o[0]); checkEntityMention(o[1]); } -buildUnnamed3899() { +buildUnnamed4098() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3899(core.Map<core.String, core.String> o) { +checkUnnamed4098(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')); @@ -540,8 +540,8 @@ var o = new api.Entity(); buildCounterEntity++; if (buildCounterEntity < 3) { - o.mentions = buildUnnamed3898(); - o.metadata = buildUnnamed3899(); + o.mentions = buildUnnamed4097(); + o.metadata = buildUnnamed4098(); o.name = "foo"; o.salience = 42.0; o.sentiment = buildSentiment(); @@ -554,8 +554,8 @@ checkEntity(api.Entity o) { buildCounterEntity++; if (buildCounterEntity < 3) { - checkUnnamed3898(o.mentions); - checkUnnamed3899(o.metadata); + checkUnnamed4097(o.mentions); + checkUnnamed4098(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.salience, unittest.equals(42.0)); checkSentiment(o.sentiment); @@ -697,7 +697,7 @@ buildCounterSentiment--; } -buildUnnamed3900() { +buildUnnamed4099() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -712,7 +712,7 @@ return o; } -checkUnnamed3900(core.Map<core.String, core.Object> o) { +checkUnnamed4099(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)); @@ -726,17 +726,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3901() { +buildUnnamed4100() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3900()); - o.add(buildUnnamed3900()); + o.add(buildUnnamed4099()); + o.add(buildUnnamed4099()); return o; } -checkUnnamed3901(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4100(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3900(o[0]); - checkUnnamed3900(o[1]); + checkUnnamed4099(o[0]); + checkUnnamed4099(o[1]); } core.int buildCounterStatus = 0; @@ -745,7 +745,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3901(); + o.details = buildUnnamed4100(); o.message = "foo"; } buildCounterStatus--; @@ -756,7 +756,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3901(o.details); + checkUnnamed4100(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/libraryagent/v1_test.dart b/generated/googleapis/test/libraryagent/v1_test.dart index afd9dd0..ae39db0 100644 --- a/generated/googleapis/test/libraryagent/v1_test.dart +++ b/generated/googleapis/test/libraryagent/v1_test.dart
@@ -75,14 +75,14 @@ buildCounterGoogleExampleLibraryagentV1Book--; } -buildUnnamed5345() { +buildUnnamed5744() { var o = new core.List<api.GoogleExampleLibraryagentV1Book>(); o.add(buildGoogleExampleLibraryagentV1Book()); o.add(buildGoogleExampleLibraryagentV1Book()); return o; } -checkUnnamed5345(core.List<api.GoogleExampleLibraryagentV1Book> o) { +checkUnnamed5744(core.List<api.GoogleExampleLibraryagentV1Book> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleExampleLibraryagentV1Book(o[0]); checkGoogleExampleLibraryagentV1Book(o[1]); @@ -93,7 +93,7 @@ var o = new api.GoogleExampleLibraryagentV1ListBooksResponse(); buildCounterGoogleExampleLibraryagentV1ListBooksResponse++; if (buildCounterGoogleExampleLibraryagentV1ListBooksResponse < 3) { - o.books = buildUnnamed5345(); + o.books = buildUnnamed5744(); o.nextPageToken = "foo"; } buildCounterGoogleExampleLibraryagentV1ListBooksResponse--; @@ -104,20 +104,20 @@ api.GoogleExampleLibraryagentV1ListBooksResponse o) { buildCounterGoogleExampleLibraryagentV1ListBooksResponse++; if (buildCounterGoogleExampleLibraryagentV1ListBooksResponse < 3) { - checkUnnamed5345(o.books); + checkUnnamed5744(o.books); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleExampleLibraryagentV1ListBooksResponse--; } -buildUnnamed5346() { +buildUnnamed5745() { var o = new core.List<api.GoogleExampleLibraryagentV1Shelf>(); o.add(buildGoogleExampleLibraryagentV1Shelf()); o.add(buildGoogleExampleLibraryagentV1Shelf()); return o; } -checkUnnamed5346(core.List<api.GoogleExampleLibraryagentV1Shelf> o) { +checkUnnamed5745(core.List<api.GoogleExampleLibraryagentV1Shelf> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleExampleLibraryagentV1Shelf(o[0]); checkGoogleExampleLibraryagentV1Shelf(o[1]); @@ -129,7 +129,7 @@ buildCounterGoogleExampleLibraryagentV1ListShelvesResponse++; if (buildCounterGoogleExampleLibraryagentV1ListShelvesResponse < 3) { o.nextPageToken = "foo"; - o.shelves = buildUnnamed5346(); + o.shelves = buildUnnamed5745(); } buildCounterGoogleExampleLibraryagentV1ListShelvesResponse--; return o; @@ -140,7 +140,7 @@ buildCounterGoogleExampleLibraryagentV1ListShelvesResponse++; if (buildCounterGoogleExampleLibraryagentV1ListShelvesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5346(o.shelves); + checkUnnamed5745(o.shelves); } buildCounterGoogleExampleLibraryagentV1ListShelvesResponse--; }
diff --git a/generated/googleapis/test/licensing/v1_test.dart b/generated/googleapis/test/licensing/v1_test.dart index 7cef718..434be7a 100644 --- a/generated/googleapis/test/licensing/v1_test.dart +++ b/generated/googleapis/test/licensing/v1_test.dart
@@ -102,14 +102,14 @@ buildCounterLicenseAssignmentInsert--; } -buildUnnamed3874() { +buildUnnamed4073() { var o = new core.List<api.LicenseAssignment>(); o.add(buildLicenseAssignment()); o.add(buildLicenseAssignment()); return o; } -checkUnnamed3874(core.List<api.LicenseAssignment> o) { +checkUnnamed4073(core.List<api.LicenseAssignment> o) { unittest.expect(o, unittest.hasLength(2)); checkLicenseAssignment(o[0]); checkLicenseAssignment(o[1]); @@ -121,7 +121,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { o.etag = "foo"; - o.items = buildUnnamed3874(); + o.items = buildUnnamed4073(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -133,7 +133,7 @@ buildCounterLicenseAssignmentList++; if (buildCounterLicenseAssignmentList < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3874(o.items); + checkUnnamed4073(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -182,6 +182,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/user/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/user/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_userId")); var query = (req.url).query; var queryOffset = 0; @@ -230,6 +254,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/user/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/user/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_userId")); var query = (req.url).query; var queryOffset = 0; @@ -283,6 +331,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/user", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/user")); + pathOffset += 5; var query = (req.url).query; var queryOffset = 0; @@ -334,6 +403,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/users", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/users")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -395,6 +476,27 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/users", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/users")); + pathOffset += 6; var query = (req.url).query; var queryOffset = 0; @@ -458,6 +560,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/user/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/user/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_userId")); var query = (req.url).query; var queryOffset = 0; @@ -513,6 +639,30 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("apps/licensing/v1/product/")); + pathOffset += 26; + index = path.indexOf("/sku/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_productId")); + unittest.expect(path.substring(pathOffset, pathOffset + 5), + unittest.equals("/sku/")); + pathOffset += 5; + index = path.indexOf("/user/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_skuId")); + unittest.expect(path.substring(pathOffset, pathOffset + 6), + unittest.equals("/user/")); + pathOffset += 6; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_userId")); var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/logging/v2_test.dart b/generated/googleapis/test/logging/v2_test.dart index 9390d60..fce229f 100644 --- a/generated/googleapis/test/logging/v2_test.dart +++ b/generated/googleapis/test/logging/v2_test.dart
@@ -132,14 +132,14 @@ buildCounterEmpty--; } -buildUnnamed5014() { +buildUnnamed5394() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed5014(core.List<core.double> o) { +checkUnnamed5394(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)); @@ -150,7 +150,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed5014(); + o.bounds = buildUnnamed5394(); } buildCounterExplicit--; return o; @@ -159,7 +159,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed5014(o.bounds); + checkUnnamed5394(o.bounds); } buildCounterExplicit--; } @@ -280,14 +280,14 @@ buildCounterLinear--; } -buildUnnamed5015() { +buildUnnamed5395() { var o = new core.List<api.LogBucket>(); o.add(buildLogBucket()); o.add(buildLogBucket()); return o; } -checkUnnamed5015(core.List<api.LogBucket> o) { +checkUnnamed5395(core.List<api.LogBucket> o) { unittest.expect(o, unittest.hasLength(2)); checkLogBucket(o[0]); checkLogBucket(o[1]); @@ -298,7 +298,7 @@ var o = new api.ListBucketsResponse(); buildCounterListBucketsResponse++; if (buildCounterListBucketsResponse < 3) { - o.buckets = buildUnnamed5015(); + o.buckets = buildUnnamed5395(); o.nextPageToken = "foo"; } buildCounterListBucketsResponse--; @@ -308,20 +308,20 @@ checkListBucketsResponse(api.ListBucketsResponse o) { buildCounterListBucketsResponse++; if (buildCounterListBucketsResponse < 3) { - checkUnnamed5015(o.buckets); + checkUnnamed5395(o.buckets); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBucketsResponse--; } -buildUnnamed5016() { +buildUnnamed5396() { var o = new core.List<api.LogExclusion>(); o.add(buildLogExclusion()); o.add(buildLogExclusion()); return o; } -checkUnnamed5016(core.List<api.LogExclusion> o) { +checkUnnamed5396(core.List<api.LogExclusion> o) { unittest.expect(o, unittest.hasLength(2)); checkLogExclusion(o[0]); checkLogExclusion(o[1]); @@ -332,7 +332,7 @@ var o = new api.ListExclusionsResponse(); buildCounterListExclusionsResponse++; if (buildCounterListExclusionsResponse < 3) { - o.exclusions = buildUnnamed5016(); + o.exclusions = buildUnnamed5396(); o.nextPageToken = "foo"; } buildCounterListExclusionsResponse--; @@ -342,33 +342,33 @@ checkListExclusionsResponse(api.ListExclusionsResponse o) { buildCounterListExclusionsResponse++; if (buildCounterListExclusionsResponse < 3) { - checkUnnamed5016(o.exclusions); + checkUnnamed5396(o.exclusions); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListExclusionsResponse--; } -buildUnnamed5017() { +buildUnnamed5397() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5017(core.List<core.String> o) { +checkUnnamed5397(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5018() { +buildUnnamed5398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5018(core.List<core.String> o) { +checkUnnamed5398(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -383,8 +383,8 @@ o.orderBy = "foo"; o.pageSize = 42; o.pageToken = "foo"; - o.projectIds = buildUnnamed5017(); - o.resourceNames = buildUnnamed5018(); + o.projectIds = buildUnnamed5397(); + o.resourceNames = buildUnnamed5398(); } buildCounterListLogEntriesRequest--; return o; @@ -397,20 +397,20 @@ unittest.expect(o.orderBy, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); unittest.expect(o.pageToken, unittest.equals('foo')); - checkUnnamed5017(o.projectIds); - checkUnnamed5018(o.resourceNames); + checkUnnamed5397(o.projectIds); + checkUnnamed5398(o.resourceNames); } buildCounterListLogEntriesRequest--; } -buildUnnamed5019() { +buildUnnamed5399() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed5019(core.List<api.LogEntry> o) { +checkUnnamed5399(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); @@ -421,7 +421,7 @@ var o = new api.ListLogEntriesResponse(); buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - o.entries = buildUnnamed5019(); + o.entries = buildUnnamed5399(); o.nextPageToken = "foo"; } buildCounterListLogEntriesResponse--; @@ -431,20 +431,20 @@ checkListLogEntriesResponse(api.ListLogEntriesResponse o) { buildCounterListLogEntriesResponse++; if (buildCounterListLogEntriesResponse < 3) { - checkUnnamed5019(o.entries); + checkUnnamed5399(o.entries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogEntriesResponse--; } -buildUnnamed5020() { +buildUnnamed5400() { var o = new core.List<api.LogMetric>(); o.add(buildLogMetric()); o.add(buildLogMetric()); return o; } -checkUnnamed5020(core.List<api.LogMetric> o) { +checkUnnamed5400(core.List<api.LogMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkLogMetric(o[0]); checkLogMetric(o[1]); @@ -455,7 +455,7 @@ var o = new api.ListLogMetricsResponse(); buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - o.metrics = buildUnnamed5020(); + o.metrics = buildUnnamed5400(); o.nextPageToken = "foo"; } buildCounterListLogMetricsResponse--; @@ -465,20 +465,20 @@ checkListLogMetricsResponse(api.ListLogMetricsResponse o) { buildCounterListLogMetricsResponse++; if (buildCounterListLogMetricsResponse < 3) { - checkUnnamed5020(o.metrics); + checkUnnamed5400(o.metrics); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogMetricsResponse--; } -buildUnnamed5021() { +buildUnnamed5401() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5021(core.List<core.String> o) { +checkUnnamed5401(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -489,7 +489,7 @@ var o = new api.ListLogsResponse(); buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - o.logNames = buildUnnamed5021(); + o.logNames = buildUnnamed5401(); o.nextPageToken = "foo"; } buildCounterListLogsResponse--; @@ -499,20 +499,20 @@ checkListLogsResponse(api.ListLogsResponse o) { buildCounterListLogsResponse++; if (buildCounterListLogsResponse < 3) { - checkUnnamed5021(o.logNames); + checkUnnamed5401(o.logNames); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLogsResponse--; } -buildUnnamed5022() { +buildUnnamed5402() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed5022(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed5402(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -524,7 +524,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed5022(); + o.resourceDescriptors = buildUnnamed5402(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -535,19 +535,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5022(o.resourceDescriptors); + checkUnnamed5402(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed5023() { +buildUnnamed5403() { var o = new core.List<api.LogSink>(); o.add(buildLogSink()); o.add(buildLogSink()); return o; } -checkUnnamed5023(core.List<api.LogSink> o) { +checkUnnamed5403(core.List<api.LogSink> o) { unittest.expect(o, unittest.hasLength(2)); checkLogSink(o[0]); checkLogSink(o[1]); @@ -559,7 +559,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { o.nextPageToken = "foo"; - o.sinks = buildUnnamed5023(); + o.sinks = buildUnnamed5403(); } buildCounterListSinksResponse--; return o; @@ -569,7 +569,7 @@ buildCounterListSinksResponse++; if (buildCounterListSinksResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5023(o.sinks); + checkUnnamed5403(o.sinks); } buildCounterListSinksResponse--; } @@ -582,6 +582,7 @@ o.createTime = "foo"; o.description = "foo"; o.lifecycleState = "foo"; + o.locked = true; o.name = "foo"; o.retentionDays = 42; o.updateTime = "foo"; @@ -596,6 +597,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.lifecycleState, unittest.equals('foo')); + unittest.expect(o.locked, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.retentionDays, unittest.equals(42)); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -603,7 +605,7 @@ buildCounterLogBucket--; } -buildUnnamed5024() { +buildUnnamed5404() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -618,7 +620,7 @@ return o; } -checkUnnamed5024(core.Map<core.String, core.Object> o) { +checkUnnamed5404(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)); @@ -632,20 +634,20 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed5025() { +buildUnnamed5405() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5025(core.Map<core.String, core.String> o) { +checkUnnamed5405(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')); } -buildUnnamed5026() { +buildUnnamed5406() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -660,7 +662,7 @@ return o; } -checkUnnamed5026(core.Map<core.String, core.Object> o) { +checkUnnamed5406(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)); @@ -681,12 +683,12 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.jsonPayload = buildUnnamed5024(); - o.labels = buildUnnamed5025(); + o.jsonPayload = buildUnnamed5404(); + o.labels = buildUnnamed5405(); o.logName = "foo"; o.metadata = buildMonitoredResourceMetadata(); o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed5026(); + o.protoPayload = buildUnnamed5406(); o.receiveTimestamp = "foo"; o.resource = buildMonitoredResource(); o.severity = "foo"; @@ -706,12 +708,12 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed5024(o.jsonPayload); - checkUnnamed5025(o.labels); + checkUnnamed5404(o.jsonPayload); + checkUnnamed5405(o.labels); unittest.expect(o.logName, unittest.equals('foo')); checkMonitoredResourceMetadata(o.metadata); checkLogEntryOperation(o.operation); - checkUnnamed5026(o.protoPayload); + checkUnnamed5406(o.protoPayload); unittest.expect(o.receiveTimestamp, unittest.equals('foo')); checkMonitoredResource(o.resource); unittest.expect(o.severity, unittest.equals('foo')); @@ -827,14 +829,14 @@ buildCounterLogLine--; } -buildUnnamed5027() { +buildUnnamed5407() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5027(core.Map<core.String, core.String> o) { +checkUnnamed5407(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')); @@ -849,7 +851,7 @@ o.createTime = "foo"; o.description = "foo"; o.filter = "foo"; - o.labelExtractors = buildUnnamed5027(); + o.labelExtractors = buildUnnamed5407(); o.metricDescriptor = buildMetricDescriptor(); o.name = "foo"; o.updateTime = "foo"; @@ -867,7 +869,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); - checkUnnamed5027(o.labelExtractors); + checkUnnamed5407(o.labelExtractors); checkMetricDescriptor(o.metricDescriptor); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -877,6 +879,19 @@ buildCounterLogMetric--; } +buildUnnamed5408() { + var o = new core.List<api.LogExclusion>(); + o.add(buildLogExclusion()); + o.add(buildLogExclusion()); + return o; +} + +checkUnnamed5408(core.List<api.LogExclusion> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLogExclusion(o[0]); + checkLogExclusion(o[1]); +} + core.int buildCounterLogSink = 0; buildLogSink() { var o = new api.LogSink(); @@ -887,6 +902,7 @@ o.description = "foo"; o.destination = "foo"; o.disabled = true; + o.exclusions = buildUnnamed5408(); o.filter = "foo"; o.includeChildren = true; o.name = "foo"; @@ -906,6 +922,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.destination, unittest.equals('foo')); unittest.expect(o.disabled, unittest.isTrue); + checkUnnamed5408(o.exclusions); unittest.expect(o.filter, unittest.equals('foo')); unittest.expect(o.includeChildren, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); @@ -916,27 +933,27 @@ buildCounterLogSink--; } -buildUnnamed5028() { +buildUnnamed5409() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed5028(core.List<api.LabelDescriptor> o) { +checkUnnamed5409(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed5029() { +buildUnnamed5410() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5029(core.List<core.String> o) { +checkUnnamed5410(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -949,11 +966,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed5028(); + o.labels = buildUnnamed5409(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed5029(); + o.monitoredResourceTypes = buildUnnamed5410(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -968,11 +985,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed5028(o.labels); + checkUnnamed5409(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed5029(o.monitoredResourceTypes); + checkUnnamed5410(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -1004,14 +1021,14 @@ buildCounterMetricDescriptorMetadata--; } -buildUnnamed5030() { +buildUnnamed5411() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5030(core.Map<core.String, core.String> o) { +checkUnnamed5411(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')); @@ -1022,7 +1039,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed5030(); + o.labels = buildUnnamed5411(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -1032,20 +1049,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed5030(o.labels); + checkUnnamed5411(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed5031() { +buildUnnamed5412() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed5031(core.List<api.LabelDescriptor> o) { +checkUnnamed5412(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1058,7 +1075,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed5031(); + o.labels = buildUnnamed5412(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -1072,7 +1089,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed5031(o.labels); + checkUnnamed5412(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1080,7 +1097,7 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed5032() { +buildUnnamed5413() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1095,7 +1112,7 @@ return o; } -checkUnnamed5032(core.Map<core.String, core.Object> o) { +checkUnnamed5413(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)); @@ -1109,14 +1126,14 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed5033() { +buildUnnamed5414() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5033(core.Map<core.String, core.String> o) { +checkUnnamed5414(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')); @@ -1127,8 +1144,8 @@ var o = new api.MonitoredResourceMetadata(); buildCounterMonitoredResourceMetadata++; if (buildCounterMonitoredResourceMetadata < 3) { - o.systemLabels = buildUnnamed5032(); - o.userLabels = buildUnnamed5033(); + o.systemLabels = buildUnnamed5413(); + o.userLabels = buildUnnamed5414(); } buildCounterMonitoredResourceMetadata--; return o; @@ -1137,33 +1154,33 @@ checkMonitoredResourceMetadata(api.MonitoredResourceMetadata o) { buildCounterMonitoredResourceMetadata++; if (buildCounterMonitoredResourceMetadata < 3) { - checkUnnamed5032(o.systemLabels); - checkUnnamed5033(o.userLabels); + checkUnnamed5413(o.systemLabels); + checkUnnamed5414(o.userLabels); } buildCounterMonitoredResourceMetadata--; } -buildUnnamed5034() { +buildUnnamed5415() { var o = new core.List<api.LogLine>(); o.add(buildLogLine()); o.add(buildLogLine()); return o; } -checkUnnamed5034(core.List<api.LogLine> o) { +checkUnnamed5415(core.List<api.LogLine> o) { unittest.expect(o, unittest.hasLength(2)); checkLogLine(o[0]); checkLogLine(o[1]); } -buildUnnamed5035() { +buildUnnamed5416() { var o = new core.List<api.SourceReference>(); o.add(buildSourceReference()); o.add(buildSourceReference()); return o; } -checkUnnamed5035(core.List<api.SourceReference> o) { +checkUnnamed5416(core.List<api.SourceReference> o) { unittest.expect(o, unittest.hasLength(2)); checkSourceReference(o[0]); checkSourceReference(o[1]); @@ -1186,7 +1203,7 @@ o.instanceIndex = 42; o.ip = "foo"; o.latency = "foo"; - o.line = buildUnnamed5034(); + o.line = buildUnnamed5415(); o.megaCycles = "foo"; o.method = "foo"; o.moduleId = "foo"; @@ -1196,7 +1213,7 @@ o.requestId = "foo"; o.resource = "foo"; o.responseSize = "foo"; - o.sourceReference = buildUnnamed5035(); + o.sourceReference = buildUnnamed5416(); o.startTime = "foo"; o.status = 42; o.taskName = "foo"; @@ -1227,7 +1244,7 @@ unittest.expect(o.instanceIndex, unittest.equals(42)); unittest.expect(o.ip, unittest.equals('foo')); unittest.expect(o.latency, unittest.equals('foo')); - checkUnnamed5034(o.line); + checkUnnamed5415(o.line); unittest.expect(o.megaCycles, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); unittest.expect(o.moduleId, unittest.equals('foo')); @@ -1237,7 +1254,7 @@ unittest.expect(o.requestId, unittest.equals('foo')); unittest.expect(o.resource, unittest.equals('foo')); unittest.expect(o.responseSize, unittest.equals('foo')); - checkUnnamed5035(o.sourceReference); + checkUnnamed5416(o.sourceReference); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.status, unittest.equals(42)); unittest.expect(o.taskName, unittest.equals('foo')); @@ -1296,27 +1313,42 @@ buildCounterSourceReference--; } -buildUnnamed5036() { +core.int buildCounterUndeleteBucketRequest = 0; +buildUndeleteBucketRequest() { + var o = new api.UndeleteBucketRequest(); + buildCounterUndeleteBucketRequest++; + if (buildCounterUndeleteBucketRequest < 3) {} + buildCounterUndeleteBucketRequest--; + return o; +} + +checkUndeleteBucketRequest(api.UndeleteBucketRequest o) { + buildCounterUndeleteBucketRequest++; + if (buildCounterUndeleteBucketRequest < 3) {} + buildCounterUndeleteBucketRequest--; +} + +buildUnnamed5417() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed5036(core.List<api.LogEntry> o) { +checkUnnamed5417(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed5037() { +buildUnnamed5418() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5037(core.Map<core.String, core.String> o) { +checkUnnamed5418(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')); @@ -1328,8 +1360,8 @@ buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { o.dryRun = true; - o.entries = buildUnnamed5036(); - o.labels = buildUnnamed5037(); + o.entries = buildUnnamed5417(); + o.labels = buildUnnamed5418(); o.logName = "foo"; o.partialSuccess = true; o.resource = buildMonitoredResource(); @@ -1342,8 +1374,8 @@ buildCounterWriteLogEntriesRequest++; if (buildCounterWriteLogEntriesRequest < 3) { unittest.expect(o.dryRun, unittest.isTrue); - checkUnnamed5036(o.entries); - checkUnnamed5037(o.labels); + checkUnnamed5417(o.entries); + checkUnnamed5418(o.labels); unittest.expect(o.logName, unittest.equals('foo')); unittest.expect(o.partialSuccess, unittest.isTrue); checkMonitoredResource(o.resource); @@ -1632,6 +1664,14 @@ }); }); + unittest.group("obj-schema-UndeleteBucketRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUndeleteBucketRequest(); + var od = new api.UndeleteBucketRequest.fromJson(o.toJson()); + checkUndeleteBucketRequest(od); + }); + }); + unittest.group("obj-schema-WriteLogEntriesRequest", () { unittest.test("to-json--from-json", () { var o = buildWriteLogEntriesRequest(); @@ -1868,8 +1908,8 @@ api.BillingAccountsExclusionsResourceApi res = new api.LoggingApi(mock).billingAccounts.exclusions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1902,10 +1942,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1916,8 +1956,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -1986,13 +2026,71 @@ }); unittest.group("resource-BillingAccountsLocationsBucketsResourceApi", () { - unittest.test("method--list", () { + unittest.test("method--create", () { var mock = new HttpServerMock(); api.BillingAccountsLocationsBucketsResourceApi res = new api.LoggingApi(mock).billingAccounts.locations.buckets; + var arg_request = buildLogBucket(); var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; + var arg_bucketId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LogBucket.fromJson(json); + checkLogBucket(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["bucketId"].first, unittest.equals(arg_bucketId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLogBucket()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, + bucketId: arg_bucketId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLogBucket(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.BillingAccountsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).billingAccounts.locations.buckets; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2025,10 +2123,64 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.BillingAccountsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).billingAccounts.locations.buckets; + var arg_parent = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2039,8 +2191,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBucketsResponse(response); @@ -2106,6 +2258,62 @@ checkLogBucket(response); }))); }); + + unittest.test("method--undelete", () { + var mock = new HttpServerMock(); + api.BillingAccountsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).billingAccounts.locations.buckets; + var arg_request = buildUndeleteBucketRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteBucketRequest.fromJson(json); + checkUndeleteBucketRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .undelete(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); }); unittest.group("resource-BillingAccountsLogsResourceApi", () { @@ -2166,8 +2374,8 @@ api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingAccounts.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2200,10 +2408,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2214,8 +2422,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -3133,8 +3341,8 @@ api.FoldersExclusionsResourceApi res = new api.LoggingApi(mock).folders.exclusions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3167,10 +3375,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3181,8 +3389,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -3251,6 +3459,118 @@ }); unittest.group("resource-FoldersLocationsBucketsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.FoldersLocationsBucketsResourceApi res = + new api.LoggingApi(mock).folders.locations.buckets; + var arg_request = buildLogBucket(); + var arg_parent = "foo"; + var arg_bucketId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LogBucket.fromJson(json); + checkLogBucket(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["bucketId"].first, unittest.equals(arg_bucketId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLogBucket()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, + bucketId: arg_bucketId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLogBucket(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.FoldersLocationsBucketsResourceApi res = + new api.LoggingApi(mock).folders.locations.buckets; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.FoldersLocationsBucketsResourceApi res = @@ -3308,8 +3628,8 @@ api.FoldersLocationsBucketsResourceApi res = new api.LoggingApi(mock).folders.locations.buckets; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3342,10 +3662,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3356,8 +3676,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBucketsResponse(response); @@ -3423,6 +3743,62 @@ checkLogBucket(response); }))); }); + + unittest.test("method--undelete", () { + var mock = new HttpServerMock(); + api.FoldersLocationsBucketsResourceApi res = + new api.LoggingApi(mock).folders.locations.buckets; + var arg_request = buildUndeleteBucketRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteBucketRequest.fromJson(json); + checkUndeleteBucketRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .undelete(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); }); unittest.group("resource-FoldersLogsResourceApi", () { @@ -3891,6 +4267,118 @@ }); unittest.group("resource-LocationsBucketsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.LocationsBucketsResourceApi res = + new api.LoggingApi(mock).locations.buckets; + var arg_request = buildLogBucket(); + var arg_parent = "foo"; + var arg_bucketId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LogBucket.fromJson(json); + checkLogBucket(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["bucketId"].first, unittest.equals(arg_bucketId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLogBucket()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, + bucketId: arg_bucketId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLogBucket(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.LocationsBucketsResourceApi res = + new api.LoggingApi(mock).locations.buckets; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.LocationsBucketsResourceApi res = @@ -4063,6 +4551,62 @@ checkLogBucket(response); }))); }); + + unittest.test("method--undelete", () { + var mock = new HttpServerMock(); + api.LocationsBucketsResourceApi res = + new api.LoggingApi(mock).locations.buckets; + var arg_request = buildUndeleteBucketRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteBucketRequest.fromJson(json); + checkUndeleteBucketRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .undelete(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); }); unittest.group("resource-LogsResourceApi", () { @@ -4183,8 +4727,8 @@ var mock = new HttpServerMock(); api.MonitoredResourceDescriptorsResourceApi res = new api.LoggingApi(mock).monitoredResourceDescriptors; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4216,10 +4760,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4231,8 +4775,8 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMonitoredResourceDescriptorsResponse(response); @@ -4636,6 +5180,118 @@ }); unittest.group("resource-OrganizationsLocationsBucketsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.OrganizationsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).organizations.locations.buckets; + var arg_request = buildLogBucket(); + var arg_parent = "foo"; + var arg_bucketId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LogBucket.fromJson(json); + checkLogBucket(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["bucketId"].first, unittest.equals(arg_bucketId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLogBucket()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, + bucketId: arg_bucketId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLogBucket(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.OrganizationsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).organizations.locations.buckets; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.OrganizationsLocationsBucketsResourceApi res = @@ -4693,8 +5349,8 @@ api.OrganizationsLocationsBucketsResourceApi res = new api.LoggingApi(mock).organizations.locations.buckets; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4727,10 +5383,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4741,8 +5397,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBucketsResponse(response); @@ -4808,6 +5464,62 @@ checkLogBucket(response); }))); }); + + unittest.test("method--undelete", () { + var mock = new HttpServerMock(); + api.OrganizationsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).organizations.locations.buckets; + var arg_request = buildUndeleteBucketRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteBucketRequest.fromJson(json); + checkUndeleteBucketRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .undelete(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); }); unittest.group("resource-OrganizationsLogsResourceApi", () { @@ -4868,8 +5580,8 @@ api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizations.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4902,10 +5614,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4916,8 +5628,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -5096,8 +5808,8 @@ api.OrganizationsSinksResourceApi res = new api.LoggingApi(mock).organizations.sinks; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5130,10 +5842,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5144,8 +5856,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSinksResponse(response); @@ -5158,8 +5870,8 @@ new api.LoggingApi(mock).organizations.sinks; var arg_request = buildLogSink(); var arg_sinkName = "foo"; - var arg_uniqueWriterIdentity = true; var arg_updateMask = "foo"; + var arg_uniqueWriterIdentity = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); @@ -5195,10 +5907,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["uniqueWriterIdentity"].first, - unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["uniqueWriterIdentity"].first, + unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5209,8 +5921,8 @@ }), true); res .patch(arg_request, arg_sinkName, - uniqueWriterIdentity: arg_uniqueWriterIdentity, updateMask: arg_updateMask, + uniqueWriterIdentity: arg_uniqueWriterIdentity, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLogSink(response); @@ -5223,8 +5935,8 @@ new api.LoggingApi(mock).organizations.sinks; var arg_request = buildLogSink(); var arg_sinkName = "foo"; - var arg_uniqueWriterIdentity = true; var arg_updateMask = "foo"; + var arg_uniqueWriterIdentity = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); @@ -5260,10 +5972,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["uniqueWriterIdentity"].first, - unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["uniqueWriterIdentity"].first, + unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5274,8 +5986,8 @@ }), true); res .update(arg_request, arg_sinkName, - uniqueWriterIdentity: arg_uniqueWriterIdentity, updateMask: arg_updateMask, + uniqueWriterIdentity: arg_uniqueWriterIdentity, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLogSink(response); @@ -5449,8 +6161,8 @@ api.ProjectsExclusionsResourceApi res = new api.LoggingApi(mock).projects.exclusions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5483,10 +6195,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5497,8 +6209,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExclusionsResponse(response); @@ -5567,6 +6279,118 @@ }); unittest.group("resource-ProjectsLocationsBucketsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).projects.locations.buckets; + var arg_request = buildLogBucket(); + var arg_parent = "foo"; + var arg_bucketId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LogBucket.fromJson(json); + checkLogBucket(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["bucketId"].first, unittest.equals(arg_bucketId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLogBucket()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .create(arg_request, arg_parent, + bucketId: arg_bucketId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLogBucket(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).projects.locations.buckets; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.ProjectsLocationsBucketsResourceApi res = @@ -5739,6 +6563,62 @@ checkLogBucket(response); }))); }); + + unittest.test("method--undelete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsBucketsResourceApi res = + new api.LoggingApi(mock).projects.locations.buckets; + var arg_request = buildUndeleteBucketRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UndeleteBucketRequest.fromJson(json); + checkUndeleteBucketRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .undelete(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); }); unittest.group("resource-ProjectsLogsResourceApi", () { @@ -5797,8 +6677,8 @@ var mock = new HttpServerMock(); api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5831,10 +6711,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5845,8 +6725,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLogsResponse(response); @@ -6431,8 +7311,8 @@ new api.LoggingApi(mock).projects.sinks; var arg_request = buildLogSink(); var arg_sinkName = "foo"; - var arg_uniqueWriterIdentity = true; var arg_updateMask = "foo"; + var arg_uniqueWriterIdentity = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LogSink.fromJson(json); @@ -6468,10 +7348,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["uniqueWriterIdentity"].first, - unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect(queryMap["uniqueWriterIdentity"].first, + unittest.equals("$arg_uniqueWriterIdentity")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6482,8 +7362,8 @@ }), true); res .update(arg_request, arg_sinkName, - uniqueWriterIdentity: arg_uniqueWriterIdentity, updateMask: arg_updateMask, + uniqueWriterIdentity: arg_uniqueWriterIdentity, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLogSink(response); @@ -6658,8 +7538,8 @@ var mock = new HttpServerMock(); api.SinksResourceApi res = new api.LoggingApi(mock).sinks; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6692,10 +7572,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6706,8 +7586,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSinksResponse(response);
diff --git a/generated/googleapis/test/managedidentities/v1_test.dart b/generated/googleapis/test/managedidentities/v1_test.dart index fc5ee7b..557956d 100644 --- a/generated/googleapis/test/managedidentities/v1_test.dart +++ b/generated/googleapis/test/managedidentities/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterAttachTrustRequest--; } -buildUnnamed2645() { +buildUnnamed2777() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2645(core.List<core.String> o) { +checkUnnamed2777(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -87,8 +87,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed2645(); + o.members = buildUnnamed2777(); o.role = "foo"; } buildCounterBinding--; @@ -98,8 +99,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed2645(o.members); + checkUnnamed2777(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -139,53 +141,53 @@ buildCounterDetachTrustRequest--; } -buildUnnamed2646() { +buildUnnamed2778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2646(core.List<core.String> o) { +checkUnnamed2778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2647() { +buildUnnamed2779() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2647(core.Map<core.String, core.String> o) { +checkUnnamed2779(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')); } -buildUnnamed2648() { +buildUnnamed2780() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2648(core.List<core.String> o) { +checkUnnamed2780(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2649() { +buildUnnamed2781() { var o = new core.List<api.Trust>(); o.add(buildTrust()); o.add(buildTrust()); return o; } -checkUnnamed2649(core.List<api.Trust> o) { +checkUnnamed2781(core.List<api.Trust> o) { unittest.expect(o, unittest.hasLength(2)); checkTrust(o[0]); checkTrust(o[1]); @@ -197,16 +199,16 @@ buildCounterDomain++; if (buildCounterDomain < 3) { o.admin = "foo"; - o.authorizedNetworks = buildUnnamed2646(); + o.authorizedNetworks = buildUnnamed2778(); o.createTime = "foo"; o.fqdn = "foo"; - o.labels = buildUnnamed2647(); - o.locations = buildUnnamed2648(); + o.labels = buildUnnamed2779(); + o.locations = buildUnnamed2780(); o.name = "foo"; o.reservedIpRange = "foo"; o.state = "foo"; o.statusMessage = "foo"; - o.trusts = buildUnnamed2649(); + o.trusts = buildUnnamed2781(); o.updateTime = "foo"; } buildCounterDomain--; @@ -217,16 +219,16 @@ buildCounterDomain++; if (buildCounterDomain < 3) { unittest.expect(o.admin, unittest.equals('foo')); - checkUnnamed2646(o.authorizedNetworks); + checkUnnamed2778(o.authorizedNetworks); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.fqdn, unittest.equals('foo')); - checkUnnamed2647(o.labels); - checkUnnamed2648(o.locations); + checkUnnamed2779(o.labels); + checkUnnamed2780(o.locations); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.reservedIpRange, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.statusMessage, unittest.equals('foo')); - checkUnnamed2649(o.trusts); + checkUnnamed2781(o.trusts); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterDomain--; @@ -362,33 +364,33 @@ buildCounterGoogleCloudManagedidentitiesV1beta1OpMetadata--; } -buildUnnamed2650() { +buildUnnamed2782() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2650(core.Map<core.String, core.String> o) { +checkUnnamed2782(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')); } -buildUnnamed2651() { +buildUnnamed2783() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2651(core.Map<core.String, core.String> o) { +checkUnnamed2783(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')); } -buildUnnamed2652() { +buildUnnamed2784() { var o = new core.Map<core.String, api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule>(); o["x"] = @@ -398,7 +400,7 @@ return o; } -checkUnnamed2652( +checkUnnamed2784( core.Map<core.String, api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule> o) { @@ -409,20 +411,20 @@ o["y"]); } -buildUnnamed2653() { +buildUnnamed2785() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2653(core.Map<core.String, core.String> o) { +checkUnnamed2785(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')); } -buildUnnamed2654() { +buildUnnamed2786() { var o = new core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource>(); o.add( @@ -432,7 +434,7 @@ return o; } -checkUnnamed2654( +checkUnnamed2786( core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource> o) { @@ -441,14 +443,14 @@ checkGoogleCloudSaasacceleratorManagementProvidersV1ProvisionedResource(o[1]); } -buildUnnamed2655() { +buildUnnamed2787() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2655(core.Map<core.String, core.String> o) { +checkUnnamed2787(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')); @@ -462,16 +464,18 @@ if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1Instance < 3) { o.consumerDefinedName = "foo"; o.createTime = "foo"; - o.labels = buildUnnamed2650(); - o.maintenancePolicyNames = buildUnnamed2651(); - o.maintenanceSchedules = buildUnnamed2652(); + o.labels = buildUnnamed2782(); + o.maintenancePolicyNames = buildUnnamed2783(); + o.maintenanceSchedules = buildUnnamed2784(); + o.maintenanceSettings = + buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); o.name = "foo"; - o.producerMetadata = buildUnnamed2653(); - o.provisionedResources = buildUnnamed2654(); + o.producerMetadata = buildUnnamed2785(); + o.provisionedResources = buildUnnamed2786(); o.slmInstanceTemplate = "foo"; o.sloMetadata = buildGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata(); - o.softwareVersions = buildUnnamed2655(); + o.softwareVersions = buildUnnamed2787(); o.state = "foo"; o.tenantProjectId = "foo"; o.updateTime = "foo"; @@ -486,16 +490,18 @@ if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1Instance < 3) { unittest.expect(o.consumerDefinedName, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed2650(o.labels); - checkUnnamed2651(o.maintenancePolicyNames); - checkUnnamed2652(o.maintenanceSchedules); + checkUnnamed2782(o.labels); + checkUnnamed2783(o.maintenancePolicyNames); + checkUnnamed2784(o.maintenanceSchedules); + checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + o.maintenanceSettings); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2653(o.producerMetadata); - checkUnnamed2654(o.provisionedResources); + checkUnnamed2785(o.producerMetadata); + checkUnnamed2786(o.provisionedResources); unittest.expect(o.slmInstanceTemplate, unittest.equals('foo')); checkGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata( o.sloMetadata); - checkUnnamed2655(o.softwareVersions); + checkUnnamed2787(o.softwareVersions); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.tenantProjectId, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -534,7 +540,32 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSchedule--; } -buildUnnamed2656() { +core.int + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings = + 0; +buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings() { + var o = new api + .GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings++; + if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings < + 3) { + o.exclude = true; + } + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings--; + return o; +} + +checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + api.GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings o) { + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings++; + if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings < + 3) { + unittest.expect(o.exclude, unittest.isTrue); + } + buildCounterGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings--; +} + +buildUnnamed2788() { var o = new core .List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion()); @@ -542,7 +573,7 @@ return o; } -checkUnnamed2656( +checkUnnamed2788( core.List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion> o) { unittest.expect(o, unittest.hasLength(2)); @@ -559,7 +590,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata++; if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata < 3) { - o.exclusions = buildUnnamed2656(); + o.exclusions = buildUnnamed2788(); o.location = "foo"; o.nodeId = "foo"; } @@ -572,7 +603,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata++; if (buildCounterGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata < 3) { - checkUnnamed2656(o.exclusions); + checkUnnamed2788(o.exclusions); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.nodeId, unittest.equals('foo')); } @@ -662,7 +693,7 @@ buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion--; } -buildUnnamed2657() { +buildUnnamed2789() { var o = new core .List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion()); @@ -670,7 +701,7 @@ return o; } -checkUnnamed2657( +checkUnnamed2789( core.List<api.GoogleCloudSaasacceleratorManagementProvidersV1SloExclusion> o) { unittest.expect(o, unittest.hasLength(2)); @@ -678,7 +709,7 @@ checkGoogleCloudSaasacceleratorManagementProvidersV1SloExclusion(o[1]); } -buildUnnamed2658() { +buildUnnamed2790() { var o = new core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata>(); o.add(buildGoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata()); @@ -686,7 +717,7 @@ return o; } -checkUnnamed2658( +checkUnnamed2790( core.List< api.GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata> o) { @@ -704,8 +735,8 @@ 3) { o.eligibility = buildGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility(); - o.exclusions = buildUnnamed2657(); - o.nodes = buildUnnamed2658(); + o.exclusions = buildUnnamed2789(); + o.nodes = buildUnnamed2790(); o.tier = "foo"; } buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata--; @@ -719,34 +750,34 @@ 3) { checkGoogleCloudSaasacceleratorManagementProvidersV1SloEligibility( o.eligibility); - checkUnnamed2657(o.exclusions); - checkUnnamed2658(o.nodes); + checkUnnamed2789(o.exclusions); + checkUnnamed2790(o.nodes); unittest.expect(o.tier, unittest.equals('foo')); } buildCounterGoogleCloudSaasacceleratorManagementProvidersV1SloMetadata--; } -buildUnnamed2659() { +buildUnnamed2791() { var o = new core.List<api.Domain>(); o.add(buildDomain()); o.add(buildDomain()); return o; } -checkUnnamed2659(core.List<api.Domain> o) { +checkUnnamed2791(core.List<api.Domain> o) { unittest.expect(o, unittest.hasLength(2)); checkDomain(o[0]); checkDomain(o[1]); } -buildUnnamed2660() { +buildUnnamed2792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2660(core.List<core.String> o) { +checkUnnamed2792(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -757,9 +788,9 @@ var o = new api.ListDomainsResponse(); buildCounterListDomainsResponse++; if (buildCounterListDomainsResponse < 3) { - o.domains = buildUnnamed2659(); + o.domains = buildUnnamed2791(); o.nextPageToken = "foo"; - o.unreachable = buildUnnamed2660(); + o.unreachable = buildUnnamed2792(); } buildCounterListDomainsResponse--; return o; @@ -768,21 +799,21 @@ checkListDomainsResponse(api.ListDomainsResponse o) { buildCounterListDomainsResponse++; if (buildCounterListDomainsResponse < 3) { - checkUnnamed2659(o.domains); + checkUnnamed2791(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2660(o.unreachable); + checkUnnamed2792(o.unreachable); } buildCounterListDomainsResponse--; } -buildUnnamed2661() { +buildUnnamed2793() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed2661(core.List<api.Location> o) { +checkUnnamed2793(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -793,7 +824,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed2661(); + o.locations = buildUnnamed2793(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -803,20 +834,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed2661(o.locations); + checkUnnamed2793(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed2662() { +buildUnnamed2794() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2662(core.List<api.Operation> o) { +checkUnnamed2794(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -828,7 +859,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2662(); + o.operations = buildUnnamed2794(); } buildCounterListOperationsResponse--; return o; @@ -838,25 +869,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2662(o.operations); + checkUnnamed2794(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2663() { +buildUnnamed2795() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2663(core.Map<core.String, core.String> o) { +checkUnnamed2795(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')); } -buildUnnamed2664() { +buildUnnamed2796() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -871,7 +902,7 @@ return o; } -checkUnnamed2664(core.Map<core.String, core.Object> o) { +checkUnnamed2796(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)); @@ -891,9 +922,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed2663(); + o.labels = buildUnnamed2795(); o.locationId = "foo"; - o.metadata = buildUnnamed2664(); + o.metadata = buildUnnamed2796(); o.name = "foo"; } buildCounterLocation--; @@ -904,15 +935,15 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2663(o.labels); + checkUnnamed2795(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed2664(o.metadata); + checkUnnamed2796(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed2665() { +buildUnnamed2797() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -927,7 +958,7 @@ return o; } -checkUnnamed2665(core.Map<core.String, core.Object> o) { +checkUnnamed2797(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)); @@ -941,7 +972,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed2666() { +buildUnnamed2798() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -956,7 +987,7 @@ return o; } -checkUnnamed2666(core.Map<core.String, core.Object> o) { +checkUnnamed2798(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)); @@ -977,9 +1008,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2665(); + o.metadata = buildUnnamed2797(); o.name = "foo"; - o.response = buildUnnamed2666(); + o.response = buildUnnamed2798(); } buildCounterOperation--; return o; @@ -990,9 +1021,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2665(o.metadata); + checkUnnamed2797(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2666(o.response); + checkUnnamed2798(o.response); } buildCounterOperation--; } @@ -1028,14 +1059,14 @@ buildCounterOperationMetadata--; } -buildUnnamed2667() { +buildUnnamed2799() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2667(core.List<api.Binding> o) { +checkUnnamed2799(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1046,7 +1077,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed2667(); + o.bindings = buildUnnamed2799(); o.etag = "foo"; o.version = 42; } @@ -1057,21 +1088,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2667(o.bindings); + checkUnnamed2799(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2668() { +buildUnnamed2800() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2668(core.List<core.String> o) { +checkUnnamed2800(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1082,7 +1113,7 @@ var o = new api.ReconfigureTrustRequest(); buildCounterReconfigureTrustRequest++; if (buildCounterReconfigureTrustRequest < 3) { - o.targetDnsIpAddresses = buildUnnamed2668(); + o.targetDnsIpAddresses = buildUnnamed2800(); o.targetDomainName = "foo"; } buildCounterReconfigureTrustRequest--; @@ -1092,7 +1123,7 @@ checkReconfigureTrustRequest(api.ReconfigureTrustRequest o) { buildCounterReconfigureTrustRequest++; if (buildCounterReconfigureTrustRequest < 3) { - checkUnnamed2668(o.targetDnsIpAddresses); + checkUnnamed2800(o.targetDnsIpAddresses); unittest.expect(o.targetDomainName, unittest.equals('foo')); } buildCounterReconfigureTrustRequest--; @@ -1151,7 +1182,7 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed2669() { +buildUnnamed2801() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1166,7 +1197,7 @@ return o; } -checkUnnamed2669(core.Map<core.String, core.Object> o) { +checkUnnamed2801(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)); @@ -1180,17 +1211,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed2670() { +buildUnnamed2802() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2669()); - o.add(buildUnnamed2669()); + o.add(buildUnnamed2801()); + o.add(buildUnnamed2801()); return o; } -checkUnnamed2670(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2802(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2669(o[0]); - checkUnnamed2669(o[1]); + checkUnnamed2801(o[0]); + checkUnnamed2801(o[1]); } core.int buildCounterStatus = 0; @@ -1199,7 +1230,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2670(); + o.details = buildUnnamed2802(); o.message = "foo"; } buildCounterStatus--; @@ -1210,20 +1241,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2670(o.details); + checkUnnamed2802(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed2671() { +buildUnnamed2803() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2671(core.List<core.String> o) { +checkUnnamed2803(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1234,7 +1265,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2671(); + o.permissions = buildUnnamed2803(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1243,19 +1274,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2671(o.permissions); + checkUnnamed2803(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2672() { +buildUnnamed2804() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2672(core.List<core.String> o) { +checkUnnamed2804(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1266,7 +1297,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2672(); + o.permissions = buildUnnamed2804(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1275,19 +1306,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2672(o.permissions); + checkUnnamed2804(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2673() { +buildUnnamed2805() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2673(core.List<core.String> o) { +checkUnnamed2805(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1303,7 +1334,7 @@ o.selectiveAuthentication = true; o.state = "foo"; o.stateDescription = "foo"; - o.targetDnsIpAddresses = buildUnnamed2673(); + o.targetDnsIpAddresses = buildUnnamed2805(); o.targetDomainName = "foo"; o.trustDirection = "foo"; o.trustHandshakeSecret = "foo"; @@ -1322,7 +1353,7 @@ unittest.expect(o.selectiveAuthentication, unittest.isTrue); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.stateDescription, unittest.equals('foo')); - checkUnnamed2673(o.targetDnsIpAddresses); + checkUnnamed2805(o.targetDnsIpAddresses); unittest.expect(o.targetDomainName, unittest.equals('foo')); unittest.expect(o.trustDirection, unittest.equals('foo')); unittest.expect(o.trustHandshakeSecret, unittest.equals('foo')); @@ -1463,6 +1494,20 @@ }); unittest.group( + "obj-schema-GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings(); + var od = new api + .GoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings.fromJson( + o.toJson()); + checkGoogleCloudSaasacceleratorManagementProvidersV1MaintenanceSettings( + od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudSaasacceleratorManagementProvidersV1NodeSloMetadata", () { unittest.test("to-json--from-json", () { @@ -1714,9 +1759,9 @@ new api.ManagedidentitiesApi(mock).projects.locations; var arg_name = "foo"; var arg_includeUnrevealedLocations = true; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1751,11 +1796,11 @@ } unittest.expect(queryMap["includeUnrevealedLocations"].first, unittest.equals("$arg_includeUnrevealedLocations")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1767,9 +1812,9 @@ res .list(arg_name, includeUnrevealedLocations: arg_includeUnrevealedLocations, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -2118,10 +2163,10 @@ api.ProjectsLocationsGlobalDomainsResourceApi res = new api.ManagedidentitiesApi(mock).projects.locations.global.domains; var arg_parent = "foo"; - var arg_pageSize = 42; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_orderBy = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2154,13 +2199,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2171,10 +2216,10 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, - filter: arg_filter, pageToken: arg_pageToken, orderBy: arg_orderBy, + pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDomainsResponse(response); @@ -2704,9 +2749,9 @@ .global .operations; var arg_name = "foo"; - var arg_pageSize = 42; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2739,11 +2784,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2754,9 +2799,9 @@ }), true); res .list(arg_name, - pageSize: arg_pageSize, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/manufacturers/v1_test.dart b/generated/googleapis/test/manufacturers/v1_test.dart index 07fc7e3..56c6f29 100644 --- a/generated/googleapis/test/manufacturers/v1_test.dart +++ b/generated/googleapis/test/manufacturers/v1_test.dart
@@ -50,118 +50,118 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3912() { +buildUnnamed4111() { var o = new core.List<api.Image>(); o.add(buildImage()); o.add(buildImage()); return o; } -checkUnnamed3912(core.List<api.Image> o) { +checkUnnamed4111(core.List<api.Image> o) { unittest.expect(o, unittest.hasLength(2)); checkImage(o[0]); checkImage(o[1]); } -buildUnnamed3913() { +buildUnnamed4112() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3913(core.List<core.String> o) { +checkUnnamed4112(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3914() { +buildUnnamed4113() { var o = new core.List<api.FeatureDescription>(); o.add(buildFeatureDescription()); o.add(buildFeatureDescription()); return o; } -checkUnnamed3914(core.List<api.FeatureDescription> o) { +checkUnnamed4113(core.List<api.FeatureDescription> o) { unittest.expect(o, unittest.hasLength(2)); checkFeatureDescription(o[0]); checkFeatureDescription(o[1]); } -buildUnnamed3915() { +buildUnnamed4114() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3915(core.List<core.String> o) { +checkUnnamed4114(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3916() { +buildUnnamed4115() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3916(core.List<core.String> o) { +checkUnnamed4115(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3917() { +buildUnnamed4116() { var o = new core.List<api.ProductDetail>(); o.add(buildProductDetail()); o.add(buildProductDetail()); return o; } -checkUnnamed3917(core.List<api.ProductDetail> o) { +checkUnnamed4116(core.List<api.ProductDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkProductDetail(o[0]); checkProductDetail(o[1]); } -buildUnnamed3918() { +buildUnnamed4117() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3918(core.List<core.String> o) { +checkUnnamed4117(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3919() { +buildUnnamed4118() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3919(core.List<core.String> o) { +checkUnnamed4118(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3920() { +buildUnnamed4119() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3920(core.List<core.String> o) { +checkUnnamed4119(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -172,7 +172,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.additionalImageLink = buildUnnamed3912(); + o.additionalImageLink = buildUnnamed4111(); o.ageGroup = "foo"; o.brand = "foo"; o.capacity = buildCapacity(); @@ -180,25 +180,25 @@ o.count = buildCount(); o.description = "foo"; o.disclosureDate = "foo"; - o.excludedDestination = buildUnnamed3913(); - o.featureDescription = buildUnnamed3914(); + o.excludedDestination = buildUnnamed4112(); + o.featureDescription = buildUnnamed4113(); o.flavor = "foo"; o.format = "foo"; o.gender = "foo"; - o.gtin = buildUnnamed3915(); + o.gtin = buildUnnamed4114(); o.imageLink = buildImage(); - o.includedDestination = buildUnnamed3916(); + o.includedDestination = buildUnnamed4115(); o.itemGroupId = "foo"; o.material = "foo"; o.mpn = "foo"; o.pattern = "foo"; - o.productDetail = buildUnnamed3917(); + o.productDetail = buildUnnamed4116(); o.productLine = "foo"; o.productName = "foo"; o.productPageUrl = "foo"; - o.productType = buildUnnamed3918(); + o.productType = buildUnnamed4117(); o.releaseDate = "foo"; - o.richProductContent = buildUnnamed3919(); + o.richProductContent = buildUnnamed4118(); o.scent = "foo"; o.size = "foo"; o.sizeSystem = "foo"; @@ -207,7 +207,7 @@ o.targetClientId = "foo"; o.theme = "foo"; o.title = "foo"; - o.videoLink = buildUnnamed3920(); + o.videoLink = buildUnnamed4119(); } buildCounterAttributes--; return o; @@ -216,7 +216,7 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed3912(o.additionalImageLink); + checkUnnamed4111(o.additionalImageLink); unittest.expect(o.ageGroup, unittest.equals('foo')); unittest.expect(o.brand, unittest.equals('foo')); checkCapacity(o.capacity); @@ -224,25 +224,25 @@ checkCount(o.count); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.disclosureDate, unittest.equals('foo')); - checkUnnamed3913(o.excludedDestination); - checkUnnamed3914(o.featureDescription); + checkUnnamed4112(o.excludedDestination); + checkUnnamed4113(o.featureDescription); unittest.expect(o.flavor, unittest.equals('foo')); unittest.expect(o.format, unittest.equals('foo')); unittest.expect(o.gender, unittest.equals('foo')); - checkUnnamed3915(o.gtin); + checkUnnamed4114(o.gtin); checkImage(o.imageLink); - checkUnnamed3916(o.includedDestination); + checkUnnamed4115(o.includedDestination); unittest.expect(o.itemGroupId, unittest.equals('foo')); unittest.expect(o.material, unittest.equals('foo')); unittest.expect(o.mpn, unittest.equals('foo')); unittest.expect(o.pattern, unittest.equals('foo')); - checkUnnamed3917(o.productDetail); + checkUnnamed4116(o.productDetail); unittest.expect(o.productLine, unittest.equals('foo')); unittest.expect(o.productName, unittest.equals('foo')); unittest.expect(o.productPageUrl, unittest.equals('foo')); - checkUnnamed3918(o.productType); + checkUnnamed4117(o.productType); unittest.expect(o.releaseDate, unittest.equals('foo')); - checkUnnamed3919(o.richProductContent); + checkUnnamed4118(o.richProductContent); unittest.expect(o.scent, unittest.equals('foo')); unittest.expect(o.size, unittest.equals('foo')); unittest.expect(o.sizeSystem, unittest.equals('foo')); @@ -251,7 +251,7 @@ unittest.expect(o.targetClientId, unittest.equals('foo')); unittest.expect(o.theme, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed3920(o.videoLink); + checkUnnamed4119(o.videoLink); } buildCounterAttributes--; } @@ -413,14 +413,14 @@ buildCounterIssue--; } -buildUnnamed3921() { +buildUnnamed4120() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed3921(core.List<api.Product> o) { +checkUnnamed4120(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -432,7 +432,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed3921(); + o.products = buildUnnamed4120(); } buildCounterListProductsResponse--; return o; @@ -442,7 +442,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3921(o.products); + checkUnnamed4120(o.products); } buildCounterListProductsResponse--; } @@ -468,27 +468,27 @@ buildCounterPrice--; } -buildUnnamed3922() { +buildUnnamed4121() { var o = new core.List<api.DestinationStatus>(); o.add(buildDestinationStatus()); o.add(buildDestinationStatus()); return o; } -checkUnnamed3922(core.List<api.DestinationStatus> o) { +checkUnnamed4121(core.List<api.DestinationStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkDestinationStatus(o[0]); checkDestinationStatus(o[1]); } -buildUnnamed3923() { +buildUnnamed4122() { var o = new core.List<api.Issue>(); o.add(buildIssue()); o.add(buildIssue()); return o; } -checkUnnamed3923(core.List<api.Issue> o) { +checkUnnamed4122(core.List<api.Issue> o) { unittest.expect(o, unittest.hasLength(2)); checkIssue(o[0]); checkIssue(o[1]); @@ -501,8 +501,8 @@ if (buildCounterProduct < 3) { o.attributes = buildAttributes(); o.contentLanguage = "foo"; - o.destinationStatuses = buildUnnamed3922(); - o.issues = buildUnnamed3923(); + o.destinationStatuses = buildUnnamed4121(); + o.issues = buildUnnamed4122(); o.name = "foo"; o.parent = "foo"; o.productId = "foo"; @@ -517,8 +517,8 @@ if (buildCounterProduct < 3) { checkAttributes(o.attributes); unittest.expect(o.contentLanguage, unittest.equals('foo')); - checkUnnamed3922(o.destinationStatuses); - checkUnnamed3923(o.issues); + checkUnnamed4121(o.destinationStatuses); + checkUnnamed4122(o.issues); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.productId, unittest.equals('foo')); @@ -550,27 +550,27 @@ buildCounterProductDetail--; } -buildUnnamed3924() { +buildUnnamed4123() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3924(core.List<core.String> o) { +checkUnnamed4123(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3925() { +buildUnnamed4124() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3925(core.List<core.String> o) { +checkUnnamed4124(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -733,7 +733,7 @@ new api.ManufacturersApi(mock).accounts.products; var arg_parent = "foo"; var arg_name = "foo"; - var arg_include = buildUnnamed3924(); + var arg_include = buildUnnamed4123(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -787,7 +787,7 @@ api.AccountsProductsResourceApi res = new api.ManufacturersApi(mock).accounts.products; var arg_parent = "foo"; - var arg_include = buildUnnamed3925(); + var arg_include = buildUnnamed4124(); var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_$fields = "foo";
diff --git a/generated/googleapis/test/ml/v1_test.dart b/generated/googleapis/test/ml/v1_test.dart index 981d714..69c7994 100644 --- a/generated/googleapis/test/ml/v1_test.dart +++ b/generated/googleapis/test/ml/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3271() { +buildUnnamed3427() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed3271(core.Map<core.String, core.Object> o) { +checkUnnamed3427(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)); @@ -79,17 +79,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3272() { +buildUnnamed3428() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3271()); - o.add(buildUnnamed3271()); + o.add(buildUnnamed3427()); + o.add(buildUnnamed3427()); return o; } -checkUnnamed3272(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3428(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3271(o[0]); - checkUnnamed3271(o[1]); + checkUnnamed3427(o[0]); + checkUnnamed3427(o[1]); } core.int buildCounterGoogleApiHttpBody = 0; @@ -99,7 +99,7 @@ if (buildCounterGoogleApiHttpBody < 3) { o.contentType = "foo"; o.data = "foo"; - o.extensions = buildUnnamed3272(); + o.extensions = buildUnnamed3428(); } buildCounterGoogleApiHttpBody--; return o; @@ -110,7 +110,7 @@ if (buildCounterGoogleApiHttpBody < 3) { unittest.expect(o.contentType, unittest.equals('foo')); unittest.expect(o.data, unittest.equals('foo')); - checkUnnamed3272(o.extensions); + checkUnnamed3428(o.extensions); } buildCounterGoogleApiHttpBody--; } @@ -210,14 +210,14 @@ buildCounterGoogleCloudMlV1MeasurementMetric--; } -buildUnnamed3273() { +buildUnnamed3429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3273(core.List<core.String> o) { +checkUnnamed3429(core.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,7 +230,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec < 3) { - o.values = buildUnnamed3273(); + o.values = buildUnnamed3429(); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec--; return o; @@ -241,19 +241,19 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec < 3) { - checkUnnamed3273(o.values); + checkUnnamed3429(o.values); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec--; } -buildUnnamed3274() { +buildUnnamed3430() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3274(core.List<core.double> o) { +checkUnnamed3430(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)); @@ -266,7 +266,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec < 3) { - o.values = buildUnnamed3274(); + o.values = buildUnnamed3430(); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec--; return o; @@ -277,7 +277,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec < 3) { - checkUnnamed3274(o.values); + checkUnnamed3430(o.values); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec--; } @@ -327,14 +327,14 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecIntegerValueSpec--; } -buildUnnamed3275() { +buildUnnamed3431() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3275(core.List<core.String> o) { +checkUnnamed3431(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -349,7 +349,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec < 3) { - o.values = buildUnnamed3275(); + o.values = buildUnnamed3431(); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec--; return o; @@ -361,19 +361,19 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec < 3) { - checkUnnamed3275(o.values); + checkUnnamed3431(o.values); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentCategoricalValueSpec--; } -buildUnnamed3276() { +buildUnnamed3432() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3276(core.List<core.double> o) { +checkUnnamed3432(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)); @@ -388,7 +388,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec < 3) { - o.values = buildUnnamed3276(); + o.values = buildUnnamed3432(); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec--; return o; @@ -400,19 +400,19 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec < 3) { - checkUnnamed3276(o.values); + checkUnnamed3432(o.values); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentDiscreteValueSpec--; } -buildUnnamed3277() { +buildUnnamed3433() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3277(core.List<core.String> o) { +checkUnnamed3433(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -427,7 +427,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec < 3) { - o.values = buildUnnamed3277(); + o.values = buildUnnamed3433(); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec--; return o; @@ -438,7 +438,7 @@ buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec++; if (buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec < 3) { - checkUnnamed3277(o.values); + checkUnnamed3433(o.values); } buildCounterGoogleCloudMlV1StudyConfigParameterSpecMatchingParentIntValueSpec--; } @@ -465,14 +465,14 @@ buildCounterGoogleCloudMlV1StudyConfigMetricSpec--; } -buildUnnamed3278() { +buildUnnamed3434() { var o = new core.List<api.GoogleCloudMlV1StudyConfigParameterSpec>(); o.add(buildGoogleCloudMlV1StudyConfigParameterSpec()); o.add(buildGoogleCloudMlV1StudyConfigParameterSpec()); return o; } -checkUnnamed3278(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) { +checkUnnamed3434(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1StudyConfigParameterSpec(o[0]); checkGoogleCloudMlV1StudyConfigParameterSpec(o[1]); @@ -485,7 +485,7 @@ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpec < 3) { o.categoricalValueSpec = buildGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec(); - o.childParameterSpecs = buildUnnamed3278(); + o.childParameterSpecs = buildUnnamed3434(); o.discreteValueSpec = buildGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec(); o.doubleValueSpec = @@ -512,7 +512,7 @@ if (buildCounterGoogleCloudMlV1StudyConfigParameterSpec < 3) { checkGoogleCloudMlV1StudyConfigParameterSpecCategoricalValueSpec( o.categoricalValueSpec); - checkUnnamed3278(o.childParameterSpecs); + checkUnnamed3434(o.childParameterSpecs); checkGoogleCloudMlV1StudyConfigParameterSpecDiscreteValueSpec( o.discreteValueSpec); checkGoogleCloudMlV1StudyConfigParameterSpecDoubleValueSpec( @@ -684,14 +684,14 @@ buildCounterGoogleCloudMlV1CancelJobRequest--; } -buildUnnamed3279() { +buildUnnamed3435() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3279(core.List<core.String> o) { +checkUnnamed3435(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -702,7 +702,7 @@ var o = new api.GoogleCloudMlV1Capability(); buildCounterGoogleCloudMlV1Capability++; if (buildCounterGoogleCloudMlV1Capability < 3) { - o.availableAccelerators = buildUnnamed3279(); + o.availableAccelerators = buildUnnamed3435(); o.type = "foo"; } buildCounterGoogleCloudMlV1Capability--; @@ -712,7 +712,7 @@ checkGoogleCloudMlV1Capability(api.GoogleCloudMlV1Capability o) { buildCounterGoogleCloudMlV1Capability++; if (buildCounterGoogleCloudMlV1Capability < 3) { - checkUnnamed3279(o.availableAccelerators); + checkUnnamed3435(o.availableAccelerators); unittest.expect(o.type, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Capability--; @@ -825,6 +825,104 @@ buildCounterGoogleCloudMlV1Config--; } +core.int buildCounterGoogleCloudMlV1ContainerPort = 0; +buildGoogleCloudMlV1ContainerPort() { + var o = new api.GoogleCloudMlV1ContainerPort(); + buildCounterGoogleCloudMlV1ContainerPort++; + if (buildCounterGoogleCloudMlV1ContainerPort < 3) { + o.containerPort = 42; + } + buildCounterGoogleCloudMlV1ContainerPort--; + return o; +} + +checkGoogleCloudMlV1ContainerPort(api.GoogleCloudMlV1ContainerPort o) { + buildCounterGoogleCloudMlV1ContainerPort++; + if (buildCounterGoogleCloudMlV1ContainerPort < 3) { + unittest.expect(o.containerPort, unittest.equals(42)); + } + buildCounterGoogleCloudMlV1ContainerPort--; +} + +buildUnnamed3436() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3436(core.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() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3437(core.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() { + var o = new core.List<api.GoogleCloudMlV1EnvVar>(); + o.add(buildGoogleCloudMlV1EnvVar()); + o.add(buildGoogleCloudMlV1EnvVar()); + return o; +} + +checkUnnamed3438(core.List<api.GoogleCloudMlV1EnvVar> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1EnvVar(o[0]); + checkGoogleCloudMlV1EnvVar(o[1]); +} + +buildUnnamed3439() { + var o = new core.List<api.GoogleCloudMlV1ContainerPort>(); + o.add(buildGoogleCloudMlV1ContainerPort()); + o.add(buildGoogleCloudMlV1ContainerPort()); + return o; +} + +checkUnnamed3439(core.List<api.GoogleCloudMlV1ContainerPort> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudMlV1ContainerPort(o[0]); + checkGoogleCloudMlV1ContainerPort(o[1]); +} + +core.int buildCounterGoogleCloudMlV1ContainerSpec = 0; +buildGoogleCloudMlV1ContainerSpec() { + var o = new api.GoogleCloudMlV1ContainerSpec(); + buildCounterGoogleCloudMlV1ContainerSpec++; + if (buildCounterGoogleCloudMlV1ContainerSpec < 3) { + o.args = buildUnnamed3436(); + o.command = buildUnnamed3437(); + o.env = buildUnnamed3438(); + o.image = "foo"; + o.ports = buildUnnamed3439(); + } + buildCounterGoogleCloudMlV1ContainerSpec--; + return o; +} + +checkGoogleCloudMlV1ContainerSpec(api.GoogleCloudMlV1ContainerSpec o) { + buildCounterGoogleCloudMlV1ContainerSpec++; + if (buildCounterGoogleCloudMlV1ContainerSpec < 3) { + checkUnnamed3436(o.args); + checkUnnamed3437(o.command); + checkUnnamed3438(o.env); + unittest.expect(o.image, unittest.equals('foo')); + checkUnnamed3439(o.ports); + } + buildCounterGoogleCloudMlV1ContainerSpec--; +} + core.int buildCounterGoogleCloudMlV1EncryptionConfig = 0; buildGoogleCloudMlV1EncryptionConfig() { var o = new api.GoogleCloudMlV1EncryptionConfig(); @@ -844,6 +942,27 @@ buildCounterGoogleCloudMlV1EncryptionConfig--; } +core.int buildCounterGoogleCloudMlV1EnvVar = 0; +buildGoogleCloudMlV1EnvVar() { + var o = new api.GoogleCloudMlV1EnvVar(); + buildCounterGoogleCloudMlV1EnvVar++; + if (buildCounterGoogleCloudMlV1EnvVar < 3) { + o.name = "foo"; + o.value = "foo"; + } + buildCounterGoogleCloudMlV1EnvVar--; + return o; +} + +checkGoogleCloudMlV1EnvVar(api.GoogleCloudMlV1EnvVar o) { + buildCounterGoogleCloudMlV1EnvVar++; + if (buildCounterGoogleCloudMlV1EnvVar < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1EnvVar--; +} + core.int buildCounterGoogleCloudMlV1ExplainRequest = 0; buildGoogleCloudMlV1ExplainRequest() { var o = new api.GoogleCloudMlV1ExplainRequest(); @@ -912,7 +1031,7 @@ buildCounterGoogleCloudMlV1GetConfigResponse--; } -buildUnnamed3280() { +buildUnnamed3440() { var o = new core .List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric>(); o.add(buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric()); @@ -920,21 +1039,21 @@ return o; } -checkUnnamed3280( +checkUnnamed3440( core.List<api.GoogleCloudMlV1HyperparameterOutputHyperparameterMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[0]); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o[1]); } -buildUnnamed3281() { +buildUnnamed3441() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3281(core.Map<core.String, core.String> o) { +checkUnnamed3441(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')); @@ -945,12 +1064,12 @@ var o = new api.GoogleCloudMlV1HyperparameterOutput(); buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - o.allMetrics = buildUnnamed3280(); + o.allMetrics = buildUnnamed3440(); o.builtInAlgorithmOutput = buildGoogleCloudMlV1BuiltInAlgorithmOutput(); o.endTime = "foo"; o.finalMetric = buildGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(); - o.hyperparameters = buildUnnamed3281(); + o.hyperparameters = buildUnnamed3441(); o.isTrialStoppedEarly = true; o.startTime = "foo"; o.state = "foo"; @@ -964,11 +1083,11 @@ api.GoogleCloudMlV1HyperparameterOutput o) { buildCounterGoogleCloudMlV1HyperparameterOutput++; if (buildCounterGoogleCloudMlV1HyperparameterOutput < 3) { - checkUnnamed3280(o.allMetrics); + checkUnnamed3440(o.allMetrics); checkGoogleCloudMlV1BuiltInAlgorithmOutput(o.builtInAlgorithmOutput); unittest.expect(o.endTime, unittest.equals('foo')); checkGoogleCloudMlV1HyperparameterOutputHyperparameterMetric(o.finalMetric); - checkUnnamed3281(o.hyperparameters); + checkUnnamed3441(o.hyperparameters); unittest.expect(o.isTrialStoppedEarly, unittest.isTrue); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -977,14 +1096,14 @@ buildCounterGoogleCloudMlV1HyperparameterOutput--; } -buildUnnamed3282() { +buildUnnamed3442() { var o = new core.List<api.GoogleCloudMlV1ParameterSpec>(); o.add(buildGoogleCloudMlV1ParameterSpec()); o.add(buildGoogleCloudMlV1ParameterSpec()); return o; } -checkUnnamed3282(core.List<api.GoogleCloudMlV1ParameterSpec> o) { +checkUnnamed3442(core.List<api.GoogleCloudMlV1ParameterSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1ParameterSpec(o[0]); checkGoogleCloudMlV1ParameterSpec(o[1]); @@ -1002,7 +1121,7 @@ o.maxFailedTrials = 42; o.maxParallelTrials = 42; o.maxTrials = 42; - o.params = buildUnnamed3282(); + o.params = buildUnnamed3442(); o.resumePreviousJobId = "foo"; } buildCounterGoogleCloudMlV1HyperparameterSpec--; @@ -1020,7 +1139,7 @@ unittest.expect(o.maxFailedTrials, unittest.equals(42)); unittest.expect(o.maxParallelTrials, unittest.equals(42)); unittest.expect(o.maxTrials, unittest.equals(42)); - checkUnnamed3282(o.params); + checkUnnamed3442(o.params); unittest.expect(o.resumePreviousJobId, unittest.equals('foo')); } buildCounterGoogleCloudMlV1HyperparameterSpec--; @@ -1046,14 +1165,14 @@ buildCounterGoogleCloudMlV1IntegratedGradientsAttribution--; } -buildUnnamed3283() { +buildUnnamed3443() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3283(core.Map<core.String, core.String> o) { +checkUnnamed3443(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')); @@ -1069,7 +1188,7 @@ o.errorMessage = "foo"; o.etag = "foo"; o.jobId = "foo"; - o.labels = buildUnnamed3283(); + o.labels = buildUnnamed3443(); o.predictionInput = buildGoogleCloudMlV1PredictionInput(); o.predictionOutput = buildGoogleCloudMlV1PredictionOutput(); o.startTime = "foo"; @@ -1089,7 +1208,7 @@ unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.jobId, unittest.equals('foo')); - checkUnnamed3283(o.labels); + checkUnnamed3443(o.labels); checkGoogleCloudMlV1PredictionInput(o.predictionInput); checkGoogleCloudMlV1PredictionOutput(o.predictionOutput); unittest.expect(o.startTime, unittest.equals('foo')); @@ -1100,14 +1219,14 @@ buildCounterGoogleCloudMlV1Job--; } -buildUnnamed3284() { +buildUnnamed3444() { var o = new core.List<api.GoogleCloudMlV1Job>(); o.add(buildGoogleCloudMlV1Job()); o.add(buildGoogleCloudMlV1Job()); return o; } -checkUnnamed3284(core.List<api.GoogleCloudMlV1Job> o) { +checkUnnamed3444(core.List<api.GoogleCloudMlV1Job> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Job(o[0]); checkGoogleCloudMlV1Job(o[1]); @@ -1118,7 +1237,7 @@ var o = new api.GoogleCloudMlV1ListJobsResponse(); buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - o.jobs = buildUnnamed3284(); + o.jobs = buildUnnamed3444(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListJobsResponse--; @@ -1128,20 +1247,20 @@ checkGoogleCloudMlV1ListJobsResponse(api.GoogleCloudMlV1ListJobsResponse o) { buildCounterGoogleCloudMlV1ListJobsResponse++; if (buildCounterGoogleCloudMlV1ListJobsResponse < 3) { - checkUnnamed3284(o.jobs); + checkUnnamed3444(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListJobsResponse--; } -buildUnnamed3285() { +buildUnnamed3445() { var o = new core.List<api.GoogleCloudMlV1Location>(); o.add(buildGoogleCloudMlV1Location()); o.add(buildGoogleCloudMlV1Location()); return o; } -checkUnnamed3285(core.List<api.GoogleCloudMlV1Location> o) { +checkUnnamed3445(core.List<api.GoogleCloudMlV1Location> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Location(o[0]); checkGoogleCloudMlV1Location(o[1]); @@ -1152,7 +1271,7 @@ var o = new api.GoogleCloudMlV1ListLocationsResponse(); buildCounterGoogleCloudMlV1ListLocationsResponse++; if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) { - o.locations = buildUnnamed3285(); + o.locations = buildUnnamed3445(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListLocationsResponse--; @@ -1163,20 +1282,20 @@ api.GoogleCloudMlV1ListLocationsResponse o) { buildCounterGoogleCloudMlV1ListLocationsResponse++; if (buildCounterGoogleCloudMlV1ListLocationsResponse < 3) { - checkUnnamed3285(o.locations); + checkUnnamed3445(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListLocationsResponse--; } -buildUnnamed3286() { +buildUnnamed3446() { var o = new core.List<api.GoogleCloudMlV1Model>(); o.add(buildGoogleCloudMlV1Model()); o.add(buildGoogleCloudMlV1Model()); return o; } -checkUnnamed3286(core.List<api.GoogleCloudMlV1Model> o) { +checkUnnamed3446(core.List<api.GoogleCloudMlV1Model> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Model(o[0]); checkGoogleCloudMlV1Model(o[1]); @@ -1187,7 +1306,7 @@ var o = new api.GoogleCloudMlV1ListModelsResponse(); buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - o.models = buildUnnamed3286(); + o.models = buildUnnamed3446(); o.nextPageToken = "foo"; } buildCounterGoogleCloudMlV1ListModelsResponse--; @@ -1198,20 +1317,20 @@ api.GoogleCloudMlV1ListModelsResponse o) { buildCounterGoogleCloudMlV1ListModelsResponse++; if (buildCounterGoogleCloudMlV1ListModelsResponse < 3) { - checkUnnamed3286(o.models); + checkUnnamed3446(o.models); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterGoogleCloudMlV1ListModelsResponse--; } -buildUnnamed3287() { +buildUnnamed3447() { var o = new core.List<api.GoogleCloudMlV1Study>(); o.add(buildGoogleCloudMlV1Study()); o.add(buildGoogleCloudMlV1Study()); return o; } -checkUnnamed3287(core.List<api.GoogleCloudMlV1Study> o) { +checkUnnamed3447(core.List<api.GoogleCloudMlV1Study> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Study(o[0]); checkGoogleCloudMlV1Study(o[1]); @@ -1222,7 +1341,7 @@ var o = new api.GoogleCloudMlV1ListStudiesResponse(); buildCounterGoogleCloudMlV1ListStudiesResponse++; if (buildCounterGoogleCloudMlV1ListStudiesResponse < 3) { - o.studies = buildUnnamed3287(); + o.studies = buildUnnamed3447(); } buildCounterGoogleCloudMlV1ListStudiesResponse--; return o; @@ -1232,19 +1351,19 @@ api.GoogleCloudMlV1ListStudiesResponse o) { buildCounterGoogleCloudMlV1ListStudiesResponse++; if (buildCounterGoogleCloudMlV1ListStudiesResponse < 3) { - checkUnnamed3287(o.studies); + checkUnnamed3447(o.studies); } buildCounterGoogleCloudMlV1ListStudiesResponse--; } -buildUnnamed3288() { +buildUnnamed3448() { var o = new core.List<api.GoogleCloudMlV1Trial>(); o.add(buildGoogleCloudMlV1Trial()); o.add(buildGoogleCloudMlV1Trial()); return o; } -checkUnnamed3288(core.List<api.GoogleCloudMlV1Trial> o) { +checkUnnamed3448(core.List<api.GoogleCloudMlV1Trial> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Trial(o[0]); checkGoogleCloudMlV1Trial(o[1]); @@ -1255,7 +1374,7 @@ var o = new api.GoogleCloudMlV1ListTrialsResponse(); buildCounterGoogleCloudMlV1ListTrialsResponse++; if (buildCounterGoogleCloudMlV1ListTrialsResponse < 3) { - o.trials = buildUnnamed3288(); + o.trials = buildUnnamed3448(); } buildCounterGoogleCloudMlV1ListTrialsResponse--; return o; @@ -1265,19 +1384,19 @@ api.GoogleCloudMlV1ListTrialsResponse o) { buildCounterGoogleCloudMlV1ListTrialsResponse++; if (buildCounterGoogleCloudMlV1ListTrialsResponse < 3) { - checkUnnamed3288(o.trials); + checkUnnamed3448(o.trials); } buildCounterGoogleCloudMlV1ListTrialsResponse--; } -buildUnnamed3289() { +buildUnnamed3449() { var o = new core.List<api.GoogleCloudMlV1Version>(); o.add(buildGoogleCloudMlV1Version()); o.add(buildGoogleCloudMlV1Version()); return o; } -checkUnnamed3289(core.List<api.GoogleCloudMlV1Version> o) { +checkUnnamed3449(core.List<api.GoogleCloudMlV1Version> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Version(o[0]); checkGoogleCloudMlV1Version(o[1]); @@ -1289,7 +1408,7 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed3289(); + o.versions = buildUnnamed3449(); } buildCounterGoogleCloudMlV1ListVersionsResponse--; return o; @@ -1300,19 +1419,19 @@ buildCounterGoogleCloudMlV1ListVersionsResponse++; if (buildCounterGoogleCloudMlV1ListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3289(o.versions); + checkUnnamed3449(o.versions); } buildCounterGoogleCloudMlV1ListVersionsResponse--; } -buildUnnamed3290() { +buildUnnamed3450() { var o = new core.List<api.GoogleCloudMlV1Capability>(); o.add(buildGoogleCloudMlV1Capability()); o.add(buildGoogleCloudMlV1Capability()); return o; } -checkUnnamed3290(core.List<api.GoogleCloudMlV1Capability> o) { +checkUnnamed3450(core.List<api.GoogleCloudMlV1Capability> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Capability(o[0]); checkGoogleCloudMlV1Capability(o[1]); @@ -1323,7 +1442,7 @@ var o = new api.GoogleCloudMlV1Location(); buildCounterGoogleCloudMlV1Location++; if (buildCounterGoogleCloudMlV1Location < 3) { - o.capabilities = buildUnnamed3290(); + o.capabilities = buildUnnamed3450(); o.name = "foo"; } buildCounterGoogleCloudMlV1Location--; @@ -1333,7 +1452,7 @@ checkGoogleCloudMlV1Location(api.GoogleCloudMlV1Location o) { buildCounterGoogleCloudMlV1Location++; if (buildCounterGoogleCloudMlV1Location < 3) { - checkUnnamed3290(o.capabilities); + checkUnnamed3450(o.capabilities); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Location--; @@ -1358,14 +1477,14 @@ buildCounterGoogleCloudMlV1ManualScaling--; } -buildUnnamed3291() { +buildUnnamed3451() { var o = new core.List<api.GoogleCloudMlV1MeasurementMetric>(); o.add(buildGoogleCloudMlV1MeasurementMetric()); o.add(buildGoogleCloudMlV1MeasurementMetric()); return o; } -checkUnnamed3291(core.List<api.GoogleCloudMlV1MeasurementMetric> o) { +checkUnnamed3451(core.List<api.GoogleCloudMlV1MeasurementMetric> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1MeasurementMetric(o[0]); checkGoogleCloudMlV1MeasurementMetric(o[1]); @@ -1377,7 +1496,7 @@ buildCounterGoogleCloudMlV1Measurement++; if (buildCounterGoogleCloudMlV1Measurement < 3) { o.elapsedTime = "foo"; - o.metrics = buildUnnamed3291(); + o.metrics = buildUnnamed3451(); o.stepCount = "foo"; } buildCounterGoogleCloudMlV1Measurement--; @@ -1388,33 +1507,33 @@ buildCounterGoogleCloudMlV1Measurement++; if (buildCounterGoogleCloudMlV1Measurement < 3) { unittest.expect(o.elapsedTime, unittest.equals('foo')); - checkUnnamed3291(o.metrics); + checkUnnamed3451(o.metrics); unittest.expect(o.stepCount, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Measurement--; } -buildUnnamed3292() { +buildUnnamed3452() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3292(core.Map<core.String, core.String> o) { +checkUnnamed3452(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')); } -buildUnnamed3293() { +buildUnnamed3453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3293(core.List<core.String> o) { +checkUnnamed3453(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1428,11 +1547,11 @@ o.defaultVersion = buildGoogleCloudMlV1Version(); o.description = "foo"; o.etag = "foo"; - o.labels = buildUnnamed3292(); + o.labels = buildUnnamed3452(); o.name = "foo"; o.onlinePredictionConsoleLogging = true; o.onlinePredictionLogging = true; - o.regions = buildUnnamed3293(); + o.regions = buildUnnamed3453(); } buildCounterGoogleCloudMlV1Model--; return o; @@ -1444,23 +1563,23 @@ checkGoogleCloudMlV1Version(o.defaultVersion); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3292(o.labels); + checkUnnamed3452(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.onlinePredictionConsoleLogging, unittest.isTrue); unittest.expect(o.onlinePredictionLogging, unittest.isTrue); - checkUnnamed3293(o.regions); + checkUnnamed3453(o.regions); } buildCounterGoogleCloudMlV1Model--; } -buildUnnamed3294() { +buildUnnamed3454() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3294(core.Map<core.String, core.String> o) { +checkUnnamed3454(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')); @@ -1474,7 +1593,7 @@ o.createTime = "foo"; o.endTime = "foo"; o.isCancellationRequested = true; - o.labels = buildUnnamed3294(); + o.labels = buildUnnamed3454(); o.modelName = "foo"; o.operationType = "foo"; o.projectNumber = "foo"; @@ -1491,7 +1610,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.isCancellationRequested, unittest.isTrue); - checkUnnamed3294(o.labels); + checkUnnamed3454(o.labels); unittest.expect(o.modelName, unittest.equals('foo')); unittest.expect(o.operationType, unittest.equals('foo')); unittest.expect(o.projectNumber, unittest.equals('foo')); @@ -1501,27 +1620,27 @@ buildCounterGoogleCloudMlV1OperationMetadata--; } -buildUnnamed3295() { +buildUnnamed3455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3295(core.List<core.String> o) { +checkUnnamed3455(core.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() { +buildUnnamed3456() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3296(core.List<core.double> o) { +checkUnnamed3456(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)); @@ -1532,8 +1651,8 @@ var o = new api.GoogleCloudMlV1ParameterSpec(); buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - o.categoricalValues = buildUnnamed3295(); - o.discreteValues = buildUnnamed3296(); + o.categoricalValues = buildUnnamed3455(); + o.discreteValues = buildUnnamed3456(); o.maxValue = 42.0; o.minValue = 42.0; o.parameterName = "foo"; @@ -1547,8 +1666,8 @@ checkGoogleCloudMlV1ParameterSpec(api.GoogleCloudMlV1ParameterSpec o) { buildCounterGoogleCloudMlV1ParameterSpec++; if (buildCounterGoogleCloudMlV1ParameterSpec < 3) { - checkUnnamed3295(o.categoricalValues); - checkUnnamed3296(o.discreteValues); + checkUnnamed3455(o.categoricalValues); + checkUnnamed3456(o.discreteValues); unittest.expect(o.maxValue, unittest.equals(42.0)); unittest.expect(o.minValue, unittest.equals(42.0)); unittest.expect(o.parameterName, unittest.equals('foo')); @@ -1577,14 +1696,14 @@ buildCounterGoogleCloudMlV1PredictRequest--; } -buildUnnamed3297() { +buildUnnamed3457() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3297(core.List<core.String> o) { +checkUnnamed3457(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1597,7 +1716,7 @@ if (buildCounterGoogleCloudMlV1PredictionInput < 3) { o.batchSize = "foo"; o.dataFormat = "foo"; - o.inputPaths = buildUnnamed3297(); + o.inputPaths = buildUnnamed3457(); o.maxWorkerCount = "foo"; o.modelName = "foo"; o.outputDataFormat = "foo"; @@ -1617,7 +1736,7 @@ if (buildCounterGoogleCloudMlV1PredictionInput < 3) { unittest.expect(o.batchSize, unittest.equals('foo')); unittest.expect(o.dataFormat, unittest.equals('foo')); - checkUnnamed3297(o.inputPaths); + checkUnnamed3457(o.inputPaths); unittest.expect(o.maxWorkerCount, unittest.equals('foo')); unittest.expect(o.modelName, unittest.equals('foo')); unittest.expect(o.outputDataFormat, unittest.equals('foo')); @@ -1656,12 +1775,40 @@ buildCounterGoogleCloudMlV1PredictionOutput--; } +buildUnnamed3458() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3458(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3459() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3459(core.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 buildCounterGoogleCloudMlV1ReplicaConfig = 0; buildGoogleCloudMlV1ReplicaConfig() { var o = new api.GoogleCloudMlV1ReplicaConfig(); buildCounterGoogleCloudMlV1ReplicaConfig++; if (buildCounterGoogleCloudMlV1ReplicaConfig < 3) { o.acceleratorConfig = buildGoogleCloudMlV1AcceleratorConfig(); + o.containerArgs = buildUnnamed3458(); + o.containerCommand = buildUnnamed3459(); o.imageUri = "foo"; o.tpuTfVersion = "foo"; } @@ -1673,6 +1820,8 @@ buildCounterGoogleCloudMlV1ReplicaConfig++; if (buildCounterGoogleCloudMlV1ReplicaConfig < 3) { checkGoogleCloudMlV1AcceleratorConfig(o.acceleratorConfig); + checkUnnamed3458(o.containerArgs); + checkUnnamed3459(o.containerCommand); unittest.expect(o.imageUri, unittest.equals('foo')); unittest.expect(o.tpuTfVersion, unittest.equals('foo')); } @@ -1701,6 +1850,27 @@ buildCounterGoogleCloudMlV1RequestLoggingConfig--; } +core.int buildCounterGoogleCloudMlV1RouteMap = 0; +buildGoogleCloudMlV1RouteMap() { + var o = new api.GoogleCloudMlV1RouteMap(); + buildCounterGoogleCloudMlV1RouteMap++; + if (buildCounterGoogleCloudMlV1RouteMap < 3) { + o.health = "foo"; + o.predict = "foo"; + } + buildCounterGoogleCloudMlV1RouteMap--; + return o; +} + +checkGoogleCloudMlV1RouteMap(api.GoogleCloudMlV1RouteMap o) { + buildCounterGoogleCloudMlV1RouteMap++; + if (buildCounterGoogleCloudMlV1RouteMap < 3) { + unittest.expect(o.health, unittest.equals('foo')); + unittest.expect(o.predict, unittest.equals('foo')); + } + buildCounterGoogleCloudMlV1RouteMap--; +} + core.int buildCounterGoogleCloudMlV1SampledShapleyAttribution = 0; buildGoogleCloudMlV1SampledShapleyAttribution() { var o = new api.GoogleCloudMlV1SampledShapleyAttribution(); @@ -1727,6 +1897,7 @@ buildCounterGoogleCloudMlV1Scheduling++; if (buildCounterGoogleCloudMlV1Scheduling < 3) { o.maxRunningTime = "foo"; + o.maxWaitTime = "foo"; } buildCounterGoogleCloudMlV1Scheduling--; return o; @@ -1736,6 +1907,7 @@ buildCounterGoogleCloudMlV1Scheduling++; if (buildCounterGoogleCloudMlV1Scheduling < 3) { unittest.expect(o.maxRunningTime, unittest.equals('foo')); + unittest.expect(o.maxWaitTime, unittest.equals('foo')); } buildCounterGoogleCloudMlV1Scheduling--; } @@ -1798,27 +1970,27 @@ buildCounterGoogleCloudMlV1Study--; } -buildUnnamed3298() { +buildUnnamed3460() { var o = new core.List<api.GoogleCloudMlV1StudyConfigMetricSpec>(); o.add(buildGoogleCloudMlV1StudyConfigMetricSpec()); o.add(buildGoogleCloudMlV1StudyConfigMetricSpec()); return o; } -checkUnnamed3298(core.List<api.GoogleCloudMlV1StudyConfigMetricSpec> o) { +checkUnnamed3460(core.List<api.GoogleCloudMlV1StudyConfigMetricSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1StudyConfigMetricSpec(o[0]); checkGoogleCloudMlV1StudyConfigMetricSpec(o[1]); } -buildUnnamed3299() { +buildUnnamed3461() { var o = new core.List<api.GoogleCloudMlV1StudyConfigParameterSpec>(); o.add(buildGoogleCloudMlV1StudyConfigParameterSpec()); o.add(buildGoogleCloudMlV1StudyConfigParameterSpec()); return o; } -checkUnnamed3299(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) { +checkUnnamed3461(core.List<api.GoogleCloudMlV1StudyConfigParameterSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1StudyConfigParameterSpec(o[0]); checkGoogleCloudMlV1StudyConfigParameterSpec(o[1]); @@ -1831,8 +2003,8 @@ if (buildCounterGoogleCloudMlV1StudyConfig < 3) { o.algorithm = "foo"; o.automatedStoppingConfig = buildGoogleCloudMlV1AutomatedStoppingConfig(); - o.metrics = buildUnnamed3298(); - o.parameters = buildUnnamed3299(); + o.metrics = buildUnnamed3460(); + o.parameters = buildUnnamed3461(); } buildCounterGoogleCloudMlV1StudyConfig--; return o; @@ -1843,8 +2015,8 @@ if (buildCounterGoogleCloudMlV1StudyConfig < 3) { unittest.expect(o.algorithm, unittest.equals('foo')); checkGoogleCloudMlV1AutomatedStoppingConfig(o.automatedStoppingConfig); - checkUnnamed3298(o.metrics); - checkUnnamed3299(o.parameters); + checkUnnamed3460(o.metrics); + checkUnnamed3461(o.parameters); } buildCounterGoogleCloudMlV1StudyConfig--; } @@ -1897,14 +2069,14 @@ buildCounterGoogleCloudMlV1SuggestTrialsRequest--; } -buildUnnamed3300() { +buildUnnamed3462() { var o = new core.List<api.GoogleCloudMlV1Trial>(); o.add(buildGoogleCloudMlV1Trial()); o.add(buildGoogleCloudMlV1Trial()); return o; } -checkUnnamed3300(core.List<api.GoogleCloudMlV1Trial> o) { +checkUnnamed3462(core.List<api.GoogleCloudMlV1Trial> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Trial(o[0]); checkGoogleCloudMlV1Trial(o[1]); @@ -1918,7 +2090,7 @@ o.endTime = "foo"; o.startTime = "foo"; o.studyState = "foo"; - o.trials = buildUnnamed3300(); + o.trials = buildUnnamed3462(); } buildCounterGoogleCloudMlV1SuggestTrialsResponse--; return o; @@ -1931,32 +2103,32 @@ unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.studyState, unittest.equals('foo')); - checkUnnamed3300(o.trials); + checkUnnamed3462(o.trials); } buildCounterGoogleCloudMlV1SuggestTrialsResponse--; } -buildUnnamed3301() { +buildUnnamed3463() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3301(core.List<core.String> o) { +checkUnnamed3463(core.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() { +buildUnnamed3464() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3302(core.List<core.String> o) { +checkUnnamed3464(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1967,7 +2139,7 @@ var o = new api.GoogleCloudMlV1TrainingInput(); buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - o.args = buildUnnamed3301(); + o.args = buildUnnamed3463(); o.encryptionConfig = buildGoogleCloudMlV1EncryptionConfig(); o.evaluatorConfig = buildGoogleCloudMlV1ReplicaConfig(); o.evaluatorCount = "foo"; @@ -1976,7 +2148,8 @@ o.jobDir = "foo"; o.masterConfig = buildGoogleCloudMlV1ReplicaConfig(); o.masterType = "foo"; - o.packageUris = buildUnnamed3302(); + o.network = "foo"; + o.packageUris = buildUnnamed3464(); o.parameterServerConfig = buildGoogleCloudMlV1ReplicaConfig(); o.parameterServerCount = "foo"; o.parameterServerType = "foo"; @@ -1986,6 +2159,7 @@ o.runtimeVersion = "foo"; o.scaleTier = "foo"; o.scheduling = buildGoogleCloudMlV1Scheduling(); + o.serviceAccount = "foo"; o.useChiefInTfConfig = true; o.workerConfig = buildGoogleCloudMlV1ReplicaConfig(); o.workerCount = "foo"; @@ -1998,7 +2172,7 @@ checkGoogleCloudMlV1TrainingInput(api.GoogleCloudMlV1TrainingInput o) { buildCounterGoogleCloudMlV1TrainingInput++; if (buildCounterGoogleCloudMlV1TrainingInput < 3) { - checkUnnamed3301(o.args); + checkUnnamed3463(o.args); checkGoogleCloudMlV1EncryptionConfig(o.encryptionConfig); checkGoogleCloudMlV1ReplicaConfig(o.evaluatorConfig); unittest.expect(o.evaluatorCount, unittest.equals('foo')); @@ -2007,7 +2181,8 @@ unittest.expect(o.jobDir, unittest.equals('foo')); checkGoogleCloudMlV1ReplicaConfig(o.masterConfig); unittest.expect(o.masterType, unittest.equals('foo')); - checkUnnamed3302(o.packageUris); + unittest.expect(o.network, unittest.equals('foo')); + checkUnnamed3464(o.packageUris); checkGoogleCloudMlV1ReplicaConfig(o.parameterServerConfig); unittest.expect(o.parameterServerCount, unittest.equals('foo')); unittest.expect(o.parameterServerType, unittest.equals('foo')); @@ -2017,6 +2192,7 @@ unittest.expect(o.runtimeVersion, unittest.equals('foo')); unittest.expect(o.scaleTier, unittest.equals('foo')); checkGoogleCloudMlV1Scheduling(o.scheduling); + unittest.expect(o.serviceAccount, unittest.equals('foo')); unittest.expect(o.useChiefInTfConfig, unittest.isTrue); checkGoogleCloudMlV1ReplicaConfig(o.workerConfig); unittest.expect(o.workerCount, unittest.equals('foo')); @@ -2025,14 +2201,14 @@ buildCounterGoogleCloudMlV1TrainingInput--; } -buildUnnamed3303() { +buildUnnamed3465() { var o = new core.List<api.GoogleCloudMlV1HyperparameterOutput>(); o.add(buildGoogleCloudMlV1HyperparameterOutput()); o.add(buildGoogleCloudMlV1HyperparameterOutput()); return o; } -checkUnnamed3303(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { +checkUnnamed3465(core.List<api.GoogleCloudMlV1HyperparameterOutput> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1HyperparameterOutput(o[0]); checkGoogleCloudMlV1HyperparameterOutput(o[1]); @@ -2049,7 +2225,7 @@ o.hyperparameterMetricTag = "foo"; o.isBuiltInAlgorithmJob = true; o.isHyperparameterTuningJob = true; - o.trials = buildUnnamed3303(); + o.trials = buildUnnamed3465(); } buildCounterGoogleCloudMlV1TrainingOutput--; return o; @@ -2064,32 +2240,32 @@ unittest.expect(o.hyperparameterMetricTag, unittest.equals('foo')); unittest.expect(o.isBuiltInAlgorithmJob, unittest.isTrue); unittest.expect(o.isHyperparameterTuningJob, unittest.isTrue); - checkUnnamed3303(o.trials); + checkUnnamed3465(o.trials); } buildCounterGoogleCloudMlV1TrainingOutput--; } -buildUnnamed3304() { +buildUnnamed3466() { var o = new core.List<api.GoogleCloudMlV1Measurement>(); o.add(buildGoogleCloudMlV1Measurement()); o.add(buildGoogleCloudMlV1Measurement()); return o; } -checkUnnamed3304(core.List<api.GoogleCloudMlV1Measurement> o) { +checkUnnamed3466(core.List<api.GoogleCloudMlV1Measurement> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1Measurement(o[0]); checkGoogleCloudMlV1Measurement(o[1]); } -buildUnnamed3305() { +buildUnnamed3467() { var o = new core.List<api.GoogleCloudMlV1TrialParameter>(); o.add(buildGoogleCloudMlV1TrialParameter()); o.add(buildGoogleCloudMlV1TrialParameter()); return o; } -checkUnnamed3305(core.List<api.GoogleCloudMlV1TrialParameter> o) { +checkUnnamed3467(core.List<api.GoogleCloudMlV1TrialParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudMlV1TrialParameter(o[0]); checkGoogleCloudMlV1TrialParameter(o[1]); @@ -2104,9 +2280,9 @@ o.endTime = "foo"; o.finalMeasurement = buildGoogleCloudMlV1Measurement(); o.infeasibleReason = "foo"; - o.measurements = buildUnnamed3304(); + o.measurements = buildUnnamed3466(); o.name = "foo"; - o.parameters = buildUnnamed3305(); + o.parameters = buildUnnamed3467(); o.startTime = "foo"; o.state = "foo"; o.trialInfeasible = true; @@ -2122,9 +2298,9 @@ unittest.expect(o.endTime, unittest.equals('foo')); checkGoogleCloudMlV1Measurement(o.finalMeasurement); unittest.expect(o.infeasibleReason, unittest.equals('foo')); - checkUnnamed3304(o.measurements); + checkUnnamed3466(o.measurements); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3305(o.parameters); + checkUnnamed3467(o.parameters); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.trialInfeasible, unittest.isTrue); @@ -2132,27 +2308,27 @@ buildCounterGoogleCloudMlV1Trial--; } -buildUnnamed3306() { +buildUnnamed3468() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3306(core.Map<core.String, core.String> o) { +checkUnnamed3468(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')); } -buildUnnamed3307() { +buildUnnamed3469() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3307(core.List<core.String> o) { +checkUnnamed3469(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2165,6 +2341,7 @@ if (buildCounterGoogleCloudMlV1Version < 3) { o.acceleratorConfig = buildGoogleCloudMlV1AcceleratorConfig(); o.autoScaling = buildGoogleCloudMlV1AutoScaling(); + o.container = buildGoogleCloudMlV1ContainerSpec(); o.createTime = "foo"; o.deploymentUri = "foo"; o.description = "foo"; @@ -2173,15 +2350,16 @@ o.explanationConfig = buildGoogleCloudMlV1ExplanationConfig(); o.framework = "foo"; o.isDefault = true; - o.labels = buildUnnamed3306(); + o.labels = buildUnnamed3468(); o.lastUseTime = "foo"; o.machineType = "foo"; o.manualScaling = buildGoogleCloudMlV1ManualScaling(); o.name = "foo"; - o.packageUris = buildUnnamed3307(); + o.packageUris = buildUnnamed3469(); o.predictionClass = "foo"; o.pythonVersion = "foo"; o.requestLoggingConfig = buildGoogleCloudMlV1RequestLoggingConfig(); + o.routes = buildGoogleCloudMlV1RouteMap(); o.runtimeVersion = "foo"; o.serviceAccount = "foo"; o.state = "foo"; @@ -2195,6 +2373,7 @@ if (buildCounterGoogleCloudMlV1Version < 3) { checkGoogleCloudMlV1AcceleratorConfig(o.acceleratorConfig); checkGoogleCloudMlV1AutoScaling(o.autoScaling); + checkGoogleCloudMlV1ContainerSpec(o.container); unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.deploymentUri, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); @@ -2203,15 +2382,16 @@ checkGoogleCloudMlV1ExplanationConfig(o.explanationConfig); unittest.expect(o.framework, unittest.equals('foo')); unittest.expect(o.isDefault, unittest.isTrue); - checkUnnamed3306(o.labels); + checkUnnamed3468(o.labels); unittest.expect(o.lastUseTime, unittest.equals('foo')); unittest.expect(o.machineType, unittest.equals('foo')); checkGoogleCloudMlV1ManualScaling(o.manualScaling); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3307(o.packageUris); + checkUnnamed3469(o.packageUris); unittest.expect(o.predictionClass, unittest.equals('foo')); unittest.expect(o.pythonVersion, unittest.equals('foo')); checkGoogleCloudMlV1RequestLoggingConfig(o.requestLoggingConfig); + checkGoogleCloudMlV1RouteMap(o.routes); unittest.expect(o.runtimeVersion, unittest.equals('foo')); unittest.expect(o.serviceAccount, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -2238,14 +2418,14 @@ buildCounterGoogleCloudMlV1XraiAttribution--; } -buildUnnamed3308() { +buildUnnamed3470() { var o = new core.List<api.GoogleIamV1AuditLogConfig>(); o.add(buildGoogleIamV1AuditLogConfig()); o.add(buildGoogleIamV1AuditLogConfig()); return o; } -checkUnnamed3308(core.List<api.GoogleIamV1AuditLogConfig> o) { +checkUnnamed3470(core.List<api.GoogleIamV1AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditLogConfig(o[0]); checkGoogleIamV1AuditLogConfig(o[1]); @@ -2256,7 +2436,7 @@ var o = new api.GoogleIamV1AuditConfig(); buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3308(); + o.auditLogConfigs = buildUnnamed3470(); o.service = "foo"; } buildCounterGoogleIamV1AuditConfig--; @@ -2266,20 +2446,20 @@ checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - checkUnnamed3308(o.auditLogConfigs); + checkUnnamed3470(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterGoogleIamV1AuditConfig--; } -buildUnnamed3309() { +buildUnnamed3471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3309(core.List<core.String> o) { +checkUnnamed3471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2290,7 +2470,7 @@ var o = new api.GoogleIamV1AuditLogConfig(); buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3309(); + o.exemptedMembers = buildUnnamed3471(); o.logType = "foo"; } buildCounterGoogleIamV1AuditLogConfig--; @@ -2300,20 +2480,20 @@ checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - checkUnnamed3309(o.exemptedMembers); + checkUnnamed3471(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterGoogleIamV1AuditLogConfig--; } -buildUnnamed3310() { +buildUnnamed3472() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3310(core.List<core.String> o) { +checkUnnamed3472(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2324,8 +2504,9 @@ var o = new api.GoogleIamV1Binding(); buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { + o.bindingId = "foo"; o.condition = buildGoogleTypeExpr(); - o.members = buildUnnamed3310(); + o.members = buildUnnamed3472(); o.role = "foo"; } buildCounterGoogleIamV1Binding--; @@ -2335,34 +2516,35 @@ checkGoogleIamV1Binding(api.GoogleIamV1Binding o) { buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkGoogleTypeExpr(o.condition); - checkUnnamed3310(o.members); + checkUnnamed3472(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterGoogleIamV1Binding--; } -buildUnnamed3311() { +buildUnnamed3473() { var o = new core.List<api.GoogleIamV1AuditConfig>(); o.add(buildGoogleIamV1AuditConfig()); o.add(buildGoogleIamV1AuditConfig()); return o; } -checkUnnamed3311(core.List<api.GoogleIamV1AuditConfig> o) { +checkUnnamed3473(core.List<api.GoogleIamV1AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditConfig(o[0]); checkGoogleIamV1AuditConfig(o[1]); } -buildUnnamed3312() { +buildUnnamed3474() { var o = new core.List<api.GoogleIamV1Binding>(); o.add(buildGoogleIamV1Binding()); o.add(buildGoogleIamV1Binding()); return o; } -checkUnnamed3312(core.List<api.GoogleIamV1Binding> o) { +checkUnnamed3474(core.List<api.GoogleIamV1Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1Binding(o[0]); checkGoogleIamV1Binding(o[1]); @@ -2373,8 +2555,8 @@ var o = new api.GoogleIamV1Policy(); buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - o.auditConfigs = buildUnnamed3311(); - o.bindings = buildUnnamed3312(); + o.auditConfigs = buildUnnamed3473(); + o.bindings = buildUnnamed3474(); o.etag = "foo"; o.version = 42; } @@ -2385,8 +2567,8 @@ checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed3311(o.auditConfigs); - checkUnnamed3312(o.bindings); + checkUnnamed3473(o.auditConfigs); + checkUnnamed3474(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -2414,14 +2596,14 @@ buildCounterGoogleIamV1SetIamPolicyRequest--; } -buildUnnamed3313() { +buildUnnamed3475() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3313(core.List<core.String> o) { +checkUnnamed3475(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2432,7 +2614,7 @@ var o = new api.GoogleIamV1TestIamPermissionsRequest(); buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3313(); + o.permissions = buildUnnamed3475(); } buildCounterGoogleIamV1TestIamPermissionsRequest--; return o; @@ -2442,19 +2624,19 @@ api.GoogleIamV1TestIamPermissionsRequest o) { buildCounterGoogleIamV1TestIamPermissionsRequest++; if (buildCounterGoogleIamV1TestIamPermissionsRequest < 3) { - checkUnnamed3313(o.permissions); + checkUnnamed3475(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsRequest--; } -buildUnnamed3314() { +buildUnnamed3476() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3314(core.List<core.String> o) { +checkUnnamed3476(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2465,7 +2647,7 @@ var o = new api.GoogleIamV1TestIamPermissionsResponse(); buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3314(); + o.permissions = buildUnnamed3476(); } buildCounterGoogleIamV1TestIamPermissionsResponse--; return o; @@ -2475,19 +2657,19 @@ api.GoogleIamV1TestIamPermissionsResponse o) { buildCounterGoogleIamV1TestIamPermissionsResponse++; if (buildCounterGoogleIamV1TestIamPermissionsResponse < 3) { - checkUnnamed3314(o.permissions); + checkUnnamed3476(o.permissions); } buildCounterGoogleIamV1TestIamPermissionsResponse--; } -buildUnnamed3315() { +buildUnnamed3477() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed3315(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed3477(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -2499,7 +2681,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3315(); + o.operations = buildUnnamed3477(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -2510,12 +2692,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3315(o.operations); + checkUnnamed3477(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed3316() { +buildUnnamed3478() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2530,7 +2712,7 @@ return o; } -checkUnnamed3316(core.Map<core.String, core.Object> o) { +checkUnnamed3478(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)); @@ -2544,7 +2726,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3317() { +buildUnnamed3479() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2559,7 +2741,7 @@ return o; } -checkUnnamed3317(core.Map<core.String, core.Object> o) { +checkUnnamed3479(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)); @@ -2580,9 +2762,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed3316(); + o.metadata = buildUnnamed3478(); o.name = "foo"; - o.response = buildUnnamed3317(); + o.response = buildUnnamed3479(); } buildCounterGoogleLongrunningOperation--; return o; @@ -2593,9 +2775,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed3316(o.metadata); + checkUnnamed3478(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3317(o.response); + checkUnnamed3479(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -2615,7 +2797,7 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed3318() { +buildUnnamed3480() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2630,7 +2812,7 @@ return o; } -checkUnnamed3318(core.Map<core.String, core.Object> o) { +checkUnnamed3480(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)); @@ -2644,17 +2826,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3319() { +buildUnnamed3481() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3318()); - o.add(buildUnnamed3318()); + o.add(buildUnnamed3480()); + o.add(buildUnnamed3480()); return o; } -checkUnnamed3319(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3481(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3318(o[0]); - checkUnnamed3318(o[1]); + checkUnnamed3480(o[0]); + checkUnnamed3480(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -2663,7 +2845,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed3319(); + o.details = buildUnnamed3481(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -2674,7 +2856,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3319(o.details); + checkUnnamed3481(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -2984,6 +3166,22 @@ }); }); + unittest.group("obj-schema-GoogleCloudMlV1ContainerPort", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1ContainerPort(); + var od = new api.GoogleCloudMlV1ContainerPort.fromJson(o.toJson()); + checkGoogleCloudMlV1ContainerPort(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudMlV1ContainerSpec", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1ContainerSpec(); + var od = new api.GoogleCloudMlV1ContainerSpec.fromJson(o.toJson()); + checkGoogleCloudMlV1ContainerSpec(od); + }); + }); + unittest.group("obj-schema-GoogleCloudMlV1EncryptionConfig", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1EncryptionConfig(); @@ -2992,6 +3190,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudMlV1EnvVar", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1EnvVar(); + var od = new api.GoogleCloudMlV1EnvVar.fromJson(o.toJson()); + checkGoogleCloudMlV1EnvVar(od); + }); + }); + unittest.group("obj-schema-GoogleCloudMlV1ExplainRequest", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1ExplainRequest(); @@ -3187,6 +3393,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudMlV1RouteMap", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudMlV1RouteMap(); + var od = new api.GoogleCloudMlV1RouteMap.fromJson(o.toJson()); + checkGoogleCloudMlV1RouteMap(od); + }); + }); + unittest.group("obj-schema-GoogleCloudMlV1SampledShapleyAttribution", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudMlV1SampledShapleyAttribution(); @@ -3789,9 +4003,9 @@ var mock = new HttpServerMock(); api.ProjectsJobsResourceApi res = new api.MlApi(mock).projects.jobs; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3824,11 +4038,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3839,9 +4053,9 @@ }), true); res .list(arg_parent, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListJobsResponse(response); @@ -4077,8 +4291,8 @@ api.ProjectsLocationsResourceApi res = new api.MlApi(mock).projects.locations; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4111,10 +4325,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4126,8 +4340,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListLocationsResponse(response); @@ -5180,8 +5394,8 @@ api.ProjectsModelsResourceApi res = new api.MlApi(mock).projects.models; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5215,10 +5429,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5231,8 +5445,8 @@ res .list(arg_parent, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListModelsResponse(response); @@ -5576,9 +5790,9 @@ api.ProjectsModelsVersionsResourceApi res = new api.MlApi(mock).projects.models.versions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5611,11 +5825,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5627,9 +5841,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleCloudMlV1ListVersionsResponse(response); @@ -5864,9 +6078,9 @@ api.ProjectsOperationsResourceApi res = new api.MlApi(mock).projects.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5899,11 +6113,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5915,9 +6129,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/monitoring/v3_test.dart b/generated/googleapis/test/monitoring/v3_test.dart index 80e0345..90c0fb9 100644 --- a/generated/googleapis/test/monitoring/v3_test.dart +++ b/generated/googleapis/test/monitoring/v3_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3683() { +buildUnnamed3869() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3683(core.List<core.String> o) { +checkUnnamed3869(core.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 @@ if (buildCounterAggregation < 3) { o.alignmentPeriod = "foo"; o.crossSeriesReducer = "foo"; - o.groupByFields = buildUnnamed3683(); + o.groupByFields = buildUnnamed3869(); o.perSeriesAligner = "foo"; } buildCounterAggregation--; @@ -82,46 +82,46 @@ if (buildCounterAggregation < 3) { unittest.expect(o.alignmentPeriod, unittest.equals('foo')); unittest.expect(o.crossSeriesReducer, unittest.equals('foo')); - checkUnnamed3683(o.groupByFields); + checkUnnamed3869(o.groupByFields); unittest.expect(o.perSeriesAligner, unittest.equals('foo')); } buildCounterAggregation--; } -buildUnnamed3684() { +buildUnnamed3870() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed3684(core.List<api.Condition> o) { +checkUnnamed3870(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed3685() { +buildUnnamed3871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3685(core.List<core.String> o) { +checkUnnamed3871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3686() { +buildUnnamed3872() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3686(core.Map<core.String, core.String> o) { +checkUnnamed3872(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')); @@ -133,15 +133,15 @@ buildCounterAlertPolicy++; if (buildCounterAlertPolicy < 3) { o.combiner = "foo"; - o.conditions = buildUnnamed3684(); + o.conditions = buildUnnamed3870(); o.creationRecord = buildMutationRecord(); o.displayName = "foo"; o.documentation = buildDocumentation(); o.enabled = true; o.mutationRecord = buildMutationRecord(); o.name = "foo"; - o.notificationChannels = buildUnnamed3685(); - o.userLabels = buildUnnamed3686(); + o.notificationChannels = buildUnnamed3871(); + o.userLabels = buildUnnamed3872(); o.validity = buildStatus(); } buildCounterAlertPolicy--; @@ -152,15 +152,15 @@ buildCounterAlertPolicy++; if (buildCounterAlertPolicy < 3) { unittest.expect(o.combiner, unittest.equals('foo')); - checkUnnamed3684(o.conditions); + checkUnnamed3870(o.conditions); checkMutationRecord(o.creationRecord); unittest.expect(o.displayName, unittest.equals('foo')); checkDocumentation(o.documentation); unittest.expect(o.enabled, unittest.isTrue); checkMutationRecord(o.mutationRecord); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3685(o.notificationChannels); - checkUnnamed3686(o.userLabels); + checkUnnamed3871(o.notificationChannels); + checkUnnamed3872(o.userLabels); checkStatus(o.validity); } buildCounterAlertPolicy--; @@ -221,40 +221,40 @@ buildCounterBasicAuthentication--; } -buildUnnamed3687() { +buildUnnamed3873() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3687(core.List<core.String> o) { +checkUnnamed3873(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3688() { +buildUnnamed3874() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3688(core.List<core.String> o) { +checkUnnamed3874(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3689() { +buildUnnamed3875() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3689(core.List<core.String> o) { +checkUnnamed3875(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -267,9 +267,9 @@ if (buildCounterBasicSli < 3) { o.availability = buildAvailabilityCriteria(); o.latency = buildLatencyCriteria(); - o.location = buildUnnamed3687(); - o.method = buildUnnamed3688(); - o.version = buildUnnamed3689(); + o.location = buildUnnamed3873(); + o.method = buildUnnamed3874(); + o.version = buildUnnamed3875(); } buildCounterBasicSli--; return o; @@ -280,9 +280,9 @@ if (buildCounterBasicSli < 3) { checkAvailabilityCriteria(o.availability); checkLatencyCriteria(o.latency); - checkUnnamed3687(o.location); - checkUnnamed3688(o.method); - checkUnnamed3689(o.version); + checkUnnamed3873(o.location); + checkUnnamed3874(o.method); + checkUnnamed3875(o.version); } buildCounterBasicSli--; } @@ -354,27 +354,27 @@ buildCounterClusterIstio--; } -buildUnnamed3690() { +buildUnnamed3876() { var o = new core.Map<core.String, api.TypedValue>(); o["x"] = buildTypedValue(); o["y"] = buildTypedValue(); return o; } -checkUnnamed3690(core.Map<core.String, api.TypedValue> o) { +checkUnnamed3876(core.Map<core.String, api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o["x"]); checkTypedValue(o["y"]); } -buildUnnamed3691() { +buildUnnamed3877() { var o = new core.List<api.CollectdValue>(); o.add(buildCollectdValue()); o.add(buildCollectdValue()); return o; } -checkUnnamed3691(core.List<api.CollectdValue> o) { +checkUnnamed3877(core.List<api.CollectdValue> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValue(o[0]); checkCollectdValue(o[1]); @@ -386,13 +386,13 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { o.endTime = "foo"; - o.metadata = buildUnnamed3690(); + o.metadata = buildUnnamed3876(); o.plugin = "foo"; o.pluginInstance = "foo"; o.startTime = "foo"; o.type = "foo"; o.typeInstance = "foo"; - o.values = buildUnnamed3691(); + o.values = buildUnnamed3877(); } buildCounterCollectdPayload--; return o; @@ -402,25 +402,25 @@ buildCounterCollectdPayload++; if (buildCounterCollectdPayload < 3) { unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed3690(o.metadata); + checkUnnamed3876(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')); - checkUnnamed3691(o.values); + checkUnnamed3877(o.values); } buildCounterCollectdPayload--; } -buildUnnamed3692() { +buildUnnamed3878() { var o = new core.List<api.CollectdValueError>(); o.add(buildCollectdValueError()); o.add(buildCollectdValueError()); return o; } -checkUnnamed3692(core.List<api.CollectdValueError> o) { +checkUnnamed3878(core.List<api.CollectdValueError> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdValueError(o[0]); checkCollectdValueError(o[1]); @@ -433,7 +433,7 @@ if (buildCounterCollectdPayloadError < 3) { o.error = buildStatus(); o.index = 42; - o.valueErrors = buildUnnamed3692(); + o.valueErrors = buildUnnamed3878(); } buildCounterCollectdPayloadError--; return o; @@ -444,7 +444,7 @@ if (buildCounterCollectdPayloadError < 3) { checkStatus(o.error); unittest.expect(o.index, unittest.equals(42)); - checkUnnamed3692(o.valueErrors); + checkUnnamed3878(o.valueErrors); } buildCounterCollectdPayloadError--; } @@ -539,14 +539,14 @@ buildCounterContentMatcher--; } -buildUnnamed3693() { +buildUnnamed3879() { var o = new core.List<api.CollectdPayload>(); o.add(buildCollectdPayload()); o.add(buildCollectdPayload()); return o; } -checkUnnamed3693(core.List<api.CollectdPayload> o) { +checkUnnamed3879(core.List<api.CollectdPayload> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayload(o[0]); checkCollectdPayload(o[1]); @@ -557,7 +557,7 @@ var o = new api.CreateCollectdTimeSeriesRequest(); buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - o.collectdPayloads = buildUnnamed3693(); + o.collectdPayloads = buildUnnamed3879(); o.collectdVersion = "foo"; o.resource = buildMonitoredResource(); } @@ -568,21 +568,21 @@ checkCreateCollectdTimeSeriesRequest(api.CreateCollectdTimeSeriesRequest o) { buildCounterCreateCollectdTimeSeriesRequest++; if (buildCounterCreateCollectdTimeSeriesRequest < 3) { - checkUnnamed3693(o.collectdPayloads); + checkUnnamed3879(o.collectdPayloads); unittest.expect(o.collectdVersion, unittest.equals('foo')); checkMonitoredResource(o.resource); } buildCounterCreateCollectdTimeSeriesRequest--; } -buildUnnamed3694() { +buildUnnamed3880() { var o = new core.List<api.CollectdPayloadError>(); o.add(buildCollectdPayloadError()); o.add(buildCollectdPayloadError()); return o; } -checkUnnamed3694(core.List<api.CollectdPayloadError> o) { +checkUnnamed3880(core.List<api.CollectdPayloadError> o) { unittest.expect(o, unittest.hasLength(2)); checkCollectdPayloadError(o[0]); checkCollectdPayloadError(o[1]); @@ -593,7 +593,7 @@ var o = new api.CreateCollectdTimeSeriesResponse(); buildCounterCreateCollectdTimeSeriesResponse++; if (buildCounterCreateCollectdTimeSeriesResponse < 3) { - o.payloadErrors = buildUnnamed3694(); + o.payloadErrors = buildUnnamed3880(); o.summary = buildCreateTimeSeriesSummary(); } buildCounterCreateCollectdTimeSeriesResponse--; @@ -603,20 +603,20 @@ checkCreateCollectdTimeSeriesResponse(api.CreateCollectdTimeSeriesResponse o) { buildCounterCreateCollectdTimeSeriesResponse++; if (buildCounterCreateCollectdTimeSeriesResponse < 3) { - checkUnnamed3694(o.payloadErrors); + checkUnnamed3880(o.payloadErrors); checkCreateTimeSeriesSummary(o.summary); } buildCounterCreateCollectdTimeSeriesResponse--; } -buildUnnamed3695() { +buildUnnamed3881() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed3695(core.List<api.TimeSeries> o) { +checkUnnamed3881(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -627,7 +627,7 @@ var o = new api.CreateTimeSeriesRequest(); buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - o.timeSeries = buildUnnamed3695(); + o.timeSeries = buildUnnamed3881(); } buildCounterCreateTimeSeriesRequest--; return o; @@ -636,19 +636,19 @@ checkCreateTimeSeriesRequest(api.CreateTimeSeriesRequest o) { buildCounterCreateTimeSeriesRequest++; if (buildCounterCreateTimeSeriesRequest < 3) { - checkUnnamed3695(o.timeSeries); + checkUnnamed3881(o.timeSeries); } buildCounterCreateTimeSeriesRequest--; } -buildUnnamed3696() { +buildUnnamed3882() { var o = new core.List<api.Error>(); o.add(buildError()); o.add(buildError()); return o; } -checkUnnamed3696(core.List<api.Error> o) { +checkUnnamed3882(core.List<api.Error> o) { unittest.expect(o, unittest.hasLength(2)); checkError(o[0]); checkError(o[1]); @@ -659,7 +659,7 @@ var o = new api.CreateTimeSeriesSummary(); buildCounterCreateTimeSeriesSummary++; if (buildCounterCreateTimeSeriesSummary < 3) { - o.errors = buildUnnamed3696(); + o.errors = buildUnnamed3882(); o.successPointCount = 42; o.totalPointCount = 42; } @@ -670,7 +670,7 @@ checkCreateTimeSeriesSummary(api.CreateTimeSeriesSummary o) { buildCounterCreateTimeSeriesSummary++; if (buildCounterCreateTimeSeriesSummary < 3) { - checkUnnamed3696(o.errors); + checkUnnamed3882(o.errors); unittest.expect(o.successPointCount, unittest.equals(42)); unittest.expect(o.totalPointCount, unittest.equals(42)); } @@ -692,27 +692,27 @@ buildCounterCustom--; } -buildUnnamed3697() { +buildUnnamed3883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3697(core.List<core.String> o) { +checkUnnamed3883(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3698() { +buildUnnamed3884() { var o = new core.List<api.Exemplar>(); o.add(buildExemplar()); o.add(buildExemplar()); return o; } -checkUnnamed3698(core.List<api.Exemplar> o) { +checkUnnamed3884(core.List<api.Exemplar> o) { unittest.expect(o, unittest.hasLength(2)); checkExemplar(o[0]); checkExemplar(o[1]); @@ -723,10 +723,10 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed3697(); + o.bucketCounts = buildUnnamed3883(); o.bucketOptions = buildBucketOptions(); o.count = "foo"; - o.exemplars = buildUnnamed3698(); + o.exemplars = buildUnnamed3884(); o.mean = 42.0; o.range = buildRange(); o.sumOfSquaredDeviation = 42.0; @@ -738,10 +738,10 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed3697(o.bucketCounts); + checkUnnamed3883(o.bucketCounts); checkBucketOptions(o.bucketOptions); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed3698(o.exemplars); + checkUnnamed3884(o.exemplars); unittest.expect(o.mean, unittest.equals(42.0)); checkRange(o.range); unittest.expect(o.sumOfSquaredDeviation, unittest.equals(42.0)); @@ -791,14 +791,14 @@ buildCounterDocumentation--; } -buildUnnamed3699() { +buildUnnamed3885() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3699(core.Map<core.String, core.String> o) { +checkUnnamed3885(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')); @@ -809,7 +809,7 @@ var o = new api.DroppedLabels(); buildCounterDroppedLabels++; if (buildCounterDroppedLabels < 3) { - o.label = buildUnnamed3699(); + o.label = buildUnnamed3885(); } buildCounterDroppedLabels--; return o; @@ -818,7 +818,7 @@ checkDroppedLabels(api.DroppedLabels o) { buildCounterDroppedLabels++; if (buildCounterDroppedLabels < 3) { - checkUnnamed3699(o.label); + checkUnnamed3885(o.label); } buildCounterDroppedLabels--; } @@ -859,7 +859,7 @@ buildCounterError--; } -buildUnnamed3700() { +buildUnnamed3886() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -874,7 +874,7 @@ return o; } -checkUnnamed3700(core.Map<core.String, core.Object> o) { +checkUnnamed3886(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)); @@ -888,17 +888,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3701() { +buildUnnamed3887() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3700()); - o.add(buildUnnamed3700()); + o.add(buildUnnamed3886()); + o.add(buildUnnamed3886()); return o; } -checkUnnamed3701(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3887(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3700(o[0]); - checkUnnamed3700(o[1]); + checkUnnamed3886(o[0]); + checkUnnamed3886(o[1]); } core.int buildCounterExemplar = 0; @@ -906,7 +906,7 @@ var o = new api.Exemplar(); buildCounterExemplar++; if (buildCounterExemplar < 3) { - o.attachments = buildUnnamed3701(); + o.attachments = buildUnnamed3887(); o.timestamp = "foo"; o.value = 42.0; } @@ -917,21 +917,21 @@ checkExemplar(api.Exemplar o) { buildCounterExemplar++; if (buildCounterExemplar < 3) { - checkUnnamed3701(o.attachments); + checkUnnamed3887(o.attachments); unittest.expect(o.timestamp, unittest.equals('foo')); unittest.expect(o.value, unittest.equals(42.0)); } buildCounterExemplar--; } -buildUnnamed3702() { +buildUnnamed3888() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed3702(core.List<core.double> o) { +checkUnnamed3888(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)); @@ -942,7 +942,7 @@ var o = new api.Explicit(); buildCounterExplicit++; if (buildCounterExplicit < 3) { - o.bounds = buildUnnamed3702(); + o.bounds = buildUnnamed3888(); } buildCounterExplicit--; return o; @@ -951,7 +951,7 @@ checkExplicit(api.Explicit o) { buildCounterExplicit++; if (buildCounterExplicit < 3) { - checkUnnamed3702(o.bounds); + checkUnnamed3888(o.bounds); } buildCounterExplicit--; } @@ -979,14 +979,14 @@ buildCounterExponential--; } -buildUnnamed3703() { +buildUnnamed3889() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3703(core.List<api.Option> o) { +checkUnnamed3889(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1004,7 +1004,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed3703(); + o.options = buildUnnamed3889(); o.packed = true; o.typeUrl = "foo"; } @@ -1022,7 +1022,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed3703(o.options); + checkUnnamed3889(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -1119,14 +1119,14 @@ buildCounterGroup--; } -buildUnnamed3704() { +buildUnnamed3890() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3704(core.Map<core.String, core.String> o) { +checkUnnamed3890(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')); @@ -1140,7 +1140,7 @@ o.authInfo = buildBasicAuthentication(); o.body = "foo"; o.contentType = "foo"; - o.headers = buildUnnamed3704(); + o.headers = buildUnnamed3890(); o.maskHeaders = true; o.path = "foo"; o.port = 42; @@ -1158,7 +1158,7 @@ checkBasicAuthentication(o.authInfo); unittest.expect(o.body, unittest.equals('foo')); unittest.expect(o.contentType, unittest.equals('foo')); - checkUnnamed3704(o.headers); + checkUnnamed3890(o.headers); unittest.expect(o.maskHeaders, unittest.isTrue); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); @@ -1286,14 +1286,14 @@ buildCounterLinear--; } -buildUnnamed3705() { +buildUnnamed3891() { var o = new core.List<api.AlertPolicy>(); o.add(buildAlertPolicy()); o.add(buildAlertPolicy()); return o; } -checkUnnamed3705(core.List<api.AlertPolicy> o) { +checkUnnamed3891(core.List<api.AlertPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkAlertPolicy(o[0]); checkAlertPolicy(o[1]); @@ -1304,8 +1304,9 @@ var o = new api.ListAlertPoliciesResponse(); buildCounterListAlertPoliciesResponse++; if (buildCounterListAlertPoliciesResponse < 3) { - o.alertPolicies = buildUnnamed3705(); + o.alertPolicies = buildUnnamed3891(); o.nextPageToken = "foo"; + o.totalSize = 42; } buildCounterListAlertPoliciesResponse--; return o; @@ -1314,20 +1315,21 @@ checkListAlertPoliciesResponse(api.ListAlertPoliciesResponse o) { buildCounterListAlertPoliciesResponse++; if (buildCounterListAlertPoliciesResponse < 3) { - checkUnnamed3705(o.alertPolicies); + checkUnnamed3891(o.alertPolicies); unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAlertPoliciesResponse--; } -buildUnnamed3706() { +buildUnnamed3892() { var o = new core.List<api.MonitoredResource>(); o.add(buildMonitoredResource()); o.add(buildMonitoredResource()); return o; } -checkUnnamed3706(core.List<api.MonitoredResource> o) { +checkUnnamed3892(core.List<api.MonitoredResource> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResource(o[0]); checkMonitoredResource(o[1]); @@ -1338,7 +1340,7 @@ var o = new api.ListGroupMembersResponse(); buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - o.members = buildUnnamed3706(); + o.members = buildUnnamed3892(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -1349,21 +1351,21 @@ checkListGroupMembersResponse(api.ListGroupMembersResponse o) { buildCounterListGroupMembersResponse++; if (buildCounterListGroupMembersResponse < 3) { - checkUnnamed3706(o.members); + checkUnnamed3892(o.members); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListGroupMembersResponse--; } -buildUnnamed3707() { +buildUnnamed3893() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed3707(core.List<api.Group> o) { +checkUnnamed3893(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -1374,7 +1376,7 @@ var o = new api.ListGroupsResponse(); buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - o.group = buildUnnamed3707(); + o.group = buildUnnamed3893(); o.nextPageToken = "foo"; } buildCounterListGroupsResponse--; @@ -1384,20 +1386,20 @@ checkListGroupsResponse(api.ListGroupsResponse o) { buildCounterListGroupsResponse++; if (buildCounterListGroupsResponse < 3) { - checkUnnamed3707(o.group); + checkUnnamed3893(o.group); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed3708() { +buildUnnamed3894() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed3708(core.List<api.MetricDescriptor> o) { +checkUnnamed3894(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); @@ -1408,7 +1410,7 @@ var o = new api.ListMetricDescriptorsResponse(); buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - o.metricDescriptors = buildUnnamed3708(); + o.metricDescriptors = buildUnnamed3894(); o.nextPageToken = "foo"; } buildCounterListMetricDescriptorsResponse--; @@ -1418,20 +1420,20 @@ checkListMetricDescriptorsResponse(api.ListMetricDescriptorsResponse o) { buildCounterListMetricDescriptorsResponse++; if (buildCounterListMetricDescriptorsResponse < 3) { - checkUnnamed3708(o.metricDescriptors); + checkUnnamed3894(o.metricDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMetricDescriptorsResponse--; } -buildUnnamed3709() { +buildUnnamed3895() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed3709(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3895(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); @@ -1443,7 +1445,7 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { o.nextPageToken = "foo"; - o.resourceDescriptors = buildUnnamed3709(); + o.resourceDescriptors = buildUnnamed3895(); } buildCounterListMonitoredResourceDescriptorsResponse--; return o; @@ -1454,19 +1456,19 @@ buildCounterListMonitoredResourceDescriptorsResponse++; if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3709(o.resourceDescriptors); + checkUnnamed3895(o.resourceDescriptors); } buildCounterListMonitoredResourceDescriptorsResponse--; } -buildUnnamed3710() { +buildUnnamed3896() { var o = new core.List<api.NotificationChannelDescriptor>(); o.add(buildNotificationChannelDescriptor()); o.add(buildNotificationChannelDescriptor()); return o; } -checkUnnamed3710(core.List<api.NotificationChannelDescriptor> o) { +checkUnnamed3896(core.List<api.NotificationChannelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkNotificationChannelDescriptor(o[0]); checkNotificationChannelDescriptor(o[1]); @@ -1477,7 +1479,7 @@ var o = new api.ListNotificationChannelDescriptorsResponse(); buildCounterListNotificationChannelDescriptorsResponse++; if (buildCounterListNotificationChannelDescriptorsResponse < 3) { - o.channelDescriptors = buildUnnamed3710(); + o.channelDescriptors = buildUnnamed3896(); o.nextPageToken = "foo"; } buildCounterListNotificationChannelDescriptorsResponse--; @@ -1488,20 +1490,20 @@ api.ListNotificationChannelDescriptorsResponse o) { buildCounterListNotificationChannelDescriptorsResponse++; if (buildCounterListNotificationChannelDescriptorsResponse < 3) { - checkUnnamed3710(o.channelDescriptors); + checkUnnamed3896(o.channelDescriptors); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListNotificationChannelDescriptorsResponse--; } -buildUnnamed3711() { +buildUnnamed3897() { var o = new core.List<api.NotificationChannel>(); o.add(buildNotificationChannel()); o.add(buildNotificationChannel()); return o; } -checkUnnamed3711(core.List<api.NotificationChannel> o) { +checkUnnamed3897(core.List<api.NotificationChannel> o) { unittest.expect(o, unittest.hasLength(2)); checkNotificationChannel(o[0]); checkNotificationChannel(o[1]); @@ -1513,7 +1515,8 @@ buildCounterListNotificationChannelsResponse++; if (buildCounterListNotificationChannelsResponse < 3) { o.nextPageToken = "foo"; - o.notificationChannels = buildUnnamed3711(); + o.notificationChannels = buildUnnamed3897(); + o.totalSize = 42; } buildCounterListNotificationChannelsResponse--; return o; @@ -1523,19 +1526,20 @@ buildCounterListNotificationChannelsResponse++; if (buildCounterListNotificationChannelsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3711(o.notificationChannels); + checkUnnamed3897(o.notificationChannels); + unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListNotificationChannelsResponse--; } -buildUnnamed3712() { +buildUnnamed3898() { var o = new core.List<api.ServiceLevelObjective>(); o.add(buildServiceLevelObjective()); o.add(buildServiceLevelObjective()); return o; } -checkUnnamed3712(core.List<api.ServiceLevelObjective> o) { +checkUnnamed3898(core.List<api.ServiceLevelObjective> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceLevelObjective(o[0]); checkServiceLevelObjective(o[1]); @@ -1547,7 +1551,7 @@ buildCounterListServiceLevelObjectivesResponse++; if (buildCounterListServiceLevelObjectivesResponse < 3) { o.nextPageToken = "foo"; - o.serviceLevelObjectives = buildUnnamed3712(); + o.serviceLevelObjectives = buildUnnamed3898(); } buildCounterListServiceLevelObjectivesResponse--; return o; @@ -1558,19 +1562,19 @@ buildCounterListServiceLevelObjectivesResponse++; if (buildCounterListServiceLevelObjectivesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3712(o.serviceLevelObjectives); + checkUnnamed3898(o.serviceLevelObjectives); } buildCounterListServiceLevelObjectivesResponse--; } -buildUnnamed3713() { +buildUnnamed3899() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed3713(core.List<api.Service> o) { +checkUnnamed3899(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1582,7 +1586,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed3713(); + o.services = buildUnnamed3899(); } buildCounterListServicesResponse--; return o; @@ -1592,32 +1596,32 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3713(o.services); + checkUnnamed3899(o.services); } buildCounterListServicesResponse--; } -buildUnnamed3714() { +buildUnnamed3900() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3714(core.List<api.Status> o) { +checkUnnamed3900(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -buildUnnamed3715() { +buildUnnamed3901() { var o = new core.List<api.TimeSeries>(); o.add(buildTimeSeries()); o.add(buildTimeSeries()); return o; } -checkUnnamed3715(core.List<api.TimeSeries> o) { +checkUnnamed3901(core.List<api.TimeSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeries(o[0]); checkTimeSeries(o[1]); @@ -1628,9 +1632,10 @@ var o = new api.ListTimeSeriesResponse(); buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { - o.executionErrors = buildUnnamed3714(); + o.executionErrors = buildUnnamed3900(); o.nextPageToken = "foo"; - o.timeSeries = buildUnnamed3715(); + o.timeSeries = buildUnnamed3901(); + o.unit = "foo"; } buildCounterListTimeSeriesResponse--; return o; @@ -1639,21 +1644,22 @@ checkListTimeSeriesResponse(api.ListTimeSeriesResponse o) { buildCounterListTimeSeriesResponse++; if (buildCounterListTimeSeriesResponse < 3) { - checkUnnamed3714(o.executionErrors); + checkUnnamed3900(o.executionErrors); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3715(o.timeSeries); + checkUnnamed3901(o.timeSeries); + unittest.expect(o.unit, unittest.equals('foo')); } buildCounterListTimeSeriesResponse--; } -buildUnnamed3716() { +buildUnnamed3902() { var o = new core.List<api.UptimeCheckConfig>(); o.add(buildUptimeCheckConfig()); o.add(buildUptimeCheckConfig()); return o; } -checkUnnamed3716(core.List<api.UptimeCheckConfig> o) { +checkUnnamed3902(core.List<api.UptimeCheckConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkUptimeCheckConfig(o[0]); checkUptimeCheckConfig(o[1]); @@ -1666,7 +1672,7 @@ if (buildCounterListUptimeCheckConfigsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.uptimeCheckConfigs = buildUnnamed3716(); + o.uptimeCheckConfigs = buildUnnamed3902(); } buildCounterListUptimeCheckConfigsResponse--; return o; @@ -1677,19 +1683,19 @@ if (buildCounterListUptimeCheckConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed3716(o.uptimeCheckConfigs); + checkUnnamed3902(o.uptimeCheckConfigs); } buildCounterListUptimeCheckConfigsResponse--; } -buildUnnamed3717() { +buildUnnamed3903() { var o = new core.List<api.UptimeCheckIp>(); o.add(buildUptimeCheckIp()); o.add(buildUptimeCheckIp()); return o; } -checkUnnamed3717(core.List<api.UptimeCheckIp> o) { +checkUnnamed3903(core.List<api.UptimeCheckIp> o) { unittest.expect(o, unittest.hasLength(2)); checkUptimeCheckIp(o[0]); checkUptimeCheckIp(o[1]); @@ -1701,7 +1707,7 @@ buildCounterListUptimeCheckIpsResponse++; if (buildCounterListUptimeCheckIpsResponse < 3) { o.nextPageToken = "foo"; - o.uptimeCheckIps = buildUnnamed3717(); + o.uptimeCheckIps = buildUnnamed3903(); } buildCounterListUptimeCheckIpsResponse--; return o; @@ -1711,7 +1717,7 @@ buildCounterListUptimeCheckIpsResponse++; if (buildCounterListUptimeCheckIpsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3717(o.uptimeCheckIps); + checkUnnamed3903(o.uptimeCheckIps); } buildCounterListUptimeCheckIpsResponse--; } @@ -1739,14 +1745,14 @@ buildCounterMeshIstio--; } -buildUnnamed3718() { +buildUnnamed3904() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3718(core.Map<core.String, core.String> o) { +checkUnnamed3904(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')); @@ -1757,7 +1763,7 @@ var o = new api.Metric(); buildCounterMetric++; if (buildCounterMetric < 3) { - o.labels = buildUnnamed3718(); + o.labels = buildUnnamed3904(); o.type = "foo"; } buildCounterMetric--; @@ -1767,20 +1773,20 @@ checkMetric(api.Metric o) { buildCounterMetric++; if (buildCounterMetric < 3) { - checkUnnamed3718(o.labels); + checkUnnamed3904(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMetric--; } -buildUnnamed3719() { +buildUnnamed3905() { var o = new core.List<api.Aggregation>(); o.add(buildAggregation()); o.add(buildAggregation()); return o; } -checkUnnamed3719(core.List<api.Aggregation> o) { +checkUnnamed3905(core.List<api.Aggregation> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregation(o[0]); checkAggregation(o[1]); @@ -1791,7 +1797,7 @@ var o = new api.MetricAbsence(); buildCounterMetricAbsence++; if (buildCounterMetricAbsence < 3) { - o.aggregations = buildUnnamed3719(); + o.aggregations = buildUnnamed3905(); o.duration = "foo"; o.filter = "foo"; o.trigger = buildTrigger(); @@ -1803,7 +1809,7 @@ checkMetricAbsence(api.MetricAbsence o) { buildCounterMetricAbsence++; if (buildCounterMetricAbsence < 3) { - checkUnnamed3719(o.aggregations); + checkUnnamed3905(o.aggregations); unittest.expect(o.duration, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); checkTrigger(o.trigger); @@ -1811,27 +1817,27 @@ buildCounterMetricAbsence--; } -buildUnnamed3720() { +buildUnnamed3906() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3720(core.List<api.LabelDescriptor> o) { +checkUnnamed3906(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed3721() { +buildUnnamed3907() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3721(core.List<core.String> o) { +checkUnnamed3907(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1844,11 +1850,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3720(); + o.labels = buildUnnamed3906(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed3721(); + o.monitoredResourceTypes = buildUnnamed3907(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -1863,11 +1869,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3720(o.labels); + checkUnnamed3906(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed3721(o.monitoredResourceTypes); + checkUnnamed3907(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -1920,27 +1926,27 @@ buildCounterMetricRange--; } -buildUnnamed3722() { +buildUnnamed3908() { var o = new core.List<api.Aggregation>(); o.add(buildAggregation()); o.add(buildAggregation()); return o; } -checkUnnamed3722(core.List<api.Aggregation> o) { +checkUnnamed3908(core.List<api.Aggregation> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregation(o[0]); checkAggregation(o[1]); } -buildUnnamed3723() { +buildUnnamed3909() { var o = new core.List<api.Aggregation>(); o.add(buildAggregation()); o.add(buildAggregation()); return o; } -checkUnnamed3723(core.List<api.Aggregation> o) { +checkUnnamed3909(core.List<api.Aggregation> o) { unittest.expect(o, unittest.hasLength(2)); checkAggregation(o[0]); checkAggregation(o[1]); @@ -1951,9 +1957,9 @@ var o = new api.MetricThreshold(); buildCounterMetricThreshold++; if (buildCounterMetricThreshold < 3) { - o.aggregations = buildUnnamed3722(); + o.aggregations = buildUnnamed3908(); o.comparison = "foo"; - o.denominatorAggregations = buildUnnamed3723(); + o.denominatorAggregations = buildUnnamed3909(); o.denominatorFilter = "foo"; o.duration = "foo"; o.filter = "foo"; @@ -1967,9 +1973,9 @@ checkMetricThreshold(api.MetricThreshold o) { buildCounterMetricThreshold++; if (buildCounterMetricThreshold < 3) { - checkUnnamed3722(o.aggregations); + checkUnnamed3908(o.aggregations); unittest.expect(o.comparison, unittest.equals('foo')); - checkUnnamed3723(o.denominatorAggregations); + checkUnnamed3909(o.denominatorAggregations); unittest.expect(o.denominatorFilter, unittest.equals('foo')); unittest.expect(o.duration, unittest.equals('foo')); unittest.expect(o.filter, unittest.equals('foo')); @@ -1979,14 +1985,14 @@ buildCounterMetricThreshold--; } -buildUnnamed3724() { +buildUnnamed3910() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3724(core.Map<core.String, core.String> o) { +checkUnnamed3910(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')); @@ -1997,7 +2003,7 @@ var o = new api.MonitoredResource(); buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - o.labels = buildUnnamed3724(); + o.labels = buildUnnamed3910(); o.type = "foo"; } buildCounterMonitoredResource--; @@ -2007,20 +2013,20 @@ checkMonitoredResource(api.MonitoredResource o) { buildCounterMonitoredResource++; if (buildCounterMonitoredResource < 3) { - checkUnnamed3724(o.labels); + checkUnnamed3910(o.labels); unittest.expect(o.type, unittest.equals('foo')); } buildCounterMonitoredResource--; } -buildUnnamed3725() { +buildUnnamed3911() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3725(core.List<api.LabelDescriptor> o) { +checkUnnamed3911(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2033,7 +2039,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3725(); + o.labels = buildUnnamed3911(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -2047,7 +2053,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3725(o.labels); + checkUnnamed3911(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2055,7 +2061,7 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed3726() { +buildUnnamed3912() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2070,7 +2076,7 @@ return o; } -checkUnnamed3726(core.Map<core.String, core.Object> o) { +checkUnnamed3912(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)); @@ -2084,14 +2090,14 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3727() { +buildUnnamed3913() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3727(core.Map<core.String, core.String> o) { +checkUnnamed3913(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')); @@ -2102,8 +2108,8 @@ var o = new api.MonitoredResourceMetadata(); buildCounterMonitoredResourceMetadata++; if (buildCounterMonitoredResourceMetadata < 3) { - o.systemLabels = buildUnnamed3726(); - o.userLabels = buildUnnamed3727(); + o.systemLabels = buildUnnamed3912(); + o.userLabels = buildUnnamed3913(); } buildCounterMonitoredResourceMetadata--; return o; @@ -2112,8 +2118,8 @@ checkMonitoredResourceMetadata(api.MonitoredResourceMetadata o) { buildCounterMonitoredResourceMetadata++; if (buildCounterMonitoredResourceMetadata < 3) { - checkUnnamed3726(o.systemLabels); - checkUnnamed3727(o.userLabels); + checkUnnamed3912(o.systemLabels); + checkUnnamed3913(o.userLabels); } buildCounterMonitoredResourceMetadata--; } @@ -2139,27 +2145,27 @@ buildCounterMutationRecord--; } -buildUnnamed3728() { +buildUnnamed3914() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3728(core.Map<core.String, core.String> o) { +checkUnnamed3914(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')); } -buildUnnamed3729() { +buildUnnamed3915() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3729(core.Map<core.String, core.String> o) { +checkUnnamed3915(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')); @@ -2173,10 +2179,10 @@ o.description = "foo"; o.displayName = "foo"; o.enabled = true; - o.labels = buildUnnamed3728(); + o.labels = buildUnnamed3914(); o.name = "foo"; o.type = "foo"; - o.userLabels = buildUnnamed3729(); + o.userLabels = buildUnnamed3915(); o.verificationStatus = "foo"; } buildCounterNotificationChannel--; @@ -2189,23 +2195,23 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.enabled, unittest.isTrue); - checkUnnamed3728(o.labels); + checkUnnamed3914(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed3729(o.userLabels); + checkUnnamed3915(o.userLabels); unittest.expect(o.verificationStatus, unittest.equals('foo')); } buildCounterNotificationChannel--; } -buildUnnamed3730() { +buildUnnamed3916() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3730(core.List<api.LabelDescriptor> o) { +checkUnnamed3916(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2218,7 +2224,7 @@ if (buildCounterNotificationChannelDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3730(); + o.labels = buildUnnamed3916(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -2232,7 +2238,7 @@ if (buildCounterNotificationChannelDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3730(o.labels); + checkUnnamed3916(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2240,7 +2246,7 @@ buildCounterNotificationChannelDescriptor--; } -buildUnnamed3731() { +buildUnnamed3917() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2255,7 +2261,7 @@ return o; } -checkUnnamed3731(core.Map<core.String, core.Object> o) { +checkUnnamed3917(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)); @@ -2275,7 +2281,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed3731(); + o.value = buildUnnamed3917(); } buildCounterOption--; return o; @@ -2285,7 +2291,7 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3731(o.value); + checkUnnamed3917(o.value); } buildCounterOption--; } @@ -2334,14 +2340,14 @@ buildCounterPoint--; } -buildUnnamed3732() { +buildUnnamed3918() { var o = new core.List<api.TypedValue>(); o.add(buildTypedValue()); o.add(buildTypedValue()); return o; } -checkUnnamed3732(core.List<api.TypedValue> o) { +checkUnnamed3918(core.List<api.TypedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkTypedValue(o[0]); checkTypedValue(o[1]); @@ -2353,7 +2359,7 @@ buildCounterPointData++; if (buildCounterPointData < 3) { o.timeInterval = buildTimeInterval(); - o.values = buildUnnamed3732(); + o.values = buildUnnamed3918(); } buildCounterPointData--; return o; @@ -2363,7 +2369,7 @@ buildCounterPointData++; if (buildCounterPointData < 3) { checkTimeInterval(o.timeInterval); - checkUnnamed3732(o.values); + checkUnnamed3918(o.values); } buildCounterPointData--; } @@ -2391,27 +2397,27 @@ buildCounterQueryTimeSeriesRequest--; } -buildUnnamed3733() { +buildUnnamed3919() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3733(core.List<api.Status> o) { +checkUnnamed3919(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); } -buildUnnamed3734() { +buildUnnamed3920() { var o = new core.List<api.TimeSeriesData>(); o.add(buildTimeSeriesData()); o.add(buildTimeSeriesData()); return o; } -checkUnnamed3734(core.List<api.TimeSeriesData> o) { +checkUnnamed3920(core.List<api.TimeSeriesData> o) { unittest.expect(o, unittest.hasLength(2)); checkTimeSeriesData(o[0]); checkTimeSeriesData(o[1]); @@ -2423,8 +2429,8 @@ buildCounterQueryTimeSeriesResponse++; if (buildCounterQueryTimeSeriesResponse < 3) { o.nextPageToken = "foo"; - o.partialErrors = buildUnnamed3733(); - o.timeSeriesData = buildUnnamed3734(); + o.partialErrors = buildUnnamed3919(); + o.timeSeriesData = buildUnnamed3920(); o.timeSeriesDescriptor = buildTimeSeriesDescriptor(); } buildCounterQueryTimeSeriesResponse--; @@ -2435,8 +2441,8 @@ buildCounterQueryTimeSeriesResponse++; if (buildCounterQueryTimeSeriesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3733(o.partialErrors); - checkUnnamed3734(o.timeSeriesData); + checkUnnamed3919(o.partialErrors); + checkUnnamed3920(o.timeSeriesData); checkTimeSeriesDescriptor(o.timeSeriesDescriptor); } buildCounterQueryTimeSeriesResponse--; @@ -2644,7 +2650,7 @@ buildCounterSpanContext--; } -buildUnnamed3735() { +buildUnnamed3921() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2659,7 +2665,7 @@ return o; } -checkUnnamed3735(core.Map<core.String, core.Object> o) { +checkUnnamed3921(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)); @@ -2673,17 +2679,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3736() { +buildUnnamed3922() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3735()); - o.add(buildUnnamed3735()); + o.add(buildUnnamed3921()); + o.add(buildUnnamed3921()); return o; } -checkUnnamed3736(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3922(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3735(o[0]); - checkUnnamed3735(o[1]); + checkUnnamed3921(o[0]); + checkUnnamed3921(o[1]); } core.int buildCounterStatus = 0; @@ -2692,7 +2698,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3736(); + o.details = buildUnnamed3922(); o.message = "foo"; } buildCounterStatus--; @@ -2703,7 +2709,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3736(o.details); + checkUnnamed3922(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2768,14 +2774,14 @@ buildCounterTimeInterval--; } -buildUnnamed3737() { +buildUnnamed3923() { var o = new core.List<api.Point>(); o.add(buildPoint()); o.add(buildPoint()); return o; } -checkUnnamed3737(core.List<api.Point> o) { +checkUnnamed3923(core.List<api.Point> o) { unittest.expect(o, unittest.hasLength(2)); checkPoint(o[0]); checkPoint(o[1]); @@ -2789,8 +2795,9 @@ o.metadata = buildMonitoredResourceMetadata(); o.metric = buildMetric(); o.metricKind = "foo"; - o.points = buildUnnamed3737(); + o.points = buildUnnamed3923(); o.resource = buildMonitoredResource(); + o.unit = "foo"; o.valueType = "foo"; } buildCounterTimeSeries--; @@ -2803,34 +2810,35 @@ checkMonitoredResourceMetadata(o.metadata); checkMetric(o.metric); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed3737(o.points); + checkUnnamed3923(o.points); checkMonitoredResource(o.resource); + unittest.expect(o.unit, unittest.equals('foo')); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterTimeSeries--; } -buildUnnamed3738() { +buildUnnamed3924() { var o = new core.List<api.LabelValue>(); o.add(buildLabelValue()); o.add(buildLabelValue()); return o; } -checkUnnamed3738(core.List<api.LabelValue> o) { +checkUnnamed3924(core.List<api.LabelValue> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelValue(o[0]); checkLabelValue(o[1]); } -buildUnnamed3739() { +buildUnnamed3925() { var o = new core.List<api.PointData>(); o.add(buildPointData()); o.add(buildPointData()); return o; } -checkUnnamed3739(core.List<api.PointData> o) { +checkUnnamed3925(core.List<api.PointData> o) { unittest.expect(o, unittest.hasLength(2)); checkPointData(o[0]); checkPointData(o[1]); @@ -2841,8 +2849,8 @@ var o = new api.TimeSeriesData(); buildCounterTimeSeriesData++; if (buildCounterTimeSeriesData < 3) { - o.labelValues = buildUnnamed3738(); - o.pointData = buildUnnamed3739(); + o.labelValues = buildUnnamed3924(); + o.pointData = buildUnnamed3925(); } buildCounterTimeSeriesData--; return o; @@ -2851,33 +2859,33 @@ checkTimeSeriesData(api.TimeSeriesData o) { buildCounterTimeSeriesData++; if (buildCounterTimeSeriesData < 3) { - checkUnnamed3738(o.labelValues); - checkUnnamed3739(o.pointData); + checkUnnamed3924(o.labelValues); + checkUnnamed3925(o.pointData); } buildCounterTimeSeriesData--; } -buildUnnamed3740() { +buildUnnamed3926() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3740(core.List<api.LabelDescriptor> o) { +checkUnnamed3926(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed3741() { +buildUnnamed3927() { var o = new core.List<api.ValueDescriptor>(); o.add(buildValueDescriptor()); o.add(buildValueDescriptor()); return o; } -checkUnnamed3741(core.List<api.ValueDescriptor> o) { +checkUnnamed3927(core.List<api.ValueDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkValueDescriptor(o[0]); checkValueDescriptor(o[1]); @@ -2888,8 +2896,8 @@ var o = new api.TimeSeriesDescriptor(); buildCounterTimeSeriesDescriptor++; if (buildCounterTimeSeriesDescriptor < 3) { - o.labelDescriptors = buildUnnamed3740(); - o.pointDescriptors = buildUnnamed3741(); + o.labelDescriptors = buildUnnamed3926(); + o.pointDescriptors = buildUnnamed3927(); } buildCounterTimeSeriesDescriptor--; return o; @@ -2898,8 +2906,8 @@ checkTimeSeriesDescriptor(api.TimeSeriesDescriptor o) { buildCounterTimeSeriesDescriptor++; if (buildCounterTimeSeriesDescriptor < 3) { - checkUnnamed3740(o.labelDescriptors); - checkUnnamed3741(o.pointDescriptors); + checkUnnamed3926(o.labelDescriptors); + checkUnnamed3927(o.pointDescriptors); } buildCounterTimeSeriesDescriptor--; } @@ -2948,40 +2956,40 @@ buildCounterTrigger--; } -buildUnnamed3742() { +buildUnnamed3928() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed3742(core.List<api.Field> o) { +checkUnnamed3928(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed3743() { +buildUnnamed3929() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3743(core.List<core.String> o) { +checkUnnamed3929(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3744() { +buildUnnamed3930() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3744(core.List<api.Option> o) { +checkUnnamed3930(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2992,10 +3000,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed3742(); + o.fields = buildUnnamed3928(); o.name = "foo"; - o.oneofs = buildUnnamed3743(); - o.options = buildUnnamed3744(); + o.oneofs = buildUnnamed3929(); + o.options = buildUnnamed3930(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -3006,10 +3014,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed3742(o.fields); + checkUnnamed3928(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3743(o.oneofs); - checkUnnamed3744(o.options); + checkUnnamed3929(o.oneofs); + checkUnnamed3930(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -3043,40 +3051,40 @@ buildCounterTypedValue--; } -buildUnnamed3745() { +buildUnnamed3931() { var o = new core.List<api.ContentMatcher>(); o.add(buildContentMatcher()); o.add(buildContentMatcher()); return o; } -checkUnnamed3745(core.List<api.ContentMatcher> o) { +checkUnnamed3931(core.List<api.ContentMatcher> o) { unittest.expect(o, unittest.hasLength(2)); checkContentMatcher(o[0]); checkContentMatcher(o[1]); } -buildUnnamed3746() { +buildUnnamed3932() { var o = new core.List<api.InternalChecker>(); o.add(buildInternalChecker()); o.add(buildInternalChecker()); return o; } -checkUnnamed3746(core.List<api.InternalChecker> o) { +checkUnnamed3932(core.List<api.InternalChecker> o) { unittest.expect(o, unittest.hasLength(2)); checkInternalChecker(o[0]); checkInternalChecker(o[1]); } -buildUnnamed3747() { +buildUnnamed3933() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3747(core.List<core.String> o) { +checkUnnamed3933(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3087,16 +3095,16 @@ var o = new api.UptimeCheckConfig(); buildCounterUptimeCheckConfig++; if (buildCounterUptimeCheckConfig < 3) { - o.contentMatchers = buildUnnamed3745(); + o.contentMatchers = buildUnnamed3931(); o.displayName = "foo"; o.httpCheck = buildHttpCheck(); - o.internalCheckers = buildUnnamed3746(); + o.internalCheckers = buildUnnamed3932(); o.isInternal = true; o.monitoredResource = buildMonitoredResource(); o.name = "foo"; o.period = "foo"; o.resourceGroup = buildResourceGroup(); - o.selectedRegions = buildUnnamed3747(); + o.selectedRegions = buildUnnamed3933(); o.tcpCheck = buildTcpCheck(); o.timeout = "foo"; } @@ -3107,16 +3115,16 @@ checkUptimeCheckConfig(api.UptimeCheckConfig o) { buildCounterUptimeCheckConfig++; if (buildCounterUptimeCheckConfig < 3) { - checkUnnamed3745(o.contentMatchers); + checkUnnamed3931(o.contentMatchers); unittest.expect(o.displayName, unittest.equals('foo')); checkHttpCheck(o.httpCheck); - checkUnnamed3746(o.internalCheckers); + checkUnnamed3932(o.internalCheckers); unittest.expect(o.isInternal, unittest.isTrue); checkMonitoredResource(o.monitoredResource); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.period, unittest.equals('foo')); checkResourceGroup(o.resourceGroup); - checkUnnamed3747(o.selectedRegions); + checkUnnamed3933(o.selectedRegions); checkTcpCheck(o.tcpCheck); unittest.expect(o.timeout, unittest.equals('foo')); } @@ -3153,6 +3161,7 @@ if (buildCounterValueDescriptor < 3) { o.key = "foo"; o.metricKind = "foo"; + o.unit = "foo"; o.valueType = "foo"; } buildCounterValueDescriptor--; @@ -3164,6 +3173,7 @@ if (buildCounterValueDescriptor < 3) { unittest.expect(o.key, unittest.equals('foo')); unittest.expect(o.metricKind, unittest.equals('foo')); + unittest.expect(o.unit, unittest.equals('foo')); unittest.expect(o.valueType, unittest.equals('foo')); } buildCounterValueDescriptor--; @@ -3215,14 +3225,14 @@ buildCounterWindowsBasedSli--; } -buildUnnamed3748() { +buildUnnamed3934() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3748(core.List<core.String> o) { +checkUnnamed3934(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4171,10 +4181,10 @@ api.ProjectsAlertPoliciesResourceApi res = new api.MonitoringApi(mock).projects.alertPolicies; var arg_name = "foo"; - var arg_orderBy = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4208,12 +4218,12 @@ } } unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4224,10 +4234,10 @@ }), true); res .list(arg_name, - orderBy: arg_orderBy, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + orderBy: arg_orderBy, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAlertPoliciesResponse(response); @@ -4527,10 +4537,10 @@ new api.MonitoringApi(mock).projects.groups; var arg_name = "foo"; var arg_pageToken = "foo"; + var arg_descendantsOfGroup = "foo"; var arg_pageSize = 42; var arg_ancestorsOfGroup = "foo"; var arg_childrenOfGroup = "foo"; - var arg_descendantsOfGroup = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4565,14 +4575,14 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["descendantsOfGroup"].first, + unittest.equals(arg_descendantsOfGroup)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["ancestorsOfGroup"].first, unittest.equals(arg_ancestorsOfGroup)); unittest.expect(queryMap["childrenOfGroup"].first, unittest.equals(arg_childrenOfGroup)); - unittest.expect(queryMap["descendantsOfGroup"].first, - unittest.equals(arg_descendantsOfGroup)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4584,10 +4594,10 @@ res .list(arg_name, pageToken: arg_pageToken, + descendantsOfGroup: arg_descendantsOfGroup, pageSize: arg_pageSize, ancestorsOfGroup: arg_ancestorsOfGroup, childrenOfGroup: arg_childrenOfGroup, - descendantsOfGroup: arg_descendantsOfGroup, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGroupsResponse(response); @@ -4661,8 +4671,8 @@ api.ProjectsGroupsMembersResourceApi res = new api.MonitoringApi(mock).projects.groups.members; var arg_name = "foo"; - var arg_interval_endTime = "foo"; var arg_filter = "foo"; + var arg_interval_endTime = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_interval_startTime = "foo"; @@ -4698,9 +4708,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["interval.endTime"].first, unittest.equals(arg_interval_endTime)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -4717,8 +4727,8 @@ }), true); res .list(arg_name, - interval_endTime: arg_interval_endTime, filter: arg_filter, + interval_endTime: arg_interval_endTime, pageToken: arg_pageToken, pageSize: arg_pageSize, interval_startTime: arg_interval_startTime, @@ -4895,9 +4905,9 @@ api.ProjectsMetricDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.metricDescriptors; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4930,11 +4940,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4945,9 +4955,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListMetricDescriptorsResponse(response); @@ -5014,8 +5024,8 @@ api.ProjectsMonitoredResourceDescriptorsResourceApi res = new api.MonitoringApi(mock).projects.monitoredResourceDescriptors; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -5049,9 +5059,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -5065,8 +5075,8 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -5419,10 +5429,10 @@ api.ProjectsNotificationChannelsResourceApi res = new api.MonitoringApi(mock).projects.notificationChannels; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_orderBy = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5455,13 +5465,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5472,10 +5482,10 @@ }), true); res .list(arg_name, - filter: arg_filter, - orderBy: arg_orderBy, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + orderBy: arg_orderBy, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListNotificationChannelsResponse(response); @@ -5719,17 +5729,17 @@ api.ProjectsTimeSeriesResourceApi res = new api.MonitoringApi(mock).projects.timeSeries; var arg_name = "foo"; - var arg_interval_endTime = "foo"; var arg_aggregation_alignmentPeriod = "foo"; - var arg_pageSize = 42; - var arg_orderBy = "foo"; var arg_aggregation_crossSeriesReducer = "foo"; - var arg_filter = "foo"; var arg_aggregation_perSeriesAligner = "foo"; - var arg_pageToken = "foo"; - var arg_interval_startTime = "foo"; + var arg_pageSize = 42; var arg_view = "foo"; - var arg_aggregation_groupByFields = buildUnnamed3748(); + var arg_aggregation_groupByFields = buildUnnamed3934(); + var arg_orderBy = "foo"; + var arg_filter = "foo"; + var arg_pageToken = "foo"; + var arg_interval_endTime = "foo"; + var arg_interval_startTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5762,26 +5772,26 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["interval.endTime"].first, - unittest.equals(arg_interval_endTime)); unittest.expect(queryMap["aggregation.alignmentPeriod"].first, unittest.equals(arg_aggregation_alignmentPeriod)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["aggregation.crossSeriesReducer"].first, unittest.equals(arg_aggregation_crossSeriesReducer)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["aggregation.perSeriesAligner"].first, unittest.equals(arg_aggregation_perSeriesAligner)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - 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.groupByFields"], unittest.equals(arg_aggregation_groupByFields)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["interval.endTime"].first, + unittest.equals(arg_interval_endTime)); + unittest.expect(queryMap["interval.startTime"].first, + unittest.equals(arg_interval_startTime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5792,18 +5802,18 @@ }), true); res .list(arg_name, - interval_endTime: arg_interval_endTime, aggregation_alignmentPeriod: arg_aggregation_alignmentPeriod, - pageSize: arg_pageSize, - orderBy: arg_orderBy, aggregation_crossSeriesReducer: arg_aggregation_crossSeriesReducer, - filter: arg_filter, aggregation_perSeriesAligner: arg_aggregation_perSeriesAligner, - pageToken: arg_pageToken, - interval_startTime: arg_interval_startTime, + pageSize: arg_pageSize, view: arg_view, aggregation_groupByFields: arg_aggregation_groupByFields, + orderBy: arg_orderBy, + filter: arg_filter, + pageToken: arg_pageToken, + interval_endTime: arg_interval_endTime, + interval_startTime: arg_interval_startTime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTimeSeriesResponse(response); @@ -6316,9 +6326,9 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.MonitoringApi(mock).services; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6351,11 +6361,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6366,9 +6376,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicesResponse(response); @@ -6608,10 +6618,10 @@ api.ServicesServiceLevelObjectivesResourceApi res = new api.MonitoringApi(mock).services.serviceLevelObjectives; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_view = "foo"; + var arg_pageToken = "foo"; var arg_filter = "foo"; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6644,12 +6654,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6661,10 +6671,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, - view: arg_view, + pageToken: arg_pageToken, filter: arg_filter, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServiceLevelObjectivesResponse(response); @@ -6737,8 +6747,8 @@ var mock = new HttpServerMock(); api.UptimeCheckIpsResourceApi res = new api.MonitoringApi(mock).uptimeCheckIps; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6770,10 +6780,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6784,8 +6794,8 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUptimeCheckIpsResponse(response);
diff --git a/generated/googleapis/test/networkmanagement/v1_test.dart b/generated/googleapis/test/networkmanagement/v1_test.dart new file mode 100644 index 0000000..c2ef73e --- /dev/null +++ b/generated/googleapis/test/networkmanagement/v1_test.dart
@@ -0,0 +1,2639 @@ +library googleapis.networkmanagement.v1.test; + +import "dart:core" as core; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/networkmanagement/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<core.String, core.String> headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterAbortInfo = 0; +buildAbortInfo() { + var o = new api.AbortInfo(); + buildCounterAbortInfo++; + if (buildCounterAbortInfo < 3) { + o.cause = "foo"; + o.resourceUri = "foo"; + } + buildCounterAbortInfo--; + return o; +} + +checkAbortInfo(api.AbortInfo o) { + buildCounterAbortInfo++; + if (buildCounterAbortInfo < 3) { + unittest.expect(o.cause, unittest.equals('foo')); + unittest.expect(o.resourceUri, unittest.equals('foo')); + } + buildCounterAbortInfo--; +} + +buildUnnamed4605() { + var o = new core.List<api.AuditLogConfig>(); + o.add(buildAuditLogConfig()); + o.add(buildAuditLogConfig()); + return o; +} + +checkUnnamed4605(core.List<api.AuditLogConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditLogConfig(o[0]); + checkAuditLogConfig(o[1]); +} + +core.int buildCounterAuditConfig = 0; +buildAuditConfig() { + var o = new api.AuditConfig(); + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + o.auditLogConfigs = buildUnnamed4605(); + o.service = "foo"; + } + buildCounterAuditConfig--; + return o; +} + +checkAuditConfig(api.AuditConfig o) { + buildCounterAuditConfig++; + if (buildCounterAuditConfig < 3) { + checkUnnamed4605(o.auditLogConfigs); + unittest.expect(o.service, unittest.equals('foo')); + } + buildCounterAuditConfig--; +} + +buildUnnamed4606() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4606(core.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 buildCounterAuditLogConfig = 0; +buildAuditLogConfig() { + var o = new api.AuditLogConfig(); + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + o.exemptedMembers = buildUnnamed4606(); + o.logType = "foo"; + } + buildCounterAuditLogConfig--; + return o; +} + +checkAuditLogConfig(api.AuditLogConfig o) { + buildCounterAuditLogConfig++; + if (buildCounterAuditLogConfig < 3) { + checkUnnamed4606(o.exemptedMembers); + unittest.expect(o.logType, unittest.equals('foo')); + } + buildCounterAuditLogConfig--; +} + +buildUnnamed4607() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4607(core.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.condition = buildExpr(); + o.members = buildUnnamed4607(); + o.role = "foo"; + } + buildCounterBinding--; + return o; +} + +checkBinding(api.Binding o) { + buildCounterBinding++; + if (buildCounterBinding < 3) { + checkExpr(o.condition); + checkUnnamed4607(o.members); + unittest.expect(o.role, unittest.equals('foo')); + } + buildCounterBinding--; +} + +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--; +} + +buildUnnamed4608() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed4608(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')); +} + +buildUnnamed4609() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4609(core.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 buildCounterConnectivityTest = 0; +buildConnectivityTest() { + var o = new api.ConnectivityTest(); + buildCounterConnectivityTest++; + if (buildCounterConnectivityTest < 3) { + o.createTime = "foo"; + o.description = "foo"; + o.destination = buildEndpoint(); + o.displayName = "foo"; + o.labels = buildUnnamed4608(); + o.name = "foo"; + o.protocol = "foo"; + o.reachabilityDetails = buildReachabilityDetails(); + o.relatedProjects = buildUnnamed4609(); + o.source = buildEndpoint(); + o.updateTime = "foo"; + } + buildCounterConnectivityTest--; + return o; +} + +checkConnectivityTest(api.ConnectivityTest o) { + buildCounterConnectivityTest++; + if (buildCounterConnectivityTest < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.description, unittest.equals('foo')); + checkEndpoint(o.destination); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed4608(o.labels); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.protocol, unittest.equals('foo')); + checkReachabilityDetails(o.reachabilityDetails); + checkUnnamed4609(o.relatedProjects); + checkEndpoint(o.source); + unittest.expect(o.updateTime, unittest.equals('foo')); + } + buildCounterConnectivityTest--; +} + +core.int buildCounterDeliverInfo = 0; +buildDeliverInfo() { + var o = new api.DeliverInfo(); + buildCounterDeliverInfo++; + if (buildCounterDeliverInfo < 3) { + o.resourceUri = "foo"; + o.target = "foo"; + } + buildCounterDeliverInfo--; + return o; +} + +checkDeliverInfo(api.DeliverInfo o) { + buildCounterDeliverInfo++; + if (buildCounterDeliverInfo < 3) { + unittest.expect(o.resourceUri, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + } + buildCounterDeliverInfo--; +} + +core.int buildCounterDropInfo = 0; +buildDropInfo() { + var o = new api.DropInfo(); + buildCounterDropInfo++; + if (buildCounterDropInfo < 3) { + o.cause = "foo"; + o.resourceUri = "foo"; + } + buildCounterDropInfo--; + return o; +} + +checkDropInfo(api.DropInfo o) { + buildCounterDropInfo++; + if (buildCounterDropInfo < 3) { + unittest.expect(o.cause, unittest.equals('foo')); + unittest.expect(o.resourceUri, unittest.equals('foo')); + } + buildCounterDropInfo--; +} + +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 buildCounterEndpoint = 0; +buildEndpoint() { + var o = new api.Endpoint(); + buildCounterEndpoint++; + if (buildCounterEndpoint < 3) { + o.instance = "foo"; + o.ipAddress = "foo"; + o.network = "foo"; + o.networkType = "foo"; + o.port = 42; + o.projectId = "foo"; + } + buildCounterEndpoint--; + return o; +} + +checkEndpoint(api.Endpoint o) { + buildCounterEndpoint++; + if (buildCounterEndpoint < 3) { + unittest.expect(o.instance, unittest.equals('foo')); + unittest.expect(o.ipAddress, unittest.equals('foo')); + unittest.expect(o.network, unittest.equals('foo')); + unittest.expect(o.networkType, unittest.equals('foo')); + unittest.expect(o.port, unittest.equals(42)); + unittest.expect(o.projectId, unittest.equals('foo')); + } + buildCounterEndpoint--; +} + +core.int buildCounterEndpointInfo = 0; +buildEndpointInfo() { + var o = new api.EndpointInfo(); + buildCounterEndpointInfo++; + if (buildCounterEndpointInfo < 3) { + o.destinationIp = "foo"; + o.destinationNetworkUri = "foo"; + o.destinationPort = 42; + o.protocol = "foo"; + o.sourceIp = "foo"; + o.sourceNetworkUri = "foo"; + o.sourcePort = 42; + } + buildCounterEndpointInfo--; + return o; +} + +checkEndpointInfo(api.EndpointInfo o) { + buildCounterEndpointInfo++; + if (buildCounterEndpointInfo < 3) { + unittest.expect(o.destinationIp, unittest.equals('foo')); + unittest.expect(o.destinationNetworkUri, unittest.equals('foo')); + unittest.expect(o.destinationPort, unittest.equals(42)); + unittest.expect(o.protocol, unittest.equals('foo')); + unittest.expect(o.sourceIp, unittest.equals('foo')); + unittest.expect(o.sourceNetworkUri, unittest.equals('foo')); + unittest.expect(o.sourcePort, unittest.equals(42)); + } + buildCounterEndpointInfo--; +} + +core.int buildCounterExpr = 0; +buildExpr() { + var o = new api.Expr(); + buildCounterExpr++; + if (buildCounterExpr < 3) { + o.description = "foo"; + o.expression = "foo"; + o.location = "foo"; + o.title = "foo"; + } + buildCounterExpr--; + return o; +} + +checkExpr(api.Expr o) { + buildCounterExpr++; + if (buildCounterExpr < 3) { + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.expression, unittest.equals('foo')); + unittest.expect(o.location, unittest.equals('foo')); + unittest.expect(o.title, unittest.equals('foo')); + } + buildCounterExpr--; +} + +buildUnnamed4610() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4610(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4611() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4611(core.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 buildCounterFirewallInfo = 0; +buildFirewallInfo() { + var o = new api.FirewallInfo(); + buildCounterFirewallInfo++; + if (buildCounterFirewallInfo < 3) { + o.action = "foo"; + o.direction = "foo"; + o.displayName = "foo"; + o.networkUri = "foo"; + o.priority = 42; + o.targetServiceAccounts = buildUnnamed4610(); + o.targetTags = buildUnnamed4611(); + o.uri = "foo"; + } + buildCounterFirewallInfo--; + return o; +} + +checkFirewallInfo(api.FirewallInfo o) { + buildCounterFirewallInfo++; + if (buildCounterFirewallInfo < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.direction, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.priority, unittest.equals(42)); + checkUnnamed4610(o.targetServiceAccounts); + checkUnnamed4611(o.targetTags); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterFirewallInfo--; +} + +core.int buildCounterForwardInfo = 0; +buildForwardInfo() { + var o = new api.ForwardInfo(); + buildCounterForwardInfo++; + if (buildCounterForwardInfo < 3) { + o.resourceUri = "foo"; + o.target = "foo"; + } + buildCounterForwardInfo--; + return o; +} + +checkForwardInfo(api.ForwardInfo o) { + buildCounterForwardInfo++; + if (buildCounterForwardInfo < 3) { + unittest.expect(o.resourceUri, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + } + buildCounterForwardInfo--; +} + +core.int buildCounterForwardingRuleInfo = 0; +buildForwardingRuleInfo() { + var o = new api.ForwardingRuleInfo(); + buildCounterForwardingRuleInfo++; + if (buildCounterForwardingRuleInfo < 3) { + o.displayName = "foo"; + o.matchedPortRange = "foo"; + o.matchedProtocol = "foo"; + o.networkUri = "foo"; + o.target = "foo"; + o.uri = "foo"; + o.vip = "foo"; + } + buildCounterForwardingRuleInfo--; + return o; +} + +checkForwardingRuleInfo(api.ForwardingRuleInfo o) { + buildCounterForwardingRuleInfo++; + if (buildCounterForwardingRuleInfo < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.matchedPortRange, unittest.equals('foo')); + unittest.expect(o.matchedProtocol, unittest.equals('foo')); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + unittest.expect(o.vip, unittest.equals('foo')); + } + buildCounterForwardingRuleInfo--; +} + +buildUnnamed4612() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4612(core.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 buildCounterInstanceInfo = 0; +buildInstanceInfo() { + var o = new api.InstanceInfo(); + buildCounterInstanceInfo++; + if (buildCounterInstanceInfo < 3) { + o.displayName = "foo"; + o.externalIp = "foo"; + o.interface = "foo"; + o.internalIp = "foo"; + o.networkTags = buildUnnamed4612(); + o.networkUri = "foo"; + o.serviceAccount = "foo"; + o.uri = "foo"; + } + buildCounterInstanceInfo--; + return o; +} + +checkInstanceInfo(api.InstanceInfo o) { + buildCounterInstanceInfo++; + if (buildCounterInstanceInfo < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.externalIp, unittest.equals('foo')); + unittest.expect(o.interface, unittest.equals('foo')); + unittest.expect(o.internalIp, unittest.equals('foo')); + checkUnnamed4612(o.networkTags); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.serviceAccount, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterInstanceInfo--; +} + +buildUnnamed4613() { + var o = new core.List<api.ConnectivityTest>(); + o.add(buildConnectivityTest()); + o.add(buildConnectivityTest()); + return o; +} + +checkUnnamed4613(core.List<api.ConnectivityTest> o) { + unittest.expect(o, unittest.hasLength(2)); + checkConnectivityTest(o[0]); + checkConnectivityTest(o[1]); +} + +buildUnnamed4614() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4614(core.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 buildCounterListConnectivityTestsResponse = 0; +buildListConnectivityTestsResponse() { + var o = new api.ListConnectivityTestsResponse(); + buildCounterListConnectivityTestsResponse++; + if (buildCounterListConnectivityTestsResponse < 3) { + o.nextPageToken = "foo"; + o.resources = buildUnnamed4613(); + o.unreachable = buildUnnamed4614(); + } + buildCounterListConnectivityTestsResponse--; + return o; +} + +checkListConnectivityTestsResponse(api.ListConnectivityTestsResponse o) { + buildCounterListConnectivityTestsResponse++; + if (buildCounterListConnectivityTestsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4613(o.resources); + checkUnnamed4614(o.unreachable); + } + buildCounterListConnectivityTestsResponse--; +} + +buildUnnamed4615() { + var o = new core.List<api.Location>(); + o.add(buildLocation()); + o.add(buildLocation()); + return o; +} + +checkUnnamed4615(core.List<api.Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLocation(o[0]); + checkLocation(o[1]); +} + +core.int buildCounterListLocationsResponse = 0; +buildListLocationsResponse() { + var o = new api.ListLocationsResponse(); + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + o.locations = buildUnnamed4615(); + o.nextPageToken = "foo"; + } + buildCounterListLocationsResponse--; + return o; +} + +checkListLocationsResponse(api.ListLocationsResponse o) { + buildCounterListLocationsResponse++; + if (buildCounterListLocationsResponse < 3) { + checkUnnamed4615(o.locations); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterListLocationsResponse--; +} + +buildUnnamed4616() { + var o = new core.List<api.Operation>(); + o.add(buildOperation()); + o.add(buildOperation()); + return o; +} + +checkUnnamed4616(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 = buildUnnamed4616(); + } + buildCounterListOperationsResponse--; + return o; +} + +checkListOperationsResponse(api.ListOperationsResponse o) { + buildCounterListOperationsResponse++; + if (buildCounterListOperationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed4616(o.operations); + } + buildCounterListOperationsResponse--; +} + +buildUnnamed4617() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4617(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4618() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4618(core.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 buildCounterLoadBalancerBackend = 0; +buildLoadBalancerBackend() { + var o = new api.LoadBalancerBackend(); + buildCounterLoadBalancerBackend++; + if (buildCounterLoadBalancerBackend < 3) { + o.displayName = "foo"; + o.healthCheckAllowingFirewallRules = buildUnnamed4617(); + o.healthCheckBlockingFirewallRules = buildUnnamed4618(); + o.healthCheckFirewallState = "foo"; + o.uri = "foo"; + } + buildCounterLoadBalancerBackend--; + return o; +} + +checkLoadBalancerBackend(api.LoadBalancerBackend o) { + buildCounterLoadBalancerBackend++; + if (buildCounterLoadBalancerBackend < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed4617(o.healthCheckAllowingFirewallRules); + checkUnnamed4618(o.healthCheckBlockingFirewallRules); + unittest.expect(o.healthCheckFirewallState, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterLoadBalancerBackend--; +} + +buildUnnamed4619() { + var o = new core.List<api.LoadBalancerBackend>(); + o.add(buildLoadBalancerBackend()); + o.add(buildLoadBalancerBackend()); + return o; +} + +checkUnnamed4619(core.List<api.LoadBalancerBackend> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLoadBalancerBackend(o[0]); + checkLoadBalancerBackend(o[1]); +} + +core.int buildCounterLoadBalancerInfo = 0; +buildLoadBalancerInfo() { + var o = new api.LoadBalancerInfo(); + buildCounterLoadBalancerInfo++; + if (buildCounterLoadBalancerInfo < 3) { + o.backendType = "foo"; + o.backendUri = "foo"; + o.backends = buildUnnamed4619(); + o.healthCheckUri = "foo"; + o.loadBalancerType = "foo"; + } + buildCounterLoadBalancerInfo--; + return o; +} + +checkLoadBalancerInfo(api.LoadBalancerInfo o) { + buildCounterLoadBalancerInfo++; + if (buildCounterLoadBalancerInfo < 3) { + unittest.expect(o.backendType, unittest.equals('foo')); + unittest.expect(o.backendUri, unittest.equals('foo')); + checkUnnamed4619(o.backends); + unittest.expect(o.healthCheckUri, unittest.equals('foo')); + unittest.expect(o.loadBalancerType, unittest.equals('foo')); + } + buildCounterLoadBalancerInfo--; +} + +buildUnnamed4620() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed4620(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')); +} + +buildUnnamed4621() { + 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; +} + +checkUnnamed4621(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')); +} + +core.int buildCounterLocation = 0; +buildLocation() { + var o = new api.Location(); + buildCounterLocation++; + if (buildCounterLocation < 3) { + o.displayName = "foo"; + o.labels = buildUnnamed4620(); + o.locationId = "foo"; + o.metadata = buildUnnamed4621(); + o.name = "foo"; + } + buildCounterLocation--; + return o; +} + +checkLocation(api.Location o) { + buildCounterLocation++; + if (buildCounterLocation < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed4620(o.labels); + unittest.expect(o.locationId, unittest.equals('foo')); + checkUnnamed4621(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterLocation--; +} + +core.int buildCounterNetworkInfo = 0; +buildNetworkInfo() { + var o = new api.NetworkInfo(); + buildCounterNetworkInfo++; + if (buildCounterNetworkInfo < 3) { + o.displayName = "foo"; + o.matchedIpRange = "foo"; + o.uri = "foo"; + } + buildCounterNetworkInfo--; + return o; +} + +checkNetworkInfo(api.NetworkInfo o) { + buildCounterNetworkInfo++; + if (buildCounterNetworkInfo < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.matchedIpRange, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterNetworkInfo--; +} + +buildUnnamed4622() { + 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; +} + +checkUnnamed4622(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')); +} + +buildUnnamed4623() { + 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; +} + +checkUnnamed4623(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted5 = (o["x"]) as core.Map; + unittest.expect(casted5, unittest.hasLength(3)); + unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted5["bool"], unittest.equals(true)); + unittest.expect(casted5["string"], unittest.equals('foo')); + var casted6 = (o["y"]) as core.Map; + unittest.expect(casted6, unittest.hasLength(3)); + unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted6["bool"], unittest.equals(true)); + unittest.expect(casted6["string"], unittest.equals('foo')); +} + +core.int buildCounterOperation = 0; +buildOperation() { + var o = new api.Operation(); + buildCounterOperation++; + if (buildCounterOperation < 3) { + o.done = true; + o.error = buildStatus(); + o.metadata = buildUnnamed4622(); + o.name = "foo"; + o.response = buildUnnamed4623(); + } + buildCounterOperation--; + return o; +} + +checkOperation(api.Operation o) { + buildCounterOperation++; + if (buildCounterOperation < 3) { + unittest.expect(o.done, unittest.isTrue); + checkStatus(o.error); + checkUnnamed4622(o.metadata); + unittest.expect(o.name, unittest.equals('foo')); + checkUnnamed4623(o.response); + } + buildCounterOperation--; +} + +core.int buildCounterOperationMetadata = 0; +buildOperationMetadata() { + var o = new api.OperationMetadata(); + buildCounterOperationMetadata++; + if (buildCounterOperationMetadata < 3) { + o.apiVersion = "foo"; + o.cancelRequested = true; + o.createTime = "foo"; + o.endTime = "foo"; + o.statusDetail = "foo"; + o.target = "foo"; + o.verb = "foo"; + } + buildCounterOperationMetadata--; + return o; +} + +checkOperationMetadata(api.OperationMetadata o) { + buildCounterOperationMetadata++; + if (buildCounterOperationMetadata < 3) { + unittest.expect(o.apiVersion, unittest.equals('foo')); + unittest.expect(o.cancelRequested, unittest.isTrue); + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.statusDetail, unittest.equals('foo')); + unittest.expect(o.target, unittest.equals('foo')); + unittest.expect(o.verb, unittest.equals('foo')); + } + buildCounterOperationMetadata--; +} + +buildUnnamed4624() { + var o = new core.List<api.AuditConfig>(); + o.add(buildAuditConfig()); + o.add(buildAuditConfig()); + return o; +} + +checkUnnamed4624(core.List<api.AuditConfig> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAuditConfig(o[0]); + checkAuditConfig(o[1]); +} + +buildUnnamed4625() { + var o = new core.List<api.Binding>(); + o.add(buildBinding()); + o.add(buildBinding()); + return o; +} + +checkUnnamed4625(core.List<api.Binding> o) { + unittest.expect(o, unittest.hasLength(2)); + checkBinding(o[0]); + checkBinding(o[1]); +} + +core.int buildCounterPolicy = 0; +buildPolicy() { + var o = new api.Policy(); + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + o.auditConfigs = buildUnnamed4624(); + o.bindings = buildUnnamed4625(); + o.etag = "foo"; + o.version = 42; + } + buildCounterPolicy--; + return o; +} + +checkPolicy(api.Policy o) { + buildCounterPolicy++; + if (buildCounterPolicy < 3) { + checkUnnamed4624(o.auditConfigs); + checkUnnamed4625(o.bindings); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.version, unittest.equals(42)); + } + buildCounterPolicy--; +} + +buildUnnamed4626() { + var o = new core.List<api.Trace>(); + o.add(buildTrace()); + o.add(buildTrace()); + return o; +} + +checkUnnamed4626(core.List<api.Trace> o) { + unittest.expect(o, unittest.hasLength(2)); + checkTrace(o[0]); + checkTrace(o[1]); +} + +core.int buildCounterReachabilityDetails = 0; +buildReachabilityDetails() { + var o = new api.ReachabilityDetails(); + buildCounterReachabilityDetails++; + if (buildCounterReachabilityDetails < 3) { + o.error = buildStatus(); + o.result = "foo"; + o.traces = buildUnnamed4626(); + o.verifyTime = "foo"; + } + buildCounterReachabilityDetails--; + return o; +} + +checkReachabilityDetails(api.ReachabilityDetails o) { + buildCounterReachabilityDetails++; + if (buildCounterReachabilityDetails < 3) { + checkStatus(o.error); + unittest.expect(o.result, unittest.equals('foo')); + checkUnnamed4626(o.traces); + unittest.expect(o.verifyTime, unittest.equals('foo')); + } + buildCounterReachabilityDetails--; +} + +core.int buildCounterRerunConnectivityTestRequest = 0; +buildRerunConnectivityTestRequest() { + var o = new api.RerunConnectivityTestRequest(); + buildCounterRerunConnectivityTestRequest++; + if (buildCounterRerunConnectivityTestRequest < 3) {} + buildCounterRerunConnectivityTestRequest--; + return o; +} + +checkRerunConnectivityTestRequest(api.RerunConnectivityTestRequest o) { + buildCounterRerunConnectivityTestRequest++; + if (buildCounterRerunConnectivityTestRequest < 3) {} + buildCounterRerunConnectivityTestRequest--; +} + +buildUnnamed4627() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4627(core.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 buildCounterRouteInfo = 0; +buildRouteInfo() { + var o = new api.RouteInfo(); + buildCounterRouteInfo++; + if (buildCounterRouteInfo < 3) { + o.destIpRange = "foo"; + o.displayName = "foo"; + o.instanceTags = buildUnnamed4627(); + o.networkUri = "foo"; + o.nextHop = "foo"; + o.nextHopType = "foo"; + o.priority = 42; + o.routeType = "foo"; + o.uri = "foo"; + } + buildCounterRouteInfo--; + return o; +} + +checkRouteInfo(api.RouteInfo o) { + buildCounterRouteInfo++; + if (buildCounterRouteInfo < 3) { + unittest.expect(o.destIpRange, unittest.equals('foo')); + unittest.expect(o.displayName, unittest.equals('foo')); + checkUnnamed4627(o.instanceTags); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.nextHop, unittest.equals('foo')); + unittest.expect(o.nextHopType, unittest.equals('foo')); + unittest.expect(o.priority, unittest.equals(42)); + unittest.expect(o.routeType, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterRouteInfo--; +} + +core.int buildCounterSetIamPolicyRequest = 0; +buildSetIamPolicyRequest() { + var o = new api.SetIamPolicyRequest(); + buildCounterSetIamPolicyRequest++; + if (buildCounterSetIamPolicyRequest < 3) { + o.policy = buildPolicy(); + o.updateMask = "foo"; + } + buildCounterSetIamPolicyRequest--; + return o; +} + +checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { + buildCounterSetIamPolicyRequest++; + if (buildCounterSetIamPolicyRequest < 3) { + checkPolicy(o.policy); + unittest.expect(o.updateMask, unittest.equals('foo')); + } + buildCounterSetIamPolicyRequest--; +} + +buildUnnamed4628() { + 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; +} + +checkUnnamed4628(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')); +} + +buildUnnamed4629() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed4628()); + o.add(buildUnnamed4628()); + return o; +} + +checkUnnamed4629(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed4628(o[0]); + checkUnnamed4628(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed4629(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed4629(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +core.int buildCounterStep = 0; +buildStep() { + var o = new api.Step(); + buildCounterStep++; + if (buildCounterStep < 3) { + o.abort = buildAbortInfo(); + o.causesDrop = true; + o.deliver = buildDeliverInfo(); + o.description = "foo"; + o.drop = buildDropInfo(); + o.endpoint = buildEndpointInfo(); + o.firewall = buildFirewallInfo(); + o.forward = buildForwardInfo(); + o.forwardingRule = buildForwardingRuleInfo(); + o.instance = buildInstanceInfo(); + o.loadBalancer = buildLoadBalancerInfo(); + o.network = buildNetworkInfo(); + o.projectId = "foo"; + o.route = buildRouteInfo(); + o.state = "foo"; + o.vpnGateway = buildVpnGatewayInfo(); + o.vpnTunnel = buildVpnTunnelInfo(); + } + buildCounterStep--; + return o; +} + +checkStep(api.Step o) { + buildCounterStep++; + if (buildCounterStep < 3) { + checkAbortInfo(o.abort); + unittest.expect(o.causesDrop, unittest.isTrue); + checkDeliverInfo(o.deliver); + unittest.expect(o.description, unittest.equals('foo')); + checkDropInfo(o.drop); + checkEndpointInfo(o.endpoint); + checkFirewallInfo(o.firewall); + checkForwardInfo(o.forward); + checkForwardingRuleInfo(o.forwardingRule); + checkInstanceInfo(o.instance); + checkLoadBalancerInfo(o.loadBalancer); + checkNetworkInfo(o.network); + unittest.expect(o.projectId, unittest.equals('foo')); + checkRouteInfo(o.route); + unittest.expect(o.state, unittest.equals('foo')); + checkVpnGatewayInfo(o.vpnGateway); + checkVpnTunnelInfo(o.vpnTunnel); + } + buildCounterStep--; +} + +buildUnnamed4630() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4630(core.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 buildCounterTestIamPermissionsRequest = 0; +buildTestIamPermissionsRequest() { + var o = new api.TestIamPermissionsRequest(); + buildCounterTestIamPermissionsRequest++; + if (buildCounterTestIamPermissionsRequest < 3) { + o.permissions = buildUnnamed4630(); + } + buildCounterTestIamPermissionsRequest--; + return o; +} + +checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { + buildCounterTestIamPermissionsRequest++; + if (buildCounterTestIamPermissionsRequest < 3) { + checkUnnamed4630(o.permissions); + } + buildCounterTestIamPermissionsRequest--; +} + +buildUnnamed4631() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4631(core.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 buildCounterTestIamPermissionsResponse = 0; +buildTestIamPermissionsResponse() { + var o = new api.TestIamPermissionsResponse(); + buildCounterTestIamPermissionsResponse++; + if (buildCounterTestIamPermissionsResponse < 3) { + o.permissions = buildUnnamed4631(); + } + buildCounterTestIamPermissionsResponse--; + return o; +} + +checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { + buildCounterTestIamPermissionsResponse++; + if (buildCounterTestIamPermissionsResponse < 3) { + checkUnnamed4631(o.permissions); + } + buildCounterTestIamPermissionsResponse--; +} + +buildUnnamed4632() { + var o = new core.List<api.Step>(); + o.add(buildStep()); + o.add(buildStep()); + return o; +} + +checkUnnamed4632(core.List<api.Step> o) { + unittest.expect(o, unittest.hasLength(2)); + checkStep(o[0]); + checkStep(o[1]); +} + +core.int buildCounterTrace = 0; +buildTrace() { + var o = new api.Trace(); + buildCounterTrace++; + if (buildCounterTrace < 3) { + o.endpointInfo = buildEndpointInfo(); + o.steps = buildUnnamed4632(); + } + buildCounterTrace--; + return o; +} + +checkTrace(api.Trace o) { + buildCounterTrace++; + if (buildCounterTrace < 3) { + checkEndpointInfo(o.endpointInfo); + checkUnnamed4632(o.steps); + } + buildCounterTrace--; +} + +core.int buildCounterVpnGatewayInfo = 0; +buildVpnGatewayInfo() { + var o = new api.VpnGatewayInfo(); + buildCounterVpnGatewayInfo++; + if (buildCounterVpnGatewayInfo < 3) { + o.displayName = "foo"; + o.ipAddress = "foo"; + o.networkUri = "foo"; + o.region = "foo"; + o.uri = "foo"; + o.vpnTunnelUri = "foo"; + } + buildCounterVpnGatewayInfo--; + return o; +} + +checkVpnGatewayInfo(api.VpnGatewayInfo o) { + buildCounterVpnGatewayInfo++; + if (buildCounterVpnGatewayInfo < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.ipAddress, unittest.equals('foo')); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + unittest.expect(o.vpnTunnelUri, unittest.equals('foo')); + } + buildCounterVpnGatewayInfo--; +} + +core.int buildCounterVpnTunnelInfo = 0; +buildVpnTunnelInfo() { + var o = new api.VpnTunnelInfo(); + buildCounterVpnTunnelInfo++; + if (buildCounterVpnTunnelInfo < 3) { + o.displayName = "foo"; + o.networkUri = "foo"; + o.region = "foo"; + o.remoteGateway = "foo"; + o.remoteGatewayIp = "foo"; + o.routingType = "foo"; + o.sourceGateway = "foo"; + o.sourceGatewayIp = "foo"; + o.uri = "foo"; + } + buildCounterVpnTunnelInfo--; + return o; +} + +checkVpnTunnelInfo(api.VpnTunnelInfo o) { + buildCounterVpnTunnelInfo++; + if (buildCounterVpnTunnelInfo < 3) { + unittest.expect(o.displayName, unittest.equals('foo')); + unittest.expect(o.networkUri, unittest.equals('foo')); + unittest.expect(o.region, unittest.equals('foo')); + unittest.expect(o.remoteGateway, unittest.equals('foo')); + unittest.expect(o.remoteGatewayIp, unittest.equals('foo')); + unittest.expect(o.routingType, unittest.equals('foo')); + unittest.expect(o.sourceGateway, unittest.equals('foo')); + unittest.expect(o.sourceGatewayIp, unittest.equals('foo')); + unittest.expect(o.uri, unittest.equals('foo')); + } + buildCounterVpnTunnelInfo--; +} + +main() { + unittest.group("obj-schema-AbortInfo", () { + unittest.test("to-json--from-json", () { + var o = buildAbortInfo(); + var od = new api.AbortInfo.fromJson(o.toJson()); + checkAbortInfo(od); + }); + }); + + 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-AuditLogConfig", () { + unittest.test("to-json--from-json", () { + var o = buildAuditLogConfig(); + var od = new api.AuditLogConfig.fromJson(o.toJson()); + checkAuditLogConfig(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-CancelOperationRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCancelOperationRequest(); + var od = new api.CancelOperationRequest.fromJson(o.toJson()); + checkCancelOperationRequest(od); + }); + }); + + unittest.group("obj-schema-ConnectivityTest", () { + unittest.test("to-json--from-json", () { + var o = buildConnectivityTest(); + var od = new api.ConnectivityTest.fromJson(o.toJson()); + checkConnectivityTest(od); + }); + }); + + unittest.group("obj-schema-DeliverInfo", () { + unittest.test("to-json--from-json", () { + var o = buildDeliverInfo(); + var od = new api.DeliverInfo.fromJson(o.toJson()); + checkDeliverInfo(od); + }); + }); + + unittest.group("obj-schema-DropInfo", () { + unittest.test("to-json--from-json", () { + var o = buildDropInfo(); + var od = new api.DropInfo.fromJson(o.toJson()); + checkDropInfo(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-Endpoint", () { + unittest.test("to-json--from-json", () { + var o = buildEndpoint(); + var od = new api.Endpoint.fromJson(o.toJson()); + checkEndpoint(od); + }); + }); + + unittest.group("obj-schema-EndpointInfo", () { + unittest.test("to-json--from-json", () { + var o = buildEndpointInfo(); + var od = new api.EndpointInfo.fromJson(o.toJson()); + checkEndpointInfo(od); + }); + }); + + unittest.group("obj-schema-Expr", () { + unittest.test("to-json--from-json", () { + var o = buildExpr(); + var od = new api.Expr.fromJson(o.toJson()); + checkExpr(od); + }); + }); + + unittest.group("obj-schema-FirewallInfo", () { + unittest.test("to-json--from-json", () { + var o = buildFirewallInfo(); + var od = new api.FirewallInfo.fromJson(o.toJson()); + checkFirewallInfo(od); + }); + }); + + unittest.group("obj-schema-ForwardInfo", () { + unittest.test("to-json--from-json", () { + var o = buildForwardInfo(); + var od = new api.ForwardInfo.fromJson(o.toJson()); + checkForwardInfo(od); + }); + }); + + unittest.group("obj-schema-ForwardingRuleInfo", () { + unittest.test("to-json--from-json", () { + var o = buildForwardingRuleInfo(); + var od = new api.ForwardingRuleInfo.fromJson(o.toJson()); + checkForwardingRuleInfo(od); + }); + }); + + unittest.group("obj-schema-InstanceInfo", () { + unittest.test("to-json--from-json", () { + var o = buildInstanceInfo(); + var od = new api.InstanceInfo.fromJson(o.toJson()); + checkInstanceInfo(od); + }); + }); + + unittest.group("obj-schema-ListConnectivityTestsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListConnectivityTestsResponse(); + var od = new api.ListConnectivityTestsResponse.fromJson(o.toJson()); + checkListConnectivityTestsResponse(od); + }); + }); + + unittest.group("obj-schema-ListLocationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListLocationsResponse(); + var od = new api.ListLocationsResponse.fromJson(o.toJson()); + checkListLocationsResponse(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-LoadBalancerBackend", () { + unittest.test("to-json--from-json", () { + var o = buildLoadBalancerBackend(); + var od = new api.LoadBalancerBackend.fromJson(o.toJson()); + checkLoadBalancerBackend(od); + }); + }); + + unittest.group("obj-schema-LoadBalancerInfo", () { + unittest.test("to-json--from-json", () { + var o = buildLoadBalancerInfo(); + var od = new api.LoadBalancerInfo.fromJson(o.toJson()); + checkLoadBalancerInfo(od); + }); + }); + + unittest.group("obj-schema-Location", () { + unittest.test("to-json--from-json", () { + var o = buildLocation(); + var od = new api.Location.fromJson(o.toJson()); + checkLocation(od); + }); + }); + + unittest.group("obj-schema-NetworkInfo", () { + unittest.test("to-json--from-json", () { + var o = buildNetworkInfo(); + var od = new api.NetworkInfo.fromJson(o.toJson()); + checkNetworkInfo(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-OperationMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildOperationMetadata(); + var od = new api.OperationMetadata.fromJson(o.toJson()); + checkOperationMetadata(od); + }); + }); + + 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-ReachabilityDetails", () { + unittest.test("to-json--from-json", () { + var o = buildReachabilityDetails(); + var od = new api.ReachabilityDetails.fromJson(o.toJson()); + checkReachabilityDetails(od); + }); + }); + + unittest.group("obj-schema-RerunConnectivityTestRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRerunConnectivityTestRequest(); + var od = new api.RerunConnectivityTestRequest.fromJson(o.toJson()); + checkRerunConnectivityTestRequest(od); + }); + }); + + unittest.group("obj-schema-RouteInfo", () { + unittest.test("to-json--from-json", () { + var o = buildRouteInfo(); + var od = new api.RouteInfo.fromJson(o.toJson()); + checkRouteInfo(od); + }); + }); + + unittest.group("obj-schema-SetIamPolicyRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSetIamPolicyRequest(); + var od = new api.SetIamPolicyRequest.fromJson(o.toJson()); + checkSetIamPolicyRequest(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("obj-schema-Step", () { + unittest.test("to-json--from-json", () { + var o = buildStep(); + var od = new api.Step.fromJson(o.toJson()); + checkStep(od); + }); + }); + + unittest.group("obj-schema-TestIamPermissionsRequest", () { + unittest.test("to-json--from-json", () { + var o = buildTestIamPermissionsRequest(); + var od = new api.TestIamPermissionsRequest.fromJson(o.toJson()); + checkTestIamPermissionsRequest(od); + }); + }); + + unittest.group("obj-schema-TestIamPermissionsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildTestIamPermissionsResponse(); + var od = new api.TestIamPermissionsResponse.fromJson(o.toJson()); + checkTestIamPermissionsResponse(od); + }); + }); + + unittest.group("obj-schema-Trace", () { + unittest.test("to-json--from-json", () { + var o = buildTrace(); + var od = new api.Trace.fromJson(o.toJson()); + checkTrace(od); + }); + }); + + unittest.group("obj-schema-VpnGatewayInfo", () { + unittest.test("to-json--from-json", () { + var o = buildVpnGatewayInfo(); + var od = new api.VpnGatewayInfo.fromJson(o.toJson()); + checkVpnGatewayInfo(od); + }); + }); + + unittest.group("obj-schema-VpnTunnelInfo", () { + unittest.test("to-json--from-json", () { + var o = buildVpnTunnelInfo(); + var od = new api.VpnTunnelInfo.fromJson(o.toJson()); + checkVpnTunnelInfo(od); + }); + }); + + unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.NetworkmanagementApi(mock).projects.locations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLocation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLocation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.NetworkmanagementApi(mock).projects.locations; + var arg_name = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListLocationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_name, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListLocationsResponse(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsGlobalConnectivityTestsResourceApi", + () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_request = buildConnectivityTest(); + var arg_parent = "foo"; + var arg_testId = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ConnectivityTest.fromJson(json); + checkConnectivityTest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["testId"].first, unittest.equals(arg_testId)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, + testId: arg_testId, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildConnectivityTest()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkConnectivityTest(response); + }))); + }); + + unittest.test("method--getIamPolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_resource = "foo"; + var arg_options_requestedPolicyVersion = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["options.requestedPolicyVersion"].first), + unittest.equals(arg_options_requestedPolicyVersion)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + options_requestedPolicyVersion: + arg_options_requestedPolicyVersion, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_parent = "foo"; + var arg_orderBy = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["orderBy"].first, unittest.equals(arg_orderBy)); + 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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListConnectivityTestsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + orderBy: arg_orderBy, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListConnectivityTestsResponse(response); + }))); + }); + + unittest.test("method--patch", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_request = buildConnectivityTest(); + var arg_name = "foo"; + var arg_updateMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ConnectivityTest.fromJson(json); + checkConnectivityTest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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_name, + updateMask: arg_updateMask, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--rerun", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_request = buildRerunConnectivityTestRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RerunConnectivityTestRequest.fromJson(json); + checkRerunConnectivityTestRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .rerun(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--setIamPolicy", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_request = buildSetIamPolicyRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPolicy(response); + }))); + }); + + unittest.test("method--testIamPermissions", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalConnectivityTestsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .connectivityTests; + var arg_request = buildTestIamPermissionsRequest(); + var arg_resource = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestIamPermissionsResponse(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsGlobalOperationsResourceApi", () { + unittest.test("method--cancel", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalOperationsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .operations; + var arg_request = buildCancelOperationRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalOperationsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkEmpty(response); + }))); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalOperationsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsGlobalOperationsResourceApi res = + new api.NetworkmanagementApi(mock) + .projects + .locations + .global + .operations; + var arg_name = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + 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, + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListOperationsResponse(response); + }))); + }); + }); +}
diff --git a/generated/googleapis/test/oauth2/v2_test.dart b/generated/googleapis/test/oauth2/v2_test.dart deleted file mode 100644 index 3b2c557..0000000 --- a/generated/googleapis/test/oauth2/v2_test.dart +++ /dev/null
@@ -1,297 +0,0 @@ -library googleapis.oauth2.v2.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/oauth2/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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -core.int buildCounterTokeninfo = 0; -buildTokeninfo() { - var o = new api.Tokeninfo(); - buildCounterTokeninfo++; - if (buildCounterTokeninfo < 3) { - o.audience = "foo"; - o.email = "foo"; - o.expiresIn = 42; - o.issuedTo = "foo"; - o.scope = "foo"; - o.userId = "foo"; - o.verifiedEmail = true; - } - buildCounterTokeninfo--; - return o; -} - -checkTokeninfo(api.Tokeninfo o) { - buildCounterTokeninfo++; - if (buildCounterTokeninfo < 3) { - unittest.expect(o.audience, unittest.equals('foo')); - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.expiresIn, unittest.equals(42)); - unittest.expect(o.issuedTo, unittest.equals('foo')); - unittest.expect(o.scope, unittest.equals('foo')); - unittest.expect(o.userId, unittest.equals('foo')); - unittest.expect(o.verifiedEmail, unittest.isTrue); - } - buildCounterTokeninfo--; -} - -core.int buildCounterUserinfo = 0; -buildUserinfo() { - var o = new api.Userinfo(); - buildCounterUserinfo++; - if (buildCounterUserinfo < 3) { - o.email = "foo"; - o.familyName = "foo"; - o.gender = "foo"; - o.givenName = "foo"; - o.hd = "foo"; - o.id = "foo"; - o.link = "foo"; - o.locale = "foo"; - o.name = "foo"; - o.picture = "foo"; - o.verifiedEmail = true; - } - buildCounterUserinfo--; - return o; -} - -checkUserinfo(api.Userinfo o) { - buildCounterUserinfo++; - if (buildCounterUserinfo < 3) { - unittest.expect(o.email, unittest.equals('foo')); - unittest.expect(o.familyName, unittest.equals('foo')); - unittest.expect(o.gender, unittest.equals('foo')); - unittest.expect(o.givenName, unittest.equals('foo')); - unittest.expect(o.hd, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.link, unittest.equals('foo')); - unittest.expect(o.locale, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.picture, unittest.equals('foo')); - unittest.expect(o.verifiedEmail, unittest.isTrue); - } - buildCounterUserinfo--; -} - -main() { - unittest.group("obj-schema-Tokeninfo", () { - unittest.test("to-json--from-json", () { - var o = buildTokeninfo(); - var od = new api.Tokeninfo.fromJson(o.toJson()); - checkTokeninfo(od); - }); - }); - - unittest.group("obj-schema-Userinfo", () { - unittest.test("to-json--from-json", () { - var o = buildUserinfo(); - var od = new api.Userinfo.fromJson(o.toJson()); - checkUserinfo(od); - }); - }); - - unittest.group("resource-Oauth2Api", () { - unittest.test("method--tokeninfo", () { - var mock = new HttpServerMock(); - api.Oauth2Api res = new api.Oauth2Api(mock); - var arg_accessToken = "foo"; - var arg_idToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("oauth2/v2/tokeninfo")); - pathOffset += 19; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["access_token"].first, unittest.equals(arg_accessToken)); - unittest.expect( - queryMap["id_token"].first, unittest.equals(arg_idToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildTokeninfo()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .tokeninfo( - accessToken: arg_accessToken, - idToken: arg_idToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkTokeninfo(response); - }))); - }); - }); - - unittest.group("resource-UserinfoResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.UserinfoResourceApi res = new api.Oauth2Api(mock).userinfo; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 18), - unittest.equals("oauth2/v2/userinfo")); - pathOffset += 18; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildUserinfo()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get($fields: arg_$fields).then(unittest.expectAsync1(((response) { - checkUserinfo(response); - }))); - }); - }); - - unittest.group("resource-UserinfoV2MeResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.UserinfoV2MeResourceApi res = new api.Oauth2Api(mock).userinfo.v2.me; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("userinfo/v2/me")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildUserinfo()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res.get($fields: arg_$fields).then(unittest.expectAsync1(((response) { - checkUserinfo(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/osconfig/v1_test.dart b/generated/googleapis/test/osconfig/v1_test.dart index e42f16e..aacb5ff 100644 --- a/generated/googleapis/test/osconfig/v1_test.dart +++ b/generated/googleapis/test/osconfig/v1_test.dart
@@ -50,27 +50,27 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4232() { +buildUnnamed4470() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4232(core.List<core.String> o) { +checkUnnamed4470(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4233() { +buildUnnamed4471() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4233(core.List<core.String> o) { +checkUnnamed4471(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -81,8 +81,8 @@ var o = new api.AptSettings(); buildCounterAptSettings++; if (buildCounterAptSettings < 3) { - o.excludes = buildUnnamed4232(); - o.exclusivePackages = buildUnnamed4233(); + o.excludes = buildUnnamed4470(); + o.exclusivePackages = buildUnnamed4471(); o.type = "foo"; } buildCounterAptSettings--; @@ -92,8 +92,8 @@ checkAptSettings(api.AptSettings o) { buildCounterAptSettings++; if (buildCounterAptSettings < 3) { - checkUnnamed4232(o.excludes); - checkUnnamed4233(o.exclusivePackages); + checkUnnamed4470(o.excludes); + checkUnnamed4471(o.exclusivePackages); unittest.expect(o.type, unittest.equals('foo')); } buildCounterAptSettings--; @@ -150,14 +150,14 @@ buildCounterExecStep--; } -buildUnnamed4234() { +buildUnnamed4472() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4234(core.List<core.int> o) { +checkUnnamed4472(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)); @@ -168,7 +168,7 @@ var o = new api.ExecStepConfig(); buildCounterExecStepConfig++; if (buildCounterExecStepConfig < 3) { - o.allowedSuccessCodes = buildUnnamed4234(); + o.allowedSuccessCodes = buildUnnamed4472(); o.gcsObject = buildGcsObject(); o.interpreter = "foo"; o.localPath = "foo"; @@ -180,7 +180,7 @@ checkExecStepConfig(api.ExecStepConfig o) { buildCounterExecStepConfig++; if (buildCounterExecStepConfig < 3) { - checkUnnamed4234(o.allowedSuccessCodes); + checkUnnamed4472(o.allowedSuccessCodes); checkGcsObject(o.gcsObject); unittest.expect(o.interpreter, unittest.equals('foo')); unittest.expect(o.localPath, unittest.equals('foo')); @@ -199,6 +199,7 @@ o.duration = "foo"; o.instanceFilter = buildPatchInstanceFilter(); o.patchConfig = buildPatchConfig(); + o.rollout = buildPatchRollout(); } buildCounterExecutePatchJobRequest--; return o; @@ -213,10 +214,32 @@ unittest.expect(o.duration, unittest.equals('foo')); checkPatchInstanceFilter(o.instanceFilter); checkPatchConfig(o.patchConfig); + checkPatchRollout(o.rollout); } buildCounterExecutePatchJobRequest--; } +core.int buildCounterFixedOrPercent = 0; +buildFixedOrPercent() { + var o = new api.FixedOrPercent(); + buildCounterFixedOrPercent++; + if (buildCounterFixedOrPercent < 3) { + o.fixed = 42; + o.percent = 42; + } + buildCounterFixedOrPercent--; + return o; +} + +checkFixedOrPercent(api.FixedOrPercent o) { + buildCounterFixedOrPercent++; + if (buildCounterFixedOrPercent < 3) { + unittest.expect(o.fixed, unittest.equals(42)); + unittest.expect(o.percent, unittest.equals(42)); + } + buildCounterFixedOrPercent--; +} + core.int buildCounterGcsObject = 0; buildGcsObject() { var o = new api.GcsObject(); @@ -255,14 +278,14 @@ buildCounterGooSettings--; } -buildUnnamed4235() { +buildUnnamed4473() { var o = new core.List<api.PatchDeployment>(); o.add(buildPatchDeployment()); o.add(buildPatchDeployment()); return o; } -checkUnnamed4235(core.List<api.PatchDeployment> o) { +checkUnnamed4473(core.List<api.PatchDeployment> o) { unittest.expect(o, unittest.hasLength(2)); checkPatchDeployment(o[0]); checkPatchDeployment(o[1]); @@ -274,7 +297,7 @@ buildCounterListPatchDeploymentsResponse++; if (buildCounterListPatchDeploymentsResponse < 3) { o.nextPageToken = "foo"; - o.patchDeployments = buildUnnamed4235(); + o.patchDeployments = buildUnnamed4473(); } buildCounterListPatchDeploymentsResponse--; return o; @@ -284,19 +307,19 @@ buildCounterListPatchDeploymentsResponse++; if (buildCounterListPatchDeploymentsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4235(o.patchDeployments); + checkUnnamed4473(o.patchDeployments); } buildCounterListPatchDeploymentsResponse--; } -buildUnnamed4236() { +buildUnnamed4474() { var o = new core.List<api.PatchJobInstanceDetails>(); o.add(buildPatchJobInstanceDetails()); o.add(buildPatchJobInstanceDetails()); return o; } -checkUnnamed4236(core.List<api.PatchJobInstanceDetails> o) { +checkUnnamed4474(core.List<api.PatchJobInstanceDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkPatchJobInstanceDetails(o[0]); checkPatchJobInstanceDetails(o[1]); @@ -308,7 +331,7 @@ buildCounterListPatchJobInstanceDetailsResponse++; if (buildCounterListPatchJobInstanceDetailsResponse < 3) { o.nextPageToken = "foo"; - o.patchJobInstanceDetails = buildUnnamed4236(); + o.patchJobInstanceDetails = buildUnnamed4474(); } buildCounterListPatchJobInstanceDetailsResponse--; return o; @@ -319,19 +342,19 @@ buildCounterListPatchJobInstanceDetailsResponse++; if (buildCounterListPatchJobInstanceDetailsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4236(o.patchJobInstanceDetails); + checkUnnamed4474(o.patchJobInstanceDetails); } buildCounterListPatchJobInstanceDetailsResponse--; } -buildUnnamed4237() { +buildUnnamed4475() { var o = new core.List<api.PatchJob>(); o.add(buildPatchJob()); o.add(buildPatchJob()); return o; } -checkUnnamed4237(core.List<api.PatchJob> o) { +checkUnnamed4475(core.List<api.PatchJob> o) { unittest.expect(o, unittest.hasLength(2)); checkPatchJob(o[0]); checkPatchJob(o[1]); @@ -343,7 +366,7 @@ buildCounterListPatchJobsResponse++; if (buildCounterListPatchJobsResponse < 3) { o.nextPageToken = "foo"; - o.patchJobs = buildUnnamed4237(); + o.patchJobs = buildUnnamed4475(); } buildCounterListPatchJobsResponse--; return o; @@ -353,7 +376,7 @@ buildCounterListPatchJobsResponse++; if (buildCounterListPatchJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4237(o.patchJobs); + checkUnnamed4475(o.patchJobs); } buildCounterListPatchJobsResponse--; } @@ -445,6 +468,7 @@ o.oneTimeSchedule = buildOneTimeSchedule(); o.patchConfig = buildPatchConfig(); o.recurringSchedule = buildRecurringSchedule(); + o.rollout = buildPatchRollout(); o.updateTime = "foo"; } buildCounterPatchDeployment--; @@ -463,58 +487,59 @@ checkOneTimeSchedule(o.oneTimeSchedule); checkPatchConfig(o.patchConfig); checkRecurringSchedule(o.recurringSchedule); + checkPatchRollout(o.rollout); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterPatchDeployment--; } -buildUnnamed4238() { +buildUnnamed4476() { var o = new core.List<api.PatchInstanceFilterGroupLabel>(); o.add(buildPatchInstanceFilterGroupLabel()); o.add(buildPatchInstanceFilterGroupLabel()); return o; } -checkUnnamed4238(core.List<api.PatchInstanceFilterGroupLabel> o) { +checkUnnamed4476(core.List<api.PatchInstanceFilterGroupLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkPatchInstanceFilterGroupLabel(o[0]); checkPatchInstanceFilterGroupLabel(o[1]); } -buildUnnamed4239() { +buildUnnamed4477() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4239(core.List<core.String> o) { +checkUnnamed4477(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4240() { +buildUnnamed4478() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4240(core.List<core.String> o) { +checkUnnamed4478(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4241() { +buildUnnamed4479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4241(core.List<core.String> o) { +checkUnnamed4479(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -526,10 +551,10 @@ buildCounterPatchInstanceFilter++; if (buildCounterPatchInstanceFilter < 3) { o.all = true; - o.groupLabels = buildUnnamed4238(); - o.instanceNamePrefixes = buildUnnamed4239(); - o.instances = buildUnnamed4240(); - o.zones = buildUnnamed4241(); + o.groupLabels = buildUnnamed4476(); + o.instanceNamePrefixes = buildUnnamed4477(); + o.instances = buildUnnamed4478(); + o.zones = buildUnnamed4479(); } buildCounterPatchInstanceFilter--; return o; @@ -539,22 +564,22 @@ buildCounterPatchInstanceFilter++; if (buildCounterPatchInstanceFilter < 3) { unittest.expect(o.all, unittest.isTrue); - checkUnnamed4238(o.groupLabels); - checkUnnamed4239(o.instanceNamePrefixes); - checkUnnamed4240(o.instances); - checkUnnamed4241(o.zones); + checkUnnamed4476(o.groupLabels); + checkUnnamed4477(o.instanceNamePrefixes); + checkUnnamed4478(o.instances); + checkUnnamed4479(o.zones); } buildCounterPatchInstanceFilter--; } -buildUnnamed4242() { +buildUnnamed4480() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4242(core.Map<core.String, core.String> o) { +checkUnnamed4480(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')); @@ -565,7 +590,7 @@ var o = new api.PatchInstanceFilterGroupLabel(); buildCounterPatchInstanceFilterGroupLabel++; if (buildCounterPatchInstanceFilterGroupLabel < 3) { - o.labels = buildUnnamed4242(); + o.labels = buildUnnamed4480(); } buildCounterPatchInstanceFilterGroupLabel--; return o; @@ -574,7 +599,7 @@ checkPatchInstanceFilterGroupLabel(api.PatchInstanceFilterGroupLabel o) { buildCounterPatchInstanceFilterGroupLabel++; if (buildCounterPatchInstanceFilterGroupLabel < 3) { - checkUnnamed4242(o.labels); + checkUnnamed4480(o.labels); } buildCounterPatchInstanceFilterGroupLabel--; } @@ -596,6 +621,7 @@ o.patchConfig = buildPatchConfig(); o.patchDeployment = "foo"; o.percentComplete = 42.0; + o.rollout = buildPatchRollout(); o.state = "foo"; o.updateTime = "foo"; } @@ -618,6 +644,7 @@ checkPatchConfig(o.patchConfig); unittest.expect(o.patchDeployment, unittest.equals('foo')); unittest.expect(o.percentComplete, unittest.equals(42.0)); + checkPatchRollout(o.rollout); unittest.expect(o.state, unittest.equals('foo')); unittest.expect(o.updateTime, unittest.equals('foo')); } @@ -699,6 +726,27 @@ buildCounterPatchJobInstanceDetailsSummary--; } +core.int buildCounterPatchRollout = 0; +buildPatchRollout() { + var o = new api.PatchRollout(); + buildCounterPatchRollout++; + if (buildCounterPatchRollout < 3) { + o.disruptionBudget = buildFixedOrPercent(); + o.mode = "foo"; + } + buildCounterPatchRollout--; + return o; +} + +checkPatchRollout(api.PatchRollout o) { + buildCounterPatchRollout++; + if (buildCounterPatchRollout < 3) { + checkFixedOrPercent(o.disruptionBudget); + unittest.expect(o.mode, unittest.equals('foo')); + } + buildCounterPatchRollout--; +} + core.int buildCounterRecurringSchedule = 0; buildRecurringSchedule() { var o = new api.RecurringSchedule(); @@ -820,40 +868,40 @@ buildCounterWeeklySchedule--; } -buildUnnamed4243() { +buildUnnamed4481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4243(core.List<core.String> o) { +checkUnnamed4481(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4244() { +buildUnnamed4482() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4244(core.List<core.String> o) { +checkUnnamed4482(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4245() { +buildUnnamed4483() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4245(core.List<core.String> o) { +checkUnnamed4483(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -864,9 +912,9 @@ var o = new api.WindowsUpdateSettings(); buildCounterWindowsUpdateSettings++; if (buildCounterWindowsUpdateSettings < 3) { - o.classifications = buildUnnamed4243(); - o.excludes = buildUnnamed4244(); - o.exclusivePatches = buildUnnamed4245(); + o.classifications = buildUnnamed4481(); + o.excludes = buildUnnamed4482(); + o.exclusivePatches = buildUnnamed4483(); } buildCounterWindowsUpdateSettings--; return o; @@ -875,34 +923,34 @@ checkWindowsUpdateSettings(api.WindowsUpdateSettings o) { buildCounterWindowsUpdateSettings++; if (buildCounterWindowsUpdateSettings < 3) { - checkUnnamed4243(o.classifications); - checkUnnamed4244(o.excludes); - checkUnnamed4245(o.exclusivePatches); + checkUnnamed4481(o.classifications); + checkUnnamed4482(o.excludes); + checkUnnamed4483(o.exclusivePatches); } buildCounterWindowsUpdateSettings--; } -buildUnnamed4246() { +buildUnnamed4484() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4246(core.List<core.String> o) { +checkUnnamed4484(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4247() { +buildUnnamed4485() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4247(core.List<core.String> o) { +checkUnnamed4485(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -913,8 +961,8 @@ var o = new api.YumSettings(); buildCounterYumSettings++; if (buildCounterYumSettings < 3) { - o.excludes = buildUnnamed4246(); - o.exclusivePackages = buildUnnamed4247(); + o.excludes = buildUnnamed4484(); + o.exclusivePackages = buildUnnamed4485(); o.minimal = true; o.security = true; } @@ -925,61 +973,61 @@ checkYumSettings(api.YumSettings o) { buildCounterYumSettings++; if (buildCounterYumSettings < 3) { - checkUnnamed4246(o.excludes); - checkUnnamed4247(o.exclusivePackages); + checkUnnamed4484(o.excludes); + checkUnnamed4485(o.exclusivePackages); unittest.expect(o.minimal, unittest.isTrue); unittest.expect(o.security, unittest.isTrue); } buildCounterYumSettings--; } -buildUnnamed4248() { +buildUnnamed4486() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4248(core.List<core.String> o) { +checkUnnamed4486(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4249() { +buildUnnamed4487() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4249(core.List<core.String> o) { +checkUnnamed4487(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4250() { +buildUnnamed4488() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4250(core.List<core.String> o) { +checkUnnamed4488(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4251() { +buildUnnamed4489() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4251(core.List<core.String> o) { +checkUnnamed4489(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -990,10 +1038,10 @@ var o = new api.ZypperSettings(); buildCounterZypperSettings++; if (buildCounterZypperSettings < 3) { - o.categories = buildUnnamed4248(); - o.excludes = buildUnnamed4249(); - o.exclusivePatches = buildUnnamed4250(); - o.severities = buildUnnamed4251(); + o.categories = buildUnnamed4486(); + o.excludes = buildUnnamed4487(); + o.exclusivePatches = buildUnnamed4488(); + o.severities = buildUnnamed4489(); o.withOptional = true; o.withUpdate = true; } @@ -1004,10 +1052,10 @@ checkZypperSettings(api.ZypperSettings o) { buildCounterZypperSettings++; if (buildCounterZypperSettings < 3) { - checkUnnamed4248(o.categories); - checkUnnamed4249(o.excludes); - checkUnnamed4250(o.exclusivePatches); - checkUnnamed4251(o.severities); + checkUnnamed4486(o.categories); + checkUnnamed4487(o.excludes); + checkUnnamed4488(o.exclusivePatches); + checkUnnamed4489(o.severities); unittest.expect(o.withOptional, unittest.isTrue); unittest.expect(o.withUpdate, unittest.isTrue); } @@ -1063,6 +1111,14 @@ }); }); + unittest.group("obj-schema-FixedOrPercent", () { + unittest.test("to-json--from-json", () { + var o = buildFixedOrPercent(); + var od = new api.FixedOrPercent.fromJson(o.toJson()); + checkFixedOrPercent(od); + }); + }); + unittest.group("obj-schema-GcsObject", () { unittest.test("to-json--from-json", () { var o = buildGcsObject(); @@ -1175,6 +1231,14 @@ }); }); + unittest.group("obj-schema-PatchRollout", () { + unittest.test("to-json--from-json", () { + var o = buildPatchRollout(); + var od = new api.PatchRollout.fromJson(o.toJson()); + checkPatchRollout(od); + }); + }); + unittest.group("obj-schema-RecurringSchedule", () { unittest.test("to-json--from-json", () { var o = buildRecurringSchedule(); @@ -1409,8 +1473,8 @@ api.ProjectsPatchDeploymentsResourceApi res = new api.OsconfigApi(mock).projects.patchDeployments; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1443,10 +1507,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1457,8 +1521,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListPatchDeploymentsResponse(response); @@ -1636,9 +1700,9 @@ api.ProjectsPatchJobsResourceApi res = new api.OsconfigApi(mock).projects.patchJobs; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1671,11 +1735,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1686,9 +1750,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListPatchJobsResponse(response);
diff --git a/generated/googleapis/test/oslogin/v1_test.dart b/generated/googleapis/test/oslogin/v1_test.dart index 26e7688..aa844f8 100644 --- a/generated/googleapis/test/oslogin/v1_test.dart +++ b/generated/googleapis/test/oslogin/v1_test.dart
@@ -70,6 +70,7 @@ var o = new api.ImportSshPublicKeyResponse(); buildCounterImportSshPublicKeyResponse++; if (buildCounterImportSshPublicKeyResponse < 3) { + o.details = "foo"; o.loginProfile = buildLoginProfile(); } buildCounterImportSshPublicKeyResponse--; @@ -79,32 +80,33 @@ checkImportSshPublicKeyResponse(api.ImportSshPublicKeyResponse o) { buildCounterImportSshPublicKeyResponse++; if (buildCounterImportSshPublicKeyResponse < 3) { + unittest.expect(o.details, unittest.equals('foo')); checkLoginProfile(o.loginProfile); } buildCounterImportSshPublicKeyResponse--; } -buildUnnamed1398() { +buildUnnamed1428() { var o = new core.List<api.PosixAccount>(); o.add(buildPosixAccount()); o.add(buildPosixAccount()); return o; } -checkUnnamed1398(core.List<api.PosixAccount> o) { +checkUnnamed1428(core.List<api.PosixAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkPosixAccount(o[0]); checkPosixAccount(o[1]); } -buildUnnamed1399() { +buildUnnamed1429() { var o = new core.Map<core.String, api.SshPublicKey>(); o["x"] = buildSshPublicKey(); o["y"] = buildSshPublicKey(); return o; } -checkUnnamed1399(core.Map<core.String, api.SshPublicKey> o) { +checkUnnamed1429(core.Map<core.String, api.SshPublicKey> o) { unittest.expect(o, unittest.hasLength(2)); checkSshPublicKey(o["x"]); checkSshPublicKey(o["y"]); @@ -116,8 +118,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { o.name = "foo"; - o.posixAccounts = buildUnnamed1398(); - o.sshPublicKeys = buildUnnamed1399(); + o.posixAccounts = buildUnnamed1428(); + o.sshPublicKeys = buildUnnamed1429(); } buildCounterLoginProfile--; return o; @@ -127,8 +129,8 @@ buildCounterLoginProfile++; if (buildCounterLoginProfile < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1398(o.posixAccounts); - checkUnnamed1399(o.sshPublicKeys); + checkUnnamed1428(o.posixAccounts); + checkUnnamed1429(o.sshPublicKeys); } buildCounterLoginProfile--; }
diff --git a/generated/googleapis/test/pagespeedonline/v5_test.dart b/generated/googleapis/test/pagespeedonline/v5_test.dart index 7266a40..1efee95 100644 --- a/generated/googleapis/test/pagespeedonline/v5_test.dart +++ b/generated/googleapis/test/pagespeedonline/v5_test.dart
@@ -219,7 +219,7 @@ buildCounterI18n--; } -buildUnnamed1643() { +buildUnnamed1691() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -234,7 +234,7 @@ return o; } -checkUnnamed1643(core.Map<core.String, core.Object> o) { +checkUnnamed1691(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted2 = (o["x"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); @@ -254,7 +254,7 @@ buildCounterLighthouseAuditResultV5++; if (buildCounterLighthouseAuditResultV5 < 3) { o.description = "foo"; - o.details = buildUnnamed1643(); + o.details = buildUnnamed1691(); o.displayValue = "foo"; o.errorMessage = "foo"; o.explanation = "foo"; @@ -281,7 +281,7 @@ buildCounterLighthouseAuditResultV5++; if (buildCounterLighthouseAuditResultV5 < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed1643(o.details); + checkUnnamed1691(o.details); unittest.expect(o.displayValue, unittest.equals('foo')); unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.explanation, unittest.equals('foo')); @@ -303,14 +303,14 @@ buildCounterLighthouseAuditResultV5--; } -buildUnnamed1644() { +buildUnnamed1692() { var o = new core.List<api.AuditRefs>(); o.add(buildAuditRefs()); o.add(buildAuditRefs()); return o; } -checkUnnamed1644(core.List<api.AuditRefs> o) { +checkUnnamed1692(core.List<api.AuditRefs> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditRefs(o[0]); checkAuditRefs(o[1]); @@ -321,7 +321,7 @@ var o = new api.LighthouseCategoryV5(); buildCounterLighthouseCategoryV5++; if (buildCounterLighthouseCategoryV5 < 3) { - o.auditRefs = buildUnnamed1644(); + o.auditRefs = buildUnnamed1692(); o.description = "foo"; o.id = "foo"; o.manualDescription = "foo"; @@ -339,7 +339,7 @@ checkLighthouseCategoryV5(api.LighthouseCategoryV5 o) { buildCounterLighthouseCategoryV5++; if (buildCounterLighthouseCategoryV5 < 3) { - checkUnnamed1644(o.auditRefs); + checkUnnamed1692(o.auditRefs); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.manualDescription, unittest.equals('foo')); @@ -353,33 +353,33 @@ buildCounterLighthouseCategoryV5--; } -buildUnnamed1645() { +buildUnnamed1693() { var o = new core.Map<core.String, api.LighthouseAuditResultV5>(); o["x"] = buildLighthouseAuditResultV5(); o["y"] = buildLighthouseAuditResultV5(); return o; } -checkUnnamed1645(core.Map<core.String, api.LighthouseAuditResultV5> o) { +checkUnnamed1693(core.Map<core.String, api.LighthouseAuditResultV5> o) { unittest.expect(o, unittest.hasLength(2)); checkLighthouseAuditResultV5(o["x"]); checkLighthouseAuditResultV5(o["y"]); } -buildUnnamed1646() { +buildUnnamed1694() { var o = new core.Map<core.String, api.CategoryGroupV5>(); o["x"] = buildCategoryGroupV5(); o["y"] = buildCategoryGroupV5(); return o; } -checkUnnamed1646(core.Map<core.String, api.CategoryGroupV5> o) { +checkUnnamed1694(core.Map<core.String, api.CategoryGroupV5> o) { unittest.expect(o, unittest.hasLength(2)); checkCategoryGroupV5(o["x"]); checkCategoryGroupV5(o["y"]); } -buildUnnamed1647() { +buildUnnamed1695() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -394,7 +394,7 @@ return o; } -checkUnnamed1647(core.List<core.Object> o) { +checkUnnamed1695(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -408,14 +408,14 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1648() { +buildUnnamed1696() { var o = new core.List<api.StackPack>(); o.add(buildStackPack()); o.add(buildStackPack()); return o; } -checkUnnamed1648(core.List<api.StackPack> o) { +checkUnnamed1696(core.List<api.StackPack> o) { unittest.expect(o, unittest.hasLength(2)); checkStackPack(o[0]); checkStackPack(o[1]); @@ -426,9 +426,9 @@ var o = new api.LighthouseResultV5(); buildCounterLighthouseResultV5++; if (buildCounterLighthouseResultV5 < 3) { - o.audits = buildUnnamed1645(); + o.audits = buildUnnamed1693(); o.categories = buildCategories(); - o.categoryGroups = buildUnnamed1646(); + o.categoryGroups = buildUnnamed1694(); o.configSettings = buildConfigSettings(); o.environment = buildEnvironment(); o.fetchTime = "foo"; @@ -436,9 +436,9 @@ o.i18n = buildI18n(); o.lighthouseVersion = "foo"; o.requestedUrl = "foo"; - o.runWarnings = buildUnnamed1647(); + o.runWarnings = buildUnnamed1695(); o.runtimeError = buildRuntimeError(); - o.stackPacks = buildUnnamed1648(); + o.stackPacks = buildUnnamed1696(); o.timing = buildTiming(); o.userAgent = "foo"; } @@ -449,9 +449,9 @@ checkLighthouseResultV5(api.LighthouseResultV5 o) { buildCounterLighthouseResultV5++; if (buildCounterLighthouseResultV5 < 3) { - checkUnnamed1645(o.audits); + checkUnnamed1693(o.audits); checkCategories(o.categories); - checkUnnamed1646(o.categoryGroups); + checkUnnamed1694(o.categoryGroups); checkConfigSettings(o.configSettings); checkEnvironment(o.environment); unittest.expect(o.fetchTime, unittest.equals('foo')); @@ -459,23 +459,23 @@ checkI18n(o.i18n); unittest.expect(o.lighthouseVersion, unittest.equals('foo')); unittest.expect(o.requestedUrl, unittest.equals('foo')); - checkUnnamed1647(o.runWarnings); + checkUnnamed1695(o.runWarnings); checkRuntimeError(o.runtimeError); - checkUnnamed1648(o.stackPacks); + checkUnnamed1696(o.stackPacks); checkTiming(o.timing); unittest.expect(o.userAgent, unittest.equals('foo')); } buildCounterLighthouseResultV5--; } -buildUnnamed1649() { +buildUnnamed1697() { var o = new core.Map<core.String, api.UserPageLoadMetricV5>(); o["x"] = buildUserPageLoadMetricV5(); o["y"] = buildUserPageLoadMetricV5(); return o; } -checkUnnamed1649(core.Map<core.String, api.UserPageLoadMetricV5> o) { +checkUnnamed1697(core.Map<core.String, api.UserPageLoadMetricV5> o) { unittest.expect(o, unittest.hasLength(2)); checkUserPageLoadMetricV5(o["x"]); checkUserPageLoadMetricV5(o["y"]); @@ -488,7 +488,8 @@ if (buildCounterPagespeedApiLoadingExperienceV5 < 3) { o.id = "foo"; o.initialUrl = "foo"; - o.metrics = buildUnnamed1649(); + o.metrics = buildUnnamed1697(); + o.originFallback = true; o.overallCategory = "foo"; } buildCounterPagespeedApiLoadingExperienceV5--; @@ -500,7 +501,8 @@ if (buildCounterPagespeedApiLoadingExperienceV5 < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.initialUrl, unittest.equals('foo')); - checkUnnamed1649(o.metrics); + checkUnnamed1697(o.metrics); + unittest.expect(o.originFallback, unittest.isTrue); unittest.expect(o.overallCategory, unittest.equals('foo')); } buildCounterPagespeedApiLoadingExperienceV5--; @@ -630,14 +632,14 @@ buildCounterRuntimeError--; } -buildUnnamed1650() { +buildUnnamed1698() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1650(core.Map<core.String, core.String> o) { +checkUnnamed1698(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')); @@ -648,7 +650,7 @@ var o = new api.StackPack(); buildCounterStackPack++; if (buildCounterStackPack < 3) { - o.descriptions = buildUnnamed1650(); + o.descriptions = buildUnnamed1698(); o.iconDataURL = "foo"; o.id = "foo"; o.title = "foo"; @@ -660,7 +662,7 @@ checkStackPack(api.StackPack o) { buildCounterStackPack++; if (buildCounterStackPack < 3) { - checkUnnamed1650(o.descriptions); + checkUnnamed1698(o.descriptions); unittest.expect(o.iconDataURL, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); @@ -687,14 +689,14 @@ buildCounterTiming--; } -buildUnnamed1651() { +buildUnnamed1699() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed1651(core.List<api.Bucket> o) { +checkUnnamed1699(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -706,7 +708,7 @@ buildCounterUserPageLoadMetricV5++; if (buildCounterUserPageLoadMetricV5 < 3) { o.category = "foo"; - o.distributions = buildUnnamed1651(); + o.distributions = buildUnnamed1699(); o.formFactor = "foo"; o.median = 42; o.metricId = "foo"; @@ -720,7 +722,7 @@ buildCounterUserPageLoadMetricV5++; if (buildCounterUserPageLoadMetricV5 < 3) { unittest.expect(o.category, unittest.equals('foo')); - checkUnnamed1651(o.distributions); + checkUnnamed1699(o.distributions); unittest.expect(o.formFactor, unittest.equals('foo')); unittest.expect(o.median, unittest.equals(42)); unittest.expect(o.metricId, unittest.equals('foo')); @@ -729,14 +731,14 @@ buildCounterUserPageLoadMetricV5--; } -buildUnnamed1652() { +buildUnnamed1700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1652(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')); @@ -892,13 +894,13 @@ var mock = new HttpServerMock(); api.PagespeedapiResourceApi res = new api.PagespeedonlineApi(mock).pagespeedapi; - var arg_utmCampaign = "foo"; - var arg_url = "foo"; var arg_captchaToken = "foo"; - var arg_strategy = "foo"; - var arg_utmSource = "foo"; - var arg_category = buildUnnamed1652(); var arg_locale = "foo"; + var arg_utmSource = "foo"; + var arg_strategy = "foo"; + var arg_url = "foo"; + var arg_utmCampaign = "foo"; + var arg_category = buildUnnamed1700(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -931,16 +933,16 @@ } } unittest.expect( - queryMap["utm_campaign"].first, unittest.equals(arg_utmCampaign)); - unittest.expect(queryMap["url"].first, unittest.equals(arg_url)); - unittest.expect( queryMap["captchaToken"].first, unittest.equals(arg_captchaToken)); - unittest.expect( - queryMap["strategy"].first, unittest.equals(arg_strategy)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect( queryMap["utm_source"].first, unittest.equals(arg_utmSource)); + unittest.expect( + queryMap["strategy"].first, unittest.equals(arg_strategy)); + unittest.expect(queryMap["url"].first, unittest.equals(arg_url)); + unittest.expect( + queryMap["utm_campaign"].first, unittest.equals(arg_utmCampaign)); unittest.expect(queryMap["category"], unittest.equals(arg_category)); - unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -951,13 +953,13 @@ }), true); res .runpagespeed( - utmCampaign: arg_utmCampaign, - url: arg_url, captchaToken: arg_captchaToken, - strategy: arg_strategy, - utmSource: arg_utmSource, - category: arg_category, locale: arg_locale, + utmSource: arg_utmSource, + strategy: arg_strategy, + url: arg_url, + utmCampaign: arg_utmCampaign, + category: arg_category, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPagespeedApiPagespeedResponseV5(response);
diff --git a/generated/googleapis/test/people/v1_test.dart b/generated/googleapis/test/people/v1_test.dart index 9e4f52f..68a1e66 100644 --- a/generated/googleapis/test/people/v1_test.dart +++ b/generated/googleapis/test/people/v1_test.dart
@@ -112,14 +112,14 @@ buildCounterAgeRangeType--; } -buildUnnamed3587() { +buildUnnamed3743() { var o = new core.List<api.ContactGroupResponse>(); o.add(buildContactGroupResponse()); o.add(buildContactGroupResponse()); return o; } -checkUnnamed3587(core.List<api.ContactGroupResponse> o) { +checkUnnamed3743(core.List<api.ContactGroupResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkContactGroupResponse(o[0]); checkContactGroupResponse(o[1]); @@ -130,7 +130,7 @@ var o = new api.BatchGetContactGroupsResponse(); buildCounterBatchGetContactGroupsResponse++; if (buildCounterBatchGetContactGroupsResponse < 3) { - o.responses = buildUnnamed3587(); + o.responses = buildUnnamed3743(); } buildCounterBatchGetContactGroupsResponse--; return o; @@ -139,7 +139,7 @@ checkBatchGetContactGroupsResponse(api.BatchGetContactGroupsResponse o) { buildCounterBatchGetContactGroupsResponse++; if (buildCounterBatchGetContactGroupsResponse < 3) { - checkUnnamed3587(o.responses); + checkUnnamed3743(o.responses); } buildCounterBatchGetContactGroupsResponse--; } @@ -211,14 +211,62 @@ buildCounterBraggingRights--; } -buildUnnamed3588() { +core.int buildCounterCalendarUrl = 0; +buildCalendarUrl() { + var o = new api.CalendarUrl(); + buildCounterCalendarUrl++; + if (buildCounterCalendarUrl < 3) { + o.formattedType = "foo"; + o.metadata = buildFieldMetadata(); + o.type = "foo"; + o.url = "foo"; + } + buildCounterCalendarUrl--; + return o; +} + +checkCalendarUrl(api.CalendarUrl o) { + buildCounterCalendarUrl++; + if (buildCounterCalendarUrl < 3) { + unittest.expect(o.formattedType, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterCalendarUrl--; +} + +core.int buildCounterClientData = 0; +buildClientData() { + var o = new api.ClientData(); + buildCounterClientData++; + if (buildCounterClientData < 3) { + o.key = "foo"; + o.metadata = buildFieldMetadata(); + o.value = "foo"; + } + buildCounterClientData--; + return o; +} + +checkClientData(api.ClientData o) { + buildCounterClientData++; + if (buildCounterClientData < 3) { + unittest.expect(o.key, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterClientData--; +} + +buildUnnamed3744() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3588(core.List<core.String> o) { +checkUnnamed3744(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -233,7 +281,7 @@ o.formattedName = "foo"; o.groupType = "foo"; o.memberCount = 42; - o.memberResourceNames = buildUnnamed3588(); + o.memberResourceNames = buildUnnamed3744(); o.metadata = buildContactGroupMetadata(); o.name = "foo"; o.resourceName = "foo"; @@ -249,7 +297,7 @@ unittest.expect(o.formattedName, unittest.equals('foo')); unittest.expect(o.groupType, unittest.equals('foo')); unittest.expect(o.memberCount, unittest.equals(42)); - checkUnnamed3588(o.memberResourceNames); + checkUnnamed3744(o.memberResourceNames); checkContactGroupMetadata(o.metadata); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); @@ -322,6 +370,43 @@ buildCounterContactGroupResponse--; } +buildUnnamed3745() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3745(core.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 buildCounterCopyOtherContactToMyContactsGroupRequest = 0; +buildCopyOtherContactToMyContactsGroupRequest() { + var o = new api.CopyOtherContactToMyContactsGroupRequest(); + buildCounterCopyOtherContactToMyContactsGroupRequest++; + if (buildCounterCopyOtherContactToMyContactsGroupRequest < 3) { + o.copyMask = "foo"; + o.readMask = "foo"; + o.sources = buildUnnamed3745(); + } + buildCounterCopyOtherContactToMyContactsGroupRequest--; + return o; +} + +checkCopyOtherContactToMyContactsGroupRequest( + api.CopyOtherContactToMyContactsGroupRequest o) { + buildCounterCopyOtherContactToMyContactsGroupRequest++; + if (buildCounterCopyOtherContactToMyContactsGroupRequest < 3) { + unittest.expect(o.copyMask, unittest.equals('foo')); + unittest.expect(o.readMask, unittest.equals('foo')); + checkUnnamed3745(o.sources); + } + buildCounterCopyOtherContactToMyContactsGroupRequest--; +} + core.int buildCounterCoverPhoto = 0; buildCoverPhoto() { var o = new api.CoverPhoto(); @@ -492,6 +577,31 @@ buildCounterEvent--; } +core.int buildCounterExternalId = 0; +buildExternalId() { + var o = new api.ExternalId(); + buildCounterExternalId++; + if (buildCounterExternalId < 3) { + o.formattedType = "foo"; + o.metadata = buildFieldMetadata(); + o.type = "foo"; + o.value = "foo"; + } + buildCounterExternalId--; + return o; +} + +checkExternalId(api.ExternalId o) { + buildCounterExternalId++; + if (buildCounterExternalId < 3) { + unittest.expect(o.formattedType, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterExternalId--; +} + core.int buildCounterFieldMetadata = 0; buildFieldMetadata() { var o = new api.FieldMetadata(); @@ -515,6 +625,27 @@ buildCounterFieldMetadata--; } +core.int buildCounterFileAs = 0; +buildFileAs() { + var o = new api.FileAs(); + buildCounterFileAs++; + if (buildCounterFileAs < 3) { + o.metadata = buildFieldMetadata(); + o.value = "foo"; + } + buildCounterFileAs--; + return o; +} + +checkFileAs(api.FileAs o) { + buildCounterFileAs++; + if (buildCounterFileAs < 3) { + checkFieldMetadata(o.metadata); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterFileAs--; +} + core.int buildCounterGender = 0; buildGender() { var o = new api.Gender(); @@ -540,14 +671,14 @@ buildCounterGender--; } -buildUnnamed3589() { +buildUnnamed3746() { var o = new core.List<api.PersonResponse>(); o.add(buildPersonResponse()); o.add(buildPersonResponse()); return o; } -checkUnnamed3589(core.List<api.PersonResponse> o) { +checkUnnamed3746(core.List<api.PersonResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPersonResponse(o[0]); checkPersonResponse(o[1]); @@ -558,7 +689,7 @@ var o = new api.GetPeopleResponse(); buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - o.responses = buildUnnamed3589(); + o.responses = buildUnnamed3746(); } buildCounterGetPeopleResponse--; return o; @@ -567,7 +698,7 @@ checkGetPeopleResponse(api.GetPeopleResponse o) { buildCounterGetPeopleResponse++; if (buildCounterGetPeopleResponse < 3) { - checkUnnamed3589(o.responses); + checkUnnamed3746(o.responses); } buildCounterGetPeopleResponse--; } @@ -622,14 +753,14 @@ buildCounterInterest--; } -buildUnnamed3590() { +buildUnnamed3747() { var o = new core.List<api.Person>(); o.add(buildPerson()); o.add(buildPerson()); return o; } -checkUnnamed3590(core.List<api.Person> o) { +checkUnnamed3747(core.List<api.Person> o) { unittest.expect(o, unittest.hasLength(2)); checkPerson(o[0]); checkPerson(o[1]); @@ -640,7 +771,7 @@ var o = new api.ListConnectionsResponse(); buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - o.connections = buildUnnamed3590(); + o.connections = buildUnnamed3747(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; o.totalItems = 42; @@ -653,7 +784,7 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed3590(o.connections); + checkUnnamed3747(o.connections); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -662,14 +793,14 @@ buildCounterListConnectionsResponse--; } -buildUnnamed3591() { +buildUnnamed3748() { var o = new core.List<api.ContactGroup>(); o.add(buildContactGroup()); o.add(buildContactGroup()); return o; } -checkUnnamed3591(core.List<api.ContactGroup> o) { +checkUnnamed3748(core.List<api.ContactGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkContactGroup(o[0]); checkContactGroup(o[1]); @@ -680,7 +811,7 @@ var o = new api.ListContactGroupsResponse(); buildCounterListContactGroupsResponse++; if (buildCounterListContactGroupsResponse < 3) { - o.contactGroups = buildUnnamed3591(); + o.contactGroups = buildUnnamed3748(); o.nextPageToken = "foo"; o.nextSyncToken = "foo"; o.totalItems = 42; @@ -692,7 +823,7 @@ checkListContactGroupsResponse(api.ListContactGroupsResponse o) { buildCounterListContactGroupsResponse++; if (buildCounterListContactGroupsResponse < 3) { - checkUnnamed3591(o.contactGroups); + checkUnnamed3748(o.contactGroups); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.nextSyncToken, unittest.equals('foo')); unittest.expect(o.totalItems, unittest.equals(42)); @@ -700,6 +831,78 @@ buildCounterListContactGroupsResponse--; } +buildUnnamed3749() { + var o = new core.List<api.Person>(); + o.add(buildPerson()); + o.add(buildPerson()); + return o; +} + +checkUnnamed3749(core.List<api.Person> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerson(o[0]); + checkPerson(o[1]); +} + +core.int buildCounterListDirectoryPeopleResponse = 0; +buildListDirectoryPeopleResponse() { + var o = new api.ListDirectoryPeopleResponse(); + buildCounterListDirectoryPeopleResponse++; + if (buildCounterListDirectoryPeopleResponse < 3) { + o.nextPageToken = "foo"; + o.nextSyncToken = "foo"; + o.people = buildUnnamed3749(); + } + buildCounterListDirectoryPeopleResponse--; + return o; +} + +checkListDirectoryPeopleResponse(api.ListDirectoryPeopleResponse o) { + buildCounterListDirectoryPeopleResponse++; + if (buildCounterListDirectoryPeopleResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.nextSyncToken, unittest.equals('foo')); + checkUnnamed3749(o.people); + } + buildCounterListDirectoryPeopleResponse--; +} + +buildUnnamed3750() { + var o = new core.List<api.Person>(); + o.add(buildPerson()); + o.add(buildPerson()); + return o; +} + +checkUnnamed3750(core.List<api.Person> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerson(o[0]); + checkPerson(o[1]); +} + +core.int buildCounterListOtherContactsResponse = 0; +buildListOtherContactsResponse() { + var o = new api.ListOtherContactsResponse(); + buildCounterListOtherContactsResponse++; + if (buildCounterListOtherContactsResponse < 3) { + o.nextPageToken = "foo"; + o.nextSyncToken = "foo"; + o.otherContacts = buildUnnamed3750(); + } + buildCounterListOtherContactsResponse--; + return o; +} + +checkListOtherContactsResponse(api.ListOtherContactsResponse o) { + buildCounterListOtherContactsResponse++; + if (buildCounterListOtherContactsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + unittest.expect(o.nextSyncToken, unittest.equals('foo')); + checkUnnamed3750(o.otherContacts); + } + buildCounterListOtherContactsResponse--; +} + core.int buildCounterLocale = 0; buildLocale() { var o = new api.Locale(); @@ -721,6 +924,39 @@ buildCounterLocale--; } +core.int buildCounterLocation = 0; +buildLocation() { + var o = new api.Location(); + buildCounterLocation++; + if (buildCounterLocation < 3) { + o.buildingId = "foo"; + o.current = true; + o.deskCode = "foo"; + o.floor = "foo"; + o.floorSection = "foo"; + o.metadata = buildFieldMetadata(); + o.type = "foo"; + o.value = "foo"; + } + buildCounterLocation--; + return o; +} + +checkLocation(api.Location o) { + buildCounterLocation++; + if (buildCounterLocation < 3) { + unittest.expect(o.buildingId, unittest.equals('foo')); + unittest.expect(o.current, unittest.isTrue); + unittest.expect(o.deskCode, unittest.equals('foo')); + unittest.expect(o.floor, unittest.equals('foo')); + unittest.expect(o.floorSection, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterLocation--; +} + core.int buildCounterMembership = 0; buildMembership() { var o = new api.Membership(); @@ -744,27 +980,52 @@ buildCounterMembership--; } -buildUnnamed3592() { +core.int buildCounterMiscKeyword = 0; +buildMiscKeyword() { + var o = new api.MiscKeyword(); + buildCounterMiscKeyword++; + if (buildCounterMiscKeyword < 3) { + o.formattedType = "foo"; + o.metadata = buildFieldMetadata(); + o.type = "foo"; + o.value = "foo"; + } + buildCounterMiscKeyword--; + return o; +} + +checkMiscKeyword(api.MiscKeyword o) { + buildCounterMiscKeyword++; + if (buildCounterMiscKeyword < 3) { + unittest.expect(o.formattedType, unittest.equals('foo')); + checkFieldMetadata(o.metadata); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterMiscKeyword--; +} + +buildUnnamed3751() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3592(core.List<core.String> o) { +checkUnnamed3751(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3593() { +buildUnnamed3752() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3593(core.List<core.String> o) { +checkUnnamed3752(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -775,8 +1036,8 @@ var o = new api.ModifyContactGroupMembersRequest(); buildCounterModifyContactGroupMembersRequest++; if (buildCounterModifyContactGroupMembersRequest < 3) { - o.resourceNamesToAdd = buildUnnamed3592(); - o.resourceNamesToRemove = buildUnnamed3593(); + o.resourceNamesToAdd = buildUnnamed3751(); + o.resourceNamesToRemove = buildUnnamed3752(); } buildCounterModifyContactGroupMembersRequest--; return o; @@ -785,33 +1046,33 @@ checkModifyContactGroupMembersRequest(api.ModifyContactGroupMembersRequest o) { buildCounterModifyContactGroupMembersRequest++; if (buildCounterModifyContactGroupMembersRequest < 3) { - checkUnnamed3592(o.resourceNamesToAdd); - checkUnnamed3593(o.resourceNamesToRemove); + checkUnnamed3751(o.resourceNamesToAdd); + checkUnnamed3752(o.resourceNamesToRemove); } buildCounterModifyContactGroupMembersRequest--; } -buildUnnamed3594() { +buildUnnamed3753() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3594(core.List<core.String> o) { +checkUnnamed3753(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3595() { +buildUnnamed3754() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3595(core.List<core.String> o) { +checkUnnamed3754(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -822,8 +1083,8 @@ var o = new api.ModifyContactGroupMembersResponse(); buildCounterModifyContactGroupMembersResponse++; if (buildCounterModifyContactGroupMembersResponse < 3) { - o.canNotRemoveLastContactGroupResourceNames = buildUnnamed3594(); - o.notFoundResourceNames = buildUnnamed3595(); + o.canNotRemoveLastContactGroupResourceNames = buildUnnamed3753(); + o.notFoundResourceNames = buildUnnamed3754(); } buildCounterModifyContactGroupMembersResponse--; return o; @@ -833,8 +1094,8 @@ api.ModifyContactGroupMembersResponse o) { buildCounterModifyContactGroupMembersResponse++; if (buildCounterModifyContactGroupMembersResponse < 3) { - checkUnnamed3594(o.canNotRemoveLastContactGroupResourceNames); - checkUnnamed3595(o.notFoundResourceNames); + checkUnnamed3753(o.canNotRemoveLastContactGroupResourceNames); + checkUnnamed3754(o.notFoundResourceNames); } buildCounterModifyContactGroupMembersResponse--; } @@ -858,6 +1119,7 @@ o.phoneticHonorificPrefix = "foo"; o.phoneticHonorificSuffix = "foo"; o.phoneticMiddleName = "foo"; + o.unstructuredName = "foo"; } buildCounterName--; return o; @@ -880,6 +1142,7 @@ unittest.expect(o.phoneticHonorificPrefix, unittest.equals('foo')); unittest.expect(o.phoneticHonorificSuffix, unittest.equals('foo')); unittest.expect(o.phoneticMiddleName, unittest.equals('foo')); + unittest.expect(o.unstructuredName, unittest.equals('foo')); } buildCounterName--; } @@ -973,365 +1236,443 @@ buildCounterOrganization--; } -buildUnnamed3596() { +buildUnnamed3755() { var o = new core.List<api.Address>(); o.add(buildAddress()); o.add(buildAddress()); return o; } -checkUnnamed3596(core.List<api.Address> o) { +checkUnnamed3755(core.List<api.Address> o) { unittest.expect(o, unittest.hasLength(2)); checkAddress(o[0]); checkAddress(o[1]); } -buildUnnamed3597() { +buildUnnamed3756() { var o = new core.List<api.AgeRangeType>(); o.add(buildAgeRangeType()); o.add(buildAgeRangeType()); return o; } -checkUnnamed3597(core.List<api.AgeRangeType> o) { +checkUnnamed3756(core.List<api.AgeRangeType> o) { unittest.expect(o, unittest.hasLength(2)); checkAgeRangeType(o[0]); checkAgeRangeType(o[1]); } -buildUnnamed3598() { +buildUnnamed3757() { var o = new core.List<api.Biography>(); o.add(buildBiography()); o.add(buildBiography()); return o; } -checkUnnamed3598(core.List<api.Biography> o) { +checkUnnamed3757(core.List<api.Biography> o) { unittest.expect(o, unittest.hasLength(2)); checkBiography(o[0]); checkBiography(o[1]); } -buildUnnamed3599() { +buildUnnamed3758() { var o = new core.List<api.Birthday>(); o.add(buildBirthday()); o.add(buildBirthday()); return o; } -checkUnnamed3599(core.List<api.Birthday> o) { +checkUnnamed3758(core.List<api.Birthday> o) { unittest.expect(o, unittest.hasLength(2)); checkBirthday(o[0]); checkBirthday(o[1]); } -buildUnnamed3600() { +buildUnnamed3759() { var o = new core.List<api.BraggingRights>(); o.add(buildBraggingRights()); o.add(buildBraggingRights()); return o; } -checkUnnamed3600(core.List<api.BraggingRights> o) { +checkUnnamed3759(core.List<api.BraggingRights> o) { unittest.expect(o, unittest.hasLength(2)); checkBraggingRights(o[0]); checkBraggingRights(o[1]); } -buildUnnamed3601() { +buildUnnamed3760() { + var o = new core.List<api.CalendarUrl>(); + o.add(buildCalendarUrl()); + o.add(buildCalendarUrl()); + return o; +} + +checkUnnamed3760(core.List<api.CalendarUrl> o) { + unittest.expect(o, unittest.hasLength(2)); + checkCalendarUrl(o[0]); + checkCalendarUrl(o[1]); +} + +buildUnnamed3761() { + var o = new core.List<api.ClientData>(); + o.add(buildClientData()); + o.add(buildClientData()); + return o; +} + +checkUnnamed3761(core.List<api.ClientData> o) { + unittest.expect(o, unittest.hasLength(2)); + checkClientData(o[0]); + checkClientData(o[1]); +} + +buildUnnamed3762() { var o = new core.List<api.CoverPhoto>(); o.add(buildCoverPhoto()); o.add(buildCoverPhoto()); return o; } -checkUnnamed3601(core.List<api.CoverPhoto> o) { +checkUnnamed3762(core.List<api.CoverPhoto> o) { unittest.expect(o, unittest.hasLength(2)); checkCoverPhoto(o[0]); checkCoverPhoto(o[1]); } -buildUnnamed3602() { +buildUnnamed3763() { var o = new core.List<api.EmailAddress>(); o.add(buildEmailAddress()); o.add(buildEmailAddress()); return o; } -checkUnnamed3602(core.List<api.EmailAddress> o) { +checkUnnamed3763(core.List<api.EmailAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkEmailAddress(o[0]); checkEmailAddress(o[1]); } -buildUnnamed3603() { +buildUnnamed3764() { var o = new core.List<api.Event>(); o.add(buildEvent()); o.add(buildEvent()); return o; } -checkUnnamed3603(core.List<api.Event> o) { +checkUnnamed3764(core.List<api.Event> o) { unittest.expect(o, unittest.hasLength(2)); checkEvent(o[0]); checkEvent(o[1]); } -buildUnnamed3604() { +buildUnnamed3765() { + var o = new core.List<api.ExternalId>(); + o.add(buildExternalId()); + o.add(buildExternalId()); + return o; +} + +checkUnnamed3765(core.List<api.ExternalId> o) { + unittest.expect(o, unittest.hasLength(2)); + checkExternalId(o[0]); + checkExternalId(o[1]); +} + +buildUnnamed3766() { + var o = new core.List<api.FileAs>(); + o.add(buildFileAs()); + o.add(buildFileAs()); + return o; +} + +checkUnnamed3766(core.List<api.FileAs> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFileAs(o[0]); + checkFileAs(o[1]); +} + +buildUnnamed3767() { var o = new core.List<api.Gender>(); o.add(buildGender()); o.add(buildGender()); return o; } -checkUnnamed3604(core.List<api.Gender> o) { +checkUnnamed3767(core.List<api.Gender> o) { unittest.expect(o, unittest.hasLength(2)); checkGender(o[0]); checkGender(o[1]); } -buildUnnamed3605() { +buildUnnamed3768() { var o = new core.List<api.ImClient>(); o.add(buildImClient()); o.add(buildImClient()); return o; } -checkUnnamed3605(core.List<api.ImClient> o) { +checkUnnamed3768(core.List<api.ImClient> o) { unittest.expect(o, unittest.hasLength(2)); checkImClient(o[0]); checkImClient(o[1]); } -buildUnnamed3606() { +buildUnnamed3769() { var o = new core.List<api.Interest>(); o.add(buildInterest()); o.add(buildInterest()); return o; } -checkUnnamed3606(core.List<api.Interest> o) { +checkUnnamed3769(core.List<api.Interest> o) { unittest.expect(o, unittest.hasLength(2)); checkInterest(o[0]); checkInterest(o[1]); } -buildUnnamed3607() { +buildUnnamed3770() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed3607(core.List<api.Locale> o) { +checkUnnamed3770(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed3608() { +buildUnnamed3771() { + var o = new core.List<api.Location>(); + o.add(buildLocation()); + o.add(buildLocation()); + return o; +} + +checkUnnamed3771(core.List<api.Location> o) { + unittest.expect(o, unittest.hasLength(2)); + checkLocation(o[0]); + checkLocation(o[1]); +} + +buildUnnamed3772() { var o = new core.List<api.Membership>(); o.add(buildMembership()); o.add(buildMembership()); return o; } -checkUnnamed3608(core.List<api.Membership> o) { +checkUnnamed3772(core.List<api.Membership> o) { unittest.expect(o, unittest.hasLength(2)); checkMembership(o[0]); checkMembership(o[1]); } -buildUnnamed3609() { +buildUnnamed3773() { + var o = new core.List<api.MiscKeyword>(); + o.add(buildMiscKeyword()); + o.add(buildMiscKeyword()); + return o; +} + +checkUnnamed3773(core.List<api.MiscKeyword> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMiscKeyword(o[0]); + checkMiscKeyword(o[1]); +} + +buildUnnamed3774() { var o = new core.List<api.Name>(); o.add(buildName()); o.add(buildName()); return o; } -checkUnnamed3609(core.List<api.Name> o) { +checkUnnamed3774(core.List<api.Name> o) { unittest.expect(o, unittest.hasLength(2)); checkName(o[0]); checkName(o[1]); } -buildUnnamed3610() { +buildUnnamed3775() { var o = new core.List<api.Nickname>(); o.add(buildNickname()); o.add(buildNickname()); return o; } -checkUnnamed3610(core.List<api.Nickname> o) { +checkUnnamed3775(core.List<api.Nickname> o) { unittest.expect(o, unittest.hasLength(2)); checkNickname(o[0]); checkNickname(o[1]); } -buildUnnamed3611() { +buildUnnamed3776() { var o = new core.List<api.Occupation>(); o.add(buildOccupation()); o.add(buildOccupation()); return o; } -checkUnnamed3611(core.List<api.Occupation> o) { +checkUnnamed3776(core.List<api.Occupation> o) { unittest.expect(o, unittest.hasLength(2)); checkOccupation(o[0]); checkOccupation(o[1]); } -buildUnnamed3612() { +buildUnnamed3777() { var o = new core.List<api.Organization>(); o.add(buildOrganization()); o.add(buildOrganization()); return o; } -checkUnnamed3612(core.List<api.Organization> o) { +checkUnnamed3777(core.List<api.Organization> o) { unittest.expect(o, unittest.hasLength(2)); checkOrganization(o[0]); checkOrganization(o[1]); } -buildUnnamed3613() { +buildUnnamed3778() { var o = new core.List<api.PhoneNumber>(); o.add(buildPhoneNumber()); o.add(buildPhoneNumber()); return o; } -checkUnnamed3613(core.List<api.PhoneNumber> o) { +checkUnnamed3778(core.List<api.PhoneNumber> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoneNumber(o[0]); checkPhoneNumber(o[1]); } -buildUnnamed3614() { +buildUnnamed3779() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed3614(core.List<api.Photo> o) { +checkUnnamed3779(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); } -buildUnnamed3615() { +buildUnnamed3780() { var o = new core.List<api.Relation>(); o.add(buildRelation()); o.add(buildRelation()); return o; } -checkUnnamed3615(core.List<api.Relation> o) { +checkUnnamed3780(core.List<api.Relation> o) { unittest.expect(o, unittest.hasLength(2)); checkRelation(o[0]); checkRelation(o[1]); } -buildUnnamed3616() { +buildUnnamed3781() { var o = new core.List<api.RelationshipInterest>(); o.add(buildRelationshipInterest()); o.add(buildRelationshipInterest()); return o; } -checkUnnamed3616(core.List<api.RelationshipInterest> o) { +checkUnnamed3781(core.List<api.RelationshipInterest> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipInterest(o[0]); checkRelationshipInterest(o[1]); } -buildUnnamed3617() { +buildUnnamed3782() { var o = new core.List<api.RelationshipStatus>(); o.add(buildRelationshipStatus()); o.add(buildRelationshipStatus()); return o; } -checkUnnamed3617(core.List<api.RelationshipStatus> o) { +checkUnnamed3782(core.List<api.RelationshipStatus> o) { unittest.expect(o, unittest.hasLength(2)); checkRelationshipStatus(o[0]); checkRelationshipStatus(o[1]); } -buildUnnamed3618() { +buildUnnamed3783() { var o = new core.List<api.Residence>(); o.add(buildResidence()); o.add(buildResidence()); return o; } -checkUnnamed3618(core.List<api.Residence> o) { +checkUnnamed3783(core.List<api.Residence> o) { unittest.expect(o, unittest.hasLength(2)); checkResidence(o[0]); checkResidence(o[1]); } -buildUnnamed3619() { +buildUnnamed3784() { var o = new core.List<api.SipAddress>(); o.add(buildSipAddress()); o.add(buildSipAddress()); return o; } -checkUnnamed3619(core.List<api.SipAddress> o) { +checkUnnamed3784(core.List<api.SipAddress> o) { unittest.expect(o, unittest.hasLength(2)); checkSipAddress(o[0]); checkSipAddress(o[1]); } -buildUnnamed3620() { +buildUnnamed3785() { var o = new core.List<api.Skill>(); o.add(buildSkill()); o.add(buildSkill()); return o; } -checkUnnamed3620(core.List<api.Skill> o) { +checkUnnamed3785(core.List<api.Skill> o) { unittest.expect(o, unittest.hasLength(2)); checkSkill(o[0]); checkSkill(o[1]); } -buildUnnamed3621() { +buildUnnamed3786() { var o = new core.List<api.Tagline>(); o.add(buildTagline()); o.add(buildTagline()); return o; } -checkUnnamed3621(core.List<api.Tagline> o) { +checkUnnamed3786(core.List<api.Tagline> o) { unittest.expect(o, unittest.hasLength(2)); checkTagline(o[0]); checkTagline(o[1]); } -buildUnnamed3622() { +buildUnnamed3787() { var o = new core.List<api.Url>(); o.add(buildUrl()); o.add(buildUrl()); return o; } -checkUnnamed3622(core.List<api.Url> o) { +checkUnnamed3787(core.List<api.Url> o) { unittest.expect(o, unittest.hasLength(2)); checkUrl(o[0]); checkUrl(o[1]); } -buildUnnamed3623() { +buildUnnamed3788() { var o = new core.List<api.UserDefined>(); o.add(buildUserDefined()); o.add(buildUserDefined()); return o; } -checkUnnamed3623(core.List<api.UserDefined> o) { +checkUnnamed3788(core.List<api.UserDefined> o) { unittest.expect(o, unittest.hasLength(2)); checkUserDefined(o[0]); checkUserDefined(o[1]); @@ -1342,38 +1683,44 @@ var o = new api.Person(); buildCounterPerson++; if (buildCounterPerson < 3) { - o.addresses = buildUnnamed3596(); + o.addresses = buildUnnamed3755(); o.ageRange = "foo"; - o.ageRanges = buildUnnamed3597(); - o.biographies = buildUnnamed3598(); - o.birthdays = buildUnnamed3599(); - o.braggingRights = buildUnnamed3600(); - o.coverPhotos = buildUnnamed3601(); - o.emailAddresses = buildUnnamed3602(); + o.ageRanges = buildUnnamed3756(); + o.biographies = buildUnnamed3757(); + o.birthdays = buildUnnamed3758(); + o.braggingRights = buildUnnamed3759(); + o.calendarUrls = buildUnnamed3760(); + o.clientData = buildUnnamed3761(); + o.coverPhotos = buildUnnamed3762(); + o.emailAddresses = buildUnnamed3763(); o.etag = "foo"; - o.events = buildUnnamed3603(); - o.genders = buildUnnamed3604(); - o.imClients = buildUnnamed3605(); - o.interests = buildUnnamed3606(); - o.locales = buildUnnamed3607(); - o.memberships = buildUnnamed3608(); + o.events = buildUnnamed3764(); + o.externalIds = buildUnnamed3765(); + o.fileAses = buildUnnamed3766(); + o.genders = buildUnnamed3767(); + o.imClients = buildUnnamed3768(); + o.interests = buildUnnamed3769(); + o.locales = buildUnnamed3770(); + o.locations = buildUnnamed3771(); + o.memberships = buildUnnamed3772(); o.metadata = buildPersonMetadata(); - o.names = buildUnnamed3609(); - o.nicknames = buildUnnamed3610(); - o.occupations = buildUnnamed3611(); - o.organizations = buildUnnamed3612(); - o.phoneNumbers = buildUnnamed3613(); - o.photos = buildUnnamed3614(); - o.relations = buildUnnamed3615(); - o.relationshipInterests = buildUnnamed3616(); - o.relationshipStatuses = buildUnnamed3617(); - o.residences = buildUnnamed3618(); + o.miscKeywords = buildUnnamed3773(); + o.names = buildUnnamed3774(); + o.nicknames = buildUnnamed3775(); + o.occupations = buildUnnamed3776(); + o.organizations = buildUnnamed3777(); + o.phoneNumbers = buildUnnamed3778(); + o.photos = buildUnnamed3779(); + o.relations = buildUnnamed3780(); + o.relationshipInterests = buildUnnamed3781(); + o.relationshipStatuses = buildUnnamed3782(); + o.residences = buildUnnamed3783(); o.resourceName = "foo"; - o.sipAddresses = buildUnnamed3619(); - o.skills = buildUnnamed3620(); - o.taglines = buildUnnamed3621(); - o.urls = buildUnnamed3622(); - o.userDefined = buildUnnamed3623(); + o.sipAddresses = buildUnnamed3784(); + o.skills = buildUnnamed3785(); + o.taglines = buildUnnamed3786(); + o.urls = buildUnnamed3787(); + o.userDefined = buildUnnamed3788(); } buildCounterPerson--; return o; @@ -1382,76 +1729,82 @@ checkPerson(api.Person o) { buildCounterPerson++; if (buildCounterPerson < 3) { - checkUnnamed3596(o.addresses); + checkUnnamed3755(o.addresses); unittest.expect(o.ageRange, unittest.equals('foo')); - checkUnnamed3597(o.ageRanges); - checkUnnamed3598(o.biographies); - checkUnnamed3599(o.birthdays); - checkUnnamed3600(o.braggingRights); - checkUnnamed3601(o.coverPhotos); - checkUnnamed3602(o.emailAddresses); + checkUnnamed3756(o.ageRanges); + checkUnnamed3757(o.biographies); + checkUnnamed3758(o.birthdays); + checkUnnamed3759(o.braggingRights); + checkUnnamed3760(o.calendarUrls); + checkUnnamed3761(o.clientData); + checkUnnamed3762(o.coverPhotos); + checkUnnamed3763(o.emailAddresses); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed3603(o.events); - checkUnnamed3604(o.genders); - checkUnnamed3605(o.imClients); - checkUnnamed3606(o.interests); - checkUnnamed3607(o.locales); - checkUnnamed3608(o.memberships); + checkUnnamed3764(o.events); + checkUnnamed3765(o.externalIds); + checkUnnamed3766(o.fileAses); + checkUnnamed3767(o.genders); + checkUnnamed3768(o.imClients); + checkUnnamed3769(o.interests); + checkUnnamed3770(o.locales); + checkUnnamed3771(o.locations); + checkUnnamed3772(o.memberships); checkPersonMetadata(o.metadata); - checkUnnamed3609(o.names); - checkUnnamed3610(o.nicknames); - checkUnnamed3611(o.occupations); - checkUnnamed3612(o.organizations); - checkUnnamed3613(o.phoneNumbers); - checkUnnamed3614(o.photos); - checkUnnamed3615(o.relations); - checkUnnamed3616(o.relationshipInterests); - checkUnnamed3617(o.relationshipStatuses); - checkUnnamed3618(o.residences); + checkUnnamed3773(o.miscKeywords); + checkUnnamed3774(o.names); + checkUnnamed3775(o.nicknames); + checkUnnamed3776(o.occupations); + checkUnnamed3777(o.organizations); + checkUnnamed3778(o.phoneNumbers); + checkUnnamed3779(o.photos); + checkUnnamed3780(o.relations); + checkUnnamed3781(o.relationshipInterests); + checkUnnamed3782(o.relationshipStatuses); + checkUnnamed3783(o.residences); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed3619(o.sipAddresses); - checkUnnamed3620(o.skills); - checkUnnamed3621(o.taglines); - checkUnnamed3622(o.urls); - checkUnnamed3623(o.userDefined); + checkUnnamed3784(o.sipAddresses); + checkUnnamed3785(o.skills); + checkUnnamed3786(o.taglines); + checkUnnamed3787(o.urls); + checkUnnamed3788(o.userDefined); } buildCounterPerson--; } -buildUnnamed3624() { +buildUnnamed3789() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3624(core.List<core.String> o) { +checkUnnamed3789(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3625() { +buildUnnamed3790() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3625(core.List<core.String> o) { +checkUnnamed3790(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3626() { +buildUnnamed3791() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed3626(core.List<api.Source> o) { +checkUnnamed3791(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -1463,10 +1816,10 @@ buildCounterPersonMetadata++; if (buildCounterPersonMetadata < 3) { o.deleted = true; - o.linkedPeopleResourceNames = buildUnnamed3624(); + o.linkedPeopleResourceNames = buildUnnamed3789(); o.objectType = "foo"; - o.previousResourceNames = buildUnnamed3625(); - o.sources = buildUnnamed3626(); + o.previousResourceNames = buildUnnamed3790(); + o.sources = buildUnnamed3791(); } buildCounterPersonMetadata--; return o; @@ -1476,10 +1829,10 @@ buildCounterPersonMetadata++; if (buildCounterPersonMetadata < 3) { unittest.expect(o.deleted, unittest.isTrue); - checkUnnamed3624(o.linkedPeopleResourceNames); + checkUnnamed3789(o.linkedPeopleResourceNames); unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed3625(o.previousResourceNames); - checkUnnamed3626(o.sources); + checkUnnamed3790(o.previousResourceNames); + checkUnnamed3791(o.sources); } buildCounterPersonMetadata--; } @@ -1559,14 +1912,14 @@ buildCounterPhoto--; } -buildUnnamed3627() { +buildUnnamed3792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3627(core.List<core.String> o) { +checkUnnamed3792(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1578,7 +1931,7 @@ buildCounterProfileMetadata++; if (buildCounterProfileMetadata < 3) { o.objectType = "foo"; - o.userTypes = buildUnnamed3627(); + o.userTypes = buildUnnamed3792(); } buildCounterProfileMetadata--; return o; @@ -1588,7 +1941,7 @@ buildCounterProfileMetadata++; if (buildCounterProfileMetadata < 3) { unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed3627(o.userTypes); + checkUnnamed3792(o.userTypes); } buildCounterProfileMetadata--; } @@ -1687,6 +2040,42 @@ buildCounterResidence--; } +buildUnnamed3793() { + var o = new core.List<api.Person>(); + o.add(buildPerson()); + o.add(buildPerson()); + return o; +} + +checkUnnamed3793(core.List<api.Person> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPerson(o[0]); + checkPerson(o[1]); +} + +core.int buildCounterSearchDirectoryPeopleResponse = 0; +buildSearchDirectoryPeopleResponse() { + var o = new api.SearchDirectoryPeopleResponse(); + buildCounterSearchDirectoryPeopleResponse++; + if (buildCounterSearchDirectoryPeopleResponse < 3) { + o.nextPageToken = "foo"; + o.people = buildUnnamed3793(); + o.totalSize = 42; + } + buildCounterSearchDirectoryPeopleResponse--; + return o; +} + +checkSearchDirectoryPeopleResponse(api.SearchDirectoryPeopleResponse o) { + buildCounterSearchDirectoryPeopleResponse++; + if (buildCounterSearchDirectoryPeopleResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed3793(o.people); + unittest.expect(o.totalSize, unittest.equals(42)); + } + buildCounterSearchDirectoryPeopleResponse--; +} + core.int buildCounterSipAddress = 0; buildSipAddress() { var o = new api.SipAddress(); @@ -1760,7 +2149,7 @@ buildCounterSource--; } -buildUnnamed3628() { +buildUnnamed3794() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1775,7 +2164,7 @@ return o; } -checkUnnamed3628(core.Map<core.String, core.Object> o) { +checkUnnamed3794(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)); @@ -1789,17 +2178,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3629() { +buildUnnamed3795() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3628()); - o.add(buildUnnamed3628()); + o.add(buildUnnamed3794()); + o.add(buildUnnamed3794()); return o; } -checkUnnamed3629(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3795(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3628(o[0]); - checkUnnamed3628(o[1]); + checkUnnamed3794(o[0]); + checkUnnamed3794(o[1]); } core.int buildCounterStatus = 0; @@ -1808,7 +2197,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3629(); + o.details = buildUnnamed3795(); o.message = "foo"; } buildCounterStatus--; @@ -1819,7 +2208,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3629(o.details); + checkUnnamed3795(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1865,6 +2254,19 @@ buildCounterUpdateContactGroupRequest--; } +buildUnnamed3796() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3796(core.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 buildCounterUpdateContactPhotoRequest = 0; buildUpdateContactPhotoRequest() { var o = new api.UpdateContactPhotoRequest(); @@ -1872,6 +2274,7 @@ if (buildCounterUpdateContactPhotoRequest < 3) { o.personFields = "foo"; o.photoBytes = "foo"; + o.sources = buildUnnamed3796(); } buildCounterUpdateContactPhotoRequest--; return o; @@ -1882,6 +2285,7 @@ if (buildCounterUpdateContactPhotoRequest < 3) { unittest.expect(o.personFields, unittest.equals('foo')); unittest.expect(o.photoBytes, unittest.equals('foo')); + checkUnnamed3796(o.sources); } buildCounterUpdateContactPhotoRequest--; } @@ -1953,27 +2357,157 @@ buildCounterUserDefined--; } -buildUnnamed3630() { +buildUnnamed3797() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3630(core.List<core.String> o) { +checkUnnamed3797(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3631() { +buildUnnamed3798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3631(core.List<core.String> o) { +checkUnnamed3798(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3799() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3799(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3800() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3800(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3801() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3801(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3802() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3802(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3803() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3803(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3804() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3804(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3805() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3805(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3806() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3806(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3807() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3807(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed3808() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed3808(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2028,6 +2562,22 @@ }); }); + unittest.group("obj-schema-CalendarUrl", () { + unittest.test("to-json--from-json", () { + var o = buildCalendarUrl(); + var od = new api.CalendarUrl.fromJson(o.toJson()); + checkCalendarUrl(od); + }); + }); + + unittest.group("obj-schema-ClientData", () { + unittest.test("to-json--from-json", () { + var o = buildClientData(); + var od = new api.ClientData.fromJson(o.toJson()); + checkClientData(od); + }); + }); + unittest.group("obj-schema-ContactGroup", () { unittest.test("to-json--from-json", () { var o = buildContactGroup(); @@ -2060,6 +2610,15 @@ }); }); + unittest.group("obj-schema-CopyOtherContactToMyContactsGroupRequest", () { + unittest.test("to-json--from-json", () { + var o = buildCopyOtherContactToMyContactsGroupRequest(); + var od = + new api.CopyOtherContactToMyContactsGroupRequest.fromJson(o.toJson()); + checkCopyOtherContactToMyContactsGroupRequest(od); + }); + }); + unittest.group("obj-schema-CoverPhoto", () { unittest.test("to-json--from-json", () { var o = buildCoverPhoto(); @@ -2124,6 +2683,14 @@ }); }); + unittest.group("obj-schema-ExternalId", () { + unittest.test("to-json--from-json", () { + var o = buildExternalId(); + var od = new api.ExternalId.fromJson(o.toJson()); + checkExternalId(od); + }); + }); + unittest.group("obj-schema-FieldMetadata", () { unittest.test("to-json--from-json", () { var o = buildFieldMetadata(); @@ -2132,6 +2699,14 @@ }); }); + unittest.group("obj-schema-FileAs", () { + unittest.test("to-json--from-json", () { + var o = buildFileAs(); + var od = new api.FileAs.fromJson(o.toJson()); + checkFileAs(od); + }); + }); + unittest.group("obj-schema-Gender", () { unittest.test("to-json--from-json", () { var o = buildGender(); @@ -2180,6 +2755,22 @@ }); }); + unittest.group("obj-schema-ListDirectoryPeopleResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListDirectoryPeopleResponse(); + var od = new api.ListDirectoryPeopleResponse.fromJson(o.toJson()); + checkListDirectoryPeopleResponse(od); + }); + }); + + unittest.group("obj-schema-ListOtherContactsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListOtherContactsResponse(); + var od = new api.ListOtherContactsResponse.fromJson(o.toJson()); + checkListOtherContactsResponse(od); + }); + }); + unittest.group("obj-schema-Locale", () { unittest.test("to-json--from-json", () { var o = buildLocale(); @@ -2188,6 +2779,14 @@ }); }); + unittest.group("obj-schema-Location", () { + unittest.test("to-json--from-json", () { + var o = buildLocation(); + var od = new api.Location.fromJson(o.toJson()); + checkLocation(od); + }); + }); + unittest.group("obj-schema-Membership", () { unittest.test("to-json--from-json", () { var o = buildMembership(); @@ -2196,6 +2795,14 @@ }); }); + unittest.group("obj-schema-MiscKeyword", () { + unittest.test("to-json--from-json", () { + var o = buildMiscKeyword(); + var od = new api.MiscKeyword.fromJson(o.toJson()); + checkMiscKeyword(od); + }); + }); + unittest.group("obj-schema-ModifyContactGroupMembersRequest", () { unittest.test("to-json--from-json", () { var o = buildModifyContactGroupMembersRequest(); @@ -2324,6 +2931,14 @@ }); }); + unittest.group("obj-schema-SearchDirectoryPeopleResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchDirectoryPeopleResponse(); + var od = new api.SearchDirectoryPeopleResponse.fromJson(o.toJson()); + checkSearchDirectoryPeopleResponse(od); + }); + }); + unittest.group("obj-schema-SipAddress", () { unittest.test("to-json--from-json", () { var o = buildSipAddress(); @@ -2408,7 +3023,7 @@ unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.ContactGroupsResourceApi res = new api.PeopleApi(mock).contactGroups; - var arg_resourceNames = buildUnnamed3630(); + var arg_resourceNames = buildUnnamed3797(); var arg_maxMembers = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2803,11 +3418,142 @@ }); }); + unittest.group("resource-OtherContactsResourceApi", () { + unittest.test("method--copyOtherContactToMyContactsGroup", () { + var mock = new HttpServerMock(); + api.OtherContactsResourceApi res = new api.PeopleApi(mock).otherContacts; + var arg_request = buildCopyOtherContactToMyContactsGroupRequest(); + var arg_resourceName = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.CopyOtherContactToMyContactsGroupRequest.fromJson(json); + checkCopyOtherContactToMyContactsGroupRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildPerson()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .copyOtherContactToMyContactsGroup(arg_request, arg_resourceName, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkPerson(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.OtherContactsResourceApi res = new api.PeopleApi(mock).otherContacts; + var arg_requestSyncToken = true; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_syncToken = "foo"; + var arg_readMask = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 16), + unittest.equals("v1/otherContacts")); + pathOffset += 16; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestSyncToken"].first, + unittest.equals("$arg_requestSyncToken")); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( + queryMap["readMask"].first, unittest.equals(arg_readMask)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListOtherContactsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list( + requestSyncToken: arg_requestSyncToken, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + syncToken: arg_syncToken, + readMask: arg_readMask, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListOtherContactsResponse(response); + }))); + }); + }); + unittest.group("resource-PeopleResourceApi", () { unittest.test("method--createContact", () { var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; var arg_request = buildPerson(); + var arg_personFields = "foo"; + var arg_sources = buildUnnamed3798(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Person.fromJson(json); @@ -2842,6 +3588,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["personFields"].first, unittest.equals(arg_personFields)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2851,7 +3600,10 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .createContact(arg_request, $fields: arg_$fields) + .createContact(arg_request, + personFields: arg_personFields, + sources: arg_sources, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPerson(response); }))); @@ -2913,6 +3665,7 @@ api.PeopleResourceApi res = new api.PeopleApi(mock).people; var arg_resourceName = "foo"; var arg_personFields = "foo"; + var arg_sources = buildUnnamed3799(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2947,6 +3700,7 @@ } unittest.expect( queryMap["personFields"].first, unittest.equals(arg_personFields)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2957,7 +3711,9 @@ }), true); res .deleteContactPhoto(arg_resourceName, - personFields: arg_personFields, $fields: arg_$fields) + personFields: arg_personFields, + sources: arg_sources, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkDeleteContactPhotoResponse(response); }))); @@ -2967,8 +3723,9 @@ var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; var arg_resourceName = "foo"; - var arg_personFields = "foo"; var arg_requestMask_includeField = "foo"; + var arg_sources = buildUnnamed3800(); + var arg_personFields = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3001,10 +3758,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["personFields"].first, unittest.equals(arg_personFields)); unittest.expect(queryMap["requestMask.includeField"].first, unittest.equals(arg_requestMask_includeField)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); + unittest.expect( + queryMap["personFields"].first, unittest.equals(arg_personFields)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3015,8 +3773,9 @@ }), true); res .get(arg_resourceName, - personFields: arg_personFields, requestMask_includeField: arg_requestMask_includeField, + sources: arg_sources, + personFields: arg_personFields, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPerson(response); @@ -3026,9 +3785,10 @@ unittest.test("method--getBatchGet", () { var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; + var arg_resourceNames = buildUnnamed3801(); var arg_personFields = "foo"; + var arg_sources = buildUnnamed3802(); var arg_requestMask_includeField = "foo"; - var arg_resourceNames = buildUnnamed3631(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3061,11 +3821,12 @@ } } unittest.expect( + queryMap["resourceNames"], unittest.equals(arg_resourceNames)); + unittest.expect( queryMap["personFields"].first, unittest.equals(arg_personFields)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); unittest.expect(queryMap["requestMask.includeField"].first, unittest.equals(arg_requestMask_includeField)); - unittest.expect( - queryMap["resourceNames"], unittest.equals(arg_resourceNames)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3076,21 +3837,173 @@ }), true); res .getBatchGet( - personFields: arg_personFields, - requestMask_includeField: arg_requestMask_includeField, resourceNames: arg_resourceNames, + personFields: arg_personFields, + sources: arg_sources, + requestMask_includeField: arg_requestMask_includeField, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGetPeopleResponse(response); }))); }); + unittest.test("method--listDirectoryPeople", () { + var mock = new HttpServerMock(); + api.PeopleResourceApi res = new api.PeopleApi(mock).people; + var arg_requestSyncToken = true; + var arg_syncToken = "foo"; + var arg_readMask = "foo"; + var arg_pageSize = 42; + var arg_sources = buildUnnamed3803(); + var arg_pageToken = "foo"; + var arg_mergeSources = buildUnnamed3804(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("v1/people:listDirectoryPeople")); + pathOffset += 29; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["requestSyncToken"].first, + unittest.equals("$arg_requestSyncToken")); + unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); + unittest.expect( + queryMap["readMask"].first, unittest.equals(arg_readMask)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["mergeSources"], unittest.equals(arg_mergeSources)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListDirectoryPeopleResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .listDirectoryPeople( + requestSyncToken: arg_requestSyncToken, + syncToken: arg_syncToken, + readMask: arg_readMask, + pageSize: arg_pageSize, + sources: arg_sources, + pageToken: arg_pageToken, + mergeSources: arg_mergeSources, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListDirectoryPeopleResponse(response); + }))); + }); + + unittest.test("method--searchDirectoryPeople", () { + var mock = new HttpServerMock(); + api.PeopleResourceApi res = new api.PeopleApi(mock).people; + var arg_mergeSources = buildUnnamed3805(); + var arg_pageSize = 42; + var arg_query = "foo"; + var arg_readMask = "foo"; + var arg_pageToken = "foo"; + var arg_sources = buildUnnamed3806(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 31), + unittest.equals("v1/people:searchDirectoryPeople")); + pathOffset += 31; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["mergeSources"], unittest.equals(arg_mergeSources)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); + unittest.expect( + queryMap["readMask"].first, unittest.equals(arg_readMask)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearchDirectoryPeopleResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .searchDirectoryPeople( + mergeSources: arg_mergeSources, + pageSize: arg_pageSize, + query: arg_query, + readMask: arg_readMask, + pageToken: arg_pageToken, + sources: arg_sources, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearchDirectoryPeopleResponse(response); + }))); + }); + unittest.test("method--updateContact", () { var mock = new HttpServerMock(); api.PeopleResourceApi res = new api.PeopleApi(mock).people; var arg_request = buildPerson(); var arg_resourceName = "foo"; + var arg_personFields = "foo"; var arg_updatePersonFields = "foo"; + var arg_sources = buildUnnamed3807(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Person.fromJson(json); @@ -3126,8 +4039,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["personFields"].first, unittest.equals(arg_personFields)); unittest.expect(queryMap["updatePersonFields"].first, unittest.equals(arg_updatePersonFields)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3138,7 +4054,10 @@ }), true); res .updateContact(arg_request, arg_resourceName, - updatePersonFields: arg_updatePersonFields, $fields: arg_$fields) + personFields: arg_personFields, + updatePersonFields: arg_updatePersonFields, + sources: arg_sources, + $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPerson(response); }))); @@ -3207,13 +4126,14 @@ api.PeopleConnectionsResourceApi res = new api.PeopleApi(mock).people.connections; var arg_resourceName = "foo"; + var arg_personFields = "foo"; + var arg_requestMask_includeField = "foo"; + var arg_sortOrder = "foo"; + var arg_syncToken = "foo"; var arg_requestSyncToken = true; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_requestMask_includeField = "foo"; - var arg_syncToken = "foo"; - var arg_personFields = "foo"; - var arg_sortOrder = "foo"; + var arg_sources = buildUnnamed3808(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3246,20 +4166,21 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["personFields"].first, unittest.equals(arg_personFields)); + unittest.expect(queryMap["requestMask.includeField"].first, + unittest.equals(arg_requestMask_includeField)); + unittest.expect( + queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect( + queryMap["syncToken"].first, unittest.equals(arg_syncToken)); unittest.expect(queryMap["requestSyncToken"].first, unittest.equals("$arg_requestSyncToken")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["requestMask.includeField"].first, - unittest.equals(arg_requestMask_includeField)); - unittest.expect( - queryMap["syncToken"].first, unittest.equals(arg_syncToken)); - unittest.expect( - queryMap["personFields"].first, unittest.equals(arg_personFields)); - unittest.expect( - queryMap["sortOrder"].first, unittest.equals(arg_sortOrder)); + unittest.expect(queryMap["sources"], unittest.equals(arg_sources)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3270,13 +4191,14 @@ }), true); res .list(arg_resourceName, + personFields: arg_personFields, + requestMask_includeField: arg_requestMask_includeField, + sortOrder: arg_sortOrder, + syncToken: arg_syncToken, requestSyncToken: arg_requestSyncToken, pageToken: arg_pageToken, pageSize: arg_pageSize, - requestMask_includeField: arg_requestMask_includeField, - syncToken: arg_syncToken, - personFields: arg_personFields, - sortOrder: arg_sortOrder, + sources: arg_sources, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListConnectionsResponse(response);
diff --git a/generated/googleapis/test/playcustomapp/v1_test.dart b/generated/googleapis/test/playcustomapp/v1_test.dart index 5a8f65e..92c60c1 100644 --- a/generated/googleapis/test/playcustomapp/v1_test.dart +++ b/generated/googleapis/test/playcustomapp/v1_test.dart
@@ -56,6 +56,7 @@ buildCounterCustomApp++; if (buildCounterCustomApp < 3) { o.languageCode = "foo"; + o.packageName = "foo"; o.title = "foo"; } buildCounterCustomApp--; @@ -66,6 +67,7 @@ buildCounterCustomApp++; if (buildCounterCustomApp < 3) { unittest.expect(o.languageCode, unittest.equals('foo')); + unittest.expect(o.packageName, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterCustomApp--; @@ -102,6 +104,18 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("playcustomapp/v1/accounts/")); + pathOffset += 26; + index = path.indexOf("/customApps", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_account")); + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("/customApps")); + pathOffset += 11; var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/plus/v1_test.dart b/generated/googleapis/test/plus/v1_test.dart deleted file mode 100644 index f9ff727..0000000 --- a/generated/googleapis/test/plus/v1_test.dart +++ /dev/null
@@ -1,2555 +0,0 @@ -library googleapis.plus.v1.test; - -import "dart:core" as core; -import "dart:async" as async; -import "dart:convert" as convert; - -import 'package:http/http.dart' as http; -import 'package:test/test.dart' as unittest; - -import 'package:googleapis/plus/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<core.String, core.String> headers, core.String body) { - var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); - return new http.StreamedResponse(stream, status, headers: headers); -} - -buildUnnamed50() { - var o = new core.List<api.PlusAclentryResource>(); - o.add(buildPlusAclentryResource()); - o.add(buildPlusAclentryResource()); - return o; -} - -checkUnnamed50(core.List<api.PlusAclentryResource> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPlusAclentryResource(o[0]); - checkPlusAclentryResource(o[1]); -} - -core.int buildCounterAcl = 0; -buildAcl() { - var o = new api.Acl(); - buildCounterAcl++; - if (buildCounterAcl < 3) { - o.description = "foo"; - o.items = buildUnnamed50(); - o.kind = "foo"; - } - buildCounterAcl--; - return o; -} - -checkAcl(api.Acl o) { - buildCounterAcl++; - if (buildCounterAcl < 3) { - unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed50(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - } - buildCounterAcl--; -} - -core.int buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo = 0; -buildActivityActorClientSpecificActorInfoYoutubeActorInfo() { - var o = new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo(); - buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { - o.channelId = "foo"; - } - buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo--; - return o; -} - -checkActivityActorClientSpecificActorInfoYoutubeActorInfo( - api.ActivityActorClientSpecificActorInfoYoutubeActorInfo o) { - buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo < 3) { - unittest.expect(o.channelId, unittest.equals('foo')); - } - buildCounterActivityActorClientSpecificActorInfoYoutubeActorInfo--; -} - -core.int buildCounterActivityActorClientSpecificActorInfo = 0; -buildActivityActorClientSpecificActorInfo() { - var o = new api.ActivityActorClientSpecificActorInfo(); - buildCounterActivityActorClientSpecificActorInfo++; - if (buildCounterActivityActorClientSpecificActorInfo < 3) { - o.youtubeActorInfo = - buildActivityActorClientSpecificActorInfoYoutubeActorInfo(); - } - buildCounterActivityActorClientSpecificActorInfo--; - return o; -} - -checkActivityActorClientSpecificActorInfo( - api.ActivityActorClientSpecificActorInfo o) { - buildCounterActivityActorClientSpecificActorInfo++; - if (buildCounterActivityActorClientSpecificActorInfo < 3) { - checkActivityActorClientSpecificActorInfoYoutubeActorInfo( - o.youtubeActorInfo); - } - buildCounterActivityActorClientSpecificActorInfo--; -} - -core.int buildCounterActivityActorImage = 0; -buildActivityActorImage() { - var o = new api.ActivityActorImage(); - buildCounterActivityActorImage++; - if (buildCounterActivityActorImage < 3) { - o.url = "foo"; - } - buildCounterActivityActorImage--; - return o; -} - -checkActivityActorImage(api.ActivityActorImage o) { - buildCounterActivityActorImage++; - if (buildCounterActivityActorImage < 3) { - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityActorImage--; -} - -core.int buildCounterActivityActorName = 0; -buildActivityActorName() { - var o = new api.ActivityActorName(); - buildCounterActivityActorName++; - if (buildCounterActivityActorName < 3) { - o.familyName = "foo"; - o.givenName = "foo"; - } - buildCounterActivityActorName--; - return o; -} - -checkActivityActorName(api.ActivityActorName o) { - buildCounterActivityActorName++; - if (buildCounterActivityActorName < 3) { - unittest.expect(o.familyName, unittest.equals('foo')); - unittest.expect(o.givenName, unittest.equals('foo')); - } - buildCounterActivityActorName--; -} - -core.int buildCounterActivityActorVerification = 0; -buildActivityActorVerification() { - var o = new api.ActivityActorVerification(); - buildCounterActivityActorVerification++; - if (buildCounterActivityActorVerification < 3) { - o.adHocVerified = "foo"; - } - buildCounterActivityActorVerification--; - return o; -} - -checkActivityActorVerification(api.ActivityActorVerification o) { - buildCounterActivityActorVerification++; - if (buildCounterActivityActorVerification < 3) { - unittest.expect(o.adHocVerified, unittest.equals('foo')); - } - buildCounterActivityActorVerification--; -} - -core.int buildCounterActivityActor = 0; -buildActivityActor() { - var o = new api.ActivityActor(); - buildCounterActivityActor++; - if (buildCounterActivityActor < 3) { - o.clientSpecificActorInfo = buildActivityActorClientSpecificActorInfo(); - o.displayName = "foo"; - o.id = "foo"; - o.image = buildActivityActorImage(); - o.name = buildActivityActorName(); - o.url = "foo"; - o.verification = buildActivityActorVerification(); - } - buildCounterActivityActor--; - return o; -} - -checkActivityActor(api.ActivityActor o) { - buildCounterActivityActor++; - if (buildCounterActivityActor < 3) { - checkActivityActorClientSpecificActorInfo(o.clientSpecificActorInfo); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkActivityActorImage(o.image); - checkActivityActorName(o.name); - unittest.expect(o.url, unittest.equals('foo')); - checkActivityActorVerification(o.verification); - } - buildCounterActivityActor--; -} - -core.int - buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo = 0; -buildActivityObjectActorClientSpecificActorInfoYoutubeActorInfo() { - var o = new api.ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); - buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo < - 3) { - o.channelId = "foo"; - } - buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo--; - return o; -} - -checkActivityObjectActorClientSpecificActorInfoYoutubeActorInfo( - api.ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo o) { - buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo < - 3) { - unittest.expect(o.channelId, unittest.equals('foo')); - } - buildCounterActivityObjectActorClientSpecificActorInfoYoutubeActorInfo--; -} - -core.int buildCounterActivityObjectActorClientSpecificActorInfo = 0; -buildActivityObjectActorClientSpecificActorInfo() { - var o = new api.ActivityObjectActorClientSpecificActorInfo(); - buildCounterActivityObjectActorClientSpecificActorInfo++; - if (buildCounterActivityObjectActorClientSpecificActorInfo < 3) { - o.youtubeActorInfo = - buildActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); - } - buildCounterActivityObjectActorClientSpecificActorInfo--; - return o; -} - -checkActivityObjectActorClientSpecificActorInfo( - api.ActivityObjectActorClientSpecificActorInfo o) { - buildCounterActivityObjectActorClientSpecificActorInfo++; - if (buildCounterActivityObjectActorClientSpecificActorInfo < 3) { - checkActivityObjectActorClientSpecificActorInfoYoutubeActorInfo( - o.youtubeActorInfo); - } - buildCounterActivityObjectActorClientSpecificActorInfo--; -} - -core.int buildCounterActivityObjectActorImage = 0; -buildActivityObjectActorImage() { - var o = new api.ActivityObjectActorImage(); - buildCounterActivityObjectActorImage++; - if (buildCounterActivityObjectActorImage < 3) { - o.url = "foo"; - } - buildCounterActivityObjectActorImage--; - return o; -} - -checkActivityObjectActorImage(api.ActivityObjectActorImage o) { - buildCounterActivityObjectActorImage++; - if (buildCounterActivityObjectActorImage < 3) { - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityObjectActorImage--; -} - -core.int buildCounterActivityObjectActorVerification = 0; -buildActivityObjectActorVerification() { - var o = new api.ActivityObjectActorVerification(); - buildCounterActivityObjectActorVerification++; - if (buildCounterActivityObjectActorVerification < 3) { - o.adHocVerified = "foo"; - } - buildCounterActivityObjectActorVerification--; - return o; -} - -checkActivityObjectActorVerification(api.ActivityObjectActorVerification o) { - buildCounterActivityObjectActorVerification++; - if (buildCounterActivityObjectActorVerification < 3) { - unittest.expect(o.adHocVerified, unittest.equals('foo')); - } - buildCounterActivityObjectActorVerification--; -} - -core.int buildCounterActivityObjectActor = 0; -buildActivityObjectActor() { - var o = new api.ActivityObjectActor(); - buildCounterActivityObjectActor++; - if (buildCounterActivityObjectActor < 3) { - o.clientSpecificActorInfo = - buildActivityObjectActorClientSpecificActorInfo(); - o.displayName = "foo"; - o.id = "foo"; - o.image = buildActivityObjectActorImage(); - o.url = "foo"; - o.verification = buildActivityObjectActorVerification(); - } - buildCounterActivityObjectActor--; - return o; -} - -checkActivityObjectActor(api.ActivityObjectActor o) { - buildCounterActivityObjectActor++; - if (buildCounterActivityObjectActor < 3) { - checkActivityObjectActorClientSpecificActorInfo(o.clientSpecificActorInfo); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkActivityObjectActorImage(o.image); - unittest.expect(o.url, unittest.equals('foo')); - checkActivityObjectActorVerification(o.verification); - } - buildCounterActivityObjectActor--; -} - -core.int buildCounterActivityObjectAttachmentsEmbed = 0; -buildActivityObjectAttachmentsEmbed() { - var o = new api.ActivityObjectAttachmentsEmbed(); - buildCounterActivityObjectAttachmentsEmbed++; - if (buildCounterActivityObjectAttachmentsEmbed < 3) { - o.type = "foo"; - o.url = "foo"; - } - buildCounterActivityObjectAttachmentsEmbed--; - return o; -} - -checkActivityObjectAttachmentsEmbed(api.ActivityObjectAttachmentsEmbed o) { - buildCounterActivityObjectAttachmentsEmbed++; - if (buildCounterActivityObjectAttachmentsEmbed < 3) { - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityObjectAttachmentsEmbed--; -} - -core.int buildCounterActivityObjectAttachmentsFullImage = 0; -buildActivityObjectAttachmentsFullImage() { - var o = new api.ActivityObjectAttachmentsFullImage(); - buildCounterActivityObjectAttachmentsFullImage++; - if (buildCounterActivityObjectAttachmentsFullImage < 3) { - o.height = 42; - o.type = "foo"; - o.url = "foo"; - o.width = 42; - } - buildCounterActivityObjectAttachmentsFullImage--; - return o; -} - -checkActivityObjectAttachmentsFullImage( - api.ActivityObjectAttachmentsFullImage o) { - buildCounterActivityObjectAttachmentsFullImage++; - if (buildCounterActivityObjectAttachmentsFullImage < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterActivityObjectAttachmentsFullImage--; -} - -core.int buildCounterActivityObjectAttachmentsImage = 0; -buildActivityObjectAttachmentsImage() { - var o = new api.ActivityObjectAttachmentsImage(); - buildCounterActivityObjectAttachmentsImage++; - if (buildCounterActivityObjectAttachmentsImage < 3) { - o.height = 42; - o.type = "foo"; - o.url = "foo"; - o.width = 42; - } - buildCounterActivityObjectAttachmentsImage--; - return o; -} - -checkActivityObjectAttachmentsImage(api.ActivityObjectAttachmentsImage o) { - buildCounterActivityObjectAttachmentsImage++; - if (buildCounterActivityObjectAttachmentsImage < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterActivityObjectAttachmentsImage--; -} - -core.int buildCounterActivityObjectAttachmentsThumbnailsImage = 0; -buildActivityObjectAttachmentsThumbnailsImage() { - var o = new api.ActivityObjectAttachmentsThumbnailsImage(); - buildCounterActivityObjectAttachmentsThumbnailsImage++; - if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { - o.height = 42; - o.type = "foo"; - o.url = "foo"; - o.width = 42; - } - buildCounterActivityObjectAttachmentsThumbnailsImage--; - return o; -} - -checkActivityObjectAttachmentsThumbnailsImage( - api.ActivityObjectAttachmentsThumbnailsImage o) { - buildCounterActivityObjectAttachmentsThumbnailsImage++; - if (buildCounterActivityObjectAttachmentsThumbnailsImage < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterActivityObjectAttachmentsThumbnailsImage--; -} - -core.int buildCounterActivityObjectAttachmentsThumbnails = 0; -buildActivityObjectAttachmentsThumbnails() { - var o = new api.ActivityObjectAttachmentsThumbnails(); - buildCounterActivityObjectAttachmentsThumbnails++; - if (buildCounterActivityObjectAttachmentsThumbnails < 3) { - o.description = "foo"; - o.image = buildActivityObjectAttachmentsThumbnailsImage(); - o.url = "foo"; - } - buildCounterActivityObjectAttachmentsThumbnails--; - return o; -} - -checkActivityObjectAttachmentsThumbnails( - api.ActivityObjectAttachmentsThumbnails o) { - buildCounterActivityObjectAttachmentsThumbnails++; - if (buildCounterActivityObjectAttachmentsThumbnails < 3) { - unittest.expect(o.description, unittest.equals('foo')); - checkActivityObjectAttachmentsThumbnailsImage(o.image); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityObjectAttachmentsThumbnails--; -} - -buildUnnamed51() { - var o = new core.List<api.ActivityObjectAttachmentsThumbnails>(); - o.add(buildActivityObjectAttachmentsThumbnails()); - o.add(buildActivityObjectAttachmentsThumbnails()); - return o; -} - -checkUnnamed51(core.List<api.ActivityObjectAttachmentsThumbnails> o) { - unittest.expect(o, unittest.hasLength(2)); - checkActivityObjectAttachmentsThumbnails(o[0]); - checkActivityObjectAttachmentsThumbnails(o[1]); -} - -core.int buildCounterActivityObjectAttachments = 0; -buildActivityObjectAttachments() { - var o = new api.ActivityObjectAttachments(); - buildCounterActivityObjectAttachments++; - if (buildCounterActivityObjectAttachments < 3) { - o.content = "foo"; - o.displayName = "foo"; - o.embed = buildActivityObjectAttachmentsEmbed(); - o.fullImage = buildActivityObjectAttachmentsFullImage(); - o.id = "foo"; - o.image = buildActivityObjectAttachmentsImage(); - o.objectType = "foo"; - o.thumbnails = buildUnnamed51(); - o.url = "foo"; - } - buildCounterActivityObjectAttachments--; - return o; -} - -checkActivityObjectAttachments(api.ActivityObjectAttachments o) { - buildCounterActivityObjectAttachments++; - if (buildCounterActivityObjectAttachments < 3) { - unittest.expect(o.content, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - checkActivityObjectAttachmentsEmbed(o.embed); - checkActivityObjectAttachmentsFullImage(o.fullImage); - unittest.expect(o.id, unittest.equals('foo')); - checkActivityObjectAttachmentsImage(o.image); - unittest.expect(o.objectType, unittest.equals('foo')); - checkUnnamed51(o.thumbnails); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityObjectAttachments--; -} - -buildUnnamed52() { - var o = new core.List<api.ActivityObjectAttachments>(); - o.add(buildActivityObjectAttachments()); - o.add(buildActivityObjectAttachments()); - return o; -} - -checkUnnamed52(core.List<api.ActivityObjectAttachments> o) { - unittest.expect(o, unittest.hasLength(2)); - checkActivityObjectAttachments(o[0]); - checkActivityObjectAttachments(o[1]); -} - -core.int buildCounterActivityObjectPlusoners = 0; -buildActivityObjectPlusoners() { - var o = new api.ActivityObjectPlusoners(); - buildCounterActivityObjectPlusoners++; - if (buildCounterActivityObjectPlusoners < 3) { - o.selfLink = "foo"; - o.totalItems = 42; - } - buildCounterActivityObjectPlusoners--; - return o; -} - -checkActivityObjectPlusoners(api.ActivityObjectPlusoners o) { - buildCounterActivityObjectPlusoners++; - if (buildCounterActivityObjectPlusoners < 3) { - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect(o.totalItems, unittest.equals(42)); - } - buildCounterActivityObjectPlusoners--; -} - -core.int buildCounterActivityObjectReplies = 0; -buildActivityObjectReplies() { - var o = new api.ActivityObjectReplies(); - buildCounterActivityObjectReplies++; - if (buildCounterActivityObjectReplies < 3) { - o.selfLink = "foo"; - o.totalItems = 42; - } - buildCounterActivityObjectReplies--; - return o; -} - -checkActivityObjectReplies(api.ActivityObjectReplies o) { - buildCounterActivityObjectReplies++; - if (buildCounterActivityObjectReplies < 3) { - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect(o.totalItems, unittest.equals(42)); - } - buildCounterActivityObjectReplies--; -} - -core.int buildCounterActivityObjectResharers = 0; -buildActivityObjectResharers() { - var o = new api.ActivityObjectResharers(); - buildCounterActivityObjectResharers++; - if (buildCounterActivityObjectResharers < 3) { - o.selfLink = "foo"; - o.totalItems = 42; - } - buildCounterActivityObjectResharers--; - return o; -} - -checkActivityObjectResharers(api.ActivityObjectResharers o) { - buildCounterActivityObjectResharers++; - if (buildCounterActivityObjectResharers < 3) { - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect(o.totalItems, unittest.equals(42)); - } - buildCounterActivityObjectResharers--; -} - -core.int buildCounterActivityObject = 0; -buildActivityObject() { - var o = new api.ActivityObject(); - buildCounterActivityObject++; - if (buildCounterActivityObject < 3) { - o.actor = buildActivityObjectActor(); - o.attachments = buildUnnamed52(); - o.content = "foo"; - o.id = "foo"; - o.objectType = "foo"; - o.originalContent = "foo"; - o.plusoners = buildActivityObjectPlusoners(); - o.replies = buildActivityObjectReplies(); - o.resharers = buildActivityObjectResharers(); - o.url = "foo"; - } - buildCounterActivityObject--; - return o; -} - -checkActivityObject(api.ActivityObject o) { - buildCounterActivityObject++; - if (buildCounterActivityObject < 3) { - checkActivityObjectActor(o.actor); - checkUnnamed52(o.attachments); - unittest.expect(o.content, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.objectType, unittest.equals('foo')); - unittest.expect(o.originalContent, unittest.equals('foo')); - checkActivityObjectPlusoners(o.plusoners); - checkActivityObjectReplies(o.replies); - checkActivityObjectResharers(o.resharers); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterActivityObject--; -} - -core.int buildCounterActivityProvider = 0; -buildActivityProvider() { - var o = new api.ActivityProvider(); - buildCounterActivityProvider++; - if (buildCounterActivityProvider < 3) { - o.title = "foo"; - } - buildCounterActivityProvider--; - return o; -} - -checkActivityProvider(api.ActivityProvider o) { - buildCounterActivityProvider++; - if (buildCounterActivityProvider < 3) { - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterActivityProvider--; -} - -core.int buildCounterActivity = 0; -buildActivity() { - var o = new api.Activity(); - buildCounterActivity++; - if (buildCounterActivity < 3) { - o.access = buildAcl(); - o.actor = buildActivityActor(); - o.address = "foo"; - o.annotation = "foo"; - o.crosspostSource = "foo"; - o.etag = "foo"; - o.geocode = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.location = buildPlace(); - o.object = buildActivityObject(); - o.placeId = "foo"; - o.placeName = "foo"; - o.provider = buildActivityProvider(); - o.published = core.DateTime.parse("2002-02-27T14:01:02"); - o.radius = "foo"; - o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.url = "foo"; - o.verb = "foo"; - } - buildCounterActivity--; - return o; -} - -checkActivity(api.Activity o) { - buildCounterActivity++; - if (buildCounterActivity < 3) { - checkAcl(o.access); - checkActivityActor(o.actor); - unittest.expect(o.address, unittest.equals('foo')); - unittest.expect(o.annotation, unittest.equals('foo')); - unittest.expect(o.crosspostSource, unittest.equals('foo')); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.geocode, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkPlace(o.location); - checkActivityObject(o.object); - unittest.expect(o.placeId, unittest.equals('foo')); - unittest.expect(o.placeName, unittest.equals('foo')); - checkActivityProvider(o.provider); - unittest.expect(o.published, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.radius, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.verb, unittest.equals('foo')); - } - buildCounterActivity--; -} - -buildUnnamed53() { - var o = new core.List<api.Activity>(); - o.add(buildActivity()); - o.add(buildActivity()); - return o; -} - -checkUnnamed53(core.List<api.Activity> o) { - unittest.expect(o, unittest.hasLength(2)); - checkActivity(o[0]); - checkActivity(o[1]); -} - -core.int buildCounterActivityFeed = 0; -buildActivityFeed() { - var o = new api.ActivityFeed(); - buildCounterActivityFeed++; - if (buildCounterActivityFeed < 3) { - o.etag = "foo"; - o.id = "foo"; - o.items = buildUnnamed53(); - o.kind = "foo"; - o.nextLink = "foo"; - o.nextPageToken = "foo"; - o.selfLink = "foo"; - o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - } - buildCounterActivityFeed--; - return o; -} - -checkActivityFeed(api.ActivityFeed o) { - buildCounterActivityFeed++; - if (buildCounterActivityFeed < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed53(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextLink, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - } - buildCounterActivityFeed--; -} - -core.int buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo = 0; -buildCommentActorClientSpecificActorInfoYoutubeActorInfo() { - var o = new api.CommentActorClientSpecificActorInfoYoutubeActorInfo(); - buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo < 3) { - o.channelId = "foo"; - } - buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo--; - return o; -} - -checkCommentActorClientSpecificActorInfoYoutubeActorInfo( - api.CommentActorClientSpecificActorInfoYoutubeActorInfo o) { - buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo++; - if (buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo < 3) { - unittest.expect(o.channelId, unittest.equals('foo')); - } - buildCounterCommentActorClientSpecificActorInfoYoutubeActorInfo--; -} - -core.int buildCounterCommentActorClientSpecificActorInfo = 0; -buildCommentActorClientSpecificActorInfo() { - var o = new api.CommentActorClientSpecificActorInfo(); - buildCounterCommentActorClientSpecificActorInfo++; - if (buildCounterCommentActorClientSpecificActorInfo < 3) { - o.youtubeActorInfo = - buildCommentActorClientSpecificActorInfoYoutubeActorInfo(); - } - buildCounterCommentActorClientSpecificActorInfo--; - return o; -} - -checkCommentActorClientSpecificActorInfo( - api.CommentActorClientSpecificActorInfo o) { - buildCounterCommentActorClientSpecificActorInfo++; - if (buildCounterCommentActorClientSpecificActorInfo < 3) { - checkCommentActorClientSpecificActorInfoYoutubeActorInfo( - o.youtubeActorInfo); - } - buildCounterCommentActorClientSpecificActorInfo--; -} - -core.int buildCounterCommentActorImage = 0; -buildCommentActorImage() { - var o = new api.CommentActorImage(); - buildCounterCommentActorImage++; - if (buildCounterCommentActorImage < 3) { - o.url = "foo"; - } - buildCounterCommentActorImage--; - return o; -} - -checkCommentActorImage(api.CommentActorImage o) { - buildCounterCommentActorImage++; - if (buildCounterCommentActorImage < 3) { - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterCommentActorImage--; -} - -core.int buildCounterCommentActorVerification = 0; -buildCommentActorVerification() { - var o = new api.CommentActorVerification(); - buildCounterCommentActorVerification++; - if (buildCounterCommentActorVerification < 3) { - o.adHocVerified = "foo"; - } - buildCounterCommentActorVerification--; - return o; -} - -checkCommentActorVerification(api.CommentActorVerification o) { - buildCounterCommentActorVerification++; - if (buildCounterCommentActorVerification < 3) { - unittest.expect(o.adHocVerified, unittest.equals('foo')); - } - buildCounterCommentActorVerification--; -} - -core.int buildCounterCommentActor = 0; -buildCommentActor() { - var o = new api.CommentActor(); - buildCounterCommentActor++; - if (buildCounterCommentActor < 3) { - o.clientSpecificActorInfo = buildCommentActorClientSpecificActorInfo(); - o.displayName = "foo"; - o.id = "foo"; - o.image = buildCommentActorImage(); - o.url = "foo"; - o.verification = buildCommentActorVerification(); - } - buildCounterCommentActor--; - return o; -} - -checkCommentActor(api.CommentActor o) { - buildCounterCommentActor++; - if (buildCounterCommentActor < 3) { - checkCommentActorClientSpecificActorInfo(o.clientSpecificActorInfo); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkCommentActorImage(o.image); - unittest.expect(o.url, unittest.equals('foo')); - checkCommentActorVerification(o.verification); - } - buildCounterCommentActor--; -} - -core.int buildCounterCommentInReplyTo = 0; -buildCommentInReplyTo() { - var o = new api.CommentInReplyTo(); - buildCounterCommentInReplyTo++; - if (buildCounterCommentInReplyTo < 3) { - o.id = "foo"; - o.url = "foo"; - } - buildCounterCommentInReplyTo--; - return o; -} - -checkCommentInReplyTo(api.CommentInReplyTo o) { - buildCounterCommentInReplyTo++; - if (buildCounterCommentInReplyTo < 3) { - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterCommentInReplyTo--; -} - -buildUnnamed54() { - var o = new core.List<api.CommentInReplyTo>(); - o.add(buildCommentInReplyTo()); - o.add(buildCommentInReplyTo()); - return o; -} - -checkUnnamed54(core.List<api.CommentInReplyTo> o) { - unittest.expect(o, unittest.hasLength(2)); - checkCommentInReplyTo(o[0]); - checkCommentInReplyTo(o[1]); -} - -core.int buildCounterCommentObject = 0; -buildCommentObject() { - var o = new api.CommentObject(); - buildCounterCommentObject++; - if (buildCounterCommentObject < 3) { - o.content = "foo"; - o.objectType = "foo"; - o.originalContent = "foo"; - } - buildCounterCommentObject--; - return o; -} - -checkCommentObject(api.CommentObject o) { - buildCounterCommentObject++; - if (buildCounterCommentObject < 3) { - unittest.expect(o.content, unittest.equals('foo')); - unittest.expect(o.objectType, unittest.equals('foo')); - unittest.expect(o.originalContent, unittest.equals('foo')); - } - buildCounterCommentObject--; -} - -core.int buildCounterCommentPlusoners = 0; -buildCommentPlusoners() { - var o = new api.CommentPlusoners(); - buildCounterCommentPlusoners++; - if (buildCounterCommentPlusoners < 3) { - o.totalItems = 42; - } - buildCounterCommentPlusoners--; - return o; -} - -checkCommentPlusoners(api.CommentPlusoners o) { - buildCounterCommentPlusoners++; - if (buildCounterCommentPlusoners < 3) { - unittest.expect(o.totalItems, unittest.equals(42)); - } - buildCounterCommentPlusoners--; -} - -core.int buildCounterComment = 0; -buildComment() { - var o = new api.Comment(); - buildCounterComment++; - if (buildCounterComment < 3) { - o.actor = buildCommentActor(); - o.etag = "foo"; - o.id = "foo"; - o.inReplyTo = buildUnnamed54(); - o.kind = "foo"; - o.object = buildCommentObject(); - o.plusoners = buildCommentPlusoners(); - o.published = core.DateTime.parse("2002-02-27T14:01:02"); - o.selfLink = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - o.verb = "foo"; - } - buildCounterComment--; - return o; -} - -checkComment(api.Comment o) { - buildCounterComment++; - if (buildCounterComment < 3) { - checkCommentActor(o.actor); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed54(o.inReplyTo); - unittest.expect(o.kind, unittest.equals('foo')); - checkCommentObject(o.object); - checkCommentPlusoners(o.plusoners); - unittest.expect(o.published, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.verb, unittest.equals('foo')); - } - buildCounterComment--; -} - -buildUnnamed55() { - var o = new core.List<api.Comment>(); - o.add(buildComment()); - o.add(buildComment()); - return o; -} - -checkUnnamed55(core.List<api.Comment> o) { - unittest.expect(o, unittest.hasLength(2)); - checkComment(o[0]); - checkComment(o[1]); -} - -core.int buildCounterCommentFeed = 0; -buildCommentFeed() { - var o = new api.CommentFeed(); - buildCounterCommentFeed++; - if (buildCounterCommentFeed < 3) { - o.etag = "foo"; - o.id = "foo"; - o.items = buildUnnamed55(); - o.kind = "foo"; - o.nextLink = "foo"; - o.nextPageToken = "foo"; - o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); - } - buildCounterCommentFeed--; - return o; -} - -checkCommentFeed(api.CommentFeed o) { - buildCounterCommentFeed++; - if (buildCounterCommentFeed < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed55(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextLink, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - } - buildCounterCommentFeed--; -} - -buildUnnamed56() { - var o = new core.List<api.Person>(); - o.add(buildPerson()); - o.add(buildPerson()); - return o; -} - -checkUnnamed56(core.List<api.Person> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPerson(o[0]); - checkPerson(o[1]); -} - -core.int buildCounterPeopleFeed = 0; -buildPeopleFeed() { - var o = new api.PeopleFeed(); - buildCounterPeopleFeed++; - if (buildCounterPeopleFeed < 3) { - o.etag = "foo"; - o.items = buildUnnamed56(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.selfLink = "foo"; - o.title = "foo"; - o.totalItems = 42; - } - buildCounterPeopleFeed--; - return o; -} - -checkPeopleFeed(api.PeopleFeed o) { - buildCounterPeopleFeed++; - if (buildCounterPeopleFeed < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed56(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - unittest.expect(o.selfLink, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.totalItems, unittest.equals(42)); - } - buildCounterPeopleFeed--; -} - -core.int buildCounterPersonAgeRange = 0; -buildPersonAgeRange() { - var o = new api.PersonAgeRange(); - buildCounterPersonAgeRange++; - if (buildCounterPersonAgeRange < 3) { - o.max = 42; - o.min = 42; - } - buildCounterPersonAgeRange--; - return o; -} - -checkPersonAgeRange(api.PersonAgeRange o) { - buildCounterPersonAgeRange++; - if (buildCounterPersonAgeRange < 3) { - unittest.expect(o.max, unittest.equals(42)); - unittest.expect(o.min, unittest.equals(42)); - } - buildCounterPersonAgeRange--; -} - -core.int buildCounterPersonCoverCoverInfo = 0; -buildPersonCoverCoverInfo() { - var o = new api.PersonCoverCoverInfo(); - buildCounterPersonCoverCoverInfo++; - if (buildCounterPersonCoverCoverInfo < 3) { - o.leftImageOffset = 42; - o.topImageOffset = 42; - } - buildCounterPersonCoverCoverInfo--; - return o; -} - -checkPersonCoverCoverInfo(api.PersonCoverCoverInfo o) { - buildCounterPersonCoverCoverInfo++; - if (buildCounterPersonCoverCoverInfo < 3) { - unittest.expect(o.leftImageOffset, unittest.equals(42)); - unittest.expect(o.topImageOffset, unittest.equals(42)); - } - buildCounterPersonCoverCoverInfo--; -} - -core.int buildCounterPersonCoverCoverPhoto = 0; -buildPersonCoverCoverPhoto() { - var o = new api.PersonCoverCoverPhoto(); - buildCounterPersonCoverCoverPhoto++; - if (buildCounterPersonCoverCoverPhoto < 3) { - o.height = 42; - o.url = "foo"; - o.width = 42; - } - buildCounterPersonCoverCoverPhoto--; - return o; -} - -checkPersonCoverCoverPhoto(api.PersonCoverCoverPhoto o) { - buildCounterPersonCoverCoverPhoto++; - if (buildCounterPersonCoverCoverPhoto < 3) { - unittest.expect(o.height, unittest.equals(42)); - unittest.expect(o.url, unittest.equals('foo')); - unittest.expect(o.width, unittest.equals(42)); - } - buildCounterPersonCoverCoverPhoto--; -} - -core.int buildCounterPersonCover = 0; -buildPersonCover() { - var o = new api.PersonCover(); - buildCounterPersonCover++; - if (buildCounterPersonCover < 3) { - o.coverInfo = buildPersonCoverCoverInfo(); - o.coverPhoto = buildPersonCoverCoverPhoto(); - o.layout = "foo"; - } - buildCounterPersonCover--; - return o; -} - -checkPersonCover(api.PersonCover o) { - buildCounterPersonCover++; - if (buildCounterPersonCover < 3) { - checkPersonCoverCoverInfo(o.coverInfo); - checkPersonCoverCoverPhoto(o.coverPhoto); - unittest.expect(o.layout, unittest.equals('foo')); - } - buildCounterPersonCover--; -} - -core.int buildCounterPersonEmails = 0; -buildPersonEmails() { - var o = new api.PersonEmails(); - buildCounterPersonEmails++; - if (buildCounterPersonEmails < 3) { - o.type = "foo"; - o.value = "foo"; - } - buildCounterPersonEmails--; - return o; -} - -checkPersonEmails(api.PersonEmails o) { - buildCounterPersonEmails++; - if (buildCounterPersonEmails < 3) { - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterPersonEmails--; -} - -buildUnnamed57() { - var o = new core.List<api.PersonEmails>(); - o.add(buildPersonEmails()); - o.add(buildPersonEmails()); - return o; -} - -checkUnnamed57(core.List<api.PersonEmails> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPersonEmails(o[0]); - checkPersonEmails(o[1]); -} - -core.int buildCounterPersonImage = 0; -buildPersonImage() { - var o = new api.PersonImage(); - buildCounterPersonImage++; - if (buildCounterPersonImage < 3) { - o.isDefault = true; - o.url = "foo"; - } - buildCounterPersonImage--; - return o; -} - -checkPersonImage(api.PersonImage o) { - buildCounterPersonImage++; - if (buildCounterPersonImage < 3) { - unittest.expect(o.isDefault, unittest.isTrue); - unittest.expect(o.url, unittest.equals('foo')); - } - buildCounterPersonImage--; -} - -core.int buildCounterPersonName = 0; -buildPersonName() { - var o = new api.PersonName(); - buildCounterPersonName++; - if (buildCounterPersonName < 3) { - o.familyName = "foo"; - o.formatted = "foo"; - o.givenName = "foo"; - o.honorificPrefix = "foo"; - o.honorificSuffix = "foo"; - o.middleName = "foo"; - } - buildCounterPersonName--; - return o; -} - -checkPersonName(api.PersonName o) { - buildCounterPersonName++; - if (buildCounterPersonName < 3) { - unittest.expect(o.familyName, unittest.equals('foo')); - unittest.expect(o.formatted, unittest.equals('foo')); - unittest.expect(o.givenName, unittest.equals('foo')); - unittest.expect(o.honorificPrefix, unittest.equals('foo')); - unittest.expect(o.honorificSuffix, unittest.equals('foo')); - unittest.expect(o.middleName, unittest.equals('foo')); - } - buildCounterPersonName--; -} - -core.int buildCounterPersonOrganizations = 0; -buildPersonOrganizations() { - var o = new api.PersonOrganizations(); - buildCounterPersonOrganizations++; - if (buildCounterPersonOrganizations < 3) { - o.department = "foo"; - o.description = "foo"; - o.endDate = "foo"; - o.location = "foo"; - o.name = "foo"; - o.primary = true; - o.startDate = "foo"; - o.title = "foo"; - o.type = "foo"; - } - buildCounterPersonOrganizations--; - return o; -} - -checkPersonOrganizations(api.PersonOrganizations o) { - buildCounterPersonOrganizations++; - if (buildCounterPersonOrganizations < 3) { - unittest.expect(o.department, unittest.equals('foo')); - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.endDate, unittest.equals('foo')); - unittest.expect(o.location, unittest.equals('foo')); - unittest.expect(o.name, unittest.equals('foo')); - unittest.expect(o.primary, unittest.isTrue); - unittest.expect(o.startDate, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterPersonOrganizations--; -} - -buildUnnamed58() { - var o = new core.List<api.PersonOrganizations>(); - o.add(buildPersonOrganizations()); - o.add(buildPersonOrganizations()); - return o; -} - -checkUnnamed58(core.List<api.PersonOrganizations> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPersonOrganizations(o[0]); - checkPersonOrganizations(o[1]); -} - -core.int buildCounterPersonPlacesLived = 0; -buildPersonPlacesLived() { - var o = new api.PersonPlacesLived(); - buildCounterPersonPlacesLived++; - if (buildCounterPersonPlacesLived < 3) { - o.primary = true; - o.value = "foo"; - } - buildCounterPersonPlacesLived--; - return o; -} - -checkPersonPlacesLived(api.PersonPlacesLived o) { - buildCounterPersonPlacesLived++; - if (buildCounterPersonPlacesLived < 3) { - unittest.expect(o.primary, unittest.isTrue); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterPersonPlacesLived--; -} - -buildUnnamed59() { - var o = new core.List<api.PersonPlacesLived>(); - o.add(buildPersonPlacesLived()); - o.add(buildPersonPlacesLived()); - return o; -} - -checkUnnamed59(core.List<api.PersonPlacesLived> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPersonPlacesLived(o[0]); - checkPersonPlacesLived(o[1]); -} - -core.int buildCounterPersonUrls = 0; -buildPersonUrls() { - var o = new api.PersonUrls(); - buildCounterPersonUrls++; - if (buildCounterPersonUrls < 3) { - o.label = "foo"; - o.type = "foo"; - o.value = "foo"; - } - buildCounterPersonUrls--; - return o; -} - -checkPersonUrls(api.PersonUrls o) { - buildCounterPersonUrls++; - if (buildCounterPersonUrls < 3) { - unittest.expect(o.label, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterPersonUrls--; -} - -buildUnnamed60() { - var o = new core.List<api.PersonUrls>(); - o.add(buildPersonUrls()); - o.add(buildPersonUrls()); - return o; -} - -checkUnnamed60(core.List<api.PersonUrls> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPersonUrls(o[0]); - checkPersonUrls(o[1]); -} - -core.int buildCounterPerson = 0; -buildPerson() { - var o = new api.Person(); - buildCounterPerson++; - if (buildCounterPerson < 3) { - o.aboutMe = "foo"; - o.ageRange = buildPersonAgeRange(); - o.birthday = "foo"; - o.braggingRights = "foo"; - o.circledByCount = 42; - o.cover = buildPersonCover(); - o.currentLocation = "foo"; - o.displayName = "foo"; - o.domain = "foo"; - o.emails = buildUnnamed57(); - o.etag = "foo"; - o.gender = "foo"; - o.id = "foo"; - o.image = buildPersonImage(); - o.isPlusUser = true; - o.kind = "foo"; - o.language = "foo"; - o.name = buildPersonName(); - o.nickname = "foo"; - o.objectType = "foo"; - o.occupation = "foo"; - o.organizations = buildUnnamed58(); - o.placesLived = buildUnnamed59(); - o.plusOneCount = 42; - o.relationshipStatus = "foo"; - o.skills = "foo"; - o.tagline = "foo"; - o.url = "foo"; - o.urls = buildUnnamed60(); - o.verified = true; - } - buildCounterPerson--; - return o; -} - -checkPerson(api.Person o) { - buildCounterPerson++; - if (buildCounterPerson < 3) { - unittest.expect(o.aboutMe, unittest.equals('foo')); - checkPersonAgeRange(o.ageRange); - unittest.expect(o.birthday, unittest.equals('foo')); - unittest.expect(o.braggingRights, unittest.equals('foo')); - unittest.expect(o.circledByCount, unittest.equals(42)); - checkPersonCover(o.cover); - unittest.expect(o.currentLocation, unittest.equals('foo')); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.domain, unittest.equals('foo')); - checkUnnamed57(o.emails); - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.gender, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - checkPersonImage(o.image); - unittest.expect(o.isPlusUser, unittest.isTrue); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.language, unittest.equals('foo')); - checkPersonName(o.name); - unittest.expect(o.nickname, unittest.equals('foo')); - unittest.expect(o.objectType, unittest.equals('foo')); - unittest.expect(o.occupation, unittest.equals('foo')); - checkUnnamed58(o.organizations); - checkUnnamed59(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')); - checkUnnamed60(o.urls); - unittest.expect(o.verified, unittest.isTrue); - } - buildCounterPerson--; -} - -core.int buildCounterPlaceAddress = 0; -buildPlaceAddress() { - var o = new api.PlaceAddress(); - buildCounterPlaceAddress++; - if (buildCounterPlaceAddress < 3) { - o.formatted = "foo"; - } - buildCounterPlaceAddress--; - return o; -} - -checkPlaceAddress(api.PlaceAddress o) { - buildCounterPlaceAddress++; - if (buildCounterPlaceAddress < 3) { - unittest.expect(o.formatted, unittest.equals('foo')); - } - buildCounterPlaceAddress--; -} - -core.int buildCounterPlacePosition = 0; -buildPlacePosition() { - var o = new api.PlacePosition(); - buildCounterPlacePosition++; - if (buildCounterPlacePosition < 3) { - o.latitude = 42.0; - o.longitude = 42.0; - } - buildCounterPlacePosition--; - return o; -} - -checkPlacePosition(api.PlacePosition o) { - buildCounterPlacePosition++; - if (buildCounterPlacePosition < 3) { - unittest.expect(o.latitude, unittest.equals(42.0)); - unittest.expect(o.longitude, unittest.equals(42.0)); - } - buildCounterPlacePosition--; -} - -core.int buildCounterPlace = 0; -buildPlace() { - var o = new api.Place(); - buildCounterPlace++; - if (buildCounterPlace < 3) { - o.address = buildPlaceAddress(); - o.displayName = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.position = buildPlacePosition(); - } - buildCounterPlace--; - return o; -} - -checkPlace(api.Place o) { - buildCounterPlace++; - if (buildCounterPlace < 3) { - checkPlaceAddress(o.address); - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkPlacePosition(o.position); - } - buildCounterPlace--; -} - -core.int buildCounterPlusAclentryResource = 0; -buildPlusAclentryResource() { - var o = new api.PlusAclentryResource(); - buildCounterPlusAclentryResource++; - if (buildCounterPlusAclentryResource < 3) { - o.displayName = "foo"; - o.id = "foo"; - o.type = "foo"; - } - buildCounterPlusAclentryResource--; - return o; -} - -checkPlusAclentryResource(api.PlusAclentryResource o) { - buildCounterPlusAclentryResource++; - if (buildCounterPlusAclentryResource < 3) { - unittest.expect(o.displayName, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterPlusAclentryResource--; -} - -main() { - unittest.group("obj-schema-Acl", () { - unittest.test("to-json--from-json", () { - var o = buildAcl(); - var od = new api.Acl.fromJson(o.toJson()); - checkAcl(od); - }); - }); - - unittest.group( - "obj-schema-ActivityActorClientSpecificActorInfoYoutubeActorInfo", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActorClientSpecificActorInfoYoutubeActorInfo(); - var od = - new api.ActivityActorClientSpecificActorInfoYoutubeActorInfo.fromJson( - o.toJson()); - checkActivityActorClientSpecificActorInfoYoutubeActorInfo(od); - }); - }); - - unittest.group("obj-schema-ActivityActorClientSpecificActorInfo", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActorClientSpecificActorInfo(); - var od = - new api.ActivityActorClientSpecificActorInfo.fromJson(o.toJson()); - checkActivityActorClientSpecificActorInfo(od); - }); - }); - - unittest.group("obj-schema-ActivityActorImage", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActorImage(); - var od = new api.ActivityActorImage.fromJson(o.toJson()); - checkActivityActorImage(od); - }); - }); - - unittest.group("obj-schema-ActivityActorName", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActorName(); - var od = new api.ActivityActorName.fromJson(o.toJson()); - checkActivityActorName(od); - }); - }); - - unittest.group("obj-schema-ActivityActorVerification", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActorVerification(); - var od = new api.ActivityActorVerification.fromJson(o.toJson()); - checkActivityActorVerification(od); - }); - }); - - unittest.group("obj-schema-ActivityActor", () { - unittest.test("to-json--from-json", () { - var o = buildActivityActor(); - var od = new api.ActivityActor.fromJson(o.toJson()); - checkActivityActor(od); - }); - }); - - unittest.group( - "obj-schema-ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo", - () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(); - var od = new api - .ActivityObjectActorClientSpecificActorInfoYoutubeActorInfo.fromJson( - o.toJson()); - checkActivityObjectActorClientSpecificActorInfoYoutubeActorInfo(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectActorClientSpecificActorInfo", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectActorClientSpecificActorInfo(); - var od = new api.ActivityObjectActorClientSpecificActorInfo.fromJson( - o.toJson()); - checkActivityObjectActorClientSpecificActorInfo(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectActorImage", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectActorImage(); - var od = new api.ActivityObjectActorImage.fromJson(o.toJson()); - checkActivityObjectActorImage(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectActorVerification", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectActorVerification(); - var od = new api.ActivityObjectActorVerification.fromJson(o.toJson()); - checkActivityObjectActorVerification(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectActor", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectActor(); - var od = new api.ActivityObjectActor.fromJson(o.toJson()); - checkActivityObjectActor(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachmentsEmbed", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachmentsEmbed(); - var od = new api.ActivityObjectAttachmentsEmbed.fromJson(o.toJson()); - checkActivityObjectAttachmentsEmbed(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachmentsFullImage", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachmentsFullImage(); - var od = new api.ActivityObjectAttachmentsFullImage.fromJson(o.toJson()); - checkActivityObjectAttachmentsFullImage(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachmentsImage", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachmentsImage(); - var od = new api.ActivityObjectAttachmentsImage.fromJson(o.toJson()); - checkActivityObjectAttachmentsImage(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachmentsThumbnailsImage", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachmentsThumbnailsImage(); - var od = - new api.ActivityObjectAttachmentsThumbnailsImage.fromJson(o.toJson()); - checkActivityObjectAttachmentsThumbnailsImage(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachmentsThumbnails", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachmentsThumbnails(); - var od = new api.ActivityObjectAttachmentsThumbnails.fromJson(o.toJson()); - checkActivityObjectAttachmentsThumbnails(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectAttachments", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectAttachments(); - var od = new api.ActivityObjectAttachments.fromJson(o.toJson()); - checkActivityObjectAttachments(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectPlusoners", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectPlusoners(); - var od = new api.ActivityObjectPlusoners.fromJson(o.toJson()); - checkActivityObjectPlusoners(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectReplies", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectReplies(); - var od = new api.ActivityObjectReplies.fromJson(o.toJson()); - checkActivityObjectReplies(od); - }); - }); - - unittest.group("obj-schema-ActivityObjectResharers", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObjectResharers(); - var od = new api.ActivityObjectResharers.fromJson(o.toJson()); - checkActivityObjectResharers(od); - }); - }); - - unittest.group("obj-schema-ActivityObject", () { - unittest.test("to-json--from-json", () { - var o = buildActivityObject(); - var od = new api.ActivityObject.fromJson(o.toJson()); - checkActivityObject(od); - }); - }); - - unittest.group("obj-schema-ActivityProvider", () { - unittest.test("to-json--from-json", () { - var o = buildActivityProvider(); - var od = new api.ActivityProvider.fromJson(o.toJson()); - checkActivityProvider(od); - }); - }); - - unittest.group("obj-schema-Activity", () { - unittest.test("to-json--from-json", () { - var o = buildActivity(); - var od = new api.Activity.fromJson(o.toJson()); - checkActivity(od); - }); - }); - - unittest.group("obj-schema-ActivityFeed", () { - unittest.test("to-json--from-json", () { - var o = buildActivityFeed(); - var od = new api.ActivityFeed.fromJson(o.toJson()); - checkActivityFeed(od); - }); - }); - - unittest.group( - "obj-schema-CommentActorClientSpecificActorInfoYoutubeActorInfo", () { - unittest.test("to-json--from-json", () { - var o = buildCommentActorClientSpecificActorInfoYoutubeActorInfo(); - var od = - new api.CommentActorClientSpecificActorInfoYoutubeActorInfo.fromJson( - o.toJson()); - checkCommentActorClientSpecificActorInfoYoutubeActorInfo(od); - }); - }); - - unittest.group("obj-schema-CommentActorClientSpecificActorInfo", () { - unittest.test("to-json--from-json", () { - var o = buildCommentActorClientSpecificActorInfo(); - var od = new api.CommentActorClientSpecificActorInfo.fromJson(o.toJson()); - checkCommentActorClientSpecificActorInfo(od); - }); - }); - - unittest.group("obj-schema-CommentActorImage", () { - unittest.test("to-json--from-json", () { - var o = buildCommentActorImage(); - var od = new api.CommentActorImage.fromJson(o.toJson()); - checkCommentActorImage(od); - }); - }); - - unittest.group("obj-schema-CommentActorVerification", () { - unittest.test("to-json--from-json", () { - var o = buildCommentActorVerification(); - var od = new api.CommentActorVerification.fromJson(o.toJson()); - checkCommentActorVerification(od); - }); - }); - - unittest.group("obj-schema-CommentActor", () { - unittest.test("to-json--from-json", () { - var o = buildCommentActor(); - var od = new api.CommentActor.fromJson(o.toJson()); - checkCommentActor(od); - }); - }); - - unittest.group("obj-schema-CommentInReplyTo", () { - unittest.test("to-json--from-json", () { - var o = buildCommentInReplyTo(); - var od = new api.CommentInReplyTo.fromJson(o.toJson()); - checkCommentInReplyTo(od); - }); - }); - - unittest.group("obj-schema-CommentObject", () { - unittest.test("to-json--from-json", () { - var o = buildCommentObject(); - var od = new api.CommentObject.fromJson(o.toJson()); - checkCommentObject(od); - }); - }); - - unittest.group("obj-schema-CommentPlusoners", () { - unittest.test("to-json--from-json", () { - var o = buildCommentPlusoners(); - var od = new api.CommentPlusoners.fromJson(o.toJson()); - checkCommentPlusoners(od); - }); - }); - - unittest.group("obj-schema-Comment", () { - unittest.test("to-json--from-json", () { - var o = buildComment(); - var od = new api.Comment.fromJson(o.toJson()); - checkComment(od); - }); - }); - - unittest.group("obj-schema-CommentFeed", () { - unittest.test("to-json--from-json", () { - var o = buildCommentFeed(); - var od = new api.CommentFeed.fromJson(o.toJson()); - checkCommentFeed(od); - }); - }); - - unittest.group("obj-schema-PeopleFeed", () { - unittest.test("to-json--from-json", () { - var o = buildPeopleFeed(); - var od = new api.PeopleFeed.fromJson(o.toJson()); - checkPeopleFeed(od); - }); - }); - - unittest.group("obj-schema-PersonAgeRange", () { - unittest.test("to-json--from-json", () { - var o = buildPersonAgeRange(); - var od = new api.PersonAgeRange.fromJson(o.toJson()); - checkPersonAgeRange(od); - }); - }); - - unittest.group("obj-schema-PersonCoverCoverInfo", () { - unittest.test("to-json--from-json", () { - var o = buildPersonCoverCoverInfo(); - var od = new api.PersonCoverCoverInfo.fromJson(o.toJson()); - checkPersonCoverCoverInfo(od); - }); - }); - - unittest.group("obj-schema-PersonCoverCoverPhoto", () { - unittest.test("to-json--from-json", () { - var o = buildPersonCoverCoverPhoto(); - var od = new api.PersonCoverCoverPhoto.fromJson(o.toJson()); - checkPersonCoverCoverPhoto(od); - }); - }); - - unittest.group("obj-schema-PersonCover", () { - unittest.test("to-json--from-json", () { - var o = buildPersonCover(); - var od = new api.PersonCover.fromJson(o.toJson()); - checkPersonCover(od); - }); - }); - - unittest.group("obj-schema-PersonEmails", () { - unittest.test("to-json--from-json", () { - var o = buildPersonEmails(); - var od = new api.PersonEmails.fromJson(o.toJson()); - checkPersonEmails(od); - }); - }); - - unittest.group("obj-schema-PersonImage", () { - unittest.test("to-json--from-json", () { - var o = buildPersonImage(); - var od = new api.PersonImage.fromJson(o.toJson()); - checkPersonImage(od); - }); - }); - - unittest.group("obj-schema-PersonName", () { - unittest.test("to-json--from-json", () { - var o = buildPersonName(); - var od = new api.PersonName.fromJson(o.toJson()); - checkPersonName(od); - }); - }); - - unittest.group("obj-schema-PersonOrganizations", () { - unittest.test("to-json--from-json", () { - var o = buildPersonOrganizations(); - var od = new api.PersonOrganizations.fromJson(o.toJson()); - checkPersonOrganizations(od); - }); - }); - - unittest.group("obj-schema-PersonPlacesLived", () { - unittest.test("to-json--from-json", () { - var o = buildPersonPlacesLived(); - var od = new api.PersonPlacesLived.fromJson(o.toJson()); - checkPersonPlacesLived(od); - }); - }); - - unittest.group("obj-schema-PersonUrls", () { - unittest.test("to-json--from-json", () { - var o = buildPersonUrls(); - var od = new api.PersonUrls.fromJson(o.toJson()); - checkPersonUrls(od); - }); - }); - - unittest.group("obj-schema-Person", () { - unittest.test("to-json--from-json", () { - var o = buildPerson(); - var od = new api.Person.fromJson(o.toJson()); - checkPerson(od); - }); - }); - - unittest.group("obj-schema-PlaceAddress", () { - unittest.test("to-json--from-json", () { - var o = buildPlaceAddress(); - var od = new api.PlaceAddress.fromJson(o.toJson()); - checkPlaceAddress(od); - }); - }); - - unittest.group("obj-schema-PlacePosition", () { - unittest.test("to-json--from-json", () { - var o = buildPlacePosition(); - var od = new api.PlacePosition.fromJson(o.toJson()); - checkPlacePosition(od); - }); - }); - - unittest.group("obj-schema-Place", () { - unittest.test("to-json--from-json", () { - var o = buildPlace(); - var od = new api.Place.fromJson(o.toJson()); - checkPlace(od); - }); - }); - - unittest.group("obj-schema-PlusAclentryResource", () { - unittest.test("to-json--from-json", () { - var o = buildPlusAclentryResource(); - var od = new api.PlusAclentryResource.fromJson(o.toJson()); - checkPlusAclentryResource(od); - }); - }); - - unittest.group("resource-ActivitiesResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; - var arg_activityId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("activities/")); - pathOffset += 11; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_activityId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildActivity()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_activityId, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkActivity(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; - var arg_userId = "foo"; - var arg_collection = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("people/")); - pathOffset += 7; - index = path.indexOf("/activities/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_userId")); - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("/activities/")); - pathOffset += 12; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_collection")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildActivityFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_userId, arg_collection, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkActivityFeed(response); - }))); - }); - - unittest.test("method--search", () { - var mock = new HttpServerMock(); - api.ActivitiesResourceApi res = new api.PlusApi(mock).activities; - var arg_query = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("activities")); - pathOffset += 10; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["query"].first, unittest.equals(arg_query)); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); - 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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildActivityFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .search(arg_query, - language: arg_language, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkActivityFeed(response); - }))); - }); - }); - - unittest.group("resource-CommentsResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.CommentsResourceApi res = new api.PlusApi(mock).comments; - var arg_commentId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("comments/")); - pathOffset += 9; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_commentId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildComment()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_commentId, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkComment(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.CommentsResourceApi res = new api.PlusApi(mock).comments; - var arg_activityId = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_sortOrder = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("activities/")); - pathOffset += 11; - index = path.indexOf("/comments", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_activityId")); - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("/comments")); - pathOffset += 9; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildCommentFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_activityId, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - sortOrder: arg_sortOrder, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkCommentFeed(response); - }))); - }); - }); - - unittest.group("resource-PeopleResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.PeopleResourceApi res = new api.PlusApi(mock).people; - var arg_userId = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("people/")); - pathOffset += 7; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_userId")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildPerson()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_userId, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPerson(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.PeopleResourceApi res = new api.PlusApi(mock).people; - var arg_userId = "foo"; - var arg_collection = "foo"; - var arg_maxResults = 42; - var arg_orderBy = "foo"; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("people/")); - pathOffset += 7; - index = path.indexOf("/people/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_userId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/people/")); - pathOffset += 8; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_collection")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildPeopleFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_userId, arg_collection, - maxResults: arg_maxResults, - orderBy: arg_orderBy, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPeopleFeed(response); - }))); - }); - - unittest.test("method--listByActivity", () { - var mock = new HttpServerMock(); - api.PeopleResourceApi res = new api.PlusApi(mock).people; - var arg_activityId = "foo"; - var arg_collection = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("activities/")); - pathOffset += 11; - index = path.indexOf("/people/", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_activityId")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("/people/")); - pathOffset += 8; - subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); - pathOffset = path.length; - unittest.expect(subPart, unittest.equals("$arg_collection")); - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildPeopleFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .listByActivity(arg_activityId, arg_collection, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPeopleFeed(response); - }))); - }); - - unittest.test("method--search", () { - var mock = new HttpServerMock(); - api.PeopleResourceApi res = new api.PlusApi(mock).people; - var arg_query = "foo"; - var arg_language = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("plus/v1/")); - pathOffset += 8; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("people")); - pathOffset += 6; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["query"].first, unittest.equals(arg_query)); - unittest.expect( - queryMap["language"].first, unittest.equals(arg_language)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildPeopleFeed()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .search(arg_query, - language: arg_language, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkPeopleFeed(response); - }))); - }); - }); -}
diff --git a/generated/googleapis/test/policytroubleshooter/v1_test.dart b/generated/googleapis/test/policytroubleshooter/v1_test.dart index 3fe122e..504e489 100644 --- a/generated/googleapis/test/policytroubleshooter/v1_test.dart +++ b/generated/googleapis/test/policytroubleshooter/v1_test.dart
@@ -74,7 +74,7 @@ buildCounterGoogleCloudPolicytroubleshooterV1AccessTuple--; } -buildUnnamed4692() { +buildUnnamed5021() { var o = new core.Map<core.String, api.GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership>(); o["x"] = @@ -84,7 +84,7 @@ return o; } -checkUnnamed4692( +checkUnnamed5021( core.Map<core.String, api.GoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership> o) { @@ -102,7 +102,7 @@ if (buildCounterGoogleCloudPolicytroubleshooterV1BindingExplanation < 3) { o.access = "foo"; o.condition = buildGoogleTypeExpr(); - o.memberships = buildUnnamed4692(); + o.memberships = buildUnnamed5021(); o.relevance = "foo"; o.role = "foo"; o.rolePermission = "foo"; @@ -118,7 +118,7 @@ if (buildCounterGoogleCloudPolicytroubleshooterV1BindingExplanation < 3) { unittest.expect(o.access, unittest.equals('foo')); checkGoogleTypeExpr(o.condition); - checkUnnamed4692(o.memberships); + checkUnnamed5021(o.memberships); unittest.expect(o.relevance, unittest.equals('foo')); unittest.expect(o.role, unittest.equals('foo')); unittest.expect(o.rolePermission, unittest.equals('foo')); @@ -155,7 +155,7 @@ buildCounterGoogleCloudPolicytroubleshooterV1BindingExplanationAnnotatedMembership--; } -buildUnnamed4693() { +buildUnnamed5022() { var o = new core.List<api.GoogleCloudPolicytroubleshooterV1BindingExplanation>(); o.add(buildGoogleCloudPolicytroubleshooterV1BindingExplanation()); @@ -163,7 +163,7 @@ return o; } -checkUnnamed4693( +checkUnnamed5022( core.List<api.GoogleCloudPolicytroubleshooterV1BindingExplanation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudPolicytroubleshooterV1BindingExplanation(o[0]); @@ -176,7 +176,7 @@ buildCounterGoogleCloudPolicytroubleshooterV1ExplainedPolicy++; if (buildCounterGoogleCloudPolicytroubleshooterV1ExplainedPolicy < 3) { o.access = "foo"; - o.bindingExplanations = buildUnnamed4693(); + o.bindingExplanations = buildUnnamed5022(); o.fullResourceName = "foo"; o.policy = buildGoogleIamV1Policy(); o.relevance = "foo"; @@ -190,7 +190,7 @@ buildCounterGoogleCloudPolicytroubleshooterV1ExplainedPolicy++; if (buildCounterGoogleCloudPolicytroubleshooterV1ExplainedPolicy < 3) { unittest.expect(o.access, unittest.equals('foo')); - checkUnnamed4693(o.bindingExplanations); + checkUnnamed5022(o.bindingExplanations); unittest.expect(o.fullResourceName, unittest.equals('foo')); checkGoogleIamV1Policy(o.policy); unittest.expect(o.relevance, unittest.equals('foo')); @@ -223,14 +223,14 @@ buildCounterGoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest--; } -buildUnnamed4694() { +buildUnnamed5023() { var o = new core.List<api.GoogleCloudPolicytroubleshooterV1ExplainedPolicy>(); o.add(buildGoogleCloudPolicytroubleshooterV1ExplainedPolicy()); o.add(buildGoogleCloudPolicytroubleshooterV1ExplainedPolicy()); return o; } -checkUnnamed4694( +checkUnnamed5023( core.List<api.GoogleCloudPolicytroubleshooterV1ExplainedPolicy> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudPolicytroubleshooterV1ExplainedPolicy(o[0]); @@ -247,7 +247,7 @@ if (buildCounterGoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse < 3) { o.access = "foo"; - o.explainedPolicies = buildUnnamed4694(); + o.explainedPolicies = buildUnnamed5023(); } buildCounterGoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse--; return o; @@ -259,19 +259,19 @@ if (buildCounterGoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse < 3) { unittest.expect(o.access, unittest.equals('foo')); - checkUnnamed4694(o.explainedPolicies); + checkUnnamed5023(o.explainedPolicies); } buildCounterGoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse--; } -buildUnnamed4695() { +buildUnnamed5024() { var o = new core.List<api.GoogleIamV1AuditLogConfig>(); o.add(buildGoogleIamV1AuditLogConfig()); o.add(buildGoogleIamV1AuditLogConfig()); return o; } -checkUnnamed4695(core.List<api.GoogleIamV1AuditLogConfig> o) { +checkUnnamed5024(core.List<api.GoogleIamV1AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditLogConfig(o[0]); checkGoogleIamV1AuditLogConfig(o[1]); @@ -282,7 +282,7 @@ var o = new api.GoogleIamV1AuditConfig(); buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - o.auditLogConfigs = buildUnnamed4695(); + o.auditLogConfigs = buildUnnamed5024(); o.service = "foo"; } buildCounterGoogleIamV1AuditConfig--; @@ -292,20 +292,20 @@ checkGoogleIamV1AuditConfig(api.GoogleIamV1AuditConfig o) { buildCounterGoogleIamV1AuditConfig++; if (buildCounterGoogleIamV1AuditConfig < 3) { - checkUnnamed4695(o.auditLogConfigs); + checkUnnamed5024(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterGoogleIamV1AuditConfig--; } -buildUnnamed4696() { +buildUnnamed5025() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4696(core.List<core.String> o) { +checkUnnamed5025(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -316,7 +316,7 @@ var o = new api.GoogleIamV1AuditLogConfig(); buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed4696(); + o.exemptedMembers = buildUnnamed5025(); o.logType = "foo"; } buildCounterGoogleIamV1AuditLogConfig--; @@ -326,20 +326,20 @@ checkGoogleIamV1AuditLogConfig(api.GoogleIamV1AuditLogConfig o) { buildCounterGoogleIamV1AuditLogConfig++; if (buildCounterGoogleIamV1AuditLogConfig < 3) { - checkUnnamed4696(o.exemptedMembers); + checkUnnamed5025(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterGoogleIamV1AuditLogConfig--; } -buildUnnamed4697() { +buildUnnamed5026() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4697(core.List<core.String> o) { +checkUnnamed5026(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -351,7 +351,7 @@ buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { o.condition = buildGoogleTypeExpr(); - o.members = buildUnnamed4697(); + o.members = buildUnnamed5026(); o.role = "foo"; } buildCounterGoogleIamV1Binding--; @@ -362,33 +362,33 @@ buildCounterGoogleIamV1Binding++; if (buildCounterGoogleIamV1Binding < 3) { checkGoogleTypeExpr(o.condition); - checkUnnamed4697(o.members); + checkUnnamed5026(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterGoogleIamV1Binding--; } -buildUnnamed4698() { +buildUnnamed5027() { var o = new core.List<api.GoogleIamV1AuditConfig>(); o.add(buildGoogleIamV1AuditConfig()); o.add(buildGoogleIamV1AuditConfig()); return o; } -checkUnnamed4698(core.List<api.GoogleIamV1AuditConfig> o) { +checkUnnamed5027(core.List<api.GoogleIamV1AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1AuditConfig(o[0]); checkGoogleIamV1AuditConfig(o[1]); } -buildUnnamed4699() { +buildUnnamed5028() { var o = new core.List<api.GoogleIamV1Binding>(); o.add(buildGoogleIamV1Binding()); o.add(buildGoogleIamV1Binding()); return o; } -checkUnnamed4699(core.List<api.GoogleIamV1Binding> o) { +checkUnnamed5028(core.List<api.GoogleIamV1Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleIamV1Binding(o[0]); checkGoogleIamV1Binding(o[1]); @@ -399,8 +399,8 @@ var o = new api.GoogleIamV1Policy(); buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - o.auditConfigs = buildUnnamed4698(); - o.bindings = buildUnnamed4699(); + o.auditConfigs = buildUnnamed5027(); + o.bindings = buildUnnamed5028(); o.etag = "foo"; o.version = 42; } @@ -411,8 +411,8 @@ checkGoogleIamV1Policy(api.GoogleIamV1Policy o) { buildCounterGoogleIamV1Policy++; if (buildCounterGoogleIamV1Policy < 3) { - checkUnnamed4698(o.auditConfigs); - checkUnnamed4699(o.bindings); + checkUnnamed5027(o.auditConfigs); + checkUnnamed5028(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); }
diff --git a/generated/googleapis/test/poly/v1_test.dart b/generated/googleapis/test/poly/v1_test.dart index b85e561..3c60a9c 100644 --- a/generated/googleapis/test/poly/v1_test.dart +++ b/generated/googleapis/test/poly/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1632() { +buildUnnamed1680() { var o = new core.List<api.Format>(); o.add(buildFormat()); o.add(buildFormat()); return o; } -checkUnnamed1632(core.List<api.Format> o) { +checkUnnamed1680(core.List<api.Format> o) { unittest.expect(o, unittest.hasLength(2)); checkFormat(o[0]); checkFormat(o[1]); @@ -72,7 +72,7 @@ o.createTime = "foo"; o.description = "foo"; o.displayName = "foo"; - o.formats = buildUnnamed1632(); + o.formats = buildUnnamed1680(); o.isCurated = true; o.license = "foo"; o.metadata = "foo"; @@ -94,7 +94,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1632(o.formats); + checkUnnamed1680(o.formats); unittest.expect(o.isCurated, unittest.isTrue); unittest.expect(o.license, unittest.equals('foo')); unittest.expect(o.metadata, unittest.equals('foo')); @@ -156,14 +156,14 @@ buildCounterFile--; } -buildUnnamed1633() { +buildUnnamed1681() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1633(core.List<api.File> o) { +checkUnnamed1681(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -176,7 +176,7 @@ if (buildCounterFormat < 3) { o.formatComplexity = buildFormatComplexity(); o.formatType = "foo"; - o.resources = buildUnnamed1633(); + o.resources = buildUnnamed1681(); o.root = buildFile(); } buildCounterFormat--; @@ -188,7 +188,7 @@ if (buildCounterFormat < 3) { checkFormatComplexity(o.formatComplexity); unittest.expect(o.formatType, unittest.equals('foo')); - checkUnnamed1633(o.resources); + checkUnnamed1681(o.resources); checkFile(o.root); } buildCounterFormat--; @@ -236,14 +236,14 @@ buildCounterImageError--; } -buildUnnamed1634() { +buildUnnamed1682() { var o = new core.List<api.Asset>(); o.add(buildAsset()); o.add(buildAsset()); return o; } -checkUnnamed1634(core.List<api.Asset> o) { +checkUnnamed1682(core.List<api.Asset> o) { unittest.expect(o, unittest.hasLength(2)); checkAsset(o[0]); checkAsset(o[1]); @@ -254,7 +254,7 @@ var o = new api.ListAssetsResponse(); buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - o.assets = buildUnnamed1634(); + o.assets = buildUnnamed1682(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -265,21 +265,21 @@ checkListAssetsResponse(api.ListAssetsResponse o) { buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - checkUnnamed1634(o.assets); + checkUnnamed1682(o.assets); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListAssetsResponse--; } -buildUnnamed1635() { +buildUnnamed1683() { var o = new core.List<api.Asset>(); o.add(buildAsset()); o.add(buildAsset()); return o; } -checkUnnamed1635(core.List<api.Asset> o) { +checkUnnamed1683(core.List<api.Asset> o) { unittest.expect(o, unittest.hasLength(2)); checkAsset(o[0]); checkAsset(o[1]); @@ -290,7 +290,7 @@ var o = new api.ListLikedAssetsResponse(); buildCounterListLikedAssetsResponse++; if (buildCounterListLikedAssetsResponse < 3) { - o.assets = buildUnnamed1635(); + o.assets = buildUnnamed1683(); o.nextPageToken = "foo"; o.totalSize = 42; } @@ -301,21 +301,21 @@ checkListLikedAssetsResponse(api.ListLikedAssetsResponse o) { buildCounterListLikedAssetsResponse++; if (buildCounterListLikedAssetsResponse < 3) { - checkUnnamed1635(o.assets); + checkUnnamed1683(o.assets); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListLikedAssetsResponse--; } -buildUnnamed1636() { +buildUnnamed1684() { var o = new core.List<api.UserAsset>(); o.add(buildUserAsset()); o.add(buildUserAsset()); return o; } -checkUnnamed1636(core.List<api.UserAsset> o) { +checkUnnamed1684(core.List<api.UserAsset> o) { unittest.expect(o, unittest.hasLength(2)); checkUserAsset(o[0]); checkUserAsset(o[1]); @@ -328,7 +328,7 @@ if (buildCounterListUserAssetsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.userAssets = buildUnnamed1636(); + o.userAssets = buildUnnamed1684(); } buildCounterListUserAssetsResponse--; return o; @@ -339,7 +339,7 @@ if (buildCounterListUserAssetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed1636(o.userAssets); + checkUnnamed1684(o.userAssets); } buildCounterListUserAssetsResponse--; } @@ -421,14 +421,14 @@ buildCounterQuaternion--; } -buildUnnamed1637() { +buildUnnamed1685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1637(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')); @@ -439,7 +439,7 @@ var o = new api.RemixInfo(); buildCounterRemixInfo++; if (buildCounterRemixInfo < 3) { - o.sourceAsset = buildUnnamed1637(); + o.sourceAsset = buildUnnamed1685(); } buildCounterRemixInfo--; return o; @@ -448,19 +448,19 @@ checkRemixInfo(api.RemixInfo o) { buildCounterRemixInfo++; if (buildCounterRemixInfo < 3) { - checkUnnamed1637(o.sourceAsset); + checkUnnamed1685(o.sourceAsset); } buildCounterRemixInfo--; } -buildUnnamed1638() { +buildUnnamed1686() { var o = new core.List<api.AssetImportMessage>(); o.add(buildAssetImportMessage()); o.add(buildAssetImportMessage()); return o; } -checkUnnamed1638(core.List<api.AssetImportMessage> o) { +checkUnnamed1686(core.List<api.AssetImportMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkAssetImportMessage(o[0]); checkAssetImportMessage(o[1]); @@ -473,7 +473,7 @@ if (buildCounterStartAssetImportResponse < 3) { o.assetId = "foo"; o.assetImportId = "foo"; - o.assetImportMessages = buildUnnamed1638(); + o.assetImportMessages = buildUnnamed1686(); o.publishUrl = "foo"; } buildCounterStartAssetImportResponse--; @@ -485,7 +485,7 @@ if (buildCounterStartAssetImportResponse < 3) { unittest.expect(o.assetId, unittest.equals('foo')); unittest.expect(o.assetImportId, unittest.equals('foo')); - checkUnnamed1638(o.assetImportMessages); + checkUnnamed1686(o.assetImportMessages); unittest.expect(o.publishUrl, unittest.equals('foo')); } buildCounterStartAssetImportResponse--; @@ -686,14 +686,14 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.AssetsResourceApi res = new api.PolyApi(mock).assets; - var arg_maxComplexity = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; - var arg_keywords = "foo"; - var arg_orderBy = "foo"; var arg_format = "foo"; - var arg_curated = true; var arg_category = "foo"; + var arg_pageToken = "foo"; + var arg_maxComplexity = "foo"; + var arg_curated = true; + var arg_keywords = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -725,21 +725,21 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); + unittest.expect( + queryMap["category"].first, unittest.equals(arg_category)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["maxComplexity"].first, unittest.equals(arg_maxComplexity)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["curated"].first, unittest.equals("$arg_curated")); + unittest.expect( + queryMap["keywords"].first, unittest.equals(arg_keywords)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["keywords"].first, unittest.equals(arg_keywords)); - unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); - unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); - unittest.expect( - queryMap["curated"].first, unittest.equals("$arg_curated")); - unittest.expect( - queryMap["category"].first, unittest.equals(arg_category)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -750,14 +750,14 @@ }), true); res .list( - maxComplexity: arg_maxComplexity, - pageToken: arg_pageToken, - pageSize: arg_pageSize, - keywords: arg_keywords, - orderBy: arg_orderBy, format: arg_format, - curated: arg_curated, category: arg_category, + pageToken: arg_pageToken, + maxComplexity: arg_maxComplexity, + curated: arg_curated, + keywords: arg_keywords, + pageSize: arg_pageSize, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAssetsResponse(response); @@ -770,11 +770,11 @@ var mock = new HttpServerMock(); api.UsersAssetsResourceApi res = new api.PolyApi(mock).users.assets; var arg_name = "foo"; - var arg_orderBy = "foo"; - var arg_format = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; + var arg_format = "foo"; var arg_visibility = "foo"; + var arg_pageSize = 42; + var arg_orderBy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -808,14 +808,14 @@ } } unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["visibility"].first, unittest.equals(arg_visibility)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( - queryMap["visibility"].first, unittest.equals(arg_visibility)); + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -826,11 +826,11 @@ }), true); res .list(arg_name, - orderBy: arg_orderBy, - format: arg_format, pageToken: arg_pageToken, - pageSize: arg_pageSize, + format: arg_format, visibility: arg_visibility, + pageSize: arg_pageSize, + orderBy: arg_orderBy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUserAssetsResponse(response); @@ -844,10 +844,10 @@ api.UsersLikedassetsResourceApi res = new api.PolyApi(mock).users.likedassets; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_orderBy = "foo"; var arg_format = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -881,12 +881,12 @@ } } unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(queryMap["format"].first, unittest.equals(arg_format)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -897,10 +897,10 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, orderBy: arg_orderBy, format: arg_format, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLikedAssetsResponse(response);
diff --git a/generated/googleapis/test/pubsub/v1_test.dart b/generated/googleapis/test/pubsub/v1_test.dart index acf3802..c02a6f9 100644 --- a/generated/googleapis/test/pubsub/v1_test.dart +++ b/generated/googleapis/test/pubsub/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3338() { +buildUnnamed3500() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3338(core.List<core.String> o) { +checkUnnamed3500(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AcknowledgeRequest(); buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - o.ackIds = buildUnnamed3338(); + o.ackIds = buildUnnamed3500(); } buildCounterAcknowledgeRequest--; return o; @@ -77,19 +77,19 @@ checkAcknowledgeRequest(api.AcknowledgeRequest o) { buildCounterAcknowledgeRequest++; if (buildCounterAcknowledgeRequest < 3) { - checkUnnamed3338(o.ackIds); + checkUnnamed3500(o.ackIds); } buildCounterAcknowledgeRequest--; } -buildUnnamed3339() { +buildUnnamed3501() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3339(core.List<core.String> o) { +checkUnnamed3501(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -100,8 +100,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed3339(); + o.members = buildUnnamed3501(); o.role = "foo"; } buildCounterBinding--; @@ -111,21 +112,22 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed3339(o.members); + checkUnnamed3501(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed3340() { +buildUnnamed3502() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3340(core.Map<core.String, core.String> o) { +checkUnnamed3502(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')); @@ -136,7 +138,7 @@ var o = new api.CreateSnapshotRequest(); buildCounterCreateSnapshotRequest++; if (buildCounterCreateSnapshotRequest < 3) { - o.labels = buildUnnamed3340(); + o.labels = buildUnnamed3502(); o.subscription = "foo"; } buildCounterCreateSnapshotRequest--; @@ -146,7 +148,7 @@ checkCreateSnapshotRequest(api.CreateSnapshotRequest o) { buildCounterCreateSnapshotRequest++; if (buildCounterCreateSnapshotRequest < 3) { - checkUnnamed3340(o.labels); + checkUnnamed3502(o.labels); unittest.expect(o.subscription, unittest.equals('foo')); } buildCounterCreateSnapshotRequest--; @@ -173,6 +175,21 @@ buildCounterDeadLetterPolicy--; } +core.int buildCounterDetachSubscriptionResponse = 0; +buildDetachSubscriptionResponse() { + var o = new api.DetachSubscriptionResponse(); + buildCounterDetachSubscriptionResponse++; + if (buildCounterDetachSubscriptionResponse < 3) {} + buildCounterDetachSubscriptionResponse--; + return o; +} + +checkDetachSubscriptionResponse(api.DetachSubscriptionResponse o) { + buildCounterDetachSubscriptionResponse++; + if (buildCounterDetachSubscriptionResponse < 3) {} + buildCounterDetachSubscriptionResponse--; +} + core.int buildCounterEmpty = 0; buildEmpty() { var o = new api.Empty(); @@ -232,14 +249,14 @@ buildCounterExpr--; } -buildUnnamed3341() { +buildUnnamed3503() { var o = new core.List<api.Snapshot>(); o.add(buildSnapshot()); o.add(buildSnapshot()); return o; } -checkUnnamed3341(core.List<api.Snapshot> o) { +checkUnnamed3503(core.List<api.Snapshot> o) { unittest.expect(o, unittest.hasLength(2)); checkSnapshot(o[0]); checkSnapshot(o[1]); @@ -251,7 +268,7 @@ buildCounterListSnapshotsResponse++; if (buildCounterListSnapshotsResponse < 3) { o.nextPageToken = "foo"; - o.snapshots = buildUnnamed3341(); + o.snapshots = buildUnnamed3503(); } buildCounterListSnapshotsResponse--; return o; @@ -261,19 +278,19 @@ buildCounterListSnapshotsResponse++; if (buildCounterListSnapshotsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3341(o.snapshots); + checkUnnamed3503(o.snapshots); } buildCounterListSnapshotsResponse--; } -buildUnnamed3342() { +buildUnnamed3504() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed3342(core.List<api.Subscription> o) { +checkUnnamed3504(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -285,7 +302,7 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3342(); + o.subscriptions = buildUnnamed3504(); } buildCounterListSubscriptionsResponse--; return o; @@ -295,19 +312,19 @@ buildCounterListSubscriptionsResponse++; if (buildCounterListSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3342(o.subscriptions); + checkUnnamed3504(o.subscriptions); } buildCounterListSubscriptionsResponse--; } -buildUnnamed3343() { +buildUnnamed3505() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3343(core.List<core.String> o) { +checkUnnamed3505(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -319,7 +336,7 @@ buildCounterListTopicSnapshotsResponse++; if (buildCounterListTopicSnapshotsResponse < 3) { o.nextPageToken = "foo"; - o.snapshots = buildUnnamed3343(); + o.snapshots = buildUnnamed3505(); } buildCounterListTopicSnapshotsResponse--; return o; @@ -329,19 +346,19 @@ buildCounterListTopicSnapshotsResponse++; if (buildCounterListTopicSnapshotsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3343(o.snapshots); + checkUnnamed3505(o.snapshots); } buildCounterListTopicSnapshotsResponse--; } -buildUnnamed3344() { +buildUnnamed3506() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3344(core.List<core.String> o) { +checkUnnamed3506(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -353,7 +370,7 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed3344(); + o.subscriptions = buildUnnamed3506(); } buildCounterListTopicSubscriptionsResponse--; return o; @@ -363,19 +380,19 @@ buildCounterListTopicSubscriptionsResponse++; if (buildCounterListTopicSubscriptionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3344(o.subscriptions); + checkUnnamed3506(o.subscriptions); } buildCounterListTopicSubscriptionsResponse--; } -buildUnnamed3345() { +buildUnnamed3507() { var o = new core.List<api.Topic>(); o.add(buildTopic()); o.add(buildTopic()); return o; } -checkUnnamed3345(core.List<api.Topic> o) { +checkUnnamed3507(core.List<api.Topic> o) { unittest.expect(o, unittest.hasLength(2)); checkTopic(o[0]); checkTopic(o[1]); @@ -387,7 +404,7 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { o.nextPageToken = "foo"; - o.topics = buildUnnamed3345(); + o.topics = buildUnnamed3507(); } buildCounterListTopicsResponse--; return o; @@ -397,19 +414,19 @@ buildCounterListTopicsResponse++; if (buildCounterListTopicsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3345(o.topics); + checkUnnamed3507(o.topics); } buildCounterListTopicsResponse--; } -buildUnnamed3346() { +buildUnnamed3508() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3346(core.List<core.String> o) { +checkUnnamed3508(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -420,7 +437,7 @@ var o = new api.MessageStoragePolicy(); buildCounterMessageStoragePolicy++; if (buildCounterMessageStoragePolicy < 3) { - o.allowedPersistenceRegions = buildUnnamed3346(); + o.allowedPersistenceRegions = buildUnnamed3508(); } buildCounterMessageStoragePolicy--; return o; @@ -429,19 +446,19 @@ checkMessageStoragePolicy(api.MessageStoragePolicy o) { buildCounterMessageStoragePolicy++; if (buildCounterMessageStoragePolicy < 3) { - checkUnnamed3346(o.allowedPersistenceRegions); + checkUnnamed3508(o.allowedPersistenceRegions); } buildCounterMessageStoragePolicy--; } -buildUnnamed3347() { +buildUnnamed3509() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3347(core.List<core.String> o) { +checkUnnamed3509(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -453,7 +470,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { o.ackDeadlineSeconds = 42; - o.ackIds = buildUnnamed3347(); + o.ackIds = buildUnnamed3509(); } buildCounterModifyAckDeadlineRequest--; return o; @@ -463,7 +480,7 @@ buildCounterModifyAckDeadlineRequest++; if (buildCounterModifyAckDeadlineRequest < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); - checkUnnamed3347(o.ackIds); + checkUnnamed3509(o.ackIds); } buildCounterModifyAckDeadlineRequest--; } @@ -508,14 +525,14 @@ buildCounterOidcToken--; } -buildUnnamed3348() { +buildUnnamed3510() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3348(core.List<api.Binding> o) { +checkUnnamed3510(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -526,7 +543,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3348(); + o.bindings = buildUnnamed3510(); o.etag = "foo"; o.version = 42; } @@ -537,21 +554,21 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3348(o.bindings); + checkUnnamed3510(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed3349() { +buildUnnamed3511() { var o = new core.List<api.PubsubMessage>(); o.add(buildPubsubMessage()); o.add(buildPubsubMessage()); return o; } -checkUnnamed3349(core.List<api.PubsubMessage> o) { +checkUnnamed3511(core.List<api.PubsubMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubMessage(o[0]); checkPubsubMessage(o[1]); @@ -562,7 +579,7 @@ var o = new api.PublishRequest(); buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - o.messages = buildUnnamed3349(); + o.messages = buildUnnamed3511(); } buildCounterPublishRequest--; return o; @@ -571,19 +588,19 @@ checkPublishRequest(api.PublishRequest o) { buildCounterPublishRequest++; if (buildCounterPublishRequest < 3) { - checkUnnamed3349(o.messages); + checkUnnamed3511(o.messages); } buildCounterPublishRequest--; } -buildUnnamed3350() { +buildUnnamed3512() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3350(core.List<core.String> o) { +checkUnnamed3512(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -594,7 +611,7 @@ var o = new api.PublishResponse(); buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - o.messageIds = buildUnnamed3350(); + o.messageIds = buildUnnamed3512(); } buildCounterPublishResponse--; return o; @@ -603,19 +620,19 @@ checkPublishResponse(api.PublishResponse o) { buildCounterPublishResponse++; if (buildCounterPublishResponse < 3) { - checkUnnamed3350(o.messageIds); + checkUnnamed3512(o.messageIds); } buildCounterPublishResponse--; } -buildUnnamed3351() { +buildUnnamed3513() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3351(core.Map<core.String, core.String> o) { +checkUnnamed3513(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')); @@ -626,9 +643,10 @@ var o = new api.PubsubMessage(); buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - o.attributes = buildUnnamed3351(); + o.attributes = buildUnnamed3513(); o.data = "foo"; o.messageId = "foo"; + o.orderingKey = "foo"; o.publishTime = "foo"; } buildCounterPubsubMessage--; @@ -638,9 +656,10 @@ checkPubsubMessage(api.PubsubMessage o) { buildCounterPubsubMessage++; if (buildCounterPubsubMessage < 3) { - checkUnnamed3351(o.attributes); + checkUnnamed3513(o.attributes); unittest.expect(o.data, unittest.equals('foo')); unittest.expect(o.messageId, unittest.equals('foo')); + unittest.expect(o.orderingKey, unittest.equals('foo')); unittest.expect(o.publishTime, unittest.equals('foo')); } buildCounterPubsubMessage--; @@ -667,14 +686,14 @@ buildCounterPullRequest--; } -buildUnnamed3352() { +buildUnnamed3514() { var o = new core.List<api.ReceivedMessage>(); o.add(buildReceivedMessage()); o.add(buildReceivedMessage()); return o; } -checkUnnamed3352(core.List<api.ReceivedMessage> o) { +checkUnnamed3514(core.List<api.ReceivedMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkReceivedMessage(o[0]); checkReceivedMessage(o[1]); @@ -685,7 +704,7 @@ var o = new api.PullResponse(); buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - o.receivedMessages = buildUnnamed3352(); + o.receivedMessages = buildUnnamed3514(); } buildCounterPullResponse--; return o; @@ -694,19 +713,19 @@ checkPullResponse(api.PullResponse o) { buildCounterPullResponse++; if (buildCounterPullResponse < 3) { - checkUnnamed3352(o.receivedMessages); + checkUnnamed3514(o.receivedMessages); } buildCounterPullResponse--; } -buildUnnamed3353() { +buildUnnamed3515() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3353(core.Map<core.String, core.String> o) { +checkUnnamed3515(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')); @@ -717,7 +736,7 @@ var o = new api.PushConfig(); buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - o.attributes = buildUnnamed3353(); + o.attributes = buildUnnamed3515(); o.oidcToken = buildOidcToken(); o.pushEndpoint = "foo"; } @@ -728,7 +747,7 @@ checkPushConfig(api.PushConfig o) { buildCounterPushConfig++; if (buildCounterPushConfig < 3) { - checkUnnamed3353(o.attributes); + checkUnnamed3515(o.attributes); checkOidcToken(o.oidcToken); unittest.expect(o.pushEndpoint, unittest.equals('foo')); } @@ -758,6 +777,27 @@ buildCounterReceivedMessage--; } +core.int buildCounterRetryPolicy = 0; +buildRetryPolicy() { + var o = new api.RetryPolicy(); + buildCounterRetryPolicy++; + if (buildCounterRetryPolicy < 3) { + o.maximumBackoff = "foo"; + o.minimumBackoff = "foo"; + } + buildCounterRetryPolicy--; + return o; +} + +checkRetryPolicy(api.RetryPolicy o) { + buildCounterRetryPolicy++; + if (buildCounterRetryPolicy < 3) { + unittest.expect(o.maximumBackoff, unittest.equals('foo')); + unittest.expect(o.minimumBackoff, unittest.equals('foo')); + } + buildCounterRetryPolicy--; +} + core.int buildCounterSeekRequest = 0; buildSeekRequest() { var o = new api.SeekRequest(); @@ -813,14 +853,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3354() { +buildUnnamed3516() { 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) { +checkUnnamed3516(core.Map<core.String, core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals('foo')); unittest.expect(o["y"], unittest.equals('foo')); @@ -832,7 +872,7 @@ buildCounterSnapshot++; if (buildCounterSnapshot < 3) { o.expireTime = "foo"; - o.labels = buildUnnamed3354(); + o.labels = buildUnnamed3516(); o.name = "foo"; o.topic = "foo"; } @@ -844,21 +884,21 @@ buildCounterSnapshot++; if (buildCounterSnapshot < 3) { unittest.expect(o.expireTime, unittest.equals('foo')); - checkUnnamed3354(o.labels); + checkUnnamed3516(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.topic, unittest.equals('foo')); } buildCounterSnapshot--; } -buildUnnamed3355() { +buildUnnamed3517() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3355(core.Map<core.String, core.String> o) { +checkUnnamed3517(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')); @@ -871,12 +911,16 @@ if (buildCounterSubscription < 3) { o.ackDeadlineSeconds = 42; o.deadLetterPolicy = buildDeadLetterPolicy(); + o.detached = true; + o.enableMessageOrdering = true; o.expirationPolicy = buildExpirationPolicy(); - o.labels = buildUnnamed3355(); + o.filter = "foo"; + o.labels = buildUnnamed3517(); o.messageRetentionDuration = "foo"; o.name = "foo"; o.pushConfig = buildPushConfig(); o.retainAckedMessages = true; + o.retryPolicy = buildRetryPolicy(); o.topic = "foo"; } buildCounterSubscription--; @@ -888,25 +932,29 @@ if (buildCounterSubscription < 3) { unittest.expect(o.ackDeadlineSeconds, unittest.equals(42)); checkDeadLetterPolicy(o.deadLetterPolicy); + unittest.expect(o.detached, unittest.isTrue); + unittest.expect(o.enableMessageOrdering, unittest.isTrue); checkExpirationPolicy(o.expirationPolicy); - checkUnnamed3355(o.labels); + unittest.expect(o.filter, unittest.equals('foo')); + checkUnnamed3517(o.labels); unittest.expect(o.messageRetentionDuration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkPushConfig(o.pushConfig); unittest.expect(o.retainAckedMessages, unittest.isTrue); + checkRetryPolicy(o.retryPolicy); unittest.expect(o.topic, unittest.equals('foo')); } buildCounterSubscription--; } -buildUnnamed3356() { +buildUnnamed3518() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3356(core.List<core.String> o) { +checkUnnamed3518(core.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,7 +965,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3356(); + o.permissions = buildUnnamed3518(); } buildCounterTestIamPermissionsRequest--; return o; @@ -926,19 +974,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3356(o.permissions); + checkUnnamed3518(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3357() { +buildUnnamed3519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3357(core.List<core.String> o) { +checkUnnamed3519(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -949,7 +997,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3357(); + o.permissions = buildUnnamed3519(); } buildCounterTestIamPermissionsResponse--; return o; @@ -958,19 +1006,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3357(o.permissions); + checkUnnamed3519(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed3358() { +buildUnnamed3520() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3358(core.Map<core.String, core.String> o) { +checkUnnamed3520(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')); @@ -982,7 +1030,7 @@ buildCounterTopic++; if (buildCounterTopic < 3) { o.kmsKeyName = "foo"; - o.labels = buildUnnamed3358(); + o.labels = buildUnnamed3520(); o.messageStoragePolicy = buildMessageStoragePolicy(); o.name = "foo"; } @@ -994,7 +1042,7 @@ buildCounterTopic++; if (buildCounterTopic < 3) { unittest.expect(o.kmsKeyName, unittest.equals('foo')); - checkUnnamed3358(o.labels); + checkUnnamed3520(o.labels); checkMessageStoragePolicy(o.messageStoragePolicy); unittest.expect(o.name, unittest.equals('foo')); } @@ -1097,6 +1145,14 @@ }); }); + unittest.group("obj-schema-DetachSubscriptionResponse", () { + unittest.test("to-json--from-json", () { + var o = buildDetachSubscriptionResponse(); + var od = new api.DetachSubscriptionResponse.fromJson(o.toJson()); + checkDetachSubscriptionResponse(od); + }); + }); + unittest.group("obj-schema-Empty", () { unittest.test("to-json--from-json", () { var o = buildEmpty(); @@ -1257,6 +1313,14 @@ }); }); + unittest.group("obj-schema-RetryPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildRetryPolicy(); + var od = new api.RetryPolicy.fromJson(o.toJson()); + checkRetryPolicy(od); + }); + }); + unittest.group("obj-schema-SeekRequest", () { unittest.test("to-json--from-json", () { var o = buildSeekRequest(); @@ -1960,6 +2024,58 @@ }))); }); + unittest.test("method--detach", () { + var mock = new HttpServerMock(); + api.ProjectsSubscriptionsResourceApi res = + new api.PubsubApi(mock).projects.subscriptions; + var arg_subscription = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildDetachSubscriptionResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .detach(arg_subscription, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkDetachSubscriptionResponse(response); + }))); + }); + unittest.test("method--get", () { var mock = new HttpServerMock(); api.ProjectsSubscriptionsResourceApi res = @@ -2751,8 +2867,8 @@ api.ProjectsTopicsResourceApi res = new api.PubsubApi(mock).projects.topics; var arg_project = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2785,10 +2901,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2799,8 +2915,8 @@ }), true); res .list(arg_project, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTopicsResponse(response); @@ -3038,8 +3154,8 @@ api.ProjectsTopicsSnapshotsResourceApi res = new api.PubsubApi(mock).projects.topics.snapshots; var arg_topic = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3072,10 +3188,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3086,8 +3202,8 @@ }), true); res .list(arg_topic, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTopicSnapshotsResponse(response);
diff --git a/generated/googleapis/test/recommender/v1_test.dart b/generated/googleapis/test/recommender/v1_test.dart new file mode 100644 index 0000000..994d6ff --- /dev/null +++ b/generated/googleapis/test/recommender/v1_test.dart
@@ -0,0 +1,1468 @@ +library googleapis.recommender.v1.test; + +import "dart:core" as core; +import "dart:async" as async; +import "dart:convert" as convert; + +import 'package:http/http.dart' as http; +import 'package:test/test.dart' as unittest; + +import 'package:googleapis/recommender/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<core.String, core.String> headers, core.String body) { + var stream = new async.Stream.fromIterable([convert.utf8.encode(body)]); + return new http.StreamedResponse(stream, status, headers: headers); +} + +core.int buildCounterGoogleCloudRecommenderV1CostProjection = 0; +buildGoogleCloudRecommenderV1CostProjection() { + var o = new api.GoogleCloudRecommenderV1CostProjection(); + buildCounterGoogleCloudRecommenderV1CostProjection++; + if (buildCounterGoogleCloudRecommenderV1CostProjection < 3) { + o.cost = buildGoogleTypeMoney(); + o.duration = "foo"; + } + buildCounterGoogleCloudRecommenderV1CostProjection--; + return o; +} + +checkGoogleCloudRecommenderV1CostProjection( + api.GoogleCloudRecommenderV1CostProjection o) { + buildCounterGoogleCloudRecommenderV1CostProjection++; + if (buildCounterGoogleCloudRecommenderV1CostProjection < 3) { + checkGoogleTypeMoney(o.cost); + unittest.expect(o.duration, unittest.equals('foo')); + } + buildCounterGoogleCloudRecommenderV1CostProjection--; +} + +core.int buildCounterGoogleCloudRecommenderV1Impact = 0; +buildGoogleCloudRecommenderV1Impact() { + var o = new api.GoogleCloudRecommenderV1Impact(); + buildCounterGoogleCloudRecommenderV1Impact++; + if (buildCounterGoogleCloudRecommenderV1Impact < 3) { + o.category = "foo"; + o.costProjection = buildGoogleCloudRecommenderV1CostProjection(); + } + buildCounterGoogleCloudRecommenderV1Impact--; + return o; +} + +checkGoogleCloudRecommenderV1Impact(api.GoogleCloudRecommenderV1Impact o) { + buildCounterGoogleCloudRecommenderV1Impact++; + if (buildCounterGoogleCloudRecommenderV1Impact < 3) { + unittest.expect(o.category, unittest.equals('foo')); + checkGoogleCloudRecommenderV1CostProjection(o.costProjection); + } + buildCounterGoogleCloudRecommenderV1Impact--; +} + +buildUnnamed5279() { + var o = new core + .List<api.GoogleCloudRecommenderV1InsightRecommendationReference>(); + o.add(buildGoogleCloudRecommenderV1InsightRecommendationReference()); + o.add(buildGoogleCloudRecommenderV1InsightRecommendationReference()); + return o; +} + +checkUnnamed5279( + core.List<api.GoogleCloudRecommenderV1InsightRecommendationReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1InsightRecommendationReference(o[0]); + checkGoogleCloudRecommenderV1InsightRecommendationReference(o[1]); +} + +buildUnnamed5280() { + 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; +} + +checkUnnamed5280(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')); +} + +buildUnnamed5281() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed5281(core.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 buildCounterGoogleCloudRecommenderV1Insight = 0; +buildGoogleCloudRecommenderV1Insight() { + var o = new api.GoogleCloudRecommenderV1Insight(); + buildCounterGoogleCloudRecommenderV1Insight++; + if (buildCounterGoogleCloudRecommenderV1Insight < 3) { + o.associatedRecommendations = buildUnnamed5279(); + o.category = "foo"; + o.content = buildUnnamed5280(); + o.description = "foo"; + o.etag = "foo"; + o.insightSubtype = "foo"; + o.lastRefreshTime = "foo"; + o.name = "foo"; + o.observationPeriod = "foo"; + o.stateInfo = buildGoogleCloudRecommenderV1InsightStateInfo(); + o.targetResources = buildUnnamed5281(); + } + buildCounterGoogleCloudRecommenderV1Insight--; + return o; +} + +checkGoogleCloudRecommenderV1Insight(api.GoogleCloudRecommenderV1Insight o) { + buildCounterGoogleCloudRecommenderV1Insight++; + if (buildCounterGoogleCloudRecommenderV1Insight < 3) { + checkUnnamed5279(o.associatedRecommendations); + unittest.expect(o.category, unittest.equals('foo')); + checkUnnamed5280(o.content); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.insightSubtype, unittest.equals('foo')); + unittest.expect(o.lastRefreshTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.observationPeriod, unittest.equals('foo')); + checkGoogleCloudRecommenderV1InsightStateInfo(o.stateInfo); + checkUnnamed5281(o.targetResources); + } + buildCounterGoogleCloudRecommenderV1Insight--; +} + +core.int buildCounterGoogleCloudRecommenderV1InsightRecommendationReference = 0; +buildGoogleCloudRecommenderV1InsightRecommendationReference() { + var o = new api.GoogleCloudRecommenderV1InsightRecommendationReference(); + buildCounterGoogleCloudRecommenderV1InsightRecommendationReference++; + if (buildCounterGoogleCloudRecommenderV1InsightRecommendationReference < 3) { + o.recommendation = "foo"; + } + buildCounterGoogleCloudRecommenderV1InsightRecommendationReference--; + return o; +} + +checkGoogleCloudRecommenderV1InsightRecommendationReference( + api.GoogleCloudRecommenderV1InsightRecommendationReference o) { + buildCounterGoogleCloudRecommenderV1InsightRecommendationReference++; + if (buildCounterGoogleCloudRecommenderV1InsightRecommendationReference < 3) { + unittest.expect(o.recommendation, unittest.equals('foo')); + } + buildCounterGoogleCloudRecommenderV1InsightRecommendationReference--; +} + +buildUnnamed5282() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5282(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 buildCounterGoogleCloudRecommenderV1InsightStateInfo = 0; +buildGoogleCloudRecommenderV1InsightStateInfo() { + var o = new api.GoogleCloudRecommenderV1InsightStateInfo(); + buildCounterGoogleCloudRecommenderV1InsightStateInfo++; + if (buildCounterGoogleCloudRecommenderV1InsightStateInfo < 3) { + o.state = "foo"; + o.stateMetadata = buildUnnamed5282(); + } + buildCounterGoogleCloudRecommenderV1InsightStateInfo--; + return o; +} + +checkGoogleCloudRecommenderV1InsightStateInfo( + api.GoogleCloudRecommenderV1InsightStateInfo o) { + buildCounterGoogleCloudRecommenderV1InsightStateInfo++; + if (buildCounterGoogleCloudRecommenderV1InsightStateInfo < 3) { + unittest.expect(o.state, unittest.equals('foo')); + checkUnnamed5282(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1InsightStateInfo--; +} + +buildUnnamed5283() { + var o = new core.List<api.GoogleCloudRecommenderV1Insight>(); + o.add(buildGoogleCloudRecommenderV1Insight()); + o.add(buildGoogleCloudRecommenderV1Insight()); + return o; +} + +checkUnnamed5283(core.List<api.GoogleCloudRecommenderV1Insight> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1Insight(o[0]); + checkGoogleCloudRecommenderV1Insight(o[1]); +} + +core.int buildCounterGoogleCloudRecommenderV1ListInsightsResponse = 0; +buildGoogleCloudRecommenderV1ListInsightsResponse() { + var o = new api.GoogleCloudRecommenderV1ListInsightsResponse(); + buildCounterGoogleCloudRecommenderV1ListInsightsResponse++; + if (buildCounterGoogleCloudRecommenderV1ListInsightsResponse < 3) { + o.insights = buildUnnamed5283(); + o.nextPageToken = "foo"; + } + buildCounterGoogleCloudRecommenderV1ListInsightsResponse--; + return o; +} + +checkGoogleCloudRecommenderV1ListInsightsResponse( + api.GoogleCloudRecommenderV1ListInsightsResponse o) { + buildCounterGoogleCloudRecommenderV1ListInsightsResponse++; + if (buildCounterGoogleCloudRecommenderV1ListInsightsResponse < 3) { + checkUnnamed5283(o.insights); + unittest.expect(o.nextPageToken, unittest.equals('foo')); + } + buildCounterGoogleCloudRecommenderV1ListInsightsResponse--; +} + +buildUnnamed5284() { + var o = new core.List<api.GoogleCloudRecommenderV1Recommendation>(); + o.add(buildGoogleCloudRecommenderV1Recommendation()); + o.add(buildGoogleCloudRecommenderV1Recommendation()); + return o; +} + +checkUnnamed5284(core.List<api.GoogleCloudRecommenderV1Recommendation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1Recommendation(o[0]); + checkGoogleCloudRecommenderV1Recommendation(o[1]); +} + +core.int buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse = 0; +buildGoogleCloudRecommenderV1ListRecommendationsResponse() { + var o = new api.GoogleCloudRecommenderV1ListRecommendationsResponse(); + buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse++; + if (buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse < 3) { + o.nextPageToken = "foo"; + o.recommendations = buildUnnamed5284(); + } + buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse--; + return o; +} + +checkGoogleCloudRecommenderV1ListRecommendationsResponse( + api.GoogleCloudRecommenderV1ListRecommendationsResponse o) { + buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse++; + if (buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse < 3) { + unittest.expect(o.nextPageToken, unittest.equals('foo')); + checkUnnamed5284(o.recommendations); + } + buildCounterGoogleCloudRecommenderV1ListRecommendationsResponse--; +} + +buildUnnamed5285() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5285(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 buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest = 0; +buildGoogleCloudRecommenderV1MarkInsightAcceptedRequest() { + var o = new api.GoogleCloudRecommenderV1MarkInsightAcceptedRequest(); + buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest < 3) { + o.etag = "foo"; + o.stateMetadata = buildUnnamed5285(); + } + buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest--; + return o; +} + +checkGoogleCloudRecommenderV1MarkInsightAcceptedRequest( + api.GoogleCloudRecommenderV1MarkInsightAcceptedRequest o) { + buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest < 3) { + unittest.expect(o.etag, unittest.equals('foo')); + checkUnnamed5285(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1MarkInsightAcceptedRequest--; +} + +buildUnnamed5286() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5286(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 buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest = + 0; +buildGoogleCloudRecommenderV1MarkRecommendationClaimedRequest() { + var o = new api.GoogleCloudRecommenderV1MarkRecommendationClaimedRequest(); + buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest < + 3) { + o.etag = "foo"; + o.stateMetadata = buildUnnamed5286(); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest--; + return o; +} + +checkGoogleCloudRecommenderV1MarkRecommendationClaimedRequest( + api.GoogleCloudRecommenderV1MarkRecommendationClaimedRequest o) { + buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest < + 3) { + unittest.expect(o.etag, unittest.equals('foo')); + checkUnnamed5286(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationClaimedRequest--; +} + +buildUnnamed5287() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5287(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 buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest = + 0; +buildGoogleCloudRecommenderV1MarkRecommendationFailedRequest() { + var o = new api.GoogleCloudRecommenderV1MarkRecommendationFailedRequest(); + buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest < 3) { + o.etag = "foo"; + o.stateMetadata = buildUnnamed5287(); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest--; + return o; +} + +checkGoogleCloudRecommenderV1MarkRecommendationFailedRequest( + api.GoogleCloudRecommenderV1MarkRecommendationFailedRequest o) { + buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest < 3) { + unittest.expect(o.etag, unittest.equals('foo')); + checkUnnamed5287(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationFailedRequest--; +} + +buildUnnamed5288() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5288(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 + buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest = 0; +buildGoogleCloudRecommenderV1MarkRecommendationSucceededRequest() { + var o = new api.GoogleCloudRecommenderV1MarkRecommendationSucceededRequest(); + buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest < + 3) { + o.etag = "foo"; + o.stateMetadata = buildUnnamed5288(); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest--; + return o; +} + +checkGoogleCloudRecommenderV1MarkRecommendationSucceededRequest( + api.GoogleCloudRecommenderV1MarkRecommendationSucceededRequest o) { + buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest++; + if (buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest < + 3) { + unittest.expect(o.etag, unittest.equals('foo')); + checkUnnamed5288(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1MarkRecommendationSucceededRequest--; +} + +buildUnnamed5289() { + 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; +} + +checkUnnamed5289(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')); +} + +buildUnnamed5290() { + var o = new core.Map<core.String, api.GoogleCloudRecommenderV1ValueMatcher>(); + o["x"] = buildGoogleCloudRecommenderV1ValueMatcher(); + o["y"] = buildGoogleCloudRecommenderV1ValueMatcher(); + return o; +} + +checkUnnamed5290( + core.Map<core.String, api.GoogleCloudRecommenderV1ValueMatcher> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1ValueMatcher(o["x"]); + checkGoogleCloudRecommenderV1ValueMatcher(o["y"]); +} + +core.int buildCounterGoogleCloudRecommenderV1Operation = 0; +buildGoogleCloudRecommenderV1Operation() { + var o = new api.GoogleCloudRecommenderV1Operation(); + buildCounterGoogleCloudRecommenderV1Operation++; + if (buildCounterGoogleCloudRecommenderV1Operation < 3) { + o.action = "foo"; + o.path = "foo"; + o.pathFilters = buildUnnamed5289(); + o.pathValueMatchers = buildUnnamed5290(); + o.resource = "foo"; + o.resourceType = "foo"; + o.sourcePath = "foo"; + o.sourceResource = "foo"; + o.value = { + 'list': [1, 2, 3], + 'bool': true, + 'string': 'foo' + }; + o.valueMatcher = buildGoogleCloudRecommenderV1ValueMatcher(); + } + buildCounterGoogleCloudRecommenderV1Operation--; + return o; +} + +checkGoogleCloudRecommenderV1Operation( + api.GoogleCloudRecommenderV1Operation o) { + buildCounterGoogleCloudRecommenderV1Operation++; + if (buildCounterGoogleCloudRecommenderV1Operation < 3) { + unittest.expect(o.action, unittest.equals('foo')); + unittest.expect(o.path, unittest.equals('foo')); + checkUnnamed5289(o.pathFilters); + checkUnnamed5290(o.pathValueMatchers); + unittest.expect(o.resource, unittest.equals('foo')); + unittest.expect(o.resourceType, unittest.equals('foo')); + unittest.expect(o.sourcePath, unittest.equals('foo')); + unittest.expect(o.sourceResource, unittest.equals('foo')); + var casted5 = (o.value) 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')); + checkGoogleCloudRecommenderV1ValueMatcher(o.valueMatcher); + } + buildCounterGoogleCloudRecommenderV1Operation--; +} + +buildUnnamed5291() { + var o = new core.List<api.GoogleCloudRecommenderV1Operation>(); + o.add(buildGoogleCloudRecommenderV1Operation()); + o.add(buildGoogleCloudRecommenderV1Operation()); + return o; +} + +checkUnnamed5291(core.List<api.GoogleCloudRecommenderV1Operation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1Operation(o[0]); + checkGoogleCloudRecommenderV1Operation(o[1]); +} + +core.int buildCounterGoogleCloudRecommenderV1OperationGroup = 0; +buildGoogleCloudRecommenderV1OperationGroup() { + var o = new api.GoogleCloudRecommenderV1OperationGroup(); + buildCounterGoogleCloudRecommenderV1OperationGroup++; + if (buildCounterGoogleCloudRecommenderV1OperationGroup < 3) { + o.operations = buildUnnamed5291(); + } + buildCounterGoogleCloudRecommenderV1OperationGroup--; + return o; +} + +checkGoogleCloudRecommenderV1OperationGroup( + api.GoogleCloudRecommenderV1OperationGroup o) { + buildCounterGoogleCloudRecommenderV1OperationGroup++; + if (buildCounterGoogleCloudRecommenderV1OperationGroup < 3) { + checkUnnamed5291(o.operations); + } + buildCounterGoogleCloudRecommenderV1OperationGroup--; +} + +buildUnnamed5292() { + var o = new core.List<api.GoogleCloudRecommenderV1Impact>(); + o.add(buildGoogleCloudRecommenderV1Impact()); + o.add(buildGoogleCloudRecommenderV1Impact()); + return o; +} + +checkUnnamed5292(core.List<api.GoogleCloudRecommenderV1Impact> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1Impact(o[0]); + checkGoogleCloudRecommenderV1Impact(o[1]); +} + +buildUnnamed5293() { + var o = new core + .List<api.GoogleCloudRecommenderV1RecommendationInsightReference>(); + o.add(buildGoogleCloudRecommenderV1RecommendationInsightReference()); + o.add(buildGoogleCloudRecommenderV1RecommendationInsightReference()); + return o; +} + +checkUnnamed5293( + core.List<api.GoogleCloudRecommenderV1RecommendationInsightReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1RecommendationInsightReference(o[0]); + checkGoogleCloudRecommenderV1RecommendationInsightReference(o[1]); +} + +core.int buildCounterGoogleCloudRecommenderV1Recommendation = 0; +buildGoogleCloudRecommenderV1Recommendation() { + var o = new api.GoogleCloudRecommenderV1Recommendation(); + buildCounterGoogleCloudRecommenderV1Recommendation++; + if (buildCounterGoogleCloudRecommenderV1Recommendation < 3) { + o.additionalImpact = buildUnnamed5292(); + o.associatedInsights = buildUnnamed5293(); + o.content = buildGoogleCloudRecommenderV1RecommendationContent(); + o.description = "foo"; + o.etag = "foo"; + o.lastRefreshTime = "foo"; + o.name = "foo"; + o.primaryImpact = buildGoogleCloudRecommenderV1Impact(); + o.recommenderSubtype = "foo"; + o.stateInfo = buildGoogleCloudRecommenderV1RecommendationStateInfo(); + } + buildCounterGoogleCloudRecommenderV1Recommendation--; + return o; +} + +checkGoogleCloudRecommenderV1Recommendation( + api.GoogleCloudRecommenderV1Recommendation o) { + buildCounterGoogleCloudRecommenderV1Recommendation++; + if (buildCounterGoogleCloudRecommenderV1Recommendation < 3) { + checkUnnamed5292(o.additionalImpact); + checkUnnamed5293(o.associatedInsights); + checkGoogleCloudRecommenderV1RecommendationContent(o.content); + unittest.expect(o.description, unittest.equals('foo')); + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.lastRefreshTime, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + checkGoogleCloudRecommenderV1Impact(o.primaryImpact); + unittest.expect(o.recommenderSubtype, unittest.equals('foo')); + checkGoogleCloudRecommenderV1RecommendationStateInfo(o.stateInfo); + } + buildCounterGoogleCloudRecommenderV1Recommendation--; +} + +buildUnnamed5294() { + var o = new core.List<api.GoogleCloudRecommenderV1OperationGroup>(); + o.add(buildGoogleCloudRecommenderV1OperationGroup()); + o.add(buildGoogleCloudRecommenderV1OperationGroup()); + return o; +} + +checkUnnamed5294(core.List<api.GoogleCloudRecommenderV1OperationGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudRecommenderV1OperationGroup(o[0]); + checkGoogleCloudRecommenderV1OperationGroup(o[1]); +} + +core.int buildCounterGoogleCloudRecommenderV1RecommendationContent = 0; +buildGoogleCloudRecommenderV1RecommendationContent() { + var o = new api.GoogleCloudRecommenderV1RecommendationContent(); + buildCounterGoogleCloudRecommenderV1RecommendationContent++; + if (buildCounterGoogleCloudRecommenderV1RecommendationContent < 3) { + o.operationGroups = buildUnnamed5294(); + } + buildCounterGoogleCloudRecommenderV1RecommendationContent--; + return o; +} + +checkGoogleCloudRecommenderV1RecommendationContent( + api.GoogleCloudRecommenderV1RecommendationContent o) { + buildCounterGoogleCloudRecommenderV1RecommendationContent++; + if (buildCounterGoogleCloudRecommenderV1RecommendationContent < 3) { + checkUnnamed5294(o.operationGroups); + } + buildCounterGoogleCloudRecommenderV1RecommendationContent--; +} + +core.int buildCounterGoogleCloudRecommenderV1RecommendationInsightReference = 0; +buildGoogleCloudRecommenderV1RecommendationInsightReference() { + var o = new api.GoogleCloudRecommenderV1RecommendationInsightReference(); + buildCounterGoogleCloudRecommenderV1RecommendationInsightReference++; + if (buildCounterGoogleCloudRecommenderV1RecommendationInsightReference < 3) { + o.insight = "foo"; + } + buildCounterGoogleCloudRecommenderV1RecommendationInsightReference--; + return o; +} + +checkGoogleCloudRecommenderV1RecommendationInsightReference( + api.GoogleCloudRecommenderV1RecommendationInsightReference o) { + buildCounterGoogleCloudRecommenderV1RecommendationInsightReference++; + if (buildCounterGoogleCloudRecommenderV1RecommendationInsightReference < 3) { + unittest.expect(o.insight, unittest.equals('foo')); + } + buildCounterGoogleCloudRecommenderV1RecommendationInsightReference--; +} + +buildUnnamed5295() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed5295(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 buildCounterGoogleCloudRecommenderV1RecommendationStateInfo = 0; +buildGoogleCloudRecommenderV1RecommendationStateInfo() { + var o = new api.GoogleCloudRecommenderV1RecommendationStateInfo(); + buildCounterGoogleCloudRecommenderV1RecommendationStateInfo++; + if (buildCounterGoogleCloudRecommenderV1RecommendationStateInfo < 3) { + o.state = "foo"; + o.stateMetadata = buildUnnamed5295(); + } + buildCounterGoogleCloudRecommenderV1RecommendationStateInfo--; + return o; +} + +checkGoogleCloudRecommenderV1RecommendationStateInfo( + api.GoogleCloudRecommenderV1RecommendationStateInfo o) { + buildCounterGoogleCloudRecommenderV1RecommendationStateInfo++; + if (buildCounterGoogleCloudRecommenderV1RecommendationStateInfo < 3) { + unittest.expect(o.state, unittest.equals('foo')); + checkUnnamed5295(o.stateMetadata); + } + buildCounterGoogleCloudRecommenderV1RecommendationStateInfo--; +} + +core.int buildCounterGoogleCloudRecommenderV1ValueMatcher = 0; +buildGoogleCloudRecommenderV1ValueMatcher() { + var o = new api.GoogleCloudRecommenderV1ValueMatcher(); + buildCounterGoogleCloudRecommenderV1ValueMatcher++; + if (buildCounterGoogleCloudRecommenderV1ValueMatcher < 3) { + o.matchesPattern = "foo"; + } + buildCounterGoogleCloudRecommenderV1ValueMatcher--; + return o; +} + +checkGoogleCloudRecommenderV1ValueMatcher( + api.GoogleCloudRecommenderV1ValueMatcher o) { + buildCounterGoogleCloudRecommenderV1ValueMatcher++; + if (buildCounterGoogleCloudRecommenderV1ValueMatcher < 3) { + unittest.expect(o.matchesPattern, unittest.equals('foo')); + } + buildCounterGoogleCloudRecommenderV1ValueMatcher--; +} + +core.int buildCounterGoogleTypeMoney = 0; +buildGoogleTypeMoney() { + var o = new api.GoogleTypeMoney(); + buildCounterGoogleTypeMoney++; + if (buildCounterGoogleTypeMoney < 3) { + o.currencyCode = "foo"; + o.nanos = 42; + o.units = "foo"; + } + buildCounterGoogleTypeMoney--; + return o; +} + +checkGoogleTypeMoney(api.GoogleTypeMoney o) { + buildCounterGoogleTypeMoney++; + if (buildCounterGoogleTypeMoney < 3) { + unittest.expect(o.currencyCode, unittest.equals('foo')); + unittest.expect(o.nanos, unittest.equals(42)); + unittest.expect(o.units, unittest.equals('foo')); + } + buildCounterGoogleTypeMoney--; +} + +main() { + unittest.group("obj-schema-GoogleCloudRecommenderV1CostProjection", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1CostProjection(); + var od = + new api.GoogleCloudRecommenderV1CostProjection.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1CostProjection(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1Impact", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1Impact(); + var od = new api.GoogleCloudRecommenderV1Impact.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1Impact(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1Insight", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1Insight(); + var od = new api.GoogleCloudRecommenderV1Insight.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1Insight(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1InsightRecommendationReference", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1InsightRecommendationReference(); + var od = new api + .GoogleCloudRecommenderV1InsightRecommendationReference.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1InsightRecommendationReference(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1InsightStateInfo", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1InsightStateInfo(); + var od = + new api.GoogleCloudRecommenderV1InsightStateInfo.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1InsightStateInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1ListInsightsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1ListInsightsResponse(); + var od = new api.GoogleCloudRecommenderV1ListInsightsResponse.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1ListInsightsResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1ListRecommendationsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1ListRecommendationsResponse(); + var od = + new api.GoogleCloudRecommenderV1ListRecommendationsResponse.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1ListRecommendationsResponse(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1MarkInsightAcceptedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1MarkInsightAcceptedRequest(); + var od = + new api.GoogleCloudRecommenderV1MarkInsightAcceptedRequest.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1MarkInsightAcceptedRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1MarkRecommendationClaimedRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1MarkRecommendationClaimedRequest(); + var od = new api + .GoogleCloudRecommenderV1MarkRecommendationClaimedRequest.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1MarkRecommendationClaimedRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1MarkRecommendationFailedRequest", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1MarkRecommendationFailedRequest(); + var od = new api + .GoogleCloudRecommenderV1MarkRecommendationFailedRequest.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1MarkRecommendationFailedRequest(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1MarkRecommendationSucceededRequest", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1MarkRecommendationSucceededRequest(); + var od = new api + .GoogleCloudRecommenderV1MarkRecommendationSucceededRequest.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1MarkRecommendationSucceededRequest(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1Operation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1Operation(); + var od = new api.GoogleCloudRecommenderV1Operation.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1Operation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1OperationGroup", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1OperationGroup(); + var od = + new api.GoogleCloudRecommenderV1OperationGroup.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1OperationGroup(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1Recommendation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1Recommendation(); + var od = + new api.GoogleCloudRecommenderV1Recommendation.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1Recommendation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1RecommendationContent", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1RecommendationContent(); + var od = new api.GoogleCloudRecommenderV1RecommendationContent.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1RecommendationContent(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudRecommenderV1RecommendationInsightReference", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1RecommendationInsightReference(); + var od = new api + .GoogleCloudRecommenderV1RecommendationInsightReference.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1RecommendationInsightReference(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1RecommendationStateInfo", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1RecommendationStateInfo(); + var od = new api.GoogleCloudRecommenderV1RecommendationStateInfo.fromJson( + o.toJson()); + checkGoogleCloudRecommenderV1RecommendationStateInfo(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudRecommenderV1ValueMatcher", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudRecommenderV1ValueMatcher(); + var od = + new api.GoogleCloudRecommenderV1ValueMatcher.fromJson(o.toJson()); + checkGoogleCloudRecommenderV1ValueMatcher(od); + }); + }); + + unittest.group("obj-schema-GoogleTypeMoney", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleTypeMoney(); + var od = new api.GoogleTypeMoney.fromJson(o.toJson()); + checkGoogleTypeMoney(od); + }); + }); + + unittest.group("resource-ProjectsLocationsInsightTypesInsightsResourceApi", + () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsInsightTypesInsightsResourceApi res = + new api.RecommenderApi(mock).projects.locations.insightTypes.insights; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudRecommenderV1Insight()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Insight(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsInsightTypesInsightsResourceApi res = + new api.RecommenderApi(mock).projects.locations.insightTypes.insights; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudRecommenderV1ListInsightsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + filter: arg_filter, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1ListInsightsResponse(response); + }))); + }); + + unittest.test("method--markAccepted", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsInsightTypesInsightsResourceApi res = + new api.RecommenderApi(mock).projects.locations.insightTypes.insights; + var arg_request = + buildGoogleCloudRecommenderV1MarkInsightAcceptedRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = + new api.GoogleCloudRecommenderV1MarkInsightAcceptedRequest.fromJson( + json); + checkGoogleCloudRecommenderV1MarkInsightAcceptedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleCloudRecommenderV1Insight()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .markAccepted(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Insight(response); + }))); + }); + }); + + unittest.group( + "resource-ProjectsLocationsRecommendersRecommendationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRecommendersRecommendationsResourceApi res = + new api.RecommenderApi(mock) + .projects + .locations + .recommenders + .recommendations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudRecommenderV1Recommendation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Recommendation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRecommendersRecommendationsResourceApi res = + new api.RecommenderApi(mock) + .projects + .locations + .recommenders + .recommendations; + var arg_parent = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; + var arg_filter = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (query.length > 0) { + for (var part in query.split("&")) { + var keyvalue = part.split("="); + addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), + core.Uri.decodeQueryComponent(keyvalue[1])); + } + } + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json + .encode(buildGoogleCloudRecommenderV1ListRecommendationsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + filter: arg_filter, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1ListRecommendationsResponse(response); + }))); + }); + + unittest.test("method--markClaimed", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRecommendersRecommendationsResourceApi res = + new api.RecommenderApi(mock) + .projects + .locations + .recommenders + .recommendations; + var arg_request = + buildGoogleCloudRecommenderV1MarkRecommendationClaimedRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleCloudRecommenderV1MarkRecommendationClaimedRequest.fromJson( + json); + checkGoogleCloudRecommenderV1MarkRecommendationClaimedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudRecommenderV1Recommendation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .markClaimed(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Recommendation(response); + }))); + }); + + unittest.test("method--markFailed", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRecommendersRecommendationsResourceApi res = + new api.RecommenderApi(mock) + .projects + .locations + .recommenders + .recommendations; + var arg_request = + buildGoogleCloudRecommenderV1MarkRecommendationFailedRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleCloudRecommenderV1MarkRecommendationFailedRequest.fromJson( + json); + checkGoogleCloudRecommenderV1MarkRecommendationFailedRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudRecommenderV1Recommendation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .markFailed(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Recommendation(response); + }))); + }); + + unittest.test("method--markSucceeded", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsRecommendersRecommendationsResourceApi res = + new api.RecommenderApi(mock) + .projects + .locations + .recommenders + .recommendations; + var arg_request = + buildGoogleCloudRecommenderV1MarkRecommendationSucceededRequest(); + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api + .GoogleCloudRecommenderV1MarkRecommendationSucceededRequest.fromJson( + json); + checkGoogleCloudRecommenderV1MarkRecommendationSucceededRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = + convert.json.encode(buildGoogleCloudRecommenderV1Recommendation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .markSucceeded(arg_request, arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleCloudRecommenderV1Recommendation(response); + }))); + }); + }); +}
diff --git a/generated/googleapis/test/redis/v1_test.dart b/generated/googleapis/test/redis/v1_test.dart index 9a4ddd5..5537231 100644 --- a/generated/googleapis/test/redis/v1_test.dart +++ b/generated/googleapis/test/redis/v1_test.dart
@@ -141,14 +141,14 @@ buildCounterGcsSource--; } -buildUnnamed1400() { +buildUnnamed1430() { var o = new core.Map<core.String, api.GoogleCloudRedisV1ZoneMetadata>(); o["x"] = buildGoogleCloudRedisV1ZoneMetadata(); o["y"] = buildGoogleCloudRedisV1ZoneMetadata(); return o; } -checkUnnamed1400(core.Map<core.String, api.GoogleCloudRedisV1ZoneMetadata> o) { +checkUnnamed1430(core.Map<core.String, api.GoogleCloudRedisV1ZoneMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRedisV1ZoneMetadata(o["x"]); checkGoogleCloudRedisV1ZoneMetadata(o["y"]); @@ -159,7 +159,7 @@ var o = new api.GoogleCloudRedisV1LocationMetadata(); buildCounterGoogleCloudRedisV1LocationMetadata++; if (buildCounterGoogleCloudRedisV1LocationMetadata < 3) { - o.availableZones = buildUnnamed1400(); + o.availableZones = buildUnnamed1430(); } buildCounterGoogleCloudRedisV1LocationMetadata--; return o; @@ -169,7 +169,7 @@ api.GoogleCloudRedisV1LocationMetadata o) { buildCounterGoogleCloudRedisV1LocationMetadata++; if (buildCounterGoogleCloudRedisV1LocationMetadata < 3) { - checkUnnamed1400(o.availableZones); + checkUnnamed1430(o.availableZones); } buildCounterGoogleCloudRedisV1LocationMetadata--; } @@ -259,27 +259,27 @@ buildCounterInputConfig--; } -buildUnnamed1401() { +buildUnnamed1431() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1401(core.Map<core.String, core.String> o) { +checkUnnamed1431(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')); } -buildUnnamed1402() { +buildUnnamed1432() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1402(core.Map<core.String, core.String> o) { +checkUnnamed1432(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')); @@ -297,13 +297,13 @@ o.currentLocationId = "foo"; o.displayName = "foo"; o.host = "foo"; - o.labels = buildUnnamed1401(); + o.labels = buildUnnamed1431(); o.locationId = "foo"; o.memorySizeGb = 42; o.name = "foo"; o.persistenceIamIdentity = "foo"; o.port = 42; - o.redisConfigs = buildUnnamed1402(); + o.redisConfigs = buildUnnamed1432(); o.redisVersion = "foo"; o.reservedIpRange = "foo"; o.state = "foo"; @@ -324,13 +324,13 @@ unittest.expect(o.currentLocationId, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.host, unittest.equals('foo')); - checkUnnamed1401(o.labels); + checkUnnamed1431(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); unittest.expect(o.memorySizeGb, unittest.equals(42)); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.persistenceIamIdentity, unittest.equals('foo')); unittest.expect(o.port, unittest.equals(42)); - checkUnnamed1402(o.redisConfigs); + checkUnnamed1432(o.redisConfigs); unittest.expect(o.redisVersion, unittest.equals('foo')); unittest.expect(o.reservedIpRange, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); @@ -340,27 +340,27 @@ buildCounterInstance--; } -buildUnnamed1403() { +buildUnnamed1433() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed1403(core.List<api.Instance> o) { +checkUnnamed1433(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); } -buildUnnamed1404() { +buildUnnamed1434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1404(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')); @@ -371,9 +371,9 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed1403(); + o.instances = buildUnnamed1433(); o.nextPageToken = "foo"; - o.unreachable = buildUnnamed1404(); + o.unreachable = buildUnnamed1434(); } buildCounterListInstancesResponse--; return o; @@ -382,21 +382,21 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed1403(o.instances); + checkUnnamed1433(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1404(o.unreachable); + checkUnnamed1434(o.unreachable); } buildCounterListInstancesResponse--; } -buildUnnamed1405() { +buildUnnamed1435() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed1405(core.List<api.Location> o) { +checkUnnamed1435(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -407,7 +407,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed1405(); + o.locations = buildUnnamed1435(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -417,20 +417,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed1405(o.locations); + checkUnnamed1435(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed1406() { +buildUnnamed1436() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1406(core.List<api.Operation> o) { +checkUnnamed1436(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -442,7 +442,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1406(); + o.operations = buildUnnamed1436(); } buildCounterListOperationsResponse--; return o; @@ -452,25 +452,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1406(o.operations); + checkUnnamed1436(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1407() { +buildUnnamed1437() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1407(core.Map<core.String, core.String> o) { +checkUnnamed1437(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')); } -buildUnnamed1408() { +buildUnnamed1438() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -485,7 +485,7 @@ return o; } -checkUnnamed1408(core.Map<core.String, core.Object> o) { +checkUnnamed1438(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)); @@ -505,9 +505,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed1407(); + o.labels = buildUnnamed1437(); o.locationId = "foo"; - o.metadata = buildUnnamed1408(); + o.metadata = buildUnnamed1438(); o.name = "foo"; } buildCounterLocation--; @@ -518,15 +518,15 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed1407(o.labels); + checkUnnamed1437(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed1408(o.metadata); + checkUnnamed1438(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed1409() { +buildUnnamed1439() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -541,7 +541,7 @@ return o; } -checkUnnamed1409(core.Map<core.String, core.Object> o) { +checkUnnamed1439(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)); @@ -555,7 +555,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1410() { +buildUnnamed1440() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -570,7 +570,7 @@ return o; } -checkUnnamed1410(core.Map<core.String, core.Object> o) { +checkUnnamed1440(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)); @@ -591,9 +591,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1409(); + o.metadata = buildUnnamed1439(); o.name = "foo"; - o.response = buildUnnamed1410(); + o.response = buildUnnamed1440(); } buildCounterOperation--; return o; @@ -604,9 +604,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1409(o.metadata); + checkUnnamed1439(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1410(o.response); + checkUnnamed1440(o.response); } buildCounterOperation--; } @@ -630,7 +630,7 @@ buildCounterOutputConfig--; } -buildUnnamed1411() { +buildUnnamed1441() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -645,7 +645,7 @@ return o; } -checkUnnamed1411(core.Map<core.String, core.Object> o) { +checkUnnamed1441(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)); @@ -659,17 +659,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1412() { +buildUnnamed1442() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1411()); - o.add(buildUnnamed1411()); + o.add(buildUnnamed1441()); + o.add(buildUnnamed1441()); return o; } -checkUnnamed1412(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1442(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1411(o[0]); - checkUnnamed1411(o[1]); + checkUnnamed1441(o[0]); + checkUnnamed1441(o[1]); } core.int buildCounterStatus = 0; @@ -678,7 +678,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1412(); + o.details = buildUnnamed1442(); o.message = "foo"; } buildCounterStatus--; @@ -689,7 +689,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1412(o.details); + checkUnnamed1442(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -925,8 +925,8 @@ api.ProjectsLocationsResourceApi res = new api.RedisApi(mock).projects.locations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -960,9 +960,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -975,8 +975,8 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) {
diff --git a/generated/googleapis/test/remotebuildexecution/v2_test.dart b/generated/googleapis/test/remotebuildexecution/v2_test.dart index 1bb7e5f..77658e5 100644 --- a/generated/googleapis/test/remotebuildexecution/v2_test.dart +++ b/generated/googleapis/test/remotebuildexecution/v2_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1264() { +buildUnnamed1293() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1264(core.List<core.String> o) { +checkUnnamed1293(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -71,7 +71,7 @@ o.commandDigest = buildBuildBazelRemoteExecutionV2Digest(); o.doNotCache = true; o.inputRootDigest = buildBuildBazelRemoteExecutionV2Digest(); - o.outputNodeProperties = buildUnnamed1264(); + o.outputNodeProperties = buildUnnamed1293(); o.timeout = "foo"; } buildCounterBuildBazelRemoteExecutionV2Action--; @@ -85,7 +85,7 @@ checkBuildBazelRemoteExecutionV2Digest(o.commandDigest); unittest.expect(o.doNotCache, unittest.isTrue); checkBuildBazelRemoteExecutionV2Digest(o.inputRootDigest); - checkUnnamed1264(o.outputNodeProperties); + checkUnnamed1293(o.outputNodeProperties); unittest.expect(o.timeout, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2Action--; @@ -114,66 +114,66 @@ buildCounterBuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities--; } -buildUnnamed1265() { +buildUnnamed1294() { var o = new core.List<api.BuildBazelRemoteExecutionV2OutputDirectory>(); o.add(buildBuildBazelRemoteExecutionV2OutputDirectory()); o.add(buildBuildBazelRemoteExecutionV2OutputDirectory()); return o; } -checkUnnamed1265(core.List<api.BuildBazelRemoteExecutionV2OutputDirectory> o) { +checkUnnamed1294(core.List<api.BuildBazelRemoteExecutionV2OutputDirectory> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2OutputDirectory(o[0]); checkBuildBazelRemoteExecutionV2OutputDirectory(o[1]); } -buildUnnamed1266() { +buildUnnamed1295() { var o = new core.List<api.BuildBazelRemoteExecutionV2OutputSymlink>(); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); return o; } -checkUnnamed1266(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { +checkUnnamed1295(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2OutputSymlink(o[0]); checkBuildBazelRemoteExecutionV2OutputSymlink(o[1]); } -buildUnnamed1267() { +buildUnnamed1296() { var o = new core.List<api.BuildBazelRemoteExecutionV2OutputSymlink>(); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); return o; } -checkUnnamed1267(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { +checkUnnamed1296(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2OutputSymlink(o[0]); checkBuildBazelRemoteExecutionV2OutputSymlink(o[1]); } -buildUnnamed1268() { +buildUnnamed1297() { var o = new core.List<api.BuildBazelRemoteExecutionV2OutputFile>(); o.add(buildBuildBazelRemoteExecutionV2OutputFile()); o.add(buildBuildBazelRemoteExecutionV2OutputFile()); return o; } -checkUnnamed1268(core.List<api.BuildBazelRemoteExecutionV2OutputFile> o) { +checkUnnamed1297(core.List<api.BuildBazelRemoteExecutionV2OutputFile> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2OutputFile(o[0]); checkBuildBazelRemoteExecutionV2OutputFile(o[1]); } -buildUnnamed1269() { +buildUnnamed1298() { var o = new core.List<api.BuildBazelRemoteExecutionV2OutputSymlink>(); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); o.add(buildBuildBazelRemoteExecutionV2OutputSymlink()); return o; } -checkUnnamed1269(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { +checkUnnamed1298(core.List<api.BuildBazelRemoteExecutionV2OutputSymlink> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2OutputSymlink(o[0]); checkBuildBazelRemoteExecutionV2OutputSymlink(o[1]); @@ -187,11 +187,11 @@ o.executionMetadata = buildBuildBazelRemoteExecutionV2ExecutedActionMetadata(); o.exitCode = 42; - o.outputDirectories = buildUnnamed1265(); - o.outputDirectorySymlinks = buildUnnamed1266(); - o.outputFileSymlinks = buildUnnamed1267(); - o.outputFiles = buildUnnamed1268(); - o.outputSymlinks = buildUnnamed1269(); + o.outputDirectories = buildUnnamed1294(); + o.outputDirectorySymlinks = buildUnnamed1295(); + o.outputFileSymlinks = buildUnnamed1296(); + o.outputFiles = buildUnnamed1297(); + o.outputSymlinks = buildUnnamed1298(); o.stderrDigest = buildBuildBazelRemoteExecutionV2Digest(); o.stderrRaw = "foo"; o.stdoutDigest = buildBuildBazelRemoteExecutionV2Digest(); @@ -207,11 +207,11 @@ if (buildCounterBuildBazelRemoteExecutionV2ActionResult < 3) { checkBuildBazelRemoteExecutionV2ExecutedActionMetadata(o.executionMetadata); unittest.expect(o.exitCode, unittest.equals(42)); - checkUnnamed1265(o.outputDirectories); - checkUnnamed1266(o.outputDirectorySymlinks); - checkUnnamed1267(o.outputFileSymlinks); - checkUnnamed1268(o.outputFiles); - checkUnnamed1269(o.outputSymlinks); + checkUnnamed1294(o.outputDirectories); + checkUnnamed1295(o.outputDirectorySymlinks); + checkUnnamed1296(o.outputFileSymlinks); + checkUnnamed1297(o.outputFiles); + checkUnnamed1298(o.outputSymlinks); checkBuildBazelRemoteExecutionV2Digest(o.stderrDigest); unittest.expect(o.stderrRaw, unittest.equals('foo')); checkBuildBazelRemoteExecutionV2Digest(o.stdoutDigest); @@ -220,14 +220,14 @@ buildCounterBuildBazelRemoteExecutionV2ActionResult--; } -buildUnnamed1270() { +buildUnnamed1299() { var o = new core.List<api.BuildBazelRemoteExecutionV2Digest>(); o.add(buildBuildBazelRemoteExecutionV2Digest()); o.add(buildBuildBazelRemoteExecutionV2Digest()); return o; } -checkUnnamed1270(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { +checkUnnamed1299(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2Digest(o[0]); checkBuildBazelRemoteExecutionV2Digest(o[1]); @@ -238,7 +238,7 @@ var o = new api.BuildBazelRemoteExecutionV2BatchReadBlobsRequest(); buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest < 3) { - o.digests = buildUnnamed1270(); + o.digests = buildUnnamed1299(); } buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest--; return o; @@ -248,12 +248,12 @@ api.BuildBazelRemoteExecutionV2BatchReadBlobsRequest o) { buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest < 3) { - checkUnnamed1270(o.digests); + checkUnnamed1299(o.digests); } buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsRequest--; } -buildUnnamed1271() { +buildUnnamed1300() { var o = new core .List<api.BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse>(); o.add(buildBuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse()); @@ -261,7 +261,7 @@ return o; } -checkUnnamed1271( +checkUnnamed1300( core.List<api.BuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse> o) { unittest.expect(o, unittest.hasLength(2)); @@ -274,7 +274,7 @@ var o = new api.BuildBazelRemoteExecutionV2BatchReadBlobsResponse(); buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse < 3) { - o.responses = buildUnnamed1271(); + o.responses = buildUnnamed1300(); } buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse--; return o; @@ -284,7 +284,7 @@ api.BuildBazelRemoteExecutionV2BatchReadBlobsResponse o) { buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse < 3) { - checkUnnamed1271(o.responses); + checkUnnamed1300(o.responses); } buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponse--; } @@ -316,7 +316,7 @@ buildCounterBuildBazelRemoteExecutionV2BatchReadBlobsResponseResponse--; } -buildUnnamed1272() { +buildUnnamed1301() { var o = new core .List<api.BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest>(); o.add(buildBuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest()); @@ -324,7 +324,7 @@ return o; } -checkUnnamed1272( +checkUnnamed1301( core.List<api.BuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest> o) { unittest.expect(o, unittest.hasLength(2)); @@ -337,7 +337,7 @@ var o = new api.BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest(); buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest < 3) { - o.requests = buildUnnamed1272(); + o.requests = buildUnnamed1301(); } buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest--; return o; @@ -347,7 +347,7 @@ api.BuildBazelRemoteExecutionV2BatchUpdateBlobsRequest o) { buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest < 3) { - checkUnnamed1272(o.requests); + checkUnnamed1301(o.requests); } buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequest--; } @@ -377,7 +377,7 @@ buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsRequestRequest--; } -buildUnnamed1273() { +buildUnnamed1302() { var o = new core .List<api.BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse>(); o.add(buildBuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse()); @@ -385,7 +385,7 @@ return o; } -checkUnnamed1273( +checkUnnamed1302( core.List<api.BuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse> o) { unittest.expect(o, unittest.hasLength(2)); @@ -398,7 +398,7 @@ var o = new api.BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse(); buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse < 3) { - o.responses = buildUnnamed1273(); + o.responses = buildUnnamed1302(); } buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse--; return o; @@ -408,7 +408,7 @@ api.BuildBazelRemoteExecutionV2BatchUpdateBlobsResponse o) { buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse < 3) { - checkUnnamed1273(o.responses); + checkUnnamed1302(o.responses); } buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponse--; } @@ -438,14 +438,14 @@ buildCounterBuildBazelRemoteExecutionV2BatchUpdateBlobsResponseResponse--; } -buildUnnamed1274() { +buildUnnamed1303() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1274(core.List<core.String> o) { +checkUnnamed1303(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -460,7 +460,7 @@ buildBuildBazelRemoteExecutionV2ActionCacheUpdateCapabilities(); o.cachePriorityCapabilities = buildBuildBazelRemoteExecutionV2PriorityCapabilities(); - o.digestFunction = buildUnnamed1274(); + o.digestFunction = buildUnnamed1303(); o.maxBatchTotalSizeBytes = "foo"; o.symlinkAbsolutePathStrategy = "foo"; } @@ -476,27 +476,27 @@ o.actionCacheUpdateCapabilities); checkBuildBazelRemoteExecutionV2PriorityCapabilities( o.cachePriorityCapabilities); - checkUnnamed1274(o.digestFunction); + checkUnnamed1303(o.digestFunction); unittest.expect(o.maxBatchTotalSizeBytes, unittest.equals('foo')); unittest.expect(o.symlinkAbsolutePathStrategy, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2CacheCapabilities--; } -buildUnnamed1275() { +buildUnnamed1304() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1275(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')); } -buildUnnamed1276() { +buildUnnamed1305() { var o = new core .List<api.BuildBazelRemoteExecutionV2CommandEnvironmentVariable>(); o.add(buildBuildBazelRemoteExecutionV2CommandEnvironmentVariable()); @@ -504,47 +504,47 @@ return o; } -checkUnnamed1276( +checkUnnamed1305( core.List<api.BuildBazelRemoteExecutionV2CommandEnvironmentVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2CommandEnvironmentVariable(o[0]); checkBuildBazelRemoteExecutionV2CommandEnvironmentVariable(o[1]); } -buildUnnamed1277() { +buildUnnamed1306() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1277(core.List<core.String> o) { +checkUnnamed1306(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1278() { +buildUnnamed1307() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1278(core.List<core.String> o) { +checkUnnamed1307(core.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() { +buildUnnamed1308() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1279(core.List<core.String> 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')); @@ -555,11 +555,11 @@ var o = new api.BuildBazelRemoteExecutionV2Command(); buildCounterBuildBazelRemoteExecutionV2Command++; if (buildCounterBuildBazelRemoteExecutionV2Command < 3) { - o.arguments = buildUnnamed1275(); - o.environmentVariables = buildUnnamed1276(); - o.outputDirectories = buildUnnamed1277(); - o.outputFiles = buildUnnamed1278(); - o.outputPaths = buildUnnamed1279(); + o.arguments = buildUnnamed1304(); + o.environmentVariables = buildUnnamed1305(); + o.outputDirectories = buildUnnamed1306(); + o.outputFiles = buildUnnamed1307(); + o.outputPaths = buildUnnamed1308(); o.platform = buildBuildBazelRemoteExecutionV2Platform(); o.workingDirectory = "foo"; } @@ -571,11 +571,11 @@ api.BuildBazelRemoteExecutionV2Command o) { buildCounterBuildBazelRemoteExecutionV2Command++; if (buildCounterBuildBazelRemoteExecutionV2Command < 3) { - checkUnnamed1275(o.arguments); - checkUnnamed1276(o.environmentVariables); - checkUnnamed1277(o.outputDirectories); - checkUnnamed1278(o.outputFiles); - checkUnnamed1279(o.outputPaths); + checkUnnamed1304(o.arguments); + checkUnnamed1305(o.environmentVariables); + checkUnnamed1306(o.outputDirectories); + checkUnnamed1307(o.outputFiles); + checkUnnamed1308(o.outputPaths); checkBuildBazelRemoteExecutionV2Platform(o.platform); unittest.expect(o.workingDirectory, unittest.equals('foo')); } @@ -626,53 +626,53 @@ buildCounterBuildBazelRemoteExecutionV2Digest--; } -buildUnnamed1280() { +buildUnnamed1309() { var o = new core.List<api.BuildBazelRemoteExecutionV2DirectoryNode>(); o.add(buildBuildBazelRemoteExecutionV2DirectoryNode()); o.add(buildBuildBazelRemoteExecutionV2DirectoryNode()); return o; } -checkUnnamed1280(core.List<api.BuildBazelRemoteExecutionV2DirectoryNode> o) { +checkUnnamed1309(core.List<api.BuildBazelRemoteExecutionV2DirectoryNode> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2DirectoryNode(o[0]); checkBuildBazelRemoteExecutionV2DirectoryNode(o[1]); } -buildUnnamed1281() { +buildUnnamed1310() { var o = new core.List<api.BuildBazelRemoteExecutionV2FileNode>(); o.add(buildBuildBazelRemoteExecutionV2FileNode()); o.add(buildBuildBazelRemoteExecutionV2FileNode()); return o; } -checkUnnamed1281(core.List<api.BuildBazelRemoteExecutionV2FileNode> o) { +checkUnnamed1310(core.List<api.BuildBazelRemoteExecutionV2FileNode> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2FileNode(o[0]); checkBuildBazelRemoteExecutionV2FileNode(o[1]); } -buildUnnamed1282() { +buildUnnamed1311() { var o = new core.List<api.BuildBazelRemoteExecutionV2NodeProperty>(); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); return o; } -checkUnnamed1282(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { +checkUnnamed1311(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2NodeProperty(o[0]); checkBuildBazelRemoteExecutionV2NodeProperty(o[1]); } -buildUnnamed1283() { +buildUnnamed1312() { var o = new core.List<api.BuildBazelRemoteExecutionV2SymlinkNode>(); o.add(buildBuildBazelRemoteExecutionV2SymlinkNode()); o.add(buildBuildBazelRemoteExecutionV2SymlinkNode()); return o; } -checkUnnamed1283(core.List<api.BuildBazelRemoteExecutionV2SymlinkNode> o) { +checkUnnamed1312(core.List<api.BuildBazelRemoteExecutionV2SymlinkNode> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2SymlinkNode(o[0]); checkBuildBazelRemoteExecutionV2SymlinkNode(o[1]); @@ -683,10 +683,10 @@ var o = new api.BuildBazelRemoteExecutionV2Directory(); buildCounterBuildBazelRemoteExecutionV2Directory++; if (buildCounterBuildBazelRemoteExecutionV2Directory < 3) { - o.directories = buildUnnamed1280(); - o.files = buildUnnamed1281(); - o.nodeProperties = buildUnnamed1282(); - o.symlinks = buildUnnamed1283(); + o.directories = buildUnnamed1309(); + o.files = buildUnnamed1310(); + o.nodeProperties = buildUnnamed1311(); + o.symlinks = buildUnnamed1312(); } buildCounterBuildBazelRemoteExecutionV2Directory--; return o; @@ -696,10 +696,10 @@ api.BuildBazelRemoteExecutionV2Directory o) { buildCounterBuildBazelRemoteExecutionV2Directory++; if (buildCounterBuildBazelRemoteExecutionV2Directory < 3) { - checkUnnamed1280(o.directories); - checkUnnamed1281(o.files); - checkUnnamed1282(o.nodeProperties); - checkUnnamed1283(o.symlinks); + checkUnnamed1309(o.directories); + checkUnnamed1310(o.files); + checkUnnamed1311(o.nodeProperties); + checkUnnamed1312(o.symlinks); } buildCounterBuildBazelRemoteExecutionV2Directory--; } @@ -778,14 +778,14 @@ buildCounterBuildBazelRemoteExecutionV2ExecuteRequest--; } -buildUnnamed1284() { +buildUnnamed1313() { var o = new core.Map<core.String, api.BuildBazelRemoteExecutionV2LogFile>(); o["x"] = buildBuildBazelRemoteExecutionV2LogFile(); o["y"] = buildBuildBazelRemoteExecutionV2LogFile(); return o; } -checkUnnamed1284( +checkUnnamed1313( core.Map<core.String, api.BuildBazelRemoteExecutionV2LogFile> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2LogFile(o["x"]); @@ -800,7 +800,7 @@ o.cachedResult = true; o.message = "foo"; o.result = buildBuildBazelRemoteExecutionV2ActionResult(); - o.serverLogs = buildUnnamed1284(); + o.serverLogs = buildUnnamed1313(); o.status = buildGoogleRpcStatus(); } buildCounterBuildBazelRemoteExecutionV2ExecuteResponse--; @@ -814,7 +814,7 @@ unittest.expect(o.cachedResult, unittest.isTrue); unittest.expect(o.message, unittest.equals('foo')); checkBuildBazelRemoteExecutionV2ActionResult(o.result); - checkUnnamed1284(o.serverLogs); + checkUnnamed1313(o.serverLogs); checkGoogleRpcStatus(o.status); } buildCounterBuildBazelRemoteExecutionV2ExecuteResponse--; @@ -858,14 +858,14 @@ buildCounterBuildBazelRemoteExecutionV2ExecutedActionMetadata--; } -buildUnnamed1285() { +buildUnnamed1314() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1285(core.List<core.String> o) { +checkUnnamed1314(core.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 @@ o.execEnabled = true; o.executionPriorityCapabilities = buildBuildBazelRemoteExecutionV2PriorityCapabilities(); - o.supportedNodeProperties = buildUnnamed1285(); + o.supportedNodeProperties = buildUnnamed1314(); } buildCounterBuildBazelRemoteExecutionV2ExecutionCapabilities--; return o; @@ -894,7 +894,7 @@ unittest.expect(o.execEnabled, unittest.isTrue); checkBuildBazelRemoteExecutionV2PriorityCapabilities( o.executionPriorityCapabilities); - checkUnnamed1285(o.supportedNodeProperties); + checkUnnamed1314(o.supportedNodeProperties); } buildCounterBuildBazelRemoteExecutionV2ExecutionCapabilities--; } @@ -919,14 +919,14 @@ buildCounterBuildBazelRemoteExecutionV2ExecutionPolicy--; } -buildUnnamed1286() { +buildUnnamed1315() { var o = new core.List<api.BuildBazelRemoteExecutionV2NodeProperty>(); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); return o; } -checkUnnamed1286(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { +checkUnnamed1315(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2NodeProperty(o[0]); checkBuildBazelRemoteExecutionV2NodeProperty(o[1]); @@ -940,7 +940,7 @@ o.digest = buildBuildBazelRemoteExecutionV2Digest(); o.isExecutable = true; o.name = "foo"; - o.nodeProperties = buildUnnamed1286(); + o.nodeProperties = buildUnnamed1315(); } buildCounterBuildBazelRemoteExecutionV2FileNode--; return o; @@ -953,19 +953,19 @@ checkBuildBazelRemoteExecutionV2Digest(o.digest); unittest.expect(o.isExecutable, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1286(o.nodeProperties); + checkUnnamed1315(o.nodeProperties); } buildCounterBuildBazelRemoteExecutionV2FileNode--; } -buildUnnamed1287() { +buildUnnamed1316() { var o = new core.List<api.BuildBazelRemoteExecutionV2Digest>(); o.add(buildBuildBazelRemoteExecutionV2Digest()); o.add(buildBuildBazelRemoteExecutionV2Digest()); return o; } -checkUnnamed1287(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { +checkUnnamed1316(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2Digest(o[0]); checkBuildBazelRemoteExecutionV2Digest(o[1]); @@ -976,7 +976,7 @@ var o = new api.BuildBazelRemoteExecutionV2FindMissingBlobsRequest(); buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest < 3) { - o.blobDigests = buildUnnamed1287(); + o.blobDigests = buildUnnamed1316(); } buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest--; return o; @@ -986,19 +986,19 @@ api.BuildBazelRemoteExecutionV2FindMissingBlobsRequest o) { buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest++; if (buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest < 3) { - checkUnnamed1287(o.blobDigests); + checkUnnamed1316(o.blobDigests); } buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsRequest--; } -buildUnnamed1288() { +buildUnnamed1317() { var o = new core.List<api.BuildBazelRemoteExecutionV2Digest>(); o.add(buildBuildBazelRemoteExecutionV2Digest()); o.add(buildBuildBazelRemoteExecutionV2Digest()); return o; } -checkUnnamed1288(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { +checkUnnamed1317(core.List<api.BuildBazelRemoteExecutionV2Digest> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2Digest(o[0]); checkBuildBazelRemoteExecutionV2Digest(o[1]); @@ -1009,7 +1009,7 @@ var o = new api.BuildBazelRemoteExecutionV2FindMissingBlobsResponse(); buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse < 3) { - o.missingBlobDigests = buildUnnamed1288(); + o.missingBlobDigests = buildUnnamed1317(); } buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse--; return o; @@ -1019,19 +1019,19 @@ api.BuildBazelRemoteExecutionV2FindMissingBlobsResponse o) { buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse++; if (buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse < 3) { - checkUnnamed1288(o.missingBlobDigests); + checkUnnamed1317(o.missingBlobDigests); } buildCounterBuildBazelRemoteExecutionV2FindMissingBlobsResponse--; } -buildUnnamed1289() { +buildUnnamed1318() { var o = new core.List<api.BuildBazelRemoteExecutionV2Directory>(); o.add(buildBuildBazelRemoteExecutionV2Directory()); o.add(buildBuildBazelRemoteExecutionV2Directory()); return o; } -checkUnnamed1289(core.List<api.BuildBazelRemoteExecutionV2Directory> o) { +checkUnnamed1318(core.List<api.BuildBazelRemoteExecutionV2Directory> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2Directory(o[0]); checkBuildBazelRemoteExecutionV2Directory(o[1]); @@ -1042,7 +1042,7 @@ var o = new api.BuildBazelRemoteExecutionV2GetTreeResponse(); buildCounterBuildBazelRemoteExecutionV2GetTreeResponse++; if (buildCounterBuildBazelRemoteExecutionV2GetTreeResponse < 3) { - o.directories = buildUnnamed1289(); + o.directories = buildUnnamed1318(); o.nextPageToken = "foo"; } buildCounterBuildBazelRemoteExecutionV2GetTreeResponse--; @@ -1053,7 +1053,7 @@ api.BuildBazelRemoteExecutionV2GetTreeResponse o) { buildCounterBuildBazelRemoteExecutionV2GetTreeResponse++; if (buildCounterBuildBazelRemoteExecutionV2GetTreeResponse < 3) { - checkUnnamed1289(o.directories); + checkUnnamed1318(o.directories); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2GetTreeResponse--; @@ -1125,14 +1125,14 @@ buildCounterBuildBazelRemoteExecutionV2OutputDirectory--; } -buildUnnamed1290() { +buildUnnamed1319() { var o = new core.List<api.BuildBazelRemoteExecutionV2NodeProperty>(); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); return o; } -checkUnnamed1290(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { +checkUnnamed1319(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2NodeProperty(o[0]); checkBuildBazelRemoteExecutionV2NodeProperty(o[1]); @@ -1146,7 +1146,7 @@ o.contents = "foo"; o.digest = buildBuildBazelRemoteExecutionV2Digest(); o.isExecutable = true; - o.nodeProperties = buildUnnamed1290(); + o.nodeProperties = buildUnnamed1319(); o.path = "foo"; } buildCounterBuildBazelRemoteExecutionV2OutputFile--; @@ -1160,20 +1160,20 @@ unittest.expect(o.contents, unittest.equals('foo')); checkBuildBazelRemoteExecutionV2Digest(o.digest); unittest.expect(o.isExecutable, unittest.isTrue); - checkUnnamed1290(o.nodeProperties); + checkUnnamed1319(o.nodeProperties); unittest.expect(o.path, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2OutputFile--; } -buildUnnamed1291() { +buildUnnamed1320() { var o = new core.List<api.BuildBazelRemoteExecutionV2NodeProperty>(); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); return o; } -checkUnnamed1291(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { +checkUnnamed1320(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2NodeProperty(o[0]); checkBuildBazelRemoteExecutionV2NodeProperty(o[1]); @@ -1184,7 +1184,7 @@ var o = new api.BuildBazelRemoteExecutionV2OutputSymlink(); buildCounterBuildBazelRemoteExecutionV2OutputSymlink++; if (buildCounterBuildBazelRemoteExecutionV2OutputSymlink < 3) { - o.nodeProperties = buildUnnamed1291(); + o.nodeProperties = buildUnnamed1320(); o.path = "foo"; o.target = "foo"; } @@ -1196,21 +1196,21 @@ api.BuildBazelRemoteExecutionV2OutputSymlink o) { buildCounterBuildBazelRemoteExecutionV2OutputSymlink++; if (buildCounterBuildBazelRemoteExecutionV2OutputSymlink < 3) { - checkUnnamed1291(o.nodeProperties); + checkUnnamed1320(o.nodeProperties); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2OutputSymlink--; } -buildUnnamed1292() { +buildUnnamed1321() { var o = new core.List<api.BuildBazelRemoteExecutionV2PlatformProperty>(); o.add(buildBuildBazelRemoteExecutionV2PlatformProperty()); o.add(buildBuildBazelRemoteExecutionV2PlatformProperty()); return o; } -checkUnnamed1292(core.List<api.BuildBazelRemoteExecutionV2PlatformProperty> o) { +checkUnnamed1321(core.List<api.BuildBazelRemoteExecutionV2PlatformProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2PlatformProperty(o[0]); checkBuildBazelRemoteExecutionV2PlatformProperty(o[1]); @@ -1221,7 +1221,7 @@ var o = new api.BuildBazelRemoteExecutionV2Platform(); buildCounterBuildBazelRemoteExecutionV2Platform++; if (buildCounterBuildBazelRemoteExecutionV2Platform < 3) { - o.properties = buildUnnamed1292(); + o.properties = buildUnnamed1321(); } buildCounterBuildBazelRemoteExecutionV2Platform--; return o; @@ -1231,7 +1231,7 @@ api.BuildBazelRemoteExecutionV2Platform o) { buildCounterBuildBazelRemoteExecutionV2Platform++; if (buildCounterBuildBazelRemoteExecutionV2Platform < 3) { - checkUnnamed1292(o.properties); + checkUnnamed1321(o.properties); } buildCounterBuildBazelRemoteExecutionV2Platform--; } @@ -1258,7 +1258,7 @@ buildCounterBuildBazelRemoteExecutionV2PlatformProperty--; } -buildUnnamed1293() { +buildUnnamed1322() { var o = new core .List<api.BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange>(); o.add(buildBuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange()); @@ -1266,7 +1266,7 @@ return o; } -checkUnnamed1293( +checkUnnamed1322( core.List<api.BuildBazelRemoteExecutionV2PriorityCapabilitiesPriorityRange> o) { unittest.expect(o, unittest.hasLength(2)); @@ -1279,7 +1279,7 @@ var o = new api.BuildBazelRemoteExecutionV2PriorityCapabilities(); buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities++; if (buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities < 3) { - o.priorities = buildUnnamed1293(); + o.priorities = buildUnnamed1322(); } buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities--; return o; @@ -1289,7 +1289,7 @@ api.BuildBazelRemoteExecutionV2PriorityCapabilities o) { buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities++; if (buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities < 3) { - checkUnnamed1293(o.priorities); + checkUnnamed1322(o.priorities); } buildCounterBuildBazelRemoteExecutionV2PriorityCapabilities--; } @@ -1397,14 +1397,14 @@ buildCounterBuildBazelRemoteExecutionV2ServerCapabilities--; } -buildUnnamed1294() { +buildUnnamed1323() { var o = new core.List<api.BuildBazelRemoteExecutionV2NodeProperty>(); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); o.add(buildBuildBazelRemoteExecutionV2NodeProperty()); return o; } -checkUnnamed1294(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { +checkUnnamed1323(core.List<api.BuildBazelRemoteExecutionV2NodeProperty> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2NodeProperty(o[0]); checkBuildBazelRemoteExecutionV2NodeProperty(o[1]); @@ -1416,7 +1416,7 @@ buildCounterBuildBazelRemoteExecutionV2SymlinkNode++; if (buildCounterBuildBazelRemoteExecutionV2SymlinkNode < 3) { o.name = "foo"; - o.nodeProperties = buildUnnamed1294(); + o.nodeProperties = buildUnnamed1323(); o.target = "foo"; } buildCounterBuildBazelRemoteExecutionV2SymlinkNode--; @@ -1428,7 +1428,7 @@ buildCounterBuildBazelRemoteExecutionV2SymlinkNode++; if (buildCounterBuildBazelRemoteExecutionV2SymlinkNode < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1294(o.nodeProperties); + checkUnnamed1323(o.nodeProperties); unittest.expect(o.target, unittest.equals('foo')); } buildCounterBuildBazelRemoteExecutionV2SymlinkNode--; @@ -1456,14 +1456,14 @@ buildCounterBuildBazelRemoteExecutionV2ToolDetails--; } -buildUnnamed1295() { +buildUnnamed1324() { var o = new core.List<api.BuildBazelRemoteExecutionV2Directory>(); o.add(buildBuildBazelRemoteExecutionV2Directory()); o.add(buildBuildBazelRemoteExecutionV2Directory()); return o; } -checkUnnamed1295(core.List<api.BuildBazelRemoteExecutionV2Directory> o) { +checkUnnamed1324(core.List<api.BuildBazelRemoteExecutionV2Directory> o) { unittest.expect(o, unittest.hasLength(2)); checkBuildBazelRemoteExecutionV2Directory(o[0]); checkBuildBazelRemoteExecutionV2Directory(o[1]); @@ -1474,7 +1474,7 @@ var o = new api.BuildBazelRemoteExecutionV2Tree(); buildCounterBuildBazelRemoteExecutionV2Tree++; if (buildCounterBuildBazelRemoteExecutionV2Tree < 3) { - o.children = buildUnnamed1295(); + o.children = buildUnnamed1324(); o.root = buildBuildBazelRemoteExecutionV2Directory(); } buildCounterBuildBazelRemoteExecutionV2Tree--; @@ -1484,7 +1484,7 @@ checkBuildBazelRemoteExecutionV2Tree(api.BuildBazelRemoteExecutionV2Tree o) { buildCounterBuildBazelRemoteExecutionV2Tree++; if (buildCounterBuildBazelRemoteExecutionV2Tree < 3) { - checkUnnamed1295(o.children); + checkUnnamed1324(o.children); checkBuildBazelRemoteExecutionV2Directory(o.root); } buildCounterBuildBazelRemoteExecutionV2Tree--; @@ -1827,6 +1827,101 @@ } core.int + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy = 0; +buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy() { + var o = new api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy(); + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy < + 3) { + o.containerImageSources = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerAddCapabilities = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerChrootPath = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerNetwork = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerPrivileged = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerRunAsRoot = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerRuntime = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.dockerSiblingContainers = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + o.linuxIsolation = "foo"; + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy--; + return o; +} + +checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy( + api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy o) { + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy < + 3) { + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.containerImageSources); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerAddCapabilities); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerChrootPath); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerNetwork); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerPrivileged); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerRunAsRoot); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerRuntime); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + o.dockerSiblingContainers); + unittest.expect(o.linuxIsolation, unittest.equals('foo')); + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy--; +} + +buildUnnamed1325() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed1325(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +core.int + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature = + 0; +buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature() { + var o = new api + .GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature < + 3) { + o.allowedValues = buildUnnamed1325(); + o.policy = "foo"; + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature--; + return o; +} + +checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature o) { + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature < + 3) { + checkUnnamed1325(o.allowedValues); + unittest.expect(o.policy, unittest.equals('foo')); + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature--; +} + +core.int buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest = 0; buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest() { @@ -1881,6 +1976,8 @@ var o = new api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance(); buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance < 3) { + o.featurePolicy = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy(); o.location = "foo"; o.loggingEnabled = true; o.name = "foo"; @@ -1894,6 +1991,8 @@ api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance o) { buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance < 3) { + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy( + o.featurePolicy); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.loggingEnabled, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); @@ -1927,7 +2026,7 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesRequest--; } -buildUnnamed1296() { +buildUnnamed1326() { var o = new core .List<api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance>(); o.add(buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance()); @@ -1935,7 +2034,7 @@ return o; } -checkUnnamed1296( +checkUnnamed1326( core.List<api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaInstance(o[0]); @@ -1951,7 +2050,7 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse < 3) { - o.instances = buildUnnamed1296(); + o.instances = buildUnnamed1326(); } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse--; return o; @@ -1962,7 +2061,7 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse < 3) { - checkUnnamed1296(o.instances); + checkUnnamed1326(o.instances); } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListInstancesResponse--; } @@ -1995,7 +2094,7 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsRequest--; } -buildUnnamed1297() { +buildUnnamed1327() { var o = new core .List<api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool>(); o.add(buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool()); @@ -2003,7 +2102,7 @@ return o; } -checkUnnamed1297( +checkUnnamed1327( core.List<api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool(o[0]); @@ -2019,7 +2118,7 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse < 3) { - o.workerPools = buildUnnamed1297(); + o.workerPools = buildUnnamed1327(); } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse--; return o; @@ -2031,12 +2130,39 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse++; if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse < 3) { - checkUnnamed1297(o.workerPools); + checkUnnamed1327(o.workerPools); } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaListWorkerPoolsResponse--; } core.int + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig = + 0; +buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig() { + var o = + new api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig(); + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig < + 3) { + o.nodeType = "foo"; + o.nodesZone = "foo"; + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig--; + return o; +} + +checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig( + api.GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig o) { + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig++; + if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig < + 3) { + unittest.expect(o.nodeType, unittest.equals('foo')); + unittest.expect(o.nodesZone, unittest.equals('foo')); + } + buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig--; +} + +core.int buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest = 0; buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest() { @@ -2096,14 +2222,14 @@ buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateWorkerPoolRequest--; } -buildUnnamed1298() { +buildUnnamed1328() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1298(core.Map<core.String, core.String> o) { +checkUnnamed1328(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')); @@ -2120,12 +2246,15 @@ buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaAcceleratorConfig(); o.diskSizeGb = "foo"; o.diskType = "foo"; - o.labels = buildUnnamed1298(); + o.labels = buildUnnamed1328(); o.machineType = "foo"; o.maxConcurrentActions = "foo"; o.minCpuPlatform = "foo"; o.networkAccess = "foo"; o.reserved = true; + o.soleTenancy = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig(); + o.vmImage = "foo"; } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig--; return o; @@ -2140,12 +2269,15 @@ o.accelerator); unittest.expect(o.diskSizeGb, unittest.equals('foo')); unittest.expect(o.diskType, unittest.equals('foo')); - checkUnnamed1298(o.labels); + checkUnnamed1328(o.labels); unittest.expect(o.machineType, unittest.equals('foo')); unittest.expect(o.maxConcurrentActions, unittest.equals('foo')); unittest.expect(o.minCpuPlatform, unittest.equals('foo')); unittest.expect(o.networkAccess, unittest.equals('foo')); unittest.expect(o.reserved, unittest.isTrue); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig( + o.soleTenancy); + unittest.expect(o.vmImage, unittest.equals('foo')); } buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig--; } @@ -2159,6 +2291,7 @@ 3) { o.autoscale = buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale(); + o.channel = "foo"; o.name = "foo"; o.state = "foo"; o.workerConfig = @@ -2175,6 +2308,7 @@ if (buildCounterGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerPool < 3) { checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaAutoscale(o.autoscale); + unittest.expect(o.channel, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaWorkerConfig( @@ -2272,7 +2406,7 @@ buildCounterGoogleDevtoolsRemoteworkersV1test2CommandOverhead--; } -buildUnnamed1299() { +buildUnnamed1329() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2287,7 +2421,7 @@ return o; } -checkUnnamed1299(core.Map<core.String, core.Object> o) { +checkUnnamed1329(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)); @@ -2301,17 +2435,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1300() { +buildUnnamed1330() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1299()); - o.add(buildUnnamed1299()); + o.add(buildUnnamed1329()); + o.add(buildUnnamed1329()); return o; } -checkUnnamed1300(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1330(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1299(o[0]); - checkUnnamed1299(o[1]); + checkUnnamed1329(o[0]); + checkUnnamed1329(o[1]); } core.int buildCounterGoogleDevtoolsRemoteworkersV1test2CommandResult = 0; @@ -2321,7 +2455,7 @@ if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandResult < 3) { o.duration = "foo"; o.exitCode = 42; - o.metadata = buildUnnamed1300(); + o.metadata = buildUnnamed1330(); o.outputs = buildGoogleDevtoolsRemoteworkersV1test2Digest(); o.overhead = "foo"; o.status = buildGoogleRpcStatus(); @@ -2336,7 +2470,7 @@ if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandResult < 3) { unittest.expect(o.duration, unittest.equals('foo')); unittest.expect(o.exitCode, unittest.equals(42)); - checkUnnamed1300(o.metadata); + checkUnnamed1330(o.metadata); checkGoogleDevtoolsRemoteworkersV1test2Digest(o.outputs); unittest.expect(o.overhead, unittest.equals('foo')); checkGoogleRpcStatus(o.status); @@ -2370,20 +2504,20 @@ buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTask--; } -buildUnnamed1301() { +buildUnnamed1331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1301(core.List<core.String> o) { +checkUnnamed1331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1302() { +buildUnnamed1332() { var o = new core.List< api.GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable>(); o.add( @@ -2393,7 +2527,7 @@ return o; } -checkUnnamed1302( +checkUnnamed1332( core.List< api.GoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable> o) { @@ -2404,27 +2538,27 @@ o[1]); } -buildUnnamed1303() { +buildUnnamed1333() { var o = new core.List<api.GoogleDevtoolsRemoteworkersV1test2Digest>(); o.add(buildGoogleDevtoolsRemoteworkersV1test2Digest()); o.add(buildGoogleDevtoolsRemoteworkersV1test2Digest()); return o; } -checkUnnamed1303(core.List<api.GoogleDevtoolsRemoteworkersV1test2Digest> o) { +checkUnnamed1333(core.List<api.GoogleDevtoolsRemoteworkersV1test2Digest> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemoteworkersV1test2Digest(o[0]); checkGoogleDevtoolsRemoteworkersV1test2Digest(o[1]); } -buildUnnamed1304() { +buildUnnamed1334() { var o = new core.List<api.GoogleDevtoolsRemoteworkersV1test2Blob>(); o.add(buildGoogleDevtoolsRemoteworkersV1test2Blob()); o.add(buildGoogleDevtoolsRemoteworkersV1test2Blob()); return o; } -checkUnnamed1304(core.List<api.GoogleDevtoolsRemoteworkersV1test2Blob> o) { +checkUnnamed1334(core.List<api.GoogleDevtoolsRemoteworkersV1test2Blob> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemoteworkersV1test2Blob(o[0]); checkGoogleDevtoolsRemoteworkersV1test2Blob(o[1]); @@ -2435,10 +2569,10 @@ var o = new api.GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs(); buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs < 3) { - o.arguments = buildUnnamed1301(); - o.environmentVariables = buildUnnamed1302(); - o.files = buildUnnamed1303(); - o.inlineBlobs = buildUnnamed1304(); + o.arguments = buildUnnamed1331(); + o.environmentVariables = buildUnnamed1332(); + o.files = buildUnnamed1333(); + o.inlineBlobs = buildUnnamed1334(); o.workingDirectory = "foo"; } buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs--; @@ -2449,10 +2583,10 @@ api.GoogleDevtoolsRemoteworkersV1test2CommandTaskInputs o) { buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs < 3) { - checkUnnamed1301(o.arguments); - checkUnnamed1302(o.environmentVariables); - checkUnnamed1303(o.files); - checkUnnamed1304(o.inlineBlobs); + checkUnnamed1331(o.arguments); + checkUnnamed1332(o.environmentVariables); + checkUnnamed1333(o.files); + checkUnnamed1334(o.inlineBlobs); unittest.expect(o.workingDirectory, unittest.equals('foo')); } buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputs--; @@ -2486,27 +2620,27 @@ buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskInputsEnvironmentVariable--; } -buildUnnamed1305() { +buildUnnamed1335() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1305(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')); } -buildUnnamed1306() { +buildUnnamed1336() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1306(core.List<core.String> o) { +checkUnnamed1336(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2517,8 +2651,8 @@ var o = new api.GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs(); buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs < 3) { - o.directories = buildUnnamed1305(); - o.files = buildUnnamed1306(); + o.directories = buildUnnamed1335(); + o.files = buildUnnamed1336(); o.stderrDestination = "foo"; o.stdoutDestination = "foo"; } @@ -2530,8 +2664,8 @@ api.GoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs o) { buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2CommandTaskOutputs < 3) { - checkUnnamed1305(o.directories); - checkUnnamed1306(o.files); + checkUnnamed1335(o.directories); + checkUnnamed1336(o.files); unittest.expect(o.stderrDestination, unittest.equals('foo')); unittest.expect(o.stdoutDestination, unittest.equals('foo')); } @@ -2584,7 +2718,7 @@ buildCounterGoogleDevtoolsRemoteworkersV1test2Digest--; } -buildUnnamed1307() { +buildUnnamed1337() { var o = new core.List<api.GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata>(); o.add(buildGoogleDevtoolsRemoteworkersV1test2DirectoryMetadata()); @@ -2592,21 +2726,21 @@ return o; } -checkUnnamed1307( +checkUnnamed1337( core.List<api.GoogleDevtoolsRemoteworkersV1test2DirectoryMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemoteworkersV1test2DirectoryMetadata(o[0]); checkGoogleDevtoolsRemoteworkersV1test2DirectoryMetadata(o[1]); } -buildUnnamed1308() { +buildUnnamed1338() { var o = new core.List<api.GoogleDevtoolsRemoteworkersV1test2FileMetadata>(); o.add(buildGoogleDevtoolsRemoteworkersV1test2FileMetadata()); o.add(buildGoogleDevtoolsRemoteworkersV1test2FileMetadata()); return o; } -checkUnnamed1308( +checkUnnamed1338( core.List<api.GoogleDevtoolsRemoteworkersV1test2FileMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleDevtoolsRemoteworkersV1test2FileMetadata(o[0]); @@ -2618,8 +2752,8 @@ var o = new api.GoogleDevtoolsRemoteworkersV1test2Directory(); buildCounterGoogleDevtoolsRemoteworkersV1test2Directory++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2Directory < 3) { - o.directories = buildUnnamed1307(); - o.files = buildUnnamed1308(); + o.directories = buildUnnamed1337(); + o.files = buildUnnamed1338(); } buildCounterGoogleDevtoolsRemoteworkersV1test2Directory--; return o; @@ -2629,8 +2763,8 @@ api.GoogleDevtoolsRemoteworkersV1test2Directory o) { buildCounterGoogleDevtoolsRemoteworkersV1test2Directory++; if (buildCounterGoogleDevtoolsRemoteworkersV1test2Directory < 3) { - checkUnnamed1307(o.directories); - checkUnnamed1308(o.files); + checkUnnamed1337(o.directories); + checkUnnamed1338(o.files); } buildCounterGoogleDevtoolsRemoteworkersV1test2Directory--; } @@ -2683,7 +2817,7 @@ buildCounterGoogleDevtoolsRemoteworkersV1test2FileMetadata--; } -buildUnnamed1309() { +buildUnnamed1339() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2698,7 +2832,7 @@ return o; } -checkUnnamed1309(core.Map<core.String, core.Object> o) { +checkUnnamed1339(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)); @@ -2712,7 +2846,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed1310() { +buildUnnamed1340() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2727,7 +2861,7 @@ return o; } -checkUnnamed1310(core.Map<core.String, core.Object> o) { +checkUnnamed1340(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)); @@ -2748,9 +2882,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed1309(); + o.metadata = buildUnnamed1339(); o.name = "foo"; - o.response = buildUnnamed1310(); + o.response = buildUnnamed1340(); } buildCounterGoogleLongrunningOperation--; return o; @@ -2761,14 +2895,14 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed1309(o.metadata); + checkUnnamed1339(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1310(o.response); + checkUnnamed1340(o.response); } buildCounterGoogleLongrunningOperation--; } -buildUnnamed1311() { +buildUnnamed1341() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2783,7 +2917,7 @@ return o; } -checkUnnamed1311(core.Map<core.String, core.Object> o) { +checkUnnamed1341(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)); @@ -2797,17 +2931,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed1312() { +buildUnnamed1342() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1311()); - o.add(buildUnnamed1311()); + o.add(buildUnnamed1341()); + o.add(buildUnnamed1341()); return o; } -checkUnnamed1312(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1342(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1311(o[0]); - checkUnnamed1311(o[1]); + checkUnnamed1341(o[0]); + checkUnnamed1341(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -2816,7 +2950,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed1312(); + o.details = buildUnnamed1342(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -2827,20 +2961,20 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1312(o.details); + checkUnnamed1342(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; } -buildUnnamed1313() { +buildUnnamed1343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1313(core.List<core.String> o) { +checkUnnamed1343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3394,6 +3528,33 @@ }); unittest.group( + "obj-schema-GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy(); + var od = new api + .GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy.fromJson( + o.toJson()); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicy(od); + }); + }); + + unittest.group( + "obj-schema-GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature(); + var od = new api + .GoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature.fromJson( + o.toJson()); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaFeaturePolicyFeature( + od); + }); + }); + + unittest.group( "obj-schema-GoogleDevtoolsRemotebuildexecutionAdminV1alphaGetInstanceRequest", () { unittest.test("to-json--from-json", () { @@ -3488,6 +3649,19 @@ }); unittest.group( + "obj-schema-GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig(); + var od = new api + .GoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig.fromJson( + o.toJson()); + checkGoogleDevtoolsRemotebuildexecutionAdminV1alphaSoleTenancyConfig(od); + }); + }); + + unittest.group( "obj-schema-GoogleDevtoolsRemotebuildexecutionAdminV1alphaUpdateInstanceRequest", () { unittest.test("to-json--from-json", () { @@ -3709,9 +3883,9 @@ var arg_instanceName = "foo"; var arg_hash = "foo"; var arg_sizeBytes = "foo"; - var arg_inlineStdout = true; var arg_inlineStderr = true; - var arg_inlineOutputFiles = buildUnnamed1313(); + var arg_inlineStdout = true; + var arg_inlineOutputFiles = buildUnnamed1343(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3744,10 +3918,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["inlineStdout"].first, - unittest.equals("$arg_inlineStdout")); unittest.expect(queryMap["inlineStderr"].first, unittest.equals("$arg_inlineStderr")); + unittest.expect(queryMap["inlineStdout"].first, + unittest.equals("$arg_inlineStdout")); unittest.expect(queryMap["inlineOutputFiles"], unittest.equals(arg_inlineOutputFiles)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3761,8 +3935,8 @@ }), true); res .get(arg_instanceName, arg_hash, arg_sizeBytes, - inlineStdout: arg_inlineStdout, inlineStderr: arg_inlineStderr, + inlineStdout: arg_inlineStdout, inlineOutputFiles: arg_inlineOutputFiles, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4079,8 +4253,8 @@ var arg_instanceName = "foo"; var arg_hash = "foo"; var arg_sizeBytes = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4113,10 +4287,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4128,8 +4302,8 @@ }), true); res .getTree(arg_instanceName, arg_hash, arg_sizeBytes, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBuildBazelRemoteExecutionV2GetTreeResponse(response);
diff --git a/generated/googleapis/test/reseller/v1_test.dart b/generated/googleapis/test/reseller/v1_test.dart index bc51fbd..2907517 100644 --- a/generated/googleapis/test/reseller/v1_test.dart +++ b/generated/googleapis/test/reseller/v1_test.dart
@@ -168,14 +168,14 @@ buildCounterRenewalSettings--; } -buildUnnamed4229() { +buildUnnamed4467() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4229(core.List<core.String> o) { +checkUnnamed4467(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -186,7 +186,7 @@ var o = new api.ResellernotifyGetwatchdetailsResponse(); buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - o.serviceAccountEmailAddresses = buildUnnamed4229(); + o.serviceAccountEmailAddresses = buildUnnamed4467(); o.topicName = "foo"; } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -197,7 +197,7 @@ api.ResellernotifyGetwatchdetailsResponse o) { buildCounterResellernotifyGetwatchdetailsResponse++; if (buildCounterResellernotifyGetwatchdetailsResponse < 3) { - checkUnnamed4229(o.serviceAccountEmailAddresses); + checkUnnamed4467(o.serviceAccountEmailAddresses); unittest.expect(o.topicName, unittest.equals('foo')); } buildCounterResellernotifyGetwatchdetailsResponse--; @@ -292,14 +292,14 @@ buildCounterSubscriptionPlan--; } -buildUnnamed4230() { +buildUnnamed4468() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4230(core.List<core.String> o) { +checkUnnamed4468(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -367,7 +367,7 @@ o.skuName = "foo"; o.status = "foo"; o.subscriptionId = "foo"; - o.suspensionReasons = buildUnnamed4230(); + o.suspensionReasons = buildUnnamed4468(); o.transferInfo = buildSubscriptionTransferInfo(); o.trialSettings = buildSubscriptionTrialSettings(); } @@ -393,21 +393,21 @@ unittest.expect(o.skuName, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.subscriptionId, unittest.equals('foo')); - checkUnnamed4230(o.suspensionReasons); + checkUnnamed4468(o.suspensionReasons); checkSubscriptionTransferInfo(o.transferInfo); checkSubscriptionTrialSettings(o.trialSettings); } buildCounterSubscription--; } -buildUnnamed4231() { +buildUnnamed4469() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed4231(core.List<api.Subscription> o) { +checkUnnamed4469(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -420,7 +420,7 @@ if (buildCounterSubscriptions < 3) { o.kind = "foo"; o.nextPageToken = "foo"; - o.subscriptions = buildUnnamed4231(); + o.subscriptions = buildUnnamed4469(); } buildCounterSubscriptions--; return o; @@ -431,7 +431,7 @@ if (buildCounterSubscriptions < 3) { unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4231(o.subscriptions); + checkUnnamed4469(o.subscriptions); } buildCounterSubscriptions--; } @@ -1473,10 +1473,10 @@ api.SubscriptionsResourceApi res = new api.ResellerApi(mock).subscriptions; var arg_customerAuthToken = "foo"; - var arg_customerId = "foo"; - var arg_customerNamePrefix = "foo"; - var arg_maxResults = 42; var arg_pageToken = "foo"; + var arg_customerNamePrefix = "foo"; + var arg_customerId = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1514,13 +1514,13 @@ unittest.expect(queryMap["customerAuthToken"].first, unittest.equals(arg_customerAuthToken)); unittest.expect( - queryMap["customerId"].first, unittest.equals(arg_customerId)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["customerNamePrefix"].first, unittest.equals(arg_customerNamePrefix)); + unittest.expect( + queryMap["customerId"].first, unittest.equals(arg_customerId)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1532,10 +1532,10 @@ res .list( customerAuthToken: arg_customerAuthToken, - customerId: arg_customerId, - customerNamePrefix: arg_customerNamePrefix, - maxResults: arg_maxResults, pageToken: arg_pageToken, + customerNamePrefix: arg_customerNamePrefix, + customerId: arg_customerId, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSubscriptions(response);
diff --git a/generated/googleapis/test/run/v1_test.dart b/generated/googleapis/test/run/v1_test.dart index a5a8b55..a9c04cc 100644 --- a/generated/googleapis/test/run/v1_test.dart +++ b/generated/googleapis/test/run/v1_test.dart
@@ -69,14 +69,14 @@ buildCounterAddressable--; } -buildUnnamed561() { +buildUnnamed580() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed561(core.List<api.AuditLogConfig> o) { +checkUnnamed580(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -87,7 +87,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed561(); + o.auditLogConfigs = buildUnnamed580(); o.service = "foo"; } buildCounterAuditConfig--; @@ -97,20 +97,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed561(o.auditLogConfigs); + checkUnnamed580(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed562() { +buildUnnamed581() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed562(core.List<core.String> o) { +checkUnnamed581(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -121,7 +121,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed562(); + o.exemptedMembers = buildUnnamed581(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -131,7 +131,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed562(o.exemptedMembers); + checkUnnamed581(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -158,14 +158,14 @@ buildCounterAuthorizedDomain--; } -buildUnnamed563() { +buildUnnamed582() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed563(core.List<core.String> o) { +checkUnnamed582(core.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 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed563(); + o.members = buildUnnamed582(); o.role = "foo"; } buildCounterBinding--; @@ -188,7 +188,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed563(o.members); + checkUnnamed582(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -242,14 +242,14 @@ buildCounterConfigMapKeySelector--; } -buildUnnamed564() { +buildUnnamed583() { var o = new core.List<api.KeyToPath>(); o.add(buildKeyToPath()); o.add(buildKeyToPath()); return o; } -checkUnnamed564(core.List<api.KeyToPath> o) { +checkUnnamed583(core.List<api.KeyToPath> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyToPath(o[0]); checkKeyToPath(o[1]); @@ -261,7 +261,7 @@ buildCounterConfigMapVolumeSource++; if (buildCounterConfigMapVolumeSource < 3) { o.defaultMode = 42; - o.items = buildUnnamed564(); + o.items = buildUnnamed583(); o.name = "foo"; o.optional = true; } @@ -273,7 +273,7 @@ buildCounterConfigMapVolumeSource++; if (buildCounterConfigMapVolumeSource < 3) { unittest.expect(o.defaultMode, unittest.equals(42)); - checkUnnamed564(o.items); + checkUnnamed583(o.items); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.optional, unittest.isTrue); } @@ -326,14 +326,14 @@ buildCounterConfigurationSpec--; } -buildUnnamed565() { +buildUnnamed584() { var o = new core.List<api.GoogleCloudRunV1Condition>(); o.add(buildGoogleCloudRunV1Condition()); o.add(buildGoogleCloudRunV1Condition()); return o; } -checkUnnamed565(core.List<api.GoogleCloudRunV1Condition> o) { +checkUnnamed584(core.List<api.GoogleCloudRunV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRunV1Condition(o[0]); checkGoogleCloudRunV1Condition(o[1]); @@ -344,7 +344,7 @@ var o = new api.ConfigurationStatus(); buildCounterConfigurationStatus++; if (buildCounterConfigurationStatus < 3) { - o.conditions = buildUnnamed565(); + o.conditions = buildUnnamed584(); o.latestCreatedRevisionName = "foo"; o.latestReadyRevisionName = "foo"; o.observedGeneration = 42; @@ -356,7 +356,7 @@ checkConfigurationStatus(api.ConfigurationStatus o) { buildCounterConfigurationStatus++; if (buildCounterConfigurationStatus < 3) { - checkUnnamed565(o.conditions); + checkUnnamed584(o.conditions); unittest.expect(o.latestCreatedRevisionName, unittest.equals('foo')); unittest.expect(o.latestReadyRevisionName, unittest.equals('foo')); unittest.expect(o.observedGeneration, unittest.equals(42)); @@ -364,79 +364,79 @@ buildCounterConfigurationStatus--; } -buildUnnamed566() { +buildUnnamed585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed566(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')); } -buildUnnamed567() { +buildUnnamed586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed567(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')); } -buildUnnamed568() { +buildUnnamed587() { var o = new core.List<api.EnvVar>(); o.add(buildEnvVar()); o.add(buildEnvVar()); return o; } -checkUnnamed568(core.List<api.EnvVar> o) { +checkUnnamed587(core.List<api.EnvVar> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvVar(o[0]); checkEnvVar(o[1]); } -buildUnnamed569() { +buildUnnamed588() { var o = new core.List<api.EnvFromSource>(); o.add(buildEnvFromSource()); o.add(buildEnvFromSource()); return o; } -checkUnnamed569(core.List<api.EnvFromSource> o) { +checkUnnamed588(core.List<api.EnvFromSource> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvFromSource(o[0]); checkEnvFromSource(o[1]); } -buildUnnamed570() { +buildUnnamed589() { var o = new core.List<api.ContainerPort>(); o.add(buildContainerPort()); o.add(buildContainerPort()); return o; } -checkUnnamed570(core.List<api.ContainerPort> o) { +checkUnnamed589(core.List<api.ContainerPort> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerPort(o[0]); checkContainerPort(o[1]); } -buildUnnamed571() { +buildUnnamed590() { var o = new core.List<api.VolumeMount>(); o.add(buildVolumeMount()); o.add(buildVolumeMount()); return o; } -checkUnnamed571(core.List<api.VolumeMount> o) { +checkUnnamed590(core.List<api.VolumeMount> o) { unittest.expect(o, unittest.hasLength(2)); checkVolumeMount(o[0]); checkVolumeMount(o[1]); @@ -447,21 +447,21 @@ var o = new api.Container(); buildCounterContainer++; if (buildCounterContainer < 3) { - o.args = buildUnnamed566(); - o.command = buildUnnamed567(); - o.env = buildUnnamed568(); - o.envFrom = buildUnnamed569(); + o.args = buildUnnamed585(); + o.command = buildUnnamed586(); + o.env = buildUnnamed587(); + o.envFrom = buildUnnamed588(); o.image = "foo"; o.imagePullPolicy = "foo"; o.livenessProbe = buildProbe(); o.name = "foo"; - o.ports = buildUnnamed570(); + o.ports = buildUnnamed589(); o.readinessProbe = buildProbe(); o.resources = buildResourceRequirements(); o.securityContext = buildSecurityContext(); o.terminationMessagePath = "foo"; o.terminationMessagePolicy = "foo"; - o.volumeMounts = buildUnnamed571(); + o.volumeMounts = buildUnnamed590(); o.workingDir = "foo"; } buildCounterContainer--; @@ -471,21 +471,21 @@ checkContainer(api.Container o) { buildCounterContainer++; if (buildCounterContainer < 3) { - checkUnnamed566(o.args); - checkUnnamed567(o.command); - checkUnnamed568(o.env); - checkUnnamed569(o.envFrom); + checkUnnamed585(o.args); + checkUnnamed586(o.command); + checkUnnamed587(o.env); + checkUnnamed588(o.envFrom); unittest.expect(o.image, unittest.equals('foo')); unittest.expect(o.imagePullPolicy, unittest.equals('foo')); checkProbe(o.livenessProbe); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed570(o.ports); + checkUnnamed589(o.ports); checkProbe(o.readinessProbe); checkResourceRequirements(o.resources); checkSecurityContext(o.securityContext); unittest.expect(o.terminationMessagePath, unittest.equals('foo')); unittest.expect(o.terminationMessagePolicy, unittest.equals('foo')); - checkUnnamed571(o.volumeMounts); + checkUnnamed590(o.volumeMounts); unittest.expect(o.workingDir, unittest.equals('foo')); } buildCounterContainer--; @@ -564,27 +564,27 @@ buildCounterDomainMappingSpec--; } -buildUnnamed572() { +buildUnnamed591() { var o = new core.List<api.GoogleCloudRunV1Condition>(); o.add(buildGoogleCloudRunV1Condition()); o.add(buildGoogleCloudRunV1Condition()); return o; } -checkUnnamed572(core.List<api.GoogleCloudRunV1Condition> o) { +checkUnnamed591(core.List<api.GoogleCloudRunV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRunV1Condition(o[0]); checkGoogleCloudRunV1Condition(o[1]); } -buildUnnamed573() { +buildUnnamed592() { var o = new core.List<api.ResourceRecord>(); o.add(buildResourceRecord()); o.add(buildResourceRecord()); return o; } -checkUnnamed573(core.List<api.ResourceRecord> o) { +checkUnnamed592(core.List<api.ResourceRecord> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceRecord(o[0]); checkResourceRecord(o[1]); @@ -595,10 +595,11 @@ var o = new api.DomainMappingStatus(); buildCounterDomainMappingStatus++; if (buildCounterDomainMappingStatus < 3) { - o.conditions = buildUnnamed572(); + o.conditions = buildUnnamed591(); o.mappedRouteName = "foo"; o.observedGeneration = 42; - o.resourceRecords = buildUnnamed573(); + o.resourceRecords = buildUnnamed592(); + o.url = "foo"; } buildCounterDomainMappingStatus--; return o; @@ -607,10 +608,11 @@ checkDomainMappingStatus(api.DomainMappingStatus o) { buildCounterDomainMappingStatus++; if (buildCounterDomainMappingStatus < 3) { - checkUnnamed572(o.conditions); + checkUnnamed591(o.conditions); unittest.expect(o.mappedRouteName, unittest.equals('foo')); unittest.expect(o.observedGeneration, unittest.equals(42)); - checkUnnamed573(o.resourceRecords); + checkUnnamed592(o.resourceRecords); + unittest.expect(o.url, unittest.equals('foo')); } buildCounterDomainMappingStatus--; } @@ -682,12 +684,25 @@ buildCounterEnvVarSource--; } +buildUnnamed593() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed593(core.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 buildCounterExecAction = 0; buildExecAction() { var o = new api.ExecAction(); buildCounterExecAction++; if (buildCounterExecAction < 3) { - o.command = "foo"; + o.command = buildUnnamed593(); } buildCounterExecAction--; return o; @@ -696,7 +711,7 @@ checkExecAction(api.ExecAction o) { buildCounterExecAction++; if (buildCounterExecAction < 3) { - unittest.expect(o.command, unittest.equals('foo')); + checkUnnamed593(o.command); } buildCounterExecAction--; } @@ -755,14 +770,14 @@ buildCounterGoogleCloudRunV1Condition--; } -buildUnnamed574() { +buildUnnamed594() { var o = new core.List<api.HTTPHeader>(); o.add(buildHTTPHeader()); o.add(buildHTTPHeader()); return o; } -checkUnnamed574(core.List<api.HTTPHeader> o) { +checkUnnamed594(core.List<api.HTTPHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkHTTPHeader(o[0]); checkHTTPHeader(o[1]); @@ -774,7 +789,7 @@ buildCounterHTTPGetAction++; if (buildCounterHTTPGetAction < 3) { o.host = "foo"; - o.httpHeaders = buildUnnamed574(); + o.httpHeaders = buildUnnamed594(); o.path = "foo"; o.scheme = "foo"; } @@ -786,7 +801,7 @@ buildCounterHTTPGetAction++; if (buildCounterHTTPGetAction < 3) { unittest.expect(o.host, unittest.equals('foo')); - checkUnnamed574(o.httpHeaders); + checkUnnamed594(o.httpHeaders); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.scheme, unittest.equals('foo')); } @@ -814,29 +829,6 @@ buildCounterHTTPHeader--; } -core.int buildCounterIntOrString = 0; -buildIntOrString() { - var o = new api.IntOrString(); - buildCounterIntOrString++; - if (buildCounterIntOrString < 3) { - o.intVal = 42; - o.strVal = "foo"; - o.type = 42; - } - buildCounterIntOrString--; - return o; -} - -checkIntOrString(api.IntOrString o) { - buildCounterIntOrString++; - if (buildCounterIntOrString < 3) { - unittest.expect(o.intVal, unittest.equals(42)); - unittest.expect(o.strVal, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals(42)); - } - buildCounterIntOrString--; -} - core.int buildCounterKeyToPath = 0; buildKeyToPath() { var o = new api.KeyToPath(); @@ -860,14 +852,14 @@ buildCounterKeyToPath--; } -buildUnnamed575() { +buildUnnamed595() { var o = new core.List<api.AuthorizedDomain>(); o.add(buildAuthorizedDomain()); o.add(buildAuthorizedDomain()); return o; } -checkUnnamed575(core.List<api.AuthorizedDomain> o) { +checkUnnamed595(core.List<api.AuthorizedDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizedDomain(o[0]); checkAuthorizedDomain(o[1]); @@ -878,7 +870,7 @@ var o = new api.ListAuthorizedDomainsResponse(); buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - o.domains = buildUnnamed575(); + o.domains = buildUnnamed595(); o.nextPageToken = "foo"; } buildCounterListAuthorizedDomainsResponse--; @@ -888,33 +880,33 @@ checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { buildCounterListAuthorizedDomainsResponse++; if (buildCounterListAuthorizedDomainsResponse < 3) { - checkUnnamed575(o.domains); + checkUnnamed595(o.domains); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAuthorizedDomainsResponse--; } -buildUnnamed576() { +buildUnnamed596() { var o = new core.List<api.Configuration>(); o.add(buildConfiguration()); o.add(buildConfiguration()); return o; } -checkUnnamed576(core.List<api.Configuration> o) { +checkUnnamed596(core.List<api.Configuration> o) { unittest.expect(o, unittest.hasLength(2)); checkConfiguration(o[0]); checkConfiguration(o[1]); } -buildUnnamed577() { +buildUnnamed597() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed577(core.List<core.String> o) { +checkUnnamed597(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -926,10 +918,10 @@ buildCounterListConfigurationsResponse++; if (buildCounterListConfigurationsResponse < 3) { o.apiVersion = "foo"; - o.items = buildUnnamed576(); + o.items = buildUnnamed596(); o.kind = "foo"; o.metadata = buildListMeta(); - o.unreachable = buildUnnamed577(); + o.unreachable = buildUnnamed597(); } buildCounterListConfigurationsResponse--; return o; @@ -939,35 +931,35 @@ buildCounterListConfigurationsResponse++; if (buildCounterListConfigurationsResponse < 3) { unittest.expect(o.apiVersion, unittest.equals('foo')); - checkUnnamed576(o.items); + checkUnnamed596(o.items); unittest.expect(o.kind, unittest.equals('foo')); checkListMeta(o.metadata); - checkUnnamed577(o.unreachable); + checkUnnamed597(o.unreachable); } buildCounterListConfigurationsResponse--; } -buildUnnamed578() { +buildUnnamed598() { var o = new core.List<api.DomainMapping>(); o.add(buildDomainMapping()); o.add(buildDomainMapping()); return o; } -checkUnnamed578(core.List<api.DomainMapping> o) { +checkUnnamed598(core.List<api.DomainMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkDomainMapping(o[0]); checkDomainMapping(o[1]); } -buildUnnamed579() { +buildUnnamed599() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed579(core.List<core.String> o) { +checkUnnamed599(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -979,10 +971,10 @@ buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { o.apiVersion = "foo"; - o.items = buildUnnamed578(); + o.items = buildUnnamed598(); o.kind = "foo"; o.metadata = buildListMeta(); - o.unreachable = buildUnnamed579(); + o.unreachable = buildUnnamed599(); } buildCounterListDomainMappingsResponse--; return o; @@ -992,22 +984,22 @@ buildCounterListDomainMappingsResponse++; if (buildCounterListDomainMappingsResponse < 3) { unittest.expect(o.apiVersion, unittest.equals('foo')); - checkUnnamed578(o.items); + checkUnnamed598(o.items); unittest.expect(o.kind, unittest.equals('foo')); checkListMeta(o.metadata); - checkUnnamed579(o.unreachable); + checkUnnamed599(o.unreachable); } buildCounterListDomainMappingsResponse--; } -buildUnnamed580() { +buildUnnamed600() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed580(core.List<api.Location> o) { +checkUnnamed600(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -1018,7 +1010,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed580(); + o.locations = buildUnnamed600(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -1028,7 +1020,7 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed580(o.locations); + checkUnnamed600(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; @@ -1057,27 +1049,27 @@ buildCounterListMeta--; } -buildUnnamed581() { +buildUnnamed601() { var o = new core.List<api.Revision>(); o.add(buildRevision()); o.add(buildRevision()); return o; } -checkUnnamed581(core.List<api.Revision> o) { +checkUnnamed601(core.List<api.Revision> o) { unittest.expect(o, unittest.hasLength(2)); checkRevision(o[0]); checkRevision(o[1]); } -buildUnnamed582() { +buildUnnamed602() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed582(core.List<core.String> o) { +checkUnnamed602(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1089,10 +1081,10 @@ buildCounterListRevisionsResponse++; if (buildCounterListRevisionsResponse < 3) { o.apiVersion = "foo"; - o.items = buildUnnamed581(); + o.items = buildUnnamed601(); o.kind = "foo"; o.metadata = buildListMeta(); - o.unreachable = buildUnnamed582(); + o.unreachable = buildUnnamed602(); } buildCounterListRevisionsResponse--; return o; @@ -1102,35 +1094,35 @@ buildCounterListRevisionsResponse++; if (buildCounterListRevisionsResponse < 3) { unittest.expect(o.apiVersion, unittest.equals('foo')); - checkUnnamed581(o.items); + checkUnnamed601(o.items); unittest.expect(o.kind, unittest.equals('foo')); checkListMeta(o.metadata); - checkUnnamed582(o.unreachable); + checkUnnamed602(o.unreachable); } buildCounterListRevisionsResponse--; } -buildUnnamed583() { +buildUnnamed603() { var o = new core.List<api.Route>(); o.add(buildRoute()); o.add(buildRoute()); return o; } -checkUnnamed583(core.List<api.Route> o) { +checkUnnamed603(core.List<api.Route> o) { unittest.expect(o, unittest.hasLength(2)); checkRoute(o[0]); checkRoute(o[1]); } -buildUnnamed584() { +buildUnnamed604() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed584(core.List<core.String> o) { +checkUnnamed604(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1142,10 +1134,10 @@ buildCounterListRoutesResponse++; if (buildCounterListRoutesResponse < 3) { o.apiVersion = "foo"; - o.items = buildUnnamed583(); + o.items = buildUnnamed603(); o.kind = "foo"; o.metadata = buildListMeta(); - o.unreachable = buildUnnamed584(); + o.unreachable = buildUnnamed604(); } buildCounterListRoutesResponse--; return o; @@ -1155,35 +1147,35 @@ buildCounterListRoutesResponse++; if (buildCounterListRoutesResponse < 3) { unittest.expect(o.apiVersion, unittest.equals('foo')); - checkUnnamed583(o.items); + checkUnnamed603(o.items); unittest.expect(o.kind, unittest.equals('foo')); checkListMeta(o.metadata); - checkUnnamed584(o.unreachable); + checkUnnamed604(o.unreachable); } buildCounterListRoutesResponse--; } -buildUnnamed585() { +buildUnnamed605() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed585(core.List<api.Service> o) { +checkUnnamed605(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); } -buildUnnamed586() { +buildUnnamed606() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed586(core.List<core.String> o) { +checkUnnamed606(core.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,10 +1187,10 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.apiVersion = "foo"; - o.items = buildUnnamed585(); + o.items = buildUnnamed605(); o.kind = "foo"; o.metadata = buildListMeta(); - o.unreachable = buildUnnamed586(); + o.unreachable = buildUnnamed606(); } buildCounterListServicesResponse--; return o; @@ -1208,10 +1200,10 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.apiVersion, unittest.equals('foo')); - checkUnnamed585(o.items); + checkUnnamed605(o.items); unittest.expect(o.kind, unittest.equals('foo')); checkListMeta(o.metadata); - checkUnnamed586(o.unreachable); + checkUnnamed606(o.unreachable); } buildCounterListServicesResponse--; } @@ -1235,20 +1227,20 @@ buildCounterLocalObjectReference--; } -buildUnnamed587() { +buildUnnamed607() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed587(core.Map<core.String, core.String> o) { +checkUnnamed607(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')); } -buildUnnamed588() { +buildUnnamed608() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1263,7 +1255,7 @@ return o; } -checkUnnamed588(core.Map<core.String, core.Object> o) { +checkUnnamed608(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)); @@ -1283,9 +1275,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed587(); + o.labels = buildUnnamed607(); o.locationId = "foo"; - o.metadata = buildUnnamed588(); + o.metadata = buildUnnamed608(); o.name = "foo"; } buildCounterLocation--; @@ -1296,135 +1288,61 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed587(o.labels); + checkUnnamed607(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed588(o.metadata); + checkUnnamed608(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -core.int buildCounterNamespace = 0; -buildNamespace() { - var o = new api.Namespace(); - buildCounterNamespace++; - if (buildCounterNamespace < 3) { - o.metadata = buildObjectMeta(); - o.spec = buildNamespaceSpec(); - o.status = buildNamespaceStatus(); - } - buildCounterNamespace--; - return o; -} - -checkNamespace(api.Namespace o) { - buildCounterNamespace++; - if (buildCounterNamespace < 3) { - checkObjectMeta(o.metadata); - checkNamespaceSpec(o.spec); - checkNamespaceStatus(o.status); - } - buildCounterNamespace--; -} - -buildUnnamed589() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed589(core.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 buildCounterNamespaceSpec = 0; -buildNamespaceSpec() { - var o = new api.NamespaceSpec(); - buildCounterNamespaceSpec++; - if (buildCounterNamespaceSpec < 3) { - o.finalizers = buildUnnamed589(); - } - buildCounterNamespaceSpec--; - return o; -} - -checkNamespaceSpec(api.NamespaceSpec o) { - buildCounterNamespaceSpec++; - if (buildCounterNamespaceSpec < 3) { - checkUnnamed589(o.finalizers); - } - buildCounterNamespaceSpec--; -} - -core.int buildCounterNamespaceStatus = 0; -buildNamespaceStatus() { - var o = new api.NamespaceStatus(); - buildCounterNamespaceStatus++; - if (buildCounterNamespaceStatus < 3) { - o.phase = "foo"; - } - buildCounterNamespaceStatus--; - return o; -} - -checkNamespaceStatus(api.NamespaceStatus o) { - buildCounterNamespaceStatus++; - if (buildCounterNamespaceStatus < 3) { - unittest.expect(o.phase, unittest.equals('foo')); - } - buildCounterNamespaceStatus--; -} - -buildUnnamed590() { +buildUnnamed609() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed590(core.Map<core.String, core.String> o) { +checkUnnamed609(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')); } -buildUnnamed591() { +buildUnnamed610() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed591(core.List<core.String> o) { +checkUnnamed610(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed592() { +buildUnnamed611() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed592(core.Map<core.String, core.String> o) { +checkUnnamed611(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')); } -buildUnnamed593() { +buildUnnamed612() { var o = new core.List<api.OwnerReference>(); o.add(buildOwnerReference()); o.add(buildOwnerReference()); return o; } -checkUnnamed593(core.List<api.OwnerReference> o) { +checkUnnamed612(core.List<api.OwnerReference> o) { unittest.expect(o, unittest.hasLength(2)); checkOwnerReference(o[0]); checkOwnerReference(o[1]); @@ -1435,18 +1353,18 @@ var o = new api.ObjectMeta(); buildCounterObjectMeta++; if (buildCounterObjectMeta < 3) { - o.annotations = buildUnnamed590(); + o.annotations = buildUnnamed609(); o.clusterName = "foo"; o.creationTimestamp = "foo"; o.deletionGracePeriodSeconds = 42; o.deletionTimestamp = "foo"; - o.finalizers = buildUnnamed591(); + o.finalizers = buildUnnamed610(); o.generateName = "foo"; o.generation = 42; - o.labels = buildUnnamed592(); + o.labels = buildUnnamed611(); o.name = "foo"; o.namespace = "foo"; - o.ownerReferences = buildUnnamed593(); + o.ownerReferences = buildUnnamed612(); o.resourceVersion = "foo"; o.selfLink = "foo"; o.uid = "foo"; @@ -1458,18 +1376,18 @@ checkObjectMeta(api.ObjectMeta o) { buildCounterObjectMeta++; if (buildCounterObjectMeta < 3) { - checkUnnamed590(o.annotations); + checkUnnamed609(o.annotations); unittest.expect(o.clusterName, unittest.equals('foo')); unittest.expect(o.creationTimestamp, unittest.equals('foo')); unittest.expect(o.deletionGracePeriodSeconds, unittest.equals(42)); unittest.expect(o.deletionTimestamp, unittest.equals('foo')); - checkUnnamed591(o.finalizers); + checkUnnamed610(o.finalizers); unittest.expect(o.generateName, unittest.equals('foo')); unittest.expect(o.generation, unittest.equals(42)); - checkUnnamed592(o.labels); + checkUnnamed611(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.namespace, unittest.equals('foo')); - checkUnnamed593(o.ownerReferences); + checkUnnamed612(o.ownerReferences); unittest.expect(o.resourceVersion, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.uid, unittest.equals('foo')); @@ -1506,27 +1424,27 @@ buildCounterOwnerReference--; } -buildUnnamed594() { +buildUnnamed613() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed594(core.List<api.AuditConfig> o) { +checkUnnamed613(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed595() { +buildUnnamed614() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed595(core.List<api.Binding> o) { +checkUnnamed614(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1537,8 +1455,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed594(); - o.bindings = buildUnnamed595(); + o.auditConfigs = buildUnnamed613(); + o.bindings = buildUnnamed614(); o.etag = "foo"; o.version = 42; } @@ -1549,8 +1467,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed594(o.auditConfigs); - checkUnnamed595(o.bindings); + checkUnnamed613(o.auditConfigs); + checkUnnamed614(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1613,27 +1531,27 @@ buildCounterResourceRecord--; } -buildUnnamed596() { +buildUnnamed615() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed596(core.Map<core.String, core.String> o) { +checkUnnamed615(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')); } -buildUnnamed597() { +buildUnnamed616() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed597(core.Map<core.String, core.String> o) { +checkUnnamed616(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')); @@ -1644,8 +1562,8 @@ var o = new api.ResourceRequirements(); buildCounterResourceRequirements++; if (buildCounterResourceRequirements < 3) { - o.limits = buildUnnamed596(); - o.requests = buildUnnamed597(); + o.limits = buildUnnamed615(); + o.requests = buildUnnamed616(); } buildCounterResourceRequirements--; return o; @@ -1654,8 +1572,8 @@ checkResourceRequirements(api.ResourceRequirements o) { buildCounterResourceRequirements++; if (buildCounterResourceRequirements < 3) { - checkUnnamed596(o.limits); - checkUnnamed597(o.requests); + checkUnnamed615(o.limits); + checkUnnamed616(o.requests); } buildCounterResourceRequirements--; } @@ -1687,27 +1605,27 @@ buildCounterRevision--; } -buildUnnamed598() { +buildUnnamed617() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed598(core.List<api.Container> o) { +checkUnnamed617(core.List<api.Container> o) { unittest.expect(o, unittest.hasLength(2)); checkContainer(o[0]); checkContainer(o[1]); } -buildUnnamed599() { +buildUnnamed618() { var o = new core.List<api.Volume>(); o.add(buildVolume()); o.add(buildVolume()); return o; } -checkUnnamed599(core.List<api.Volume> o) { +checkUnnamed618(core.List<api.Volume> o) { unittest.expect(o, unittest.hasLength(2)); checkVolume(o[0]); checkVolume(o[1]); @@ -1719,10 +1637,10 @@ buildCounterRevisionSpec++; if (buildCounterRevisionSpec < 3) { o.containerConcurrency = 42; - o.containers = buildUnnamed598(); + o.containers = buildUnnamed617(); o.serviceAccountName = "foo"; o.timeoutSeconds = 42; - o.volumes = buildUnnamed599(); + o.volumes = buildUnnamed618(); } buildCounterRevisionSpec--; return o; @@ -1732,22 +1650,22 @@ buildCounterRevisionSpec++; if (buildCounterRevisionSpec < 3) { unittest.expect(o.containerConcurrency, unittest.equals(42)); - checkUnnamed598(o.containers); + checkUnnamed617(o.containers); unittest.expect(o.serviceAccountName, unittest.equals('foo')); unittest.expect(o.timeoutSeconds, unittest.equals(42)); - checkUnnamed599(o.volumes); + checkUnnamed618(o.volumes); } buildCounterRevisionSpec--; } -buildUnnamed600() { +buildUnnamed619() { var o = new core.List<api.GoogleCloudRunV1Condition>(); o.add(buildGoogleCloudRunV1Condition()); o.add(buildGoogleCloudRunV1Condition()); return o; } -checkUnnamed600(core.List<api.GoogleCloudRunV1Condition> o) { +checkUnnamed619(core.List<api.GoogleCloudRunV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRunV1Condition(o[0]); checkGoogleCloudRunV1Condition(o[1]); @@ -1758,7 +1676,7 @@ var o = new api.RevisionStatus(); buildCounterRevisionStatus++; if (buildCounterRevisionStatus < 3) { - o.conditions = buildUnnamed600(); + o.conditions = buildUnnamed619(); o.imageDigest = "foo"; o.logUrl = "foo"; o.observedGeneration = 42; @@ -1771,7 +1689,7 @@ checkRevisionStatus(api.RevisionStatus o) { buildCounterRevisionStatus++; if (buildCounterRevisionStatus < 3) { - checkUnnamed600(o.conditions); + checkUnnamed619(o.conditions); unittest.expect(o.imageDigest, unittest.equals('foo')); unittest.expect(o.logUrl, unittest.equals('foo')); unittest.expect(o.observedGeneration, unittest.equals(42)); @@ -1828,14 +1746,14 @@ buildCounterRoute--; } -buildUnnamed601() { +buildUnnamed620() { var o = new core.List<api.TrafficTarget>(); o.add(buildTrafficTarget()); o.add(buildTrafficTarget()); return o; } -checkUnnamed601(core.List<api.TrafficTarget> o) { +checkUnnamed620(core.List<api.TrafficTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkTrafficTarget(o[0]); checkTrafficTarget(o[1]); @@ -1846,7 +1764,7 @@ var o = new api.RouteSpec(); buildCounterRouteSpec++; if (buildCounterRouteSpec < 3) { - o.traffic = buildUnnamed601(); + o.traffic = buildUnnamed620(); } buildCounterRouteSpec--; return o; @@ -1855,32 +1773,32 @@ checkRouteSpec(api.RouteSpec o) { buildCounterRouteSpec++; if (buildCounterRouteSpec < 3) { - checkUnnamed601(o.traffic); + checkUnnamed620(o.traffic); } buildCounterRouteSpec--; } -buildUnnamed602() { +buildUnnamed621() { var o = new core.List<api.GoogleCloudRunV1Condition>(); o.add(buildGoogleCloudRunV1Condition()); o.add(buildGoogleCloudRunV1Condition()); return o; } -checkUnnamed602(core.List<api.GoogleCloudRunV1Condition> o) { +checkUnnamed621(core.List<api.GoogleCloudRunV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRunV1Condition(o[0]); checkGoogleCloudRunV1Condition(o[1]); } -buildUnnamed603() { +buildUnnamed622() { var o = new core.List<api.TrafficTarget>(); o.add(buildTrafficTarget()); o.add(buildTrafficTarget()); return o; } -checkUnnamed603(core.List<api.TrafficTarget> o) { +checkUnnamed622(core.List<api.TrafficTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkTrafficTarget(o[0]); checkTrafficTarget(o[1]); @@ -1892,9 +1810,9 @@ buildCounterRouteStatus++; if (buildCounterRouteStatus < 3) { o.address = buildAddressable(); - o.conditions = buildUnnamed602(); + o.conditions = buildUnnamed621(); o.observedGeneration = 42; - o.traffic = buildUnnamed603(); + o.traffic = buildUnnamed622(); o.url = "foo"; } buildCounterRouteStatus--; @@ -1905,65 +1823,14 @@ buildCounterRouteStatus++; if (buildCounterRouteStatus < 3) { checkAddressable(o.address); - checkUnnamed602(o.conditions); + checkUnnamed621(o.conditions); unittest.expect(o.observedGeneration, unittest.equals(42)); - checkUnnamed603(o.traffic); + checkUnnamed622(o.traffic); unittest.expect(o.url, unittest.equals('foo')); } buildCounterRouteStatus--; } -buildUnnamed604() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed604(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')); -} - -buildUnnamed605() { - var o = new core.Map<core.String, core.String>(); - o["x"] = "foo"; - o["y"] = "foo"; - return o; -} - -checkUnnamed605(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 buildCounterSecret = 0; -buildSecret() { - var o = new api.Secret(); - buildCounterSecret++; - if (buildCounterSecret < 3) { - o.data = buildUnnamed604(); - o.metadata = buildObjectMeta(); - o.stringData = buildUnnamed605(); - o.type = "foo"; - } - buildCounterSecret--; - return o; -} - -checkSecret(api.Secret o) { - buildCounterSecret++; - if (buildCounterSecret < 3) { - checkUnnamed604(o.data); - checkObjectMeta(o.metadata); - checkUnnamed605(o.stringData); - unittest.expect(o.type, unittest.equals('foo')); - } - buildCounterSecret--; -} - core.int buildCounterSecretEnvSource = 0; buildSecretEnvSource() { var o = new api.SecretEnvSource(); @@ -2012,14 +1879,14 @@ buildCounterSecretKeySelector--; } -buildUnnamed606() { +buildUnnamed623() { var o = new core.List<api.KeyToPath>(); o.add(buildKeyToPath()); o.add(buildKeyToPath()); return o; } -checkUnnamed606(core.List<api.KeyToPath> o) { +checkUnnamed623(core.List<api.KeyToPath> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyToPath(o[0]); checkKeyToPath(o[1]); @@ -2031,7 +1898,7 @@ buildCounterSecretVolumeSource++; if (buildCounterSecretVolumeSource < 3) { o.defaultMode = 42; - o.items = buildUnnamed606(); + o.items = buildUnnamed623(); o.optional = true; o.secretName = "foo"; } @@ -2043,7 +1910,7 @@ buildCounterSecretVolumeSource++; if (buildCounterSecretVolumeSource < 3) { unittest.expect(o.defaultMode, unittest.equals(42)); - checkUnnamed606(o.items); + checkUnnamed623(o.items); unittest.expect(o.optional, unittest.isTrue); unittest.expect(o.secretName, unittest.equals('foo')); } @@ -2096,14 +1963,14 @@ buildCounterService--; } -buildUnnamed607() { +buildUnnamed624() { var o = new core.List<api.TrafficTarget>(); o.add(buildTrafficTarget()); o.add(buildTrafficTarget()); return o; } -checkUnnamed607(core.List<api.TrafficTarget> o) { +checkUnnamed624(core.List<api.TrafficTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkTrafficTarget(o[0]); checkTrafficTarget(o[1]); @@ -2115,7 +1982,7 @@ buildCounterServiceSpec++; if (buildCounterServiceSpec < 3) { o.template = buildRevisionTemplate(); - o.traffic = buildUnnamed607(); + o.traffic = buildUnnamed624(); } buildCounterServiceSpec--; return o; @@ -2125,32 +1992,32 @@ buildCounterServiceSpec++; if (buildCounterServiceSpec < 3) { checkRevisionTemplate(o.template); - checkUnnamed607(o.traffic); + checkUnnamed624(o.traffic); } buildCounterServiceSpec--; } -buildUnnamed608() { +buildUnnamed625() { var o = new core.List<api.GoogleCloudRunV1Condition>(); o.add(buildGoogleCloudRunV1Condition()); o.add(buildGoogleCloudRunV1Condition()); return o; } -checkUnnamed608(core.List<api.GoogleCloudRunV1Condition> o) { +checkUnnamed625(core.List<api.GoogleCloudRunV1Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudRunV1Condition(o[0]); checkGoogleCloudRunV1Condition(o[1]); } -buildUnnamed609() { +buildUnnamed626() { var o = new core.List<api.TrafficTarget>(); o.add(buildTrafficTarget()); o.add(buildTrafficTarget()); return o; } -checkUnnamed609(core.List<api.TrafficTarget> o) { +checkUnnamed626(core.List<api.TrafficTarget> o) { unittest.expect(o, unittest.hasLength(2)); checkTrafficTarget(o[0]); checkTrafficTarget(o[1]); @@ -2162,11 +2029,11 @@ buildCounterServiceStatus++; if (buildCounterServiceStatus < 3) { o.address = buildAddressable(); - o.conditions = buildUnnamed608(); + o.conditions = buildUnnamed625(); o.latestCreatedRevisionName = "foo"; o.latestReadyRevisionName = "foo"; o.observedGeneration = 42; - o.traffic = buildUnnamed609(); + o.traffic = buildUnnamed626(); o.url = "foo"; } buildCounterServiceStatus--; @@ -2177,11 +2044,11 @@ buildCounterServiceStatus++; if (buildCounterServiceStatus < 3) { checkAddressable(o.address); - checkUnnamed608(o.conditions); + checkUnnamed625(o.conditions); unittest.expect(o.latestCreatedRevisionName, unittest.equals('foo')); unittest.expect(o.latestReadyRevisionName, unittest.equals('foo')); unittest.expect(o.observedGeneration, unittest.equals(42)); - checkUnnamed609(o.traffic); + checkUnnamed626(o.traffic); unittest.expect(o.url, unittest.equals('foo')); } buildCounterServiceStatus--; @@ -2260,14 +2127,14 @@ buildCounterStatusCause--; } -buildUnnamed610() { +buildUnnamed627() { var o = new core.List<api.StatusCause>(); o.add(buildStatusCause()); o.add(buildStatusCause()); return o; } -checkUnnamed610(core.List<api.StatusCause> o) { +checkUnnamed627(core.List<api.StatusCause> o) { unittest.expect(o, unittest.hasLength(2)); checkStatusCause(o[0]); checkStatusCause(o[1]); @@ -2278,7 +2145,7 @@ var o = new api.StatusDetails(); buildCounterStatusDetails++; if (buildCounterStatusDetails < 3) { - o.causes = buildUnnamed610(); + o.causes = buildUnnamed627(); o.group = "foo"; o.kind = "foo"; o.name = "foo"; @@ -2292,7 +2159,7 @@ checkStatusDetails(api.StatusDetails o) { buildCounterStatusDetails++; if (buildCounterStatusDetails < 3) { - checkUnnamed610(o.causes); + checkUnnamed627(o.causes); unittest.expect(o.group, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2308,7 +2175,7 @@ buildCounterTCPSocketAction++; if (buildCounterTCPSocketAction < 3) { o.host = "foo"; - o.port = buildIntOrString(); + o.port = 42; } buildCounterTCPSocketAction--; return o; @@ -2318,19 +2185,19 @@ buildCounterTCPSocketAction++; if (buildCounterTCPSocketAction < 3) { unittest.expect(o.host, unittest.equals('foo')); - checkIntOrString(o.port); + unittest.expect(o.port, unittest.equals(42)); } buildCounterTCPSocketAction--; } -buildUnnamed611() { +buildUnnamed628() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed611(core.List<core.String> o) { +checkUnnamed628(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2341,7 +2208,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed611(); + o.permissions = buildUnnamed628(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2350,19 +2217,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed611(o.permissions); + checkUnnamed628(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed612() { +buildUnnamed629() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed612(core.List<core.String> o) { +checkUnnamed629(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2373,7 +2240,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed612(); + o.permissions = buildUnnamed629(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2382,7 +2249,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed612(o.permissions); + checkUnnamed629(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2657,14 +2524,6 @@ }); }); - unittest.group("obj-schema-IntOrString", () { - unittest.test("to-json--from-json", () { - var o = buildIntOrString(); - var od = new api.IntOrString.fromJson(o.toJson()); - checkIntOrString(od); - }); - }); - unittest.group("obj-schema-KeyToPath", () { unittest.test("to-json--from-json", () { var o = buildKeyToPath(); @@ -2753,30 +2612,6 @@ }); }); - unittest.group("obj-schema-Namespace", () { - unittest.test("to-json--from-json", () { - var o = buildNamespace(); - var od = new api.Namespace.fromJson(o.toJson()); - checkNamespace(od); - }); - }); - - unittest.group("obj-schema-NamespaceSpec", () { - unittest.test("to-json--from-json", () { - var o = buildNamespaceSpec(); - var od = new api.NamespaceSpec.fromJson(o.toJson()); - checkNamespaceSpec(od); - }); - }); - - unittest.group("obj-schema-NamespaceStatus", () { - unittest.test("to-json--from-json", () { - var o = buildNamespaceStatus(); - var od = new api.NamespaceStatus.fromJson(o.toJson()); - checkNamespaceStatus(od); - }); - }); - unittest.group("obj-schema-ObjectMeta", () { unittest.test("to-json--from-json", () { var o = buildObjectMeta(); @@ -2881,14 +2716,6 @@ }); }); - unittest.group("obj-schema-Secret", () { - unittest.test("to-json--from-json", () { - var o = buildSecret(); - var od = new api.Secret.fromJson(o.toJson()); - checkSecret(od); - }); - }); - unittest.group("obj-schema-SecretEnvSource", () { unittest.test("to-json--from-json", () { var o = buildSecretEnvSource(); @@ -3025,294 +2852,14 @@ }); }); - unittest.group("resource-ApiV1NamespacesResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ApiV1NamespacesResourceApi res = - new api.RunApi(mock).api.v1.namespaces; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("api/v1/")); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNamespace()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNamespace(response); - }))); - }); - - unittest.test("method--patch", () { - var mock = new HttpServerMock(); - api.ApiV1NamespacesResourceApi res = - new api.RunApi(mock).api.v1.namespaces; - var arg_request = buildNamespace(); - var arg_name = "foo"; - var arg_updateMask = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Namespace.fromJson(json); - checkNamespace(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("api/v1/")); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNamespace()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .patch(arg_request, arg_name, - updateMask: arg_updateMask, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNamespace(response); - }))); - }); - }); - - unittest.group("resource-ApiV1NamespacesSecretsResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.ApiV1NamespacesSecretsResourceApi res = - new api.RunApi(mock).api.v1.namespaces.secrets; - var arg_request = buildSecret(); - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Secret.fromJson(json); - checkSecret(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("api/v1/")); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, arg_parent, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ApiV1NamespacesSecretsResourceApi res = - new api.RunApi(mock).api.v1.namespaces.secrets; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("api/v1/")); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - - unittest.test("method--replaceSecret", () { - var mock = new HttpServerMock(); - api.ApiV1NamespacesSecretsResourceApi res = - new api.RunApi(mock).api.v1.namespaces.secrets; - var arg_request = buildSecret(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Secret.fromJson(json); - checkSecret(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("api/v1/")); - pathOffset += 7; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .replaceSecret(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - }); - unittest.group("resource-NamespacesAuthorizeddomainsResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); api.NamespacesAuthorizeddomainsResourceApi res = new api.RunApi(mock).namespaces.authorizeddomains; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3345,10 +2892,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3359,8 +2906,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAuthorizedDomainsResponse(response); @@ -3426,13 +2973,13 @@ api.NamespacesConfigurationsResourceApi res = new api.RunApi(mock).namespaces.configurations; var arg_parent = "foo"; + var arg_continue_ = "foo"; var arg_watch = true; var arg_labelSelector = "foo"; + var arg_limit = 42; var arg_fieldSelector = "foo"; var arg_resourceVersion = "foo"; var arg_includeUninitialized = true; - var arg_continue_ = "foo"; - var arg_limit = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3465,19 +3012,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["labelSelector"].first, unittest.equals(arg_labelSelector)); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); unittest.expect(queryMap["fieldSelector"].first, unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3488,13 +3035,13 @@ }), true); res .list(arg_parent, + continue_: arg_continue_, watch: arg_watch, labelSelector: arg_labelSelector, + limit: arg_limit, fieldSelector: arg_fieldSelector, resourceVersion: arg_resourceVersion, includeUninitialized: arg_includeUninitialized, - continue_: arg_continue_, - limit: arg_limit, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListConfigurationsResponse(response); @@ -3565,8 +3112,8 @@ new api.RunApi(mock).namespaces.domainmappings; var arg_name = "foo"; var arg_apiVersion = "foo"; - var arg_propagationPolicy = "foo"; var arg_kind = "foo"; + var arg_propagationPolicy = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3601,9 +3148,9 @@ } unittest.expect( queryMap["apiVersion"].first, unittest.equals(arg_apiVersion)); + unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect(queryMap["propagationPolicy"].first, unittest.equals(arg_propagationPolicy)); - unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3615,8 +3162,8 @@ res .delete(arg_name, apiVersion: arg_apiVersion, - propagationPolicy: arg_propagationPolicy, kind: arg_kind, + propagationPolicy: arg_propagationPolicy, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkStatus(response); @@ -3680,13 +3227,13 @@ api.NamespacesDomainmappingsResourceApi res = new api.RunApi(mock).namespaces.domainmappings; var arg_parent = "foo"; - var arg_labelSelector = "foo"; - var arg_resourceVersion = "foo"; - var arg_includeUninitialized = true; + var arg_watch = true; var arg_fieldSelector = "foo"; var arg_continue_ = "foo"; + var arg_resourceVersion = "foo"; + var arg_includeUninitialized = true; var arg_limit = 42; - var arg_watch = true; + var arg_labelSelector = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3719,19 +3266,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["labelSelector"].first, - unittest.equals(arg_labelSelector)); - unittest.expect(queryMap["resourceVersion"].first, - unittest.equals(arg_resourceVersion)); - unittest.expect(queryMap["includeUninitialized"].first, - unittest.equals("$arg_includeUninitialized")); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["fieldSelector"].first, unittest.equals(arg_fieldSelector)); unittest.expect( queryMap["continue"].first, unittest.equals(arg_continue_)); + unittest.expect(queryMap["resourceVersion"].first, + unittest.equals(arg_resourceVersion)); + unittest.expect(queryMap["includeUninitialized"].first, + unittest.equals("$arg_includeUninitialized")); unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(queryMap["labelSelector"].first, + unittest.equals(arg_labelSelector)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3742,13 +3289,13 @@ }), true); res .list(arg_parent, - labelSelector: arg_labelSelector, - resourceVersion: arg_resourceVersion, - includeUninitialized: arg_includeUninitialized, + watch: arg_watch, fieldSelector: arg_fieldSelector, continue_: arg_continue_, + resourceVersion: arg_resourceVersion, + includeUninitialized: arg_includeUninitialized, limit: arg_limit, - watch: arg_watch, + labelSelector: arg_labelSelector, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDomainMappingsResponse(response); @@ -3762,9 +3309,9 @@ api.NamespacesRevisionsResourceApi res = new api.RunApi(mock).namespaces.revisions; var arg_name = "foo"; + var arg_kind = "foo"; var arg_apiVersion = "foo"; var arg_propagationPolicy = "foo"; - var arg_kind = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3797,11 +3344,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect( queryMap["apiVersion"].first, unittest.equals(arg_apiVersion)); unittest.expect(queryMap["propagationPolicy"].first, unittest.equals(arg_propagationPolicy)); - unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3812,9 +3359,9 @@ }), true); res .delete(arg_name, + kind: arg_kind, apiVersion: arg_apiVersion, propagationPolicy: arg_propagationPolicy, - kind: arg_kind, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkStatus(response); @@ -3878,13 +3425,13 @@ api.NamespacesRevisionsResourceApi res = new api.RunApi(mock).namespaces.revisions; var arg_parent = "foo"; - var arg_continue_ = "foo"; - var arg_limit = 42; - var arg_watch = true; - var arg_labelSelector = "foo"; - var arg_fieldSelector = "foo"; var arg_includeUninitialized = true; + var arg_fieldSelector = "foo"; var arg_resourceVersion = "foo"; + var arg_watch = true; + var arg_limit = 42; + var arg_labelSelector = "foo"; + var arg_continue_ = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3917,19 +3464,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); - unittest.expect(queryMap["labelSelector"].first, - unittest.equals(arg_labelSelector)); - unittest.expect(queryMap["fieldSelector"].first, - unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); + unittest.expect(queryMap["fieldSelector"].first, + unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); + unittest.expect(queryMap["labelSelector"].first, + unittest.equals(arg_labelSelector)); + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3940,13 +3487,13 @@ }), true); res .list(arg_parent, - continue_: arg_continue_, - limit: arg_limit, - watch: arg_watch, - labelSelector: arg_labelSelector, - fieldSelector: arg_fieldSelector, includeUninitialized: arg_includeUninitialized, + fieldSelector: arg_fieldSelector, resourceVersion: arg_resourceVersion, + watch: arg_watch, + limit: arg_limit, + labelSelector: arg_labelSelector, + continue_: arg_continue_, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRevisionsResponse(response); @@ -4012,13 +3559,13 @@ api.NamespacesRoutesResourceApi res = new api.RunApi(mock).namespaces.routes; var arg_parent = "foo"; - var arg_continue_ = "foo"; var arg_limit = 42; - var arg_watch = true; - var arg_labelSelector = "foo"; - var arg_fieldSelector = "foo"; + var arg_continue_ = "foo"; var arg_includeUninitialized = true; var arg_resourceVersion = "foo"; + var arg_watch = true; + var arg_fieldSelector = "foo"; + var arg_labelSelector = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4051,19 +3598,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); - unittest.expect(queryMap["labelSelector"].first, - unittest.equals(arg_labelSelector)); - unittest.expect(queryMap["fieldSelector"].first, - unittest.equals(arg_fieldSelector)); + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(queryMap["fieldSelector"].first, + unittest.equals(arg_fieldSelector)); + unittest.expect(queryMap["labelSelector"].first, + unittest.equals(arg_labelSelector)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4074,13 +3621,13 @@ }), true); res .list(arg_parent, - continue_: arg_continue_, limit: arg_limit, - watch: arg_watch, - labelSelector: arg_labelSelector, - fieldSelector: arg_fieldSelector, + continue_: arg_continue_, includeUninitialized: arg_includeUninitialized, resourceVersion: arg_resourceVersion, + watch: arg_watch, + fieldSelector: arg_fieldSelector, + labelSelector: arg_labelSelector, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRoutesResponse(response); @@ -4150,9 +3697,9 @@ api.NamespacesServicesResourceApi res = new api.RunApi(mock).namespaces.services; var arg_name = "foo"; + var arg_kind = "foo"; var arg_apiVersion = "foo"; var arg_propagationPolicy = "foo"; - var arg_kind = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4185,11 +3732,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect( queryMap["apiVersion"].first, unittest.equals(arg_apiVersion)); unittest.expect(queryMap["propagationPolicy"].first, unittest.equals(arg_propagationPolicy)); - unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4200,9 +3747,9 @@ }), true); res .delete(arg_name, + kind: arg_kind, apiVersion: arg_apiVersion, propagationPolicy: arg_propagationPolicy, - kind: arg_kind, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkStatus(response); @@ -4266,13 +3813,13 @@ api.NamespacesServicesResourceApi res = new api.RunApi(mock).namespaces.services; var arg_parent = "foo"; + var arg_continue_ = "foo"; var arg_labelSelector = "foo"; + var arg_watch = true; var arg_fieldSelector = "foo"; var arg_includeUninitialized = true; var arg_resourceVersion = "foo"; - var arg_continue_ = "foo"; var arg_limit = 42; - var arg_watch = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4305,19 +3852,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(queryMap["labelSelector"].first, unittest.equals(arg_labelSelector)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["fieldSelector"].first, unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4328,13 +3875,13 @@ }), true); res .list(arg_parent, + continue_: arg_continue_, labelSelector: arg_labelSelector, + watch: arg_watch, fieldSelector: arg_fieldSelector, includeUninitialized: arg_includeUninitialized, resourceVersion: arg_resourceVersion, - continue_: arg_continue_, limit: arg_limit, - watch: arg_watch, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicesResponse(response); @@ -4398,15 +3945,14 @@ }); }); - unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.group("resource-ProjectsAuthorizeddomainsResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); - api.ProjectsLocationsResourceApi res = - new api.RunApi(mock).projects.locations; - var arg_name = "foo"; + api.ProjectsAuthorizeddomainsResourceApi res = + new api.RunApi(mock).projects.authorizeddomains; + var arg_parent = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4443,7 +3989,71 @@ queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListAuthorizedDomainsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, + pageToken: arg_pageToken, + pageSize: arg_pageSize, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListAuthorizedDomainsResponse(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsResourceApi", () { + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsResourceApi res = + new api.RunApi(mock).projects.locations; + var arg_name = "foo"; + var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4454,9 +4064,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -4585,13 +4195,13 @@ api.ProjectsLocationsConfigurationsResourceApi res = new api.RunApi(mock).projects.locations.configurations; var arg_parent = "foo"; - var arg_resourceVersion = "foo"; - var arg_includeUninitialized = true; - var arg_fieldSelector = "foo"; - var arg_continue_ = "foo"; - var arg_limit = 42; - var arg_watch = true; var arg_labelSelector = "foo"; + var arg_includeUninitialized = true; + var arg_resourceVersion = "foo"; + var arg_watch = true; + var arg_continue_ = "foo"; + var arg_fieldSelector = "foo"; + var arg_limit = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4624,19 +4234,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["resourceVersion"].first, - unittest.equals(arg_resourceVersion)); - unittest.expect(queryMap["includeUninitialized"].first, - unittest.equals("$arg_includeUninitialized")); - unittest.expect(queryMap["fieldSelector"].first, - unittest.equals(arg_fieldSelector)); - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["labelSelector"].first, unittest.equals(arg_labelSelector)); + unittest.expect(queryMap["includeUninitialized"].first, + unittest.equals("$arg_includeUninitialized")); + unittest.expect(queryMap["resourceVersion"].first, + unittest.equals(arg_resourceVersion)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); + unittest.expect(queryMap["fieldSelector"].first, + unittest.equals(arg_fieldSelector)); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4647,13 +4257,13 @@ }), true); res .list(arg_parent, - resourceVersion: arg_resourceVersion, - includeUninitialized: arg_includeUninitialized, - fieldSelector: arg_fieldSelector, - continue_: arg_continue_, - limit: arg_limit, - watch: arg_watch, labelSelector: arg_labelSelector, + includeUninitialized: arg_includeUninitialized, + resourceVersion: arg_resourceVersion, + watch: arg_watch, + continue_: arg_continue_, + fieldSelector: arg_fieldSelector, + limit: arg_limit, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListConfigurationsResponse(response); @@ -4723,9 +4333,9 @@ api.ProjectsLocationsDomainmappingsResourceApi res = new api.RunApi(mock).projects.locations.domainmappings; var arg_name = "foo"; - var arg_apiVersion = "foo"; var arg_propagationPolicy = "foo"; var arg_kind = "foo"; + var arg_apiVersion = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4758,11 +4368,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["apiVersion"].first, unittest.equals(arg_apiVersion)); unittest.expect(queryMap["propagationPolicy"].first, unittest.equals(arg_propagationPolicy)); unittest.expect(queryMap["kind"].first, unittest.equals(arg_kind)); + unittest.expect( + queryMap["apiVersion"].first, unittest.equals(arg_apiVersion)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4773,9 +4383,9 @@ }), true); res .delete(arg_name, - apiVersion: arg_apiVersion, propagationPolicy: arg_propagationPolicy, kind: arg_kind, + apiVersion: arg_apiVersion, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkStatus(response); @@ -4840,12 +4450,12 @@ new api.RunApi(mock).projects.locations.domainmappings; var arg_parent = "foo"; var arg_limit = 42; - var arg_watch = true; var arg_labelSelector = "foo"; var arg_resourceVersion = "foo"; var arg_includeUninitialized = true; - var arg_fieldSelector = "foo"; var arg_continue_ = "foo"; + var arg_watch = true; + var arg_fieldSelector = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4880,17 +4490,17 @@ } unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["labelSelector"].first, unittest.equals(arg_labelSelector)); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); - unittest.expect(queryMap["fieldSelector"].first, - unittest.equals(arg_fieldSelector)); unittest.expect( queryMap["continue"].first, unittest.equals(arg_continue_)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(queryMap["fieldSelector"].first, + unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4902,12 +4512,12 @@ res .list(arg_parent, limit: arg_limit, - watch: arg_watch, labelSelector: arg_labelSelector, resourceVersion: arg_resourceVersion, includeUninitialized: arg_includeUninitialized, - fieldSelector: arg_fieldSelector, continue_: arg_continue_, + watch: arg_watch, + fieldSelector: arg_fieldSelector, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDomainMappingsResponse(response); @@ -4915,120 +4525,6 @@ }); }); - unittest.group("resource-ProjectsLocationsNamespacesResourceApi", () { - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsNamespacesResourceApi res = - new api.RunApi(mock).projects.locations.namespaces; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNamespace()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNamespace(response); - }))); - }); - - unittest.test("method--patch", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsNamespacesResourceApi res = - new api.RunApi(mock).projects.locations.namespaces; - var arg_request = buildNamespace(); - var arg_name = "foo"; - var arg_updateMask = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Namespace.fromJson(json); - checkNamespace(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildNamespace()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .patch(arg_request, arg_name, - updateMask: arg_updateMask, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkNamespace(response); - }))); - }); - }); - unittest.group("resource-ProjectsLocationsRevisionsResourceApi", () { unittest.test("method--delete", () { var mock = new HttpServerMock(); @@ -5151,13 +4647,13 @@ api.ProjectsLocationsRevisionsResourceApi res = new api.RunApi(mock).projects.locations.revisions; var arg_parent = "foo"; - var arg_fieldSelector = "foo"; + var arg_labelSelector = "foo"; + var arg_limit = 42; + var arg_watch = true; var arg_resourceVersion = "foo"; var arg_includeUninitialized = true; var arg_continue_ = "foo"; - var arg_limit = 42; - var arg_watch = true; - var arg_labelSelector = "foo"; + var arg_fieldSelector = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5190,19 +4686,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["fieldSelector"].first, - unittest.equals(arg_fieldSelector)); + unittest.expect(queryMap["labelSelector"].first, + unittest.equals(arg_labelSelector)); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); unittest.expect( queryMap["continue"].first, unittest.equals(arg_continue_)); - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); - unittest.expect(queryMap["labelSelector"].first, - unittest.equals(arg_labelSelector)); + unittest.expect(queryMap["fieldSelector"].first, + unittest.equals(arg_fieldSelector)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5213,13 +4709,13 @@ }), true); res .list(arg_parent, - fieldSelector: arg_fieldSelector, + labelSelector: arg_labelSelector, + limit: arg_limit, + watch: arg_watch, resourceVersion: arg_resourceVersion, includeUninitialized: arg_includeUninitialized, continue_: arg_continue_, - limit: arg_limit, - watch: arg_watch, - labelSelector: arg_labelSelector, + fieldSelector: arg_fieldSelector, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRevisionsResponse(response); @@ -5285,13 +4781,13 @@ api.ProjectsLocationsRoutesResourceApi res = new api.RunApi(mock).projects.locations.routes; var arg_parent = "foo"; - var arg_watch = true; - var arg_labelSelector = "foo"; - var arg_resourceVersion = "foo"; + var arg_continue_ = "foo"; var arg_includeUninitialized = true; var arg_fieldSelector = "foo"; - var arg_continue_ = "foo"; var arg_limit = 42; + var arg_resourceVersion = "foo"; + var arg_watch = true; + var arg_labelSelector = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5324,19 +4820,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); - unittest.expect(queryMap["labelSelector"].first, - unittest.equals(arg_labelSelector)); - unittest.expect(queryMap["resourceVersion"].first, - unittest.equals(arg_resourceVersion)); + unittest.expect( + queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(queryMap["includeUninitialized"].first, unittest.equals("$arg_includeUninitialized")); unittest.expect(queryMap["fieldSelector"].first, unittest.equals(arg_fieldSelector)); - unittest.expect( - queryMap["continue"].first, unittest.equals(arg_continue_)); unittest.expect(core.int.parse(queryMap["limit"].first), unittest.equals(arg_limit)); + unittest.expect(queryMap["resourceVersion"].first, + unittest.equals(arg_resourceVersion)); + unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(queryMap["labelSelector"].first, + unittest.equals(arg_labelSelector)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5347,13 +4843,13 @@ }), true); res .list(arg_parent, - watch: arg_watch, - labelSelector: arg_labelSelector, - resourceVersion: arg_resourceVersion, + continue_: arg_continue_, includeUninitialized: arg_includeUninitialized, fieldSelector: arg_fieldSelector, - continue_: arg_continue_, limit: arg_limit, + resourceVersion: arg_resourceVersion, + watch: arg_watch, + labelSelector: arg_labelSelector, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListRoutesResponse(response); @@ -5361,172 +4857,6 @@ }); }); - unittest.group("resource-ProjectsLocationsSecretsResourceApi", () { - unittest.test("method--create", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsSecretsResourceApi res = - new api.RunApi(mock).projects.locations.secrets; - var arg_request = buildSecret(); - var arg_parent = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Secret.fromJson(json); - checkSecret(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .create(arg_request, arg_parent, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - - unittest.test("method--get", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsSecretsResourceApi res = - new api.RunApi(mock).projects.locations.secrets; - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect( - path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); - pathOffset += 3; - // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .get(arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - - unittest.test("method--replaceSecret", () { - var mock = new HttpServerMock(); - api.ProjectsLocationsSecretsResourceApi res = - new api.RunApi(mock).projects.locations.secrets; - var arg_request = buildSecret(); - var arg_name = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Secret.fromJson(json); - checkSecret(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 = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildSecret()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .replaceSecret(arg_request, arg_name, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkSecret(response); - }))); - }); - }); - unittest.group("resource-ProjectsLocationsServicesResourceApi", () { unittest.test("method--create", () { var mock = new HttpServerMock(); @@ -5764,11 +5094,11 @@ api.ProjectsLocationsServicesResourceApi res = new api.RunApi(mock).projects.locations.services; var arg_parent = "foo"; - var arg_limit = 42; var arg_watch = true; + var arg_includeUninitialized = true; var arg_labelSelector = "foo"; var arg_fieldSelector = "foo"; - var arg_includeUninitialized = true; + var arg_limit = 42; var arg_resourceVersion = "foo"; var arg_continue_ = "foo"; var arg_$fields = "foo"; @@ -5803,15 +5133,15 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["limit"].first), - unittest.equals(arg_limit)); unittest.expect(queryMap["watch"].first, unittest.equals("$arg_watch")); + unittest.expect(queryMap["includeUninitialized"].first, + unittest.equals("$arg_includeUninitialized")); unittest.expect(queryMap["labelSelector"].first, unittest.equals(arg_labelSelector)); unittest.expect(queryMap["fieldSelector"].first, unittest.equals(arg_fieldSelector)); - unittest.expect(queryMap["includeUninitialized"].first, - unittest.equals("$arg_includeUninitialized")); + unittest.expect(core.int.parse(queryMap["limit"].first), + unittest.equals(arg_limit)); unittest.expect(queryMap["resourceVersion"].first, unittest.equals(arg_resourceVersion)); unittest.expect( @@ -5826,11 +5156,11 @@ }), true); res .list(arg_parent, - limit: arg_limit, watch: arg_watch, + includeUninitialized: arg_includeUninitialized, labelSelector: arg_labelSelector, fieldSelector: arg_fieldSelector, - includeUninitialized: arg_includeUninitialized, + limit: arg_limit, resourceVersion: arg_resourceVersion, continue_: arg_continue_, $fields: arg_$fields)
diff --git a/generated/googleapis/test/runtimeconfig/v1_test.dart b/generated/googleapis/test/runtimeconfig/v1_test.dart index 31b8db5..1ca4d7e 100644 --- a/generated/googleapis/test/runtimeconfig/v1_test.dart +++ b/generated/googleapis/test/runtimeconfig/v1_test.dart
@@ -80,14 +80,14 @@ buildCounterEmpty--; } -buildUnnamed5424() { +buildUnnamed5823() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed5424(core.List<api.Operation> o) { +checkUnnamed5823(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -99,7 +99,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed5424(); + o.operations = buildUnnamed5823(); } buildCounterListOperationsResponse--; return o; @@ -109,12 +109,12 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5424(o.operations); + checkUnnamed5823(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed5425() { +buildUnnamed5824() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -129,7 +129,7 @@ return o; } -checkUnnamed5425(core.Map<core.String, core.Object> o) { +checkUnnamed5824(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)); @@ -143,7 +143,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed5426() { +buildUnnamed5825() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -158,7 +158,7 @@ return o; } -checkUnnamed5426(core.Map<core.String, core.Object> o) { +checkUnnamed5825(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)); @@ -179,9 +179,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed5425(); + o.metadata = buildUnnamed5824(); o.name = "foo"; - o.response = buildUnnamed5426(); + o.response = buildUnnamed5825(); } buildCounterOperation--; return o; @@ -192,14 +192,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed5425(o.metadata); + checkUnnamed5824(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed5426(o.response); + checkUnnamed5825(o.response); } buildCounterOperation--; } -buildUnnamed5427() { +buildUnnamed5826() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -214,7 +214,7 @@ return o; } -checkUnnamed5427(core.Map<core.String, core.Object> o) { +checkUnnamed5826(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)); @@ -228,17 +228,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed5428() { +buildUnnamed5827() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed5427()); - o.add(buildUnnamed5427()); + o.add(buildUnnamed5826()); + o.add(buildUnnamed5826()); return o; } -checkUnnamed5428(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed5827(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed5427(o[0]); - checkUnnamed5427(o[1]); + checkUnnamed5826(o[0]); + checkUnnamed5826(o[1]); } core.int buildCounterStatus = 0; @@ -247,7 +247,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed5428(); + o.details = buildUnnamed5827(); o.message = "foo"; } buildCounterStatus--; @@ -258,7 +258,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed5428(o.details); + checkUnnamed5827(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--;
diff --git a/generated/googleapis/test/safebrowsing/v4_test.dart b/generated/googleapis/test/safebrowsing/v4_test.dart index 5012107..25e15cf 100644 --- a/generated/googleapis/test/safebrowsing/v4_test.dart +++ b/generated/googleapis/test/safebrowsing/v4_test.dart
@@ -90,14 +90,14 @@ buildCounterClientInfo--; } -buildUnnamed82() { +buildUnnamed63() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed82(core.List<core.String> o) { +checkUnnamed63(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -113,7 +113,7 @@ o.maxDatabaseEntries = 42; o.maxUpdateEntries = 42; o.region = "foo"; - o.supportedCompressions = buildUnnamed82(); + o.supportedCompressions = buildUnnamed63(); } buildCounterConstraints--; return o; @@ -127,7 +127,7 @@ unittest.expect(o.maxDatabaseEntries, unittest.equals(42)); unittest.expect(o.maxUpdateEntries, unittest.equals(42)); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed82(o.supportedCompressions); + checkUnnamed63(o.supportedCompressions); } buildCounterConstraints--; } @@ -147,14 +147,14 @@ buildCounterEmpty--; } -buildUnnamed83() { +buildUnnamed64() { var o = new core.List<api.ListUpdateRequest>(); o.add(buildListUpdateRequest()); o.add(buildListUpdateRequest()); return o; } -checkUnnamed83(core.List<api.ListUpdateRequest> o) { +checkUnnamed64(core.List<api.ListUpdateRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateRequest(o[0]); checkListUpdateRequest(o[1]); @@ -166,7 +166,7 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { o.client = buildClientInfo(); - o.listUpdateRequests = buildUnnamed83(); + o.listUpdateRequests = buildUnnamed64(); } buildCounterFetchThreatListUpdatesRequest--; return o; @@ -176,19 +176,19 @@ buildCounterFetchThreatListUpdatesRequest++; if (buildCounterFetchThreatListUpdatesRequest < 3) { checkClientInfo(o.client); - checkUnnamed83(o.listUpdateRequests); + checkUnnamed64(o.listUpdateRequests); } buildCounterFetchThreatListUpdatesRequest--; } -buildUnnamed84() { +buildUnnamed65() { var o = new core.List<api.ListUpdateResponse>(); o.add(buildListUpdateResponse()); o.add(buildListUpdateResponse()); return o; } -checkUnnamed84(core.List<api.ListUpdateResponse> o) { +checkUnnamed65(core.List<api.ListUpdateResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkListUpdateResponse(o[0]); checkListUpdateResponse(o[1]); @@ -199,7 +199,7 @@ var o = new api.FetchThreatListUpdatesResponse(); buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - o.listUpdateResponses = buildUnnamed84(); + o.listUpdateResponses = buildUnnamed65(); o.minimumWaitDuration = "foo"; } buildCounterFetchThreatListUpdatesResponse--; @@ -209,20 +209,20 @@ checkFetchThreatListUpdatesResponse(api.FetchThreatListUpdatesResponse o) { buildCounterFetchThreatListUpdatesResponse++; if (buildCounterFetchThreatListUpdatesResponse < 3) { - checkUnnamed84(o.listUpdateResponses); + checkUnnamed65(o.listUpdateResponses); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); } buildCounterFetchThreatListUpdatesResponse--; } -buildUnnamed85() { +buildUnnamed66() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed85(core.List<core.String> o) { +checkUnnamed66(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -235,7 +235,7 @@ if (buildCounterFindFullHashesRequest < 3) { o.apiClient = buildClientInfo(); o.client = buildClientInfo(); - o.clientStates = buildUnnamed85(); + o.clientStates = buildUnnamed66(); o.threatInfo = buildThreatInfo(); } buildCounterFindFullHashesRequest--; @@ -247,20 +247,20 @@ if (buildCounterFindFullHashesRequest < 3) { checkClientInfo(o.apiClient); checkClientInfo(o.client); - checkUnnamed85(o.clientStates); + checkUnnamed66(o.clientStates); checkThreatInfo(o.threatInfo); } buildCounterFindFullHashesRequest--; } -buildUnnamed86() { +buildUnnamed67() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed86(core.List<api.ThreatMatch> o) { +checkUnnamed67(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -271,7 +271,7 @@ var o = new api.FindFullHashesResponse(); buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - o.matches = buildUnnamed86(); + o.matches = buildUnnamed67(); o.minimumWaitDuration = "foo"; o.negativeCacheDuration = "foo"; } @@ -282,7 +282,7 @@ checkFindFullHashesResponse(api.FindFullHashesResponse o) { buildCounterFindFullHashesResponse++; if (buildCounterFindFullHashesResponse < 3) { - checkUnnamed86(o.matches); + checkUnnamed67(o.matches); unittest.expect(o.minimumWaitDuration, unittest.equals('foo')); unittest.expect(o.negativeCacheDuration, unittest.equals('foo')); } @@ -310,14 +310,14 @@ buildCounterFindThreatMatchesRequest--; } -buildUnnamed87() { +buildUnnamed68() { var o = new core.List<api.ThreatMatch>(); o.add(buildThreatMatch()); o.add(buildThreatMatch()); return o; } -checkUnnamed87(core.List<api.ThreatMatch> o) { +checkUnnamed68(core.List<api.ThreatMatch> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatMatch(o[0]); checkThreatMatch(o[1]); @@ -328,7 +328,7 @@ var o = new api.FindThreatMatchesResponse(); buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - o.matches = buildUnnamed87(); + o.matches = buildUnnamed68(); } buildCounterFindThreatMatchesResponse--; return o; @@ -337,19 +337,19 @@ checkFindThreatMatchesResponse(api.FindThreatMatchesResponse o) { buildCounterFindThreatMatchesResponse++; if (buildCounterFindThreatMatchesResponse < 3) { - checkUnnamed87(o.matches); + checkUnnamed68(o.matches); } buildCounterFindThreatMatchesResponse--; } -buildUnnamed88() { +buildUnnamed69() { var o = new core.List<api.ThreatListDescriptor>(); o.add(buildThreatListDescriptor()); o.add(buildThreatListDescriptor()); return o; } -checkUnnamed88(core.List<api.ThreatListDescriptor> o) { +checkUnnamed69(core.List<api.ThreatListDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatListDescriptor(o[0]); checkThreatListDescriptor(o[1]); @@ -360,7 +360,7 @@ var o = new api.ListThreatListsResponse(); buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - o.threatLists = buildUnnamed88(); + o.threatLists = buildUnnamed69(); } buildCounterListThreatListsResponse--; return o; @@ -369,7 +369,7 @@ checkListThreatListsResponse(api.ListThreatListsResponse o) { buildCounterListThreatListsResponse++; if (buildCounterListThreatListsResponse < 3) { - checkUnnamed88(o.threatLists); + checkUnnamed69(o.threatLists); } buildCounterListThreatListsResponse--; } @@ -401,27 +401,27 @@ buildCounterListUpdateRequest--; } -buildUnnamed89() { +buildUnnamed70() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed89(core.List<api.ThreatEntrySet> o) { +checkUnnamed70(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); } -buildUnnamed90() { +buildUnnamed71() { var o = new core.List<api.ThreatEntrySet>(); o.add(buildThreatEntrySet()); o.add(buildThreatEntrySet()); return o; } -checkUnnamed90(core.List<api.ThreatEntrySet> o) { +checkUnnamed71(core.List<api.ThreatEntrySet> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntrySet(o[0]); checkThreatEntrySet(o[1]); @@ -432,11 +432,11 @@ var o = new api.ListUpdateResponse(); buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - o.additions = buildUnnamed89(); + o.additions = buildUnnamed70(); o.checksum = buildChecksum(); o.newClientState = "foo"; o.platformType = "foo"; - o.removals = buildUnnamed90(); + o.removals = buildUnnamed71(); o.responseType = "foo"; o.threatEntryType = "foo"; o.threatType = "foo"; @@ -448,11 +448,11 @@ checkListUpdateResponse(api.ListUpdateResponse o) { buildCounterListUpdateResponse++; if (buildCounterListUpdateResponse < 3) { - checkUnnamed89(o.additions); + checkUnnamed70(o.additions); checkChecksum(o.checksum); unittest.expect(o.newClientState, unittest.equals('foo')); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed90(o.removals); + checkUnnamed71(o.removals); unittest.expect(o.responseType, unittest.equals('foo')); unittest.expect(o.threatEntryType, unittest.equals('foo')); unittest.expect(o.threatType, unittest.equals('foo')); @@ -502,14 +502,14 @@ buildCounterRawHashes--; } -buildUnnamed91() { +buildUnnamed72() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed91(core.List<core.int> o) { +checkUnnamed72(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)); @@ -520,7 +520,7 @@ var o = new api.RawIndices(); buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - o.indices = buildUnnamed91(); + o.indices = buildUnnamed72(); } buildCounterRawIndices--; return o; @@ -529,7 +529,7 @@ checkRawIndices(api.RawIndices o) { buildCounterRawIndices++; if (buildCounterRawIndices < 3) { - checkUnnamed91(o.indices); + checkUnnamed72(o.indices); } buildCounterRawIndices--; } @@ -582,14 +582,14 @@ buildCounterThreatEntry--; } -buildUnnamed92() { +buildUnnamed73() { var o = new core.List<api.MetadataEntry>(); o.add(buildMetadataEntry()); o.add(buildMetadataEntry()); return o; } -checkUnnamed92(core.List<api.MetadataEntry> o) { +checkUnnamed73(core.List<api.MetadataEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkMetadataEntry(o[0]); checkMetadataEntry(o[1]); @@ -600,7 +600,7 @@ var o = new api.ThreatEntryMetadata(); buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - o.entries = buildUnnamed92(); + o.entries = buildUnnamed73(); } buildCounterThreatEntryMetadata--; return o; @@ -609,7 +609,7 @@ checkThreatEntryMetadata(api.ThreatEntryMetadata o) { buildCounterThreatEntryMetadata++; if (buildCounterThreatEntryMetadata < 3) { - checkUnnamed92(o.entries); + checkUnnamed73(o.entries); } buildCounterThreatEntryMetadata--; } @@ -641,14 +641,14 @@ buildCounterThreatEntrySet--; } -buildUnnamed93() { +buildUnnamed74() { var o = new core.List<api.ThreatSource>(); o.add(buildThreatSource()); o.add(buildThreatSource()); return o; } -checkUnnamed93(core.List<api.ThreatSource> o) { +checkUnnamed74(core.List<api.ThreatSource> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatSource(o[0]); checkThreatSource(o[1]); @@ -662,7 +662,7 @@ o.clientInfo = buildClientInfo(); o.entry = buildThreatEntry(); o.platformType = "foo"; - o.resources = buildUnnamed93(); + o.resources = buildUnnamed74(); o.threatType = "foo"; o.userInfo = buildUserInfo(); } @@ -676,60 +676,60 @@ checkClientInfo(o.clientInfo); checkThreatEntry(o.entry); unittest.expect(o.platformType, unittest.equals('foo')); - checkUnnamed93(o.resources); + checkUnnamed74(o.resources); unittest.expect(o.threatType, unittest.equals('foo')); checkUserInfo(o.userInfo); } buildCounterThreatHit--; } -buildUnnamed94() { +buildUnnamed75() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed94(core.List<core.String> o) { +checkUnnamed75(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed95() { +buildUnnamed76() { var o = new core.List<api.ThreatEntry>(); o.add(buildThreatEntry()); o.add(buildThreatEntry()); return o; } -checkUnnamed95(core.List<api.ThreatEntry> o) { +checkUnnamed76(core.List<api.ThreatEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkThreatEntry(o[0]); checkThreatEntry(o[1]); } -buildUnnamed96() { +buildUnnamed77() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed96(core.List<core.String> o) { +checkUnnamed77(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed97() { +buildUnnamed78() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed97(core.List<core.String> o) { +checkUnnamed78(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -740,10 +740,10 @@ var o = new api.ThreatInfo(); buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - o.platformTypes = buildUnnamed94(); - o.threatEntries = buildUnnamed95(); - o.threatEntryTypes = buildUnnamed96(); - o.threatTypes = buildUnnamed97(); + o.platformTypes = buildUnnamed75(); + o.threatEntries = buildUnnamed76(); + o.threatEntryTypes = buildUnnamed77(); + o.threatTypes = buildUnnamed78(); } buildCounterThreatInfo--; return o; @@ -752,10 +752,10 @@ checkThreatInfo(api.ThreatInfo o) { buildCounterThreatInfo++; if (buildCounterThreatInfo < 3) { - checkUnnamed94(o.platformTypes); - checkUnnamed95(o.threatEntries); - checkUnnamed96(o.threatEntryTypes); - checkUnnamed97(o.threatTypes); + checkUnnamed75(o.platformTypes); + checkUnnamed76(o.threatEntries); + checkUnnamed77(o.threatEntryTypes); + checkUnnamed78(o.threatTypes); } buildCounterThreatInfo--; } @@ -1073,8 +1073,8 @@ api.EncodedFullHashesResourceApi res = new api.SafebrowsingApi(mock).encodedFullHashes; var arg_encodedRequest = "foo"; - var arg_clientId = "foo"; var arg_clientVersion = "foo"; + var arg_clientId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1109,10 +1109,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["clientId"].first, unittest.equals(arg_clientId)); unittest.expect(queryMap["clientVersion"].first, unittest.equals(arg_clientVersion)); + unittest.expect( + queryMap["clientId"].first, unittest.equals(arg_clientId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1123,8 +1123,8 @@ }), true); res .get(arg_encodedRequest, - clientId: arg_clientId, clientVersion: arg_clientVersion, + clientId: arg_clientId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkFindFullHashesResponse(response);
diff --git a/generated/googleapis/test/script/v1_test.dart b/generated/googleapis/test/script/v1_test.dart index dfe0e81..df7706b 100644 --- a/generated/googleapis/test/script/v1_test.dart +++ b/generated/googleapis/test/script/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1314() { +buildUnnamed1344() { var o = new core.List<api.File>(); o.add(buildFile()); o.add(buildFile()); return o; } -checkUnnamed1314(core.List<api.File> o) { +checkUnnamed1344(core.List<api.File> o) { unittest.expect(o, unittest.hasLength(2)); checkFile(o[0]); checkFile(o[1]); @@ -68,7 +68,7 @@ var o = new api.Content(); buildCounterContent++; if (buildCounterContent < 3) { - o.files = buildUnnamed1314(); + o.files = buildUnnamed1344(); o.scriptId = "foo"; } buildCounterContent--; @@ -78,7 +78,7 @@ checkContent(api.Content o) { buildCounterContent++; if (buildCounterContent < 3) { - checkUnnamed1314(o.files); + checkUnnamed1344(o.files); unittest.expect(o.scriptId, unittest.equals('foo')); } buildCounterContent--; @@ -105,14 +105,14 @@ buildCounterCreateProjectRequest--; } -buildUnnamed1315() { +buildUnnamed1345() { var o = new core.List<api.EntryPoint>(); o.add(buildEntryPoint()); o.add(buildEntryPoint()); return o; } -checkUnnamed1315(core.List<api.EntryPoint> o) { +checkUnnamed1345(core.List<api.EntryPoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEntryPoint(o[0]); checkEntryPoint(o[1]); @@ -125,7 +125,7 @@ if (buildCounterDeployment < 3) { o.deploymentConfig = buildDeploymentConfig(); o.deploymentId = "foo"; - o.entryPoints = buildUnnamed1315(); + o.entryPoints = buildUnnamed1345(); o.updateTime = "foo"; } buildCounterDeployment--; @@ -137,7 +137,7 @@ if (buildCounterDeployment < 3) { checkDeploymentConfig(o.deploymentConfig); unittest.expect(o.deploymentId, unittest.equals('foo')); - checkUnnamed1315(o.entryPoints); + checkUnnamed1345(o.entryPoints); unittest.expect(o.updateTime, unittest.equals('foo')); } buildCounterDeployment--; @@ -227,14 +227,14 @@ buildCounterExecuteStreamResponse--; } -buildUnnamed1316() { +buildUnnamed1346() { var o = new core.List<api.ScriptStackTraceElement>(); o.add(buildScriptStackTraceElement()); o.add(buildScriptStackTraceElement()); return o; } -checkUnnamed1316(core.List<api.ScriptStackTraceElement> o) { +checkUnnamed1346(core.List<api.ScriptStackTraceElement> o) { unittest.expect(o, unittest.hasLength(2)); checkScriptStackTraceElement(o[0]); checkScriptStackTraceElement(o[1]); @@ -247,7 +247,7 @@ if (buildCounterExecutionError < 3) { o.errorMessage = "foo"; o.errorType = "foo"; - o.scriptStackTraceElements = buildUnnamed1316(); + o.scriptStackTraceElements = buildUnnamed1346(); } buildCounterExecutionError--; return o; @@ -258,12 +258,12 @@ if (buildCounterExecutionError < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); unittest.expect(o.errorType, unittest.equals('foo')); - checkUnnamed1316(o.scriptStackTraceElements); + checkUnnamed1346(o.scriptStackTraceElements); } buildCounterExecutionError--; } -buildUnnamed1317() { +buildUnnamed1347() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -278,7 +278,7 @@ return o; } -checkUnnamed1317(core.List<core.Object> o) { +checkUnnamed1347(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -299,7 +299,7 @@ if (buildCounterExecutionRequest < 3) { o.devMode = true; o.function = "foo"; - o.parameters = buildUnnamed1317(); + o.parameters = buildUnnamed1347(); o.sessionState = "foo"; } buildCounterExecutionRequest--; @@ -311,7 +311,7 @@ if (buildCounterExecutionRequest < 3) { unittest.expect(o.devMode, unittest.isTrue); unittest.expect(o.function, unittest.equals('foo')); - checkUnnamed1317(o.parameters); + checkUnnamed1347(o.parameters); unittest.expect(o.sessionState, unittest.equals('foo')); } buildCounterExecutionRequest--; @@ -464,14 +464,14 @@ buildCounterGoogleAppsScriptTypeFunction--; } -buildUnnamed1318() { +buildUnnamed1348() { var o = new core.List<api.GoogleAppsScriptTypeFunction>(); o.add(buildGoogleAppsScriptTypeFunction()); o.add(buildGoogleAppsScriptTypeFunction()); return o; } -checkUnnamed1318(core.List<api.GoogleAppsScriptTypeFunction> o) { +checkUnnamed1348(core.List<api.GoogleAppsScriptTypeFunction> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeFunction(o[0]); checkGoogleAppsScriptTypeFunction(o[1]); @@ -482,7 +482,7 @@ var o = new api.GoogleAppsScriptTypeFunctionSet(); buildCounterGoogleAppsScriptTypeFunctionSet++; if (buildCounterGoogleAppsScriptTypeFunctionSet < 3) { - o.values = buildUnnamed1318(); + o.values = buildUnnamed1348(); } buildCounterGoogleAppsScriptTypeFunctionSet--; return o; @@ -491,7 +491,7 @@ checkGoogleAppsScriptTypeFunctionSet(api.GoogleAppsScriptTypeFunctionSet o) { buildCounterGoogleAppsScriptTypeFunctionSet++; if (buildCounterGoogleAppsScriptTypeFunctionSet < 3) { - checkUnnamed1318(o.values); + checkUnnamed1348(o.values); } buildCounterGoogleAppsScriptTypeFunctionSet--; } @@ -595,14 +595,14 @@ buildCounterGoogleAppsScriptTypeWebAppEntryPoint--; } -buildUnnamed1319() { +buildUnnamed1349() { var o = new core.List<api.Deployment>(); o.add(buildDeployment()); o.add(buildDeployment()); return o; } -checkUnnamed1319(core.List<api.Deployment> o) { +checkUnnamed1349(core.List<api.Deployment> o) { unittest.expect(o, unittest.hasLength(2)); checkDeployment(o[0]); checkDeployment(o[1]); @@ -613,7 +613,7 @@ var o = new api.ListDeploymentsResponse(); buildCounterListDeploymentsResponse++; if (buildCounterListDeploymentsResponse < 3) { - o.deployments = buildUnnamed1319(); + o.deployments = buildUnnamed1349(); o.nextPageToken = "foo"; } buildCounterListDeploymentsResponse--; @@ -623,20 +623,20 @@ checkListDeploymentsResponse(api.ListDeploymentsResponse o) { buildCounterListDeploymentsResponse++; if (buildCounterListDeploymentsResponse < 3) { - checkUnnamed1319(o.deployments); + checkUnnamed1349(o.deployments); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDeploymentsResponse--; } -buildUnnamed1320() { +buildUnnamed1350() { var o = new core.List<api.GoogleAppsScriptTypeProcess>(); o.add(buildGoogleAppsScriptTypeProcess()); o.add(buildGoogleAppsScriptTypeProcess()); return o; } -checkUnnamed1320(core.List<api.GoogleAppsScriptTypeProcess> o) { +checkUnnamed1350(core.List<api.GoogleAppsScriptTypeProcess> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeProcess(o[0]); checkGoogleAppsScriptTypeProcess(o[1]); @@ -648,7 +648,7 @@ buildCounterListScriptProcessesResponse++; if (buildCounterListScriptProcessesResponse < 3) { o.nextPageToken = "foo"; - o.processes = buildUnnamed1320(); + o.processes = buildUnnamed1350(); } buildCounterListScriptProcessesResponse--; return o; @@ -658,19 +658,19 @@ buildCounterListScriptProcessesResponse++; if (buildCounterListScriptProcessesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1320(o.processes); + checkUnnamed1350(o.processes); } buildCounterListScriptProcessesResponse--; } -buildUnnamed1321() { +buildUnnamed1351() { var o = new core.List<api.GoogleAppsScriptTypeProcess>(); o.add(buildGoogleAppsScriptTypeProcess()); o.add(buildGoogleAppsScriptTypeProcess()); return o; } -checkUnnamed1321(core.List<api.GoogleAppsScriptTypeProcess> o) { +checkUnnamed1351(core.List<api.GoogleAppsScriptTypeProcess> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleAppsScriptTypeProcess(o[0]); checkGoogleAppsScriptTypeProcess(o[1]); @@ -682,7 +682,7 @@ buildCounterListUserProcessesResponse++; if (buildCounterListUserProcessesResponse < 3) { o.nextPageToken = "foo"; - o.processes = buildUnnamed1321(); + o.processes = buildUnnamed1351(); } buildCounterListUserProcessesResponse--; return o; @@ -692,19 +692,19 @@ buildCounterListUserProcessesResponse++; if (buildCounterListUserProcessesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1321(o.processes); + checkUnnamed1351(o.processes); } buildCounterListUserProcessesResponse--; } -buildUnnamed1322() { +buildUnnamed1352() { var o = new core.List<api.Value>(); o.add(buildValue()); o.add(buildValue()); return o; } -checkUnnamed1322(core.List<api.Value> o) { +checkUnnamed1352(core.List<api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o[0]); checkValue(o[1]); @@ -715,7 +715,7 @@ var o = new api.ListValue(); buildCounterListValue++; if (buildCounterListValue < 3) { - o.values = buildUnnamed1322(); + o.values = buildUnnamed1352(); } buildCounterListValue--; return o; @@ -724,19 +724,19 @@ checkListValue(api.ListValue o) { buildCounterListValue++; if (buildCounterListValue < 3) { - checkUnnamed1322(o.values); + checkUnnamed1352(o.values); } buildCounterListValue--; } -buildUnnamed1323() { +buildUnnamed1353() { var o = new core.List<api.Version>(); o.add(buildVersion()); o.add(buildVersion()); return o; } -checkUnnamed1323(core.List<api.Version> o) { +checkUnnamed1353(core.List<api.Version> o) { unittest.expect(o, unittest.hasLength(2)); checkVersion(o[0]); checkVersion(o[1]); @@ -748,7 +748,7 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { o.nextPageToken = "foo"; - o.versions = buildUnnamed1323(); + o.versions = buildUnnamed1353(); } buildCounterListVersionsResponse--; return o; @@ -758,45 +758,45 @@ buildCounterListVersionsResponse++; if (buildCounterListVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1323(o.versions); + checkUnnamed1353(o.versions); } buildCounterListVersionsResponse--; } -buildUnnamed1324() { +buildUnnamed1354() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1324(core.List<api.MetricsValue> o) { +checkUnnamed1354(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); } -buildUnnamed1325() { +buildUnnamed1355() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1325(core.List<api.MetricsValue> o) { +checkUnnamed1355(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); } -buildUnnamed1326() { +buildUnnamed1356() { var o = new core.List<api.MetricsValue>(); o.add(buildMetricsValue()); o.add(buildMetricsValue()); return o; } -checkUnnamed1326(core.List<api.MetricsValue> o) { +checkUnnamed1356(core.List<api.MetricsValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricsValue(o[0]); checkMetricsValue(o[1]); @@ -807,9 +807,9 @@ var o = new api.Metrics(); buildCounterMetrics++; if (buildCounterMetrics < 3) { - o.activeUsers = buildUnnamed1324(); - o.failedExecutions = buildUnnamed1325(); - o.totalExecutions = buildUnnamed1326(); + o.activeUsers = buildUnnamed1354(); + o.failedExecutions = buildUnnamed1355(); + o.totalExecutions = buildUnnamed1356(); } buildCounterMetrics--; return o; @@ -818,9 +818,9 @@ checkMetrics(api.Metrics o) { buildCounterMetrics++; if (buildCounterMetrics < 3) { - checkUnnamed1324(o.activeUsers); - checkUnnamed1325(o.failedExecutions); - checkUnnamed1326(o.totalExecutions); + checkUnnamed1354(o.activeUsers); + checkUnnamed1355(o.failedExecutions); + checkUnnamed1356(o.totalExecutions); } buildCounterMetrics--; } @@ -848,7 +848,7 @@ buildCounterMetricsValue--; } -buildUnnamed1327() { +buildUnnamed1357() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -863,7 +863,7 @@ return o; } -checkUnnamed1327(core.Map<core.String, core.Object> o) { +checkUnnamed1357(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)); @@ -884,7 +884,7 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.response = buildUnnamed1327(); + o.response = buildUnnamed1357(); } buildCounterOperation--; return o; @@ -895,7 +895,7 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1327(o.response); + checkUnnamed1357(o.response); } buildCounterOperation--; } @@ -971,7 +971,7 @@ buildCounterScriptStackTraceElement--; } -buildUnnamed1328() { +buildUnnamed1358() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -986,7 +986,7 @@ return o; } -checkUnnamed1328(core.Map<core.String, core.Object> o) { +checkUnnamed1358(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)); @@ -1000,17 +1000,17 @@ unittest.expect(casted7["string"], unittest.equals('foo')); } -buildUnnamed1329() { +buildUnnamed1359() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1328()); - o.add(buildUnnamed1328()); + o.add(buildUnnamed1358()); + o.add(buildUnnamed1358()); return o; } -checkUnnamed1329(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1359(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1328(o[0]); - checkUnnamed1328(o[1]); + checkUnnamed1358(o[0]); + checkUnnamed1358(o[1]); } core.int buildCounterStatus = 0; @@ -1019,7 +1019,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1329(); + o.details = buildUnnamed1359(); o.message = "foo"; } buildCounterStatus--; @@ -1030,20 +1030,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1329(o.details); + checkUnnamed1359(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed1330() { +buildUnnamed1360() { var o = new core.Map<core.String, api.Value>(); o["x"] = buildValue(); o["y"] = buildValue(); return o; } -checkUnnamed1330(core.Map<core.String, api.Value> o) { +checkUnnamed1360(core.Map<core.String, api.Value> o) { unittest.expect(o, unittest.hasLength(2)); checkValue(o["x"]); checkValue(o["y"]); @@ -1054,7 +1054,7 @@ var o = new api.Struct(); buildCounterStruct++; if (buildCounterStruct < 3) { - o.fields = buildUnnamed1330(); + o.fields = buildUnnamed1360(); } buildCounterStruct--; return o; @@ -1063,7 +1063,7 @@ checkStruct(api.Struct o) { buildCounterStruct++; if (buildCounterStruct < 3) { - checkUnnamed1330(o.fields); + checkUnnamed1360(o.fields); } buildCounterStruct--; } @@ -1087,7 +1087,7 @@ buildCounterUpdateDeploymentRequest--; } -buildUnnamed1331() { +buildUnnamed1361() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1102,7 +1102,7 @@ return o; } -checkUnnamed1331(core.Map<core.String, core.Object> o) { +checkUnnamed1361(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)); @@ -1127,7 +1127,7 @@ o.listValue = buildListValue(); o.nullValue = "foo"; o.numberValue = 42.0; - o.protoValue = buildUnnamed1331(); + o.protoValue = buildUnnamed1361(); o.stringValue = "foo"; o.structValue = buildStruct(); } @@ -1144,7 +1144,7 @@ checkListValue(o.listValue); unittest.expect(o.nullValue, unittest.equals('foo')); unittest.expect(o.numberValue, unittest.equals(42.0)); - checkUnnamed1331(o.protoValue); + checkUnnamed1361(o.protoValue); unittest.expect(o.stringValue, unittest.equals('foo')); checkStruct(o.structValue); } @@ -1176,79 +1176,79 @@ buildCounterVersion--; } -buildUnnamed1332() { +buildUnnamed1362() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1332(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')); } -buildUnnamed1333() { +buildUnnamed1363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1333(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')); } -buildUnnamed1334() { +buildUnnamed1364() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1334(core.List<core.String> o) { +checkUnnamed1364(core.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() { +buildUnnamed1365() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1335(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')); } -buildUnnamed1336() { +buildUnnamed1366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1336(core.List<core.String> o) { +checkUnnamed1366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1337() { +buildUnnamed1367() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1337(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')); @@ -1551,16 +1551,16 @@ var mock = new HttpServerMock(); api.ProcessesResourceApi res = new api.ScriptApi(mock).processes; var arg_userProcessFilter_deploymentId = "foo"; - var arg_pageToken = "foo"; - var arg_userProcessFilter_endTime = "foo"; - var arg_pageSize = 42; var arg_userProcessFilter_startTime = "foo"; - var arg_userProcessFilter_userAccessLevels = buildUnnamed1332(); - var arg_userProcessFilter_projectName = "foo"; + var arg_userProcessFilter_endTime = "foo"; + var arg_userProcessFilter_userAccessLevels = buildUnnamed1362(); + var arg_userProcessFilter_types = buildUnnamed1363(); + var arg_userProcessFilter_statuses = buildUnnamed1364(); + var arg_pageToken = "foo"; var arg_userProcessFilter_functionName = "foo"; var arg_userProcessFilter_scriptId = "foo"; - var arg_userProcessFilter_statuses = buildUnnamed1333(); - var arg_userProcessFilter_types = buildUnnamed1334(); + var arg_pageSize = 42; + var arg_userProcessFilter_projectName = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1594,26 +1594,26 @@ } unittest.expect(queryMap["userProcessFilter.deploymentId"].first, unittest.equals(arg_userProcessFilter_deploymentId)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["userProcessFilter.endTime"].first, - unittest.equals(arg_userProcessFilter_endTime)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["userProcessFilter.startTime"].first, unittest.equals(arg_userProcessFilter_startTime)); + unittest.expect(queryMap["userProcessFilter.endTime"].first, + unittest.equals(arg_userProcessFilter_endTime)); unittest.expect(queryMap["userProcessFilter.userAccessLevels"], unittest.equals(arg_userProcessFilter_userAccessLevels)); - unittest.expect(queryMap["userProcessFilter.projectName"].first, - unittest.equals(arg_userProcessFilter_projectName)); + unittest.expect(queryMap["userProcessFilter.types"], + unittest.equals(arg_userProcessFilter_types)); + unittest.expect(queryMap["userProcessFilter.statuses"], + unittest.equals(arg_userProcessFilter_statuses)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["userProcessFilter.functionName"].first, unittest.equals(arg_userProcessFilter_functionName)); unittest.expect(queryMap["userProcessFilter.scriptId"].first, unittest.equals(arg_userProcessFilter_scriptId)); - unittest.expect(queryMap["userProcessFilter.statuses"], - unittest.equals(arg_userProcessFilter_statuses)); - unittest.expect(queryMap["userProcessFilter.types"], - unittest.equals(arg_userProcessFilter_types)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); + unittest.expect(queryMap["userProcessFilter.projectName"].first, + unittest.equals(arg_userProcessFilter_projectName)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1626,18 +1626,18 @@ .list( userProcessFilter_deploymentId: arg_userProcessFilter_deploymentId, - pageToken: arg_pageToken, - userProcessFilter_endTime: arg_userProcessFilter_endTime, - pageSize: arg_pageSize, userProcessFilter_startTime: arg_userProcessFilter_startTime, + userProcessFilter_endTime: arg_userProcessFilter_endTime, userProcessFilter_userAccessLevels: arg_userProcessFilter_userAccessLevels, - userProcessFilter_projectName: arg_userProcessFilter_projectName, + userProcessFilter_types: arg_userProcessFilter_types, + userProcessFilter_statuses: arg_userProcessFilter_statuses, + pageToken: arg_pageToken, userProcessFilter_functionName: arg_userProcessFilter_functionName, userProcessFilter_scriptId: arg_userProcessFilter_scriptId, - userProcessFilter_statuses: arg_userProcessFilter_statuses, - userProcessFilter_types: arg_userProcessFilter_types, + pageSize: arg_pageSize, + userProcessFilter_projectName: arg_userProcessFilter_projectName, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListUserProcessesResponse(response); @@ -1647,16 +1647,16 @@ unittest.test("method--listScriptProcesses", () { var mock = new HttpServerMock(); api.ProcessesResourceApi res = new api.ScriptApi(mock).processes; + var arg_scriptProcessFilter_statuses = buildUnnamed1365(); var arg_scriptProcessFilter_functionName = "foo"; + var arg_pageToken = "foo"; + var arg_scriptProcessFilter_userAccessLevels = buildUnnamed1366(); + var arg_pageSize = 42; var arg_scriptProcessFilter_startTime = "foo"; var arg_scriptProcessFilter_deploymentId = "foo"; var arg_scriptId = "foo"; - var arg_scriptProcessFilter_types = buildUnnamed1335(); - var arg_pageToken = "foo"; - var arg_pageSize = 42; + var arg_scriptProcessFilter_types = buildUnnamed1367(); var arg_scriptProcessFilter_endTime = "foo"; - var arg_scriptProcessFilter_userAccessLevels = buildUnnamed1336(); - var arg_scriptProcessFilter_statuses = buildUnnamed1337(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1688,8 +1688,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["scriptProcessFilter.statuses"], + unittest.equals(arg_scriptProcessFilter_statuses)); unittest.expect(queryMap["scriptProcessFilter.functionName"].first, unittest.equals(arg_scriptProcessFilter_functionName)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["scriptProcessFilter.userAccessLevels"], + unittest.equals(arg_scriptProcessFilter_userAccessLevels)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["scriptProcessFilter.startTime"].first, unittest.equals(arg_scriptProcessFilter_startTime)); unittest.expect(queryMap["scriptProcessFilter.deploymentId"].first, @@ -1698,16 +1706,8 @@ queryMap["scriptId"].first, unittest.equals(arg_scriptId)); unittest.expect(queryMap["scriptProcessFilter.types"], unittest.equals(arg_scriptProcessFilter_types)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["scriptProcessFilter.endTime"].first, unittest.equals(arg_scriptProcessFilter_endTime)); - unittest.expect(queryMap["scriptProcessFilter.userAccessLevels"], - unittest.equals(arg_scriptProcessFilter_userAccessLevels)); - unittest.expect(queryMap["scriptProcessFilter.statuses"], - unittest.equals(arg_scriptProcessFilter_statuses)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1718,19 +1718,19 @@ }), true); res .listScriptProcesses( + scriptProcessFilter_statuses: arg_scriptProcessFilter_statuses, scriptProcessFilter_functionName: arg_scriptProcessFilter_functionName, + pageToken: arg_pageToken, + scriptProcessFilter_userAccessLevels: + arg_scriptProcessFilter_userAccessLevels, + pageSize: arg_pageSize, scriptProcessFilter_startTime: arg_scriptProcessFilter_startTime, scriptProcessFilter_deploymentId: arg_scriptProcessFilter_deploymentId, scriptId: arg_scriptId, scriptProcessFilter_types: arg_scriptProcessFilter_types, - pageToken: arg_pageToken, - pageSize: arg_pageSize, scriptProcessFilter_endTime: arg_scriptProcessFilter_endTime, - scriptProcessFilter_userAccessLevels: - arg_scriptProcessFilter_userAccessLevels, - scriptProcessFilter_statuses: arg_scriptProcessFilter_statuses, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListScriptProcessesResponse(response); @@ -1912,8 +1912,8 @@ var mock = new HttpServerMock(); api.ProjectsResourceApi res = new api.ScriptApi(mock).projects; var arg_scriptId = "foo"; - var arg_metricsGranularity = "foo"; var arg_metricsFilter_deploymentId = "foo"; + var arg_metricsGranularity = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1954,10 +1954,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["metricsGranularity"].first, - unittest.equals(arg_metricsGranularity)); unittest.expect(queryMap["metricsFilter.deploymentId"].first, unittest.equals(arg_metricsFilter_deploymentId)); + unittest.expect(queryMap["metricsGranularity"].first, + unittest.equals(arg_metricsGranularity)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1968,8 +1968,8 @@ }), true); res .getMetrics(arg_scriptId, - metricsGranularity: arg_metricsGranularity, metricsFilter_deploymentId: arg_metricsFilter_deploymentId, + metricsGranularity: arg_metricsGranularity, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMetrics(response); @@ -2238,8 +2238,8 @@ api.ProjectsDeploymentsResourceApi res = new api.ScriptApi(mock).projects.deployments; var arg_scriptId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2280,10 +2280,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2294,8 +2294,8 @@ }), true); res .list(arg_scriptId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDeploymentsResponse(response);
diff --git a/generated/googleapis/test/searchconsole/v1_test.dart b/generated/googleapis/test/searchconsole/v1_test.dart index fb34cb7..7e64da6 100644 --- a/generated/googleapis/test/searchconsole/v1_test.dart +++ b/generated/googleapis/test/searchconsole/v1_test.dart
@@ -50,6 +50,103 @@ return new http.StreamedResponse(stream, status, headers: headers); } +buildUnnamed4587() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4587(core.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 buildCounterApiDataRow = 0; +buildApiDataRow() { + var o = new api.ApiDataRow(); + buildCounterApiDataRow++; + if (buildCounterApiDataRow < 3) { + o.clicks = 42.0; + o.ctr = 42.0; + o.impressions = 42.0; + o.keys = buildUnnamed4587(); + o.position = 42.0; + } + buildCounterApiDataRow--; + return o; +} + +checkApiDataRow(api.ApiDataRow o) { + buildCounterApiDataRow++; + if (buildCounterApiDataRow < 3) { + unittest.expect(o.clicks, unittest.equals(42.0)); + unittest.expect(o.ctr, unittest.equals(42.0)); + unittest.expect(o.impressions, unittest.equals(42.0)); + checkUnnamed4587(o.keys); + unittest.expect(o.position, unittest.equals(42.0)); + } + buildCounterApiDataRow--; +} + +core.int buildCounterApiDimensionFilter = 0; +buildApiDimensionFilter() { + var o = new api.ApiDimensionFilter(); + buildCounterApiDimensionFilter++; + if (buildCounterApiDimensionFilter < 3) { + o.dimension = "foo"; + o.expression = "foo"; + o.operator = "foo"; + } + buildCounterApiDimensionFilter--; + return o; +} + +checkApiDimensionFilter(api.ApiDimensionFilter o) { + buildCounterApiDimensionFilter++; + if (buildCounterApiDimensionFilter < 3) { + unittest.expect(o.dimension, unittest.equals('foo')); + unittest.expect(o.expression, unittest.equals('foo')); + unittest.expect(o.operator, unittest.equals('foo')); + } + buildCounterApiDimensionFilter--; +} + +buildUnnamed4588() { + var o = new core.List<api.ApiDimensionFilter>(); + o.add(buildApiDimensionFilter()); + o.add(buildApiDimensionFilter()); + return o; +} + +checkUnnamed4588(core.List<api.ApiDimensionFilter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApiDimensionFilter(o[0]); + checkApiDimensionFilter(o[1]); +} + +core.int buildCounterApiDimensionFilterGroup = 0; +buildApiDimensionFilterGroup() { + var o = new api.ApiDimensionFilterGroup(); + buildCounterApiDimensionFilterGroup++; + if (buildCounterApiDimensionFilterGroup < 3) { + o.filters = buildUnnamed4588(); + o.groupType = "foo"; + } + buildCounterApiDimensionFilterGroup--; + return o; +} + +checkApiDimensionFilterGroup(api.ApiDimensionFilterGroup o) { + buildCounterApiDimensionFilterGroup++; + if (buildCounterApiDimensionFilterGroup < 3) { + checkUnnamed4588(o.filters); + unittest.expect(o.groupType, unittest.equals('foo')); + } + buildCounterApiDimensionFilterGroup--; +} + core.int buildCounterBlockedResource = 0; buildBlockedResource() { var o = new api.BlockedResource(); @@ -149,27 +246,27 @@ buildCounterRunMobileFriendlyTestRequest--; } -buildUnnamed4347() { +buildUnnamed4589() { var o = new core.List<api.MobileFriendlyIssue>(); o.add(buildMobileFriendlyIssue()); o.add(buildMobileFriendlyIssue()); return o; } -checkUnnamed4347(core.List<api.MobileFriendlyIssue> o) { +checkUnnamed4589(core.List<api.MobileFriendlyIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkMobileFriendlyIssue(o[0]); checkMobileFriendlyIssue(o[1]); } -buildUnnamed4348() { +buildUnnamed4590() { var o = new core.List<api.ResourceIssue>(); o.add(buildResourceIssue()); o.add(buildResourceIssue()); return o; } -checkUnnamed4348(core.List<api.ResourceIssue> o) { +checkUnnamed4590(core.List<api.ResourceIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceIssue(o[0]); checkResourceIssue(o[1]); @@ -181,8 +278,8 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { o.mobileFriendliness = "foo"; - o.mobileFriendlyIssues = buildUnnamed4347(); - o.resourceIssues = buildUnnamed4348(); + o.mobileFriendlyIssues = buildUnnamed4589(); + o.resourceIssues = buildUnnamed4590(); o.screenshot = buildImage(); o.testStatus = buildTestStatus(); } @@ -194,14 +291,171 @@ buildCounterRunMobileFriendlyTestResponse++; if (buildCounterRunMobileFriendlyTestResponse < 3) { unittest.expect(o.mobileFriendliness, unittest.equals('foo')); - checkUnnamed4347(o.mobileFriendlyIssues); - checkUnnamed4348(o.resourceIssues); + checkUnnamed4589(o.mobileFriendlyIssues); + checkUnnamed4590(o.resourceIssues); checkImage(o.screenshot); checkTestStatus(o.testStatus); } buildCounterRunMobileFriendlyTestResponse--; } +buildUnnamed4591() { + var o = new core.List<api.ApiDimensionFilterGroup>(); + o.add(buildApiDimensionFilterGroup()); + o.add(buildApiDimensionFilterGroup()); + return o; +} + +checkUnnamed4591(core.List<api.ApiDimensionFilterGroup> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApiDimensionFilterGroup(o[0]); + checkApiDimensionFilterGroup(o[1]); +} + +buildUnnamed4592() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4592(core.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 buildCounterSearchAnalyticsQueryRequest = 0; +buildSearchAnalyticsQueryRequest() { + var o = new api.SearchAnalyticsQueryRequest(); + buildCounterSearchAnalyticsQueryRequest++; + if (buildCounterSearchAnalyticsQueryRequest < 3) { + o.aggregationType = "foo"; + o.dimensionFilterGroups = buildUnnamed4591(); + o.dimensions = buildUnnamed4592(); + o.endDate = "foo"; + o.rowLimit = 42; + o.searchType = "foo"; + o.startDate = "foo"; + o.startRow = 42; + } + buildCounterSearchAnalyticsQueryRequest--; + return o; +} + +checkSearchAnalyticsQueryRequest(api.SearchAnalyticsQueryRequest o) { + buildCounterSearchAnalyticsQueryRequest++; + if (buildCounterSearchAnalyticsQueryRequest < 3) { + unittest.expect(o.aggregationType, unittest.equals('foo')); + checkUnnamed4591(o.dimensionFilterGroups); + checkUnnamed4592(o.dimensions); + unittest.expect(o.endDate, unittest.equals('foo')); + unittest.expect(o.rowLimit, unittest.equals(42)); + unittest.expect(o.searchType, unittest.equals('foo')); + unittest.expect(o.startDate, unittest.equals('foo')); + unittest.expect(o.startRow, unittest.equals(42)); + } + buildCounterSearchAnalyticsQueryRequest--; +} + +buildUnnamed4593() { + var o = new core.List<api.ApiDataRow>(); + o.add(buildApiDataRow()); + o.add(buildApiDataRow()); + return o; +} + +checkUnnamed4593(core.List<api.ApiDataRow> o) { + unittest.expect(o, unittest.hasLength(2)); + checkApiDataRow(o[0]); + checkApiDataRow(o[1]); +} + +core.int buildCounterSearchAnalyticsQueryResponse = 0; +buildSearchAnalyticsQueryResponse() { + var o = new api.SearchAnalyticsQueryResponse(); + buildCounterSearchAnalyticsQueryResponse++; + if (buildCounterSearchAnalyticsQueryResponse < 3) { + o.responseAggregationType = "foo"; + o.rows = buildUnnamed4593(); + } + buildCounterSearchAnalyticsQueryResponse--; + return o; +} + +checkSearchAnalyticsQueryResponse(api.SearchAnalyticsQueryResponse o) { + buildCounterSearchAnalyticsQueryResponse++; + if (buildCounterSearchAnalyticsQueryResponse < 3) { + unittest.expect(o.responseAggregationType, unittest.equals('foo')); + checkUnnamed4593(o.rows); + } + buildCounterSearchAnalyticsQueryResponse--; +} + +buildUnnamed4594() { + var o = new core.List<api.WmxSitemap>(); + o.add(buildWmxSitemap()); + o.add(buildWmxSitemap()); + return o; +} + +checkUnnamed4594(core.List<api.WmxSitemap> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWmxSitemap(o[0]); + checkWmxSitemap(o[1]); +} + +core.int buildCounterSitemapsListResponse = 0; +buildSitemapsListResponse() { + var o = new api.SitemapsListResponse(); + buildCounterSitemapsListResponse++; + if (buildCounterSitemapsListResponse < 3) { + o.sitemap = buildUnnamed4594(); + } + buildCounterSitemapsListResponse--; + return o; +} + +checkSitemapsListResponse(api.SitemapsListResponse o) { + buildCounterSitemapsListResponse++; + if (buildCounterSitemapsListResponse < 3) { + checkUnnamed4594(o.sitemap); + } + buildCounterSitemapsListResponse--; +} + +buildUnnamed4595() { + var o = new core.List<api.WmxSite>(); + o.add(buildWmxSite()); + o.add(buildWmxSite()); + return o; +} + +checkUnnamed4595(core.List<api.WmxSite> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWmxSite(o[0]); + checkWmxSite(o[1]); +} + +core.int buildCounterSitesListResponse = 0; +buildSitesListResponse() { + var o = new api.SitesListResponse(); + buildCounterSitesListResponse++; + if (buildCounterSitesListResponse < 3) { + o.siteEntry = buildUnnamed4595(); + } + buildCounterSitesListResponse--; + return o; +} + +checkSitesListResponse(api.SitesListResponse o) { + buildCounterSitesListResponse++; + if (buildCounterSitesListResponse < 3) { + checkUnnamed4595(o.siteEntry); + } + buildCounterSitesListResponse--; +} + core.int buildCounterTestStatus = 0; buildTestStatus() { var o = new api.TestStatus(); @@ -223,7 +477,123 @@ buildCounterTestStatus--; } +core.int buildCounterWmxSite = 0; +buildWmxSite() { + var o = new api.WmxSite(); + buildCounterWmxSite++; + if (buildCounterWmxSite < 3) { + o.permissionLevel = "foo"; + o.siteUrl = "foo"; + } + buildCounterWmxSite--; + return o; +} + +checkWmxSite(api.WmxSite o) { + buildCounterWmxSite++; + if (buildCounterWmxSite < 3) { + unittest.expect(o.permissionLevel, unittest.equals('foo')); + unittest.expect(o.siteUrl, unittest.equals('foo')); + } + buildCounterWmxSite--; +} + +buildUnnamed4596() { + var o = new core.List<api.WmxSitemapContent>(); + o.add(buildWmxSitemapContent()); + o.add(buildWmxSitemapContent()); + return o; +} + +checkUnnamed4596(core.List<api.WmxSitemapContent> o) { + unittest.expect(o, unittest.hasLength(2)); + checkWmxSitemapContent(o[0]); + checkWmxSitemapContent(o[1]); +} + +core.int buildCounterWmxSitemap = 0; +buildWmxSitemap() { + var o = new api.WmxSitemap(); + buildCounterWmxSitemap++; + if (buildCounterWmxSitemap < 3) { + o.contents = buildUnnamed4596(); + o.errors = "foo"; + o.isPending = true; + o.isSitemapsIndex = true; + o.lastDownloaded = "foo"; + o.lastSubmitted = "foo"; + o.path = "foo"; + o.type = "foo"; + o.warnings = "foo"; + } + buildCounterWmxSitemap--; + return o; +} + +checkWmxSitemap(api.WmxSitemap o) { + buildCounterWmxSitemap++; + if (buildCounterWmxSitemap < 3) { + checkUnnamed4596(o.contents); + unittest.expect(o.errors, unittest.equals('foo')); + unittest.expect(o.isPending, unittest.isTrue); + unittest.expect(o.isSitemapsIndex, unittest.isTrue); + unittest.expect(o.lastDownloaded, unittest.equals('foo')); + unittest.expect(o.lastSubmitted, unittest.equals('foo')); + unittest.expect(o.path, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + unittest.expect(o.warnings, unittest.equals('foo')); + } + buildCounterWmxSitemap--; +} + +core.int buildCounterWmxSitemapContent = 0; +buildWmxSitemapContent() { + var o = new api.WmxSitemapContent(); + buildCounterWmxSitemapContent++; + if (buildCounterWmxSitemapContent < 3) { + o.indexed = "foo"; + o.submitted = "foo"; + o.type = "foo"; + } + buildCounterWmxSitemapContent--; + return o; +} + +checkWmxSitemapContent(api.WmxSitemapContent o) { + buildCounterWmxSitemapContent++; + if (buildCounterWmxSitemapContent < 3) { + unittest.expect(o.indexed, unittest.equals('foo')); + unittest.expect(o.submitted, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterWmxSitemapContent--; +} + main() { + unittest.group("obj-schema-ApiDataRow", () { + unittest.test("to-json--from-json", () { + var o = buildApiDataRow(); + var od = new api.ApiDataRow.fromJson(o.toJson()); + checkApiDataRow(od); + }); + }); + + unittest.group("obj-schema-ApiDimensionFilter", () { + unittest.test("to-json--from-json", () { + var o = buildApiDimensionFilter(); + var od = new api.ApiDimensionFilter.fromJson(o.toJson()); + checkApiDimensionFilter(od); + }); + }); + + unittest.group("obj-schema-ApiDimensionFilterGroup", () { + unittest.test("to-json--from-json", () { + var o = buildApiDimensionFilterGroup(); + var od = new api.ApiDimensionFilterGroup.fromJson(o.toJson()); + checkApiDimensionFilterGroup(od); + }); + }); + unittest.group("obj-schema-BlockedResource", () { unittest.test("to-json--from-json", () { var o = buildBlockedResource(); @@ -272,6 +642,38 @@ }); }); + unittest.group("obj-schema-SearchAnalyticsQueryRequest", () { + unittest.test("to-json--from-json", () { + var o = buildSearchAnalyticsQueryRequest(); + var od = new api.SearchAnalyticsQueryRequest.fromJson(o.toJson()); + checkSearchAnalyticsQueryRequest(od); + }); + }); + + unittest.group("obj-schema-SearchAnalyticsQueryResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSearchAnalyticsQueryResponse(); + var od = new api.SearchAnalyticsQueryResponse.fromJson(o.toJson()); + checkSearchAnalyticsQueryResponse(od); + }); + }); + + unittest.group("obj-schema-SitemapsListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildSitemapsListResponse(); + var od = new api.SitemapsListResponse.fromJson(o.toJson()); + checkSitemapsListResponse(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-TestStatus", () { unittest.test("to-json--from-json", () { var o = buildTestStatus(); @@ -280,6 +682,550 @@ }); }); + unittest.group("obj-schema-WmxSite", () { + unittest.test("to-json--from-json", () { + var o = buildWmxSite(); + var od = new api.WmxSite.fromJson(o.toJson()); + checkWmxSite(od); + }); + }); + + unittest.group("obj-schema-WmxSitemap", () { + unittest.test("to-json--from-json", () { + var o = buildWmxSitemap(); + var od = new api.WmxSitemap.fromJson(o.toJson()); + checkWmxSitemap(od); + }); + }); + + unittest.group("obj-schema-WmxSitemapContent", () { + unittest.test("to-json--from-json", () { + var o = buildWmxSitemapContent(); + var od = new api.WmxSitemapContent.fromJson(o.toJson()); + checkWmxSitemapContent(od); + }); + }); + + unittest.group("resource-SearchanalyticsResourceApi", () { + unittest.test("method--query", () { + var mock = new HttpServerMock(); + api.SearchanalyticsResourceApi res = + new api.SearchconsoleApi(mock).searchanalytics; + var arg_request = buildSearchAnalyticsQueryRequest(); + var arg_siteUrl = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.SearchAnalyticsQueryRequest.fromJson(json); + checkSearchAnalyticsQueryRequest(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 + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + index = path.indexOf("/searchAnalytics/query", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("/searchAnalytics/query")); + pathOffset += 22; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSearchAnalyticsQueryResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .query(arg_request, arg_siteUrl, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSearchAnalyticsQueryResponse(response); + }))); + }); + }); + + unittest.group("resource-SitemapsResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.SitemapsResourceApi res = new api.SearchconsoleApi(mock).sitemaps; + var arg_siteUrl = "foo"; + var arg_feedpath = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + index = path.indexOf("/sitemaps/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/sitemaps/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_feedpath")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_siteUrl, arg_feedpath, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.SitemapsResourceApi res = new api.SearchconsoleApi(mock).sitemaps; + var arg_siteUrl = "foo"; + var arg_feedpath = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + index = path.indexOf("/sitemaps/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/sitemaps/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_feedpath")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildWmxSitemap()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_siteUrl, arg_feedpath, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkWmxSitemap(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.SitemapsResourceApi res = new api.SearchconsoleApi(mock).sitemaps; + var arg_siteUrl = "foo"; + var arg_sitemapIndex = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + index = path.indexOf("/sitemaps", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + unittest.expect(path.substring(pathOffset, pathOffset + 9), + unittest.equals("/sitemaps")); + pathOffset += 9; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["sitemapIndex"].first, unittest.equals(arg_sitemapIndex)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildSitemapsListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_siteUrl, + sitemapIndex: arg_sitemapIndex, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkSitemapsListResponse(response); + }))); + }); + + unittest.test("method--submit", () { + var mock = new HttpServerMock(); + api.SitemapsResourceApi res = new api.SearchconsoleApi(mock).sitemaps; + var arg_siteUrl = "foo"; + var arg_feedpath = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + index = path.indexOf("/sitemaps/", pathOffset); + unittest.expect(index >= 0, unittest.isTrue); + subPart = + core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); + pathOffset = index; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + unittest.expect(path.substring(pathOffset, pathOffset + 10), + unittest.equals("/sitemaps/")); + pathOffset += 10; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_feedpath")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .submit(arg_siteUrl, arg_feedpath, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + }); + + unittest.group("resource-SitesResourceApi", () { + unittest.test("method--add", () { + var mock = new HttpServerMock(); + api.SitesResourceApi res = new api.SearchconsoleApi(mock).sites; + var arg_siteUrl = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .add(arg_siteUrl, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.SitesResourceApi res = new api.SearchconsoleApi(mock).sites; + var arg_siteUrl = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_siteUrl, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.SitesResourceApi res = new api.SearchconsoleApi(mock).sites; + var arg_siteUrl = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("webmasters/v3/sites/")); + pathOffset += 20; + subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); + pathOffset = path.length; + unittest.expect(subPart, unittest.equals("$arg_siteUrl")); + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildWmxSite()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_siteUrl, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkWmxSite(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.SitesResourceApi res = new api.SearchconsoleApi(mock).sites; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("webmasters/v3/sites")); + pathOffset += 19; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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($fields: arg_$fields).then(unittest.expectAsync1(((response) { + checkSitesListResponse(response); + }))); + }); + }); + unittest.group("resource-UrlTestingToolsMobileFriendlyTestResourceApi", () { unittest.test("method--run", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/secretmanager/v1_test.dart b/generated/googleapis/test/secretmanager/v1_test.dart index 1e41f26..52b8c22 100644 --- a/generated/googleapis/test/secretmanager/v1_test.dart +++ b/generated/googleapis/test/secretmanager/v1_test.dart
@@ -90,14 +90,14 @@ buildCounterAddSecretVersionRequest--; } -buildUnnamed3644() { +buildUnnamed3827() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed3644(core.List<api.AuditLogConfig> o) { +checkUnnamed3827(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -108,7 +108,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed3644(); + o.auditLogConfigs = buildUnnamed3827(); o.service = "foo"; } buildCounterAuditConfig--; @@ -118,20 +118,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed3644(o.auditLogConfigs); + checkUnnamed3827(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed3645() { +buildUnnamed3828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3645(core.List<core.String> o) { +checkUnnamed3828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -142,7 +142,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed3645(); + o.exemptedMembers = buildUnnamed3828(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -152,7 +152,7 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed3645(o.exemptedMembers); + checkUnnamed3828(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; @@ -162,25 +162,48 @@ buildAutomatic() { var o = new api.Automatic(); buildCounterAutomatic++; - if (buildCounterAutomatic < 3) {} + if (buildCounterAutomatic < 3) { + o.customerManagedEncryption = buildCustomerManagedEncryption(); + } buildCounterAutomatic--; return o; } checkAutomatic(api.Automatic o) { buildCounterAutomatic++; - if (buildCounterAutomatic < 3) {} + if (buildCounterAutomatic < 3) { + checkCustomerManagedEncryption(o.customerManagedEncryption); + } buildCounterAutomatic--; } -buildUnnamed3646() { +core.int buildCounterAutomaticStatus = 0; +buildAutomaticStatus() { + var o = new api.AutomaticStatus(); + buildCounterAutomaticStatus++; + if (buildCounterAutomaticStatus < 3) { + o.customerManagedEncryption = buildCustomerManagedEncryptionStatus(); + } + buildCounterAutomaticStatus--; + return o; +} + +checkAutomaticStatus(api.AutomaticStatus o) { + buildCounterAutomaticStatus++; + if (buildCounterAutomaticStatus < 3) { + checkCustomerManagedEncryptionStatus(o.customerManagedEncryption); + } + buildCounterAutomaticStatus--; +} + +buildUnnamed3829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3646(core.List<core.String> o) { +checkUnnamed3829(core.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,8 +214,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed3646(); + o.members = buildUnnamed3829(); o.role = "foo"; } buildCounterBinding--; @@ -202,13 +226,52 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed3646(o.members); + checkUnnamed3829(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } +core.int buildCounterCustomerManagedEncryption = 0; +buildCustomerManagedEncryption() { + var o = new api.CustomerManagedEncryption(); + buildCounterCustomerManagedEncryption++; + if (buildCounterCustomerManagedEncryption < 3) { + o.kmsKeyName = "foo"; + } + buildCounterCustomerManagedEncryption--; + return o; +} + +checkCustomerManagedEncryption(api.CustomerManagedEncryption o) { + buildCounterCustomerManagedEncryption++; + if (buildCounterCustomerManagedEncryption < 3) { + unittest.expect(o.kmsKeyName, unittest.equals('foo')); + } + buildCounterCustomerManagedEncryption--; +} + +core.int buildCounterCustomerManagedEncryptionStatus = 0; +buildCustomerManagedEncryptionStatus() { + var o = new api.CustomerManagedEncryptionStatus(); + buildCounterCustomerManagedEncryptionStatus++; + if (buildCounterCustomerManagedEncryptionStatus < 3) { + o.kmsKeyVersionName = "foo"; + } + buildCounterCustomerManagedEncryptionStatus--; + return o; +} + +checkCustomerManagedEncryptionStatus(api.CustomerManagedEncryptionStatus o) { + buildCounterCustomerManagedEncryptionStatus++; + if (buildCounterCustomerManagedEncryptionStatus < 3) { + unittest.expect(o.kmsKeyVersionName, unittest.equals('foo')); + } + buildCounterCustomerManagedEncryptionStatus--; +} + core.int buildCounterDestroySecretVersionRequest = 0; buildDestroySecretVersionRequest() { var o = new api.DestroySecretVersionRequest(); @@ -294,14 +357,14 @@ buildCounterExpr--; } -buildUnnamed3647() { +buildUnnamed3830() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed3647(core.List<api.Location> o) { +checkUnnamed3830(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -312,7 +375,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed3647(); + o.locations = buildUnnamed3830(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -322,20 +385,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed3647(o.locations); + checkUnnamed3830(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed3648() { +buildUnnamed3831() { var o = new core.List<api.SecretVersion>(); o.add(buildSecretVersion()); o.add(buildSecretVersion()); return o; } -checkUnnamed3648(core.List<api.SecretVersion> o) { +checkUnnamed3831(core.List<api.SecretVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkSecretVersion(o[0]); checkSecretVersion(o[1]); @@ -348,7 +411,7 @@ if (buildCounterListSecretVersionsResponse < 3) { o.nextPageToken = "foo"; o.totalSize = 42; - o.versions = buildUnnamed3648(); + o.versions = buildUnnamed3831(); } buildCounterListSecretVersionsResponse--; return o; @@ -359,19 +422,19 @@ if (buildCounterListSecretVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); - checkUnnamed3648(o.versions); + checkUnnamed3831(o.versions); } buildCounterListSecretVersionsResponse--; } -buildUnnamed3649() { +buildUnnamed3832() { var o = new core.List<api.Secret>(); o.add(buildSecret()); o.add(buildSecret()); return o; } -checkUnnamed3649(core.List<api.Secret> o) { +checkUnnamed3832(core.List<api.Secret> o) { unittest.expect(o, unittest.hasLength(2)); checkSecret(o[0]); checkSecret(o[1]); @@ -383,7 +446,7 @@ buildCounterListSecretsResponse++; if (buildCounterListSecretsResponse < 3) { o.nextPageToken = "foo"; - o.secrets = buildUnnamed3649(); + o.secrets = buildUnnamed3832(); o.totalSize = 42; } buildCounterListSecretsResponse--; @@ -394,26 +457,26 @@ buildCounterListSecretsResponse++; if (buildCounterListSecretsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3649(o.secrets); + checkUnnamed3832(o.secrets); unittest.expect(o.totalSize, unittest.equals(42)); } buildCounterListSecretsResponse--; } -buildUnnamed3650() { +buildUnnamed3833() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3650(core.Map<core.String, core.String> o) { +checkUnnamed3833(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')); } -buildUnnamed3651() { +buildUnnamed3834() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -428,7 +491,7 @@ return o; } -checkUnnamed3651(core.Map<core.String, core.Object> o) { +checkUnnamed3834(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)); @@ -448,9 +511,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed3650(); + o.labels = buildUnnamed3833(); o.locationId = "foo"; - o.metadata = buildUnnamed3651(); + o.metadata = buildUnnamed3834(); o.name = "foo"; } buildCounterLocation--; @@ -461,35 +524,35 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3650(o.labels); + checkUnnamed3833(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed3651(o.metadata); + checkUnnamed3834(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed3652() { +buildUnnamed3835() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed3652(core.List<api.AuditConfig> o) { +checkUnnamed3835(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed3653() { +buildUnnamed3836() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3653(core.List<api.Binding> o) { +checkUnnamed3836(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -500,8 +563,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed3652(); - o.bindings = buildUnnamed3653(); + o.auditConfigs = buildUnnamed3835(); + o.bindings = buildUnnamed3836(); o.etag = "foo"; o.version = 42; } @@ -512,8 +575,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3652(o.auditConfigs); - checkUnnamed3653(o.bindings); + checkUnnamed3835(o.auditConfigs); + checkUnnamed3836(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -525,6 +588,7 @@ var o = new api.Replica(); buildCounterReplica++; if (buildCounterReplica < 3) { + o.customerManagedEncryption = buildCustomerManagedEncryption(); o.location = "foo"; } buildCounterReplica--; @@ -534,11 +598,33 @@ checkReplica(api.Replica o) { buildCounterReplica++; if (buildCounterReplica < 3) { + checkCustomerManagedEncryption(o.customerManagedEncryption); unittest.expect(o.location, unittest.equals('foo')); } buildCounterReplica--; } +core.int buildCounterReplicaStatus = 0; +buildReplicaStatus() { + var o = new api.ReplicaStatus(); + buildCounterReplicaStatus++; + if (buildCounterReplicaStatus < 3) { + o.customerManagedEncryption = buildCustomerManagedEncryptionStatus(); + o.location = "foo"; + } + buildCounterReplicaStatus--; + return o; +} + +checkReplicaStatus(api.ReplicaStatus o) { + buildCounterReplicaStatus++; + if (buildCounterReplicaStatus < 3) { + checkCustomerManagedEncryptionStatus(o.customerManagedEncryption); + unittest.expect(o.location, unittest.equals('foo')); + } + buildCounterReplicaStatus--; +} + core.int buildCounterReplication = 0; buildReplication() { var o = new api.Replication(); @@ -560,14 +646,35 @@ buildCounterReplication--; } -buildUnnamed3654() { +core.int buildCounterReplicationStatus = 0; +buildReplicationStatus() { + var o = new api.ReplicationStatus(); + buildCounterReplicationStatus++; + if (buildCounterReplicationStatus < 3) { + o.automatic = buildAutomaticStatus(); + o.userManaged = buildUserManagedStatus(); + } + buildCounterReplicationStatus--; + return o; +} + +checkReplicationStatus(api.ReplicationStatus o) { + buildCounterReplicationStatus++; + if (buildCounterReplicationStatus < 3) { + checkAutomaticStatus(o.automatic); + checkUserManagedStatus(o.userManaged); + } + buildCounterReplicationStatus--; +} + +buildUnnamed3837() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3654(core.Map<core.String, core.String> o) { +checkUnnamed3837(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,7 +686,7 @@ buildCounterSecret++; if (buildCounterSecret < 3) { o.createTime = "foo"; - o.labels = buildUnnamed3654(); + o.labels = buildUnnamed3837(); o.name = "foo"; o.replication = buildReplication(); } @@ -591,7 +698,7 @@ buildCounterSecret++; if (buildCounterSecret < 3) { unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3654(o.labels); + checkUnnamed3837(o.labels); unittest.expect(o.name, unittest.equals('foo')); checkReplication(o.replication); } @@ -625,6 +732,7 @@ o.createTime = "foo"; o.destroyTime = "foo"; o.name = "foo"; + o.replicationStatus = buildReplicationStatus(); o.state = "foo"; } buildCounterSecretVersion--; @@ -637,6 +745,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.destroyTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); + checkReplicationStatus(o.replicationStatus); unittest.expect(o.state, unittest.equals('foo')); } buildCounterSecretVersion--; @@ -663,14 +772,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3655() { +buildUnnamed3838() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3655(core.List<core.String> o) { +checkUnnamed3838(core.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 +790,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3655(); + o.permissions = buildUnnamed3838(); } buildCounterTestIamPermissionsRequest--; return o; @@ -690,19 +799,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3655(o.permissions); + checkUnnamed3838(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3656() { +buildUnnamed3839() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3656(core.List<core.String> o) { +checkUnnamed3839(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -713,7 +822,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3656(); + o.permissions = buildUnnamed3839(); } buildCounterTestIamPermissionsResponse--; return o; @@ -722,19 +831,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3656(o.permissions); + checkUnnamed3839(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed3657() { +buildUnnamed3840() { var o = new core.List<api.Replica>(); o.add(buildReplica()); o.add(buildReplica()); return o; } -checkUnnamed3657(core.List<api.Replica> o) { +checkUnnamed3840(core.List<api.Replica> o) { unittest.expect(o, unittest.hasLength(2)); checkReplica(o[0]); checkReplica(o[1]); @@ -745,7 +854,7 @@ var o = new api.UserManaged(); buildCounterUserManaged++; if (buildCounterUserManaged < 3) { - o.replicas = buildUnnamed3657(); + o.replicas = buildUnnamed3840(); } buildCounterUserManaged--; return o; @@ -754,11 +863,43 @@ checkUserManaged(api.UserManaged o) { buildCounterUserManaged++; if (buildCounterUserManaged < 3) { - checkUnnamed3657(o.replicas); + checkUnnamed3840(o.replicas); } buildCounterUserManaged--; } +buildUnnamed3841() { + var o = new core.List<api.ReplicaStatus>(); + o.add(buildReplicaStatus()); + o.add(buildReplicaStatus()); + return o; +} + +checkUnnamed3841(core.List<api.ReplicaStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkReplicaStatus(o[0]); + checkReplicaStatus(o[1]); +} + +core.int buildCounterUserManagedStatus = 0; +buildUserManagedStatus() { + var o = new api.UserManagedStatus(); + buildCounterUserManagedStatus++; + if (buildCounterUserManagedStatus < 3) { + o.replicas = buildUnnamed3841(); + } + buildCounterUserManagedStatus--; + return o; +} + +checkUserManagedStatus(api.UserManagedStatus o) { + buildCounterUserManagedStatus++; + if (buildCounterUserManagedStatus < 3) { + checkUnnamed3841(o.replicas); + } + buildCounterUserManagedStatus--; +} + main() { unittest.group("obj-schema-AccessSecretVersionResponse", () { unittest.test("to-json--from-json", () { @@ -800,6 +941,14 @@ }); }); + unittest.group("obj-schema-AutomaticStatus", () { + unittest.test("to-json--from-json", () { + var o = buildAutomaticStatus(); + var od = new api.AutomaticStatus.fromJson(o.toJson()); + checkAutomaticStatus(od); + }); + }); + unittest.group("obj-schema-Binding", () { unittest.test("to-json--from-json", () { var o = buildBinding(); @@ -808,6 +957,22 @@ }); }); + unittest.group("obj-schema-CustomerManagedEncryption", () { + unittest.test("to-json--from-json", () { + var o = buildCustomerManagedEncryption(); + var od = new api.CustomerManagedEncryption.fromJson(o.toJson()); + checkCustomerManagedEncryption(od); + }); + }); + + unittest.group("obj-schema-CustomerManagedEncryptionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildCustomerManagedEncryptionStatus(); + var od = new api.CustomerManagedEncryptionStatus.fromJson(o.toJson()); + checkCustomerManagedEncryptionStatus(od); + }); + }); + unittest.group("obj-schema-DestroySecretVersionRequest", () { unittest.test("to-json--from-json", () { var o = buildDestroySecretVersionRequest(); @@ -896,6 +1061,14 @@ }); }); + unittest.group("obj-schema-ReplicaStatus", () { + unittest.test("to-json--from-json", () { + var o = buildReplicaStatus(); + var od = new api.ReplicaStatus.fromJson(o.toJson()); + checkReplicaStatus(od); + }); + }); + unittest.group("obj-schema-Replication", () { unittest.test("to-json--from-json", () { var o = buildReplication(); @@ -904,6 +1077,14 @@ }); }); + unittest.group("obj-schema-ReplicationStatus", () { + unittest.test("to-json--from-json", () { + var o = buildReplicationStatus(); + var od = new api.ReplicationStatus.fromJson(o.toJson()); + checkReplicationStatus(od); + }); + }); + unittest.group("obj-schema-Secret", () { unittest.test("to-json--from-json", () { var o = buildSecret(); @@ -960,6 +1141,14 @@ }); }); + unittest.group("obj-schema-UserManagedStatus", () { + unittest.test("to-json--from-json", () { + var o = buildUserManagedStatus(); + var od = new api.UserManagedStatus.fromJson(o.toJson()); + checkUserManagedStatus(od); + }); + }); + unittest.group("resource-ProjectsLocationsResourceApi", () { unittest.test("method--get", () { var mock = new HttpServerMock(); @@ -1018,9 +1207,9 @@ api.ProjectsLocationsResourceApi res = new api.SecretmanagerApi(mock).projects.locations; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1053,11 +1242,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1068,9 +1257,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1870,8 +2059,8 @@ api.ProjectsSecretsVersionsResourceApi res = new api.SecretmanagerApi(mock).projects.secrets.versions; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1904,10 +2093,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1918,8 +2107,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSecretVersionsResponse(response);
diff --git a/generated/googleapis/test/securitycenter/v1_test.dart b/generated/googleapis/test/securitycenter/v1_test.dart index 312f4cc..b8b5c67 100644 --- a/generated/googleapis/test/securitycenter/v1_test.dart +++ b/generated/googleapis/test/securitycenter/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed495() { +buildUnnamed516() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -65,7 +65,7 @@ return o; } -checkUnnamed495(core.Map<core.String, core.Object> o) { +checkUnnamed516(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)); @@ -87,7 +87,7 @@ o.createTime = "foo"; o.iamPolicy = buildIamPolicy(); o.name = "foo"; - o.resourceProperties = buildUnnamed495(); + o.resourceProperties = buildUnnamed516(); o.securityCenterProperties = buildSecurityCenterProperties(); o.securityMarks = buildSecurityMarks(); o.updateTime = "foo"; @@ -102,7 +102,7 @@ unittest.expect(o.createTime, unittest.equals('foo')); checkIamPolicy(o.iamPolicy); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed495(o.resourceProperties); + checkUnnamed516(o.resourceProperties); checkSecurityCenterProperties(o.securityCenterProperties); checkSecurityMarks(o.securityMarks); unittest.expect(o.updateTime, unittest.equals('foo')); @@ -110,14 +110,14 @@ buildCounterAsset--; } -buildUnnamed496() { +buildUnnamed517() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed496(core.List<core.String> o) { +checkUnnamed517(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -129,7 +129,7 @@ buildCounterAssetDiscoveryConfig++; if (buildCounterAssetDiscoveryConfig < 3) { o.inclusionMode = "foo"; - o.projectIds = buildUnnamed496(); + o.projectIds = buildUnnamed517(); } buildCounterAssetDiscoveryConfig--; return o; @@ -139,19 +139,19 @@ buildCounterAssetDiscoveryConfig++; if (buildCounterAssetDiscoveryConfig < 3) { unittest.expect(o.inclusionMode, unittest.equals('foo')); - checkUnnamed496(o.projectIds); + checkUnnamed517(o.projectIds); } buildCounterAssetDiscoveryConfig--; } -buildUnnamed497() { +buildUnnamed518() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed497(core.List<api.AuditLogConfig> o) { +checkUnnamed518(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -162,7 +162,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed497(); + o.auditLogConfigs = buildUnnamed518(); o.service = "foo"; } buildCounterAuditConfig--; @@ -172,20 +172,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed497(o.auditLogConfigs); + checkUnnamed518(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed498() { +buildUnnamed519() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed498(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')); @@ -196,7 +196,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed498(); + o.exemptedMembers = buildUnnamed519(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -206,20 +206,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed498(o.exemptedMembers); + checkUnnamed519(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed499() { +buildUnnamed520() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed499(core.List<core.String> o) { +checkUnnamed520(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -231,7 +231,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed499(); + o.members = buildUnnamed520(); o.role = "foo"; } buildCounterBinding--; @@ -242,7 +242,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed499(o.members); + checkUnnamed520(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -288,7 +288,7 @@ buildCounterExpr--; } -buildUnnamed500() { +buildUnnamed521() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -303,7 +303,7 @@ return o; } -checkUnnamed500(core.Map<core.String, core.Object> o) { +checkUnnamed521(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)); @@ -330,7 +330,7 @@ o.parent = "foo"; o.resourceName = "foo"; o.securityMarks = buildSecurityMarks(); - o.sourceProperties = buildUnnamed500(); + o.sourceProperties = buildUnnamed521(); o.state = "foo"; } buildCounterFinding--; @@ -348,7 +348,7 @@ unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); checkSecurityMarks(o.securityMarks); - checkUnnamed500(o.sourceProperties); + checkUnnamed521(o.sourceProperties); unittest.expect(o.state, unittest.equals('foo')); } buildCounterFinding--; @@ -399,6 +399,7 @@ if (buildCounterGoogleCloudSecuritycenterV1NotificationMessage < 3) { o.finding = buildFinding(); o.notificationConfigName = "foo"; + o.resource = buildGoogleCloudSecuritycenterV1Resource(); } buildCounterGoogleCloudSecuritycenterV1NotificationMessage--; return o; @@ -410,10 +411,39 @@ if (buildCounterGoogleCloudSecuritycenterV1NotificationMessage < 3) { checkFinding(o.finding); unittest.expect(o.notificationConfigName, unittest.equals('foo')); + checkGoogleCloudSecuritycenterV1Resource(o.resource); } buildCounterGoogleCloudSecuritycenterV1NotificationMessage--; } +core.int buildCounterGoogleCloudSecuritycenterV1Resource = 0; +buildGoogleCloudSecuritycenterV1Resource() { + var o = new api.GoogleCloudSecuritycenterV1Resource(); + buildCounterGoogleCloudSecuritycenterV1Resource++; + if (buildCounterGoogleCloudSecuritycenterV1Resource < 3) { + o.name = "foo"; + o.parent = "foo"; + o.parentDisplayName = "foo"; + o.project = "foo"; + o.projectDisplayName = "foo"; + } + buildCounterGoogleCloudSecuritycenterV1Resource--; + return o; +} + +checkGoogleCloudSecuritycenterV1Resource( + api.GoogleCloudSecuritycenterV1Resource o) { + buildCounterGoogleCloudSecuritycenterV1Resource++; + if (buildCounterGoogleCloudSecuritycenterV1Resource < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.parentDisplayName, unittest.equals('foo')); + unittest.expect(o.project, unittest.equals('foo')); + unittest.expect(o.projectDisplayName, unittest.equals('foo')); + } + buildCounterGoogleCloudSecuritycenterV1Resource--; +} + core.int buildCounterGoogleCloudSecuritycenterV1RunAssetDiscoveryResponse = 0; buildGoogleCloudSecuritycenterV1RunAssetDiscoveryResponse() { var o = new api.GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse(); @@ -461,7 +491,7 @@ buildCounterGoogleCloudSecuritycenterV1beta1RunAssetDiscoveryResponse--; } -buildUnnamed501() { +buildUnnamed522() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -476,7 +506,7 @@ return o; } -checkUnnamed501(core.Map<core.String, core.Object> o) { +checkUnnamed522(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)); @@ -490,69 +520,6 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -core.int buildCounterGoogleCloudSecuritycenterV1p1beta1Asset = 0; -buildGoogleCloudSecuritycenterV1p1beta1Asset() { - var o = new api.GoogleCloudSecuritycenterV1p1beta1Asset(); - buildCounterGoogleCloudSecuritycenterV1p1beta1Asset++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1Asset < 3) { - o.createTime = "foo"; - o.iamPolicy = buildGoogleCloudSecuritycenterV1p1beta1IamPolicy(); - o.name = "foo"; - o.resourceProperties = buildUnnamed501(); - o.securityCenterProperties = - buildGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties(); - o.securityMarks = buildGoogleCloudSecuritycenterV1p1beta1SecurityMarks(); - o.updateTime = "foo"; - } - buildCounterGoogleCloudSecuritycenterV1p1beta1Asset--; - return o; -} - -checkGoogleCloudSecuritycenterV1p1beta1Asset( - api.GoogleCloudSecuritycenterV1p1beta1Asset o) { - buildCounterGoogleCloudSecuritycenterV1p1beta1Asset++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1Asset < 3) { - unittest.expect(o.createTime, unittest.equals('foo')); - checkGoogleCloudSecuritycenterV1p1beta1IamPolicy(o.iamPolicy); - unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed501(o.resourceProperties); - checkGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties( - o.securityCenterProperties); - checkGoogleCloudSecuritycenterV1p1beta1SecurityMarks(o.securityMarks); - unittest.expect(o.updateTime, unittest.equals('foo')); - } - buildCounterGoogleCloudSecuritycenterV1p1beta1Asset--; -} - -buildUnnamed502() { - 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; -} - -checkUnnamed502(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')); -} - core.int buildCounterGoogleCloudSecuritycenterV1p1beta1Finding = 0; buildGoogleCloudSecuritycenterV1p1beta1Finding() { var o = new api.GoogleCloudSecuritycenterV1p1beta1Finding(); @@ -566,7 +533,8 @@ o.parent = "foo"; o.resourceName = "foo"; o.securityMarks = buildGoogleCloudSecuritycenterV1p1beta1SecurityMarks(); - o.sourceProperties = buildUnnamed502(); + o.severity = "foo"; + o.sourceProperties = buildUnnamed522(); o.state = "foo"; } buildCounterGoogleCloudSecuritycenterV1p1beta1Finding--; @@ -585,32 +553,13 @@ unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); checkGoogleCloudSecuritycenterV1p1beta1SecurityMarks(o.securityMarks); - checkUnnamed502(o.sourceProperties); + unittest.expect(o.severity, unittest.equals('foo')); + checkUnnamed522(o.sourceProperties); unittest.expect(o.state, unittest.equals('foo')); } buildCounterGoogleCloudSecuritycenterV1p1beta1Finding--; } -core.int buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy = 0; -buildGoogleCloudSecuritycenterV1p1beta1IamPolicy() { - var o = new api.GoogleCloudSecuritycenterV1p1beta1IamPolicy(); - buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy < 3) { - o.policyBlob = "foo"; - } - buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy--; - return o; -} - -checkGoogleCloudSecuritycenterV1p1beta1IamPolicy( - api.GoogleCloudSecuritycenterV1p1beta1IamPolicy o) { - buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy < 3) { - unittest.expect(o.policyBlob, unittest.equals('foo')); - } - buildCounterGoogleCloudSecuritycenterV1p1beta1IamPolicy--; -} - core.int buildCounterGoogleCloudSecuritycenterV1p1beta1NotificationMessage = 0; buildGoogleCloudSecuritycenterV1p1beta1NotificationMessage() { var o = new api.GoogleCloudSecuritycenterV1p1beta1NotificationMessage(); @@ -618,7 +567,7 @@ if (buildCounterGoogleCloudSecuritycenterV1p1beta1NotificationMessage < 3) { o.finding = buildGoogleCloudSecuritycenterV1p1beta1Finding(); o.notificationConfigName = "foo"; - o.temporalAsset = buildGoogleCloudSecuritycenterV1p1beta1TemporalAsset(); + o.resource = buildGoogleCloudSecuritycenterV1p1beta1Resource(); } buildCounterGoogleCloudSecuritycenterV1p1beta1NotificationMessage--; return o; @@ -630,11 +579,39 @@ if (buildCounterGoogleCloudSecuritycenterV1p1beta1NotificationMessage < 3) { checkGoogleCloudSecuritycenterV1p1beta1Finding(o.finding); unittest.expect(o.notificationConfigName, unittest.equals('foo')); - checkGoogleCloudSecuritycenterV1p1beta1TemporalAsset(o.temporalAsset); + checkGoogleCloudSecuritycenterV1p1beta1Resource(o.resource); } buildCounterGoogleCloudSecuritycenterV1p1beta1NotificationMessage--; } +core.int buildCounterGoogleCloudSecuritycenterV1p1beta1Resource = 0; +buildGoogleCloudSecuritycenterV1p1beta1Resource() { + var o = new api.GoogleCloudSecuritycenterV1p1beta1Resource(); + buildCounterGoogleCloudSecuritycenterV1p1beta1Resource++; + if (buildCounterGoogleCloudSecuritycenterV1p1beta1Resource < 3) { + o.name = "foo"; + o.parent = "foo"; + o.parentDisplayName = "foo"; + o.project = "foo"; + o.projectDisplayName = "foo"; + } + buildCounterGoogleCloudSecuritycenterV1p1beta1Resource--; + return o; +} + +checkGoogleCloudSecuritycenterV1p1beta1Resource( + api.GoogleCloudSecuritycenterV1p1beta1Resource o) { + buildCounterGoogleCloudSecuritycenterV1p1beta1Resource++; + if (buildCounterGoogleCloudSecuritycenterV1p1beta1Resource < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.parent, unittest.equals('foo')); + unittest.expect(o.parentDisplayName, unittest.equals('foo')); + unittest.expect(o.project, unittest.equals('foo')); + unittest.expect(o.projectDisplayName, unittest.equals('foo')); + } + buildCounterGoogleCloudSecuritycenterV1p1beta1Resource--; +} + core.int buildCounterGoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse = 0; buildGoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse() { @@ -660,64 +637,14 @@ buildCounterGoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse--; } -buildUnnamed503() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed503(core.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 - buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties = 0; -buildGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties() { - var o = new api.GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties(); - buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties < - 3) { - o.resourceDisplayName = "foo"; - o.resourceName = "foo"; - o.resourceOwners = buildUnnamed503(); - o.resourceParent = "foo"; - o.resourceParentDisplayName = "foo"; - o.resourceProject = "foo"; - o.resourceProjectDisplayName = "foo"; - o.resourceType = "foo"; - } - buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties--; - return o; -} - -checkGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties( - api.GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties o) { - buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties < - 3) { - unittest.expect(o.resourceDisplayName, unittest.equals('foo')); - unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed503(o.resourceOwners); - unittest.expect(o.resourceParent, unittest.equals('foo')); - unittest.expect(o.resourceParentDisplayName, unittest.equals('foo')); - unittest.expect(o.resourceProject, unittest.equals('foo')); - unittest.expect(o.resourceProjectDisplayName, unittest.equals('foo')); - unittest.expect(o.resourceType, unittest.equals('foo')); - } - buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties--; -} - -buildUnnamed504() { +buildUnnamed523() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed504(core.Map<core.String, core.String> o) { +checkUnnamed523(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')); @@ -728,7 +655,7 @@ var o = new api.GoogleCloudSecuritycenterV1p1beta1SecurityMarks(); buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks++; if (buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks < 3) { - o.marks = buildUnnamed504(); + o.marks = buildUnnamed523(); o.name = "foo"; } buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks--; @@ -739,34 +666,12 @@ api.GoogleCloudSecuritycenterV1p1beta1SecurityMarks o) { buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks++; if (buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks < 3) { - checkUnnamed504(o.marks); + checkUnnamed523(o.marks); unittest.expect(o.name, unittest.equals('foo')); } buildCounterGoogleCloudSecuritycenterV1p1beta1SecurityMarks--; } -core.int buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset = 0; -buildGoogleCloudSecuritycenterV1p1beta1TemporalAsset() { - var o = new api.GoogleCloudSecuritycenterV1p1beta1TemporalAsset(); - buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset < 3) { - o.asset = buildGoogleCloudSecuritycenterV1p1beta1Asset(); - o.changeType = "foo"; - } - buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset--; - return o; -} - -checkGoogleCloudSecuritycenterV1p1beta1TemporalAsset( - api.GoogleCloudSecuritycenterV1p1beta1TemporalAsset o) { - buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset++; - if (buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset < 3) { - checkGoogleCloudSecuritycenterV1p1beta1Asset(o.asset); - unittest.expect(o.changeType, unittest.equals('foo')); - } - buildCounterGoogleCloudSecuritycenterV1p1beta1TemporalAsset--; -} - core.int buildCounterGroupAssetsRequest = 0; buildGroupAssetsRequest() { var o = new api.GroupAssetsRequest(); @@ -796,14 +701,14 @@ buildCounterGroupAssetsRequest--; } -buildUnnamed505() { +buildUnnamed524() { var o = new core.List<api.GroupResult>(); o.add(buildGroupResult()); o.add(buildGroupResult()); return o; } -checkUnnamed505(core.List<api.GroupResult> o) { +checkUnnamed524(core.List<api.GroupResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupResult(o[0]); checkGroupResult(o[1]); @@ -814,7 +719,7 @@ var o = new api.GroupAssetsResponse(); buildCounterGroupAssetsResponse++; if (buildCounterGroupAssetsResponse < 3) { - o.groupByResults = buildUnnamed505(); + o.groupByResults = buildUnnamed524(); o.nextPageToken = "foo"; o.readTime = "foo"; o.totalSize = 42; @@ -826,7 +731,7 @@ checkGroupAssetsResponse(api.GroupAssetsResponse o) { buildCounterGroupAssetsResponse++; if (buildCounterGroupAssetsResponse < 3) { - checkUnnamed505(o.groupByResults); + checkUnnamed524(o.groupByResults); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); @@ -863,14 +768,14 @@ buildCounterGroupFindingsRequest--; } -buildUnnamed506() { +buildUnnamed525() { var o = new core.List<api.GroupResult>(); o.add(buildGroupResult()); o.add(buildGroupResult()); return o; } -checkUnnamed506(core.List<api.GroupResult> o) { +checkUnnamed525(core.List<api.GroupResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupResult(o[0]); checkGroupResult(o[1]); @@ -881,7 +786,7 @@ var o = new api.GroupFindingsResponse(); buildCounterGroupFindingsResponse++; if (buildCounterGroupFindingsResponse < 3) { - o.groupByResults = buildUnnamed506(); + o.groupByResults = buildUnnamed525(); o.nextPageToken = "foo"; o.readTime = "foo"; o.totalSize = 42; @@ -893,7 +798,7 @@ checkGroupFindingsResponse(api.GroupFindingsResponse o) { buildCounterGroupFindingsResponse++; if (buildCounterGroupFindingsResponse < 3) { - checkUnnamed506(o.groupByResults); + checkUnnamed525(o.groupByResults); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); @@ -901,7 +806,7 @@ buildCounterGroupFindingsResponse--; } -buildUnnamed507() { +buildUnnamed526() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -916,18 +821,18 @@ return o; } -checkUnnamed507(core.Map<core.String, core.Object> o) { +checkUnnamed526(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')); + 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')); } core.int buildCounterGroupResult = 0; @@ -936,7 +841,7 @@ buildCounterGroupResult++; if (buildCounterGroupResult < 3) { o.count = "foo"; - o.properties = buildUnnamed507(); + o.properties = buildUnnamed526(); } buildCounterGroupResult--; return o; @@ -946,7 +851,7 @@ buildCounterGroupResult++; if (buildCounterGroupResult < 3) { unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed507(o.properties); + checkUnnamed526(o.properties); } buildCounterGroupResult--; } @@ -970,14 +875,14 @@ buildCounterIamPolicy--; } -buildUnnamed508() { +buildUnnamed527() { var o = new core.List<api.ListAssetsResult>(); o.add(buildListAssetsResult()); o.add(buildListAssetsResult()); return o; } -checkUnnamed508(core.List<api.ListAssetsResult> o) { +checkUnnamed527(core.List<api.ListAssetsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkListAssetsResult(o[0]); checkListAssetsResult(o[1]); @@ -988,7 +893,7 @@ var o = new api.ListAssetsResponse(); buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - o.listAssetsResults = buildUnnamed508(); + o.listAssetsResults = buildUnnamed527(); o.nextPageToken = "foo"; o.readTime = "foo"; o.totalSize = 42; @@ -1000,7 +905,7 @@ checkListAssetsResponse(api.ListAssetsResponse o) { buildCounterListAssetsResponse++; if (buildCounterListAssetsResponse < 3) { - checkUnnamed508(o.listAssetsResults); + checkUnnamed527(o.listAssetsResults); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); @@ -1029,14 +934,14 @@ buildCounterListAssetsResult--; } -buildUnnamed509() { +buildUnnamed528() { var o = new core.List<api.ListFindingsResult>(); o.add(buildListFindingsResult()); o.add(buildListFindingsResult()); return o; } -checkUnnamed509(core.List<api.ListFindingsResult> o) { +checkUnnamed528(core.List<api.ListFindingsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkListFindingsResult(o[0]); checkListFindingsResult(o[1]); @@ -1047,7 +952,7 @@ var o = new api.ListFindingsResponse(); buildCounterListFindingsResponse++; if (buildCounterListFindingsResponse < 3) { - o.listFindingsResults = buildUnnamed509(); + o.listFindingsResults = buildUnnamed528(); o.nextPageToken = "foo"; o.readTime = "foo"; o.totalSize = 42; @@ -1059,7 +964,7 @@ checkListFindingsResponse(api.ListFindingsResponse o) { buildCounterListFindingsResponse++; if (buildCounterListFindingsResponse < 3) { - checkUnnamed509(o.listFindingsResults); + checkUnnamed528(o.listFindingsResults); unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.readTime, unittest.equals('foo')); unittest.expect(o.totalSize, unittest.equals(42)); @@ -1090,14 +995,14 @@ buildCounterListFindingsResult--; } -buildUnnamed510() { +buildUnnamed529() { var o = new core.List<api.NotificationConfig>(); o.add(buildNotificationConfig()); o.add(buildNotificationConfig()); return o; } -checkUnnamed510(core.List<api.NotificationConfig> o) { +checkUnnamed529(core.List<api.NotificationConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkNotificationConfig(o[0]); checkNotificationConfig(o[1]); @@ -1109,7 +1014,7 @@ buildCounterListNotificationConfigsResponse++; if (buildCounterListNotificationConfigsResponse < 3) { o.nextPageToken = "foo"; - o.notificationConfigs = buildUnnamed510(); + o.notificationConfigs = buildUnnamed529(); } buildCounterListNotificationConfigsResponse--; return o; @@ -1119,19 +1024,19 @@ buildCounterListNotificationConfigsResponse++; if (buildCounterListNotificationConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed510(o.notificationConfigs); + checkUnnamed529(o.notificationConfigs); } buildCounterListNotificationConfigsResponse--; } -buildUnnamed511() { +buildUnnamed530() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed511(core.List<api.Operation> o) { +checkUnnamed530(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1143,7 +1048,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed511(); + o.operations = buildUnnamed530(); } buildCounterListOperationsResponse--; return o; @@ -1153,19 +1058,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed511(o.operations); + checkUnnamed530(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed512() { +buildUnnamed531() { var o = new core.List<api.Source>(); o.add(buildSource()); o.add(buildSource()); return o; } -checkUnnamed512(core.List<api.Source> o) { +checkUnnamed531(core.List<api.Source> o) { unittest.expect(o, unittest.hasLength(2)); checkSource(o[0]); checkSource(o[1]); @@ -1177,7 +1082,7 @@ buildCounterListSourcesResponse++; if (buildCounterListSourcesResponse < 3) { o.nextPageToken = "foo"; - o.sources = buildUnnamed512(); + o.sources = buildUnnamed531(); } buildCounterListSourcesResponse--; return o; @@ -1187,7 +1092,7 @@ buildCounterListSourcesResponse++; if (buildCounterListSourcesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed512(o.sources); + checkUnnamed531(o.sources); } buildCounterListSourcesResponse--; } @@ -1219,7 +1124,7 @@ buildCounterNotificationConfig--; } -buildUnnamed513() { +buildUnnamed532() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1234,7 +1139,36 @@ return o; } -checkUnnamed513(core.Map<core.String, core.Object> o) { +checkUnnamed532(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')); +} + +buildUnnamed533() { + 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; +} + +checkUnnamed533(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)); @@ -1248,35 +1182,6 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed514() { - 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; -} - -checkUnnamed514(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')); -} - core.int buildCounterOperation = 0; buildOperation() { var o = new api.Operation(); @@ -1284,9 +1189,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed513(); + o.metadata = buildUnnamed532(); o.name = "foo"; - o.response = buildUnnamed514(); + o.response = buildUnnamed533(); } buildCounterOperation--; return o; @@ -1297,9 +1202,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed513(o.metadata); + checkUnnamed532(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed514(o.response); + checkUnnamed533(o.response); } buildCounterOperation--; } @@ -1327,27 +1232,27 @@ buildCounterOrganizationSettings--; } -buildUnnamed515() { +buildUnnamed534() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed515(core.List<api.AuditConfig> o) { +checkUnnamed534(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed516() { +buildUnnamed535() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed516(core.List<api.Binding> o) { +checkUnnamed535(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1358,8 +1263,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed515(); - o.bindings = buildUnnamed516(); + o.auditConfigs = buildUnnamed534(); + o.bindings = buildUnnamed535(); o.etag = "foo"; o.version = 42; } @@ -1370,8 +1275,8 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed515(o.auditConfigs); - checkUnnamed516(o.bindings); + checkUnnamed534(o.auditConfigs); + checkUnnamed535(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1420,14 +1325,14 @@ buildCounterRunAssetDiscoveryRequest--; } -buildUnnamed517() { +buildUnnamed536() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed517(core.List<core.String> o) { +checkUnnamed536(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1440,7 +1345,7 @@ if (buildCounterSecurityCenterProperties < 3) { o.resourceDisplayName = "foo"; o.resourceName = "foo"; - o.resourceOwners = buildUnnamed517(); + o.resourceOwners = buildUnnamed536(); o.resourceParent = "foo"; o.resourceParentDisplayName = "foo"; o.resourceProject = "foo"; @@ -1456,7 +1361,7 @@ if (buildCounterSecurityCenterProperties < 3) { unittest.expect(o.resourceDisplayName, unittest.equals('foo')); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed517(o.resourceOwners); + checkUnnamed536(o.resourceOwners); unittest.expect(o.resourceParent, unittest.equals('foo')); unittest.expect(o.resourceParentDisplayName, unittest.equals('foo')); unittest.expect(o.resourceProject, unittest.equals('foo')); @@ -1466,14 +1371,14 @@ buildCounterSecurityCenterProperties--; } -buildUnnamed518() { +buildUnnamed537() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed518(core.Map<core.String, core.String> o) { +checkUnnamed537(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')); @@ -1484,7 +1389,7 @@ var o = new api.SecurityMarks(); buildCounterSecurityMarks++; if (buildCounterSecurityMarks < 3) { - o.marks = buildUnnamed518(); + o.marks = buildUnnamed537(); o.name = "foo"; } buildCounterSecurityMarks--; @@ -1494,7 +1399,7 @@ checkSecurityMarks(api.SecurityMarks o) { buildCounterSecurityMarks++; if (buildCounterSecurityMarks < 3) { - checkUnnamed518(o.marks); + checkUnnamed537(o.marks); unittest.expect(o.name, unittest.equals('foo')); } buildCounterSecurityMarks--; @@ -1565,7 +1470,7 @@ buildCounterSource--; } -buildUnnamed519() { +buildUnnamed538() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1580,31 +1485,31 @@ return o; } -checkUnnamed519(core.Map<core.String, core.Object> o) { +checkUnnamed538(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); - var casted15 = (o["x"]) as core.Map; - unittest.expect(casted15, unittest.hasLength(3)); - unittest.expect(casted15["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted15["bool"], unittest.equals(true)); - unittest.expect(casted15["string"], unittest.equals('foo')); - var casted16 = (o["y"]) as core.Map; - unittest.expect(casted16, unittest.hasLength(3)); - unittest.expect(casted16["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted16["bool"], unittest.equals(true)); - unittest.expect(casted16["string"], unittest.equals('foo')); + 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')); } -buildUnnamed520() { +buildUnnamed539() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed519()); - o.add(buildUnnamed519()); + o.add(buildUnnamed538()); + o.add(buildUnnamed538()); return o; } -checkUnnamed520(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed539(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed519(o[0]); - checkUnnamed519(o[1]); + checkUnnamed538(o[0]); + checkUnnamed538(o[1]); } core.int buildCounterStatus = 0; @@ -1613,7 +1518,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed520(); + o.details = buildUnnamed539(); o.message = "foo"; } buildCounterStatus--; @@ -1624,7 +1529,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed520(o.details); + checkUnnamed539(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1649,14 +1554,14 @@ buildCounterStreamingConfig--; } -buildUnnamed521() { +buildUnnamed540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed521(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')); @@ -1667,7 +1572,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed521(); + o.permissions = buildUnnamed540(); } buildCounterTestIamPermissionsRequest--; return o; @@ -1676,19 +1581,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed521(o.permissions); + checkUnnamed540(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed522() { +buildUnnamed541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed522(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')); @@ -1699,7 +1604,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed522(); + o.permissions = buildUnnamed541(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1708,7 +1613,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed522(o.permissions); + checkUnnamed541(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -1804,6 +1709,14 @@ }); }); + unittest.group("obj-schema-GoogleCloudSecuritycenterV1Resource", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudSecuritycenterV1Resource(); + var od = new api.GoogleCloudSecuritycenterV1Resource.fromJson(o.toJson()); + checkGoogleCloudSecuritycenterV1Resource(od); + }); + }); + unittest.group( "obj-schema-GoogleCloudSecuritycenterV1RunAssetDiscoveryResponse", () { unittest.test("to-json--from-json", () { @@ -1827,15 +1740,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1Asset", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudSecuritycenterV1p1beta1Asset(); - var od = - new api.GoogleCloudSecuritycenterV1p1beta1Asset.fromJson(o.toJson()); - checkGoogleCloudSecuritycenterV1p1beta1Asset(od); - }); - }); - unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1Finding", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudSecuritycenterV1p1beta1Finding(); @@ -1845,15 +1749,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1IamPolicy", () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudSecuritycenterV1p1beta1IamPolicy(); - var od = new api.GoogleCloudSecuritycenterV1p1beta1IamPolicy.fromJson( - o.toJson()); - checkGoogleCloudSecuritycenterV1p1beta1IamPolicy(od); - }); - }); - unittest.group( "obj-schema-GoogleCloudSecuritycenterV1p1beta1NotificationMessage", () { unittest.test("to-json--from-json", () { @@ -1865,6 +1760,15 @@ }); }); + unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1Resource", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudSecuritycenterV1p1beta1Resource(); + var od = new api.GoogleCloudSecuritycenterV1p1beta1Resource.fromJson( + o.toJson()); + checkGoogleCloudSecuritycenterV1p1beta1Resource(od); + }); + }); + unittest.group( "obj-schema-GoogleCloudSecuritycenterV1p1beta1RunAssetDiscoveryResponse", () { @@ -1878,18 +1782,6 @@ }); }); - unittest.group( - "obj-schema-GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties", - () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties(); - var od = new api - .GoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties.fromJson( - o.toJson()); - checkGoogleCloudSecuritycenterV1p1beta1SecurityCenterProperties(od); - }); - }); - unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1SecurityMarks", () { unittest.test("to-json--from-json", () { @@ -1900,16 +1792,6 @@ }); }); - unittest.group("obj-schema-GoogleCloudSecuritycenterV1p1beta1TemporalAsset", - () { - unittest.test("to-json--from-json", () { - var o = buildGoogleCloudSecuritycenterV1p1beta1TemporalAsset(); - var od = new api.GoogleCloudSecuritycenterV1p1beta1TemporalAsset.fromJson( - o.toJson()); - checkGoogleCloudSecuritycenterV1p1beta1TemporalAsset(od); - }); - }); - unittest.group("obj-schema-GroupAssetsRequest", () { unittest.test("to-json--from-json", () { var o = buildGroupAssetsRequest(); @@ -2310,13 +2192,13 @@ api.OrganizationsAssetsResourceApi res = new api.SecuritycenterApi(mock).organizations.assets; var arg_parent = "foo"; - var arg_orderBy = "foo"; - var arg_readTime = "foo"; - var arg_compareDuration = "foo"; - var arg_filter = "foo"; - var arg_fieldMask = "foo"; var arg_pageToken = "foo"; + var arg_orderBy = "foo"; + var arg_fieldMask = "foo"; + var arg_compareDuration = "foo"; var arg_pageSize = 42; + var arg_readTime = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2350,18 +2232,18 @@ } } unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( - queryMap["readTime"].first, unittest.equals(arg_readTime)); + queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); unittest.expect(queryMap["compareDuration"].first, unittest.equals(arg_compareDuration)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["readTime"].first, unittest.equals(arg_readTime)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2372,13 +2254,13 @@ }), true); res .list(arg_parent, - orderBy: arg_orderBy, - readTime: arg_readTime, - compareDuration: arg_compareDuration, - filter: arg_filter, - fieldMask: arg_fieldMask, pageToken: arg_pageToken, + orderBy: arg_orderBy, + fieldMask: arg_fieldMask, + compareDuration: arg_compareDuration, pageSize: arg_pageSize, + readTime: arg_readTime, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListAssetsResponse(response); @@ -2447,8 +2329,8 @@ new api.SecuritycenterApi(mock).organizations.assets; var arg_request = buildSecurityMarks(); var arg_name = "foo"; - var arg_startTime = "foo"; var arg_updateMask = "foo"; + var arg_startTime = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.SecurityMarks.fromJson(json); @@ -2485,9 +2367,9 @@ } } unittest.expect( - queryMap["startTime"].first, unittest.equals(arg_startTime)); - unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); + unittest.expect( + queryMap["startTime"].first, unittest.equals(arg_startTime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2498,8 +2380,8 @@ }), true); res .updateSecurityMarks(arg_request, arg_name, - startTime: arg_startTime, updateMask: arg_updateMask, + startTime: arg_startTime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSecurityMarks(response); @@ -2956,9 +2838,9 @@ api.OrganizationsOperationsResourceApi res = new api.SecuritycenterApi(mock).organizations.operations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2991,11 +2873,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3006,9 +2888,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -3186,8 +3068,8 @@ api.OrganizationsSourcesResourceApi res = new api.SecuritycenterApi(mock).organizations.sources; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3220,10 +3102,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3234,8 +3116,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSourcesResponse(response); @@ -3537,13 +3419,13 @@ api.OrganizationsSourcesFindingsResourceApi res = new api.SecuritycenterApi(mock).organizations.sources.findings; var arg_parent = "foo"; + var arg_compareDuration = "foo"; var arg_orderBy = "foo"; var arg_readTime = "foo"; - var arg_compareDuration = "foo"; - var arg_filter = "foo"; - var arg_fieldMask = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_fieldMask = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3576,19 +3458,19 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["compareDuration"].first, + unittest.equals(arg_compareDuration)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect( queryMap["readTime"].first, unittest.equals(arg_readTime)); - unittest.expect(queryMap["compareDuration"].first, - unittest.equals(arg_compareDuration)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["fieldMask"].first, unittest.equals(arg_fieldMask)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3599,13 +3481,13 @@ }), true); res .list(arg_parent, + compareDuration: arg_compareDuration, orderBy: arg_orderBy, readTime: arg_readTime, - compareDuration: arg_compareDuration, - filter: arg_filter, - fieldMask: arg_fieldMask, pageToken: arg_pageToken, pageSize: arg_pageSize, + fieldMask: arg_fieldMask, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListFindingsResponse(response);
diff --git a/generated/googleapis/test/serviceconsumermanagement/v1_test.dart b/generated/googleapis/test/serviceconsumermanagement/v1_test.dart index 86f95a1..31be89e 100644 --- a/generated/googleapis/test/serviceconsumermanagement/v1_test.dart +++ b/generated/googleapis/test/serviceconsumermanagement/v1_test.dart
@@ -71,40 +71,40 @@ buildCounterAddTenantProjectRequest--; } -buildUnnamed3192() { +buildUnnamed3347() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed3192(core.List<api.Method> o) { +checkUnnamed3347(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed3193() { +buildUnnamed3348() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed3193(core.List<api.Mixin> o) { +checkUnnamed3348(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed3194() { +buildUnnamed3349() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3194(core.List<api.Option> o) { +checkUnnamed3349(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -115,10 +115,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed3192(); - o.mixins = buildUnnamed3193(); + o.methods = buildUnnamed3347(); + o.mixins = buildUnnamed3348(); o.name = "foo"; - o.options = buildUnnamed3194(); + o.options = buildUnnamed3349(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -130,10 +130,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed3192(o.methods); - checkUnnamed3193(o.mixins); + checkUnnamed3347(o.methods); + checkUnnamed3348(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3194(o.options); + checkUnnamed3349(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -185,14 +185,14 @@ buildCounterAttachTenantProjectRequest--; } -buildUnnamed3195() { +buildUnnamed3350() { var o = new core.List<api.JwtLocation>(); o.add(buildJwtLocation()); o.add(buildJwtLocation()); return o; } -checkUnnamed3195(core.List<api.JwtLocation> o) { +checkUnnamed3350(core.List<api.JwtLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkJwtLocation(o[0]); checkJwtLocation(o[1]); @@ -208,7 +208,7 @@ o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; - o.jwtLocations = buildUnnamed3195(); + o.jwtLocations = buildUnnamed3350(); } buildCounterAuthProvider--; return o; @@ -222,7 +222,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); - checkUnnamed3195(o.jwtLocations); + checkUnnamed3350(o.jwtLocations); } buildCounterAuthProvider--; } @@ -248,27 +248,27 @@ buildCounterAuthRequirement--; } -buildUnnamed3196() { +buildUnnamed3351() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed3196(core.List<api.AuthProvider> o) { +checkUnnamed3351(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed3197() { +buildUnnamed3352() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed3197(core.List<api.AuthenticationRule> o) { +checkUnnamed3352(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -279,8 +279,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed3196(); - o.rules = buildUnnamed3197(); + o.providers = buildUnnamed3351(); + o.rules = buildUnnamed3352(); } buildCounterAuthentication--; return o; @@ -289,20 +289,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed3196(o.providers); - checkUnnamed3197(o.rules); + checkUnnamed3351(o.providers); + checkUnnamed3352(o.rules); } buildCounterAuthentication--; } -buildUnnamed3198() { +buildUnnamed3353() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed3198(core.List<api.AuthRequirement> o) { +checkUnnamed3353(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -315,7 +315,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed3198(); + o.requirements = buildUnnamed3353(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -327,20 +327,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed3198(o.requirements); + checkUnnamed3353(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed3199() { +buildUnnamed3354() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed3199(core.List<api.BackendRule> o) { +checkUnnamed3354(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -351,7 +351,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed3199(); + o.rules = buildUnnamed3354(); } buildCounterBackend--; return o; @@ -360,7 +360,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed3199(o.rules); + checkUnnamed3354(o.rules); } buildCounterBackend--; } @@ -378,7 +378,6 @@ o.operationDeadline = 42.0; o.pathTranslation = "foo"; o.protocol = "foo"; - o.renameTo = "foo"; o.selector = "foo"; } buildCounterBackendRule--; @@ -396,20 +395,19 @@ unittest.expect(o.operationDeadline, unittest.equals(42.0)); unittest.expect(o.pathTranslation, unittest.equals('foo')); unittest.expect(o.protocol, unittest.equals('foo')); - unittest.expect(o.renameTo, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterBackendRule--; } -buildUnnamed3200() { +buildUnnamed3355() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed3200(core.List<api.BillingDestination> o) { +checkUnnamed3355(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -420,7 +418,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed3200(); + o.consumerDestinations = buildUnnamed3355(); } buildCounterBilling--; return o; @@ -429,7 +427,7 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed3200(o.consumerDestinations); + checkUnnamed3355(o.consumerDestinations); } buildCounterBilling--; } @@ -453,14 +451,14 @@ buildCounterBillingConfig--; } -buildUnnamed3201() { +buildUnnamed3356() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3201(core.List<core.String> o) { +checkUnnamed3356(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -471,7 +469,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed3201(); + o.metrics = buildUnnamed3356(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -481,7 +479,7 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed3201(o.metrics); + checkUnnamed3356(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; @@ -502,14 +500,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed3202() { +buildUnnamed3357() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed3202(core.List<api.ContextRule> o) { +checkUnnamed3357(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -520,7 +518,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed3202(); + o.rules = buildUnnamed3357(); } buildCounterContext--; return o; @@ -529,58 +527,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed3202(o.rules); + checkUnnamed3357(o.rules); } buildCounterContext--; } -buildUnnamed3203() { +buildUnnamed3358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3203(core.List<core.String> o) { +checkUnnamed3358(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3204() { +buildUnnamed3359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3204(core.List<core.String> o) { +checkUnnamed3359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3205() { +buildUnnamed3360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3205(core.List<core.String> o) { +checkUnnamed3360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3206() { +buildUnnamed3361() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3206(core.List<core.String> o) { +checkUnnamed3361(core.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,10 +589,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed3203(); - o.allowedResponseExtensions = buildUnnamed3204(); - o.provided = buildUnnamed3205(); - o.requested = buildUnnamed3206(); + o.allowedRequestExtensions = buildUnnamed3358(); + o.allowedResponseExtensions = buildUnnamed3359(); + o.provided = buildUnnamed3360(); + o.requested = buildUnnamed3361(); o.selector = "foo"; } buildCounterContextRule--; @@ -604,10 +602,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed3203(o.allowedRequestExtensions); - checkUnnamed3204(o.allowedResponseExtensions); - checkUnnamed3205(o.provided); - checkUnnamed3206(o.requested); + checkUnnamed3358(o.allowedRequestExtensions); + checkUnnamed3359(o.allowedResponseExtensions); + checkUnnamed3360(o.provided); + checkUnnamed3361(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -651,27 +649,27 @@ buildCounterCreateTenancyUnitRequest--; } -buildUnnamed3207() { +buildUnnamed3362() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed3207(core.List<api.CustomErrorRule> o) { +checkUnnamed3362(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed3208() { +buildUnnamed3363() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3208(core.List<core.String> o) { +checkUnnamed3363(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -682,8 +680,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed3207(); - o.types = buildUnnamed3208(); + o.rules = buildUnnamed3362(); + o.types = buildUnnamed3363(); } buildCounterCustomError--; return o; @@ -692,8 +690,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed3207(o.rules); - checkUnnamed3208(o.types); + checkUnnamed3362(o.rules); + checkUnnamed3363(o.types); } buildCounterCustomError--; } @@ -759,27 +757,27 @@ buildCounterDeleteTenantProjectRequest--; } -buildUnnamed3209() { +buildUnnamed3364() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3209(core.List<api.Page> o) { +checkUnnamed3364(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed3210() { +buildUnnamed3365() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed3210(core.List<api.DocumentationRule> o) { +checkUnnamed3365(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -792,8 +790,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed3209(); - o.rules = buildUnnamed3210(); + o.pages = buildUnnamed3364(); + o.rules = buildUnnamed3365(); o.serviceRootUrl = "foo"; o.summary = "foo"; } @@ -806,8 +804,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed3209(o.pages); - checkUnnamed3210(o.rules); + checkUnnamed3364(o.pages); + checkUnnamed3365(o.rules); unittest.expect(o.serviceRootUrl, unittest.equals('foo')); unittest.expect(o.summary, unittest.equals('foo')); } @@ -852,27 +850,14 @@ buildCounterEmpty--; } -buildUnnamed3211() { +buildUnnamed3366() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3211(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed3212() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed3212(core.List<core.String> o) { +checkUnnamed3366(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -883,9 +868,8 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed3211(); + o.aliases = buildUnnamed3366(); o.allowCors = true; - o.features = buildUnnamed3212(); o.name = "foo"; o.target = "foo"; } @@ -896,36 +880,35 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed3211(o.aliases); + checkUnnamed3366(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed3212(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed3213() { +buildUnnamed3367() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed3213(core.List<api.EnumValue> o) { +checkUnnamed3367(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed3214() { +buildUnnamed3368() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3214(core.List<api.Option> o) { +checkUnnamed3368(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -936,9 +919,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed3213(); + o.enumvalue = buildUnnamed3367(); o.name = "foo"; - o.options = buildUnnamed3214(); + o.options = buildUnnamed3368(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -949,23 +932,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed3213(o.enumvalue); + checkUnnamed3367(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3214(o.options); + checkUnnamed3368(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed3215() { +buildUnnamed3369() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3215(core.List<api.Option> o) { +checkUnnamed3369(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -978,7 +961,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed3215(); + o.options = buildUnnamed3369(); } buildCounterEnumValue--; return o; @@ -989,19 +972,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed3215(o.options); + checkUnnamed3369(o.options); } buildCounterEnumValue--; } -buildUnnamed3216() { +buildUnnamed3370() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3216(core.List<api.Option> o) { +checkUnnamed3370(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1019,7 +1002,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed3216(); + o.options = buildUnnamed3370(); o.packed = true; o.typeUrl = "foo"; } @@ -1037,21 +1020,21 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed3216(o.options); + checkUnnamed3370(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } buildCounterField--; } -buildUnnamed3217() { +buildUnnamed3371() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed3217(core.List<api.HttpRule> o) { +checkUnnamed3371(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1063,7 +1046,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed3217(); + o.rules = buildUnnamed3371(); } buildCounterHttp--; return o; @@ -1073,19 +1056,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed3217(o.rules); + checkUnnamed3371(o.rules); } buildCounterHttp--; } -buildUnnamed3218() { +buildUnnamed3372() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed3218(core.List<api.HttpRule> o) { +checkUnnamed3372(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1096,7 +1079,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed3218(); + o.additionalBindings = buildUnnamed3372(); o.allowHalfDuplex = true; o.body = "foo"; o.custom = buildCustomHttpPattern(); @@ -1115,7 +1098,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed3218(o.additionalBindings); + checkUnnamed3372(o.additionalBindings); unittest.expect(o.allowHalfDuplex, unittest.isTrue); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); @@ -1176,14 +1159,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed3219() { +buildUnnamed3373() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3219(core.List<api.Operation> o) { +checkUnnamed3373(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1195,7 +1178,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3219(); + o.operations = buildUnnamed3373(); } buildCounterListOperationsResponse--; return o; @@ -1205,19 +1188,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3219(o.operations); + checkUnnamed3373(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3220() { +buildUnnamed3374() { var o = new core.List<api.TenancyUnit>(); o.add(buildTenancyUnit()); o.add(buildTenancyUnit()); return o; } -checkUnnamed3220(core.List<api.TenancyUnit> o) { +checkUnnamed3374(core.List<api.TenancyUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkTenancyUnit(o[0]); checkTenancyUnit(o[1]); @@ -1229,7 +1212,7 @@ buildCounterListTenancyUnitsResponse++; if (buildCounterListTenancyUnitsResponse < 3) { o.nextPageToken = "foo"; - o.tenancyUnits = buildUnnamed3220(); + o.tenancyUnits = buildUnnamed3374(); } buildCounterListTenancyUnitsResponse--; return o; @@ -1239,19 +1222,19 @@ buildCounterListTenancyUnitsResponse++; if (buildCounterListTenancyUnitsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3220(o.tenancyUnits); + checkUnnamed3374(o.tenancyUnits); } buildCounterListTenancyUnitsResponse--; } -buildUnnamed3221() { +buildUnnamed3375() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3221(core.List<api.LabelDescriptor> o) { +checkUnnamed3375(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1264,7 +1247,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3221(); + o.labels = buildUnnamed3375(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1276,33 +1259,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3221(o.labels); + checkUnnamed3375(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed3222() { +buildUnnamed3376() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed3222(core.List<api.LoggingDestination> o) { +checkUnnamed3376(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed3223() { +buildUnnamed3377() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed3223(core.List<api.LoggingDestination> o) { +checkUnnamed3377(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1313,8 +1296,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed3222(); - o.producerDestinations = buildUnnamed3223(); + o.consumerDestinations = buildUnnamed3376(); + o.producerDestinations = buildUnnamed3377(); } buildCounterLogging--; return o; @@ -1323,20 +1306,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed3222(o.consumerDestinations); - checkUnnamed3223(o.producerDestinations); + checkUnnamed3376(o.consumerDestinations); + checkUnnamed3377(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed3224() { +buildUnnamed3378() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3224(core.List<core.String> o) { +checkUnnamed3378(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1347,7 +1330,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed3224(); + o.logs = buildUnnamed3378(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1357,20 +1340,20 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed3224(o.logs); + checkUnnamed3378(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; } -buildUnnamed3225() { +buildUnnamed3379() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3225(core.List<api.Option> o) { +checkUnnamed3379(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1382,7 +1365,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed3225(); + o.options = buildUnnamed3379(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1397,7 +1380,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3225(o.options); + checkUnnamed3379(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1407,27 +1390,27 @@ buildCounterMethod--; } -buildUnnamed3226() { +buildUnnamed3380() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3226(core.List<api.LabelDescriptor> o) { +checkUnnamed3380(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed3227() { +buildUnnamed3381() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3227(core.List<core.String> o) { +checkUnnamed3381(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1440,11 +1423,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3226(); + o.labels = buildUnnamed3380(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed3227(); + o.monitoredResourceTypes = buildUnnamed3381(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -1459,11 +1442,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3226(o.labels); + checkUnnamed3380(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed3227(o.monitoredResourceTypes); + checkUnnamed3381(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -1495,14 +1478,14 @@ buildCounterMetricDescriptorMetadata--; } -buildUnnamed3228() { +buildUnnamed3382() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3228(core.Map<core.String, core.String> o) { +checkUnnamed3382(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')); @@ -1513,7 +1496,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed3228(); + o.metricCosts = buildUnnamed3382(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1523,7 +1506,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed3228(o.metricCosts); + checkUnnamed3382(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1550,14 +1533,14 @@ buildCounterMixin--; } -buildUnnamed3229() { +buildUnnamed3383() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed3229(core.List<api.LabelDescriptor> o) { +checkUnnamed3383(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1570,7 +1553,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed3229(); + o.labels = buildUnnamed3383(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -1584,7 +1567,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3229(o.labels); + checkUnnamed3383(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1592,27 +1575,27 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed3230() { +buildUnnamed3384() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed3230(core.List<api.MonitoringDestination> o) { +checkUnnamed3384(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed3231() { +buildUnnamed3385() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed3231(core.List<api.MonitoringDestination> o) { +checkUnnamed3385(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1623,8 +1606,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed3230(); - o.producerDestinations = buildUnnamed3231(); + o.consumerDestinations = buildUnnamed3384(); + o.producerDestinations = buildUnnamed3385(); } buildCounterMonitoring--; return o; @@ -1633,20 +1616,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed3230(o.consumerDestinations); - checkUnnamed3231(o.producerDestinations); + checkUnnamed3384(o.consumerDestinations); + checkUnnamed3385(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed3232() { +buildUnnamed3386() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3232(core.List<core.String> o) { +checkUnnamed3386(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1657,7 +1640,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed3232(); + o.metrics = buildUnnamed3386(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1667,7 +1650,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed3232(o.metrics); + checkUnnamed3386(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1692,7 +1675,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed3233() { +buildUnnamed3387() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1707,7 +1690,7 @@ return o; } -checkUnnamed3233(core.Map<core.String, core.Object> o) { +checkUnnamed3387(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)); @@ -1721,7 +1704,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3234() { +buildUnnamed3388() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1736,7 +1719,7 @@ return o; } -checkUnnamed3234(core.Map<core.String, core.Object> o) { +checkUnnamed3388(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)); @@ -1757,9 +1740,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3233(); + o.metadata = buildUnnamed3387(); o.name = "foo"; - o.response = buildUnnamed3234(); + o.response = buildUnnamed3388(); } buildCounterOperation--; return o; @@ -1770,14 +1753,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3233(o.metadata); + checkUnnamed3387(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3234(o.response); + checkUnnamed3388(o.response); } buildCounterOperation--; } -buildUnnamed3235() { +buildUnnamed3389() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1792,7 +1775,7 @@ return o; } -checkUnnamed3235(core.Map<core.String, core.Object> o) { +checkUnnamed3389(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)); @@ -1812,7 +1795,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed3235(); + o.value = buildUnnamed3389(); } buildCounterOption--; return o; @@ -1822,19 +1805,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3235(o.value); + checkUnnamed3389(o.value); } buildCounterOption--; } -buildUnnamed3236() { +buildUnnamed3390() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed3236(core.List<api.Page> o) { +checkUnnamed3390(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1847,7 +1830,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed3236(); + o.subpages = buildUnnamed3390(); } buildCounterPage--; return o; @@ -1858,19 +1841,19 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3236(o.subpages); + checkUnnamed3390(o.subpages); } buildCounterPage--; } -buildUnnamed3237() { +buildUnnamed3391() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3237(core.List<core.String> o) { +checkUnnamed3391(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1881,7 +1864,7 @@ var o = new api.PolicyBinding(); buildCounterPolicyBinding++; if (buildCounterPolicyBinding < 3) { - o.members = buildUnnamed3237(); + o.members = buildUnnamed3391(); o.role = "foo"; } buildCounterPolicyBinding--; @@ -1891,33 +1874,33 @@ checkPolicyBinding(api.PolicyBinding o) { buildCounterPolicyBinding++; if (buildCounterPolicyBinding < 3) { - checkUnnamed3237(o.members); + checkUnnamed3391(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterPolicyBinding--; } -buildUnnamed3238() { +buildUnnamed3392() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed3238(core.List<api.QuotaLimit> o) { +checkUnnamed3392(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed3239() { +buildUnnamed3393() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed3239(core.List<api.MetricRule> o) { +checkUnnamed3393(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -1928,8 +1911,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed3238(); - o.metricRules = buildUnnamed3239(); + o.limits = buildUnnamed3392(); + o.metricRules = buildUnnamed3393(); } buildCounterQuota--; return o; @@ -1938,20 +1921,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed3238(o.limits); - checkUnnamed3239(o.metricRules); + checkUnnamed3392(o.limits); + checkUnnamed3393(o.metricRules); } buildCounterQuota--; } -buildUnnamed3240() { +buildUnnamed3394() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3240(core.Map<core.String, core.String> o) { +checkUnnamed3394(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')); @@ -1971,7 +1954,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed3240(); + o.values = buildUnnamed3394(); } buildCounterQuotaLimit--; return o; @@ -1989,7 +1972,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed3240(o.values); + checkUnnamed3394(o.values); } buildCounterQuotaLimit--; } @@ -2013,14 +1996,14 @@ buildCounterRemoveTenantProjectRequest--; } -buildUnnamed3241() { +buildUnnamed3395() { var o = new core.List<api.TenancyUnit>(); o.add(buildTenancyUnit()); o.add(buildTenancyUnit()); return o; } -checkUnnamed3241(core.List<api.TenancyUnit> o) { +checkUnnamed3395(core.List<api.TenancyUnit> o) { unittest.expect(o, unittest.hasLength(2)); checkTenancyUnit(o[0]); checkTenancyUnit(o[1]); @@ -2032,7 +2015,7 @@ buildCounterSearchTenancyUnitsResponse++; if (buildCounterSearchTenancyUnitsResponse < 3) { o.nextPageToken = "foo"; - o.tenancyUnits = buildUnnamed3241(); + o.tenancyUnits = buildUnnamed3395(); } buildCounterSearchTenancyUnitsResponse--; return o; @@ -2042,110 +2025,110 @@ buildCounterSearchTenancyUnitsResponse++; if (buildCounterSearchTenancyUnitsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3241(o.tenancyUnits); + checkUnnamed3395(o.tenancyUnits); } buildCounterSearchTenancyUnitsResponse--; } -buildUnnamed3242() { +buildUnnamed3396() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed3242(core.List<api.Api> o) { +checkUnnamed3396(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed3243() { +buildUnnamed3397() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed3243(core.List<api.Endpoint> o) { +checkUnnamed3397(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed3244() { +buildUnnamed3398() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed3244(core.List<api.Enum> o) { +checkUnnamed3398(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed3245() { +buildUnnamed3399() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed3245(core.List<api.LogDescriptor> o) { +checkUnnamed3399(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed3246() { +buildUnnamed3400() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed3246(core.List<api.MetricDescriptor> o) { +checkUnnamed3400(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed3247() { +buildUnnamed3401() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed3247(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed3401(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed3248() { +buildUnnamed3402() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed3248(core.List<api.Type> o) { +checkUnnamed3402(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed3249() { +buildUnnamed3403() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed3249(core.List<api.Type> o) { +checkUnnamed3403(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2156,7 +2139,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed3242(); + o.apis = buildUnnamed3396(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2165,23 +2148,23 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed3243(); - o.enums = buildUnnamed3244(); + o.endpoints = buildUnnamed3397(); + o.enums = buildUnnamed3398(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed3245(); - o.metrics = buildUnnamed3246(); - o.monitoredResources = buildUnnamed3247(); + o.logs = buildUnnamed3399(); + o.metrics = buildUnnamed3400(); + o.monitoredResources = buildUnnamed3401(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed3248(); + o.systemTypes = buildUnnamed3402(); o.title = "foo"; - o.types = buildUnnamed3249(); + o.types = buildUnnamed3403(); o.usage = buildUsage(); } buildCounterService--; @@ -2191,7 +2174,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed3242(o.apis); + checkUnnamed3396(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2200,36 +2183,36 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed3243(o.endpoints); - checkUnnamed3244(o.enums); + checkUnnamed3397(o.endpoints); + checkUnnamed3398(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed3245(o.logs); - checkUnnamed3246(o.metrics); - checkUnnamed3247(o.monitoredResources); + checkUnnamed3399(o.logs); + checkUnnamed3400(o.metrics); + checkUnnamed3401(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed3248(o.systemTypes); + checkUnnamed3402(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed3249(o.types); + checkUnnamed3403(o.types); checkUsage(o.usage); } buildCounterService--; } -buildUnnamed3250() { +buildUnnamed3404() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3250(core.List<core.String> o) { +checkUnnamed3404(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2241,7 +2224,7 @@ buildCounterServiceAccountConfig++; if (buildCounterServiceAccountConfig < 3) { o.accountId = "foo"; - o.tenantProjectRoles = buildUnnamed3250(); + o.tenantProjectRoles = buildUnnamed3404(); } buildCounterServiceAccountConfig--; return o; @@ -2251,7 +2234,7 @@ buildCounterServiceAccountConfig++; if (buildCounterServiceAccountConfig < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed3250(o.tenantProjectRoles); + checkUnnamed3404(o.tenantProjectRoles); } buildCounterServiceAccountConfig--; } @@ -2298,7 +2281,7 @@ buildCounterSourceContext--; } -buildUnnamed3251() { +buildUnnamed3405() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2313,7 +2296,7 @@ return o; } -checkUnnamed3251(core.Map<core.String, core.Object> o) { +checkUnnamed3405(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)); @@ -2327,17 +2310,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3252() { +buildUnnamed3406() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3251()); - o.add(buildUnnamed3251()); + o.add(buildUnnamed3405()); + o.add(buildUnnamed3405()); return o; } -checkUnnamed3252(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3406(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3251(o[0]); - checkUnnamed3251(o[1]); + checkUnnamed3405(o[0]); + checkUnnamed3405(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2345,7 +2328,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed3252(); + o.sourceFiles = buildUnnamed3406(); } buildCounterSourceInfo--; return o; @@ -2354,12 +2337,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed3252(o.sourceFiles); + checkUnnamed3406(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed3253() { +buildUnnamed3407() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2374,7 +2357,7 @@ return o; } -checkUnnamed3253(core.Map<core.String, core.Object> o) { +checkUnnamed3407(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)); @@ -2388,17 +2371,17 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed3254() { +buildUnnamed3408() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3253()); - o.add(buildUnnamed3253()); + o.add(buildUnnamed3407()); + o.add(buildUnnamed3407()); return o; } -checkUnnamed3254(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3408(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3253(o[0]); - checkUnnamed3253(o[1]); + checkUnnamed3407(o[0]); + checkUnnamed3407(o[1]); } core.int buildCounterStatus = 0; @@ -2407,7 +2390,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3254(); + o.details = buildUnnamed3408(); o.message = "foo"; } buildCounterStatus--; @@ -2418,7 +2401,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3254(o.details); + checkUnnamed3408(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2447,14 +2430,14 @@ buildCounterSystemParameter--; } -buildUnnamed3255() { +buildUnnamed3409() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed3255(core.List<api.SystemParameter> o) { +checkUnnamed3409(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2465,7 +2448,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed3255(); + o.parameters = buildUnnamed3409(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2475,20 +2458,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed3255(o.parameters); + checkUnnamed3409(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed3256() { +buildUnnamed3410() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed3256(core.List<api.SystemParameterRule> o) { +checkUnnamed3410(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2499,7 +2482,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed3256(); + o.rules = buildUnnamed3410(); } buildCounterSystemParameters--; return o; @@ -2508,19 +2491,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed3256(o.rules); + checkUnnamed3410(o.rules); } buildCounterSystemParameters--; } -buildUnnamed3257() { +buildUnnamed3411() { var o = new core.List<api.TenantResource>(); o.add(buildTenantResource()); o.add(buildTenantResource()); return o; } -checkUnnamed3257(core.List<api.TenantResource> o) { +checkUnnamed3411(core.List<api.TenantResource> o) { unittest.expect(o, unittest.hasLength(2)); checkTenantResource(o[0]); checkTenantResource(o[1]); @@ -2535,7 +2518,7 @@ o.createTime = "foo"; o.name = "foo"; o.service = "foo"; - o.tenantResources = buildUnnamed3257(); + o.tenantResources = buildUnnamed3411(); } buildCounterTenancyUnit--; return o; @@ -2548,32 +2531,32 @@ unittest.expect(o.createTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); - checkUnnamed3257(o.tenantResources); + checkUnnamed3411(o.tenantResources); } buildCounterTenancyUnit--; } -buildUnnamed3258() { +buildUnnamed3412() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3258(core.Map<core.String, core.String> o) { +checkUnnamed3412(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')); } -buildUnnamed3259() { +buildUnnamed3413() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3259(core.List<core.String> o) { +checkUnnamed3413(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2586,9 +2569,9 @@ if (buildCounterTenantProjectConfig < 3) { o.billingConfig = buildBillingConfig(); o.folder = "foo"; - o.labels = buildUnnamed3258(); + o.labels = buildUnnamed3412(); o.serviceAccountConfig = buildServiceAccountConfig(); - o.services = buildUnnamed3259(); + o.services = buildUnnamed3413(); o.tenantProjectPolicy = buildTenantProjectPolicy(); } buildCounterTenantProjectConfig--; @@ -2600,22 +2583,22 @@ if (buildCounterTenantProjectConfig < 3) { checkBillingConfig(o.billingConfig); unittest.expect(o.folder, unittest.equals('foo')); - checkUnnamed3258(o.labels); + checkUnnamed3412(o.labels); checkServiceAccountConfig(o.serviceAccountConfig); - checkUnnamed3259(o.services); + checkUnnamed3413(o.services); checkTenantProjectPolicy(o.tenantProjectPolicy); } buildCounterTenantProjectConfig--; } -buildUnnamed3260() { +buildUnnamed3414() { var o = new core.List<api.PolicyBinding>(); o.add(buildPolicyBinding()); o.add(buildPolicyBinding()); return o; } -checkUnnamed3260(core.List<api.PolicyBinding> o) { +checkUnnamed3414(core.List<api.PolicyBinding> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBinding(o[0]); checkPolicyBinding(o[1]); @@ -2626,7 +2609,7 @@ var o = new api.TenantProjectPolicy(); buildCounterTenantProjectPolicy++; if (buildCounterTenantProjectPolicy < 3) { - o.policyBindings = buildUnnamed3260(); + o.policyBindings = buildUnnamed3414(); } buildCounterTenantProjectPolicy--; return o; @@ -2635,7 +2618,7 @@ checkTenantProjectPolicy(api.TenantProjectPolicy o) { buildCounterTenantProjectPolicy++; if (buildCounterTenantProjectPolicy < 3) { - checkUnnamed3260(o.policyBindings); + checkUnnamed3414(o.policyBindings); } buildCounterTenantProjectPolicy--; } @@ -2663,40 +2646,40 @@ buildCounterTenantResource--; } -buildUnnamed3261() { +buildUnnamed3415() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed3261(core.List<api.Field> o) { +checkUnnamed3415(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed3262() { +buildUnnamed3416() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3262(core.List<core.String> o) { +checkUnnamed3416(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3263() { +buildUnnamed3417() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed3263(core.List<api.Option> o) { +checkUnnamed3417(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2707,10 +2690,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed3261(); + o.fields = buildUnnamed3415(); o.name = "foo"; - o.oneofs = buildUnnamed3262(); - o.options = buildUnnamed3263(); + o.oneofs = buildUnnamed3416(); + o.options = buildUnnamed3417(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2721,10 +2704,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed3261(o.fields); + checkUnnamed3415(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3262(o.oneofs); - checkUnnamed3263(o.options); + checkUnnamed3416(o.oneofs); + checkUnnamed3417(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -2750,27 +2733,27 @@ buildCounterUndeleteTenantProjectRequest--; } -buildUnnamed3264() { +buildUnnamed3418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3264(core.List<core.String> o) { +checkUnnamed3418(core.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() { +buildUnnamed3419() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed3265(core.List<api.UsageRule> o) { +checkUnnamed3419(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2782,8 +2765,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed3264(); - o.rules = buildUnnamed3265(); + o.requirements = buildUnnamed3418(); + o.rules = buildUnnamed3419(); o.serviceIdentity = buildServiceIdentity(); } buildCounterUsage--; @@ -2794,8 +2777,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed3264(o.requirements); - checkUnnamed3265(o.rules); + checkUnnamed3418(o.requirements); + checkUnnamed3419(o.rules); checkServiceIdentity(o.serviceIdentity); } buildCounterUsage--; @@ -2824,14 +2807,14 @@ buildCounterUsageRule--; } -buildUnnamed3266() { +buildUnnamed3420() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3266(core.List<core.String> o) { +checkUnnamed3420(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2842,7 +2825,7 @@ var o = new api.V1AddVisibilityLabelsResponse(); buildCounterV1AddVisibilityLabelsResponse++; if (buildCounterV1AddVisibilityLabelsResponse < 3) { - o.labels = buildUnnamed3266(); + o.labels = buildUnnamed3420(); } buildCounterV1AddVisibilityLabelsResponse--; return o; @@ -2851,19 +2834,19 @@ checkV1AddVisibilityLabelsResponse(api.V1AddVisibilityLabelsResponse o) { buildCounterV1AddVisibilityLabelsResponse++; if (buildCounterV1AddVisibilityLabelsResponse < 3) { - checkUnnamed3266(o.labels); + checkUnnamed3420(o.labels); } buildCounterV1AddVisibilityLabelsResponse--; } -buildUnnamed3267() { +buildUnnamed3421() { var o = new core.List<api.V1Beta1QuotaOverride>(); o.add(buildV1Beta1QuotaOverride()); o.add(buildV1Beta1QuotaOverride()); return o; } -checkUnnamed3267(core.List<api.V1Beta1QuotaOverride> o) { +checkUnnamed3421(core.List<api.V1Beta1QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkV1Beta1QuotaOverride(o[0]); checkV1Beta1QuotaOverride(o[1]); @@ -2874,7 +2857,7 @@ var o = new api.V1Beta1BatchCreateProducerOverridesResponse(); buildCounterV1Beta1BatchCreateProducerOverridesResponse++; if (buildCounterV1Beta1BatchCreateProducerOverridesResponse < 3) { - o.overrides = buildUnnamed3267(); + o.overrides = buildUnnamed3421(); } buildCounterV1Beta1BatchCreateProducerOverridesResponse--; return o; @@ -2884,7 +2867,7 @@ api.V1Beta1BatchCreateProducerOverridesResponse o) { buildCounterV1Beta1BatchCreateProducerOverridesResponse++; if (buildCounterV1Beta1BatchCreateProducerOverridesResponse < 3) { - checkUnnamed3267(o.overrides); + checkUnnamed3421(o.overrides); } buildCounterV1Beta1BatchCreateProducerOverridesResponse--; } @@ -2939,14 +2922,14 @@ buildCounterV1Beta1GenerateServiceIdentityResponse--; } -buildUnnamed3268() { +buildUnnamed3422() { var o = new core.List<api.V1Beta1QuotaOverride>(); o.add(buildV1Beta1QuotaOverride()); o.add(buildV1Beta1QuotaOverride()); return o; } -checkUnnamed3268(core.List<api.V1Beta1QuotaOverride> o) { +checkUnnamed3422(core.List<api.V1Beta1QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkV1Beta1QuotaOverride(o[0]); checkV1Beta1QuotaOverride(o[1]); @@ -2957,7 +2940,7 @@ var o = new api.V1Beta1ImportProducerOverridesResponse(); buildCounterV1Beta1ImportProducerOverridesResponse++; if (buildCounterV1Beta1ImportProducerOverridesResponse < 3) { - o.overrides = buildUnnamed3268(); + o.overrides = buildUnnamed3422(); } buildCounterV1Beta1ImportProducerOverridesResponse--; return o; @@ -2967,19 +2950,94 @@ api.V1Beta1ImportProducerOverridesResponse o) { buildCounterV1Beta1ImportProducerOverridesResponse++; if (buildCounterV1Beta1ImportProducerOverridesResponse < 3) { - checkUnnamed3268(o.overrides); + checkUnnamed3422(o.overrides); } buildCounterV1Beta1ImportProducerOverridesResponse--; } -buildUnnamed3269() { +buildUnnamed3423() { + var o = new core.List<api.V1Beta1ProducerQuotaPolicy>(); + o.add(buildV1Beta1ProducerQuotaPolicy()); + o.add(buildV1Beta1ProducerQuotaPolicy()); + return o; +} + +checkUnnamed3423(core.List<api.V1Beta1ProducerQuotaPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkV1Beta1ProducerQuotaPolicy(o[0]); + checkV1Beta1ProducerQuotaPolicy(o[1]); +} + +core.int buildCounterV1Beta1ImportProducerQuotaPoliciesResponse = 0; +buildV1Beta1ImportProducerQuotaPoliciesResponse() { + var o = new api.V1Beta1ImportProducerQuotaPoliciesResponse(); + buildCounterV1Beta1ImportProducerQuotaPoliciesResponse++; + if (buildCounterV1Beta1ImportProducerQuotaPoliciesResponse < 3) { + o.policies = buildUnnamed3423(); + } + buildCounterV1Beta1ImportProducerQuotaPoliciesResponse--; + return o; +} + +checkV1Beta1ImportProducerQuotaPoliciesResponse( + api.V1Beta1ImportProducerQuotaPoliciesResponse o) { + buildCounterV1Beta1ImportProducerQuotaPoliciesResponse++; + if (buildCounterV1Beta1ImportProducerQuotaPoliciesResponse < 3) { + checkUnnamed3423(o.policies); + } + buildCounterV1Beta1ImportProducerQuotaPoliciesResponse--; +} + +buildUnnamed3424() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3269(core.Map<core.String, core.String> o) { +checkUnnamed3424(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 buildCounterV1Beta1ProducerQuotaPolicy = 0; +buildV1Beta1ProducerQuotaPolicy() { + var o = new api.V1Beta1ProducerQuotaPolicy(); + buildCounterV1Beta1ProducerQuotaPolicy++; + if (buildCounterV1Beta1ProducerQuotaPolicy < 3) { + o.container = "foo"; + o.dimensions = buildUnnamed3424(); + o.metric = "foo"; + o.name = "foo"; + o.policyValue = "foo"; + o.unit = "foo"; + } + buildCounterV1Beta1ProducerQuotaPolicy--; + return o; +} + +checkV1Beta1ProducerQuotaPolicy(api.V1Beta1ProducerQuotaPolicy o) { + buildCounterV1Beta1ProducerQuotaPolicy++; + if (buildCounterV1Beta1ProducerQuotaPolicy < 3) { + unittest.expect(o.container, unittest.equals('foo')); + checkUnnamed3424(o.dimensions); + unittest.expect(o.metric, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.policyValue, unittest.equals('foo')); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterV1Beta1ProducerQuotaPolicy--; +} + +buildUnnamed3425() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed3425(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')); @@ -2990,7 +3048,8 @@ var o = new api.V1Beta1QuotaOverride(); buildCounterV1Beta1QuotaOverride++; if (buildCounterV1Beta1QuotaOverride < 3) { - o.dimensions = buildUnnamed3269(); + o.adminOverrideAncestor = "foo"; + o.dimensions = buildUnnamed3425(); o.metric = "foo"; o.name = "foo"; o.overrideValue = "foo"; @@ -3003,7 +3062,8 @@ checkV1Beta1QuotaOverride(api.V1Beta1QuotaOverride o) { buildCounterV1Beta1QuotaOverride++; if (buildCounterV1Beta1QuotaOverride < 3) { - checkUnnamed3269(o.dimensions); + unittest.expect(o.adminOverrideAncestor, unittest.equals('foo')); + checkUnnamed3425(o.dimensions); unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.overrideValue, unittest.equals('foo')); @@ -3163,14 +3223,14 @@ buildCounterV1RefreshConsumerResponse--; } -buildUnnamed3270() { +buildUnnamed3426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3270(core.List<core.String> o) { +checkUnnamed3426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3181,7 +3241,7 @@ var o = new api.V1RemoveVisibilityLabelsResponse(); buildCounterV1RemoveVisibilityLabelsResponse++; if (buildCounterV1RemoveVisibilityLabelsResponse < 3) { - o.labels = buildUnnamed3270(); + o.labels = buildUnnamed3426(); } buildCounterV1RemoveVisibilityLabelsResponse--; return o; @@ -3190,7 +3250,7 @@ checkV1RemoveVisibilityLabelsResponse(api.V1RemoveVisibilityLabelsResponse o) { buildCounterV1RemoveVisibilityLabelsResponse++; if (buildCounterV1RemoveVisibilityLabelsResponse < 3) { - checkUnnamed3270(o.labels); + checkUnnamed3426(o.labels); } buildCounterV1RemoveVisibilityLabelsResponse--; } @@ -3850,6 +3910,23 @@ }); }); + unittest.group("obj-schema-V1Beta1ImportProducerQuotaPoliciesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildV1Beta1ImportProducerQuotaPoliciesResponse(); + var od = new api.V1Beta1ImportProducerQuotaPoliciesResponse.fromJson( + o.toJson()); + checkV1Beta1ImportProducerQuotaPoliciesResponse(od); + }); + }); + + unittest.group("obj-schema-V1Beta1ProducerQuotaPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildV1Beta1ProducerQuotaPolicy(); + var od = new api.V1Beta1ProducerQuotaPolicy.fromJson(o.toJson()); + checkV1Beta1ProducerQuotaPolicy(od); + }); + }); + unittest.group("obj-schema-V1Beta1QuotaOverride", () { unittest.test("to-json--from-json", () { var o = buildV1Beta1QuotaOverride(); @@ -4104,9 +4181,9 @@ api.OperationsResourceApi res = new api.ServiceconsumermanagementApi(mock).operations; var arg_name = "foo"; + var arg_pageSize = 42; var arg_filter = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4139,11 +4216,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4154,9 +4231,9 @@ }), true); res .list(arg_name, + pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -4171,8 +4248,8 @@ new api.ServiceconsumermanagementApi(mock).services; var arg_parent = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_query = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4207,9 +4284,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["query"].first, unittest.equals(arg_query)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4221,8 +4298,8 @@ res .search(arg_parent, pageToken: arg_pageToken, - pageSize: arg_pageSize, query: arg_query, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearchTenancyUnitsResponse(response);
diff --git a/generated/googleapis/test/servicecontrol/v1_test.dart b/generated/googleapis/test/servicecontrol/v1_test.dart index c6862be..da0707f 100644 --- a/generated/googleapis/test/servicecontrol/v1_test.dart +++ b/generated/googleapis/test/servicecontrol/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4438() { +buildUnnamed4781() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4438(core.List<core.String> o) { +checkUnnamed4781(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AllocateInfo(); buildCounterAllocateInfo++; if (buildCounterAllocateInfo < 3) { - o.unusedArguments = buildUnnamed4438(); + o.unusedArguments = buildUnnamed4781(); } buildCounterAllocateInfo--; return o; @@ -77,7 +77,7 @@ checkAllocateInfo(api.AllocateInfo o) { buildCounterAllocateInfo++; if (buildCounterAllocateInfo < 3) { - checkUnnamed4438(o.unusedArguments); + checkUnnamed4781(o.unusedArguments); } buildCounterAllocateInfo--; } @@ -103,27 +103,27 @@ buildCounterAllocateQuotaRequest--; } -buildUnnamed4439() { +buildUnnamed4782() { var o = new core.List<api.QuotaError>(); o.add(buildQuotaError()); o.add(buildQuotaError()); return o; } -checkUnnamed4439(core.List<api.QuotaError> o) { +checkUnnamed4782(core.List<api.QuotaError> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaError(o[0]); checkQuotaError(o[1]); } -buildUnnamed4440() { +buildUnnamed4783() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed4440(core.List<api.MetricValueSet> o) { +checkUnnamed4783(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -134,10 +134,10 @@ var o = new api.AllocateQuotaResponse(); buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - o.allocateErrors = buildUnnamed4439(); + o.allocateErrors = buildUnnamed4782(); o.allocateInfo = buildAllocateInfo(); o.operationId = "foo"; - o.quotaMetrics = buildUnnamed4440(); + o.quotaMetrics = buildUnnamed4783(); o.serviceConfigId = "foo"; } buildCounterAllocateQuotaResponse--; @@ -147,10 +147,10 @@ checkAllocateQuotaResponse(api.AllocateQuotaResponse o) { buildCounterAllocateQuotaResponse++; if (buildCounterAllocateQuotaResponse < 3) { - checkUnnamed4439(o.allocateErrors); + checkUnnamed4782(o.allocateErrors); checkAllocateInfo(o.allocateInfo); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed4440(o.quotaMetrics); + checkUnnamed4783(o.quotaMetrics); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterAllocateQuotaResponse--; @@ -179,14 +179,14 @@ buildCounterAttributeValue--; } -buildUnnamed4441() { +buildUnnamed4784() { var o = new core.Map<core.String, api.AttributeValue>(); o["x"] = buildAttributeValue(); o["y"] = buildAttributeValue(); return o; } -checkUnnamed4441(core.Map<core.String, api.AttributeValue> o) { +checkUnnamed4784(core.Map<core.String, api.AttributeValue> o) { unittest.expect(o, unittest.hasLength(2)); checkAttributeValue(o["x"]); checkAttributeValue(o["y"]); @@ -197,7 +197,7 @@ var o = new api.Attributes(); buildCounterAttributes++; if (buildCounterAttributes < 3) { - o.attributeMap = buildUnnamed4441(); + o.attributeMap = buildUnnamed4784(); o.droppedAttributesCount = 42; } buildCounterAttributes--; @@ -207,26 +207,26 @@ checkAttributes(api.Attributes o) { buildCounterAttributes++; if (buildCounterAttributes < 3) { - checkUnnamed4441(o.attributeMap); + checkUnnamed4784(o.attributeMap); unittest.expect(o.droppedAttributesCount, unittest.equals(42)); } buildCounterAttributes--; } -buildUnnamed4442() { +buildUnnamed4785() { var o = new core.List<api.AuthorizationInfo>(); o.add(buildAuthorizationInfo()); o.add(buildAuthorizationInfo()); return o; } -checkUnnamed4442(core.List<api.AuthorizationInfo> o) { +checkUnnamed4785(core.List<api.AuthorizationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthorizationInfo(o[0]); checkAuthorizationInfo(o[1]); } -buildUnnamed4443() { +buildUnnamed4786() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -241,7 +241,7 @@ return o; } -checkUnnamed4443(core.Map<core.String, core.Object> o) { +checkUnnamed4786(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)); @@ -255,7 +255,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4444() { +buildUnnamed4787() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -270,7 +270,7 @@ return o; } -checkUnnamed4444(core.Map<core.String, core.Object> o) { +checkUnnamed4787(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)); @@ -284,7 +284,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed4445() { +buildUnnamed4788() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -299,7 +299,7 @@ return o; } -checkUnnamed4445(core.Map<core.String, core.Object> o) { +checkUnnamed4788(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)); @@ -313,7 +313,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4446() { +buildUnnamed4789() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -328,7 +328,7 @@ return o; } -checkUnnamed4446(core.Map<core.String, core.Object> o) { +checkUnnamed4789(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)); @@ -342,7 +342,7 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed4447() { +buildUnnamed4790() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -357,7 +357,7 @@ return o; } -checkUnnamed4447(core.Map<core.String, core.Object> o) { +checkUnnamed4790(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)); @@ -377,17 +377,17 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { o.authenticationInfo = buildAuthenticationInfo(); - o.authorizationInfo = buildUnnamed4442(); - o.metadata = buildUnnamed4443(); + o.authorizationInfo = buildUnnamed4785(); + o.metadata = buildUnnamed4786(); o.methodName = "foo"; o.numResponseItems = "foo"; - o.request = buildUnnamed4444(); + o.request = buildUnnamed4787(); o.requestMetadata = buildRequestMetadata(); o.resourceLocation = buildResourceLocation(); o.resourceName = "foo"; - o.resourceOriginalState = buildUnnamed4445(); - o.response = buildUnnamed4446(); - o.serviceData = buildUnnamed4447(); + o.resourceOriginalState = buildUnnamed4788(); + o.response = buildUnnamed4789(); + o.serviceData = buildUnnamed4790(); o.serviceName = "foo"; o.status = buildStatus(); } @@ -399,50 +399,50 @@ buildCounterAuditLog++; if (buildCounterAuditLog < 3) { checkAuthenticationInfo(o.authenticationInfo); - checkUnnamed4442(o.authorizationInfo); - checkUnnamed4443(o.metadata); + checkUnnamed4785(o.authorizationInfo); + checkUnnamed4786(o.metadata); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.numResponseItems, unittest.equals('foo')); - checkUnnamed4444(o.request); + checkUnnamed4787(o.request); checkRequestMetadata(o.requestMetadata); checkResourceLocation(o.resourceLocation); unittest.expect(o.resourceName, unittest.equals('foo')); - checkUnnamed4445(o.resourceOriginalState); - checkUnnamed4446(o.response); - checkUnnamed4447(o.serviceData); + checkUnnamed4788(o.resourceOriginalState); + checkUnnamed4789(o.response); + checkUnnamed4790(o.serviceData); unittest.expect(o.serviceName, unittest.equals('foo')); checkStatus(o.status); } buildCounterAuditLog--; } -buildUnnamed4448() { +buildUnnamed4791() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4448(core.List<core.String> o) { +checkUnnamed4791(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4449() { +buildUnnamed4792() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4449(core.List<core.String> o) { +checkUnnamed4792(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4450() { +buildUnnamed4793() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -457,7 +457,7 @@ return o; } -checkUnnamed4450(core.Map<core.String, core.Object> o) { +checkUnnamed4793(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)); @@ -476,9 +476,9 @@ var o = new api.Auth(); buildCounterAuth++; if (buildCounterAuth < 3) { - o.accessLevels = buildUnnamed4448(); - o.audiences = buildUnnamed4449(); - o.claims = buildUnnamed4450(); + o.accessLevels = buildUnnamed4791(); + o.audiences = buildUnnamed4792(); + o.claims = buildUnnamed4793(); o.presenter = "foo"; o.principal = "foo"; } @@ -489,29 +489,29 @@ checkAuth(api.Auth o) { buildCounterAuth++; if (buildCounterAuth < 3) { - checkUnnamed4448(o.accessLevels); - checkUnnamed4449(o.audiences); - checkUnnamed4450(o.claims); + checkUnnamed4791(o.accessLevels); + checkUnnamed4792(o.audiences); + checkUnnamed4793(o.claims); unittest.expect(o.presenter, unittest.equals('foo')); unittest.expect(o.principal, unittest.equals('foo')); } buildCounterAuth--; } -buildUnnamed4451() { +buildUnnamed4794() { var o = new core.List<api.ServiceAccountDelegationInfo>(); o.add(buildServiceAccountDelegationInfo()); o.add(buildServiceAccountDelegationInfo()); return o; } -checkUnnamed4451(core.List<api.ServiceAccountDelegationInfo> o) { +checkUnnamed4794(core.List<api.ServiceAccountDelegationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkServiceAccountDelegationInfo(o[0]); checkServiceAccountDelegationInfo(o[1]); } -buildUnnamed4452() { +buildUnnamed4795() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -526,7 +526,7 @@ return o; } -checkUnnamed4452(core.Map<core.String, core.Object> o) { +checkUnnamed4795(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)); @@ -548,9 +548,9 @@ o.authoritySelector = "foo"; o.principalEmail = "foo"; o.principalSubject = "foo"; - o.serviceAccountDelegationInfo = buildUnnamed4451(); + o.serviceAccountDelegationInfo = buildUnnamed4794(); o.serviceAccountKeyName = "foo"; - o.thirdPartyPrincipal = buildUnnamed4452(); + o.thirdPartyPrincipal = buildUnnamed4795(); } buildCounterAuthenticationInfo--; return o; @@ -562,9 +562,9 @@ unittest.expect(o.authoritySelector, unittest.equals('foo')); unittest.expect(o.principalEmail, unittest.equals('foo')); unittest.expect(o.principalSubject, unittest.equals('foo')); - checkUnnamed4451(o.serviceAccountDelegationInfo); + checkUnnamed4794(o.serviceAccountDelegationInfo); unittest.expect(o.serviceAccountKeyName, unittest.equals('foo')); - checkUnnamed4452(o.thirdPartyPrincipal); + checkUnnamed4795(o.thirdPartyPrincipal); } buildCounterAuthenticationInfo--; } @@ -619,14 +619,14 @@ buildCounterCheckError--; } -buildUnnamed4453() { +buildUnnamed4796() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4453(core.List<core.String> o) { +checkUnnamed4796(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -638,7 +638,7 @@ buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { o.consumerInfo = buildConsumerInfo(); - o.unusedArguments = buildUnnamed4453(); + o.unusedArguments = buildUnnamed4796(); } buildCounterCheckInfo--; return o; @@ -648,7 +648,7 @@ buildCounterCheckInfo++; if (buildCounterCheckInfo < 3) { checkConsumerInfo(o.consumerInfo); - checkUnnamed4453(o.unusedArguments); + checkUnnamed4796(o.unusedArguments); } buildCounterCheckInfo--; } @@ -678,14 +678,14 @@ buildCounterCheckRequest--; } -buildUnnamed4454() { +buildUnnamed4797() { var o = new core.List<api.CheckError>(); o.add(buildCheckError()); o.add(buildCheckError()); return o; } -checkUnnamed4454(core.List<api.CheckError> o) { +checkUnnamed4797(core.List<api.CheckError> o) { unittest.expect(o, unittest.hasLength(2)); checkCheckError(o[0]); checkCheckError(o[1]); @@ -696,7 +696,7 @@ var o = new api.CheckResponse(); buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - o.checkErrors = buildUnnamed4454(); + o.checkErrors = buildUnnamed4797(); o.checkInfo = buildCheckInfo(); o.operationId = "foo"; o.quotaInfo = buildQuotaInfo(); @@ -710,7 +710,7 @@ checkCheckResponse(api.CheckResponse o) { buildCounterCheckResponse++; if (buildCounterCheckResponse < 3) { - checkUnnamed4454(o.checkErrors); + checkUnnamed4797(o.checkErrors); checkCheckInfo(o.checkInfo); unittest.expect(o.operationId, unittest.equals('foo')); checkQuotaInfo(o.quotaInfo); @@ -743,27 +743,27 @@ buildCounterConsumerInfo--; } -buildUnnamed4455() { +buildUnnamed4798() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4455(core.List<core.String> o) { +checkUnnamed4798(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4456() { +buildUnnamed4799() { var o = new core.List<api.Exemplar>(); o.add(buildExemplar()); o.add(buildExemplar()); return o; } -checkUnnamed4456(core.List<api.Exemplar> o) { +checkUnnamed4799(core.List<api.Exemplar> o) { unittest.expect(o, unittest.hasLength(2)); checkExemplar(o[0]); checkExemplar(o[1]); @@ -774,9 +774,9 @@ var o = new api.Distribution(); buildCounterDistribution++; if (buildCounterDistribution < 3) { - o.bucketCounts = buildUnnamed4455(); + o.bucketCounts = buildUnnamed4798(); o.count = "foo"; - o.exemplars = buildUnnamed4456(); + o.exemplars = buildUnnamed4799(); o.explicitBuckets = buildExplicitBuckets(); o.exponentialBuckets = buildExponentialBuckets(); o.linearBuckets = buildLinearBuckets(); @@ -792,9 +792,9 @@ checkDistribution(api.Distribution o) { buildCounterDistribution++; if (buildCounterDistribution < 3) { - checkUnnamed4455(o.bucketCounts); + checkUnnamed4798(o.bucketCounts); unittest.expect(o.count, unittest.equals('foo')); - checkUnnamed4456(o.exemplars); + checkUnnamed4799(o.exemplars); checkExplicitBuckets(o.explicitBuckets); checkExponentialBuckets(o.exponentialBuckets); checkLinearBuckets(o.linearBuckets); @@ -806,7 +806,7 @@ buildCounterDistribution--; } -buildUnnamed4457() { +buildUnnamed4800() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -821,7 +821,7 @@ return o; } -checkUnnamed4457(core.Map<core.String, core.Object> o) { +checkUnnamed4800(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); @@ -835,17 +835,17 @@ unittest.expect(casted16["string"], unittest.equals('foo')); } -buildUnnamed4458() { +buildUnnamed4801() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4457()); - o.add(buildUnnamed4457()); + o.add(buildUnnamed4800()); + o.add(buildUnnamed4800()); return o; } -checkUnnamed4458(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4801(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4457(o[0]); - checkUnnamed4457(o[1]); + checkUnnamed4800(o[0]); + checkUnnamed4800(o[1]); } core.int buildCounterExemplar = 0; @@ -853,7 +853,7 @@ var o = new api.Exemplar(); buildCounterExemplar++; if (buildCounterExemplar < 3) { - o.attachments = buildUnnamed4458(); + o.attachments = buildUnnamed4801(); o.timestamp = "foo"; o.value = 42.0; } @@ -864,21 +864,21 @@ checkExemplar(api.Exemplar o) { buildCounterExemplar++; if (buildCounterExemplar < 3) { - checkUnnamed4458(o.attachments); + checkUnnamed4801(o.attachments); unittest.expect(o.timestamp, unittest.equals('foo')); unittest.expect(o.value, unittest.equals(42.0)); } buildCounterExemplar--; } -buildUnnamed4459() { +buildUnnamed4802() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed4459(core.List<core.double> o) { +checkUnnamed4802(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)); @@ -889,7 +889,7 @@ var o = new api.ExplicitBuckets(); buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - o.bounds = buildUnnamed4459(); + o.bounds = buildUnnamed4802(); } buildCounterExplicitBuckets--; return o; @@ -898,7 +898,7 @@ checkExplicitBuckets(api.ExplicitBuckets o) { buildCounterExplicitBuckets++; if (buildCounterExplicitBuckets < 3) { - checkUnnamed4459(o.bounds); + checkUnnamed4802(o.bounds); } buildCounterExplicitBuckets--; } @@ -926,7 +926,7 @@ buildCounterExponentialBuckets--; } -buildUnnamed4460() { +buildUnnamed4803() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -941,7 +941,7 @@ return o; } -checkUnnamed4460(core.Map<core.String, core.Object> o) { +checkUnnamed4803(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o["x"]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); @@ -961,7 +961,7 @@ buildCounterFirstPartyPrincipal++; if (buildCounterFirstPartyPrincipal < 3) { o.principalEmail = "foo"; - o.serviceMetadata = buildUnnamed4460(); + o.serviceMetadata = buildUnnamed4803(); } buildCounterFirstPartyPrincipal--; return o; @@ -971,7 +971,7 @@ buildCounterFirstPartyPrincipal++; if (buildCounterFirstPartyPrincipal < 3) { unittest.expect(o.principalEmail, unittest.equals('foo')); - checkUnnamed4460(o.serviceMetadata); + checkUnnamed4803(o.serviceMetadata); } buildCounterFirstPartyPrincipal--; } @@ -1046,20 +1046,20 @@ buildCounterLinearBuckets--; } -buildUnnamed4461() { +buildUnnamed4804() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4461(core.Map<core.String, core.String> o) { +checkUnnamed4804(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')); } -buildUnnamed4462() { +buildUnnamed4805() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1074,7 +1074,7 @@ return o; } -checkUnnamed4462(core.Map<core.String, core.Object> o) { +checkUnnamed4805(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); @@ -1088,7 +1088,7 @@ unittest.expect(casted20["string"], unittest.equals('foo')); } -buildUnnamed4463() { +buildUnnamed4806() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1103,7 +1103,7 @@ return o; } -checkUnnamed4463(core.Map<core.String, core.Object> o) { +checkUnnamed4806(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)); @@ -1124,13 +1124,13 @@ if (buildCounterLogEntry < 3) { o.httpRequest = buildHttpRequest(); o.insertId = "foo"; - o.labels = buildUnnamed4461(); + o.labels = buildUnnamed4804(); o.name = "foo"; o.operation = buildLogEntryOperation(); - o.protoPayload = buildUnnamed4462(); + o.protoPayload = buildUnnamed4805(); o.severity = "foo"; o.sourceLocation = buildLogEntrySourceLocation(); - o.structPayload = buildUnnamed4463(); + o.structPayload = buildUnnamed4806(); o.textPayload = "foo"; o.timestamp = "foo"; o.trace = "foo"; @@ -1144,13 +1144,13 @@ if (buildCounterLogEntry < 3) { checkHttpRequest(o.httpRequest); unittest.expect(o.insertId, unittest.equals('foo')); - checkUnnamed4461(o.labels); + checkUnnamed4804(o.labels); unittest.expect(o.name, unittest.equals('foo')); checkLogEntryOperation(o.operation); - checkUnnamed4462(o.protoPayload); + checkUnnamed4805(o.protoPayload); unittest.expect(o.severity, unittest.equals('foo')); checkLogEntrySourceLocation(o.sourceLocation); - checkUnnamed4463(o.structPayload); + checkUnnamed4806(o.structPayload); unittest.expect(o.textPayload, unittest.equals('foo')); unittest.expect(o.timestamp, unittest.equals('foo')); unittest.expect(o.trace, unittest.equals('foo')); @@ -1206,14 +1206,14 @@ buildCounterLogEntrySourceLocation--; } -buildUnnamed4464() { +buildUnnamed4807() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4464(core.Map<core.String, core.String> o) { +checkUnnamed4807(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')); @@ -1229,7 +1229,7 @@ o.doubleValue = 42.0; o.endTime = "foo"; o.int64Value = "foo"; - o.labels = buildUnnamed4464(); + o.labels = buildUnnamed4807(); o.moneyValue = buildMoney(); o.startTime = "foo"; o.stringValue = "foo"; @@ -1246,7 +1246,7 @@ unittest.expect(o.doubleValue, unittest.equals(42.0)); unittest.expect(o.endTime, unittest.equals('foo')); unittest.expect(o.int64Value, unittest.equals('foo')); - checkUnnamed4464(o.labels); + checkUnnamed4807(o.labels); checkMoney(o.moneyValue); unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.stringValue, unittest.equals('foo')); @@ -1254,14 +1254,14 @@ buildCounterMetricValue--; } -buildUnnamed4465() { +buildUnnamed4808() { var o = new core.List<api.MetricValue>(); o.add(buildMetricValue()); o.add(buildMetricValue()); return o; } -checkUnnamed4465(core.List<api.MetricValue> o) { +checkUnnamed4808(core.List<api.MetricValue> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValue(o[0]); checkMetricValue(o[1]); @@ -1273,7 +1273,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { o.metricName = "foo"; - o.metricValues = buildUnnamed4465(); + o.metricValues = buildUnnamed4808(); } buildCounterMetricValueSet--; return o; @@ -1283,7 +1283,7 @@ buildCounterMetricValueSet++; if (buildCounterMetricValueSet < 3) { unittest.expect(o.metricName, unittest.equals('foo')); - checkUnnamed4465(o.metricValues); + checkUnnamed4808(o.metricValues); } buildCounterMetricValueSet--; } @@ -1311,79 +1311,121 @@ buildCounterMoney--; } -buildUnnamed4466() { +buildUnnamed4809() { + 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; +} + +checkUnnamed4809(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted23 = (o["x"]) as core.Map; + unittest.expect(casted23, unittest.hasLength(3)); + unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted23["bool"], unittest.equals(true)); + unittest.expect(casted23["string"], unittest.equals('foo')); + var casted24 = (o["y"]) as core.Map; + unittest.expect(casted24, unittest.hasLength(3)); + unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted24["bool"], unittest.equals(true)); + unittest.expect(casted24["string"], unittest.equals('foo')); +} + +buildUnnamed4810() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed4809()); + o.add(buildUnnamed4809()); + return o; +} + +checkUnnamed4810(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed4809(o[0]); + checkUnnamed4809(o[1]); +} + +buildUnnamed4811() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4466(core.Map<core.String, core.String> o) { +checkUnnamed4811(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')); } -buildUnnamed4467() { +buildUnnamed4812() { var o = new core.List<api.LogEntry>(); o.add(buildLogEntry()); o.add(buildLogEntry()); return o; } -checkUnnamed4467(core.List<api.LogEntry> o) { +checkUnnamed4812(core.List<api.LogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkLogEntry(o[0]); checkLogEntry(o[1]); } -buildUnnamed4468() { +buildUnnamed4813() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed4468(core.List<api.MetricValueSet> o) { +checkUnnamed4813(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); } -buildUnnamed4469() { +buildUnnamed4814() { var o = new core.List<api.ResourceInfo>(); o.add(buildResourceInfo()); o.add(buildResourceInfo()); return o; } -checkUnnamed4469(core.List<api.ResourceInfo> o) { +checkUnnamed4814(core.List<api.ResourceInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkResourceInfo(o[0]); checkResourceInfo(o[1]); } -buildUnnamed4470() { +buildUnnamed4815() { var o = new core.List<api.TraceSpan>(); o.add(buildTraceSpan()); o.add(buildTraceSpan()); return o; } -checkUnnamed4470(core.List<api.TraceSpan> o) { +checkUnnamed4815(core.List<api.TraceSpan> o) { unittest.expect(o, unittest.hasLength(2)); checkTraceSpan(o[0]); checkTraceSpan(o[1]); } -buildUnnamed4471() { +buildUnnamed4816() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4471(core.Map<core.String, core.String> o) { +checkUnnamed4816(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')); @@ -1396,17 +1438,18 @@ if (buildCounterOperation < 3) { o.consumerId = "foo"; o.endTime = "foo"; + o.extensions = buildUnnamed4810(); o.importance = "foo"; - o.labels = buildUnnamed4466(); - o.logEntries = buildUnnamed4467(); - o.metricValueSets = buildUnnamed4468(); + o.labels = buildUnnamed4811(); + o.logEntries = buildUnnamed4812(); + o.metricValueSets = buildUnnamed4813(); o.operationId = "foo"; o.operationName = "foo"; o.quotaProperties = buildQuotaProperties(); - o.resources = buildUnnamed4469(); + o.resources = buildUnnamed4814(); o.startTime = "foo"; - o.traceSpans = buildUnnamed4470(); - o.userLabels = buildUnnamed4471(); + o.traceSpans = buildUnnamed4815(); + o.userLabels = buildUnnamed4816(); } buildCounterOperation--; return o; @@ -1417,29 +1460,30 @@ if (buildCounterOperation < 3) { unittest.expect(o.consumerId, unittest.equals('foo')); unittest.expect(o.endTime, unittest.equals('foo')); + checkUnnamed4810(o.extensions); unittest.expect(o.importance, unittest.equals('foo')); - checkUnnamed4466(o.labels); - checkUnnamed4467(o.logEntries); - checkUnnamed4468(o.metricValueSets); + checkUnnamed4811(o.labels); + checkUnnamed4812(o.logEntries); + checkUnnamed4813(o.metricValueSets); unittest.expect(o.operationId, unittest.equals('foo')); unittest.expect(o.operationName, unittest.equals('foo')); checkQuotaProperties(o.quotaProperties); - checkUnnamed4469(o.resources); + checkUnnamed4814(o.resources); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed4470(o.traceSpans); - checkUnnamed4471(o.userLabels); + checkUnnamed4815(o.traceSpans); + checkUnnamed4816(o.userLabels); } buildCounterOperation--; } -buildUnnamed4472() { +buildUnnamed4817() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4472(core.Map<core.String, core.String> o) { +checkUnnamed4817(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')); @@ -1451,7 +1495,7 @@ buildCounterPeer++; if (buildCounterPeer < 3) { o.ip = "foo"; - o.labels = buildUnnamed4472(); + o.labels = buildUnnamed4817(); o.port = "foo"; o.principal = "foo"; o.regionCode = "foo"; @@ -1464,7 +1508,7 @@ buildCounterPeer++; if (buildCounterPeer < 3) { unittest.expect(o.ip, unittest.equals('foo')); - checkUnnamed4472(o.labels); + checkUnnamed4817(o.labels); unittest.expect(o.port, unittest.equals('foo')); unittest.expect(o.principal, unittest.equals('foo')); unittest.expect(o.regionCode, unittest.equals('foo')); @@ -1495,40 +1539,40 @@ buildCounterQuotaError--; } -buildUnnamed4473() { +buildUnnamed4818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4473(core.List<core.String> o) { +checkUnnamed4818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4474() { +buildUnnamed4819() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed4474(core.Map<core.String, core.int> o) { +checkUnnamed4819(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); } -buildUnnamed4475() { +buildUnnamed4820() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed4475(core.List<api.MetricValueSet> o) { +checkUnnamed4820(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -1539,9 +1583,9 @@ var o = new api.QuotaInfo(); buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - o.limitExceeded = buildUnnamed4473(); - o.quotaConsumed = buildUnnamed4474(); - o.quotaMetrics = buildUnnamed4475(); + o.limitExceeded = buildUnnamed4818(); + o.quotaConsumed = buildUnnamed4819(); + o.quotaMetrics = buildUnnamed4820(); } buildCounterQuotaInfo--; return o; @@ -1550,34 +1594,34 @@ checkQuotaInfo(api.QuotaInfo o) { buildCounterQuotaInfo++; if (buildCounterQuotaInfo < 3) { - checkUnnamed4473(o.limitExceeded); - checkUnnamed4474(o.quotaConsumed); - checkUnnamed4475(o.quotaMetrics); + checkUnnamed4818(o.limitExceeded); + checkUnnamed4819(o.quotaConsumed); + checkUnnamed4820(o.quotaMetrics); } buildCounterQuotaInfo--; } -buildUnnamed4476() { +buildUnnamed4821() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4476(core.Map<core.String, core.String> o) { +checkUnnamed4821(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')); } -buildUnnamed4477() { +buildUnnamed4822() { var o = new core.List<api.MetricValueSet>(); o.add(buildMetricValueSet()); o.add(buildMetricValueSet()); return o; } -checkUnnamed4477(core.List<api.MetricValueSet> o) { +checkUnnamed4822(core.List<api.MetricValueSet> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricValueSet(o[0]); checkMetricValueSet(o[1]); @@ -1589,10 +1633,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { o.consumerId = "foo"; - o.labels = buildUnnamed4476(); + o.labels = buildUnnamed4821(); o.methodName = "foo"; o.operationId = "foo"; - o.quotaMetrics = buildUnnamed4477(); + o.quotaMetrics = buildUnnamed4822(); o.quotaMode = "foo"; } buildCounterQuotaOperation--; @@ -1603,10 +1647,10 @@ buildCounterQuotaOperation++; if (buildCounterQuotaOperation < 3) { unittest.expect(o.consumerId, unittest.equals('foo')); - checkUnnamed4476(o.labels); + checkUnnamed4821(o.labels); unittest.expect(o.methodName, unittest.equals('foo')); unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed4477(o.quotaMetrics); + checkUnnamed4822(o.quotaMetrics); unittest.expect(o.quotaMode, unittest.equals('foo')); } buildCounterQuotaOperation--; @@ -1673,14 +1717,14 @@ buildCounterReportInfo--; } -buildUnnamed4478() { +buildUnnamed4823() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4478(core.List<api.Operation> o) { +checkUnnamed4823(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1691,7 +1735,7 @@ var o = new api.ReportRequest(); buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - o.operations = buildUnnamed4478(); + o.operations = buildUnnamed4823(); o.serviceConfigId = "foo"; } buildCounterReportRequest--; @@ -1701,33 +1745,33 @@ checkReportRequest(api.ReportRequest o) { buildCounterReportRequest++; if (buildCounterReportRequest < 3) { - checkUnnamed4478(o.operations); + checkUnnamed4823(o.operations); unittest.expect(o.serviceConfigId, unittest.equals('foo')); } buildCounterReportRequest--; } -buildUnnamed4479() { +buildUnnamed4824() { var o = new core.List<api.ReportError>(); o.add(buildReportError()); o.add(buildReportError()); return o; } -checkUnnamed4479(core.List<api.ReportError> o) { +checkUnnamed4824(core.List<api.ReportError> o) { unittest.expect(o, unittest.hasLength(2)); checkReportError(o[0]); checkReportError(o[1]); } -buildUnnamed4480() { +buildUnnamed4825() { var o = new core.List<api.ReportInfo>(); o.add(buildReportInfo()); o.add(buildReportInfo()); return o; } -checkUnnamed4480(core.List<api.ReportInfo> o) { +checkUnnamed4825(core.List<api.ReportInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkReportInfo(o[0]); checkReportInfo(o[1]); @@ -1738,8 +1782,8 @@ var o = new api.ReportResponse(); buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - o.reportErrors = buildUnnamed4479(); - o.reportInfos = buildUnnamed4480(); + o.reportErrors = buildUnnamed4824(); + o.reportInfos = buildUnnamed4825(); o.serviceConfigId = "foo"; o.serviceRolloutId = "foo"; } @@ -1750,22 +1794,22 @@ checkReportResponse(api.ReportResponse o) { buildCounterReportResponse++; if (buildCounterReportResponse < 3) { - checkUnnamed4479(o.reportErrors); - checkUnnamed4480(o.reportInfos); + checkUnnamed4824(o.reportErrors); + checkUnnamed4825(o.reportInfos); unittest.expect(o.serviceConfigId, unittest.equals('foo')); unittest.expect(o.serviceRolloutId, unittest.equals('foo')); } buildCounterReportResponse--; } -buildUnnamed4481() { +buildUnnamed4826() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4481(core.Map<core.String, core.String> o) { +checkUnnamed4826(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')); @@ -1777,7 +1821,7 @@ buildCounterRequest++; if (buildCounterRequest < 3) { o.auth = buildAuth(); - o.headers = buildUnnamed4481(); + o.headers = buildUnnamed4826(); o.host = "foo"; o.id = "foo"; o.method = "foo"; @@ -1797,7 +1841,7 @@ buildCounterRequest++; if (buildCounterRequest < 3) { checkAuth(o.auth); - checkUnnamed4481(o.headers); + checkUnnamed4826(o.headers); unittest.expect(o.host, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.method, unittest.equals('foo')); @@ -1839,14 +1883,14 @@ buildCounterRequestMetadata--; } -buildUnnamed4482() { +buildUnnamed4827() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4482(core.Map<core.String, core.String> o) { +checkUnnamed4827(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')); @@ -1857,7 +1901,7 @@ var o = new api.Resource(); buildCounterResource++; if (buildCounterResource < 3) { - o.labels = buildUnnamed4482(); + o.labels = buildUnnamed4827(); o.name = "foo"; o.service = "foo"; o.type = "foo"; @@ -1869,7 +1913,7 @@ checkResource(api.Resource o) { buildCounterResource++; if (buildCounterResource < 3) { - checkUnnamed4482(o.labels); + checkUnnamed4827(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.service, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1900,27 +1944,27 @@ buildCounterResourceInfo--; } -buildUnnamed4483() { +buildUnnamed4828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4483(core.List<core.String> o) { +checkUnnamed4828(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4484() { +buildUnnamed4829() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4484(core.List<core.String> o) { +checkUnnamed4829(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1931,8 +1975,8 @@ var o = new api.ResourceLocation(); buildCounterResourceLocation++; if (buildCounterResourceLocation < 3) { - o.currentLocations = buildUnnamed4483(); - o.originalLocations = buildUnnamed4484(); + o.currentLocations = buildUnnamed4828(); + o.originalLocations = buildUnnamed4829(); } buildCounterResourceLocation--; return o; @@ -1941,8 +1985,8 @@ checkResourceLocation(api.ResourceLocation o) { buildCounterResourceLocation++; if (buildCounterResourceLocation < 3) { - checkUnnamed4483(o.currentLocations); - checkUnnamed4484(o.originalLocations); + checkUnnamed4828(o.currentLocations); + checkUnnamed4829(o.originalLocations); } buildCounterResourceLocation--; } @@ -1987,7 +2031,7 @@ buildCounterSpanContext--; } -buildUnnamed4485() { +buildUnnamed4830() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2002,72 +2046,7 @@ return o; } -checkUnnamed4485(core.Map<core.String, core.Object> o) { - unittest.expect(o, unittest.hasLength(2)); - var casted23 = (o["x"]) as core.Map; - unittest.expect(casted23, unittest.hasLength(3)); - unittest.expect(casted23["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted23["bool"], unittest.equals(true)); - unittest.expect(casted23["string"], unittest.equals('foo')); - var casted24 = (o["y"]) as core.Map; - unittest.expect(casted24, unittest.hasLength(3)); - unittest.expect(casted24["list"], unittest.equals([1, 2, 3])); - unittest.expect(casted24["bool"], unittest.equals(true)); - unittest.expect(casted24["string"], unittest.equals('foo')); -} - -buildUnnamed4486() { - var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4485()); - o.add(buildUnnamed4485()); - return o; -} - -checkUnnamed4486(core.List<core.Map<core.String, core.Object>> o) { - unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4485(o[0]); - checkUnnamed4485(o[1]); -} - -core.int buildCounterStatus = 0; -buildStatus() { - var o = new api.Status(); - buildCounterStatus++; - if (buildCounterStatus < 3) { - o.code = 42; - o.details = buildUnnamed4486(); - o.message = "foo"; - } - buildCounterStatus--; - return o; -} - -checkStatus(api.Status o) { - buildCounterStatus++; - if (buildCounterStatus < 3) { - unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4486(o.details); - unittest.expect(o.message, unittest.equals('foo')); - } - buildCounterStatus--; -} - -buildUnnamed4487() { - 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; -} - -checkUnnamed4487(core.Map<core.String, core.Object> o) { +checkUnnamed4830(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o["x"]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); @@ -2081,12 +2060,77 @@ unittest.expect(casted26["string"], unittest.equals('foo')); } +buildUnnamed4831() { + var o = new core.List<core.Map<core.String, core.Object>>(); + o.add(buildUnnamed4830()); + o.add(buildUnnamed4830()); + return o; +} + +checkUnnamed4831(core.List<core.Map<core.String, core.Object>> o) { + unittest.expect(o, unittest.hasLength(2)); + checkUnnamed4830(o[0]); + checkUnnamed4830(o[1]); +} + +core.int buildCounterStatus = 0; +buildStatus() { + var o = new api.Status(); + buildCounterStatus++; + if (buildCounterStatus < 3) { + o.code = 42; + o.details = buildUnnamed4831(); + o.message = "foo"; + } + buildCounterStatus--; + return o; +} + +checkStatus(api.Status o) { + buildCounterStatus++; + if (buildCounterStatus < 3) { + unittest.expect(o.code, unittest.equals(42)); + checkUnnamed4831(o.details); + unittest.expect(o.message, unittest.equals('foo')); + } + buildCounterStatus--; +} + +buildUnnamed4832() { + 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; +} + +checkUnnamed4832(core.Map<core.String, core.Object> o) { + unittest.expect(o, unittest.hasLength(2)); + var casted27 = (o["x"]) as core.Map; + unittest.expect(casted27, unittest.hasLength(3)); + unittest.expect(casted27["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted27["bool"], unittest.equals(true)); + unittest.expect(casted27["string"], unittest.equals('foo')); + var casted28 = (o["y"]) as core.Map; + unittest.expect(casted28, unittest.hasLength(3)); + unittest.expect(casted28["list"], unittest.equals([1, 2, 3])); + unittest.expect(casted28["bool"], unittest.equals(true)); + unittest.expect(casted28["string"], unittest.equals('foo')); +} + core.int buildCounterThirdPartyPrincipal = 0; buildThirdPartyPrincipal() { var o = new api.ThirdPartyPrincipal(); buildCounterThirdPartyPrincipal++; if (buildCounterThirdPartyPrincipal < 3) { - o.thirdPartyClaims = buildUnnamed4487(); + o.thirdPartyClaims = buildUnnamed4832(); } buildCounterThirdPartyPrincipal--; return o; @@ -2095,7 +2139,7 @@ checkThirdPartyPrincipal(api.ThirdPartyPrincipal o) { buildCounterThirdPartyPrincipal++; if (buildCounterThirdPartyPrincipal < 3) { - checkUnnamed4487(o.thirdPartyClaims); + checkUnnamed4832(o.thirdPartyClaims); } buildCounterThirdPartyPrincipal--; }
diff --git a/generated/googleapis/test/servicemanagement/v1_test.dart b/generated/googleapis/test/servicemanagement/v1_test.dart index f67c750..6057f91 100644 --- a/generated/googleapis/test/servicemanagement/v1_test.dart +++ b/generated/googleapis/test/servicemanagement/v1_test.dart
@@ -69,40 +69,40 @@ buildCounterAdvice--; } -buildUnnamed2674() { +buildUnnamed2806() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed2674(core.List<api.Method> o) { +checkUnnamed2806(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed2675() { +buildUnnamed2807() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed2675(core.List<api.Mixin> o) { +checkUnnamed2807(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed2676() { +buildUnnamed2808() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2676(core.List<api.Option> o) { +checkUnnamed2808(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -113,10 +113,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed2674(); - o.mixins = buildUnnamed2675(); + o.methods = buildUnnamed2806(); + o.mixins = buildUnnamed2807(); o.name = "foo"; - o.options = buildUnnamed2676(); + o.options = buildUnnamed2808(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -128,10 +128,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed2674(o.methods); - checkUnnamed2675(o.mixins); + checkUnnamed2806(o.methods); + checkUnnamed2807(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2676(o.options); + checkUnnamed2808(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -139,14 +139,14 @@ buildCounterApi--; } -buildUnnamed2677() { +buildUnnamed2809() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed2677(core.List<api.AuditLogConfig> o) { +checkUnnamed2809(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -157,7 +157,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed2677(); + o.auditLogConfigs = buildUnnamed2809(); o.service = "foo"; } buildCounterAuditConfig--; @@ -167,20 +167,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed2677(o.auditLogConfigs); + checkUnnamed2809(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed2678() { +buildUnnamed2810() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2678(core.List<core.String> o) { +checkUnnamed2810(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -191,7 +191,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed2678(); + o.exemptedMembers = buildUnnamed2810(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -201,20 +201,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed2678(o.exemptedMembers); + checkUnnamed2810(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed2679() { +buildUnnamed2811() { var o = new core.List<api.JwtLocation>(); o.add(buildJwtLocation()); o.add(buildJwtLocation()); return o; } -checkUnnamed2679(core.List<api.JwtLocation> o) { +checkUnnamed2811(core.List<api.JwtLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkJwtLocation(o[0]); checkJwtLocation(o[1]); @@ -230,7 +230,7 @@ o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; - o.jwtLocations = buildUnnamed2679(); + o.jwtLocations = buildUnnamed2811(); } buildCounterAuthProvider--; return o; @@ -244,7 +244,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); - checkUnnamed2679(o.jwtLocations); + checkUnnamed2811(o.jwtLocations); } buildCounterAuthProvider--; } @@ -270,27 +270,27 @@ buildCounterAuthRequirement--; } -buildUnnamed2680() { +buildUnnamed2812() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed2680(core.List<api.AuthProvider> o) { +checkUnnamed2812(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed2681() { +buildUnnamed2813() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed2681(core.List<api.AuthenticationRule> o) { +checkUnnamed2813(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -301,8 +301,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed2680(); - o.rules = buildUnnamed2681(); + o.providers = buildUnnamed2812(); + o.rules = buildUnnamed2813(); } buildCounterAuthentication--; return o; @@ -311,20 +311,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed2680(o.providers); - checkUnnamed2681(o.rules); + checkUnnamed2812(o.providers); + checkUnnamed2813(o.rules); } buildCounterAuthentication--; } -buildUnnamed2682() { +buildUnnamed2814() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed2682(core.List<api.AuthRequirement> o) { +checkUnnamed2814(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -337,7 +337,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed2682(); + o.requirements = buildUnnamed2814(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -349,20 +349,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed2682(o.requirements); + checkUnnamed2814(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed2683() { +buildUnnamed2815() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed2683(core.List<api.BackendRule> o) { +checkUnnamed2815(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -373,7 +373,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed2683(); + o.rules = buildUnnamed2815(); } buildCounterBackend--; return o; @@ -382,7 +382,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed2683(o.rules); + checkUnnamed2815(o.rules); } buildCounterBackend--; } @@ -400,7 +400,6 @@ o.operationDeadline = 42.0; o.pathTranslation = "foo"; o.protocol = "foo"; - o.renameTo = "foo"; o.selector = "foo"; } buildCounterBackendRule--; @@ -418,20 +417,19 @@ unittest.expect(o.operationDeadline, unittest.equals(42.0)); unittest.expect(o.pathTranslation, unittest.equals('foo')); unittest.expect(o.protocol, unittest.equals('foo')); - unittest.expect(o.renameTo, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterBackendRule--; } -buildUnnamed2684() { +buildUnnamed2816() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed2684(core.List<api.BillingDestination> o) { +checkUnnamed2816(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -442,7 +440,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed2684(); + o.consumerDestinations = buildUnnamed2816(); } buildCounterBilling--; return o; @@ -451,19 +449,19 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed2684(o.consumerDestinations); + checkUnnamed2816(o.consumerDestinations); } buildCounterBilling--; } -buildUnnamed2685() { +buildUnnamed2817() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2685(core.List<core.String> o) { +checkUnnamed2817(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -474,7 +472,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed2685(); + o.metrics = buildUnnamed2817(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -484,20 +482,20 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed2685(o.metrics); + checkUnnamed2817(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; } -buildUnnamed2686() { +buildUnnamed2818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2686(core.List<core.String> o) { +checkUnnamed2818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -509,7 +507,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed2686(); + o.members = buildUnnamed2818(); o.role = "foo"; } buildCounterBinding--; @@ -520,20 +518,20 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed2686(o.members); + checkUnnamed2818(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; } -buildUnnamed2687() { +buildUnnamed2819() { var o = new core.List<api.ConfigChange>(); o.add(buildConfigChange()); o.add(buildConfigChange()); return o; } -checkUnnamed2687(core.List<api.ConfigChange> o) { +checkUnnamed2819(core.List<api.ConfigChange> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigChange(o[0]); checkConfigChange(o[1]); @@ -544,7 +542,7 @@ var o = new api.ChangeReport(); buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - o.configChanges = buildUnnamed2687(); + o.configChanges = buildUnnamed2819(); } buildCounterChangeReport--; return o; @@ -553,19 +551,19 @@ checkChangeReport(api.ChangeReport o) { buildCounterChangeReport++; if (buildCounterChangeReport < 3) { - checkUnnamed2687(o.configChanges); + checkUnnamed2819(o.configChanges); } buildCounterChangeReport--; } -buildUnnamed2688() { +buildUnnamed2820() { var o = new core.List<api.Advice>(); o.add(buildAdvice()); o.add(buildAdvice()); return o; } -checkUnnamed2688(core.List<api.Advice> o) { +checkUnnamed2820(core.List<api.Advice> o) { unittest.expect(o, unittest.hasLength(2)); checkAdvice(o[0]); checkAdvice(o[1]); @@ -576,7 +574,7 @@ var o = new api.ConfigChange(); buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - o.advices = buildUnnamed2688(); + o.advices = buildUnnamed2820(); o.changeType = "foo"; o.element = "foo"; o.newValue = "foo"; @@ -589,7 +587,7 @@ checkConfigChange(api.ConfigChange o) { buildCounterConfigChange++; if (buildCounterConfigChange < 3) { - checkUnnamed2688(o.advices); + checkUnnamed2820(o.advices); unittest.expect(o.changeType, unittest.equals('foo')); unittest.expect(o.element, unittest.equals('foo')); unittest.expect(o.newValue, unittest.equals('foo')); @@ -640,14 +638,14 @@ buildCounterConfigRef--; } -buildUnnamed2689() { +buildUnnamed2821() { var o = new core.List<api.ConfigFile>(); o.add(buildConfigFile()); o.add(buildConfigFile()); return o; } -checkUnnamed2689(core.List<api.ConfigFile> o) { +checkUnnamed2821(core.List<api.ConfigFile> o) { unittest.expect(o, unittest.hasLength(2)); checkConfigFile(o[0]); checkConfigFile(o[1]); @@ -658,7 +656,7 @@ var o = new api.ConfigSource(); buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - o.files = buildUnnamed2689(); + o.files = buildUnnamed2821(); o.id = "foo"; } buildCounterConfigSource--; @@ -668,20 +666,20 @@ checkConfigSource(api.ConfigSource o) { buildCounterConfigSource++; if (buildCounterConfigSource < 3) { - checkUnnamed2689(o.files); + checkUnnamed2821(o.files); unittest.expect(o.id, unittest.equals('foo')); } buildCounterConfigSource--; } -buildUnnamed2690() { +buildUnnamed2822() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed2690(core.List<api.ContextRule> o) { +checkUnnamed2822(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -692,7 +690,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed2690(); + o.rules = buildUnnamed2822(); } buildCounterContext--; return o; @@ -701,58 +699,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed2690(o.rules); + checkUnnamed2822(o.rules); } buildCounterContext--; } -buildUnnamed2691() { +buildUnnamed2823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2691(core.List<core.String> o) { +checkUnnamed2823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2692() { +buildUnnamed2824() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2692(core.List<core.String> o) { +checkUnnamed2824(core.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() { +buildUnnamed2825() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2693(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')); } -buildUnnamed2694() { +buildUnnamed2826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2694(core.List<core.String> o) { +checkUnnamed2826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -763,10 +761,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed2691(); - o.allowedResponseExtensions = buildUnnamed2692(); - o.provided = buildUnnamed2693(); - o.requested = buildUnnamed2694(); + o.allowedRequestExtensions = buildUnnamed2823(); + o.allowedResponseExtensions = buildUnnamed2824(); + o.provided = buildUnnamed2825(); + o.requested = buildUnnamed2826(); o.selector = "foo"; } buildCounterContextRule--; @@ -776,10 +774,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed2691(o.allowedRequestExtensions); - checkUnnamed2692(o.allowedResponseExtensions); - checkUnnamed2693(o.provided); - checkUnnamed2694(o.requested); + checkUnnamed2823(o.allowedRequestExtensions); + checkUnnamed2824(o.allowedResponseExtensions); + checkUnnamed2825(o.provided); + checkUnnamed2826(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -804,27 +802,27 @@ buildCounterControl--; } -buildUnnamed2695() { +buildUnnamed2827() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed2695(core.List<api.CustomErrorRule> o) { +checkUnnamed2827(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed2696() { +buildUnnamed2828() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2696(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')); @@ -835,8 +833,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed2695(); - o.types = buildUnnamed2696(); + o.rules = buildUnnamed2827(); + o.types = buildUnnamed2828(); } buildCounterCustomError--; return o; @@ -845,8 +843,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed2695(o.rules); - checkUnnamed2696(o.types); + checkUnnamed2827(o.rules); + checkUnnamed2828(o.types); } buildCounterCustomError--; } @@ -931,25 +929,6 @@ buildCounterDiagnostic--; } -core.int buildCounterDisableServiceRequest = 0; -buildDisableServiceRequest() { - var o = new api.DisableServiceRequest(); - buildCounterDisableServiceRequest++; - if (buildCounterDisableServiceRequest < 3) { - o.consumerId = "foo"; - } - buildCounterDisableServiceRequest--; - return o; -} - -checkDisableServiceRequest(api.DisableServiceRequest o) { - buildCounterDisableServiceRequest++; - if (buildCounterDisableServiceRequest < 3) { - unittest.expect(o.consumerId, unittest.equals('foo')); - } - buildCounterDisableServiceRequest--; -} - core.int buildCounterDisableServiceResponse = 0; buildDisableServiceResponse() { var o = new api.DisableServiceResponse(); @@ -965,27 +944,27 @@ buildCounterDisableServiceResponse--; } -buildUnnamed2697() { +buildUnnamed2829() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2697(core.List<api.Page> o) { +checkUnnamed2829(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed2698() { +buildUnnamed2830() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed2698(core.List<api.DocumentationRule> o) { +checkUnnamed2830(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -998,8 +977,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed2697(); - o.rules = buildUnnamed2698(); + o.pages = buildUnnamed2829(); + o.rules = buildUnnamed2830(); o.serviceRootUrl = "foo"; o.summary = "foo"; } @@ -1012,8 +991,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed2697(o.pages); - checkUnnamed2698(o.rules); + checkUnnamed2829(o.pages); + checkUnnamed2830(o.rules); unittest.expect(o.serviceRootUrl, unittest.equals('foo')); unittest.expect(o.summary, unittest.equals('foo')); } @@ -1077,27 +1056,14 @@ buildCounterEnableServiceResponse--; } -buildUnnamed2699() { +buildUnnamed2831() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2699(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed2700() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed2700(core.List<core.String> 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')); @@ -1108,9 +1074,8 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed2699(); + o.aliases = buildUnnamed2831(); o.allowCors = true; - o.features = buildUnnamed2700(); o.name = "foo"; o.target = "foo"; } @@ -1121,36 +1086,35 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed2699(o.aliases); + checkUnnamed2831(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed2700(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed2701() { +buildUnnamed2832() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed2701(core.List<api.EnumValue> o) { +checkUnnamed2832(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed2702() { +buildUnnamed2833() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2702(core.List<api.Option> o) { +checkUnnamed2833(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1161,9 +1125,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed2701(); + o.enumvalue = buildUnnamed2832(); o.name = "foo"; - o.options = buildUnnamed2702(); + o.options = buildUnnamed2833(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1174,23 +1138,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed2701(o.enumvalue); + checkUnnamed2832(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2702(o.options); + checkUnnamed2833(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed2703() { +buildUnnamed2834() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2703(core.List<api.Option> o) { +checkUnnamed2834(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1203,7 +1167,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed2703(); + o.options = buildUnnamed2834(); } buildCounterEnumValue--; return o; @@ -1214,7 +1178,7 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed2703(o.options); + checkUnnamed2834(o.options); } buildCounterEnumValue--; } @@ -1244,14 +1208,14 @@ buildCounterExpr--; } -buildUnnamed2704() { +buildUnnamed2835() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2704(core.List<api.Option> o) { +checkUnnamed2835(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1269,7 +1233,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed2704(); + o.options = buildUnnamed2835(); o.packed = true; o.typeUrl = "foo"; } @@ -1287,7 +1251,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed2704(o.options); + checkUnnamed2835(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -1315,7 +1279,7 @@ buildCounterFlowErrorDetails--; } -buildUnnamed2705() { +buildUnnamed2836() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1330,7 +1294,7 @@ return o; } -checkUnnamed2705(core.Map<core.String, core.Object> o) { +checkUnnamed2836(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)); @@ -1344,7 +1308,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2706() { +buildUnnamed2837() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1359,7 +1323,7 @@ return o; } -checkUnnamed2706(core.Map<core.String, core.Object> o) { +checkUnnamed2837(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)); @@ -1378,8 +1342,8 @@ var o = new api.GenerateConfigReportRequest(); buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - o.newConfig = buildUnnamed2705(); - o.oldConfig = buildUnnamed2706(); + o.newConfig = buildUnnamed2836(); + o.oldConfig = buildUnnamed2837(); } buildCounterGenerateConfigReportRequest--; return o; @@ -1388,33 +1352,33 @@ checkGenerateConfigReportRequest(api.GenerateConfigReportRequest o) { buildCounterGenerateConfigReportRequest++; if (buildCounterGenerateConfigReportRequest < 3) { - checkUnnamed2705(o.newConfig); - checkUnnamed2706(o.oldConfig); + checkUnnamed2836(o.newConfig); + checkUnnamed2837(o.oldConfig); } buildCounterGenerateConfigReportRequest--; } -buildUnnamed2707() { +buildUnnamed2838() { var o = new core.List<api.ChangeReport>(); o.add(buildChangeReport()); o.add(buildChangeReport()); return o; } -checkUnnamed2707(core.List<api.ChangeReport> o) { +checkUnnamed2838(core.List<api.ChangeReport> o) { unittest.expect(o, unittest.hasLength(2)); checkChangeReport(o[0]); checkChangeReport(o[1]); } -buildUnnamed2708() { +buildUnnamed2839() { var o = new core.List<api.Diagnostic>(); o.add(buildDiagnostic()); o.add(buildDiagnostic()); return o; } -checkUnnamed2708(core.List<api.Diagnostic> o) { +checkUnnamed2839(core.List<api.Diagnostic> o) { unittest.expect(o, unittest.hasLength(2)); checkDiagnostic(o[0]); checkDiagnostic(o[1]); @@ -1425,8 +1389,8 @@ var o = new api.GenerateConfigReportResponse(); buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - o.changeReports = buildUnnamed2707(); - o.diagnostics = buildUnnamed2708(); + o.changeReports = buildUnnamed2838(); + o.diagnostics = buildUnnamed2839(); o.id = "foo"; o.serviceName = "foo"; } @@ -1437,8 +1401,8 @@ checkGenerateConfigReportResponse(api.GenerateConfigReportResponse o) { buildCounterGenerateConfigReportResponse++; if (buildCounterGenerateConfigReportResponse < 3) { - checkUnnamed2707(o.changeReports); - checkUnnamed2708(o.diagnostics); + checkUnnamed2838(o.changeReports); + checkUnnamed2839(o.diagnostics); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.serviceName, unittest.equals('foo')); } @@ -1483,14 +1447,14 @@ buildCounterGetPolicyOptions--; } -buildUnnamed2709() { +buildUnnamed2840() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed2709(core.List<api.HttpRule> o) { +checkUnnamed2840(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1502,7 +1466,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed2709(); + o.rules = buildUnnamed2840(); } buildCounterHttp--; return o; @@ -1512,19 +1476,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed2709(o.rules); + checkUnnamed2840(o.rules); } buildCounterHttp--; } -buildUnnamed2710() { +buildUnnamed2841() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed2710(core.List<api.HttpRule> o) { +checkUnnamed2841(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1535,7 +1499,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed2710(); + o.additionalBindings = buildUnnamed2841(); o.allowHalfDuplex = true; o.body = "foo"; o.custom = buildCustomHttpPattern(); @@ -1554,7 +1518,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed2710(o.additionalBindings); + checkUnnamed2841(o.additionalBindings); unittest.expect(o.allowHalfDuplex, unittest.isTrue); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); @@ -1615,14 +1579,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed2711() { +buildUnnamed2842() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2711(core.List<api.Operation> o) { +checkUnnamed2842(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1634,7 +1598,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2711(); + o.operations = buildUnnamed2842(); } buildCounterListOperationsResponse--; return o; @@ -1644,19 +1608,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2711(o.operations); + checkUnnamed2842(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2712() { +buildUnnamed2843() { var o = new core.List<api.Service>(); o.add(buildService()); o.add(buildService()); return o; } -checkUnnamed2712(core.List<api.Service> o) { +checkUnnamed2843(core.List<api.Service> o) { unittest.expect(o, unittest.hasLength(2)); checkService(o[0]); checkService(o[1]); @@ -1668,7 +1632,7 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { o.nextPageToken = "foo"; - o.serviceConfigs = buildUnnamed2712(); + o.serviceConfigs = buildUnnamed2843(); } buildCounterListServiceConfigsResponse--; return o; @@ -1678,19 +1642,19 @@ buildCounterListServiceConfigsResponse++; if (buildCounterListServiceConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2712(o.serviceConfigs); + checkUnnamed2843(o.serviceConfigs); } buildCounterListServiceConfigsResponse--; } -buildUnnamed2713() { +buildUnnamed2844() { var o = new core.List<api.Rollout>(); o.add(buildRollout()); o.add(buildRollout()); return o; } -checkUnnamed2713(core.List<api.Rollout> o) { +checkUnnamed2844(core.List<api.Rollout> o) { unittest.expect(o, unittest.hasLength(2)); checkRollout(o[0]); checkRollout(o[1]); @@ -1702,7 +1666,7 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { o.nextPageToken = "foo"; - o.rollouts = buildUnnamed2713(); + o.rollouts = buildUnnamed2844(); } buildCounterListServiceRolloutsResponse--; return o; @@ -1712,19 +1676,19 @@ buildCounterListServiceRolloutsResponse++; if (buildCounterListServiceRolloutsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2713(o.rollouts); + checkUnnamed2844(o.rollouts); } buildCounterListServiceRolloutsResponse--; } -buildUnnamed2714() { +buildUnnamed2845() { var o = new core.List<api.ManagedService>(); o.add(buildManagedService()); o.add(buildManagedService()); return o; } -checkUnnamed2714(core.List<api.ManagedService> o) { +checkUnnamed2845(core.List<api.ManagedService> o) { unittest.expect(o, unittest.hasLength(2)); checkManagedService(o[0]); checkManagedService(o[1]); @@ -1736,7 +1700,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed2714(); + o.services = buildUnnamed2845(); } buildCounterListServicesResponse--; return o; @@ -1746,19 +1710,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2714(o.services); + checkUnnamed2845(o.services); } buildCounterListServicesResponse--; } -buildUnnamed2715() { +buildUnnamed2846() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2715(core.List<api.LabelDescriptor> o) { +checkUnnamed2846(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1771,7 +1735,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2715(); + o.labels = buildUnnamed2846(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1783,33 +1747,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2715(o.labels); + checkUnnamed2846(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed2716() { +buildUnnamed2847() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed2716(core.List<api.LoggingDestination> o) { +checkUnnamed2847(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed2717() { +buildUnnamed2848() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed2717(core.List<api.LoggingDestination> o) { +checkUnnamed2848(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1820,8 +1784,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed2716(); - o.producerDestinations = buildUnnamed2717(); + o.consumerDestinations = buildUnnamed2847(); + o.producerDestinations = buildUnnamed2848(); } buildCounterLogging--; return o; @@ -1830,20 +1794,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed2716(o.consumerDestinations); - checkUnnamed2717(o.producerDestinations); + checkUnnamed2847(o.consumerDestinations); + checkUnnamed2848(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed2718() { +buildUnnamed2849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2718(core.List<core.String> 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')); @@ -1854,7 +1818,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed2718(); + o.logs = buildUnnamed2849(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1864,7 +1828,7 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed2718(o.logs); + checkUnnamed2849(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; @@ -1891,14 +1855,14 @@ buildCounterManagedService--; } -buildUnnamed2719() { +buildUnnamed2850() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2719(core.List<api.Option> o) { +checkUnnamed2850(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1910,7 +1874,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed2719(); + o.options = buildUnnamed2850(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1925,7 +1889,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2719(o.options); + checkUnnamed2850(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1935,27 +1899,27 @@ buildCounterMethod--; } -buildUnnamed2720() { +buildUnnamed2851() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2720(core.List<api.LabelDescriptor> o) { +checkUnnamed2851(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed2721() { +buildUnnamed2852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2721(core.List<core.String> 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')); @@ -1968,11 +1932,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2720(); + o.labels = buildUnnamed2851(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed2721(); + o.monitoredResourceTypes = buildUnnamed2852(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -1987,11 +1951,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2720(o.labels); + checkUnnamed2851(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed2721(o.monitoredResourceTypes); + checkUnnamed2852(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -2023,14 +1987,14 @@ buildCounterMetricDescriptorMetadata--; } -buildUnnamed2722() { +buildUnnamed2853() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2722(core.Map<core.String, core.String> o) { +checkUnnamed2853(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')); @@ -2041,7 +2005,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed2722(); + o.metricCosts = buildUnnamed2853(); o.selector = "foo"; } buildCounterMetricRule--; @@ -2051,7 +2015,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed2722(o.metricCosts); + checkUnnamed2853(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -2078,14 +2042,14 @@ buildCounterMixin--; } -buildUnnamed2723() { +buildUnnamed2854() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed2723(core.List<api.LabelDescriptor> o) { +checkUnnamed2854(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2098,7 +2062,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed2723(); + o.labels = buildUnnamed2854(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -2112,7 +2076,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed2723(o.labels); + checkUnnamed2854(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2120,27 +2084,27 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed2724() { +buildUnnamed2855() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed2724(core.List<api.MonitoringDestination> o) { +checkUnnamed2855(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed2725() { +buildUnnamed2856() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed2725(core.List<api.MonitoringDestination> o) { +checkUnnamed2856(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -2151,8 +2115,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed2724(); - o.producerDestinations = buildUnnamed2725(); + o.consumerDestinations = buildUnnamed2855(); + o.producerDestinations = buildUnnamed2856(); } buildCounterMonitoring--; return o; @@ -2161,20 +2125,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed2724(o.consumerDestinations); - checkUnnamed2725(o.producerDestinations); + checkUnnamed2855(o.consumerDestinations); + checkUnnamed2856(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed2726() { +buildUnnamed2857() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2726(core.List<core.String> 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')); @@ -2185,7 +2149,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed2726(); + o.metrics = buildUnnamed2857(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -2195,7 +2159,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed2726(o.metrics); + checkUnnamed2857(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -2220,7 +2184,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed2727() { +buildUnnamed2858() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2235,7 +2199,7 @@ return o; } -checkUnnamed2727(core.Map<core.String, core.Object> o) { +checkUnnamed2858(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)); @@ -2249,7 +2213,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2728() { +buildUnnamed2859() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2264,7 +2228,7 @@ return o; } -checkUnnamed2728(core.Map<core.String, core.Object> o) { +checkUnnamed2859(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)); @@ -2285,9 +2249,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2727(); + o.metadata = buildUnnamed2858(); o.name = "foo"; - o.response = buildUnnamed2728(); + o.response = buildUnnamed2859(); } buildCounterOperation--; return o; @@ -2298,34 +2262,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2727(o.metadata); + checkUnnamed2858(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2728(o.response); + checkUnnamed2859(o.response); } buildCounterOperation--; } -buildUnnamed2729() { +buildUnnamed2860() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2729(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')); } -buildUnnamed2730() { +buildUnnamed2861() { var o = new core.List<api.Step>(); o.add(buildStep()); o.add(buildStep()); return o; } -checkUnnamed2730(core.List<api.Step> o) { +checkUnnamed2861(core.List<api.Step> o) { unittest.expect(o, unittest.hasLength(2)); checkStep(o[0]); checkStep(o[1]); @@ -2337,9 +2301,9 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { o.progressPercentage = 42; - o.resourceNames = buildUnnamed2729(); + o.resourceNames = buildUnnamed2860(); o.startTime = "foo"; - o.steps = buildUnnamed2730(); + o.steps = buildUnnamed2861(); } buildCounterOperationMetadata--; return o; @@ -2349,14 +2313,14 @@ buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { unittest.expect(o.progressPercentage, unittest.equals(42)); - checkUnnamed2729(o.resourceNames); + checkUnnamed2860(o.resourceNames); unittest.expect(o.startTime, unittest.equals('foo')); - checkUnnamed2730(o.steps); + checkUnnamed2861(o.steps); } buildCounterOperationMetadata--; } -buildUnnamed2731() { +buildUnnamed2862() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2371,7 +2335,7 @@ return o; } -checkUnnamed2731(core.Map<core.String, core.Object> o) { +checkUnnamed2862(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)); @@ -2391,7 +2355,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed2731(); + o.value = buildUnnamed2862(); } buildCounterOption--; return o; @@ -2401,19 +2365,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2731(o.value); + checkUnnamed2862(o.value); } buildCounterOption--; } -buildUnnamed2732() { +buildUnnamed2863() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2732(core.List<api.Page> o) { +checkUnnamed2863(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2426,7 +2390,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed2732(); + o.subpages = buildUnnamed2863(); } buildCounterPage--; return o; @@ -2437,32 +2401,32 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2732(o.subpages); + checkUnnamed2863(o.subpages); } buildCounterPage--; } -buildUnnamed2733() { +buildUnnamed2864() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed2733(core.List<api.AuditConfig> o) { +checkUnnamed2864(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed2734() { +buildUnnamed2865() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed2734(core.List<api.Binding> o) { +checkUnnamed2865(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -2473,8 +2437,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed2733(); - o.bindings = buildUnnamed2734(); + o.auditConfigs = buildUnnamed2864(); + o.bindings = buildUnnamed2865(); o.etag = "foo"; o.version = 42; } @@ -2485,35 +2449,35 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed2733(o.auditConfigs); - checkUnnamed2734(o.bindings); + checkUnnamed2864(o.auditConfigs); + checkUnnamed2865(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed2735() { +buildUnnamed2866() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed2735(core.List<api.QuotaLimit> o) { +checkUnnamed2866(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed2736() { +buildUnnamed2867() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed2736(core.List<api.MetricRule> o) { +checkUnnamed2867(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2524,8 +2488,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed2735(); - o.metricRules = buildUnnamed2736(); + o.limits = buildUnnamed2866(); + o.metricRules = buildUnnamed2867(); } buildCounterQuota--; return o; @@ -2534,20 +2498,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed2735(o.limits); - checkUnnamed2736(o.metricRules); + checkUnnamed2866(o.limits); + checkUnnamed2867(o.metricRules); } buildCounterQuota--; } -buildUnnamed2737() { +buildUnnamed2868() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2737(core.Map<core.String, core.String> o) { +checkUnnamed2868(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')); @@ -2567,7 +2531,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed2737(); + o.values = buildUnnamed2868(); } buildCounterQuotaLimit--; return o; @@ -2585,11 +2549,32 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed2737(o.values); + checkUnnamed2868(o.values); } buildCounterQuotaLimit--; } +core.int buildCounterResourceReference = 0; +buildResourceReference() { + var o = new api.ResourceReference(); + buildCounterResourceReference++; + if (buildCounterResourceReference < 3) { + o.childType = "foo"; + o.type = "foo"; + } + buildCounterResourceReference--; + return o; +} + +checkResourceReference(api.ResourceReference o) { + buildCounterResourceReference++; + if (buildCounterResourceReference < 3) { + unittest.expect(o.childType, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterResourceReference--; +} + core.int buildCounterRollout = 0; buildRollout() { var o = new api.Rollout(); @@ -2621,105 +2606,105 @@ buildCounterRollout--; } -buildUnnamed2738() { +buildUnnamed2869() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed2738(core.List<api.Api> o) { +checkUnnamed2869(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed2739() { +buildUnnamed2870() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed2739(core.List<api.Endpoint> o) { +checkUnnamed2870(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed2740() { +buildUnnamed2871() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed2740(core.List<api.Enum> o) { +checkUnnamed2871(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed2741() { +buildUnnamed2872() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed2741(core.List<api.LogDescriptor> o) { +checkUnnamed2872(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed2742() { +buildUnnamed2873() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed2742(core.List<api.MetricDescriptor> o) { +checkUnnamed2873(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed2743() { +buildUnnamed2874() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed2743(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed2874(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed2744() { +buildUnnamed2875() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2744(core.List<api.Type> o) { +checkUnnamed2875(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed2745() { +buildUnnamed2876() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed2745(core.List<api.Type> o) { +checkUnnamed2876(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2730,7 +2715,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed2738(); + o.apis = buildUnnamed2869(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2739,23 +2724,23 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed2739(); - o.enums = buildUnnamed2740(); + o.endpoints = buildUnnamed2870(); + o.enums = buildUnnamed2871(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed2741(); - o.metrics = buildUnnamed2742(); - o.monitoredResources = buildUnnamed2743(); + o.logs = buildUnnamed2872(); + o.metrics = buildUnnamed2873(); + o.monitoredResources = buildUnnamed2874(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed2744(); + o.systemTypes = buildUnnamed2875(); o.title = "foo"; - o.types = buildUnnamed2745(); + o.types = buildUnnamed2876(); o.usage = buildUsage(); } buildCounterService--; @@ -2765,7 +2750,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed2738(o.apis); + checkUnnamed2869(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2774,23 +2759,23 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed2739(o.endpoints); - checkUnnamed2740(o.enums); + checkUnnamed2870(o.endpoints); + checkUnnamed2871(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed2741(o.logs); - checkUnnamed2742(o.metrics); - checkUnnamed2743(o.monitoredResources); + checkUnnamed2872(o.logs); + checkUnnamed2873(o.metrics); + checkUnnamed2874(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed2744(o.systemTypes); + checkUnnamed2875(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed2745(o.types); + checkUnnamed2876(o.types); checkUsage(o.usage); } buildCounterService--; @@ -2859,7 +2844,7 @@ buildCounterSourceContext--; } -buildUnnamed2746() { +buildUnnamed2877() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2874,7 +2859,7 @@ return o; } -checkUnnamed2746(core.Map<core.String, core.Object> o) { +checkUnnamed2877(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)); @@ -2888,17 +2873,17 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed2747() { +buildUnnamed2878() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2746()); - o.add(buildUnnamed2746()); + o.add(buildUnnamed2877()); + o.add(buildUnnamed2877()); return o; } -checkUnnamed2747(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2878(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2746(o[0]); - checkUnnamed2746(o[1]); + checkUnnamed2877(o[0]); + checkUnnamed2877(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2906,7 +2891,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed2747(); + o.sourceFiles = buildUnnamed2878(); } buildCounterSourceInfo--; return o; @@ -2915,12 +2900,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed2747(o.sourceFiles); + checkUnnamed2878(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed2748() { +buildUnnamed2879() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2935,7 +2920,7 @@ return o; } -checkUnnamed2748(core.Map<core.String, core.Object> o) { +checkUnnamed2879(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)); @@ -2949,17 +2934,17 @@ unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed2749() { +buildUnnamed2880() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2748()); - o.add(buildUnnamed2748()); + o.add(buildUnnamed2879()); + o.add(buildUnnamed2879()); return o; } -checkUnnamed2749(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2880(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2748(o[0]); - checkUnnamed2748(o[1]); + checkUnnamed2879(o[0]); + checkUnnamed2879(o[1]); } core.int buildCounterStatus = 0; @@ -2968,7 +2953,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2749(); + o.details = buildUnnamed2880(); o.message = "foo"; } buildCounterStatus--; @@ -2979,7 +2964,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2749(o.details); + checkUnnamed2880(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -3069,14 +3054,14 @@ buildCounterSystemParameter--; } -buildUnnamed2750() { +buildUnnamed2881() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed2750(core.List<api.SystemParameter> o) { +checkUnnamed2881(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -3087,7 +3072,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed2750(); + o.parameters = buildUnnamed2881(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -3097,20 +3082,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed2750(o.parameters); + checkUnnamed2881(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed2751() { +buildUnnamed2882() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed2751(core.List<api.SystemParameterRule> o) { +checkUnnamed2882(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -3121,7 +3106,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed2751(); + o.rules = buildUnnamed2882(); } buildCounterSystemParameters--; return o; @@ -3130,19 +3115,19 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed2751(o.rules); + checkUnnamed2882(o.rules); } buildCounterSystemParameters--; } -buildUnnamed2752() { +buildUnnamed2883() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2752(core.List<core.String> 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')); @@ -3153,7 +3138,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed2752(); + o.permissions = buildUnnamed2883(); } buildCounterTestIamPermissionsRequest--; return o; @@ -3162,19 +3147,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed2752(o.permissions); + checkUnnamed2883(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed2753() { +buildUnnamed2884() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2753(core.List<core.String> 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')); @@ -3185,7 +3170,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed2753(); + o.permissions = buildUnnamed2884(); } buildCounterTestIamPermissionsResponse--; return o; @@ -3194,19 +3179,19 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed2753(o.permissions); + checkUnnamed2884(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed2754() { +buildUnnamed2885() { var o = new core.Map<core.String, core.double>(); o["x"] = 42.0; o["y"] = 42.0; return o; } -checkUnnamed2754(core.Map<core.String, core.double> o) { +checkUnnamed2885(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)); @@ -3217,7 +3202,7 @@ var o = new api.TrafficPercentStrategy(); buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - o.percentages = buildUnnamed2754(); + o.percentages = buildUnnamed2885(); } buildCounterTrafficPercentStrategy--; return o; @@ -3226,45 +3211,45 @@ checkTrafficPercentStrategy(api.TrafficPercentStrategy o) { buildCounterTrafficPercentStrategy++; if (buildCounterTrafficPercentStrategy < 3) { - checkUnnamed2754(o.percentages); + checkUnnamed2885(o.percentages); } buildCounterTrafficPercentStrategy--; } -buildUnnamed2755() { +buildUnnamed2886() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed2755(core.List<api.Field> o) { +checkUnnamed2886(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed2756() { +buildUnnamed2887() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2756(core.List<core.String> 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')); } -buildUnnamed2757() { +buildUnnamed2888() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed2757(core.List<api.Option> o) { +checkUnnamed2888(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -3275,10 +3260,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed2755(); + o.fields = buildUnnamed2886(); o.name = "foo"; - o.oneofs = buildUnnamed2756(); - o.options = buildUnnamed2757(); + o.oneofs = buildUnnamed2887(); + o.options = buildUnnamed2888(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -3289,10 +3274,10 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed2755(o.fields); + checkUnnamed2886(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2756(o.oneofs); - checkUnnamed2757(o.options); + checkUnnamed2887(o.oneofs); + checkUnnamed2888(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } @@ -3318,27 +3303,27 @@ buildCounterUndeleteServiceResponse--; } -buildUnnamed2758() { +buildUnnamed2889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2758(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')); } -buildUnnamed2759() { +buildUnnamed2890() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed2759(core.List<api.UsageRule> o) { +checkUnnamed2890(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -3350,8 +3335,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed2758(); - o.rules = buildUnnamed2759(); + o.requirements = buildUnnamed2889(); + o.rules = buildUnnamed2890(); o.serviceIdentity = buildServiceIdentity(); } buildCounterUsage--; @@ -3362,8 +3347,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed2758(o.requirements); - checkUnnamed2759(o.rules); + checkUnnamed2889(o.requirements); + checkUnnamed2890(o.rules); checkServiceIdentity(o.serviceIdentity); } buildCounterUsage--; @@ -3601,14 +3586,6 @@ }); }); - unittest.group("obj-schema-DisableServiceRequest", () { - unittest.test("to-json--from-json", () { - var o = buildDisableServiceRequest(); - var od = new api.DisableServiceRequest.fromJson(o.toJson()); - checkDisableServiceRequest(od); - }); - }); - unittest.group("obj-schema-DisableServiceResponse", () { unittest.test("to-json--from-json", () { var o = buildDisableServiceResponse(); @@ -3953,6 +3930,14 @@ }); }); + unittest.group("obj-schema-ResourceReference", () { + unittest.test("to-json--from-json", () { + var o = buildResourceReference(); + var od = new api.ResourceReference.fromJson(o.toJson()); + checkResourceReference(od); + }); + }); + unittest.group("obj-schema-Rollout", () { unittest.test("to-json--from-json", () { var o = buildRollout(); @@ -4172,8 +4157,8 @@ new api.ServicemanagementApi(mock).operations; var arg_filter = "foo"; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4207,10 +4192,10 @@ } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4223,8 +4208,8 @@ .list( filter: arg_filter, name: arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -4339,69 +4324,6 @@ }))); }); - unittest.test("method--disable", () { - var mock = new HttpServerMock(); - api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; - var arg_request = buildDisableServiceRequest(); - var arg_serviceName = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.DisableServiceRequest.fromJson(json); - checkDisableServiceRequest(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 + 12), - unittest.equals("v1/services/")); - pathOffset += 12; - index = path.indexOf(":disable", pathOffset); - unittest.expect(index >= 0, unittest.isTrue); - subPart = - core.Uri.decodeQueryComponent(path.substring(pathOffset, index)); - pathOffset = index; - unittest.expect(subPart, unittest.equals("$arg_serviceName")); - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals(":disable")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["fields"].first, unittest.equals(arg_$fields)); - - 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 - .disable(arg_request, arg_serviceName, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkOperation(response); - }))); - }); - unittest.test("method--enable", () { var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; @@ -4575,8 +4497,8 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; var arg_serviceName = "foo"; - var arg_configId = "foo"; var arg_view = "foo"; + var arg_configId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4617,9 +4539,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["configId"].first, unittest.equals(arg_configId)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4630,7 +4552,7 @@ }), true); res .getConfig(arg_serviceName, - configId: arg_configId, view: arg_view, $fields: arg_$fields) + view: arg_view, configId: arg_configId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkService(response); }))); @@ -4694,8 +4616,8 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServicemanagementApi(mock).services; - var arg_producerProjectId = "foo"; var arg_consumerId = "foo"; + var arg_producerProjectId = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_$fields = "foo"; @@ -4729,10 +4651,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["producerProjectId"].first, - unittest.equals(arg_producerProjectId)); unittest.expect( queryMap["consumerId"].first, unittest.equals(arg_consumerId)); + unittest.expect(queryMap["producerProjectId"].first, + unittest.equals(arg_producerProjectId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), @@ -4747,8 +4669,8 @@ }), true); res .list( - producerProjectId: arg_producerProjectId, consumerId: arg_consumerId, + producerProjectId: arg_producerProjectId, pageToken: arg_pageToken, pageSize: arg_pageSize, $fields: arg_$fields) @@ -5064,8 +4986,8 @@ api.ServicesConfigsResourceApi res = new api.ServicemanagementApi(mock).services.configs; var arg_serviceName = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5106,10 +5028,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5120,8 +5042,8 @@ }), true); res .list(arg_serviceName, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServiceConfigsResponse(response); @@ -5498,8 +5420,8 @@ new api.ServicemanagementApi(mock).services.rollouts; var arg_serviceName = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5542,9 +5464,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5556,8 +5478,8 @@ res .list(arg_serviceName, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServiceRolloutsResponse(response);
diff --git a/generated/googleapis/test/servicenetworking/v1_test.dart b/generated/googleapis/test/servicenetworking/v1_test.dart index 1578f2e..48f7d28 100644 --- a/generated/googleapis/test/servicenetworking/v1_test.dart +++ b/generated/googleapis/test/servicenetworking/v1_test.dart
@@ -50,6 +50,103 @@ return new http.StreamedResponse(stream, status, headers: headers); } +core.int buildCounterAddDnsRecordSetMetadata = 0; +buildAddDnsRecordSetMetadata() { + var o = new api.AddDnsRecordSetMetadata(); + buildCounterAddDnsRecordSetMetadata++; + if (buildCounterAddDnsRecordSetMetadata < 3) {} + buildCounterAddDnsRecordSetMetadata--; + return o; +} + +checkAddDnsRecordSetMetadata(api.AddDnsRecordSetMetadata o) { + buildCounterAddDnsRecordSetMetadata++; + if (buildCounterAddDnsRecordSetMetadata < 3) {} + buildCounterAddDnsRecordSetMetadata--; +} + +core.int buildCounterAddDnsRecordSetRequest = 0; +buildAddDnsRecordSetRequest() { + var o = new api.AddDnsRecordSetRequest(); + buildCounterAddDnsRecordSetRequest++; + if (buildCounterAddDnsRecordSetRequest < 3) { + o.consumerNetwork = "foo"; + o.dnsRecordSet = buildDnsRecordSet(); + o.zone = "foo"; + } + buildCounterAddDnsRecordSetRequest--; + return o; +} + +checkAddDnsRecordSetRequest(api.AddDnsRecordSetRequest o) { + buildCounterAddDnsRecordSetRequest++; + if (buildCounterAddDnsRecordSetRequest < 3) { + unittest.expect(o.consumerNetwork, unittest.equals('foo')); + checkDnsRecordSet(o.dnsRecordSet); + unittest.expect(o.zone, unittest.equals('foo')); + } + buildCounterAddDnsRecordSetRequest--; +} + +core.int buildCounterAddDnsZoneMetadata = 0; +buildAddDnsZoneMetadata() { + var o = new api.AddDnsZoneMetadata(); + buildCounterAddDnsZoneMetadata++; + if (buildCounterAddDnsZoneMetadata < 3) {} + buildCounterAddDnsZoneMetadata--; + return o; +} + +checkAddDnsZoneMetadata(api.AddDnsZoneMetadata o) { + buildCounterAddDnsZoneMetadata++; + if (buildCounterAddDnsZoneMetadata < 3) {} + buildCounterAddDnsZoneMetadata--; +} + +core.int buildCounterAddDnsZoneRequest = 0; +buildAddDnsZoneRequest() { + var o = new api.AddDnsZoneRequest(); + buildCounterAddDnsZoneRequest++; + if (buildCounterAddDnsZoneRequest < 3) { + o.consumerNetwork = "foo"; + o.dnsSuffix = "foo"; + o.name = "foo"; + } + buildCounterAddDnsZoneRequest--; + return o; +} + +checkAddDnsZoneRequest(api.AddDnsZoneRequest o) { + buildCounterAddDnsZoneRequest++; + if (buildCounterAddDnsZoneRequest < 3) { + unittest.expect(o.consumerNetwork, unittest.equals('foo')); + unittest.expect(o.dnsSuffix, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterAddDnsZoneRequest--; +} + +core.int buildCounterAddDnsZoneResponse = 0; +buildAddDnsZoneResponse() { + var o = new api.AddDnsZoneResponse(); + buildCounterAddDnsZoneResponse++; + if (buildCounterAddDnsZoneResponse < 3) { + o.consumerPeeringZone = buildDnsZone(); + o.producerPrivateZone = buildDnsZone(); + } + buildCounterAddDnsZoneResponse--; + return o; +} + +checkAddDnsZoneResponse(api.AddDnsZoneResponse o) { + buildCounterAddDnsZoneResponse++; + if (buildCounterAddDnsZoneResponse < 3) { + checkDnsZone(o.consumerPeeringZone); + checkDnsZone(o.producerPrivateZone); + } + buildCounterAddDnsZoneResponse--; +} + core.int buildCounterAddRolesMetadata = 0; buildAddRolesMetadata() { var o = new api.AddRolesMetadata(); @@ -65,14 +162,14 @@ buildCounterAddRolesMetadata--; } -buildUnnamed392() { +buildUnnamed410() { var o = new core.List<api.PolicyBinding>(); o.add(buildPolicyBinding()); o.add(buildPolicyBinding()); return o; } -checkUnnamed392(core.List<api.PolicyBinding> o) { +checkUnnamed410(core.List<api.PolicyBinding> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBinding(o[0]); checkPolicyBinding(o[1]); @@ -84,7 +181,7 @@ buildCounterAddRolesRequest++; if (buildCounterAddRolesRequest < 3) { o.consumerNetwork = "foo"; - o.policyBinding = buildUnnamed392(); + o.policyBinding = buildUnnamed410(); } buildCounterAddRolesRequest--; return o; @@ -94,19 +191,19 @@ buildCounterAddRolesRequest++; if (buildCounterAddRolesRequest < 3) { unittest.expect(o.consumerNetwork, unittest.equals('foo')); - checkUnnamed392(o.policyBinding); + checkUnnamed410(o.policyBinding); } buildCounterAddRolesRequest--; } -buildUnnamed393() { +buildUnnamed411() { var o = new core.List<api.PolicyBinding>(); o.add(buildPolicyBinding()); o.add(buildPolicyBinding()); return o; } -checkUnnamed393(core.List<api.PolicyBinding> o) { +checkUnnamed411(core.List<api.PolicyBinding> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBinding(o[0]); checkPolicyBinding(o[1]); @@ -117,7 +214,7 @@ var o = new api.AddRolesResponse(); buildCounterAddRolesResponse++; if (buildCounterAddRolesResponse < 3) { - o.policyBinding = buildUnnamed393(); + o.policyBinding = buildUnnamed411(); } buildCounterAddRolesResponse--; return o; @@ -126,19 +223,19 @@ checkAddRolesResponse(api.AddRolesResponse o) { buildCounterAddRolesResponse++; if (buildCounterAddRolesResponse < 3) { - checkUnnamed393(o.policyBinding); + checkUnnamed411(o.policyBinding); } buildCounterAddRolesResponse--; } -buildUnnamed394() { +buildUnnamed412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed394(core.List<core.String> o) { +checkUnnamed412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -153,11 +250,10 @@ o.consumerNetwork = "foo"; o.description = "foo"; o.ipPrefixLength = 42; - o.privateIpv6GoogleAccess = "foo"; o.region = "foo"; o.requestedAddress = "foo"; o.subnetwork = "foo"; - o.subnetworkUsers = buildUnnamed394(); + o.subnetworkUsers = buildUnnamed412(); } buildCounterAddSubnetworkRequest--; return o; @@ -170,49 +266,48 @@ unittest.expect(o.consumerNetwork, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.ipPrefixLength, unittest.equals(42)); - unittest.expect(o.privateIpv6GoogleAccess, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); unittest.expect(o.requestedAddress, unittest.equals('foo')); unittest.expect(o.subnetwork, unittest.equals('foo')); - checkUnnamed394(o.subnetworkUsers); + checkUnnamed412(o.subnetworkUsers); } buildCounterAddSubnetworkRequest--; } -buildUnnamed395() { +buildUnnamed413() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed395(core.List<api.Method> o) { +checkUnnamed413(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed396() { +buildUnnamed414() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed396(core.List<api.Mixin> o) { +checkUnnamed414(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed397() { +buildUnnamed415() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed397(core.List<api.Option> o) { +checkUnnamed415(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -223,10 +318,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed395(); - o.mixins = buildUnnamed396(); + o.methods = buildUnnamed413(); + o.mixins = buildUnnamed414(); o.name = "foo"; - o.options = buildUnnamed397(); + o.options = buildUnnamed415(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -238,10 +333,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed395(o.methods); - checkUnnamed396(o.mixins); + checkUnnamed413(o.methods); + checkUnnamed414(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed397(o.options); + checkUnnamed415(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -249,14 +344,14 @@ buildCounterApi--; } -buildUnnamed398() { +buildUnnamed416() { var o = new core.List<api.JwtLocation>(); o.add(buildJwtLocation()); o.add(buildJwtLocation()); return o; } -checkUnnamed398(core.List<api.JwtLocation> o) { +checkUnnamed416(core.List<api.JwtLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkJwtLocation(o[0]); checkJwtLocation(o[1]); @@ -272,7 +367,7 @@ o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; - o.jwtLocations = buildUnnamed398(); + o.jwtLocations = buildUnnamed416(); } buildCounterAuthProvider--; return o; @@ -286,7 +381,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); - checkUnnamed398(o.jwtLocations); + checkUnnamed416(o.jwtLocations); } buildCounterAuthProvider--; } @@ -312,27 +407,27 @@ buildCounterAuthRequirement--; } -buildUnnamed399() { +buildUnnamed417() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed399(core.List<api.AuthProvider> o) { +checkUnnamed417(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed400() { +buildUnnamed418() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed400(core.List<api.AuthenticationRule> o) { +checkUnnamed418(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -343,8 +438,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed399(); - o.rules = buildUnnamed400(); + o.providers = buildUnnamed417(); + o.rules = buildUnnamed418(); } buildCounterAuthentication--; return o; @@ -353,20 +448,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed399(o.providers); - checkUnnamed400(o.rules); + checkUnnamed417(o.providers); + checkUnnamed418(o.rules); } buildCounterAuthentication--; } -buildUnnamed401() { +buildUnnamed419() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed401(core.List<api.AuthRequirement> o) { +checkUnnamed419(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -379,7 +474,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed401(); + o.requirements = buildUnnamed419(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -391,20 +486,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed401(o.requirements); + checkUnnamed419(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed402() { +buildUnnamed420() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed402(core.List<api.BackendRule> o) { +checkUnnamed420(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -415,7 +510,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed402(); + o.rules = buildUnnamed420(); } buildCounterBackend--; return o; @@ -424,7 +519,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed402(o.rules); + checkUnnamed420(o.rules); } buildCounterBackend--; } @@ -442,7 +537,6 @@ o.operationDeadline = 42.0; o.pathTranslation = "foo"; o.protocol = "foo"; - o.renameTo = "foo"; o.selector = "foo"; } buildCounterBackendRule--; @@ -460,20 +554,19 @@ unittest.expect(o.operationDeadline, unittest.equals(42.0)); unittest.expect(o.pathTranslation, unittest.equals('foo')); unittest.expect(o.protocol, unittest.equals('foo')); - unittest.expect(o.renameTo, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterBackendRule--; } -buildUnnamed403() { +buildUnnamed421() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed403(core.List<api.BillingDestination> o) { +checkUnnamed421(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -484,7 +577,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed403(); + o.consumerDestinations = buildUnnamed421(); } buildCounterBilling--; return o; @@ -493,19 +586,19 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed403(o.consumerDestinations); + checkUnnamed421(o.consumerDestinations); } buildCounterBilling--; } -buildUnnamed404() { +buildUnnamed422() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed404(core.List<core.String> o) { +checkUnnamed422(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -516,7 +609,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed404(); + o.metrics = buildUnnamed422(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -526,7 +619,7 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed404(o.metrics); + checkUnnamed422(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; @@ -547,14 +640,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed405() { +buildUnnamed423() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed405(core.List<core.String> o) { +checkUnnamed423(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -567,7 +660,7 @@ if (buildCounterConnection < 3) { o.network = "foo"; o.peering = "foo"; - o.reservedPeeringRanges = buildUnnamed405(); + o.reservedPeeringRanges = buildUnnamed423(); o.service = "foo"; } buildCounterConnection--; @@ -579,7 +672,7 @@ if (buildCounterConnection < 3) { unittest.expect(o.network, unittest.equals('foo')); unittest.expect(o.peering, unittest.equals('foo')); - checkUnnamed405(o.reservedPeeringRanges); + checkUnnamed423(o.reservedPeeringRanges); unittest.expect(o.service, unittest.equals('foo')); } buildCounterConnection--; @@ -604,14 +697,14 @@ buildCounterConsumerProject--; } -buildUnnamed406() { +buildUnnamed424() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed406(core.List<api.ContextRule> o) { +checkUnnamed424(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -622,7 +715,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed406(); + o.rules = buildUnnamed424(); } buildCounterContext--; return o; @@ -631,58 +724,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed406(o.rules); + checkUnnamed424(o.rules); } buildCounterContext--; } -buildUnnamed407() { +buildUnnamed425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed407(core.List<core.String> o) { +checkUnnamed425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed408() { +buildUnnamed426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed408(core.List<core.String> o) { +checkUnnamed426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed409() { +buildUnnamed427() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed409(core.List<core.String> o) { +checkUnnamed427(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed410() { +buildUnnamed428() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed410(core.List<core.String> o) { +checkUnnamed428(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -693,10 +786,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed407(); - o.allowedResponseExtensions = buildUnnamed408(); - o.provided = buildUnnamed409(); - o.requested = buildUnnamed410(); + o.allowedRequestExtensions = buildUnnamed425(); + o.allowedResponseExtensions = buildUnnamed426(); + o.provided = buildUnnamed427(); + o.requested = buildUnnamed428(); o.selector = "foo"; } buildCounterContextRule--; @@ -706,10 +799,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed407(o.allowedRequestExtensions); - checkUnnamed408(o.allowedResponseExtensions); - checkUnnamed409(o.provided); - checkUnnamed410(o.requested); + checkUnnamed425(o.allowedRequestExtensions); + checkUnnamed426(o.allowedResponseExtensions); + checkUnnamed427(o.provided); + checkUnnamed428(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -734,27 +827,27 @@ buildCounterControl--; } -buildUnnamed411() { +buildUnnamed429() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed411(core.List<api.CustomErrorRule> o) { +checkUnnamed429(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed412() { +buildUnnamed430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed412(core.List<core.String> o) { +checkUnnamed430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -765,8 +858,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed411(); - o.types = buildUnnamed412(); + o.rules = buildUnnamed429(); + o.types = buildUnnamed430(); } buildCounterCustomError--; return o; @@ -775,8 +868,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed411(o.rules); - checkUnnamed412(o.types); + checkUnnamed429(o.rules); + checkUnnamed430(o.types); } buildCounterCustomError--; } @@ -823,6 +916,21 @@ buildCounterCustomHttpPattern--; } +core.int buildCounterDeletePeeredDnsDomainMetadata = 0; +buildDeletePeeredDnsDomainMetadata() { + var o = new api.DeletePeeredDnsDomainMetadata(); + buildCounterDeletePeeredDnsDomainMetadata++; + if (buildCounterDeletePeeredDnsDomainMetadata < 3) {} + buildCounterDeletePeeredDnsDomainMetadata--; + return o; +} + +checkDeletePeeredDnsDomainMetadata(api.DeletePeeredDnsDomainMetadata o) { + buildCounterDeletePeeredDnsDomainMetadata++; + if (buildCounterDeletePeeredDnsDomainMetadata < 3) {} + buildCounterDeletePeeredDnsDomainMetadata--; +} + core.int buildCounterDisableVpcServiceControlsRequest = 0; buildDisableVpcServiceControlsRequest() { var o = new api.DisableVpcServiceControlsRequest(); @@ -842,27 +950,86 @@ buildCounterDisableVpcServiceControlsRequest--; } -buildUnnamed413() { +buildUnnamed431() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed431(core.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 buildCounterDnsRecordSet = 0; +buildDnsRecordSet() { + var o = new api.DnsRecordSet(); + buildCounterDnsRecordSet++; + if (buildCounterDnsRecordSet < 3) { + o.data = buildUnnamed431(); + o.domain = "foo"; + o.ttl = "foo"; + o.type = "foo"; + } + buildCounterDnsRecordSet--; + return o; +} + +checkDnsRecordSet(api.DnsRecordSet o) { + buildCounterDnsRecordSet++; + if (buildCounterDnsRecordSet < 3) { + checkUnnamed431(o.data); + unittest.expect(o.domain, unittest.equals('foo')); + unittest.expect(o.ttl, unittest.equals('foo')); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterDnsRecordSet--; +} + +core.int buildCounterDnsZone = 0; +buildDnsZone() { + var o = new api.DnsZone(); + buildCounterDnsZone++; + if (buildCounterDnsZone < 3) { + o.dnsSuffix = "foo"; + o.name = "foo"; + } + buildCounterDnsZone--; + return o; +} + +checkDnsZone(api.DnsZone o) { + buildCounterDnsZone++; + if (buildCounterDnsZone < 3) { + unittest.expect(o.dnsSuffix, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterDnsZone--; +} + +buildUnnamed432() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed413(core.List<api.Page> o) { +checkUnnamed432(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed414() { +buildUnnamed433() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed414(core.List<api.DocumentationRule> o) { +checkUnnamed433(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -875,8 +1042,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed413(); - o.rules = buildUnnamed414(); + o.pages = buildUnnamed432(); + o.rules = buildUnnamed433(); o.serviceRootUrl = "foo"; o.summary = "foo"; } @@ -889,8 +1056,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed413(o.pages); - checkUnnamed414(o.rules); + checkUnnamed432(o.pages); + checkUnnamed433(o.rules); unittest.expect(o.serviceRootUrl, unittest.equals('foo')); unittest.expect(o.summary, unittest.equals('foo')); } @@ -954,27 +1121,14 @@ buildCounterEnableVpcServiceControlsRequest--; } -buildUnnamed415() { +buildUnnamed434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed415(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed416() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed416(core.List<core.String> o) { +checkUnnamed434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -985,9 +1139,8 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed415(); + o.aliases = buildUnnamed434(); o.allowCors = true; - o.features = buildUnnamed416(); o.name = "foo"; o.target = "foo"; } @@ -998,36 +1151,35 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed415(o.aliases); + checkUnnamed434(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed416(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed417() { +buildUnnamed435() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed417(core.List<api.EnumValue> o) { +checkUnnamed435(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed418() { +buildUnnamed436() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed418(core.List<api.Option> o) { +checkUnnamed436(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1038,9 +1190,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed417(); + o.enumvalue = buildUnnamed435(); o.name = "foo"; - o.options = buildUnnamed418(); + o.options = buildUnnamed436(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1051,23 +1203,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed417(o.enumvalue); + checkUnnamed435(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed418(o.options); + checkUnnamed436(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed419() { +buildUnnamed437() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed419(core.List<api.Option> o) { +checkUnnamed437(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1080,7 +1232,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed419(); + o.options = buildUnnamed437(); } buildCounterEnumValue--; return o; @@ -1091,19 +1243,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed419(o.options); + checkUnnamed437(o.options); } buildCounterEnumValue--; } -buildUnnamed420() { +buildUnnamed438() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed420(core.List<api.Option> o) { +checkUnnamed438(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1121,7 +1273,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed420(); + o.options = buildUnnamed438(); o.packed = true; o.typeUrl = "foo"; } @@ -1139,7 +1291,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed420(o.options); + checkUnnamed438(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -1172,14 +1324,14 @@ buildCounterGoogleCloudServicenetworkingV1betaSubnetwork--; } -buildUnnamed421() { +buildUnnamed439() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed421(core.List<api.HttpRule> o) { +checkUnnamed439(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1191,7 +1343,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed421(); + o.rules = buildUnnamed439(); } buildCounterHttp--; return o; @@ -1201,19 +1353,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed421(o.rules); + checkUnnamed439(o.rules); } buildCounterHttp--; } -buildUnnamed422() { +buildUnnamed440() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed422(core.List<api.HttpRule> o) { +checkUnnamed440(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1224,7 +1376,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed422(); + o.additionalBindings = buildUnnamed440(); o.allowHalfDuplex = true; o.body = "foo"; o.custom = buildCustomHttpPattern(); @@ -1243,7 +1395,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed422(o.additionalBindings); + checkUnnamed440(o.additionalBindings); unittest.expect(o.allowHalfDuplex, unittest.isTrue); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); @@ -1304,14 +1456,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed423() { +buildUnnamed441() { var o = new core.List<api.Connection>(); o.add(buildConnection()); o.add(buildConnection()); return o; } -checkUnnamed423(core.List<api.Connection> o) { +checkUnnamed441(core.List<api.Connection> o) { unittest.expect(o, unittest.hasLength(2)); checkConnection(o[0]); checkConnection(o[1]); @@ -1322,7 +1474,7 @@ var o = new api.ListConnectionsResponse(); buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - o.connections = buildUnnamed423(); + o.connections = buildUnnamed441(); } buildCounterListConnectionsResponse--; return o; @@ -1331,19 +1483,19 @@ checkListConnectionsResponse(api.ListConnectionsResponse o) { buildCounterListConnectionsResponse++; if (buildCounterListConnectionsResponse < 3) { - checkUnnamed423(o.connections); + checkUnnamed441(o.connections); } buildCounterListConnectionsResponse--; } -buildUnnamed424() { +buildUnnamed442() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed424(core.List<api.Operation> o) { +checkUnnamed442(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1355,7 +1507,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed424(); + o.operations = buildUnnamed442(); } buildCounterListOperationsResponse--; return o; @@ -1365,19 +1517,51 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed424(o.operations); + checkUnnamed442(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed425() { +buildUnnamed443() { + var o = new core.List<api.PeeredDnsDomain>(); + o.add(buildPeeredDnsDomain()); + o.add(buildPeeredDnsDomain()); + return o; +} + +checkUnnamed443(core.List<api.PeeredDnsDomain> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPeeredDnsDomain(o[0]); + checkPeeredDnsDomain(o[1]); +} + +core.int buildCounterListPeeredDnsDomainsResponse = 0; +buildListPeeredDnsDomainsResponse() { + var o = new api.ListPeeredDnsDomainsResponse(); + buildCounterListPeeredDnsDomainsResponse++; + if (buildCounterListPeeredDnsDomainsResponse < 3) { + o.peeredDnsDomains = buildUnnamed443(); + } + buildCounterListPeeredDnsDomainsResponse--; + return o; +} + +checkListPeeredDnsDomainsResponse(api.ListPeeredDnsDomainsResponse o) { + buildCounterListPeeredDnsDomainsResponse++; + if (buildCounterListPeeredDnsDomainsResponse < 3) { + checkUnnamed443(o.peeredDnsDomains); + } + buildCounterListPeeredDnsDomainsResponse--; +} + +buildUnnamed444() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed425(core.List<api.LabelDescriptor> o) { +checkUnnamed444(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1390,7 +1574,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed425(); + o.labels = buildUnnamed444(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1402,33 +1586,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed425(o.labels); + checkUnnamed444(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed426() { +buildUnnamed445() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed426(core.List<api.LoggingDestination> o) { +checkUnnamed445(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed427() { +buildUnnamed446() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed427(core.List<api.LoggingDestination> o) { +checkUnnamed446(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1439,8 +1623,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed426(); - o.producerDestinations = buildUnnamed427(); + o.consumerDestinations = buildUnnamed445(); + o.producerDestinations = buildUnnamed446(); } buildCounterLogging--; return o; @@ -1449,20 +1633,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed426(o.consumerDestinations); - checkUnnamed427(o.producerDestinations); + checkUnnamed445(o.consumerDestinations); + checkUnnamed446(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed428() { +buildUnnamed447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed428(core.List<core.String> 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')); @@ -1473,7 +1657,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed428(); + o.logs = buildUnnamed447(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1483,20 +1667,20 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed428(o.logs); + checkUnnamed447(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; } -buildUnnamed429() { +buildUnnamed448() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed429(core.List<api.Option> o) { +checkUnnamed448(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1508,7 +1692,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed429(); + o.options = buildUnnamed448(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1523,7 +1707,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed429(o.options); + checkUnnamed448(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -1533,27 +1717,27 @@ buildCounterMethod--; } -buildUnnamed430() { +buildUnnamed449() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed430(core.List<api.LabelDescriptor> o) { +checkUnnamed449(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed431() { +buildUnnamed450() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed431(core.List<core.String> o) { +checkUnnamed450(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1566,11 +1750,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed430(); + o.labels = buildUnnamed449(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed431(); + o.monitoredResourceTypes = buildUnnamed450(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -1585,11 +1769,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed430(o.labels); + checkUnnamed449(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed431(o.monitoredResourceTypes); + checkUnnamed450(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -1621,14 +1805,14 @@ buildCounterMetricDescriptorMetadata--; } -buildUnnamed432() { +buildUnnamed451() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed432(core.Map<core.String, core.String> o) { +checkUnnamed451(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')); @@ -1639,7 +1823,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed432(); + o.metricCosts = buildUnnamed451(); o.selector = "foo"; } buildCounterMetricRule--; @@ -1649,7 +1833,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed432(o.metricCosts); + checkUnnamed451(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -1676,14 +1860,14 @@ buildCounterMixin--; } -buildUnnamed433() { +buildUnnamed452() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed433(core.List<api.LabelDescriptor> o) { +checkUnnamed452(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1696,7 +1880,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed433(); + o.labels = buildUnnamed452(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -1710,7 +1894,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed433(o.labels); + checkUnnamed452(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -1718,27 +1902,27 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed434() { +buildUnnamed453() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed434(core.List<api.MonitoringDestination> o) { +checkUnnamed453(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed435() { +buildUnnamed454() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed435(core.List<api.MonitoringDestination> o) { +checkUnnamed454(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -1749,8 +1933,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed434(); - o.producerDestinations = buildUnnamed435(); + o.consumerDestinations = buildUnnamed453(); + o.producerDestinations = buildUnnamed454(); } buildCounterMonitoring--; return o; @@ -1759,20 +1943,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed434(o.consumerDestinations); - checkUnnamed435(o.producerDestinations); + checkUnnamed453(o.consumerDestinations); + checkUnnamed454(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed436() { +buildUnnamed455() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed436(core.List<core.String> o) { +checkUnnamed455(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1783,7 +1967,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed436(); + o.metrics = buildUnnamed455(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -1793,7 +1977,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed436(o.metrics); + checkUnnamed455(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -1818,7 +2002,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed437() { +buildUnnamed456() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1833,7 +2017,7 @@ return o; } -checkUnnamed437(core.Map<core.String, core.Object> o) { +checkUnnamed456(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)); @@ -1847,7 +2031,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed438() { +buildUnnamed457() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1862,7 +2046,7 @@ return o; } -checkUnnamed438(core.Map<core.String, core.Object> o) { +checkUnnamed457(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)); @@ -1883,9 +2067,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed437(); + o.metadata = buildUnnamed456(); o.name = "foo"; - o.response = buildUnnamed438(); + o.response = buildUnnamed457(); } buildCounterOperation--; return o; @@ -1896,14 +2080,14 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed437(o.metadata); + checkUnnamed456(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed438(o.response); + checkUnnamed457(o.response); } buildCounterOperation--; } -buildUnnamed439() { +buildUnnamed458() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1918,7 +2102,7 @@ return o; } -checkUnnamed439(core.Map<core.String, core.Object> o) { +checkUnnamed458(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)); @@ -1938,7 +2122,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed439(); + o.value = buildUnnamed458(); } buildCounterOption--; return o; @@ -1948,19 +2132,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed439(o.value); + checkUnnamed458(o.value); } buildCounterOption--; } -buildUnnamed440() { +buildUnnamed459() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed440(core.List<api.Page> o) { +checkUnnamed459(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1973,7 +2157,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed440(); + o.subpages = buildUnnamed459(); } buildCounterPage--; return o; @@ -1984,11 +2168,47 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed440(o.subpages); + checkUnnamed459(o.subpages); } buildCounterPage--; } +core.int buildCounterPeeredDnsDomain = 0; +buildPeeredDnsDomain() { + var o = new api.PeeredDnsDomain(); + buildCounterPeeredDnsDomain++; + if (buildCounterPeeredDnsDomain < 3) { + o.dnsSuffix = "foo"; + o.name = "foo"; + } + buildCounterPeeredDnsDomain--; + return o; +} + +checkPeeredDnsDomain(api.PeeredDnsDomain o) { + buildCounterPeeredDnsDomain++; + if (buildCounterPeeredDnsDomain < 3) { + unittest.expect(o.dnsSuffix, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterPeeredDnsDomain--; +} + +core.int buildCounterPeeredDnsDomainMetadata = 0; +buildPeeredDnsDomainMetadata() { + var o = new api.PeeredDnsDomainMetadata(); + buildCounterPeeredDnsDomainMetadata++; + if (buildCounterPeeredDnsDomainMetadata < 3) {} + buildCounterPeeredDnsDomainMetadata--; + return o; +} + +checkPeeredDnsDomainMetadata(api.PeeredDnsDomainMetadata o) { + buildCounterPeeredDnsDomainMetadata++; + if (buildCounterPeeredDnsDomainMetadata < 3) {} + buildCounterPeeredDnsDomainMetadata--; +} + core.int buildCounterPolicyBinding = 0; buildPolicyBinding() { var o = new api.PolicyBinding(); @@ -2010,27 +2230,27 @@ buildCounterPolicyBinding--; } -buildUnnamed441() { +buildUnnamed460() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed441(core.List<api.QuotaLimit> o) { +checkUnnamed460(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed442() { +buildUnnamed461() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed442(core.List<api.MetricRule> o) { +checkUnnamed461(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2041,8 +2261,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed441(); - o.metricRules = buildUnnamed442(); + o.limits = buildUnnamed460(); + o.metricRules = buildUnnamed461(); } buildCounterQuota--; return o; @@ -2051,20 +2271,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed441(o.limits); - checkUnnamed442(o.metricRules); + checkUnnamed460(o.limits); + checkUnnamed461(o.metricRules); } buildCounterQuota--; } -buildUnnamed443() { +buildUnnamed462() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed443(core.Map<core.String, core.String> o) { +checkUnnamed462(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')); @@ -2084,7 +2304,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed443(); + o.values = buildUnnamed462(); } buildCounterQuotaLimit--; return o; @@ -2102,7 +2322,7 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed443(o.values); + checkUnnamed462(o.values); } buildCounterQuotaLimit--; } @@ -2128,14 +2348,14 @@ buildCounterRange--; } -buildUnnamed444() { +buildUnnamed463() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed444(core.List<core.int> o) { +checkUnnamed463(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)); @@ -2147,7 +2367,7 @@ buildCounterRangeReservation++; if (buildCounterRangeReservation < 3) { o.ipPrefixLength = 42; - o.secondaryRangeIpPrefixLengths = buildUnnamed444(); + o.secondaryRangeIpPrefixLengths = buildUnnamed463(); } buildCounterRangeReservation--; return o; @@ -2157,11 +2377,115 @@ buildCounterRangeReservation++; if (buildCounterRangeReservation < 3) { unittest.expect(o.ipPrefixLength, unittest.equals(42)); - checkUnnamed444(o.secondaryRangeIpPrefixLengths); + checkUnnamed463(o.secondaryRangeIpPrefixLengths); } buildCounterRangeReservation--; } +core.int buildCounterRemoveDnsRecordSetMetadata = 0; +buildRemoveDnsRecordSetMetadata() { + var o = new api.RemoveDnsRecordSetMetadata(); + buildCounterRemoveDnsRecordSetMetadata++; + if (buildCounterRemoveDnsRecordSetMetadata < 3) {} + buildCounterRemoveDnsRecordSetMetadata--; + return o; +} + +checkRemoveDnsRecordSetMetadata(api.RemoveDnsRecordSetMetadata o) { + buildCounterRemoveDnsRecordSetMetadata++; + if (buildCounterRemoveDnsRecordSetMetadata < 3) {} + buildCounterRemoveDnsRecordSetMetadata--; +} + +core.int buildCounterRemoveDnsRecordSetRequest = 0; +buildRemoveDnsRecordSetRequest() { + var o = new api.RemoveDnsRecordSetRequest(); + buildCounterRemoveDnsRecordSetRequest++; + if (buildCounterRemoveDnsRecordSetRequest < 3) { + o.consumerNetwork = "foo"; + o.dnsRecordSet = buildDnsRecordSet(); + o.zone = "foo"; + } + buildCounterRemoveDnsRecordSetRequest--; + return o; +} + +checkRemoveDnsRecordSetRequest(api.RemoveDnsRecordSetRequest o) { + buildCounterRemoveDnsRecordSetRequest++; + if (buildCounterRemoveDnsRecordSetRequest < 3) { + unittest.expect(o.consumerNetwork, unittest.equals('foo')); + checkDnsRecordSet(o.dnsRecordSet); + unittest.expect(o.zone, unittest.equals('foo')); + } + buildCounterRemoveDnsRecordSetRequest--; +} + +core.int buildCounterRemoveDnsRecordSetResponse = 0; +buildRemoveDnsRecordSetResponse() { + var o = new api.RemoveDnsRecordSetResponse(); + buildCounterRemoveDnsRecordSetResponse++; + if (buildCounterRemoveDnsRecordSetResponse < 3) {} + buildCounterRemoveDnsRecordSetResponse--; + return o; +} + +checkRemoveDnsRecordSetResponse(api.RemoveDnsRecordSetResponse o) { + buildCounterRemoveDnsRecordSetResponse++; + if (buildCounterRemoveDnsRecordSetResponse < 3) {} + buildCounterRemoveDnsRecordSetResponse--; +} + +core.int buildCounterRemoveDnsZoneMetadata = 0; +buildRemoveDnsZoneMetadata() { + var o = new api.RemoveDnsZoneMetadata(); + buildCounterRemoveDnsZoneMetadata++; + if (buildCounterRemoveDnsZoneMetadata < 3) {} + buildCounterRemoveDnsZoneMetadata--; + return o; +} + +checkRemoveDnsZoneMetadata(api.RemoveDnsZoneMetadata o) { + buildCounterRemoveDnsZoneMetadata++; + if (buildCounterRemoveDnsZoneMetadata < 3) {} + buildCounterRemoveDnsZoneMetadata--; +} + +core.int buildCounterRemoveDnsZoneRequest = 0; +buildRemoveDnsZoneRequest() { + var o = new api.RemoveDnsZoneRequest(); + buildCounterRemoveDnsZoneRequest++; + if (buildCounterRemoveDnsZoneRequest < 3) { + o.consumerNetwork = "foo"; + o.name = "foo"; + } + buildCounterRemoveDnsZoneRequest--; + return o; +} + +checkRemoveDnsZoneRequest(api.RemoveDnsZoneRequest o) { + buildCounterRemoveDnsZoneRequest++; + if (buildCounterRemoveDnsZoneRequest < 3) { + unittest.expect(o.consumerNetwork, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterRemoveDnsZoneRequest--; +} + +core.int buildCounterRemoveDnsZoneResponse = 0; +buildRemoveDnsZoneResponse() { + var o = new api.RemoveDnsZoneResponse(); + buildCounterRemoveDnsZoneResponse++; + if (buildCounterRemoveDnsZoneResponse < 3) {} + buildCounterRemoveDnsZoneResponse--; + return o; +} + +checkRemoveDnsZoneResponse(api.RemoveDnsZoneResponse o) { + buildCounterRemoveDnsZoneResponse++; + if (buildCounterRemoveDnsZoneResponse < 3) {} + buildCounterRemoveDnsZoneResponse--; +} + core.int buildCounterRoute = 0; buildRoute() { var o = new api.Route(); @@ -2208,105 +2532,105 @@ buildCounterSearchRangeRequest--; } -buildUnnamed445() { +buildUnnamed464() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed445(core.List<api.Api> o) { +checkUnnamed464(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed446() { +buildUnnamed465() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed446(core.List<api.Endpoint> o) { +checkUnnamed465(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed447() { +buildUnnamed466() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed447(core.List<api.Enum> o) { +checkUnnamed466(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed448() { +buildUnnamed467() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed448(core.List<api.LogDescriptor> o) { +checkUnnamed467(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed449() { +buildUnnamed468() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed449(core.List<api.MetricDescriptor> o) { +checkUnnamed468(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed450() { +buildUnnamed469() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed450(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed469(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed451() { +buildUnnamed470() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed451(core.List<api.Type> o) { +checkUnnamed470(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed452() { +buildUnnamed471() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed452(core.List<api.Type> o) { +checkUnnamed471(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -2317,7 +2641,7 @@ var o = new api.Service(); buildCounterService++; if (buildCounterService < 3) { - o.apis = buildUnnamed445(); + o.apis = buildUnnamed464(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -2326,23 +2650,23 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed446(); - o.enums = buildUnnamed447(); + o.endpoints = buildUnnamed465(); + o.enums = buildUnnamed466(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed448(); - o.metrics = buildUnnamed449(); - o.monitoredResources = buildUnnamed450(); + o.logs = buildUnnamed467(); + o.metrics = buildUnnamed468(); + o.monitoredResources = buildUnnamed469(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed451(); + o.systemTypes = buildUnnamed470(); o.title = "foo"; - o.types = buildUnnamed452(); + o.types = buildUnnamed471(); o.usage = buildUsage(); } buildCounterService--; @@ -2352,7 +2676,7 @@ checkService(api.Service o) { buildCounterService++; if (buildCounterService < 3) { - checkUnnamed445(o.apis); + checkUnnamed464(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -2361,23 +2685,23 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed446(o.endpoints); - checkUnnamed447(o.enums); + checkUnnamed465(o.endpoints); + checkUnnamed466(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed448(o.logs); - checkUnnamed449(o.metrics); - checkUnnamed450(o.monitoredResources); + checkUnnamed467(o.logs); + checkUnnamed468(o.metrics); + checkUnnamed469(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed451(o.systemTypes); + checkUnnamed470(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed452(o.types); + checkUnnamed471(o.types); checkUsage(o.usage); } buildCounterService--; @@ -2425,7 +2749,7 @@ buildCounterSourceContext--; } -buildUnnamed453() { +buildUnnamed472() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2440,7 +2764,7 @@ return o; } -checkUnnamed453(core.Map<core.String, core.Object> o) { +checkUnnamed472(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)); @@ -2454,17 +2778,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed454() { +buildUnnamed473() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed453()); - o.add(buildUnnamed453()); + o.add(buildUnnamed472()); + o.add(buildUnnamed472()); return o; } -checkUnnamed454(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed473(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed453(o[0]); - checkUnnamed453(o[1]); + checkUnnamed472(o[0]); + checkUnnamed472(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2472,7 +2796,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed454(); + o.sourceFiles = buildUnnamed473(); } buildCounterSourceInfo--; return o; @@ -2481,12 +2805,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed454(o.sourceFiles); + checkUnnamed473(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed455() { +buildUnnamed474() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2501,7 +2825,7 @@ return o; } -checkUnnamed455(core.Map<core.String, core.Object> o) { +checkUnnamed474(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)); @@ -2515,17 +2839,17 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed456() { +buildUnnamed475() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed455()); - o.add(buildUnnamed455()); + o.add(buildUnnamed474()); + o.add(buildUnnamed474()); return o; } -checkUnnamed456(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed475(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed455(o[0]); - checkUnnamed455(o[1]); + checkUnnamed474(o[0]); + checkUnnamed474(o[1]); } core.int buildCounterStatus = 0; @@ -2534,7 +2858,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed456(); + o.details = buildUnnamed475(); o.message = "foo"; } buildCounterStatus--; @@ -2545,7 +2869,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed456(o.details); + checkUnnamed475(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2599,14 +2923,14 @@ buildCounterSystemParameter--; } -buildUnnamed457() { +buildUnnamed476() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed457(core.List<api.SystemParameter> o) { +checkUnnamed476(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2617,7 +2941,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed457(); + o.parameters = buildUnnamed476(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2627,20 +2951,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed457(o.parameters); + checkUnnamed476(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed458() { +buildUnnamed477() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed458(core.List<api.SystemParameterRule> o) { +checkUnnamed477(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2651,7 +2975,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed458(); + o.rules = buildUnnamed477(); } buildCounterSystemParameters--; return o; @@ -2660,45 +2984,45 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed458(o.rules); + checkUnnamed477(o.rules); } buildCounterSystemParameters--; } -buildUnnamed459() { +buildUnnamed478() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed459(core.List<api.Field> o) { +checkUnnamed478(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed460() { +buildUnnamed479() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed460(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')); } -buildUnnamed461() { +buildUnnamed480() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed461(core.List<api.Option> o) { +checkUnnamed480(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2709,10 +3033,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed459(); + o.fields = buildUnnamed478(); o.name = "foo"; - o.oneofs = buildUnnamed460(); - o.options = buildUnnamed461(); + o.oneofs = buildUnnamed479(); + o.options = buildUnnamed480(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2723,37 +3047,77 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed459(o.fields); + checkUnnamed478(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed460(o.oneofs); - checkUnnamed461(o.options); + checkUnnamed479(o.oneofs); + checkUnnamed480(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed462() { +core.int buildCounterUpdateDnsRecordSetMetadata = 0; +buildUpdateDnsRecordSetMetadata() { + var o = new api.UpdateDnsRecordSetMetadata(); + buildCounterUpdateDnsRecordSetMetadata++; + if (buildCounterUpdateDnsRecordSetMetadata < 3) {} + buildCounterUpdateDnsRecordSetMetadata--; + return o; +} + +checkUpdateDnsRecordSetMetadata(api.UpdateDnsRecordSetMetadata o) { + buildCounterUpdateDnsRecordSetMetadata++; + if (buildCounterUpdateDnsRecordSetMetadata < 3) {} + buildCounterUpdateDnsRecordSetMetadata--; +} + +core.int buildCounterUpdateDnsRecordSetRequest = 0; +buildUpdateDnsRecordSetRequest() { + var o = new api.UpdateDnsRecordSetRequest(); + buildCounterUpdateDnsRecordSetRequest++; + if (buildCounterUpdateDnsRecordSetRequest < 3) { + o.consumerNetwork = "foo"; + o.existingDnsRecordSet = buildDnsRecordSet(); + o.newDnsRecordSet = buildDnsRecordSet(); + o.zone = "foo"; + } + buildCounterUpdateDnsRecordSetRequest--; + return o; +} + +checkUpdateDnsRecordSetRequest(api.UpdateDnsRecordSetRequest o) { + buildCounterUpdateDnsRecordSetRequest++; + if (buildCounterUpdateDnsRecordSetRequest < 3) { + unittest.expect(o.consumerNetwork, unittest.equals('foo')); + checkDnsRecordSet(o.existingDnsRecordSet); + checkDnsRecordSet(o.newDnsRecordSet); + unittest.expect(o.zone, unittest.equals('foo')); + } + buildCounterUpdateDnsRecordSetRequest--; +} + +buildUnnamed481() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed462(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')); } -buildUnnamed463() { +buildUnnamed482() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed463(core.List<api.UsageRule> o) { +checkUnnamed482(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2765,8 +3129,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed462(); - o.rules = buildUnnamed463(); + o.requirements = buildUnnamed481(); + o.rules = buildUnnamed482(); o.serviceIdentity = buildServiceIdentity(); } buildCounterUsage--; @@ -2777,8 +3141,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed462(o.requirements); - checkUnnamed463(o.rules); + checkUnnamed481(o.requirements); + checkUnnamed482(o.rules); checkServiceIdentity(o.serviceIdentity); } buildCounterUsage--; @@ -2854,6 +3218,46 @@ } main() { + unittest.group("obj-schema-AddDnsRecordSetMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildAddDnsRecordSetMetadata(); + var od = new api.AddDnsRecordSetMetadata.fromJson(o.toJson()); + checkAddDnsRecordSetMetadata(od); + }); + }); + + unittest.group("obj-schema-AddDnsRecordSetRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddDnsRecordSetRequest(); + var od = new api.AddDnsRecordSetRequest.fromJson(o.toJson()); + checkAddDnsRecordSetRequest(od); + }); + }); + + unittest.group("obj-schema-AddDnsZoneMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildAddDnsZoneMetadata(); + var od = new api.AddDnsZoneMetadata.fromJson(o.toJson()); + checkAddDnsZoneMetadata(od); + }); + }); + + unittest.group("obj-schema-AddDnsZoneRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddDnsZoneRequest(); + var od = new api.AddDnsZoneRequest.fromJson(o.toJson()); + checkAddDnsZoneRequest(od); + }); + }); + + unittest.group("obj-schema-AddDnsZoneResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddDnsZoneResponse(); + var od = new api.AddDnsZoneResponse.fromJson(o.toJson()); + checkAddDnsZoneResponse(od); + }); + }); + unittest.group("obj-schema-AddRolesMetadata", () { unittest.test("to-json--from-json", () { var o = buildAddRolesMetadata(); @@ -3030,6 +3434,14 @@ }); }); + unittest.group("obj-schema-DeletePeeredDnsDomainMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildDeletePeeredDnsDomainMetadata(); + var od = new api.DeletePeeredDnsDomainMetadata.fromJson(o.toJson()); + checkDeletePeeredDnsDomainMetadata(od); + }); + }); + unittest.group("obj-schema-DisableVpcServiceControlsRequest", () { unittest.test("to-json--from-json", () { var o = buildDisableVpcServiceControlsRequest(); @@ -3038,6 +3450,22 @@ }); }); + unittest.group("obj-schema-DnsRecordSet", () { + unittest.test("to-json--from-json", () { + var o = buildDnsRecordSet(); + var od = new api.DnsRecordSet.fromJson(o.toJson()); + checkDnsRecordSet(od); + }); + }); + + unittest.group("obj-schema-DnsZone", () { + unittest.test("to-json--from-json", () { + var o = buildDnsZone(); + var od = new api.DnsZone.fromJson(o.toJson()); + checkDnsZone(od); + }); + }); + unittest.group("obj-schema-Documentation", () { unittest.test("to-json--from-json", () { var o = buildDocumentation(); @@ -3159,6 +3587,14 @@ }); }); + unittest.group("obj-schema-ListPeeredDnsDomainsResponse", () { + unittest.test("to-json--from-json", () { + var o = buildListPeeredDnsDomainsResponse(); + var od = new api.ListPeeredDnsDomainsResponse.fromJson(o.toJson()); + checkListPeeredDnsDomainsResponse(od); + }); + }); + unittest.group("obj-schema-LogDescriptor", () { unittest.test("to-json--from-json", () { var o = buildLogDescriptor(); @@ -3279,6 +3715,22 @@ }); }); + unittest.group("obj-schema-PeeredDnsDomain", () { + unittest.test("to-json--from-json", () { + var o = buildPeeredDnsDomain(); + var od = new api.PeeredDnsDomain.fromJson(o.toJson()); + checkPeeredDnsDomain(od); + }); + }); + + unittest.group("obj-schema-PeeredDnsDomainMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildPeeredDnsDomainMetadata(); + var od = new api.PeeredDnsDomainMetadata.fromJson(o.toJson()); + checkPeeredDnsDomainMetadata(od); + }); + }); + unittest.group("obj-schema-PolicyBinding", () { unittest.test("to-json--from-json", () { var o = buildPolicyBinding(); @@ -3319,6 +3771,54 @@ }); }); + unittest.group("obj-schema-RemoveDnsRecordSetMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsRecordSetMetadata(); + var od = new api.RemoveDnsRecordSetMetadata.fromJson(o.toJson()); + checkRemoveDnsRecordSetMetadata(od); + }); + }); + + unittest.group("obj-schema-RemoveDnsRecordSetRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsRecordSetRequest(); + var od = new api.RemoveDnsRecordSetRequest.fromJson(o.toJson()); + checkRemoveDnsRecordSetRequest(od); + }); + }); + + unittest.group("obj-schema-RemoveDnsRecordSetResponse", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsRecordSetResponse(); + var od = new api.RemoveDnsRecordSetResponse.fromJson(o.toJson()); + checkRemoveDnsRecordSetResponse(od); + }); + }); + + unittest.group("obj-schema-RemoveDnsZoneMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsZoneMetadata(); + var od = new api.RemoveDnsZoneMetadata.fromJson(o.toJson()); + checkRemoveDnsZoneMetadata(od); + }); + }); + + unittest.group("obj-schema-RemoveDnsZoneRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsZoneRequest(); + var od = new api.RemoveDnsZoneRequest.fromJson(o.toJson()); + checkRemoveDnsZoneRequest(od); + }); + }); + + unittest.group("obj-schema-RemoveDnsZoneResponse", () { + unittest.test("to-json--from-json", () { + var o = buildRemoveDnsZoneResponse(); + var od = new api.RemoveDnsZoneResponse.fromJson(o.toJson()); + checkRemoveDnsZoneResponse(od); + }); + }); + unittest.group("obj-schema-Route", () { unittest.test("to-json--from-json", () { var o = buildRoute(); @@ -3415,6 +3915,22 @@ }); }); + unittest.group("obj-schema-UpdateDnsRecordSetMetadata", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDnsRecordSetMetadata(); + var od = new api.UpdateDnsRecordSetMetadata.fromJson(o.toJson()); + checkUpdateDnsRecordSetMetadata(od); + }); + }); + + unittest.group("obj-schema-UpdateDnsRecordSetRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDnsRecordSetRequest(); + var od = new api.UpdateDnsRecordSetRequest.fromJson(o.toJson()); + checkUpdateDnsRecordSetRequest(od); + }); + }); + unittest.group("obj-schema-Usage", () { unittest.test("to-json--from-json", () { var o = buildUsage(); @@ -3613,8 +4129,8 @@ api.OperationsResourceApi res = new api.ServicenetworkingApi(mock).operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -3648,10 +4164,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -3663,8 +4179,8 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4070,8 +4586,8 @@ new api.ServicenetworkingApi(mock).services.connections; var arg_request = buildConnection(); var arg_name = "foo"; - var arg_updateMask = "foo"; var arg_force = true; + var arg_updateMask = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Connection.fromJson(json); @@ -4107,9 +4623,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); unittest.expect( queryMap["updateMask"].first, unittest.equals(arg_updateMask)); - unittest.expect(queryMap["force"].first, unittest.equals("$arg_force")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4120,8 +4636,8 @@ }), true); res .patch(arg_request, arg_name, - updateMask: arg_updateMask, force: arg_force, + updateMask: arg_updateMask, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkOperation(response); @@ -4129,6 +4645,468 @@ }); }); + unittest.group("resource-ServicesDnsRecordSetsResourceApi", () { + unittest.test("method--add", () { + var mock = new HttpServerMock(); + api.ServicesDnsRecordSetsResourceApi res = + new api.ServicenetworkingApi(mock).services.dnsRecordSets; + var arg_request = buildAddDnsRecordSetRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AddDnsRecordSetRequest.fromJson(json); + checkAddDnsRecordSetRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .add(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--remove", () { + var mock = new HttpServerMock(); + api.ServicesDnsRecordSetsResourceApi res = + new api.ServicenetworkingApi(mock).services.dnsRecordSets; + var arg_request = buildRemoveDnsRecordSetRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RemoveDnsRecordSetRequest.fromJson(json); + checkRemoveDnsRecordSetRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .remove(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.ServicesDnsRecordSetsResourceApi res = + new api.ServicenetworkingApi(mock).services.dnsRecordSets; + var arg_request = buildUpdateDnsRecordSetRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.UpdateDnsRecordSetRequest.fromJson(json); + checkUpdateDnsRecordSetRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group("resource-ServicesDnsZonesResourceApi", () { + unittest.test("method--add", () { + var mock = new HttpServerMock(); + api.ServicesDnsZonesResourceApi res = + new api.ServicenetworkingApi(mock).services.dnsZones; + var arg_request = buildAddDnsZoneRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.AddDnsZoneRequest.fromJson(json); + checkAddDnsZoneRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .add(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--remove", () { + var mock = new HttpServerMock(); + api.ServicesDnsZonesResourceApi res = + new api.ServicenetworkingApi(mock).services.dnsZones; + var arg_request = buildRemoveDnsZoneRequest(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.RemoveDnsZoneRequest.fromJson(json); + checkRemoveDnsZoneRequest(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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 + .remove(arg_request, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + }); + + unittest.group( + "resource-ServicesProjectsGlobalNetworksPeeredDnsDomainsResourceApi", () { + unittest.test("method--create", () { + var mock = new HttpServerMock(); + api.ServicesProjectsGlobalNetworksPeeredDnsDomainsResourceApi res = + new api.ServicenetworkingApi(mock) + .services + .projects + .global + .networks + .peeredDnsDomains; + var arg_request = buildPeeredDnsDomain(); + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.PeeredDnsDomain.fromJson(json); + checkPeeredDnsDomain(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 = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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, arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ServicesProjectsGlobalNetworksPeeredDnsDomainsResourceApi res = + new api.ServicenetworkingApi(mock) + .services + .projects + .global + .networks + .peeredDnsDomains; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + 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_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkOperation(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ServicesProjectsGlobalNetworksPeeredDnsDomainsResourceApi res = + new api.ServicenetworkingApi(mock) + .services + .projects + .global + .networks + .peeredDnsDomains; + var arg_parent = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildListPeeredDnsDomainsResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_parent, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkListPeeredDnsDomainsResponse(response); + }))); + }); + }); + unittest.group("resource-ServicesRolesResourceApi", () { unittest.test("method--add", () { var mock = new HttpServerMock();
diff --git a/generated/googleapis/test/serviceusage/v1_test.dart b/generated/googleapis/test/serviceusage/v1_test.dart index 52769cc..8cd6ffc 100644 --- a/generated/googleapis/test/serviceusage/v1_test.dart +++ b/generated/googleapis/test/serviceusage/v1_test.dart
@@ -50,40 +50,82 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed743() { +buildUnnamed762() { + var o = new core.Map<core.String, core.String>(); + o["x"] = "foo"; + o["y"] = "foo"; + return o; +} + +checkUnnamed762(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 buildCounterAdminQuotaPolicy = 0; +buildAdminQuotaPolicy() { + var o = new api.AdminQuotaPolicy(); + buildCounterAdminQuotaPolicy++; + if (buildCounterAdminQuotaPolicy < 3) { + o.container = "foo"; + o.dimensions = buildUnnamed762(); + o.metric = "foo"; + o.name = "foo"; + o.policyValue = "foo"; + o.unit = "foo"; + } + buildCounterAdminQuotaPolicy--; + return o; +} + +checkAdminQuotaPolicy(api.AdminQuotaPolicy o) { + buildCounterAdminQuotaPolicy++; + if (buildCounterAdminQuotaPolicy < 3) { + unittest.expect(o.container, unittest.equals('foo')); + checkUnnamed762(o.dimensions); + unittest.expect(o.metric, unittest.equals('foo')); + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.policyValue, unittest.equals('foo')); + unittest.expect(o.unit, unittest.equals('foo')); + } + buildCounterAdminQuotaPolicy--; +} + +buildUnnamed763() { var o = new core.List<api.Method>(); o.add(buildMethod()); o.add(buildMethod()); return o; } -checkUnnamed743(core.List<api.Method> o) { +checkUnnamed763(core.List<api.Method> o) { unittest.expect(o, unittest.hasLength(2)); checkMethod(o[0]); checkMethod(o[1]); } -buildUnnamed744() { +buildUnnamed764() { var o = new core.List<api.Mixin>(); o.add(buildMixin()); o.add(buildMixin()); return o; } -checkUnnamed744(core.List<api.Mixin> o) { +checkUnnamed764(core.List<api.Mixin> o) { unittest.expect(o, unittest.hasLength(2)); checkMixin(o[0]); checkMixin(o[1]); } -buildUnnamed745() { +buildUnnamed765() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed745(core.List<api.Option> o) { +checkUnnamed765(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -94,10 +136,10 @@ var o = new api.Api(); buildCounterApi++; if (buildCounterApi < 3) { - o.methods = buildUnnamed743(); - o.mixins = buildUnnamed744(); + o.methods = buildUnnamed763(); + o.mixins = buildUnnamed764(); o.name = "foo"; - o.options = buildUnnamed745(); + o.options = buildUnnamed765(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; o.version = "foo"; @@ -109,10 +151,10 @@ checkApi(api.Api o) { buildCounterApi++; if (buildCounterApi < 3) { - checkUnnamed743(o.methods); - checkUnnamed744(o.mixins); + checkUnnamed763(o.methods); + checkUnnamed764(o.mixins); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed745(o.options); + checkUnnamed765(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -120,14 +162,14 @@ buildCounterApi--; } -buildUnnamed746() { +buildUnnamed766() { var o = new core.List<api.JwtLocation>(); o.add(buildJwtLocation()); o.add(buildJwtLocation()); return o; } -checkUnnamed746(core.List<api.JwtLocation> o) { +checkUnnamed766(core.List<api.JwtLocation> o) { unittest.expect(o, unittest.hasLength(2)); checkJwtLocation(o[0]); checkJwtLocation(o[1]); @@ -143,7 +185,7 @@ o.id = "foo"; o.issuer = "foo"; o.jwksUri = "foo"; - o.jwtLocations = buildUnnamed746(); + o.jwtLocations = buildUnnamed766(); } buildCounterAuthProvider--; return o; @@ -157,7 +199,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.issuer, unittest.equals('foo')); unittest.expect(o.jwksUri, unittest.equals('foo')); - checkUnnamed746(o.jwtLocations); + checkUnnamed766(o.jwtLocations); } buildCounterAuthProvider--; } @@ -183,27 +225,27 @@ buildCounterAuthRequirement--; } -buildUnnamed747() { +buildUnnamed767() { var o = new core.List<api.AuthProvider>(); o.add(buildAuthProvider()); o.add(buildAuthProvider()); return o; } -checkUnnamed747(core.List<api.AuthProvider> o) { +checkUnnamed767(core.List<api.AuthProvider> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthProvider(o[0]); checkAuthProvider(o[1]); } -buildUnnamed748() { +buildUnnamed768() { var o = new core.List<api.AuthenticationRule>(); o.add(buildAuthenticationRule()); o.add(buildAuthenticationRule()); return o; } -checkUnnamed748(core.List<api.AuthenticationRule> o) { +checkUnnamed768(core.List<api.AuthenticationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthenticationRule(o[0]); checkAuthenticationRule(o[1]); @@ -214,8 +256,8 @@ var o = new api.Authentication(); buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - o.providers = buildUnnamed747(); - o.rules = buildUnnamed748(); + o.providers = buildUnnamed767(); + o.rules = buildUnnamed768(); } buildCounterAuthentication--; return o; @@ -224,20 +266,20 @@ checkAuthentication(api.Authentication o) { buildCounterAuthentication++; if (buildCounterAuthentication < 3) { - checkUnnamed747(o.providers); - checkUnnamed748(o.rules); + checkUnnamed767(o.providers); + checkUnnamed768(o.rules); } buildCounterAuthentication--; } -buildUnnamed749() { +buildUnnamed769() { var o = new core.List<api.AuthRequirement>(); o.add(buildAuthRequirement()); o.add(buildAuthRequirement()); return o; } -checkUnnamed749(core.List<api.AuthRequirement> o) { +checkUnnamed769(core.List<api.AuthRequirement> o) { unittest.expect(o, unittest.hasLength(2)); checkAuthRequirement(o[0]); checkAuthRequirement(o[1]); @@ -250,7 +292,7 @@ if (buildCounterAuthenticationRule < 3) { o.allowWithoutCredential = true; o.oauth = buildOAuthRequirements(); - o.requirements = buildUnnamed749(); + o.requirements = buildUnnamed769(); o.selector = "foo"; } buildCounterAuthenticationRule--; @@ -262,20 +304,20 @@ if (buildCounterAuthenticationRule < 3) { unittest.expect(o.allowWithoutCredential, unittest.isTrue); checkOAuthRequirements(o.oauth); - checkUnnamed749(o.requirements); + checkUnnamed769(o.requirements); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterAuthenticationRule--; } -buildUnnamed750() { +buildUnnamed770() { var o = new core.List<api.BackendRule>(); o.add(buildBackendRule()); o.add(buildBackendRule()); return o; } -checkUnnamed750(core.List<api.BackendRule> o) { +checkUnnamed770(core.List<api.BackendRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBackendRule(o[0]); checkBackendRule(o[1]); @@ -286,7 +328,7 @@ var o = new api.Backend(); buildCounterBackend++; if (buildCounterBackend < 3) { - o.rules = buildUnnamed750(); + o.rules = buildUnnamed770(); } buildCounterBackend--; return o; @@ -295,7 +337,7 @@ checkBackend(api.Backend o) { buildCounterBackend++; if (buildCounterBackend < 3) { - checkUnnamed750(o.rules); + checkUnnamed770(o.rules); } buildCounterBackend--; } @@ -313,7 +355,6 @@ o.operationDeadline = 42.0; o.pathTranslation = "foo"; o.protocol = "foo"; - o.renameTo = "foo"; o.selector = "foo"; } buildCounterBackendRule--; @@ -331,20 +372,19 @@ unittest.expect(o.operationDeadline, unittest.equals(42.0)); unittest.expect(o.pathTranslation, unittest.equals('foo')); unittest.expect(o.protocol, unittest.equals('foo')); - unittest.expect(o.renameTo, unittest.equals('foo')); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterBackendRule--; } -buildUnnamed751() { +buildUnnamed771() { var o = new core.List<api.QuotaOverride>(); o.add(buildQuotaOverride()); o.add(buildQuotaOverride()); return o; } -checkUnnamed751(core.List<api.QuotaOverride> o) { +checkUnnamed771(core.List<api.QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaOverride(o[0]); checkQuotaOverride(o[1]); @@ -355,7 +395,7 @@ var o = new api.BatchCreateAdminOverridesResponse(); buildCounterBatchCreateAdminOverridesResponse++; if (buildCounterBatchCreateAdminOverridesResponse < 3) { - o.overrides = buildUnnamed751(); + o.overrides = buildUnnamed771(); } buildCounterBatchCreateAdminOverridesResponse--; return o; @@ -365,19 +405,19 @@ api.BatchCreateAdminOverridesResponse o) { buildCounterBatchCreateAdminOverridesResponse++; if (buildCounterBatchCreateAdminOverridesResponse < 3) { - checkUnnamed751(o.overrides); + checkUnnamed771(o.overrides); } buildCounterBatchCreateAdminOverridesResponse--; } -buildUnnamed752() { +buildUnnamed772() { var o = new core.List<api.QuotaOverride>(); o.add(buildQuotaOverride()); o.add(buildQuotaOverride()); return o; } -checkUnnamed752(core.List<api.QuotaOverride> o) { +checkUnnamed772(core.List<api.QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaOverride(o[0]); checkQuotaOverride(o[1]); @@ -388,7 +428,7 @@ var o = new api.BatchCreateConsumerOverridesResponse(); buildCounterBatchCreateConsumerOverridesResponse++; if (buildCounterBatchCreateConsumerOverridesResponse < 3) { - o.overrides = buildUnnamed752(); + o.overrides = buildUnnamed772(); } buildCounterBatchCreateConsumerOverridesResponse--; return o; @@ -398,19 +438,19 @@ api.BatchCreateConsumerOverridesResponse o) { buildCounterBatchCreateConsumerOverridesResponse++; if (buildCounterBatchCreateConsumerOverridesResponse < 3) { - checkUnnamed752(o.overrides); + checkUnnamed772(o.overrides); } buildCounterBatchCreateConsumerOverridesResponse--; } -buildUnnamed753() { +buildUnnamed773() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed753(core.List<core.String> o) { +checkUnnamed773(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -421,7 +461,7 @@ var o = new api.BatchEnableServicesRequest(); buildCounterBatchEnableServicesRequest++; if (buildCounterBatchEnableServicesRequest < 3) { - o.serviceIds = buildUnnamed753(); + o.serviceIds = buildUnnamed773(); } buildCounterBatchEnableServicesRequest--; return o; @@ -430,32 +470,32 @@ checkBatchEnableServicesRequest(api.BatchEnableServicesRequest o) { buildCounterBatchEnableServicesRequest++; if (buildCounterBatchEnableServicesRequest < 3) { - checkUnnamed753(o.serviceIds); + checkUnnamed773(o.serviceIds); } buildCounterBatchEnableServicesRequest--; } -buildUnnamed754() { +buildUnnamed774() { var o = new core.List<api.EnableFailure>(); o.add(buildEnableFailure()); o.add(buildEnableFailure()); return o; } -checkUnnamed754(core.List<api.EnableFailure> o) { +checkUnnamed774(core.List<api.EnableFailure> o) { unittest.expect(o, unittest.hasLength(2)); checkEnableFailure(o[0]); checkEnableFailure(o[1]); } -buildUnnamed755() { +buildUnnamed775() { var o = new core.List<api.GoogleApiServiceusageV1Service>(); o.add(buildGoogleApiServiceusageV1Service()); o.add(buildGoogleApiServiceusageV1Service()); return o; } -checkUnnamed755(core.List<api.GoogleApiServiceusageV1Service> o) { +checkUnnamed775(core.List<api.GoogleApiServiceusageV1Service> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleApiServiceusageV1Service(o[0]); checkGoogleApiServiceusageV1Service(o[1]); @@ -466,8 +506,8 @@ var o = new api.BatchEnableServicesResponse(); buildCounterBatchEnableServicesResponse++; if (buildCounterBatchEnableServicesResponse < 3) { - o.failures = buildUnnamed754(); - o.services = buildUnnamed755(); + o.failures = buildUnnamed774(); + o.services = buildUnnamed775(); } buildCounterBatchEnableServicesResponse--; return o; @@ -476,20 +516,20 @@ checkBatchEnableServicesResponse(api.BatchEnableServicesResponse o) { buildCounterBatchEnableServicesResponse++; if (buildCounterBatchEnableServicesResponse < 3) { - checkUnnamed754(o.failures); - checkUnnamed755(o.services); + checkUnnamed774(o.failures); + checkUnnamed775(o.services); } buildCounterBatchEnableServicesResponse--; } -buildUnnamed756() { +buildUnnamed776() { var o = new core.List<api.GoogleApiServiceusageV1Service>(); o.add(buildGoogleApiServiceusageV1Service()); o.add(buildGoogleApiServiceusageV1Service()); return o; } -checkUnnamed756(core.List<api.GoogleApiServiceusageV1Service> o) { +checkUnnamed776(core.List<api.GoogleApiServiceusageV1Service> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleApiServiceusageV1Service(o[0]); checkGoogleApiServiceusageV1Service(o[1]); @@ -500,7 +540,7 @@ var o = new api.BatchGetServicesResponse(); buildCounterBatchGetServicesResponse++; if (buildCounterBatchGetServicesResponse < 3) { - o.services = buildUnnamed756(); + o.services = buildUnnamed776(); } buildCounterBatchGetServicesResponse--; return o; @@ -509,19 +549,19 @@ checkBatchGetServicesResponse(api.BatchGetServicesResponse o) { buildCounterBatchGetServicesResponse++; if (buildCounterBatchGetServicesResponse < 3) { - checkUnnamed756(o.services); + checkUnnamed776(o.services); } buildCounterBatchGetServicesResponse--; } -buildUnnamed757() { +buildUnnamed777() { var o = new core.List<api.BillingDestination>(); o.add(buildBillingDestination()); o.add(buildBillingDestination()); return o; } -checkUnnamed757(core.List<api.BillingDestination> o) { +checkUnnamed777(core.List<api.BillingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkBillingDestination(o[0]); checkBillingDestination(o[1]); @@ -532,7 +572,7 @@ var o = new api.Billing(); buildCounterBilling++; if (buildCounterBilling < 3) { - o.consumerDestinations = buildUnnamed757(); + o.consumerDestinations = buildUnnamed777(); } buildCounterBilling--; return o; @@ -541,19 +581,19 @@ checkBilling(api.Billing o) { buildCounterBilling++; if (buildCounterBilling < 3) { - checkUnnamed757(o.consumerDestinations); + checkUnnamed777(o.consumerDestinations); } buildCounterBilling--; } -buildUnnamed758() { +buildUnnamed778() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed758(core.List<core.String> o) { +checkUnnamed778(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -564,7 +604,7 @@ var o = new api.BillingDestination(); buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - o.metrics = buildUnnamed758(); + o.metrics = buildUnnamed778(); o.monitoredResource = "foo"; } buildCounterBillingDestination--; @@ -574,7 +614,7 @@ checkBillingDestination(api.BillingDestination o) { buildCounterBillingDestination++; if (buildCounterBillingDestination < 3) { - checkUnnamed758(o.metrics); + checkUnnamed778(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterBillingDestination--; @@ -595,14 +635,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed759() { +buildUnnamed779() { var o = new core.List<api.ContextRule>(); o.add(buildContextRule()); o.add(buildContextRule()); return o; } -checkUnnamed759(core.List<api.ContextRule> o) { +checkUnnamed779(core.List<api.ContextRule> o) { unittest.expect(o, unittest.hasLength(2)); checkContextRule(o[0]); checkContextRule(o[1]); @@ -613,7 +653,7 @@ var o = new api.Context(); buildCounterContext++; if (buildCounterContext < 3) { - o.rules = buildUnnamed759(); + o.rules = buildUnnamed779(); } buildCounterContext--; return o; @@ -622,58 +662,58 @@ checkContext(api.Context o) { buildCounterContext++; if (buildCounterContext < 3) { - checkUnnamed759(o.rules); + checkUnnamed779(o.rules); } buildCounterContext--; } -buildUnnamed760() { +buildUnnamed780() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed760(core.List<core.String> o) { +checkUnnamed780(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed761() { +buildUnnamed781() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed761(core.List<core.String> o) { +checkUnnamed781(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed762() { +buildUnnamed782() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed762(core.List<core.String> o) { +checkUnnamed782(core.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() { +buildUnnamed783() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed763(core.List<core.String> o) { +checkUnnamed783(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -684,10 +724,10 @@ var o = new api.ContextRule(); buildCounterContextRule++; if (buildCounterContextRule < 3) { - o.allowedRequestExtensions = buildUnnamed760(); - o.allowedResponseExtensions = buildUnnamed761(); - o.provided = buildUnnamed762(); - o.requested = buildUnnamed763(); + o.allowedRequestExtensions = buildUnnamed780(); + o.allowedResponseExtensions = buildUnnamed781(); + o.provided = buildUnnamed782(); + o.requested = buildUnnamed783(); o.selector = "foo"; } buildCounterContextRule--; @@ -697,10 +737,10 @@ checkContextRule(api.ContextRule o) { buildCounterContextRule++; if (buildCounterContextRule < 3) { - checkUnnamed760(o.allowedRequestExtensions); - checkUnnamed761(o.allowedResponseExtensions); - checkUnnamed762(o.provided); - checkUnnamed763(o.requested); + checkUnnamed780(o.allowedRequestExtensions); + checkUnnamed781(o.allowedResponseExtensions); + checkUnnamed782(o.provided); + checkUnnamed783(o.requested); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterContextRule--; @@ -725,27 +765,27 @@ buildCounterControl--; } -buildUnnamed764() { +buildUnnamed784() { var o = new core.List<api.CustomErrorRule>(); o.add(buildCustomErrorRule()); o.add(buildCustomErrorRule()); return o; } -checkUnnamed764(core.List<api.CustomErrorRule> o) { +checkUnnamed784(core.List<api.CustomErrorRule> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomErrorRule(o[0]); checkCustomErrorRule(o[1]); } -buildUnnamed765() { +buildUnnamed785() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed765(core.List<core.String> o) { +checkUnnamed785(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -756,8 +796,8 @@ var o = new api.CustomError(); buildCounterCustomError++; if (buildCounterCustomError < 3) { - o.rules = buildUnnamed764(); - o.types = buildUnnamed765(); + o.rules = buildUnnamed784(); + o.types = buildUnnamed785(); } buildCounterCustomError--; return o; @@ -766,8 +806,8 @@ checkCustomError(api.CustomError o) { buildCounterCustomError++; if (buildCounterCustomError < 3) { - checkUnnamed764(o.rules); - checkUnnamed765(o.types); + checkUnnamed784(o.rules); + checkUnnamed785(o.types); } buildCounterCustomError--; } @@ -819,6 +859,7 @@ var o = new api.DisableServiceRequest(); buildCounterDisableServiceRequest++; if (buildCounterDisableServiceRequest < 3) { + o.checkIfServiceHasUsage = "foo"; o.disableDependentServices = true; } buildCounterDisableServiceRequest--; @@ -828,6 +869,7 @@ checkDisableServiceRequest(api.DisableServiceRequest o) { buildCounterDisableServiceRequest++; if (buildCounterDisableServiceRequest < 3) { + unittest.expect(o.checkIfServiceHasUsage, unittest.equals('foo')); unittest.expect(o.disableDependentServices, unittest.isTrue); } buildCounterDisableServiceRequest--; @@ -852,27 +894,27 @@ buildCounterDisableServiceResponse--; } -buildUnnamed766() { +buildUnnamed786() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed766(core.List<api.Page> o) { +checkUnnamed786(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed767() { +buildUnnamed787() { var o = new core.List<api.DocumentationRule>(); o.add(buildDocumentationRule()); o.add(buildDocumentationRule()); return o; } -checkUnnamed767(core.List<api.DocumentationRule> o) { +checkUnnamed787(core.List<api.DocumentationRule> o) { unittest.expect(o, unittest.hasLength(2)); checkDocumentationRule(o[0]); checkDocumentationRule(o[1]); @@ -885,8 +927,8 @@ if (buildCounterDocumentation < 3) { o.documentationRootUrl = "foo"; o.overview = "foo"; - o.pages = buildUnnamed766(); - o.rules = buildUnnamed767(); + o.pages = buildUnnamed786(); + o.rules = buildUnnamed787(); o.serviceRootUrl = "foo"; o.summary = "foo"; } @@ -899,8 +941,8 @@ if (buildCounterDocumentation < 3) { unittest.expect(o.documentationRootUrl, unittest.equals('foo')); unittest.expect(o.overview, unittest.equals('foo')); - checkUnnamed766(o.pages); - checkUnnamed767(o.rules); + checkUnnamed786(o.pages); + checkUnnamed787(o.rules); unittest.expect(o.serviceRootUrl, unittest.equals('foo')); unittest.expect(o.summary, unittest.equals('foo')); } @@ -1000,27 +1042,14 @@ buildCounterEnableServiceResponse--; } -buildUnnamed768() { +buildUnnamed788() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed768(core.List<core.String> o) { - unittest.expect(o, unittest.hasLength(2)); - unittest.expect(o[0], unittest.equals('foo')); - unittest.expect(o[1], unittest.equals('foo')); -} - -buildUnnamed769() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed769(core.List<core.String> o) { +checkUnnamed788(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1031,9 +1060,8 @@ var o = new api.Endpoint(); buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - o.aliases = buildUnnamed768(); + o.aliases = buildUnnamed788(); o.allowCors = true; - o.features = buildUnnamed769(); o.name = "foo"; o.target = "foo"; } @@ -1044,36 +1072,35 @@ checkEndpoint(api.Endpoint o) { buildCounterEndpoint++; if (buildCounterEndpoint < 3) { - checkUnnamed768(o.aliases); + checkUnnamed788(o.aliases); unittest.expect(o.allowCors, unittest.isTrue); - checkUnnamed769(o.features); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.target, unittest.equals('foo')); } buildCounterEndpoint--; } -buildUnnamed770() { +buildUnnamed789() { var o = new core.List<api.EnumValue>(); o.add(buildEnumValue()); o.add(buildEnumValue()); return o; } -checkUnnamed770(core.List<api.EnumValue> o) { +checkUnnamed789(core.List<api.EnumValue> o) { unittest.expect(o, unittest.hasLength(2)); checkEnumValue(o[0]); checkEnumValue(o[1]); } -buildUnnamed771() { +buildUnnamed790() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed771(core.List<api.Option> o) { +checkUnnamed790(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1084,9 +1111,9 @@ var o = new api.Enum(); buildCounterEnum++; if (buildCounterEnum < 3) { - o.enumvalue = buildUnnamed770(); + o.enumvalue = buildUnnamed789(); o.name = "foo"; - o.options = buildUnnamed771(); + o.options = buildUnnamed790(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -1097,23 +1124,23 @@ checkEnum(api.Enum o) { buildCounterEnum++; if (buildCounterEnum < 3) { - checkUnnamed770(o.enumvalue); + checkUnnamed789(o.enumvalue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed771(o.options); + checkUnnamed790(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterEnum--; } -buildUnnamed772() { +buildUnnamed791() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed772(core.List<api.Option> o) { +checkUnnamed791(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1126,7 +1153,7 @@ if (buildCounterEnumValue < 3) { o.name = "foo"; o.number = 42; - o.options = buildUnnamed772(); + o.options = buildUnnamed791(); } buildCounterEnumValue--; return o; @@ -1137,19 +1164,19 @@ if (buildCounterEnumValue < 3) { unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); - checkUnnamed772(o.options); + checkUnnamed791(o.options); } buildCounterEnumValue--; } -buildUnnamed773() { +buildUnnamed792() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed773(core.List<api.Option> o) { +checkUnnamed792(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1167,7 +1194,7 @@ o.name = "foo"; o.number = 42; o.oneofIndex = 42; - o.options = buildUnnamed773(); + o.options = buildUnnamed792(); o.packed = true; o.typeUrl = "foo"; } @@ -1185,7 +1212,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.number, unittest.equals(42)); unittest.expect(o.oneofIndex, unittest.equals(42)); - checkUnnamed773(o.options); + checkUnnamed792(o.options); unittest.expect(o.packed, unittest.isTrue); unittest.expect(o.typeUrl, unittest.equals('foo')); } @@ -1213,105 +1240,105 @@ buildCounterGetServiceIdentityResponse--; } -buildUnnamed774() { +buildUnnamed793() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed774(core.List<api.Api> o) { +checkUnnamed793(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed775() { +buildUnnamed794() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed775(core.List<api.Endpoint> o) { +checkUnnamed794(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } -buildUnnamed776() { +buildUnnamed795() { var o = new core.List<api.Enum>(); o.add(buildEnum()); o.add(buildEnum()); return o; } -checkUnnamed776(core.List<api.Enum> o) { +checkUnnamed795(core.List<api.Enum> o) { unittest.expect(o, unittest.hasLength(2)); checkEnum(o[0]); checkEnum(o[1]); } -buildUnnamed777() { +buildUnnamed796() { var o = new core.List<api.LogDescriptor>(); o.add(buildLogDescriptor()); o.add(buildLogDescriptor()); return o; } -checkUnnamed777(core.List<api.LogDescriptor> o) { +checkUnnamed796(core.List<api.LogDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLogDescriptor(o[0]); checkLogDescriptor(o[1]); } -buildUnnamed778() { +buildUnnamed797() { var o = new core.List<api.MetricDescriptor>(); o.add(buildMetricDescriptor()); o.add(buildMetricDescriptor()); return o; } -checkUnnamed778(core.List<api.MetricDescriptor> o) { +checkUnnamed797(core.List<api.MetricDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricDescriptor(o[0]); checkMetricDescriptor(o[1]); } -buildUnnamed779() { +buildUnnamed798() { var o = new core.List<api.MonitoredResourceDescriptor>(); o.add(buildMonitoredResourceDescriptor()); o.add(buildMonitoredResourceDescriptor()); return o; } -checkUnnamed779(core.List<api.MonitoredResourceDescriptor> o) { +checkUnnamed798(core.List<api.MonitoredResourceDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoredResourceDescriptor(o[0]); checkMonitoredResourceDescriptor(o[1]); } -buildUnnamed780() { +buildUnnamed799() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed780(core.List<api.Type> o) { +checkUnnamed799(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); } -buildUnnamed781() { +buildUnnamed800() { var o = new core.List<api.Type>(); o.add(buildType()); o.add(buildType()); return o; } -checkUnnamed781(core.List<api.Type> o) { +checkUnnamed800(core.List<api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o[0]); checkType(o[1]); @@ -1322,7 +1349,7 @@ var o = new api.GoogleApiService(); buildCounterGoogleApiService++; if (buildCounterGoogleApiService < 3) { - o.apis = buildUnnamed774(); + o.apis = buildUnnamed793(); o.authentication = buildAuthentication(); o.backend = buildBackend(); o.billing = buildBilling(); @@ -1331,23 +1358,23 @@ o.control = buildControl(); o.customError = buildCustomError(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed775(); - o.enums = buildUnnamed776(); + o.endpoints = buildUnnamed794(); + o.enums = buildUnnamed795(); o.http = buildHttp(); o.id = "foo"; o.logging = buildLogging(); - o.logs = buildUnnamed777(); - o.metrics = buildUnnamed778(); - o.monitoredResources = buildUnnamed779(); + o.logs = buildUnnamed796(); + o.metrics = buildUnnamed797(); + o.monitoredResources = buildUnnamed798(); o.monitoring = buildMonitoring(); o.name = "foo"; o.producerProjectId = "foo"; o.quota = buildQuota(); o.sourceInfo = buildSourceInfo(); o.systemParameters = buildSystemParameters(); - o.systemTypes = buildUnnamed780(); + o.systemTypes = buildUnnamed799(); o.title = "foo"; - o.types = buildUnnamed781(); + o.types = buildUnnamed800(); o.usage = buildUsage(); } buildCounterGoogleApiService--; @@ -1357,7 +1384,7 @@ checkGoogleApiService(api.GoogleApiService o) { buildCounterGoogleApiService++; if (buildCounterGoogleApiService < 3) { - checkUnnamed774(o.apis); + checkUnnamed793(o.apis); checkAuthentication(o.authentication); checkBackend(o.backend); checkBilling(o.billing); @@ -1366,23 +1393,23 @@ checkControl(o.control); checkCustomError(o.customError); checkDocumentation(o.documentation); - checkUnnamed775(o.endpoints); - checkUnnamed776(o.enums); + checkUnnamed794(o.endpoints); + checkUnnamed795(o.enums); checkHttp(o.http); unittest.expect(o.id, unittest.equals('foo')); checkLogging(o.logging); - checkUnnamed777(o.logs); - checkUnnamed778(o.metrics); - checkUnnamed779(o.monitoredResources); + checkUnnamed796(o.logs); + checkUnnamed797(o.metrics); + checkUnnamed798(o.monitoredResources); checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.producerProjectId, unittest.equals('foo')); checkQuota(o.quota); checkSourceInfo(o.sourceInfo); checkSystemParameters(o.systemParameters); - checkUnnamed780(o.systemTypes); + checkUnnamed799(o.systemTypes); unittest.expect(o.title, unittest.equals('foo')); - checkUnnamed781(o.types); + checkUnnamed800(o.types); checkUsage(o.usage); } buildCounterGoogleApiService--; @@ -1411,14 +1438,14 @@ buildCounterGoogleApiServiceIdentity--; } -buildUnnamed782() { +buildUnnamed801() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed782(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')); @@ -1429,7 +1456,7 @@ var o = new api.GoogleApiServiceusageV1OperationMetadata(); buildCounterGoogleApiServiceusageV1OperationMetadata++; if (buildCounterGoogleApiServiceusageV1OperationMetadata < 3) { - o.resourceNames = buildUnnamed782(); + o.resourceNames = buildUnnamed801(); } buildCounterGoogleApiServiceusageV1OperationMetadata--; return o; @@ -1439,7 +1466,7 @@ api.GoogleApiServiceusageV1OperationMetadata o) { buildCounterGoogleApiServiceusageV1OperationMetadata++; if (buildCounterGoogleApiServiceusageV1OperationMetadata < 3) { - checkUnnamed782(o.resourceNames); + checkUnnamed801(o.resourceNames); } buildCounterGoogleApiServiceusageV1OperationMetadata--; } @@ -1469,41 +1496,56 @@ buildCounterGoogleApiServiceusageV1Service--; } -buildUnnamed783() { +buildUnnamed802() { var o = new core.List<api.Api>(); o.add(buildApi()); o.add(buildApi()); return o; } -checkUnnamed783(core.List<api.Api> o) { +checkUnnamed802(core.List<api.Api> o) { unittest.expect(o, unittest.hasLength(2)); checkApi(o[0]); checkApi(o[1]); } -buildUnnamed784() { +buildUnnamed803() { var o = new core.List<api.Endpoint>(); o.add(buildEndpoint()); o.add(buildEndpoint()); return o; } -checkUnnamed784(core.List<api.Endpoint> o) { +checkUnnamed803(core.List<api.Endpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkEndpoint(o[0]); checkEndpoint(o[1]); } +buildUnnamed804() { + var o = new core.List<api.MonitoredResourceDescriptor>(); + o.add(buildMonitoredResourceDescriptor()); + o.add(buildMonitoredResourceDescriptor()); + return o; +} + +checkUnnamed804(core.List<api.MonitoredResourceDescriptor> o) { + unittest.expect(o, unittest.hasLength(2)); + checkMonitoredResourceDescriptor(o[0]); + checkMonitoredResourceDescriptor(o[1]); +} + core.int buildCounterGoogleApiServiceusageV1ServiceConfig = 0; buildGoogleApiServiceusageV1ServiceConfig() { var o = new api.GoogleApiServiceusageV1ServiceConfig(); buildCounterGoogleApiServiceusageV1ServiceConfig++; if (buildCounterGoogleApiServiceusageV1ServiceConfig < 3) { - o.apis = buildUnnamed783(); + o.apis = buildUnnamed802(); o.authentication = buildAuthentication(); o.documentation = buildDocumentation(); - o.endpoints = buildUnnamed784(); + o.endpoints = buildUnnamed803(); + o.monitoredResources = buildUnnamed804(); + o.monitoring = buildMonitoring(); o.name = "foo"; o.quota = buildQuota(); o.title = "foo"; @@ -1517,10 +1559,12 @@ api.GoogleApiServiceusageV1ServiceConfig o) { buildCounterGoogleApiServiceusageV1ServiceConfig++; if (buildCounterGoogleApiServiceusageV1ServiceConfig < 3) { - checkUnnamed783(o.apis); + checkUnnamed802(o.apis); checkAuthentication(o.authentication); checkDocumentation(o.documentation); - checkUnnamed784(o.endpoints); + checkUnnamed803(o.endpoints); + checkUnnamed804(o.monitoredResources); + checkMonitoring(o.monitoring); unittest.expect(o.name, unittest.equals('foo')); checkQuota(o.quota); unittest.expect(o.title, unittest.equals('foo')); @@ -1573,14 +1617,14 @@ buildCounterGoogleApiServiceusageV1beta1ServiceIdentity--; } -buildUnnamed785() { +buildUnnamed805() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed785(core.List<api.HttpRule> o) { +checkUnnamed805(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1592,7 +1636,7 @@ buildCounterHttp++; if (buildCounterHttp < 3) { o.fullyDecodeReservedExpansion = true; - o.rules = buildUnnamed785(); + o.rules = buildUnnamed805(); } buildCounterHttp--; return o; @@ -1602,19 +1646,19 @@ buildCounterHttp++; if (buildCounterHttp < 3) { unittest.expect(o.fullyDecodeReservedExpansion, unittest.isTrue); - checkUnnamed785(o.rules); + checkUnnamed805(o.rules); } buildCounterHttp--; } -buildUnnamed786() { +buildUnnamed806() { var o = new core.List<api.HttpRule>(); o.add(buildHttpRule()); o.add(buildHttpRule()); return o; } -checkUnnamed786(core.List<api.HttpRule> o) { +checkUnnamed806(core.List<api.HttpRule> o) { unittest.expect(o, unittest.hasLength(2)); checkHttpRule(o[0]); checkHttpRule(o[1]); @@ -1625,7 +1669,7 @@ var o = new api.HttpRule(); buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - o.additionalBindings = buildUnnamed786(); + o.additionalBindings = buildUnnamed806(); o.allowHalfDuplex = true; o.body = "foo"; o.custom = buildCustomHttpPattern(); @@ -1644,7 +1688,7 @@ checkHttpRule(api.HttpRule o) { buildCounterHttpRule++; if (buildCounterHttpRule < 3) { - checkUnnamed786(o.additionalBindings); + checkUnnamed806(o.additionalBindings); unittest.expect(o.allowHalfDuplex, unittest.isTrue); unittest.expect(o.body, unittest.equals('foo')); checkCustomHttpPattern(o.custom); @@ -1659,14 +1703,14 @@ buildCounterHttpRule--; } -buildUnnamed787() { +buildUnnamed807() { var o = new core.List<api.QuotaOverride>(); o.add(buildQuotaOverride()); o.add(buildQuotaOverride()); return o; } -checkUnnamed787(core.List<api.QuotaOverride> o) { +checkUnnamed807(core.List<api.QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaOverride(o[0]); checkQuotaOverride(o[1]); @@ -1677,7 +1721,7 @@ var o = new api.ImportAdminOverridesResponse(); buildCounterImportAdminOverridesResponse++; if (buildCounterImportAdminOverridesResponse < 3) { - o.overrides = buildUnnamed787(); + o.overrides = buildUnnamed807(); } buildCounterImportAdminOverridesResponse--; return o; @@ -1686,19 +1730,51 @@ checkImportAdminOverridesResponse(api.ImportAdminOverridesResponse o) { buildCounterImportAdminOverridesResponse++; if (buildCounterImportAdminOverridesResponse < 3) { - checkUnnamed787(o.overrides); + checkUnnamed807(o.overrides); } buildCounterImportAdminOverridesResponse--; } -buildUnnamed788() { +buildUnnamed808() { + var o = new core.List<api.AdminQuotaPolicy>(); + o.add(buildAdminQuotaPolicy()); + o.add(buildAdminQuotaPolicy()); + return o; +} + +checkUnnamed808(core.List<api.AdminQuotaPolicy> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAdminQuotaPolicy(o[0]); + checkAdminQuotaPolicy(o[1]); +} + +core.int buildCounterImportAdminQuotaPoliciesResponse = 0; +buildImportAdminQuotaPoliciesResponse() { + var o = new api.ImportAdminQuotaPoliciesResponse(); + buildCounterImportAdminQuotaPoliciesResponse++; + if (buildCounterImportAdminQuotaPoliciesResponse < 3) { + o.policies = buildUnnamed808(); + } + buildCounterImportAdminQuotaPoliciesResponse--; + return o; +} + +checkImportAdminQuotaPoliciesResponse(api.ImportAdminQuotaPoliciesResponse o) { + buildCounterImportAdminQuotaPoliciesResponse++; + if (buildCounterImportAdminQuotaPoliciesResponse < 3) { + checkUnnamed808(o.policies); + } + buildCounterImportAdminQuotaPoliciesResponse--; +} + +buildUnnamed809() { var o = new core.List<api.QuotaOverride>(); o.add(buildQuotaOverride()); o.add(buildQuotaOverride()); return o; } -checkUnnamed788(core.List<api.QuotaOverride> o) { +checkUnnamed809(core.List<api.QuotaOverride> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaOverride(o[0]); checkQuotaOverride(o[1]); @@ -1709,7 +1785,7 @@ var o = new api.ImportConsumerOverridesResponse(); buildCounterImportConsumerOverridesResponse++; if (buildCounterImportConsumerOverridesResponse < 3) { - o.overrides = buildUnnamed788(); + o.overrides = buildUnnamed809(); } buildCounterImportConsumerOverridesResponse--; return o; @@ -1718,7 +1794,7 @@ checkImportConsumerOverridesResponse(api.ImportConsumerOverridesResponse o) { buildCounterImportConsumerOverridesResponse++; if (buildCounterImportConsumerOverridesResponse < 3) { - checkUnnamed788(o.overrides); + checkUnnamed809(o.overrides); } buildCounterImportConsumerOverridesResponse--; } @@ -1769,14 +1845,14 @@ buildCounterLabelDescriptor--; } -buildUnnamed789() { +buildUnnamed810() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed789(core.List<api.Operation> o) { +checkUnnamed810(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1788,7 +1864,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed789(); + o.operations = buildUnnamed810(); } buildCounterListOperationsResponse--; return o; @@ -1798,19 +1874,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed789(o.operations); + checkUnnamed810(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed790() { +buildUnnamed811() { var o = new core.List<api.GoogleApiServiceusageV1Service>(); o.add(buildGoogleApiServiceusageV1Service()); o.add(buildGoogleApiServiceusageV1Service()); return o; } -checkUnnamed790(core.List<api.GoogleApiServiceusageV1Service> o) { +checkUnnamed811(core.List<api.GoogleApiServiceusageV1Service> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleApiServiceusageV1Service(o[0]); checkGoogleApiServiceusageV1Service(o[1]); @@ -1822,7 +1898,7 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { o.nextPageToken = "foo"; - o.services = buildUnnamed790(); + o.services = buildUnnamed811(); } buildCounterListServicesResponse--; return o; @@ -1832,19 +1908,19 @@ buildCounterListServicesResponse++; if (buildCounterListServicesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed790(o.services); + checkUnnamed811(o.services); } buildCounterListServicesResponse--; } -buildUnnamed791() { +buildUnnamed812() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed791(core.List<api.LabelDescriptor> o) { +checkUnnamed812(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -1857,7 +1933,7 @@ if (buildCounterLogDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed791(); + o.labels = buildUnnamed812(); o.name = "foo"; } buildCounterLogDescriptor--; @@ -1869,33 +1945,33 @@ if (buildCounterLogDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed791(o.labels); + checkUnnamed812(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLogDescriptor--; } -buildUnnamed792() { +buildUnnamed813() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed792(core.List<api.LoggingDestination> o) { +checkUnnamed813(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); } -buildUnnamed793() { +buildUnnamed814() { var o = new core.List<api.LoggingDestination>(); o.add(buildLoggingDestination()); o.add(buildLoggingDestination()); return o; } -checkUnnamed793(core.List<api.LoggingDestination> o) { +checkUnnamed814(core.List<api.LoggingDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkLoggingDestination(o[0]); checkLoggingDestination(o[1]); @@ -1906,8 +1982,8 @@ var o = new api.Logging(); buildCounterLogging++; if (buildCounterLogging < 3) { - o.consumerDestinations = buildUnnamed792(); - o.producerDestinations = buildUnnamed793(); + o.consumerDestinations = buildUnnamed813(); + o.producerDestinations = buildUnnamed814(); } buildCounterLogging--; return o; @@ -1916,20 +1992,20 @@ checkLogging(api.Logging o) { buildCounterLogging++; if (buildCounterLogging < 3) { - checkUnnamed792(o.consumerDestinations); - checkUnnamed793(o.producerDestinations); + checkUnnamed813(o.consumerDestinations); + checkUnnamed814(o.producerDestinations); } buildCounterLogging--; } -buildUnnamed794() { +buildUnnamed815() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed794(core.List<core.String> o) { +checkUnnamed815(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1940,7 +2016,7 @@ var o = new api.LoggingDestination(); buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - o.logs = buildUnnamed794(); + o.logs = buildUnnamed815(); o.monitoredResource = "foo"; } buildCounterLoggingDestination--; @@ -1950,20 +2026,20 @@ checkLoggingDestination(api.LoggingDestination o) { buildCounterLoggingDestination++; if (buildCounterLoggingDestination < 3) { - checkUnnamed794(o.logs); + checkUnnamed815(o.logs); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterLoggingDestination--; } -buildUnnamed795() { +buildUnnamed816() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed795(core.List<api.Option> o) { +checkUnnamed816(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -1975,7 +2051,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { o.name = "foo"; - o.options = buildUnnamed795(); + o.options = buildUnnamed816(); o.requestStreaming = true; o.requestTypeUrl = "foo"; o.responseStreaming = true; @@ -1990,7 +2066,7 @@ buildCounterMethod++; if (buildCounterMethod < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed795(o.options); + checkUnnamed816(o.options); unittest.expect(o.requestStreaming, unittest.isTrue); unittest.expect(o.requestTypeUrl, unittest.equals('foo')); unittest.expect(o.responseStreaming, unittest.isTrue); @@ -2000,27 +2076,27 @@ buildCounterMethod--; } -buildUnnamed796() { +buildUnnamed817() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed796(core.List<api.LabelDescriptor> o) { +checkUnnamed817(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); } -buildUnnamed797() { +buildUnnamed818() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed797(core.List<core.String> o) { +checkUnnamed818(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2033,11 +2109,11 @@ if (buildCounterMetricDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed796(); + o.labels = buildUnnamed817(); o.launchStage = "foo"; o.metadata = buildMetricDescriptorMetadata(); o.metricKind = "foo"; - o.monitoredResourceTypes = buildUnnamed797(); + o.monitoredResourceTypes = buildUnnamed818(); o.name = "foo"; o.type = "foo"; o.unit = "foo"; @@ -2052,11 +2128,11 @@ if (buildCounterMetricDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed796(o.labels); + checkUnnamed817(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); checkMetricDescriptorMetadata(o.metadata); unittest.expect(o.metricKind, unittest.equals('foo')); - checkUnnamed797(o.monitoredResourceTypes); + checkUnnamed818(o.monitoredResourceTypes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); @@ -2088,14 +2164,14 @@ buildCounterMetricDescriptorMetadata--; } -buildUnnamed798() { +buildUnnamed819() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed798(core.Map<core.String, core.String> o) { +checkUnnamed819(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')); @@ -2106,7 +2182,7 @@ var o = new api.MetricRule(); buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - o.metricCosts = buildUnnamed798(); + o.metricCosts = buildUnnamed819(); o.selector = "foo"; } buildCounterMetricRule--; @@ -2116,7 +2192,7 @@ checkMetricRule(api.MetricRule o) { buildCounterMetricRule++; if (buildCounterMetricRule < 3) { - checkUnnamed798(o.metricCosts); + checkUnnamed819(o.metricCosts); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterMetricRule--; @@ -2143,14 +2219,14 @@ buildCounterMixin--; } -buildUnnamed799() { +buildUnnamed820() { var o = new core.List<api.LabelDescriptor>(); o.add(buildLabelDescriptor()); o.add(buildLabelDescriptor()); return o; } -checkUnnamed799(core.List<api.LabelDescriptor> o) { +checkUnnamed820(core.List<api.LabelDescriptor> o) { unittest.expect(o, unittest.hasLength(2)); checkLabelDescriptor(o[0]); checkLabelDescriptor(o[1]); @@ -2163,7 +2239,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { o.description = "foo"; o.displayName = "foo"; - o.labels = buildUnnamed799(); + o.labels = buildUnnamed820(); o.launchStage = "foo"; o.name = "foo"; o.type = "foo"; @@ -2177,7 +2253,7 @@ if (buildCounterMonitoredResourceDescriptor < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed799(o.labels); + checkUnnamed820(o.labels); unittest.expect(o.launchStage, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -2185,27 +2261,27 @@ buildCounterMonitoredResourceDescriptor--; } -buildUnnamed800() { +buildUnnamed821() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed800(core.List<api.MonitoringDestination> o) { +checkUnnamed821(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); } -buildUnnamed801() { +buildUnnamed822() { var o = new core.List<api.MonitoringDestination>(); o.add(buildMonitoringDestination()); o.add(buildMonitoringDestination()); return o; } -checkUnnamed801(core.List<api.MonitoringDestination> o) { +checkUnnamed822(core.List<api.MonitoringDestination> o) { unittest.expect(o, unittest.hasLength(2)); checkMonitoringDestination(o[0]); checkMonitoringDestination(o[1]); @@ -2216,8 +2292,8 @@ var o = new api.Monitoring(); buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - o.consumerDestinations = buildUnnamed800(); - o.producerDestinations = buildUnnamed801(); + o.consumerDestinations = buildUnnamed821(); + o.producerDestinations = buildUnnamed822(); } buildCounterMonitoring--; return o; @@ -2226,20 +2302,20 @@ checkMonitoring(api.Monitoring o) { buildCounterMonitoring++; if (buildCounterMonitoring < 3) { - checkUnnamed800(o.consumerDestinations); - checkUnnamed801(o.producerDestinations); + checkUnnamed821(o.consumerDestinations); + checkUnnamed822(o.producerDestinations); } buildCounterMonitoring--; } -buildUnnamed802() { +buildUnnamed823() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed802(core.List<core.String> o) { +checkUnnamed823(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2250,7 +2326,7 @@ var o = new api.MonitoringDestination(); buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - o.metrics = buildUnnamed802(); + o.metrics = buildUnnamed823(); o.monitoredResource = "foo"; } buildCounterMonitoringDestination--; @@ -2260,7 +2336,7 @@ checkMonitoringDestination(api.MonitoringDestination o) { buildCounterMonitoringDestination++; if (buildCounterMonitoringDestination < 3) { - checkUnnamed802(o.metrics); + checkUnnamed823(o.metrics); unittest.expect(o.monitoredResource, unittest.equals('foo')); } buildCounterMonitoringDestination--; @@ -2285,7 +2361,7 @@ buildCounterOAuthRequirements--; } -buildUnnamed803() { +buildUnnamed824() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2300,7 +2376,7 @@ return o; } -checkUnnamed803(core.Map<core.String, core.Object> o) { +checkUnnamed824(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)); @@ -2314,7 +2390,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed804() { +buildUnnamed825() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2329,7 +2405,7 @@ return o; } -checkUnnamed804(core.Map<core.String, core.Object> o) { +checkUnnamed825(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)); @@ -2350,9 +2426,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed803(); + o.metadata = buildUnnamed824(); o.name = "foo"; - o.response = buildUnnamed804(); + o.response = buildUnnamed825(); } buildCounterOperation--; return o; @@ -2363,21 +2439,21 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed803(o.metadata); + checkUnnamed824(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed804(o.response); + checkUnnamed825(o.response); } buildCounterOperation--; } -buildUnnamed805() { +buildUnnamed826() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed805(core.List<core.String> o) { +checkUnnamed826(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2388,7 +2464,7 @@ var o = new api.OperationMetadata(); buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { - o.resourceNames = buildUnnamed805(); + o.resourceNames = buildUnnamed826(); } buildCounterOperationMetadata--; return o; @@ -2397,12 +2473,12 @@ checkOperationMetadata(api.OperationMetadata o) { buildCounterOperationMetadata++; if (buildCounterOperationMetadata < 3) { - checkUnnamed805(o.resourceNames); + checkUnnamed826(o.resourceNames); } buildCounterOperationMetadata--; } -buildUnnamed806() { +buildUnnamed827() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2417,7 +2493,7 @@ return o; } -checkUnnamed806(core.Map<core.String, core.Object> o) { +checkUnnamed827(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)); @@ -2437,7 +2513,7 @@ buildCounterOption++; if (buildCounterOption < 3) { o.name = "foo"; - o.value = buildUnnamed806(); + o.value = buildUnnamed827(); } buildCounterOption--; return o; @@ -2447,19 +2523,19 @@ buildCounterOption++; if (buildCounterOption < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed806(o.value); + checkUnnamed827(o.value); } buildCounterOption--; } -buildUnnamed807() { +buildUnnamed828() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed807(core.List<api.Page> o) { +checkUnnamed828(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -2472,7 +2548,7 @@ if (buildCounterPage < 3) { o.content = "foo"; o.name = "foo"; - o.subpages = buildUnnamed807(); + o.subpages = buildUnnamed828(); } buildCounterPage--; return o; @@ -2483,32 +2559,32 @@ if (buildCounterPage < 3) { unittest.expect(o.content, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed807(o.subpages); + checkUnnamed828(o.subpages); } buildCounterPage--; } -buildUnnamed808() { +buildUnnamed829() { var o = new core.List<api.QuotaLimit>(); o.add(buildQuotaLimit()); o.add(buildQuotaLimit()); return o; } -checkUnnamed808(core.List<api.QuotaLimit> o) { +checkUnnamed829(core.List<api.QuotaLimit> o) { unittest.expect(o, unittest.hasLength(2)); checkQuotaLimit(o[0]); checkQuotaLimit(o[1]); } -buildUnnamed809() { +buildUnnamed830() { var o = new core.List<api.MetricRule>(); o.add(buildMetricRule()); o.add(buildMetricRule()); return o; } -checkUnnamed809(core.List<api.MetricRule> o) { +checkUnnamed830(core.List<api.MetricRule> o) { unittest.expect(o, unittest.hasLength(2)); checkMetricRule(o[0]); checkMetricRule(o[1]); @@ -2519,8 +2595,8 @@ var o = new api.Quota(); buildCounterQuota++; if (buildCounterQuota < 3) { - o.limits = buildUnnamed808(); - o.metricRules = buildUnnamed809(); + o.limits = buildUnnamed829(); + o.metricRules = buildUnnamed830(); } buildCounterQuota--; return o; @@ -2529,20 +2605,20 @@ checkQuota(api.Quota o) { buildCounterQuota++; if (buildCounterQuota < 3) { - checkUnnamed808(o.limits); - checkUnnamed809(o.metricRules); + checkUnnamed829(o.limits); + checkUnnamed830(o.metricRules); } buildCounterQuota--; } -buildUnnamed810() { +buildUnnamed831() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed810(core.Map<core.String, core.String> o) { +checkUnnamed831(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')); @@ -2562,7 +2638,7 @@ o.metric = "foo"; o.name = "foo"; o.unit = "foo"; - o.values = buildUnnamed810(); + o.values = buildUnnamed831(); } buildCounterQuotaLimit--; return o; @@ -2580,19 +2656,19 @@ unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.unit, unittest.equals('foo')); - checkUnnamed810(o.values); + checkUnnamed831(o.values); } buildCounterQuotaLimit--; } -buildUnnamed811() { +buildUnnamed832() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed811(core.Map<core.String, core.String> o) { +checkUnnamed832(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')); @@ -2603,7 +2679,8 @@ var o = new api.QuotaOverride(); buildCounterQuotaOverride++; if (buildCounterQuotaOverride < 3) { - o.dimensions = buildUnnamed811(); + o.adminOverrideAncestor = "foo"; + o.dimensions = buildUnnamed832(); o.metric = "foo"; o.name = "foo"; o.overrideValue = "foo"; @@ -2616,7 +2693,8 @@ checkQuotaOverride(api.QuotaOverride o) { buildCounterQuotaOverride++; if (buildCounterQuotaOverride < 3) { - checkUnnamed811(o.dimensions); + unittest.expect(o.adminOverrideAncestor, unittest.equals('foo')); + checkUnnamed832(o.dimensions); unittest.expect(o.metric, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.overrideValue, unittest.equals('foo')); @@ -2665,7 +2743,7 @@ buildCounterSourceContext--; } -buildUnnamed812() { +buildUnnamed833() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2680,7 +2758,7 @@ return o; } -checkUnnamed812(core.Map<core.String, core.Object> o) { +checkUnnamed833(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)); @@ -2694,17 +2772,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed813() { +buildUnnamed834() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed812()); - o.add(buildUnnamed812()); + o.add(buildUnnamed833()); + o.add(buildUnnamed833()); return o; } -checkUnnamed813(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed834(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed812(o[0]); - checkUnnamed812(o[1]); + checkUnnamed833(o[0]); + checkUnnamed833(o[1]); } core.int buildCounterSourceInfo = 0; @@ -2712,7 +2790,7 @@ var o = new api.SourceInfo(); buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - o.sourceFiles = buildUnnamed813(); + o.sourceFiles = buildUnnamed834(); } buildCounterSourceInfo--; return o; @@ -2721,12 +2799,12 @@ checkSourceInfo(api.SourceInfo o) { buildCounterSourceInfo++; if (buildCounterSourceInfo < 3) { - checkUnnamed813(o.sourceFiles); + checkUnnamed834(o.sourceFiles); } buildCounterSourceInfo--; } -buildUnnamed814() { +buildUnnamed835() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2741,7 +2819,7 @@ return o; } -checkUnnamed814(core.Map<core.String, core.Object> o) { +checkUnnamed835(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)); @@ -2755,17 +2833,17 @@ unittest.expect(casted10["string"], unittest.equals('foo')); } -buildUnnamed815() { +buildUnnamed836() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed814()); - o.add(buildUnnamed814()); + o.add(buildUnnamed835()); + o.add(buildUnnamed835()); return o; } -checkUnnamed815(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed836(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed814(o[0]); - checkUnnamed814(o[1]); + checkUnnamed835(o[0]); + checkUnnamed835(o[1]); } core.int buildCounterStatus = 0; @@ -2774,7 +2852,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed815(); + o.details = buildUnnamed836(); o.message = "foo"; } buildCounterStatus--; @@ -2785,7 +2863,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed815(o.details); + checkUnnamed836(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -2814,14 +2892,14 @@ buildCounterSystemParameter--; } -buildUnnamed816() { +buildUnnamed837() { var o = new core.List<api.SystemParameter>(); o.add(buildSystemParameter()); o.add(buildSystemParameter()); return o; } -checkUnnamed816(core.List<api.SystemParameter> o) { +checkUnnamed837(core.List<api.SystemParameter> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameter(o[0]); checkSystemParameter(o[1]); @@ -2832,7 +2910,7 @@ var o = new api.SystemParameterRule(); buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - o.parameters = buildUnnamed816(); + o.parameters = buildUnnamed837(); o.selector = "foo"; } buildCounterSystemParameterRule--; @@ -2842,20 +2920,20 @@ checkSystemParameterRule(api.SystemParameterRule o) { buildCounterSystemParameterRule++; if (buildCounterSystemParameterRule < 3) { - checkUnnamed816(o.parameters); + checkUnnamed837(o.parameters); unittest.expect(o.selector, unittest.equals('foo')); } buildCounterSystemParameterRule--; } -buildUnnamed817() { +buildUnnamed838() { var o = new core.List<api.SystemParameterRule>(); o.add(buildSystemParameterRule()); o.add(buildSystemParameterRule()); return o; } -checkUnnamed817(core.List<api.SystemParameterRule> o) { +checkUnnamed838(core.List<api.SystemParameterRule> o) { unittest.expect(o, unittest.hasLength(2)); checkSystemParameterRule(o[0]); checkSystemParameterRule(o[1]); @@ -2866,7 +2944,7 @@ var o = new api.SystemParameters(); buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - o.rules = buildUnnamed817(); + o.rules = buildUnnamed838(); } buildCounterSystemParameters--; return o; @@ -2875,45 +2953,45 @@ checkSystemParameters(api.SystemParameters o) { buildCounterSystemParameters++; if (buildCounterSystemParameters < 3) { - checkUnnamed817(o.rules); + checkUnnamed838(o.rules); } buildCounterSystemParameters--; } -buildUnnamed818() { +buildUnnamed839() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed818(core.List<api.Field> o) { +checkUnnamed839(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); } -buildUnnamed819() { +buildUnnamed840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed819(core.List<core.String> o) { +checkUnnamed840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed820() { +buildUnnamed841() { var o = new core.List<api.Option>(); o.add(buildOption()); o.add(buildOption()); return o; } -checkUnnamed820(core.List<api.Option> o) { +checkUnnamed841(core.List<api.Option> o) { unittest.expect(o, unittest.hasLength(2)); checkOption(o[0]); checkOption(o[1]); @@ -2924,10 +3002,10 @@ var o = new api.Type(); buildCounterType++; if (buildCounterType < 3) { - o.fields = buildUnnamed818(); + o.fields = buildUnnamed839(); o.name = "foo"; - o.oneofs = buildUnnamed819(); - o.options = buildUnnamed820(); + o.oneofs = buildUnnamed840(); + o.options = buildUnnamed841(); o.sourceContext = buildSourceContext(); o.syntax = "foo"; } @@ -2938,37 +3016,37 @@ checkType(api.Type o) { buildCounterType++; if (buildCounterType < 3) { - checkUnnamed818(o.fields); + checkUnnamed839(o.fields); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed819(o.oneofs); - checkUnnamed820(o.options); + checkUnnamed840(o.oneofs); + checkUnnamed841(o.options); checkSourceContext(o.sourceContext); unittest.expect(o.syntax, unittest.equals('foo')); } buildCounterType--; } -buildUnnamed821() { +buildUnnamed842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed821(core.List<core.String> o) { +checkUnnamed842(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed822() { +buildUnnamed843() { var o = new core.List<api.UsageRule>(); o.add(buildUsageRule()); o.add(buildUsageRule()); return o; } -checkUnnamed822(core.List<api.UsageRule> o) { +checkUnnamed843(core.List<api.UsageRule> o) { unittest.expect(o, unittest.hasLength(2)); checkUsageRule(o[0]); checkUsageRule(o[1]); @@ -2980,8 +3058,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { o.producerNotificationChannel = "foo"; - o.requirements = buildUnnamed821(); - o.rules = buildUnnamed822(); + o.requirements = buildUnnamed842(); + o.rules = buildUnnamed843(); o.serviceIdentity = buildGoogleApiServiceIdentity(); } buildCounterUsage--; @@ -2992,8 +3070,8 @@ buildCounterUsage++; if (buildCounterUsage < 3) { unittest.expect(o.producerNotificationChannel, unittest.equals('foo')); - checkUnnamed821(o.requirements); - checkUnnamed822(o.rules); + checkUnnamed842(o.requirements); + checkUnnamed843(o.rules); checkGoogleApiServiceIdentity(o.serviceIdentity); } buildCounterUsage--; @@ -3022,20 +3100,28 @@ buildCounterUsageRule--; } -buildUnnamed823() { +buildUnnamed844() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed823(core.List<core.String> o) { +checkUnnamed844(core.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-AdminQuotaPolicy", () { + unittest.test("to-json--from-json", () { + var o = buildAdminQuotaPolicy(); + var od = new api.AdminQuotaPolicy.fromJson(o.toJson()); + checkAdminQuotaPolicy(od); + }); + }); + unittest.group("obj-schema-Api", () { unittest.test("to-json--from-json", () { var o = buildApi(); @@ -3395,6 +3481,14 @@ }); }); + unittest.group("obj-schema-ImportAdminQuotaPoliciesResponse", () { + unittest.test("to-json--from-json", () { + var o = buildImportAdminQuotaPoliciesResponse(); + var od = new api.ImportAdminQuotaPoliciesResponse.fromJson(o.toJson()); + checkImportAdminQuotaPoliciesResponse(od); + }); + }); + unittest.group("obj-schema-ImportConsumerOverridesResponse", () { unittest.test("to-json--from-json", () { var o = buildImportConsumerOverridesResponse(); @@ -3828,10 +3922,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.ServiceusageApi(mock).operations; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3863,12 +3957,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3879,10 +3973,10 @@ }), true); res .list( + pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, name: arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -3950,7 +4044,7 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; var arg_parent = "foo"; - var arg_names = buildUnnamed823(); + var arg_names = buildUnnamed844(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4164,9 +4258,9 @@ var mock = new HttpServerMock(); api.ServicesResourceApi res = new api.ServiceusageApi(mock).services; var arg_parent = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4199,11 +4293,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4214,9 +4308,9 @@ }), true); res .list(arg_parent, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListServicesResponse(response);
diff --git a/generated/googleapis/test/sheets/v4_test.dart b/generated/googleapis/test/sheets/v4_test.dart index 61183df..6fe4f72 100644 --- a/generated/googleapis/test/sheets/v4_test.dart +++ b/generated/googleapis/test/sheets/v4_test.dart
@@ -147,6 +147,46 @@ buildCounterAddConditionalFormatRuleRequest--; } +core.int buildCounterAddDataSourceRequest = 0; +buildAddDataSourceRequest() { + var o = new api.AddDataSourceRequest(); + buildCounterAddDataSourceRequest++; + if (buildCounterAddDataSourceRequest < 3) { + o.dataSource = buildDataSource(); + } + buildCounterAddDataSourceRequest--; + return o; +} + +checkAddDataSourceRequest(api.AddDataSourceRequest o) { + buildCounterAddDataSourceRequest++; + if (buildCounterAddDataSourceRequest < 3) { + checkDataSource(o.dataSource); + } + buildCounterAddDataSourceRequest--; +} + +core.int buildCounterAddDataSourceResponse = 0; +buildAddDataSourceResponse() { + var o = new api.AddDataSourceResponse(); + buildCounterAddDataSourceResponse++; + if (buildCounterAddDataSourceResponse < 3) { + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSource = buildDataSource(); + } + buildCounterAddDataSourceResponse--; + return o; +} + +checkAddDataSourceResponse(api.AddDataSourceResponse o) { + buildCounterAddDataSourceResponse++; + if (buildCounterAddDataSourceResponse < 3) { + checkDataExecutionStatus(o.dataExecutionStatus); + checkDataSource(o.dataSource); + } + buildCounterAddDataSourceResponse--; +} + core.int buildCounterAddDimensionGroupRequest = 0; buildAddDimensionGroupRequest() { var o = new api.AddDimensionGroupRequest(); @@ -166,14 +206,14 @@ buildCounterAddDimensionGroupRequest--; } -buildUnnamed139() { +buildUnnamed120() { var o = new core.List<api.DimensionGroup>(); o.add(buildDimensionGroup()); o.add(buildDimensionGroup()); return o; } -checkUnnamed139(core.List<api.DimensionGroup> o) { +checkUnnamed120(core.List<api.DimensionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionGroup(o[0]); checkDimensionGroup(o[1]); @@ -184,7 +224,7 @@ var o = new api.AddDimensionGroupResponse(); buildCounterAddDimensionGroupResponse++; if (buildCounterAddDimensionGroupResponse < 3) { - o.dimensionGroups = buildUnnamed139(); + o.dimensionGroups = buildUnnamed120(); } buildCounterAddDimensionGroupResponse--; return o; @@ -193,7 +233,7 @@ checkAddDimensionGroupResponse(api.AddDimensionGroupResponse o) { buildCounterAddDimensionGroupResponse++; if (buildCounterAddDimensionGroupResponse < 3) { - checkUnnamed139(o.dimensionGroups); + checkUnnamed120(o.dimensionGroups); } buildCounterAddDimensionGroupResponse--; } @@ -388,14 +428,14 @@ buildCounterAddSlicerResponse--; } -buildUnnamed140() { +buildUnnamed121() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed140(core.List<api.RowData> o) { +checkUnnamed121(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -407,7 +447,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { o.fields = "foo"; - o.rows = buildUnnamed140(); + o.rows = buildUnnamed121(); o.sheetId = 42; } buildCounterAppendCellsRequest--; @@ -418,7 +458,7 @@ buildCounterAppendCellsRequest++; if (buildCounterAppendCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); - checkUnnamed140(o.rows); + checkUnnamed121(o.rows); unittest.expect(o.sheetId, unittest.equals(42)); } buildCounterAppendCellsRequest--; @@ -498,6 +538,7 @@ var o = new api.AutoResizeDimensionsRequest(); buildCounterAutoResizeDimensionsRequest++; if (buildCounterAutoResizeDimensionsRequest < 3) { + o.dataSourceSheetDimensions = buildDataSourceSheetDimensionRange(); o.dimensions = buildDimensionRange(); } buildCounterAutoResizeDimensionsRequest--; @@ -507,6 +548,7 @@ checkAutoResizeDimensionsRequest(api.AutoResizeDimensionsRequest o) { buildCounterAutoResizeDimensionsRequest++; if (buildCounterAutoResizeDimensionsRequest < 3) { + checkDataSourceSheetDimensionRange(o.dataSourceSheetDimensions); checkDimensionRange(o.dimensions); } buildCounterAutoResizeDimensionsRequest--; @@ -680,40 +722,40 @@ buildCounterBasicChartSeries--; } -buildUnnamed141() { +buildUnnamed122() { var o = new core.List<api.BasicChartAxis>(); o.add(buildBasicChartAxis()); o.add(buildBasicChartAxis()); return o; } -checkUnnamed141(core.List<api.BasicChartAxis> o) { +checkUnnamed122(core.List<api.BasicChartAxis> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartAxis(o[0]); checkBasicChartAxis(o[1]); } -buildUnnamed142() { +buildUnnamed123() { var o = new core.List<api.BasicChartDomain>(); o.add(buildBasicChartDomain()); o.add(buildBasicChartDomain()); return o; } -checkUnnamed142(core.List<api.BasicChartDomain> o) { +checkUnnamed123(core.List<api.BasicChartDomain> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartDomain(o[0]); checkBasicChartDomain(o[1]); } -buildUnnamed143() { +buildUnnamed124() { var o = new core.List<api.BasicChartSeries>(); o.add(buildBasicChartSeries()); o.add(buildBasicChartSeries()); return o; } -checkUnnamed143(core.List<api.BasicChartSeries> o) { +checkUnnamed124(core.List<api.BasicChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkBasicChartSeries(o[0]); checkBasicChartSeries(o[1]); @@ -724,15 +766,15 @@ var o = new api.BasicChartSpec(); buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - o.axis = buildUnnamed141(); + o.axis = buildUnnamed122(); o.chartType = "foo"; o.compareMode = "foo"; - o.domains = buildUnnamed142(); + o.domains = buildUnnamed123(); o.headerCount = 42; o.interpolateNulls = true; o.legendPosition = "foo"; o.lineSmoothing = true; - o.series = buildUnnamed143(); + o.series = buildUnnamed124(); o.stackedType = "foo"; o.threeDimensional = true; } @@ -743,42 +785,55 @@ checkBasicChartSpec(api.BasicChartSpec o) { buildCounterBasicChartSpec++; if (buildCounterBasicChartSpec < 3) { - checkUnnamed141(o.axis); + checkUnnamed122(o.axis); unittest.expect(o.chartType, unittest.equals('foo')); unittest.expect(o.compareMode, unittest.equals('foo')); - checkUnnamed142(o.domains); + checkUnnamed123(o.domains); unittest.expect(o.headerCount, unittest.equals(42)); unittest.expect(o.interpolateNulls, unittest.isTrue); unittest.expect(o.legendPosition, unittest.equals('foo')); unittest.expect(o.lineSmoothing, unittest.isTrue); - checkUnnamed143(o.series); + checkUnnamed124(o.series); unittest.expect(o.stackedType, unittest.equals('foo')); unittest.expect(o.threeDimensional, unittest.isTrue); } buildCounterBasicChartSpec--; } -buildUnnamed144() { +buildUnnamed125() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed144(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed125(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed145() { +buildUnnamed126() { + var o = new core.List<api.FilterSpec>(); + o.add(buildFilterSpec()); + o.add(buildFilterSpec()); + return o; +} + +checkUnnamed126(core.List<api.FilterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilterSpec(o[0]); + checkFilterSpec(o[1]); +} + +buildUnnamed127() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed145(core.List<api.SortSpec> o) { +checkUnnamed127(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -789,9 +844,10 @@ var o = new api.BasicFilter(); buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - o.criteria = buildUnnamed144(); + o.criteria = buildUnnamed125(); + o.filterSpecs = buildUnnamed126(); o.range = buildGridRange(); - o.sortSpecs = buildUnnamed145(); + o.sortSpecs = buildUnnamed127(); } buildCounterBasicFilter--; return o; @@ -800,21 +856,22 @@ checkBasicFilter(api.BasicFilter o) { buildCounterBasicFilter++; if (buildCounterBasicFilter < 3) { - checkUnnamed144(o.criteria); + checkUnnamed125(o.criteria); + checkUnnamed126(o.filterSpecs); checkGridRange(o.range); - checkUnnamed145(o.sortSpecs); + checkUnnamed127(o.sortSpecs); } buildCounterBasicFilter--; } -buildUnnamed146() { +buildUnnamed128() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed146(core.List<api.DataFilter> o) { +checkUnnamed128(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -825,7 +882,7 @@ var o = new api.BatchClearValuesByDataFilterRequest(); buildCounterBatchClearValuesByDataFilterRequest++; if (buildCounterBatchClearValuesByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed146(); + o.dataFilters = buildUnnamed128(); } buildCounterBatchClearValuesByDataFilterRequest--; return o; @@ -835,19 +892,19 @@ api.BatchClearValuesByDataFilterRequest o) { buildCounterBatchClearValuesByDataFilterRequest++; if (buildCounterBatchClearValuesByDataFilterRequest < 3) { - checkUnnamed146(o.dataFilters); + checkUnnamed128(o.dataFilters); } buildCounterBatchClearValuesByDataFilterRequest--; } -buildUnnamed147() { +buildUnnamed129() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed147(core.List<core.String> o) { +checkUnnamed129(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -858,7 +915,7 @@ var o = new api.BatchClearValuesByDataFilterResponse(); buildCounterBatchClearValuesByDataFilterResponse++; if (buildCounterBatchClearValuesByDataFilterResponse < 3) { - o.clearedRanges = buildUnnamed147(); + o.clearedRanges = buildUnnamed129(); o.spreadsheetId = "foo"; } buildCounterBatchClearValuesByDataFilterResponse--; @@ -869,20 +926,20 @@ api.BatchClearValuesByDataFilterResponse o) { buildCounterBatchClearValuesByDataFilterResponse++; if (buildCounterBatchClearValuesByDataFilterResponse < 3) { - checkUnnamed147(o.clearedRanges); + checkUnnamed129(o.clearedRanges); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchClearValuesByDataFilterResponse--; } -buildUnnamed148() { +buildUnnamed130() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed148(core.List<core.String> o) { +checkUnnamed130(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -893,7 +950,7 @@ var o = new api.BatchClearValuesRequest(); buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - o.ranges = buildUnnamed148(); + o.ranges = buildUnnamed130(); } buildCounterBatchClearValuesRequest--; return o; @@ -902,19 +959,19 @@ checkBatchClearValuesRequest(api.BatchClearValuesRequest o) { buildCounterBatchClearValuesRequest++; if (buildCounterBatchClearValuesRequest < 3) { - checkUnnamed148(o.ranges); + checkUnnamed130(o.ranges); } buildCounterBatchClearValuesRequest--; } -buildUnnamed149() { +buildUnnamed131() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed149(core.List<core.String> o) { +checkUnnamed131(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -925,7 +982,7 @@ var o = new api.BatchClearValuesResponse(); buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - o.clearedRanges = buildUnnamed149(); + o.clearedRanges = buildUnnamed131(); o.spreadsheetId = "foo"; } buildCounterBatchClearValuesResponse--; @@ -935,20 +992,20 @@ checkBatchClearValuesResponse(api.BatchClearValuesResponse o) { buildCounterBatchClearValuesResponse++; if (buildCounterBatchClearValuesResponse < 3) { - checkUnnamed149(o.clearedRanges); + checkUnnamed131(o.clearedRanges); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterBatchClearValuesResponse--; } -buildUnnamed150() { +buildUnnamed132() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed150(core.List<api.DataFilter> o) { +checkUnnamed132(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -959,7 +1016,7 @@ var o = new api.BatchGetValuesByDataFilterRequest(); buildCounterBatchGetValuesByDataFilterRequest++; if (buildCounterBatchGetValuesByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed150(); + o.dataFilters = buildUnnamed132(); o.dateTimeRenderOption = "foo"; o.majorDimension = "foo"; o.valueRenderOption = "foo"; @@ -972,7 +1029,7 @@ api.BatchGetValuesByDataFilterRequest o) { buildCounterBatchGetValuesByDataFilterRequest++; if (buildCounterBatchGetValuesByDataFilterRequest < 3) { - checkUnnamed150(o.dataFilters); + checkUnnamed132(o.dataFilters); unittest.expect(o.dateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.valueRenderOption, unittest.equals('foo')); @@ -980,14 +1037,14 @@ buildCounterBatchGetValuesByDataFilterRequest--; } -buildUnnamed151() { +buildUnnamed133() { var o = new core.List<api.MatchedValueRange>(); o.add(buildMatchedValueRange()); o.add(buildMatchedValueRange()); return o; } -checkUnnamed151(core.List<api.MatchedValueRange> o) { +checkUnnamed133(core.List<api.MatchedValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchedValueRange(o[0]); checkMatchedValueRange(o[1]); @@ -999,7 +1056,7 @@ buildCounterBatchGetValuesByDataFilterResponse++; if (buildCounterBatchGetValuesByDataFilterResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed151(); + o.valueRanges = buildUnnamed133(); } buildCounterBatchGetValuesByDataFilterResponse--; return o; @@ -1010,19 +1067,19 @@ buildCounterBatchGetValuesByDataFilterResponse++; if (buildCounterBatchGetValuesByDataFilterResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed151(o.valueRanges); + checkUnnamed133(o.valueRanges); } buildCounterBatchGetValuesByDataFilterResponse--; } -buildUnnamed152() { +buildUnnamed134() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed152(core.List<api.ValueRange> o) { +checkUnnamed134(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -1034,7 +1091,7 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { o.spreadsheetId = "foo"; - o.valueRanges = buildUnnamed152(); + o.valueRanges = buildUnnamed134(); } buildCounterBatchGetValuesResponse--; return o; @@ -1044,32 +1101,32 @@ buildCounterBatchGetValuesResponse++; if (buildCounterBatchGetValuesResponse < 3) { unittest.expect(o.spreadsheetId, unittest.equals('foo')); - checkUnnamed152(o.valueRanges); + checkUnnamed134(o.valueRanges); } buildCounterBatchGetValuesResponse--; } -buildUnnamed153() { +buildUnnamed135() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed153(core.List<api.Request> o) { +checkUnnamed135(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); } -buildUnnamed154() { +buildUnnamed136() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed154(core.List<core.String> o) { +checkUnnamed136(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1081,9 +1138,9 @@ buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { o.includeSpreadsheetInResponse = true; - o.requests = buildUnnamed153(); + o.requests = buildUnnamed135(); o.responseIncludeGridData = true; - o.responseRanges = buildUnnamed154(); + o.responseRanges = buildUnnamed136(); } buildCounterBatchUpdateSpreadsheetRequest--; return o; @@ -1093,21 +1150,21 @@ buildCounterBatchUpdateSpreadsheetRequest++; if (buildCounterBatchUpdateSpreadsheetRequest < 3) { unittest.expect(o.includeSpreadsheetInResponse, unittest.isTrue); - checkUnnamed153(o.requests); + checkUnnamed135(o.requests); unittest.expect(o.responseIncludeGridData, unittest.isTrue); - checkUnnamed154(o.responseRanges); + checkUnnamed136(o.responseRanges); } buildCounterBatchUpdateSpreadsheetRequest--; } -buildUnnamed155() { +buildUnnamed137() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed155(core.List<api.Response> o) { +checkUnnamed137(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -1118,7 +1175,7 @@ var o = new api.BatchUpdateSpreadsheetResponse(); buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - o.replies = buildUnnamed155(); + o.replies = buildUnnamed137(); o.spreadsheetId = "foo"; o.updatedSpreadsheet = buildSpreadsheet(); } @@ -1129,21 +1186,21 @@ checkBatchUpdateSpreadsheetResponse(api.BatchUpdateSpreadsheetResponse o) { buildCounterBatchUpdateSpreadsheetResponse++; if (buildCounterBatchUpdateSpreadsheetResponse < 3) { - checkUnnamed155(o.replies); + checkUnnamed137(o.replies); unittest.expect(o.spreadsheetId, unittest.equals('foo')); checkSpreadsheet(o.updatedSpreadsheet); } buildCounterBatchUpdateSpreadsheetResponse--; } -buildUnnamed156() { +buildUnnamed138() { var o = new core.List<api.DataFilterValueRange>(); o.add(buildDataFilterValueRange()); o.add(buildDataFilterValueRange()); return o; } -checkUnnamed156(core.List<api.DataFilterValueRange> o) { +checkUnnamed138(core.List<api.DataFilterValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilterValueRange(o[0]); checkDataFilterValueRange(o[1]); @@ -1154,7 +1211,7 @@ var o = new api.BatchUpdateValuesByDataFilterRequest(); buildCounterBatchUpdateValuesByDataFilterRequest++; if (buildCounterBatchUpdateValuesByDataFilterRequest < 3) { - o.data = buildUnnamed156(); + o.data = buildUnnamed138(); o.includeValuesInResponse = true; o.responseDateTimeRenderOption = "foo"; o.responseValueRenderOption = "foo"; @@ -1168,7 +1225,7 @@ api.BatchUpdateValuesByDataFilterRequest o) { buildCounterBatchUpdateValuesByDataFilterRequest++; if (buildCounterBatchUpdateValuesByDataFilterRequest < 3) { - checkUnnamed156(o.data); + checkUnnamed138(o.data); unittest.expect(o.includeValuesInResponse, unittest.isTrue); unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); @@ -1177,14 +1234,14 @@ buildCounterBatchUpdateValuesByDataFilterRequest--; } -buildUnnamed157() { +buildUnnamed139() { var o = new core.List<api.UpdateValuesByDataFilterResponse>(); o.add(buildUpdateValuesByDataFilterResponse()); o.add(buildUpdateValuesByDataFilterResponse()); return o; } -checkUnnamed157(core.List<api.UpdateValuesByDataFilterResponse> o) { +checkUnnamed139(core.List<api.UpdateValuesByDataFilterResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesByDataFilterResponse(o[0]); checkUpdateValuesByDataFilterResponse(o[1]); @@ -1195,7 +1252,7 @@ var o = new api.BatchUpdateValuesByDataFilterResponse(); buildCounterBatchUpdateValuesByDataFilterResponse++; if (buildCounterBatchUpdateValuesByDataFilterResponse < 3) { - o.responses = buildUnnamed157(); + o.responses = buildUnnamed139(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -1210,7 +1267,7 @@ api.BatchUpdateValuesByDataFilterResponse o) { buildCounterBatchUpdateValuesByDataFilterResponse++; if (buildCounterBatchUpdateValuesByDataFilterResponse < 3) { - checkUnnamed157(o.responses); + checkUnnamed139(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -1220,14 +1277,14 @@ buildCounterBatchUpdateValuesByDataFilterResponse--; } -buildUnnamed158() { +buildUnnamed140() { var o = new core.List<api.ValueRange>(); o.add(buildValueRange()); o.add(buildValueRange()); return o; } -checkUnnamed158(core.List<api.ValueRange> o) { +checkUnnamed140(core.List<api.ValueRange> o) { unittest.expect(o, unittest.hasLength(2)); checkValueRange(o[0]); checkValueRange(o[1]); @@ -1238,7 +1295,7 @@ var o = new api.BatchUpdateValuesRequest(); buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - o.data = buildUnnamed158(); + o.data = buildUnnamed140(); o.includeValuesInResponse = true; o.responseDateTimeRenderOption = "foo"; o.responseValueRenderOption = "foo"; @@ -1251,7 +1308,7 @@ checkBatchUpdateValuesRequest(api.BatchUpdateValuesRequest o) { buildCounterBatchUpdateValuesRequest++; if (buildCounterBatchUpdateValuesRequest < 3) { - checkUnnamed158(o.data); + checkUnnamed140(o.data); unittest.expect(o.includeValuesInResponse, unittest.isTrue); unittest.expect(o.responseDateTimeRenderOption, unittest.equals('foo')); unittest.expect(o.responseValueRenderOption, unittest.equals('foo')); @@ -1260,14 +1317,14 @@ buildCounterBatchUpdateValuesRequest--; } -buildUnnamed159() { +buildUnnamed141() { var o = new core.List<api.UpdateValuesResponse>(); o.add(buildUpdateValuesResponse()); o.add(buildUpdateValuesResponse()); return o; } -checkUnnamed159(core.List<api.UpdateValuesResponse> o) { +checkUnnamed141(core.List<api.UpdateValuesResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateValuesResponse(o[0]); checkUpdateValuesResponse(o[1]); @@ -1278,7 +1335,7 @@ var o = new api.BatchUpdateValuesResponse(); buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - o.responses = buildUnnamed159(); + o.responses = buildUnnamed141(); o.spreadsheetId = "foo"; o.totalUpdatedCells = 42; o.totalUpdatedColumns = 42; @@ -1292,7 +1349,7 @@ checkBatchUpdateValuesResponse(api.BatchUpdateValuesResponse o) { buildCounterBatchUpdateValuesResponse++; if (buildCounterBatchUpdateValuesResponse < 3) { - checkUnnamed159(o.responses); + checkUnnamed141(o.responses); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.totalUpdatedCells, unittest.equals(42)); unittest.expect(o.totalUpdatedColumns, unittest.equals(42)); @@ -1302,14 +1359,79 @@ buildCounterBatchUpdateValuesResponse--; } -buildUnnamed160() { +core.int buildCounterBigQueryDataSourceSpec = 0; +buildBigQueryDataSourceSpec() { + var o = new api.BigQueryDataSourceSpec(); + buildCounterBigQueryDataSourceSpec++; + if (buildCounterBigQueryDataSourceSpec < 3) { + o.projectId = "foo"; + o.querySpec = buildBigQueryQuerySpec(); + o.tableSpec = buildBigQueryTableSpec(); + } + buildCounterBigQueryDataSourceSpec--; + return o; +} + +checkBigQueryDataSourceSpec(api.BigQueryDataSourceSpec o) { + buildCounterBigQueryDataSourceSpec++; + if (buildCounterBigQueryDataSourceSpec < 3) { + unittest.expect(o.projectId, unittest.equals('foo')); + checkBigQueryQuerySpec(o.querySpec); + checkBigQueryTableSpec(o.tableSpec); + } + buildCounterBigQueryDataSourceSpec--; +} + +core.int buildCounterBigQueryQuerySpec = 0; +buildBigQueryQuerySpec() { + var o = new api.BigQueryQuerySpec(); + buildCounterBigQueryQuerySpec++; + if (buildCounterBigQueryQuerySpec < 3) { + o.rawQuery = "foo"; + } + buildCounterBigQueryQuerySpec--; + return o; +} + +checkBigQueryQuerySpec(api.BigQueryQuerySpec o) { + buildCounterBigQueryQuerySpec++; + if (buildCounterBigQueryQuerySpec < 3) { + unittest.expect(o.rawQuery, unittest.equals('foo')); + } + buildCounterBigQueryQuerySpec--; +} + +core.int buildCounterBigQueryTableSpec = 0; +buildBigQueryTableSpec() { + var o = new api.BigQueryTableSpec(); + buildCounterBigQueryTableSpec++; + if (buildCounterBigQueryTableSpec < 3) { + o.datasetId = "foo"; + o.tableId = "foo"; + o.tableProjectId = "foo"; + } + buildCounterBigQueryTableSpec--; + return o; +} + +checkBigQueryTableSpec(api.BigQueryTableSpec o) { + buildCounterBigQueryTableSpec++; + if (buildCounterBigQueryTableSpec < 3) { + unittest.expect(o.datasetId, unittest.equals('foo')); + unittest.expect(o.tableId, unittest.equals('foo')); + unittest.expect(o.tableProjectId, unittest.equals('foo')); + } + buildCounterBigQueryTableSpec--; +} + +buildUnnamed142() { var o = new core.List<api.ConditionValue>(); o.add(buildConditionValue()); o.add(buildConditionValue()); return o; } -checkUnnamed160(core.List<api.ConditionValue> o) { +checkUnnamed142(core.List<api.ConditionValue> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionValue(o[0]); checkConditionValue(o[1]); @@ -1321,7 +1443,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { o.type = "foo"; - o.values = buildUnnamed160(); + o.values = buildUnnamed142(); } buildCounterBooleanCondition--; return o; @@ -1331,7 +1453,7 @@ buildCounterBooleanCondition++; if (buildCounterBooleanCondition < 3) { unittest.expect(o.type, unittest.equals('foo')); - checkUnnamed160(o.values); + checkUnnamed142(o.values); } buildCounterBooleanCondition--; } @@ -1448,14 +1570,14 @@ buildCounterBubbleChartSpec--; } -buildUnnamed161() { +buildUnnamed143() { var o = new core.List<api.CandlestickData>(); o.add(buildCandlestickData()); o.add(buildCandlestickData()); return o; } -checkUnnamed161(core.List<api.CandlestickData> o) { +checkUnnamed143(core.List<api.CandlestickData> o) { unittest.expect(o, unittest.hasLength(2)); checkCandlestickData(o[0]); checkCandlestickData(o[1]); @@ -1466,7 +1588,7 @@ var o = new api.CandlestickChartSpec(); buildCounterCandlestickChartSpec++; if (buildCounterCandlestickChartSpec < 3) { - o.data = buildUnnamed161(); + o.data = buildUnnamed143(); o.domain = buildCandlestickDomain(); } buildCounterCandlestickChartSpec--; @@ -1476,7 +1598,7 @@ checkCandlestickChartSpec(api.CandlestickChartSpec o) { buildCounterCandlestickChartSpec++; if (buildCounterCandlestickChartSpec < 3) { - checkUnnamed161(o.data); + checkUnnamed143(o.data); checkCandlestickDomain(o.domain); } buildCounterCandlestickChartSpec--; @@ -1547,14 +1669,14 @@ buildCounterCandlestickSeries--; } -buildUnnamed162() { +buildUnnamed144() { var o = new core.List<api.TextFormatRun>(); o.add(buildTextFormatRun()); o.add(buildTextFormatRun()); return o; } -checkUnnamed162(core.List<api.TextFormatRun> o) { +checkUnnamed144(core.List<api.TextFormatRun> o) { unittest.expect(o, unittest.hasLength(2)); checkTextFormatRun(o[0]); checkTextFormatRun(o[1]); @@ -1565,6 +1687,8 @@ var o = new api.CellData(); buildCounterCellData++; if (buildCounterCellData < 3) { + o.dataSourceFormula = buildDataSourceFormula(); + o.dataSourceTable = buildDataSourceTable(); o.dataValidation = buildDataValidationRule(); o.effectiveFormat = buildCellFormat(); o.effectiveValue = buildExtendedValue(); @@ -1572,7 +1696,7 @@ o.hyperlink = "foo"; o.note = "foo"; o.pivotTable = buildPivotTable(); - o.textFormatRuns = buildUnnamed162(); + o.textFormatRuns = buildUnnamed144(); o.userEnteredFormat = buildCellFormat(); o.userEnteredValue = buildExtendedValue(); } @@ -1583,6 +1707,8 @@ checkCellData(api.CellData o) { buildCounterCellData++; if (buildCounterCellData < 3) { + checkDataSourceFormula(o.dataSourceFormula); + checkDataSourceTable(o.dataSourceTable); checkDataValidationRule(o.dataValidation); checkCellFormat(o.effectiveFormat); checkExtendedValue(o.effectiveValue); @@ -1590,7 +1716,7 @@ unittest.expect(o.hyperlink, unittest.equals('foo')); unittest.expect(o.note, unittest.equals('foo')); checkPivotTable(o.pivotTable); - checkUnnamed162(o.textFormatRuns); + checkUnnamed144(o.textFormatRuns); checkCellFormat(o.userEnteredFormat); checkExtendedValue(o.userEnteredValue); } @@ -1687,6 +1813,9 @@ var o = new api.ChartData(); buildCounterChartData++; if (buildCounterChartData < 3) { + o.aggregateType = "foo"; + o.columnReference = buildDataSourceColumnReference(); + o.groupRule = buildChartGroupRule(); o.sourceRange = buildChartSourceRange(); } buildCounterChartData--; @@ -1696,19 +1825,85 @@ checkChartData(api.ChartData o) { buildCounterChartData++; if (buildCounterChartData < 3) { + unittest.expect(o.aggregateType, unittest.equals('foo')); + checkDataSourceColumnReference(o.columnReference); + checkChartGroupRule(o.groupRule); checkChartSourceRange(o.sourceRange); } buildCounterChartData--; } -buildUnnamed163() { +core.int buildCounterChartDateTimeRule = 0; +buildChartDateTimeRule() { + var o = new api.ChartDateTimeRule(); + buildCounterChartDateTimeRule++; + if (buildCounterChartDateTimeRule < 3) { + o.type = "foo"; + } + buildCounterChartDateTimeRule--; + return o; +} + +checkChartDateTimeRule(api.ChartDateTimeRule o) { + buildCounterChartDateTimeRule++; + if (buildCounterChartDateTimeRule < 3) { + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterChartDateTimeRule--; +} + +core.int buildCounterChartGroupRule = 0; +buildChartGroupRule() { + var o = new api.ChartGroupRule(); + buildCounterChartGroupRule++; + if (buildCounterChartGroupRule < 3) { + o.dateTimeRule = buildChartDateTimeRule(); + o.histogramRule = buildChartHistogramRule(); + } + buildCounterChartGroupRule--; + return o; +} + +checkChartGroupRule(api.ChartGroupRule o) { + buildCounterChartGroupRule++; + if (buildCounterChartGroupRule < 3) { + checkChartDateTimeRule(o.dateTimeRule); + checkChartHistogramRule(o.histogramRule); + } + buildCounterChartGroupRule--; +} + +core.int buildCounterChartHistogramRule = 0; +buildChartHistogramRule() { + var o = new api.ChartHistogramRule(); + buildCounterChartHistogramRule++; + if (buildCounterChartHistogramRule < 3) { + o.intervalSize = 42.0; + o.maxValue = 42.0; + o.minValue = 42.0; + } + buildCounterChartHistogramRule--; + return o; +} + +checkChartHistogramRule(api.ChartHistogramRule o) { + buildCounterChartHistogramRule++; + if (buildCounterChartHistogramRule < 3) { + unittest.expect(o.intervalSize, unittest.equals(42.0)); + unittest.expect(o.maxValue, unittest.equals(42.0)); + unittest.expect(o.minValue, unittest.equals(42.0)); + } + buildCounterChartHistogramRule--; +} + +buildUnnamed145() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed163(core.List<api.GridRange> o) { +checkUnnamed145(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1719,7 +1914,7 @@ var o = new api.ChartSourceRange(); buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - o.sources = buildUnnamed163(); + o.sources = buildUnnamed145(); } buildCounterChartSourceRange--; return o; @@ -1728,11 +1923,37 @@ checkChartSourceRange(api.ChartSourceRange o) { buildCounterChartSourceRange++; if (buildCounterChartSourceRange < 3) { - checkUnnamed163(o.sources); + checkUnnamed145(o.sources); } buildCounterChartSourceRange--; } +buildUnnamed146() { + var o = new core.List<api.FilterSpec>(); + o.add(buildFilterSpec()); + o.add(buildFilterSpec()); + return o; +} + +checkUnnamed146(core.List<api.FilterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilterSpec(o[0]); + checkFilterSpec(o[1]); +} + +buildUnnamed147() { + var o = new core.List<api.SortSpec>(); + o.add(buildSortSpec()); + o.add(buildSortSpec()); + return o; +} + +checkUnnamed147(core.List<api.SortSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSortSpec(o[0]); + checkSortSpec(o[1]); +} + core.int buildCounterChartSpec = 0; buildChartSpec() { var o = new api.ChartSpec(); @@ -1744,6 +1965,8 @@ o.basicChart = buildBasicChartSpec(); o.bubbleChart = buildBubbleChartSpec(); o.candlestickChart = buildCandlestickChartSpec(); + o.dataSourceChartProperties = buildDataSourceChartProperties(); + o.filterSpecs = buildUnnamed146(); o.fontName = "foo"; o.hiddenDimensionStrategy = "foo"; o.histogramChart = buildHistogramChartSpec(); @@ -1751,6 +1974,7 @@ o.orgChart = buildOrgChartSpec(); o.pieChart = buildPieChartSpec(); o.scorecardChart = buildScorecardChartSpec(); + o.sortSpecs = buildUnnamed147(); o.subtitle = "foo"; o.subtitleTextFormat = buildTextFormat(); o.subtitleTextPosition = buildTextPosition(); @@ -1773,6 +1997,8 @@ checkBasicChartSpec(o.basicChart); checkBubbleChartSpec(o.bubbleChart); checkCandlestickChartSpec(o.candlestickChart); + checkDataSourceChartProperties(o.dataSourceChartProperties); + checkUnnamed146(o.filterSpecs); unittest.expect(o.fontName, unittest.equals('foo')); unittest.expect(o.hiddenDimensionStrategy, unittest.equals('foo')); checkHistogramChartSpec(o.histogramChart); @@ -1780,6 +2006,7 @@ checkOrgChartSpec(o.orgChart); checkPieChartSpec(o.pieChart); checkScorecardChartSpec(o.scorecardChart); + checkUnnamed147(o.sortSpecs); unittest.expect(o.subtitle, unittest.equals('foo')); checkTextFormat(o.subtitleTextFormat); checkTextPosition(o.subtitleTextPosition); @@ -1914,14 +2141,14 @@ buildCounterConditionValue--; } -buildUnnamed164() { +buildUnnamed148() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed164(core.List<api.GridRange> o) { +checkUnnamed148(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -1934,7 +2161,7 @@ if (buildCounterConditionalFormatRule < 3) { o.booleanRule = buildBooleanRule(); o.gradientRule = buildGradientRule(); - o.ranges = buildUnnamed164(); + o.ranges = buildUnnamed148(); } buildCounterConditionalFormatRule--; return o; @@ -1945,7 +2172,7 @@ if (buildCounterConditionalFormatRule < 3) { checkBooleanRule(o.booleanRule); checkGradientRule(o.gradientRule); - checkUnnamed164(o.ranges); + checkUnnamed148(o.ranges); } buildCounterConditionalFormatRule--; } @@ -2056,6 +2283,31 @@ buildCounterCutPasteRequest--; } +core.int buildCounterDataExecutionStatus = 0; +buildDataExecutionStatus() { + var o = new api.DataExecutionStatus(); + buildCounterDataExecutionStatus++; + if (buildCounterDataExecutionStatus < 3) { + o.errorCode = "foo"; + o.errorMessage = "foo"; + o.lastRefreshTime = "foo"; + o.state = "foo"; + } + buildCounterDataExecutionStatus--; + return o; +} + +checkDataExecutionStatus(api.DataExecutionStatus o) { + buildCounterDataExecutionStatus++; + if (buildCounterDataExecutionStatus < 3) { + unittest.expect(o.errorCode, unittest.equals('foo')); + unittest.expect(o.errorMessage, unittest.equals('foo')); + unittest.expect(o.lastRefreshTime, unittest.equals('foo')); + unittest.expect(o.state, unittest.equals('foo')); + } + buildCounterDataExecutionStatus--; +} + core.int buildCounterDataFilter = 0; buildDataFilter() { var o = new api.DataFilter(); @@ -2079,7 +2331,7 @@ buildCounterDataFilter--; } -buildUnnamed165() { +buildUnnamed149() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2094,7 +2346,7 @@ return o; } -checkUnnamed165(core.List<core.Object> o) { +checkUnnamed149(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -2108,17 +2360,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed166() { +buildUnnamed150() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed165()); - o.add(buildUnnamed165()); + o.add(buildUnnamed149()); + o.add(buildUnnamed149()); return o; } -checkUnnamed166(core.List<core.List<core.Object>> o) { +checkUnnamed150(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed165(o[0]); - checkUnnamed165(o[1]); + checkUnnamed149(o[0]); + checkUnnamed149(o[1]); } core.int buildCounterDataFilterValueRange = 0; @@ -2128,7 +2380,7 @@ if (buildCounterDataFilterValueRange < 3) { o.dataFilter = buildDataFilter(); o.majorDimension = "foo"; - o.values = buildUnnamed166(); + o.values = buildUnnamed150(); } buildCounterDataFilterValueRange--; return o; @@ -2139,11 +2391,503 @@ if (buildCounterDataFilterValueRange < 3) { checkDataFilter(o.dataFilter); unittest.expect(o.majorDimension, unittest.equals('foo')); - checkUnnamed166(o.values); + checkUnnamed150(o.values); } buildCounterDataFilterValueRange--; } +buildUnnamed151() { + var o = new core.List<api.DataSourceColumn>(); + o.add(buildDataSourceColumn()); + o.add(buildDataSourceColumn()); + return o; +} + +checkUnnamed151(core.List<api.DataSourceColumn> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceColumn(o[0]); + checkDataSourceColumn(o[1]); +} + +core.int buildCounterDataSource = 0; +buildDataSource() { + var o = new api.DataSource(); + buildCounterDataSource++; + if (buildCounterDataSource < 3) { + o.calculatedColumns = buildUnnamed151(); + o.dataSourceId = "foo"; + o.sheetId = 42; + o.spec = buildDataSourceSpec(); + } + buildCounterDataSource--; + return o; +} + +checkDataSource(api.DataSource o) { + buildCounterDataSource++; + if (buildCounterDataSource < 3) { + checkUnnamed151(o.calculatedColumns); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + unittest.expect(o.sheetId, unittest.equals(42)); + checkDataSourceSpec(o.spec); + } + buildCounterDataSource--; +} + +core.int buildCounterDataSourceChartProperties = 0; +buildDataSourceChartProperties() { + var o = new api.DataSourceChartProperties(); + buildCounterDataSourceChartProperties++; + if (buildCounterDataSourceChartProperties < 3) { + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSourceId = "foo"; + } + buildCounterDataSourceChartProperties--; + return o; +} + +checkDataSourceChartProperties(api.DataSourceChartProperties o) { + buildCounterDataSourceChartProperties++; + if (buildCounterDataSourceChartProperties < 3) { + checkDataExecutionStatus(o.dataExecutionStatus); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + } + buildCounterDataSourceChartProperties--; +} + +core.int buildCounterDataSourceColumn = 0; +buildDataSourceColumn() { + var o = new api.DataSourceColumn(); + buildCounterDataSourceColumn++; + if (buildCounterDataSourceColumn < 3) { + o.formula = "foo"; + o.reference = buildDataSourceColumnReference(); + } + buildCounterDataSourceColumn--; + return o; +} + +checkDataSourceColumn(api.DataSourceColumn o) { + buildCounterDataSourceColumn++; + if (buildCounterDataSourceColumn < 3) { + unittest.expect(o.formula, unittest.equals('foo')); + checkDataSourceColumnReference(o.reference); + } + buildCounterDataSourceColumn--; +} + +core.int buildCounterDataSourceColumnReference = 0; +buildDataSourceColumnReference() { + var o = new api.DataSourceColumnReference(); + buildCounterDataSourceColumnReference++; + if (buildCounterDataSourceColumnReference < 3) { + o.name = "foo"; + } + buildCounterDataSourceColumnReference--; + return o; +} + +checkDataSourceColumnReference(api.DataSourceColumnReference o) { + buildCounterDataSourceColumnReference++; + if (buildCounterDataSourceColumnReference < 3) { + unittest.expect(o.name, unittest.equals('foo')); + } + buildCounterDataSourceColumnReference--; +} + +core.int buildCounterDataSourceFormula = 0; +buildDataSourceFormula() { + var o = new api.DataSourceFormula(); + buildCounterDataSourceFormula++; + if (buildCounterDataSourceFormula < 3) { + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSourceId = "foo"; + } + buildCounterDataSourceFormula--; + return o; +} + +checkDataSourceFormula(api.DataSourceFormula o) { + buildCounterDataSourceFormula++; + if (buildCounterDataSourceFormula < 3) { + checkDataExecutionStatus(o.dataExecutionStatus); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + } + buildCounterDataSourceFormula--; +} + +core.int buildCounterDataSourceObjectReference = 0; +buildDataSourceObjectReference() { + var o = new api.DataSourceObjectReference(); + buildCounterDataSourceObjectReference++; + if (buildCounterDataSourceObjectReference < 3) { + o.chartId = 42; + o.dataSourceFormulaCell = buildGridCoordinate(); + o.dataSourcePivotTableAnchorCell = buildGridCoordinate(); + o.dataSourceTableAnchorCell = buildGridCoordinate(); + o.sheetId = "foo"; + } + buildCounterDataSourceObjectReference--; + return o; +} + +checkDataSourceObjectReference(api.DataSourceObjectReference o) { + buildCounterDataSourceObjectReference++; + if (buildCounterDataSourceObjectReference < 3) { + unittest.expect(o.chartId, unittest.equals(42)); + checkGridCoordinate(o.dataSourceFormulaCell); + checkGridCoordinate(o.dataSourcePivotTableAnchorCell); + checkGridCoordinate(o.dataSourceTableAnchorCell); + unittest.expect(o.sheetId, unittest.equals('foo')); + } + buildCounterDataSourceObjectReference--; +} + +buildUnnamed152() { + var o = new core.List<api.DataSourceObjectReference>(); + o.add(buildDataSourceObjectReference()); + o.add(buildDataSourceObjectReference()); + return o; +} + +checkUnnamed152(core.List<api.DataSourceObjectReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceObjectReference(o[0]); + checkDataSourceObjectReference(o[1]); +} + +core.int buildCounterDataSourceObjectReferences = 0; +buildDataSourceObjectReferences() { + var o = new api.DataSourceObjectReferences(); + buildCounterDataSourceObjectReferences++; + if (buildCounterDataSourceObjectReferences < 3) { + o.references = buildUnnamed152(); + } + buildCounterDataSourceObjectReferences--; + return o; +} + +checkDataSourceObjectReferences(api.DataSourceObjectReferences o) { + buildCounterDataSourceObjectReferences++; + if (buildCounterDataSourceObjectReferences < 3) { + checkUnnamed152(o.references); + } + buildCounterDataSourceObjectReferences--; +} + +core.int buildCounterDataSourceParameter = 0; +buildDataSourceParameter() { + var o = new api.DataSourceParameter(); + buildCounterDataSourceParameter++; + if (buildCounterDataSourceParameter < 3) { + o.name = "foo"; + o.namedRangeId = "foo"; + o.range = buildGridRange(); + } + buildCounterDataSourceParameter--; + return o; +} + +checkDataSourceParameter(api.DataSourceParameter o) { + buildCounterDataSourceParameter++; + if (buildCounterDataSourceParameter < 3) { + unittest.expect(o.name, unittest.equals('foo')); + unittest.expect(o.namedRangeId, unittest.equals('foo')); + checkGridRange(o.range); + } + buildCounterDataSourceParameter--; +} + +core.int buildCounterDataSourceRefreshDailySchedule = 0; +buildDataSourceRefreshDailySchedule() { + var o = new api.DataSourceRefreshDailySchedule(); + buildCounterDataSourceRefreshDailySchedule++; + if (buildCounterDataSourceRefreshDailySchedule < 3) { + o.startTime = buildTimeOfDay(); + } + buildCounterDataSourceRefreshDailySchedule--; + return o; +} + +checkDataSourceRefreshDailySchedule(api.DataSourceRefreshDailySchedule o) { + buildCounterDataSourceRefreshDailySchedule++; + if (buildCounterDataSourceRefreshDailySchedule < 3) { + checkTimeOfDay(o.startTime); + } + buildCounterDataSourceRefreshDailySchedule--; +} + +buildUnnamed153() { + var o = new core.List<core.int>(); + o.add(42); + o.add(42); + return o; +} + +checkUnnamed153(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 buildCounterDataSourceRefreshMonthlySchedule = 0; +buildDataSourceRefreshMonthlySchedule() { + var o = new api.DataSourceRefreshMonthlySchedule(); + buildCounterDataSourceRefreshMonthlySchedule++; + if (buildCounterDataSourceRefreshMonthlySchedule < 3) { + o.daysOfMonth = buildUnnamed153(); + o.startTime = buildTimeOfDay(); + } + buildCounterDataSourceRefreshMonthlySchedule--; + return o; +} + +checkDataSourceRefreshMonthlySchedule(api.DataSourceRefreshMonthlySchedule o) { + buildCounterDataSourceRefreshMonthlySchedule++; + if (buildCounterDataSourceRefreshMonthlySchedule < 3) { + checkUnnamed153(o.daysOfMonth); + checkTimeOfDay(o.startTime); + } + buildCounterDataSourceRefreshMonthlySchedule--; +} + +core.int buildCounterDataSourceRefreshSchedule = 0; +buildDataSourceRefreshSchedule() { + var o = new api.DataSourceRefreshSchedule(); + buildCounterDataSourceRefreshSchedule++; + if (buildCounterDataSourceRefreshSchedule < 3) { + o.dailySchedule = buildDataSourceRefreshDailySchedule(); + o.enabled = true; + o.monthlySchedule = buildDataSourceRefreshMonthlySchedule(); + o.nextRun = buildInterval(); + o.refreshScope = "foo"; + o.weeklySchedule = buildDataSourceRefreshWeeklySchedule(); + } + buildCounterDataSourceRefreshSchedule--; + return o; +} + +checkDataSourceRefreshSchedule(api.DataSourceRefreshSchedule o) { + buildCounterDataSourceRefreshSchedule++; + if (buildCounterDataSourceRefreshSchedule < 3) { + checkDataSourceRefreshDailySchedule(o.dailySchedule); + unittest.expect(o.enabled, unittest.isTrue); + checkDataSourceRefreshMonthlySchedule(o.monthlySchedule); + checkInterval(o.nextRun); + unittest.expect(o.refreshScope, unittest.equals('foo')); + checkDataSourceRefreshWeeklySchedule(o.weeklySchedule); + } + buildCounterDataSourceRefreshSchedule--; +} + +buildUnnamed154() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed154(core.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 buildCounterDataSourceRefreshWeeklySchedule = 0; +buildDataSourceRefreshWeeklySchedule() { + var o = new api.DataSourceRefreshWeeklySchedule(); + buildCounterDataSourceRefreshWeeklySchedule++; + if (buildCounterDataSourceRefreshWeeklySchedule < 3) { + o.daysOfWeek = buildUnnamed154(); + o.startTime = buildTimeOfDay(); + } + buildCounterDataSourceRefreshWeeklySchedule--; + return o; +} + +checkDataSourceRefreshWeeklySchedule(api.DataSourceRefreshWeeklySchedule o) { + buildCounterDataSourceRefreshWeeklySchedule++; + if (buildCounterDataSourceRefreshWeeklySchedule < 3) { + checkUnnamed154(o.daysOfWeek); + checkTimeOfDay(o.startTime); + } + buildCounterDataSourceRefreshWeeklySchedule--; +} + +buildUnnamed155() { + var o = new core.List<api.DataSourceColumnReference>(); + o.add(buildDataSourceColumnReference()); + o.add(buildDataSourceColumnReference()); + return o; +} + +checkUnnamed155(core.List<api.DataSourceColumnReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceColumnReference(o[0]); + checkDataSourceColumnReference(o[1]); +} + +core.int buildCounterDataSourceSheetDimensionRange = 0; +buildDataSourceSheetDimensionRange() { + var o = new api.DataSourceSheetDimensionRange(); + buildCounterDataSourceSheetDimensionRange++; + if (buildCounterDataSourceSheetDimensionRange < 3) { + o.columnReferences = buildUnnamed155(); + o.sheetId = 42; + } + buildCounterDataSourceSheetDimensionRange--; + return o; +} + +checkDataSourceSheetDimensionRange(api.DataSourceSheetDimensionRange o) { + buildCounterDataSourceSheetDimensionRange++; + if (buildCounterDataSourceSheetDimensionRange < 3) { + checkUnnamed155(o.columnReferences); + unittest.expect(o.sheetId, unittest.equals(42)); + } + buildCounterDataSourceSheetDimensionRange--; +} + +buildUnnamed156() { + var o = new core.List<api.DataSourceColumn>(); + o.add(buildDataSourceColumn()); + o.add(buildDataSourceColumn()); + return o; +} + +checkUnnamed156(core.List<api.DataSourceColumn> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceColumn(o[0]); + checkDataSourceColumn(o[1]); +} + +core.int buildCounterDataSourceSheetProperties = 0; +buildDataSourceSheetProperties() { + var o = new api.DataSourceSheetProperties(); + buildCounterDataSourceSheetProperties++; + if (buildCounterDataSourceSheetProperties < 3) { + o.columns = buildUnnamed156(); + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSourceId = "foo"; + } + buildCounterDataSourceSheetProperties--; + return o; +} + +checkDataSourceSheetProperties(api.DataSourceSheetProperties o) { + buildCounterDataSourceSheetProperties++; + if (buildCounterDataSourceSheetProperties < 3) { + checkUnnamed156(o.columns); + checkDataExecutionStatus(o.dataExecutionStatus); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + } + buildCounterDataSourceSheetProperties--; +} + +buildUnnamed157() { + var o = new core.List<api.DataSourceParameter>(); + o.add(buildDataSourceParameter()); + o.add(buildDataSourceParameter()); + return o; +} + +checkUnnamed157(core.List<api.DataSourceParameter> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceParameter(o[0]); + checkDataSourceParameter(o[1]); +} + +core.int buildCounterDataSourceSpec = 0; +buildDataSourceSpec() { + var o = new api.DataSourceSpec(); + buildCounterDataSourceSpec++; + if (buildCounterDataSourceSpec < 3) { + o.bigQuery = buildBigQueryDataSourceSpec(); + o.parameters = buildUnnamed157(); + } + buildCounterDataSourceSpec--; + return o; +} + +checkDataSourceSpec(api.DataSourceSpec o) { + buildCounterDataSourceSpec++; + if (buildCounterDataSourceSpec < 3) { + checkBigQueryDataSourceSpec(o.bigQuery); + checkUnnamed157(o.parameters); + } + buildCounterDataSourceSpec--; +} + +buildUnnamed158() { + var o = new core.List<api.DataSourceColumnReference>(); + o.add(buildDataSourceColumnReference()); + o.add(buildDataSourceColumnReference()); + return o; +} + +checkUnnamed158(core.List<api.DataSourceColumnReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceColumnReference(o[0]); + checkDataSourceColumnReference(o[1]); +} + +buildUnnamed159() { + var o = new core.List<api.FilterSpec>(); + o.add(buildFilterSpec()); + o.add(buildFilterSpec()); + return o; +} + +checkUnnamed159(core.List<api.FilterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilterSpec(o[0]); + checkFilterSpec(o[1]); +} + +buildUnnamed160() { + var o = new core.List<api.SortSpec>(); + o.add(buildSortSpec()); + o.add(buildSortSpec()); + return o; +} + +checkUnnamed160(core.List<api.SortSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSortSpec(o[0]); + checkSortSpec(o[1]); +} + +core.int buildCounterDataSourceTable = 0; +buildDataSourceTable() { + var o = new api.DataSourceTable(); + buildCounterDataSourceTable++; + if (buildCounterDataSourceTable < 3) { + o.columnSelectionType = "foo"; + o.columns = buildUnnamed158(); + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSourceId = "foo"; + o.filterSpecs = buildUnnamed159(); + o.rowLimit = 42; + o.sortSpecs = buildUnnamed160(); + } + buildCounterDataSourceTable--; + return o; +} + +checkDataSourceTable(api.DataSourceTable o) { + buildCounterDataSourceTable++; + if (buildCounterDataSourceTable < 3) { + unittest.expect(o.columnSelectionType, unittest.equals('foo')); + checkUnnamed158(o.columns); + checkDataExecutionStatus(o.dataExecutionStatus); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + checkUnnamed159(o.filterSpecs); + unittest.expect(o.rowLimit, unittest.equals(42)); + checkUnnamed160(o.sortSpecs); + } + buildCounterDataSourceTable--; +} + core.int buildCounterDataValidationRule = 0; buildDataValidationRule() { var o = new api.DataValidationRule(); @@ -2249,6 +2993,25 @@ buildCounterDeleteConditionalFormatRuleResponse--; } +core.int buildCounterDeleteDataSourceRequest = 0; +buildDeleteDataSourceRequest() { + var o = new api.DeleteDataSourceRequest(); + buildCounterDeleteDataSourceRequest++; + if (buildCounterDeleteDataSourceRequest < 3) { + o.dataSourceId = "foo"; + } + buildCounterDeleteDataSourceRequest--; + return o; +} + +checkDeleteDataSourceRequest(api.DeleteDataSourceRequest o) { + buildCounterDeleteDataSourceRequest++; + if (buildCounterDeleteDataSourceRequest < 3) { + unittest.expect(o.dataSourceId, unittest.equals('foo')); + } + buildCounterDeleteDataSourceRequest--; +} + core.int buildCounterDeleteDeveloperMetadataRequest = 0; buildDeleteDeveloperMetadataRequest() { var o = new api.DeleteDeveloperMetadataRequest(); @@ -2268,14 +3031,14 @@ buildCounterDeleteDeveloperMetadataRequest--; } -buildUnnamed167() { +buildUnnamed161() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed167(core.List<api.DeveloperMetadata> o) { +checkUnnamed161(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -2286,7 +3049,7 @@ var o = new api.DeleteDeveloperMetadataResponse(); buildCounterDeleteDeveloperMetadataResponse++; if (buildCounterDeleteDeveloperMetadataResponse < 3) { - o.deletedDeveloperMetadata = buildUnnamed167(); + o.deletedDeveloperMetadata = buildUnnamed161(); } buildCounterDeleteDeveloperMetadataResponse--; return o; @@ -2295,7 +3058,7 @@ checkDeleteDeveloperMetadataResponse(api.DeleteDeveloperMetadataResponse o) { buildCounterDeleteDeveloperMetadataResponse++; if (buildCounterDeleteDeveloperMetadataResponse < 3) { - checkUnnamed167(o.deletedDeveloperMetadata); + checkUnnamed161(o.deletedDeveloperMetadata); } buildCounterDeleteDeveloperMetadataResponse--; } @@ -2319,14 +3082,14 @@ buildCounterDeleteDimensionGroupRequest--; } -buildUnnamed168() { +buildUnnamed162() { var o = new core.List<api.DimensionGroup>(); o.add(buildDimensionGroup()); o.add(buildDimensionGroup()); return o; } -checkUnnamed168(core.List<api.DimensionGroup> o) { +checkUnnamed162(core.List<api.DimensionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionGroup(o[0]); checkDimensionGroup(o[1]); @@ -2337,7 +3100,7 @@ var o = new api.DeleteDimensionGroupResponse(); buildCounterDeleteDimensionGroupResponse++; if (buildCounterDeleteDimensionGroupResponse < 3) { - o.dimensionGroups = buildUnnamed168(); + o.dimensionGroups = buildUnnamed162(); } buildCounterDeleteDimensionGroupResponse--; return o; @@ -2346,7 +3109,7 @@ checkDeleteDimensionGroupResponse(api.DeleteDimensionGroupResponse o) { buildCounterDeleteDimensionGroupResponse++; if (buildCounterDeleteDimensionGroupResponse < 3) { - checkUnnamed168(o.dimensionGroups); + checkUnnamed162(o.dimensionGroups); } buildCounterDeleteDimensionGroupResponse--; } @@ -2370,14 +3133,14 @@ buildCounterDeleteDimensionRequest--; } -buildUnnamed169() { +buildUnnamed163() { var o = new core.List<api.DimensionRange>(); o.add(buildDimensionRange()); o.add(buildDimensionRange()); return o; } -checkUnnamed169(core.List<api.DimensionRange> o) { +checkUnnamed163(core.List<api.DimensionRange> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionRange(o[0]); checkDimensionRange(o[1]); @@ -2388,7 +3151,7 @@ var o = new api.DeleteDuplicatesRequest(); buildCounterDeleteDuplicatesRequest++; if (buildCounterDeleteDuplicatesRequest < 3) { - o.comparisonColumns = buildUnnamed169(); + o.comparisonColumns = buildUnnamed163(); o.range = buildGridRange(); } buildCounterDeleteDuplicatesRequest--; @@ -2398,7 +3161,7 @@ checkDeleteDuplicatesRequest(api.DeleteDuplicatesRequest o) { buildCounterDeleteDuplicatesRequest++; if (buildCounterDeleteDuplicatesRequest < 3) { - checkUnnamed169(o.comparisonColumns); + checkUnnamed163(o.comparisonColumns); checkGridRange(o.range); } buildCounterDeleteDuplicatesRequest--; @@ -2645,14 +3408,14 @@ buildCounterDimensionGroup--; } -buildUnnamed170() { +buildUnnamed164() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed170(core.List<api.DeveloperMetadata> o) { +checkUnnamed164(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -2663,7 +3426,8 @@ var o = new api.DimensionProperties(); buildCounterDimensionProperties++; if (buildCounterDimensionProperties < 3) { - o.developerMetadata = buildUnnamed170(); + o.dataSourceColumnReference = buildDataSourceColumnReference(); + o.developerMetadata = buildUnnamed164(); o.hiddenByFilter = true; o.hiddenByUser = true; o.pixelSize = 42; @@ -2675,7 +3439,8 @@ checkDimensionProperties(api.DimensionProperties o) { buildCounterDimensionProperties++; if (buildCounterDimensionProperties < 3) { - checkUnnamed170(o.developerMetadata); + checkDataSourceColumnReference(o.dataSourceColumnReference); + checkUnnamed164(o.developerMetadata); unittest.expect(o.hiddenByFilter, unittest.isTrue); unittest.expect(o.hiddenByUser, unittest.isTrue); unittest.expect(o.pixelSize, unittest.equals(42)); @@ -2790,27 +3555,27 @@ buildCounterDuplicateSheetResponse--; } -buildUnnamed171() { +buildUnnamed165() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed171(core.List<core.String> o) { +checkUnnamed165(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed172() { +buildUnnamed166() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed172(core.List<core.String> o) { +checkUnnamed166(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2822,8 +3587,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { o.domainUsersCanEdit = true; - o.groups = buildUnnamed171(); - o.users = buildUnnamed172(); + o.groups = buildUnnamed165(); + o.users = buildUnnamed166(); } buildCounterEditors--; return o; @@ -2833,8 +3598,8 @@ buildCounterEditors++; if (buildCounterEditors < 3) { unittest.expect(o.domainUsersCanEdit, unittest.isTrue); - checkUnnamed171(o.groups); - checkUnnamed172(o.users); + checkUnnamed165(o.groups); + checkUnnamed166(o.users); } buildCounterEditors--; } @@ -2933,14 +3698,14 @@ buildCounterExtendedValue--; } -buildUnnamed173() { +buildUnnamed167() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed173(core.List<core.String> o) { +checkUnnamed167(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2952,7 +3717,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { o.condition = buildBooleanCondition(); - o.hiddenValues = buildUnnamed173(); + o.hiddenValues = buildUnnamed167(); o.visibleBackgroundColor = buildColor(); o.visibleBackgroundColorStyle = buildColorStyle(); o.visibleForegroundColor = buildColor(); @@ -2966,7 +3731,7 @@ buildCounterFilterCriteria++; if (buildCounterFilterCriteria < 3) { checkBooleanCondition(o.condition); - checkUnnamed173(o.hiddenValues); + checkUnnamed167(o.hiddenValues); checkColor(o.visibleBackgroundColor); checkColorStyle(o.visibleBackgroundColorStyle); checkColor(o.visibleForegroundColor); @@ -2975,27 +3740,63 @@ buildCounterFilterCriteria--; } -buildUnnamed174() { +core.int buildCounterFilterSpec = 0; +buildFilterSpec() { + var o = new api.FilterSpec(); + buildCounterFilterSpec++; + if (buildCounterFilterSpec < 3) { + o.columnIndex = 42; + o.dataSourceColumnReference = buildDataSourceColumnReference(); + o.filterCriteria = buildFilterCriteria(); + } + buildCounterFilterSpec--; + return o; +} + +checkFilterSpec(api.FilterSpec o) { + buildCounterFilterSpec++; + if (buildCounterFilterSpec < 3) { + unittest.expect(o.columnIndex, unittest.equals(42)); + checkDataSourceColumnReference(o.dataSourceColumnReference); + checkFilterCriteria(o.filterCriteria); + } + buildCounterFilterSpec--; +} + +buildUnnamed168() { var o = new core.Map<core.String, api.FilterCriteria>(); o["x"] = buildFilterCriteria(); o["y"] = buildFilterCriteria(); return o; } -checkUnnamed174(core.Map<core.String, api.FilterCriteria> o) { +checkUnnamed168(core.Map<core.String, api.FilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterCriteria(o["x"]); checkFilterCriteria(o["y"]); } -buildUnnamed175() { +buildUnnamed169() { + var o = new core.List<api.FilterSpec>(); + o.add(buildFilterSpec()); + o.add(buildFilterSpec()); + return o; +} + +checkUnnamed169(core.List<api.FilterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFilterSpec(o[0]); + checkFilterSpec(o[1]); +} + +buildUnnamed170() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed175(core.List<api.SortSpec> o) { +checkUnnamed170(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -3006,11 +3807,12 @@ var o = new api.FilterView(); buildCounterFilterView++; if (buildCounterFilterView < 3) { - o.criteria = buildUnnamed174(); + o.criteria = buildUnnamed168(); + o.filterSpecs = buildUnnamed169(); o.filterViewId = 42; o.namedRangeId = "foo"; o.range = buildGridRange(); - o.sortSpecs = buildUnnamed175(); + o.sortSpecs = buildUnnamed170(); o.title = "foo"; } buildCounterFilterView--; @@ -3020,11 +3822,12 @@ checkFilterView(api.FilterView o) { buildCounterFilterView++; if (buildCounterFilterView < 3) { - checkUnnamed174(o.criteria); + checkUnnamed168(o.criteria); + checkUnnamed169(o.filterSpecs); unittest.expect(o.filterViewId, unittest.equals(42)); unittest.expect(o.namedRangeId, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed175(o.sortSpecs); + checkUnnamed170(o.sortSpecs); unittest.expect(o.title, unittest.equals('foo')); } buildCounterFilterView--; @@ -3092,14 +3895,14 @@ buildCounterFindReplaceResponse--; } -buildUnnamed176() { +buildUnnamed171() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed176(core.List<api.DataFilter> o) { +checkUnnamed171(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -3110,7 +3913,7 @@ var o = new api.GetSpreadsheetByDataFilterRequest(); buildCounterGetSpreadsheetByDataFilterRequest++; if (buildCounterGetSpreadsheetByDataFilterRequest < 3) { - o.dataFilters = buildUnnamed176(); + o.dataFilters = buildUnnamed171(); o.includeGridData = true; } buildCounterGetSpreadsheetByDataFilterRequest--; @@ -3121,7 +3924,7 @@ api.GetSpreadsheetByDataFilterRequest o) { buildCounterGetSpreadsheetByDataFilterRequest++; if (buildCounterGetSpreadsheetByDataFilterRequest < 3) { - checkUnnamed176(o.dataFilters); + checkUnnamed171(o.dataFilters); unittest.expect(o.includeGridData, unittest.isTrue); } buildCounterGetSpreadsheetByDataFilterRequest--; @@ -3173,40 +3976,40 @@ buildCounterGridCoordinate--; } -buildUnnamed177() { +buildUnnamed172() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed177(core.List<api.DimensionProperties> o) { +checkUnnamed172(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); } -buildUnnamed178() { +buildUnnamed173() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed178(core.List<api.RowData> o) { +checkUnnamed173(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); } -buildUnnamed179() { +buildUnnamed174() { var o = new core.List<api.DimensionProperties>(); o.add(buildDimensionProperties()); o.add(buildDimensionProperties()); return o; } -checkUnnamed179(core.List<api.DimensionProperties> o) { +checkUnnamed174(core.List<api.DimensionProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionProperties(o[0]); checkDimensionProperties(o[1]); @@ -3217,9 +4020,9 @@ var o = new api.GridData(); buildCounterGridData++; if (buildCounterGridData < 3) { - o.columnMetadata = buildUnnamed177(); - o.rowData = buildUnnamed178(); - o.rowMetadata = buildUnnamed179(); + o.columnMetadata = buildUnnamed172(); + o.rowData = buildUnnamed173(); + o.rowMetadata = buildUnnamed174(); o.startColumn = 42; o.startRow = 42; } @@ -3230,9 +4033,9 @@ checkGridData(api.GridData o) { buildCounterGridData++; if (buildCounterGridData < 3) { - checkUnnamed177(o.columnMetadata); - checkUnnamed178(o.rowData); - checkUnnamed179(o.rowMetadata); + checkUnnamed172(o.columnMetadata); + checkUnnamed173(o.rowData); + checkUnnamed174(o.rowMetadata); unittest.expect(o.startColumn, unittest.equals(42)); unittest.expect(o.startRow, unittest.equals(42)); } @@ -3297,14 +4100,14 @@ buildCounterGridRange--; } -buildUnnamed180() { +buildUnnamed175() { var o = new core.List<api.HistogramSeries>(); o.add(buildHistogramSeries()); o.add(buildHistogramSeries()); return o; } -checkUnnamed180(core.List<api.HistogramSeries> o) { +checkUnnamed175(core.List<api.HistogramSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkHistogramSeries(o[0]); checkHistogramSeries(o[1]); @@ -3318,7 +4121,7 @@ o.bucketSize = 42.0; o.legendPosition = "foo"; o.outlierPercentile = 42.0; - o.series = buildUnnamed180(); + o.series = buildUnnamed175(); o.showItemDividers = true; } buildCounterHistogramChartSpec--; @@ -3331,7 +4134,7 @@ unittest.expect(o.bucketSize, unittest.equals(42.0)); unittest.expect(o.legendPosition, unittest.equals('foo')); unittest.expect(o.outlierPercentile, unittest.equals(42.0)); - checkUnnamed180(o.series); + checkUnnamed175(o.series); unittest.expect(o.showItemDividers, unittest.isTrue); } buildCounterHistogramChartSpec--; @@ -3450,6 +4253,27 @@ buildCounterInterpolationPoint--; } +core.int buildCounterInterval = 0; +buildInterval() { + var o = new api.Interval(); + buildCounterInterval++; + if (buildCounterInterval < 3) { + o.endTime = "foo"; + o.startTime = "foo"; + } + buildCounterInterval--; + return o; +} + +checkInterval(api.Interval o) { + buildCounterInterval++; + if (buildCounterInterval < 3) { + unittest.expect(o.endTime, unittest.equals('foo')); + unittest.expect(o.startTime, unittest.equals('foo')); + } + buildCounterInterval--; +} + core.int buildCounterIterativeCalculationSettings = 0; buildIterativeCalculationSettings() { var o = new api.IterativeCalculationSettings(); @@ -3513,14 +4337,14 @@ buildCounterLineStyle--; } -buildUnnamed181() { +buildUnnamed176() { var o = new core.List<api.ManualRuleGroup>(); o.add(buildManualRuleGroup()); o.add(buildManualRuleGroup()); return o; } -checkUnnamed181(core.List<api.ManualRuleGroup> o) { +checkUnnamed176(core.List<api.ManualRuleGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkManualRuleGroup(o[0]); checkManualRuleGroup(o[1]); @@ -3531,7 +4355,7 @@ var o = new api.ManualRule(); buildCounterManualRule++; if (buildCounterManualRule < 3) { - o.groups = buildUnnamed181(); + o.groups = buildUnnamed176(); } buildCounterManualRule--; return o; @@ -3540,19 +4364,19 @@ checkManualRule(api.ManualRule o) { buildCounterManualRule++; if (buildCounterManualRule < 3) { - checkUnnamed181(o.groups); + checkUnnamed176(o.groups); } buildCounterManualRule--; } -buildUnnamed182() { +buildUnnamed177() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed182(core.List<api.ExtendedValue> o) { +checkUnnamed177(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -3564,7 +4388,7 @@ buildCounterManualRuleGroup++; if (buildCounterManualRuleGroup < 3) { o.groupName = buildExtendedValue(); - o.items = buildUnnamed182(); + o.items = buildUnnamed177(); } buildCounterManualRuleGroup--; return o; @@ -3574,19 +4398,19 @@ buildCounterManualRuleGroup++; if (buildCounterManualRuleGroup < 3) { checkExtendedValue(o.groupName); - checkUnnamed182(o.items); + checkUnnamed177(o.items); } buildCounterManualRuleGroup--; } -buildUnnamed183() { +buildUnnamed178() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed183(core.List<api.DataFilter> o) { +checkUnnamed178(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -3597,7 +4421,7 @@ var o = new api.MatchedDeveloperMetadata(); buildCounterMatchedDeveloperMetadata++; if (buildCounterMatchedDeveloperMetadata < 3) { - o.dataFilters = buildUnnamed183(); + o.dataFilters = buildUnnamed178(); o.developerMetadata = buildDeveloperMetadata(); } buildCounterMatchedDeveloperMetadata--; @@ -3607,20 +4431,20 @@ checkMatchedDeveloperMetadata(api.MatchedDeveloperMetadata o) { buildCounterMatchedDeveloperMetadata++; if (buildCounterMatchedDeveloperMetadata < 3) { - checkUnnamed183(o.dataFilters); + checkUnnamed178(o.dataFilters); checkDeveloperMetadata(o.developerMetadata); } buildCounterMatchedDeveloperMetadata--; } -buildUnnamed184() { +buildUnnamed179() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed184(core.List<api.DataFilter> o) { +checkUnnamed179(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -3631,7 +4455,7 @@ var o = new api.MatchedValueRange(); buildCounterMatchedValueRange++; if (buildCounterMatchedValueRange < 3) { - o.dataFilters = buildUnnamed184(); + o.dataFilters = buildUnnamed179(); o.valueRange = buildValueRange(); } buildCounterMatchedValueRange--; @@ -3641,7 +4465,7 @@ checkMatchedValueRange(api.MatchedValueRange o) { buildCounterMatchedValueRange++; if (buildCounterMatchedValueRange < 3) { - checkUnnamed184(o.dataFilters); + checkUnnamed179(o.dataFilters); checkValueRange(o.valueRange); } buildCounterMatchedValueRange--; @@ -3872,14 +4696,14 @@ buildCounterPieChartSpec--; } -buildUnnamed185() { +buildUnnamed180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed185(core.List<core.String> o) { +checkUnnamed180(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3890,7 +4714,7 @@ var o = new api.PivotFilterCriteria(); buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - o.visibleValues = buildUnnamed185(); + o.visibleValues = buildUnnamed180(); } buildCounterPivotFilterCriteria--; return o; @@ -3899,19 +4723,42 @@ checkPivotFilterCriteria(api.PivotFilterCriteria o) { buildCounterPivotFilterCriteria++; if (buildCounterPivotFilterCriteria < 3) { - checkUnnamed185(o.visibleValues); + checkUnnamed180(o.visibleValues); } buildCounterPivotFilterCriteria--; } -buildUnnamed186() { +core.int buildCounterPivotFilterSpec = 0; +buildPivotFilterSpec() { + var o = new api.PivotFilterSpec(); + buildCounterPivotFilterSpec++; + if (buildCounterPivotFilterSpec < 3) { + o.columnOffsetIndex = 42; + o.dataSourceColumnReference = buildDataSourceColumnReference(); + o.filterCriteria = buildPivotFilterCriteria(); + } + buildCounterPivotFilterSpec--; + return o; +} + +checkPivotFilterSpec(api.PivotFilterSpec o) { + buildCounterPivotFilterSpec++; + if (buildCounterPivotFilterSpec < 3) { + unittest.expect(o.columnOffsetIndex, unittest.equals(42)); + checkDataSourceColumnReference(o.dataSourceColumnReference); + checkPivotFilterCriteria(o.filterCriteria); + } + buildCounterPivotFilterSpec--; +} + +buildUnnamed181() { var o = new core.List<api.PivotGroupValueMetadata>(); o.add(buildPivotGroupValueMetadata()); o.add(buildPivotGroupValueMetadata()); return o; } -checkUnnamed186(core.List<api.PivotGroupValueMetadata> o) { +checkUnnamed181(core.List<api.PivotGroupValueMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroupValueMetadata(o[0]); checkPivotGroupValueMetadata(o[1]); @@ -3922,6 +4769,8 @@ var o = new api.PivotGroup(); buildCounterPivotGroup++; if (buildCounterPivotGroup < 3) { + o.dataSourceColumnReference = buildDataSourceColumnReference(); + o.groupLimit = buildPivotGroupLimit(); o.groupRule = buildPivotGroupRule(); o.label = "foo"; o.repeatHeadings = true; @@ -3929,7 +4778,7 @@ o.sortOrder = "foo"; o.sourceColumnOffset = 42; o.valueBucket = buildPivotGroupSortValueBucket(); - o.valueMetadata = buildUnnamed186(); + o.valueMetadata = buildUnnamed181(); } buildCounterPivotGroup--; return o; @@ -3938,6 +4787,8 @@ checkPivotGroup(api.PivotGroup o) { buildCounterPivotGroup++; if (buildCounterPivotGroup < 3) { + checkDataSourceColumnReference(o.dataSourceColumnReference); + checkPivotGroupLimit(o.groupLimit); checkPivotGroupRule(o.groupRule); unittest.expect(o.label, unittest.equals('foo')); unittest.expect(o.repeatHeadings, unittest.isTrue); @@ -3945,11 +4796,32 @@ unittest.expect(o.sortOrder, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); checkPivotGroupSortValueBucket(o.valueBucket); - checkUnnamed186(o.valueMetadata); + checkUnnamed181(o.valueMetadata); } buildCounterPivotGroup--; } +core.int buildCounterPivotGroupLimit = 0; +buildPivotGroupLimit() { + var o = new api.PivotGroupLimit(); + buildCounterPivotGroupLimit++; + if (buildCounterPivotGroupLimit < 3) { + o.applyOrder = 42; + o.countLimit = 42; + } + buildCounterPivotGroupLimit--; + return o; +} + +checkPivotGroupLimit(api.PivotGroupLimit o) { + buildCounterPivotGroupLimit++; + if (buildCounterPivotGroupLimit < 3) { + unittest.expect(o.applyOrder, unittest.equals(42)); + unittest.expect(o.countLimit, unittest.equals(42)); + } + buildCounterPivotGroupLimit--; +} + core.int buildCounterPivotGroupRule = 0; buildPivotGroupRule() { var o = new api.PivotGroupRule(); @@ -3973,14 +4845,14 @@ buildCounterPivotGroupRule--; } -buildUnnamed187() { +buildUnnamed182() { var o = new core.List<api.ExtendedValue>(); o.add(buildExtendedValue()); o.add(buildExtendedValue()); return o; } -checkUnnamed187(core.List<api.ExtendedValue> o) { +checkUnnamed182(core.List<api.ExtendedValue> o) { unittest.expect(o, unittest.hasLength(2)); checkExtendedValue(o[0]); checkExtendedValue(o[1]); @@ -3991,7 +4863,7 @@ var o = new api.PivotGroupSortValueBucket(); buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - o.buckets = buildUnnamed187(); + o.buckets = buildUnnamed182(); o.valuesIndex = 42; } buildCounterPivotGroupSortValueBucket--; @@ -4001,7 +4873,7 @@ checkPivotGroupSortValueBucket(api.PivotGroupSortValueBucket o) { buildCounterPivotGroupSortValueBucket++; if (buildCounterPivotGroupSortValueBucket < 3) { - checkUnnamed187(o.buckets); + checkUnnamed182(o.buckets); unittest.expect(o.valuesIndex, unittest.equals(42)); } buildCounterPivotGroupSortValueBucket--; @@ -4028,53 +4900,66 @@ buildCounterPivotGroupValueMetadata--; } -buildUnnamed188() { +buildUnnamed183() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed188(core.List<api.PivotGroup> o) { +checkUnnamed183(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed189() { +buildUnnamed184() { var o = new core.Map<core.String, api.PivotFilterCriteria>(); o["x"] = buildPivotFilterCriteria(); o["y"] = buildPivotFilterCriteria(); return o; } -checkUnnamed189(core.Map<core.String, api.PivotFilterCriteria> o) { +checkUnnamed184(core.Map<core.String, api.PivotFilterCriteria> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotFilterCriteria(o["x"]); checkPivotFilterCriteria(o["y"]); } -buildUnnamed190() { +buildUnnamed185() { + var o = new core.List<api.PivotFilterSpec>(); + o.add(buildPivotFilterSpec()); + o.add(buildPivotFilterSpec()); + return o; +} + +checkUnnamed185(core.List<api.PivotFilterSpec> o) { + unittest.expect(o, unittest.hasLength(2)); + checkPivotFilterSpec(o[0]); + checkPivotFilterSpec(o[1]); +} + +buildUnnamed186() { var o = new core.List<api.PivotGroup>(); o.add(buildPivotGroup()); o.add(buildPivotGroup()); return o; } -checkUnnamed190(core.List<api.PivotGroup> o) { +checkUnnamed186(core.List<api.PivotGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotGroup(o[0]); checkPivotGroup(o[1]); } -buildUnnamed191() { +buildUnnamed187() { var o = new core.List<api.PivotValue>(); o.add(buildPivotValue()); o.add(buildPivotValue()); return o; } -checkUnnamed191(core.List<api.PivotValue> o) { +checkUnnamed187(core.List<api.PivotValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPivotValue(o[0]); checkPivotValue(o[1]); @@ -4085,12 +4970,15 @@ var o = new api.PivotTable(); buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - o.columns = buildUnnamed188(); - o.criteria = buildUnnamed189(); - o.rows = buildUnnamed190(); + o.columns = buildUnnamed183(); + o.criteria = buildUnnamed184(); + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSourceId = "foo"; + o.filterSpecs = buildUnnamed185(); + o.rows = buildUnnamed186(); o.source = buildGridRange(); o.valueLayout = "foo"; - o.values = buildUnnamed191(); + o.values = buildUnnamed187(); } buildCounterPivotTable--; return o; @@ -4099,12 +4987,15 @@ checkPivotTable(api.PivotTable o) { buildCounterPivotTable++; if (buildCounterPivotTable < 3) { - checkUnnamed188(o.columns); - checkUnnamed189(o.criteria); - checkUnnamed190(o.rows); + checkUnnamed183(o.columns); + checkUnnamed184(o.criteria); + checkDataExecutionStatus(o.dataExecutionStatus); + unittest.expect(o.dataSourceId, unittest.equals('foo')); + checkUnnamed185(o.filterSpecs); + checkUnnamed186(o.rows); checkGridRange(o.source); unittest.expect(o.valueLayout, unittest.equals('foo')); - checkUnnamed191(o.values); + checkUnnamed187(o.values); } buildCounterPivotTable--; } @@ -4115,6 +5006,7 @@ buildCounterPivotValue++; if (buildCounterPivotValue < 3) { o.calculatedDisplayType = "foo"; + o.dataSourceColumnReference = buildDataSourceColumnReference(); o.formula = "foo"; o.name = "foo"; o.sourceColumnOffset = 42; @@ -4128,6 +5020,7 @@ buildCounterPivotValue++; if (buildCounterPivotValue < 3) { unittest.expect(o.calculatedDisplayType, unittest.equals('foo')); + checkDataSourceColumnReference(o.dataSourceColumnReference); unittest.expect(o.formula, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.sourceColumnOffset, unittest.equals(42)); @@ -4136,14 +5029,14 @@ buildCounterPivotValue--; } -buildUnnamed192() { +buildUnnamed188() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed192(core.List<api.GridRange> o) { +checkUnnamed188(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); @@ -4160,7 +5053,7 @@ o.protectedRangeId = 42; o.range = buildGridRange(); o.requestingUserCanEdit = true; - o.unprotectedRanges = buildUnnamed192(); + o.unprotectedRanges = buildUnnamed188(); o.warningOnly = true; } buildCounterProtectedRange--; @@ -4176,7 +5069,7 @@ unittest.expect(o.protectedRangeId, unittest.equals(42)); checkGridRange(o.range); unittest.expect(o.requestingUserCanEdit, unittest.isTrue); - checkUnnamed192(o.unprotectedRanges); + checkUnnamed188(o.unprotectedRanges); unittest.expect(o.warningOnly, unittest.isTrue); } buildCounterProtectedRange--; @@ -4201,6 +5094,85 @@ buildCounterRandomizeRangeRequest--; } +core.int buildCounterRefreshDataSourceObjectExecutionStatus = 0; +buildRefreshDataSourceObjectExecutionStatus() { + var o = new api.RefreshDataSourceObjectExecutionStatus(); + buildCounterRefreshDataSourceObjectExecutionStatus++; + if (buildCounterRefreshDataSourceObjectExecutionStatus < 3) { + o.dataExecutionStatus = buildDataExecutionStatus(); + o.reference = buildDataSourceObjectReference(); + } + buildCounterRefreshDataSourceObjectExecutionStatus--; + return o; +} + +checkRefreshDataSourceObjectExecutionStatus( + api.RefreshDataSourceObjectExecutionStatus o) { + buildCounterRefreshDataSourceObjectExecutionStatus++; + if (buildCounterRefreshDataSourceObjectExecutionStatus < 3) { + checkDataExecutionStatus(o.dataExecutionStatus); + checkDataSourceObjectReference(o.reference); + } + buildCounterRefreshDataSourceObjectExecutionStatus--; +} + +core.int buildCounterRefreshDataSourceRequest = 0; +buildRefreshDataSourceRequest() { + var o = new api.RefreshDataSourceRequest(); + buildCounterRefreshDataSourceRequest++; + if (buildCounterRefreshDataSourceRequest < 3) { + o.dataSourceId = "foo"; + o.force = true; + o.isAll = true; + o.references = buildDataSourceObjectReferences(); + } + buildCounterRefreshDataSourceRequest--; + return o; +} + +checkRefreshDataSourceRequest(api.RefreshDataSourceRequest o) { + buildCounterRefreshDataSourceRequest++; + if (buildCounterRefreshDataSourceRequest < 3) { + unittest.expect(o.dataSourceId, unittest.equals('foo')); + unittest.expect(o.force, unittest.isTrue); + unittest.expect(o.isAll, unittest.isTrue); + checkDataSourceObjectReferences(o.references); + } + buildCounterRefreshDataSourceRequest--; +} + +buildUnnamed189() { + var o = new core.List<api.RefreshDataSourceObjectExecutionStatus>(); + o.add(buildRefreshDataSourceObjectExecutionStatus()); + o.add(buildRefreshDataSourceObjectExecutionStatus()); + return o; +} + +checkUnnamed189(core.List<api.RefreshDataSourceObjectExecutionStatus> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRefreshDataSourceObjectExecutionStatus(o[0]); + checkRefreshDataSourceObjectExecutionStatus(o[1]); +} + +core.int buildCounterRefreshDataSourceResponse = 0; +buildRefreshDataSourceResponse() { + var o = new api.RefreshDataSourceResponse(); + buildCounterRefreshDataSourceResponse++; + if (buildCounterRefreshDataSourceResponse < 3) { + o.statuses = buildUnnamed189(); + } + buildCounterRefreshDataSourceResponse--; + return o; +} + +checkRefreshDataSourceResponse(api.RefreshDataSourceResponse o) { + buildCounterRefreshDataSourceResponse++; + if (buildCounterRefreshDataSourceResponse < 3) { + checkUnnamed189(o.statuses); + } + buildCounterRefreshDataSourceResponse--; +} + core.int buildCounterRepeatCellRequest = 0; buildRepeatCellRequest() { var o = new api.RepeatCellRequest(); @@ -4232,6 +5204,7 @@ o.addBanding = buildAddBandingRequest(); o.addChart = buildAddChartRequest(); o.addConditionalFormatRule = buildAddConditionalFormatRuleRequest(); + o.addDataSource = buildAddDataSourceRequest(); o.addDimensionGroup = buildAddDimensionGroupRequest(); o.addFilterView = buildAddFilterViewRequest(); o.addNamedRange = buildAddNamedRangeRequest(); @@ -4248,6 +5221,7 @@ o.cutPaste = buildCutPasteRequest(); o.deleteBanding = buildDeleteBandingRequest(); o.deleteConditionalFormatRule = buildDeleteConditionalFormatRuleRequest(); + o.deleteDataSource = buildDeleteDataSourceRequest(); o.deleteDeveloperMetadata = buildDeleteDeveloperMetadataRequest(); o.deleteDimension = buildDeleteDimensionRequest(); o.deleteDimensionGroup = buildDeleteDimensionGroupRequest(); @@ -4267,6 +5241,7 @@ o.moveDimension = buildMoveDimensionRequest(); o.pasteData = buildPasteDataRequest(); o.randomizeRange = buildRandomizeRangeRequest(); + o.refreshDataSource = buildRefreshDataSourceRequest(); o.repeatCell = buildRepeatCellRequest(); o.setBasicFilter = buildSetBasicFilterRequest(); o.setDataValidation = buildSetDataValidationRequest(); @@ -4279,6 +5254,7 @@ o.updateCells = buildUpdateCellsRequest(); o.updateChartSpec = buildUpdateChartSpecRequest(); o.updateConditionalFormatRule = buildUpdateConditionalFormatRuleRequest(); + o.updateDataSource = buildUpdateDataSourceRequest(); o.updateDeveloperMetadata = buildUpdateDeveloperMetadataRequest(); o.updateDimensionGroup = buildUpdateDimensionGroupRequest(); o.updateDimensionProperties = buildUpdateDimensionPropertiesRequest(); @@ -4300,6 +5276,7 @@ checkAddBandingRequest(o.addBanding); checkAddChartRequest(o.addChart); checkAddConditionalFormatRuleRequest(o.addConditionalFormatRule); + checkAddDataSourceRequest(o.addDataSource); checkAddDimensionGroupRequest(o.addDimensionGroup); checkAddFilterViewRequest(o.addFilterView); checkAddNamedRangeRequest(o.addNamedRange); @@ -4316,6 +5293,7 @@ checkCutPasteRequest(o.cutPaste); checkDeleteBandingRequest(o.deleteBanding); checkDeleteConditionalFormatRuleRequest(o.deleteConditionalFormatRule); + checkDeleteDataSourceRequest(o.deleteDataSource); checkDeleteDeveloperMetadataRequest(o.deleteDeveloperMetadata); checkDeleteDimensionRequest(o.deleteDimension); checkDeleteDimensionGroupRequest(o.deleteDimensionGroup); @@ -4335,6 +5313,7 @@ checkMoveDimensionRequest(o.moveDimension); checkPasteDataRequest(o.pasteData); checkRandomizeRangeRequest(o.randomizeRange); + checkRefreshDataSourceRequest(o.refreshDataSource); checkRepeatCellRequest(o.repeatCell); checkSetBasicFilterRequest(o.setBasicFilter); checkSetDataValidationRequest(o.setDataValidation); @@ -4347,6 +5326,7 @@ checkUpdateCellsRequest(o.updateCells); checkUpdateChartSpecRequest(o.updateChartSpec); checkUpdateConditionalFormatRuleRequest(o.updateConditionalFormatRule); + checkUpdateDataSourceRequest(o.updateDataSource); checkUpdateDeveloperMetadataRequest(o.updateDeveloperMetadata); checkUpdateDimensionGroupRequest(o.updateDimensionGroup); checkUpdateDimensionPropertiesRequest(o.updateDimensionProperties); @@ -4368,6 +5348,7 @@ if (buildCounterResponse < 3) { o.addBanding = buildAddBandingResponse(); o.addChart = buildAddChartResponse(); + o.addDataSource = buildAddDataSourceResponse(); o.addDimensionGroup = buildAddDimensionGroupResponse(); o.addFilterView = buildAddFilterViewResponse(); o.addNamedRange = buildAddNamedRangeResponse(); @@ -4382,8 +5363,10 @@ o.duplicateFilterView = buildDuplicateFilterViewResponse(); o.duplicateSheet = buildDuplicateSheetResponse(); o.findReplace = buildFindReplaceResponse(); + o.refreshDataSource = buildRefreshDataSourceResponse(); o.trimWhitespace = buildTrimWhitespaceResponse(); o.updateConditionalFormatRule = buildUpdateConditionalFormatRuleResponse(); + o.updateDataSource = buildUpdateDataSourceResponse(); o.updateDeveloperMetadata = buildUpdateDeveloperMetadataResponse(); o.updateEmbeddedObjectPosition = buildUpdateEmbeddedObjectPositionResponse(); @@ -4397,6 +5380,7 @@ if (buildCounterResponse < 3) { checkAddBandingResponse(o.addBanding); checkAddChartResponse(o.addChart); + checkAddDataSourceResponse(o.addDataSource); checkAddDimensionGroupResponse(o.addDimensionGroup); checkAddFilterViewResponse(o.addFilterView); checkAddNamedRangeResponse(o.addNamedRange); @@ -4411,22 +5395,24 @@ checkDuplicateFilterViewResponse(o.duplicateFilterView); checkDuplicateSheetResponse(o.duplicateSheet); checkFindReplaceResponse(o.findReplace); + checkRefreshDataSourceResponse(o.refreshDataSource); checkTrimWhitespaceResponse(o.trimWhitespace); checkUpdateConditionalFormatRuleResponse(o.updateConditionalFormatRule); + checkUpdateDataSourceResponse(o.updateDataSource); checkUpdateDeveloperMetadataResponse(o.updateDeveloperMetadata); checkUpdateEmbeddedObjectPositionResponse(o.updateEmbeddedObjectPosition); } buildCounterResponse--; } -buildUnnamed193() { +buildUnnamed190() { var o = new core.List<api.CellData>(); o.add(buildCellData()); o.add(buildCellData()); return o; } -checkUnnamed193(core.List<api.CellData> o) { +checkUnnamed190(core.List<api.CellData> o) { unittest.expect(o, unittest.hasLength(2)); checkCellData(o[0]); checkCellData(o[1]); @@ -4437,7 +5423,7 @@ var o = new api.RowData(); buildCounterRowData++; if (buildCounterRowData < 3) { - o.values = buildUnnamed193(); + o.values = buildUnnamed190(); } buildCounterRowData--; return o; @@ -4446,7 +5432,7 @@ checkRowData(api.RowData o) { buildCounterRowData++; if (buildCounterRowData < 3) { - checkUnnamed193(o.values); + checkUnnamed190(o.values); } buildCounterRowData--; } @@ -4484,14 +5470,14 @@ buildCounterScorecardChartSpec--; } -buildUnnamed194() { +buildUnnamed191() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed194(core.List<api.DataFilter> o) { +checkUnnamed191(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -4502,7 +5488,7 @@ var o = new api.SearchDeveloperMetadataRequest(); buildCounterSearchDeveloperMetadataRequest++; if (buildCounterSearchDeveloperMetadataRequest < 3) { - o.dataFilters = buildUnnamed194(); + o.dataFilters = buildUnnamed191(); } buildCounterSearchDeveloperMetadataRequest--; return o; @@ -4511,19 +5497,19 @@ checkSearchDeveloperMetadataRequest(api.SearchDeveloperMetadataRequest o) { buildCounterSearchDeveloperMetadataRequest++; if (buildCounterSearchDeveloperMetadataRequest < 3) { - checkUnnamed194(o.dataFilters); + checkUnnamed191(o.dataFilters); } buildCounterSearchDeveloperMetadataRequest--; } -buildUnnamed195() { +buildUnnamed192() { var o = new core.List<api.MatchedDeveloperMetadata>(); o.add(buildMatchedDeveloperMetadata()); o.add(buildMatchedDeveloperMetadata()); return o; } -checkUnnamed195(core.List<api.MatchedDeveloperMetadata> o) { +checkUnnamed192(core.List<api.MatchedDeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkMatchedDeveloperMetadata(o[0]); checkMatchedDeveloperMetadata(o[1]); @@ -4534,7 +5520,7 @@ var o = new api.SearchDeveloperMetadataResponse(); buildCounterSearchDeveloperMetadataResponse++; if (buildCounterSearchDeveloperMetadataResponse < 3) { - o.matchedDeveloperMetadata = buildUnnamed195(); + o.matchedDeveloperMetadata = buildUnnamed192(); } buildCounterSearchDeveloperMetadataResponse--; return o; @@ -4543,7 +5529,7 @@ checkSearchDeveloperMetadataResponse(api.SearchDeveloperMetadataResponse o) { buildCounterSearchDeveloperMetadataResponse++; if (buildCounterSearchDeveloperMetadataResponse < 3) { - checkUnnamed195(o.matchedDeveloperMetadata); + checkUnnamed192(o.matchedDeveloperMetadata); } buildCounterSearchDeveloperMetadataResponse--; } @@ -4588,144 +5574,144 @@ buildCounterSetDataValidationRequest--; } -buildUnnamed196() { +buildUnnamed193() { var o = new core.List<api.BandedRange>(); o.add(buildBandedRange()); o.add(buildBandedRange()); return o; } -checkUnnamed196(core.List<api.BandedRange> o) { +checkUnnamed193(core.List<api.BandedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkBandedRange(o[0]); checkBandedRange(o[1]); } -buildUnnamed197() { +buildUnnamed194() { var o = new core.List<api.EmbeddedChart>(); o.add(buildEmbeddedChart()); o.add(buildEmbeddedChart()); return o; } -checkUnnamed197(core.List<api.EmbeddedChart> o) { +checkUnnamed194(core.List<api.EmbeddedChart> o) { unittest.expect(o, unittest.hasLength(2)); checkEmbeddedChart(o[0]); checkEmbeddedChart(o[1]); } -buildUnnamed198() { +buildUnnamed195() { var o = new core.List<api.DimensionGroup>(); o.add(buildDimensionGroup()); o.add(buildDimensionGroup()); return o; } -checkUnnamed198(core.List<api.DimensionGroup> o) { +checkUnnamed195(core.List<api.DimensionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionGroup(o[0]); checkDimensionGroup(o[1]); } -buildUnnamed199() { +buildUnnamed196() { var o = new core.List<api.ConditionalFormatRule>(); o.add(buildConditionalFormatRule()); o.add(buildConditionalFormatRule()); return o; } -checkUnnamed199(core.List<api.ConditionalFormatRule> o) { +checkUnnamed196(core.List<api.ConditionalFormatRule> o) { unittest.expect(o, unittest.hasLength(2)); checkConditionalFormatRule(o[0]); checkConditionalFormatRule(o[1]); } -buildUnnamed200() { +buildUnnamed197() { var o = new core.List<api.GridData>(); o.add(buildGridData()); o.add(buildGridData()); return o; } -checkUnnamed200(core.List<api.GridData> o) { +checkUnnamed197(core.List<api.GridData> o) { unittest.expect(o, unittest.hasLength(2)); checkGridData(o[0]); checkGridData(o[1]); } -buildUnnamed201() { +buildUnnamed198() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed201(core.List<api.DeveloperMetadata> o) { +checkUnnamed198(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); } -buildUnnamed202() { +buildUnnamed199() { var o = new core.List<api.FilterView>(); o.add(buildFilterView()); o.add(buildFilterView()); return o; } -checkUnnamed202(core.List<api.FilterView> o) { +checkUnnamed199(core.List<api.FilterView> o) { unittest.expect(o, unittest.hasLength(2)); checkFilterView(o[0]); checkFilterView(o[1]); } -buildUnnamed203() { +buildUnnamed200() { var o = new core.List<api.GridRange>(); o.add(buildGridRange()); o.add(buildGridRange()); return o; } -checkUnnamed203(core.List<api.GridRange> o) { +checkUnnamed200(core.List<api.GridRange> o) { unittest.expect(o, unittest.hasLength(2)); checkGridRange(o[0]); checkGridRange(o[1]); } -buildUnnamed204() { +buildUnnamed201() { var o = new core.List<api.ProtectedRange>(); o.add(buildProtectedRange()); o.add(buildProtectedRange()); return o; } -checkUnnamed204(core.List<api.ProtectedRange> o) { +checkUnnamed201(core.List<api.ProtectedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkProtectedRange(o[0]); checkProtectedRange(o[1]); } -buildUnnamed205() { +buildUnnamed202() { var o = new core.List<api.DimensionGroup>(); o.add(buildDimensionGroup()); o.add(buildDimensionGroup()); return o; } -checkUnnamed205(core.List<api.DimensionGroup> o) { +checkUnnamed202(core.List<api.DimensionGroup> o) { unittest.expect(o, unittest.hasLength(2)); checkDimensionGroup(o[0]); checkDimensionGroup(o[1]); } -buildUnnamed206() { +buildUnnamed203() { var o = new core.List<api.Slicer>(); o.add(buildSlicer()); o.add(buildSlicer()); return o; } -checkUnnamed206(core.List<api.Slicer> o) { +checkUnnamed203(core.List<api.Slicer> o) { unittest.expect(o, unittest.hasLength(2)); checkSlicer(o[0]); checkSlicer(o[1]); @@ -4736,19 +5722,19 @@ var o = new api.Sheet(); buildCounterSheet++; if (buildCounterSheet < 3) { - o.bandedRanges = buildUnnamed196(); + o.bandedRanges = buildUnnamed193(); o.basicFilter = buildBasicFilter(); - o.charts = buildUnnamed197(); - o.columnGroups = buildUnnamed198(); - o.conditionalFormats = buildUnnamed199(); - o.data = buildUnnamed200(); - o.developerMetadata = buildUnnamed201(); - o.filterViews = buildUnnamed202(); - o.merges = buildUnnamed203(); + o.charts = buildUnnamed194(); + o.columnGroups = buildUnnamed195(); + o.conditionalFormats = buildUnnamed196(); + o.data = buildUnnamed197(); + o.developerMetadata = buildUnnamed198(); + o.filterViews = buildUnnamed199(); + o.merges = buildUnnamed200(); o.properties = buildSheetProperties(); - o.protectedRanges = buildUnnamed204(); - o.rowGroups = buildUnnamed205(); - o.slicers = buildUnnamed206(); + o.protectedRanges = buildUnnamed201(); + o.rowGroups = buildUnnamed202(); + o.slicers = buildUnnamed203(); } buildCounterSheet--; return o; @@ -4757,19 +5743,19 @@ checkSheet(api.Sheet o) { buildCounterSheet++; if (buildCounterSheet < 3) { - checkUnnamed196(o.bandedRanges); + checkUnnamed193(o.bandedRanges); checkBasicFilter(o.basicFilter); - checkUnnamed197(o.charts); - checkUnnamed198(o.columnGroups); - checkUnnamed199(o.conditionalFormats); - checkUnnamed200(o.data); - checkUnnamed201(o.developerMetadata); - checkUnnamed202(o.filterViews); - checkUnnamed203(o.merges); + checkUnnamed194(o.charts); + checkUnnamed195(o.columnGroups); + checkUnnamed196(o.conditionalFormats); + checkUnnamed197(o.data); + checkUnnamed198(o.developerMetadata); + checkUnnamed199(o.filterViews); + checkUnnamed200(o.merges); checkSheetProperties(o.properties); - checkUnnamed204(o.protectedRanges); - checkUnnamed205(o.rowGroups); - checkUnnamed206(o.slicers); + checkUnnamed201(o.protectedRanges); + checkUnnamed202(o.rowGroups); + checkUnnamed203(o.slicers); } buildCounterSheet--; } @@ -4779,6 +5765,7 @@ var o = new api.SheetProperties(); buildCounterSheetProperties++; if (buildCounterSheetProperties < 3) { + o.dataSourceSheetProperties = buildDataSourceSheetProperties(); o.gridProperties = buildGridProperties(); o.hidden = true; o.index = 42; @@ -4796,6 +5783,7 @@ checkSheetProperties(api.SheetProperties o) { buildCounterSheetProperties++; if (buildCounterSheetProperties < 3) { + checkDataSourceSheetProperties(o.dataSourceSheetProperties); checkGridProperties(o.gridProperties); unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.index, unittest.equals(42)); @@ -4867,14 +5855,14 @@ buildCounterSlicerSpec--; } -buildUnnamed207() { +buildUnnamed204() { var o = new core.List<api.SortSpec>(); o.add(buildSortSpec()); o.add(buildSortSpec()); return o; } -checkUnnamed207(core.List<api.SortSpec> o) { +checkUnnamed204(core.List<api.SortSpec> o) { unittest.expect(o, unittest.hasLength(2)); checkSortSpec(o[0]); checkSortSpec(o[1]); @@ -4886,7 +5874,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { o.range = buildGridRange(); - o.sortSpecs = buildUnnamed207(); + o.sortSpecs = buildUnnamed204(); } buildCounterSortRangeRequest--; return o; @@ -4896,7 +5884,7 @@ buildCounterSortRangeRequest++; if (buildCounterSortRangeRequest < 3) { checkGridRange(o.range); - checkUnnamed207(o.sortSpecs); + checkUnnamed204(o.sortSpecs); } buildCounterSortRangeRequest--; } @@ -4908,6 +5896,7 @@ if (buildCounterSortSpec < 3) { o.backgroundColor = buildColor(); o.backgroundColorStyle = buildColorStyle(); + o.dataSourceColumnReference = buildDataSourceColumnReference(); o.dimensionIndex = 42; o.foregroundColor = buildColor(); o.foregroundColorStyle = buildColorStyle(); @@ -4922,6 +5911,7 @@ if (buildCounterSortSpec < 3) { checkColor(o.backgroundColor); checkColorStyle(o.backgroundColorStyle); + checkDataSourceColumnReference(o.dataSourceColumnReference); unittest.expect(o.dimensionIndex, unittest.equals(42)); checkColor(o.foregroundColor); checkColorStyle(o.foregroundColorStyle); @@ -4953,40 +5943,66 @@ buildCounterSourceAndDestination--; } -buildUnnamed208() { +buildUnnamed205() { + var o = new core.List<api.DataSourceRefreshSchedule>(); + o.add(buildDataSourceRefreshSchedule()); + o.add(buildDataSourceRefreshSchedule()); + return o; +} + +checkUnnamed205(core.List<api.DataSourceRefreshSchedule> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSourceRefreshSchedule(o[0]); + checkDataSourceRefreshSchedule(o[1]); +} + +buildUnnamed206() { + var o = new core.List<api.DataSource>(); + o.add(buildDataSource()); + o.add(buildDataSource()); + return o; +} + +checkUnnamed206(core.List<api.DataSource> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDataSource(o[0]); + checkDataSource(o[1]); +} + +buildUnnamed207() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed208(core.List<api.DeveloperMetadata> o) { +checkUnnamed207(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); } -buildUnnamed209() { +buildUnnamed208() { var o = new core.List<api.NamedRange>(); o.add(buildNamedRange()); o.add(buildNamedRange()); return o; } -checkUnnamed209(core.List<api.NamedRange> o) { +checkUnnamed208(core.List<api.NamedRange> o) { unittest.expect(o, unittest.hasLength(2)); checkNamedRange(o[0]); checkNamedRange(o[1]); } -buildUnnamed210() { +buildUnnamed209() { var o = new core.List<api.Sheet>(); o.add(buildSheet()); o.add(buildSheet()); return o; } -checkUnnamed210(core.List<api.Sheet> o) { +checkUnnamed209(core.List<api.Sheet> o) { unittest.expect(o, unittest.hasLength(2)); checkSheet(o[0]); checkSheet(o[1]); @@ -4997,10 +6013,12 @@ var o = new api.Spreadsheet(); buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - o.developerMetadata = buildUnnamed208(); - o.namedRanges = buildUnnamed209(); + o.dataSourceSchedules = buildUnnamed205(); + o.dataSources = buildUnnamed206(); + o.developerMetadata = buildUnnamed207(); + o.namedRanges = buildUnnamed208(); o.properties = buildSpreadsheetProperties(); - o.sheets = buildUnnamed210(); + o.sheets = buildUnnamed209(); o.spreadsheetId = "foo"; o.spreadsheetUrl = "foo"; } @@ -5011,10 +6029,12 @@ checkSpreadsheet(api.Spreadsheet o) { buildCounterSpreadsheet++; if (buildCounterSpreadsheet < 3) { - checkUnnamed208(o.developerMetadata); - checkUnnamed209(o.namedRanges); + checkUnnamed205(o.dataSourceSchedules); + checkUnnamed206(o.dataSources); + checkUnnamed207(o.developerMetadata); + checkUnnamed208(o.namedRanges); checkSpreadsheetProperties(o.properties); - checkUnnamed210(o.sheets); + checkUnnamed209(o.sheets); unittest.expect(o.spreadsheetId, unittest.equals('foo')); unittest.expect(o.spreadsheetUrl, unittest.equals('foo')); } @@ -5052,14 +6072,14 @@ buildCounterSpreadsheetProperties--; } -buildUnnamed211() { +buildUnnamed210() { var o = new core.List<api.ThemeColorPair>(); o.add(buildThemeColorPair()); o.add(buildThemeColorPair()); return o; } -checkUnnamed211(core.List<api.ThemeColorPair> o) { +checkUnnamed210(core.List<api.ThemeColorPair> o) { unittest.expect(o, unittest.hasLength(2)); checkThemeColorPair(o[0]); checkThemeColorPair(o[1]); @@ -5071,7 +6091,7 @@ buildCounterSpreadsheetTheme++; if (buildCounterSpreadsheetTheme < 3) { o.primaryFontFamily = "foo"; - o.themeColors = buildUnnamed211(); + o.themeColors = buildUnnamed210(); } buildCounterSpreadsheetTheme--; return o; @@ -5081,7 +6101,7 @@ buildCounterSpreadsheetTheme++; if (buildCounterSpreadsheetTheme < 3) { unittest.expect(o.primaryFontFamily, unittest.equals('foo')); - checkUnnamed211(o.themeColors); + checkUnnamed210(o.themeColors); } buildCounterSpreadsheetTheme--; } @@ -5224,6 +6244,31 @@ buildCounterThemeColorPair--; } +core.int buildCounterTimeOfDay = 0; +buildTimeOfDay() { + var o = new api.TimeOfDay(); + buildCounterTimeOfDay++; + if (buildCounterTimeOfDay < 3) { + o.hours = 42; + o.minutes = 42; + o.nanos = 42; + o.seconds = 42; + } + buildCounterTimeOfDay--; + return o; +} + +checkTimeOfDay(api.TimeOfDay o) { + buildCounterTimeOfDay++; + if (buildCounterTimeOfDay < 3) { + unittest.expect(o.hours, unittest.equals(42)); + unittest.expect(o.minutes, unittest.equals(42)); + unittest.expect(o.nanos, unittest.equals(42)); + unittest.expect(o.seconds, unittest.equals(42)); + } + buildCounterTimeOfDay--; +} + core.int buildCounterTreemapChartColorScale = 0; buildTreemapChartColorScale() { var o = new api.TreemapChartColorScale(); @@ -5409,14 +6454,14 @@ buildCounterUpdateBordersRequest--; } -buildUnnamed212() { +buildUnnamed211() { var o = new core.List<api.RowData>(); o.add(buildRowData()); o.add(buildRowData()); return o; } -checkUnnamed212(core.List<api.RowData> o) { +checkUnnamed211(core.List<api.RowData> o) { unittest.expect(o, unittest.hasLength(2)); checkRowData(o[0]); checkRowData(o[1]); @@ -5429,7 +6474,7 @@ if (buildCounterUpdateCellsRequest < 3) { o.fields = "foo"; o.range = buildGridRange(); - o.rows = buildUnnamed212(); + o.rows = buildUnnamed211(); o.start = buildGridCoordinate(); } buildCounterUpdateCellsRequest--; @@ -5441,7 +6486,7 @@ if (buildCounterUpdateCellsRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); checkGridRange(o.range); - checkUnnamed212(o.rows); + checkUnnamed211(o.rows); checkGridCoordinate(o.start); } buildCounterUpdateCellsRequest--; @@ -5520,14 +6565,56 @@ buildCounterUpdateConditionalFormatRuleResponse--; } -buildUnnamed213() { +core.int buildCounterUpdateDataSourceRequest = 0; +buildUpdateDataSourceRequest() { + var o = new api.UpdateDataSourceRequest(); + buildCounterUpdateDataSourceRequest++; + if (buildCounterUpdateDataSourceRequest < 3) { + o.dataSource = buildDataSource(); + o.fields = "foo"; + } + buildCounterUpdateDataSourceRequest--; + return o; +} + +checkUpdateDataSourceRequest(api.UpdateDataSourceRequest o) { + buildCounterUpdateDataSourceRequest++; + if (buildCounterUpdateDataSourceRequest < 3) { + checkDataSource(o.dataSource); + unittest.expect(o.fields, unittest.equals('foo')); + } + buildCounterUpdateDataSourceRequest--; +} + +core.int buildCounterUpdateDataSourceResponse = 0; +buildUpdateDataSourceResponse() { + var o = new api.UpdateDataSourceResponse(); + buildCounterUpdateDataSourceResponse++; + if (buildCounterUpdateDataSourceResponse < 3) { + o.dataExecutionStatus = buildDataExecutionStatus(); + o.dataSource = buildDataSource(); + } + buildCounterUpdateDataSourceResponse--; + return o; +} + +checkUpdateDataSourceResponse(api.UpdateDataSourceResponse o) { + buildCounterUpdateDataSourceResponse++; + if (buildCounterUpdateDataSourceResponse < 3) { + checkDataExecutionStatus(o.dataExecutionStatus); + checkDataSource(o.dataSource); + } + buildCounterUpdateDataSourceResponse--; +} + +buildUnnamed212() { var o = new core.List<api.DataFilter>(); o.add(buildDataFilter()); o.add(buildDataFilter()); return o; } -checkUnnamed213(core.List<api.DataFilter> o) { +checkUnnamed212(core.List<api.DataFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkDataFilter(o[0]); checkDataFilter(o[1]); @@ -5538,7 +6625,7 @@ var o = new api.UpdateDeveloperMetadataRequest(); buildCounterUpdateDeveloperMetadataRequest++; if (buildCounterUpdateDeveloperMetadataRequest < 3) { - o.dataFilters = buildUnnamed213(); + o.dataFilters = buildUnnamed212(); o.developerMetadata = buildDeveloperMetadata(); o.fields = "foo"; } @@ -5549,21 +6636,21 @@ checkUpdateDeveloperMetadataRequest(api.UpdateDeveloperMetadataRequest o) { buildCounterUpdateDeveloperMetadataRequest++; if (buildCounterUpdateDeveloperMetadataRequest < 3) { - checkUnnamed213(o.dataFilters); + checkUnnamed212(o.dataFilters); checkDeveloperMetadata(o.developerMetadata); unittest.expect(o.fields, unittest.equals('foo')); } buildCounterUpdateDeveloperMetadataRequest--; } -buildUnnamed214() { +buildUnnamed213() { var o = new core.List<api.DeveloperMetadata>(); o.add(buildDeveloperMetadata()); o.add(buildDeveloperMetadata()); return o; } -checkUnnamed214(core.List<api.DeveloperMetadata> o) { +checkUnnamed213(core.List<api.DeveloperMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkDeveloperMetadata(o[0]); checkDeveloperMetadata(o[1]); @@ -5574,7 +6661,7 @@ var o = new api.UpdateDeveloperMetadataResponse(); buildCounterUpdateDeveloperMetadataResponse++; if (buildCounterUpdateDeveloperMetadataResponse < 3) { - o.developerMetadata = buildUnnamed214(); + o.developerMetadata = buildUnnamed213(); } buildCounterUpdateDeveloperMetadataResponse--; return o; @@ -5583,7 +6670,7 @@ checkUpdateDeveloperMetadataResponse(api.UpdateDeveloperMetadataResponse o) { buildCounterUpdateDeveloperMetadataResponse++; if (buildCounterUpdateDeveloperMetadataResponse < 3) { - checkUnnamed214(o.developerMetadata); + checkUnnamed213(o.developerMetadata); } buildCounterUpdateDeveloperMetadataResponse--; } @@ -5614,6 +6701,7 @@ var o = new api.UpdateDimensionPropertiesRequest(); buildCounterUpdateDimensionPropertiesRequest++; if (buildCounterUpdateDimensionPropertiesRequest < 3) { + o.dataSourceSheetRange = buildDataSourceSheetDimensionRange(); o.fields = "foo"; o.properties = buildDimensionProperties(); o.range = buildDimensionRange(); @@ -5625,6 +6713,7 @@ checkUpdateDimensionPropertiesRequest(api.UpdateDimensionPropertiesRequest o) { buildCounterUpdateDimensionPropertiesRequest++; if (buildCounterUpdateDimensionPropertiesRequest < 3) { + checkDataSourceSheetDimensionRange(o.dataSourceSheetRange); unittest.expect(o.fields, unittest.equals('foo')); checkDimensionProperties(o.properties); checkDimensionRange(o.range); @@ -5863,7 +6952,7 @@ buildCounterUpdateValuesResponse--; } -buildUnnamed215() { +buildUnnamed214() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -5878,7 +6967,7 @@ return o; } -checkUnnamed215(core.List<core.Object> o) { +checkUnnamed214(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -5892,17 +6981,17 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed216() { +buildUnnamed215() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed215()); - o.add(buildUnnamed215()); + o.add(buildUnnamed214()); + o.add(buildUnnamed214()); return o; } -checkUnnamed216(core.List<core.List<core.Object>> o) { +checkUnnamed215(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed215(o[0]); - checkUnnamed215(o[1]); + checkUnnamed214(o[0]); + checkUnnamed214(o[1]); } core.int buildCounterValueRange = 0; @@ -5912,7 +7001,7 @@ if (buildCounterValueRange < 3) { o.majorDimension = "foo"; o.range = "foo"; - o.values = buildUnnamed216(); + o.values = buildUnnamed215(); } buildCounterValueRange--; return o; @@ -5923,7 +7012,7 @@ if (buildCounterValueRange < 3) { unittest.expect(o.majorDimension, unittest.equals('foo')); unittest.expect(o.range, unittest.equals('foo')); - checkUnnamed216(o.values); + checkUnnamed215(o.values); } buildCounterValueRange--; } @@ -5995,14 +7084,14 @@ buildCounterWaterfallChartDomain--; } -buildUnnamed217() { +buildUnnamed216() { var o = new core.List<api.WaterfallChartCustomSubtotal>(); o.add(buildWaterfallChartCustomSubtotal()); o.add(buildWaterfallChartCustomSubtotal()); return o; } -checkUnnamed217(core.List<api.WaterfallChartCustomSubtotal> o) { +checkUnnamed216(core.List<api.WaterfallChartCustomSubtotal> o) { unittest.expect(o, unittest.hasLength(2)); checkWaterfallChartCustomSubtotal(o[0]); checkWaterfallChartCustomSubtotal(o[1]); @@ -6013,7 +7102,7 @@ var o = new api.WaterfallChartSeries(); buildCounterWaterfallChartSeries++; if (buildCounterWaterfallChartSeries < 3) { - o.customSubtotals = buildUnnamed217(); + o.customSubtotals = buildUnnamed216(); o.data = buildChartData(); o.hideTrailingSubtotal = true; o.negativeColumnsStyle = buildWaterfallChartColumnStyle(); @@ -6027,7 +7116,7 @@ checkWaterfallChartSeries(api.WaterfallChartSeries o) { buildCounterWaterfallChartSeries++; if (buildCounterWaterfallChartSeries < 3) { - checkUnnamed217(o.customSubtotals); + checkUnnamed216(o.customSubtotals); checkChartData(o.data); unittest.expect(o.hideTrailingSubtotal, unittest.isTrue); checkWaterfallChartColumnStyle(o.negativeColumnsStyle); @@ -6037,14 +7126,14 @@ buildCounterWaterfallChartSeries--; } -buildUnnamed218() { +buildUnnamed217() { var o = new core.List<api.WaterfallChartSeries>(); o.add(buildWaterfallChartSeries()); o.add(buildWaterfallChartSeries()); return o; } -checkUnnamed218(core.List<api.WaterfallChartSeries> o) { +checkUnnamed217(core.List<api.WaterfallChartSeries> o) { unittest.expect(o, unittest.hasLength(2)); checkWaterfallChartSeries(o[0]); checkWaterfallChartSeries(o[1]); @@ -6059,7 +7148,7 @@ o.domain = buildWaterfallChartDomain(); o.firstValueIsTotal = true; o.hideConnectorLines = true; - o.series = buildUnnamed218(); + o.series = buildUnnamed217(); o.stackedType = "foo"; } buildCounterWaterfallChartSpec--; @@ -6073,12 +7162,25 @@ checkWaterfallChartDomain(o.domain); unittest.expect(o.firstValueIsTotal, unittest.isTrue); unittest.expect(o.hideConnectorLines, unittest.isTrue); - checkUnnamed218(o.series); + checkUnnamed217(o.series); unittest.expect(o.stackedType, unittest.equals('foo')); } buildCounterWaterfallChartSpec--; } +buildUnnamed218() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return 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')); +} + buildUnnamed219() { var o = new core.List<core.String>(); o.add("foo"); @@ -6092,19 +7194,6 @@ unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed220() { - var o = new core.List<core.String>(); - o.add("foo"); - o.add("foo"); - return o; -} - -checkUnnamed220(core.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-AddBandingRequest", () { unittest.test("to-json--from-json", () { @@ -6146,6 +7235,22 @@ }); }); + unittest.group("obj-schema-AddDataSourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildAddDataSourceRequest(); + var od = new api.AddDataSourceRequest.fromJson(o.toJson()); + checkAddDataSourceRequest(od); + }); + }); + + unittest.group("obj-schema-AddDataSourceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildAddDataSourceResponse(); + var od = new api.AddDataSourceResponse.fromJson(o.toJson()); + checkAddDataSourceResponse(od); + }); + }); + unittest.group("obj-schema-AddDimensionGroupRequest", () { unittest.test("to-json--from-json", () { var o = buildAddDimensionGroupRequest(); @@ -6453,6 +7558,30 @@ }); }); + unittest.group("obj-schema-BigQueryDataSourceSpec", () { + unittest.test("to-json--from-json", () { + var o = buildBigQueryDataSourceSpec(); + var od = new api.BigQueryDataSourceSpec.fromJson(o.toJson()); + checkBigQueryDataSourceSpec(od); + }); + }); + + unittest.group("obj-schema-BigQueryQuerySpec", () { + unittest.test("to-json--from-json", () { + var o = buildBigQueryQuerySpec(); + var od = new api.BigQueryQuerySpec.fromJson(o.toJson()); + checkBigQueryQuerySpec(od); + }); + }); + + unittest.group("obj-schema-BigQueryTableSpec", () { + unittest.test("to-json--from-json", () { + var o = buildBigQueryTableSpec(); + var od = new api.BigQueryTableSpec.fromJson(o.toJson()); + checkBigQueryTableSpec(od); + }); + }); + unittest.group("obj-schema-BooleanCondition", () { unittest.test("to-json--from-json", () { var o = buildBooleanCondition(); @@ -6565,6 +7694,30 @@ }); }); + unittest.group("obj-schema-ChartDateTimeRule", () { + unittest.test("to-json--from-json", () { + var o = buildChartDateTimeRule(); + var od = new api.ChartDateTimeRule.fromJson(o.toJson()); + checkChartDateTimeRule(od); + }); + }); + + unittest.group("obj-schema-ChartGroupRule", () { + unittest.test("to-json--from-json", () { + var o = buildChartGroupRule(); + var od = new api.ChartGroupRule.fromJson(o.toJson()); + checkChartGroupRule(od); + }); + }); + + unittest.group("obj-schema-ChartHistogramRule", () { + unittest.test("to-json--from-json", () { + var o = buildChartHistogramRule(); + var od = new api.ChartHistogramRule.fromJson(o.toJson()); + checkChartHistogramRule(od); + }); + }); + unittest.group("obj-schema-ChartSourceRange", () { unittest.test("to-json--from-json", () { var o = buildChartSourceRange(); @@ -6678,6 +7831,14 @@ }); }); + unittest.group("obj-schema-DataExecutionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildDataExecutionStatus(); + var od = new api.DataExecutionStatus.fromJson(o.toJson()); + checkDataExecutionStatus(od); + }); + }); + unittest.group("obj-schema-DataFilter", () { unittest.test("to-json--from-json", () { var o = buildDataFilter(); @@ -6694,6 +7855,134 @@ }); }); + unittest.group("obj-schema-DataSource", () { + unittest.test("to-json--from-json", () { + var o = buildDataSource(); + var od = new api.DataSource.fromJson(o.toJson()); + checkDataSource(od); + }); + }); + + unittest.group("obj-schema-DataSourceChartProperties", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceChartProperties(); + var od = new api.DataSourceChartProperties.fromJson(o.toJson()); + checkDataSourceChartProperties(od); + }); + }); + + unittest.group("obj-schema-DataSourceColumn", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceColumn(); + var od = new api.DataSourceColumn.fromJson(o.toJson()); + checkDataSourceColumn(od); + }); + }); + + unittest.group("obj-schema-DataSourceColumnReference", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceColumnReference(); + var od = new api.DataSourceColumnReference.fromJson(o.toJson()); + checkDataSourceColumnReference(od); + }); + }); + + unittest.group("obj-schema-DataSourceFormula", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceFormula(); + var od = new api.DataSourceFormula.fromJson(o.toJson()); + checkDataSourceFormula(od); + }); + }); + + unittest.group("obj-schema-DataSourceObjectReference", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceObjectReference(); + var od = new api.DataSourceObjectReference.fromJson(o.toJson()); + checkDataSourceObjectReference(od); + }); + }); + + unittest.group("obj-schema-DataSourceObjectReferences", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceObjectReferences(); + var od = new api.DataSourceObjectReferences.fromJson(o.toJson()); + checkDataSourceObjectReferences(od); + }); + }); + + unittest.group("obj-schema-DataSourceParameter", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceParameter(); + var od = new api.DataSourceParameter.fromJson(o.toJson()); + checkDataSourceParameter(od); + }); + }); + + unittest.group("obj-schema-DataSourceRefreshDailySchedule", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceRefreshDailySchedule(); + var od = new api.DataSourceRefreshDailySchedule.fromJson(o.toJson()); + checkDataSourceRefreshDailySchedule(od); + }); + }); + + unittest.group("obj-schema-DataSourceRefreshMonthlySchedule", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceRefreshMonthlySchedule(); + var od = new api.DataSourceRefreshMonthlySchedule.fromJson(o.toJson()); + checkDataSourceRefreshMonthlySchedule(od); + }); + }); + + unittest.group("obj-schema-DataSourceRefreshSchedule", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceRefreshSchedule(); + var od = new api.DataSourceRefreshSchedule.fromJson(o.toJson()); + checkDataSourceRefreshSchedule(od); + }); + }); + + unittest.group("obj-schema-DataSourceRefreshWeeklySchedule", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceRefreshWeeklySchedule(); + var od = new api.DataSourceRefreshWeeklySchedule.fromJson(o.toJson()); + checkDataSourceRefreshWeeklySchedule(od); + }); + }); + + unittest.group("obj-schema-DataSourceSheetDimensionRange", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceSheetDimensionRange(); + var od = new api.DataSourceSheetDimensionRange.fromJson(o.toJson()); + checkDataSourceSheetDimensionRange(od); + }); + }); + + unittest.group("obj-schema-DataSourceSheetProperties", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceSheetProperties(); + var od = new api.DataSourceSheetProperties.fromJson(o.toJson()); + checkDataSourceSheetProperties(od); + }); + }); + + unittest.group("obj-schema-DataSourceSpec", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceSpec(); + var od = new api.DataSourceSpec.fromJson(o.toJson()); + checkDataSourceSpec(od); + }); + }); + + unittest.group("obj-schema-DataSourceTable", () { + unittest.test("to-json--from-json", () { + var o = buildDataSourceTable(); + var od = new api.DataSourceTable.fromJson(o.toJson()); + checkDataSourceTable(od); + }); + }); + unittest.group("obj-schema-DataValidationRule", () { unittest.test("to-json--from-json", () { var o = buildDataValidationRule(); @@ -6734,6 +8023,14 @@ }); }); + unittest.group("obj-schema-DeleteDataSourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildDeleteDataSourceRequest(); + var od = new api.DeleteDataSourceRequest.fromJson(o.toJson()); + checkDeleteDataSourceRequest(od); + }); + }); + unittest.group("obj-schema-DeleteDeveloperMetadataRequest", () { unittest.test("to-json--from-json", () { var o = buildDeleteDeveloperMetadataRequest(); @@ -6966,6 +8263,14 @@ }); }); + unittest.group("obj-schema-FilterSpec", () { + unittest.test("to-json--from-json", () { + var o = buildFilterSpec(); + var od = new api.FilterSpec.fromJson(o.toJson()); + checkFilterSpec(od); + }); + }); + unittest.group("obj-schema-FilterView", () { unittest.test("to-json--from-json", () { var o = buildFilterView(); @@ -7086,6 +8391,14 @@ }); }); + unittest.group("obj-schema-Interval", () { + unittest.test("to-json--from-json", () { + var o = buildInterval(); + var od = new api.Interval.fromJson(o.toJson()); + checkInterval(od); + }); + }); + unittest.group("obj-schema-IterativeCalculationSettings", () { unittest.test("to-json--from-json", () { var o = buildIterativeCalculationSettings(); @@ -7222,6 +8535,14 @@ }); }); + unittest.group("obj-schema-PivotFilterSpec", () { + unittest.test("to-json--from-json", () { + var o = buildPivotFilterSpec(); + var od = new api.PivotFilterSpec.fromJson(o.toJson()); + checkPivotFilterSpec(od); + }); + }); + unittest.group("obj-schema-PivotGroup", () { unittest.test("to-json--from-json", () { var o = buildPivotGroup(); @@ -7230,6 +8551,14 @@ }); }); + unittest.group("obj-schema-PivotGroupLimit", () { + unittest.test("to-json--from-json", () { + var o = buildPivotGroupLimit(); + var od = new api.PivotGroupLimit.fromJson(o.toJson()); + checkPivotGroupLimit(od); + }); + }); + unittest.group("obj-schema-PivotGroupRule", () { unittest.test("to-json--from-json", () { var o = buildPivotGroupRule(); @@ -7286,6 +8615,31 @@ }); }); + unittest.group("obj-schema-RefreshDataSourceObjectExecutionStatus", () { + unittest.test("to-json--from-json", () { + var o = buildRefreshDataSourceObjectExecutionStatus(); + var od = + new api.RefreshDataSourceObjectExecutionStatus.fromJson(o.toJson()); + checkRefreshDataSourceObjectExecutionStatus(od); + }); + }); + + unittest.group("obj-schema-RefreshDataSourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildRefreshDataSourceRequest(); + var od = new api.RefreshDataSourceRequest.fromJson(o.toJson()); + checkRefreshDataSourceRequest(od); + }); + }); + + unittest.group("obj-schema-RefreshDataSourceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildRefreshDataSourceResponse(); + var od = new api.RefreshDataSourceResponse.fromJson(o.toJson()); + checkRefreshDataSourceResponse(od); + }); + }); + unittest.group("obj-schema-RepeatCellRequest", () { unittest.test("to-json--from-json", () { var o = buildRepeatCellRequest(); @@ -7486,6 +8840,14 @@ }); }); + unittest.group("obj-schema-TimeOfDay", () { + unittest.test("to-json--from-json", () { + var o = buildTimeOfDay(); + var od = new api.TimeOfDay.fromJson(o.toJson()); + checkTimeOfDay(od); + }); + }); + unittest.group("obj-schema-TreemapChartColorScale", () { unittest.test("to-json--from-json", () { var o = buildTreemapChartColorScale(); @@ -7574,6 +8936,22 @@ }); }); + unittest.group("obj-schema-UpdateDataSourceRequest", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDataSourceRequest(); + var od = new api.UpdateDataSourceRequest.fromJson(o.toJson()); + checkUpdateDataSourceRequest(od); + }); + }); + + unittest.group("obj-schema-UpdateDataSourceResponse", () { + unittest.test("to-json--from-json", () { + var o = buildUpdateDataSourceResponse(); + var od = new api.UpdateDataSourceResponse.fromJson(o.toJson()); + checkUpdateDataSourceResponse(od); + }); + }); + unittest.group("obj-schema-UpdateDeveloperMetadataRequest", () { unittest.test("to-json--from-json", () { var o = buildUpdateDeveloperMetadataRequest(); @@ -7856,8 +9234,8 @@ var mock = new HttpServerMock(); api.SpreadsheetsResourceApi res = new api.SheetsApi(mock).spreadsheets; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed219(); var arg_includeGridData = true; + var arg_ranges = buildUnnamed218(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7892,9 +9270,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); unittest.expect(queryMap["includeGridData"].first, unittest.equals("$arg_includeGridData")); + unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7905,8 +9283,8 @@ }), true); res .get(arg_spreadsheetId, - ranges: arg_ranges, includeGridData: arg_includeGridData, + ranges: arg_ranges, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSpreadsheet(response); @@ -8192,11 +9570,11 @@ var arg_request = buildValueRange(); var arg_spreadsheetId = "foo"; var arg_range = "foo"; - var arg_responseValueRenderOption = "foo"; - var arg_insertDataOption = "foo"; - var arg_valueInputOption = "foo"; var arg_responseDateTimeRenderOption = "foo"; var arg_includeValuesInResponse = true; + var arg_responseValueRenderOption = "foo"; + var arg_valueInputOption = "foo"; + var arg_insertDataOption = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ValueRange.fromJson(json); @@ -8249,16 +9627,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["responseValueRenderOption"].first, - unittest.equals(arg_responseValueRenderOption)); - unittest.expect(queryMap["insertDataOption"].first, - unittest.equals(arg_insertDataOption)); - unittest.expect(queryMap["valueInputOption"].first, - unittest.equals(arg_valueInputOption)); unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest.equals(arg_responseDateTimeRenderOption)); unittest.expect(queryMap["includeValuesInResponse"].first, unittest.equals("$arg_includeValuesInResponse")); + unittest.expect(queryMap["responseValueRenderOption"].first, + unittest.equals(arg_responseValueRenderOption)); + unittest.expect(queryMap["valueInputOption"].first, + unittest.equals(arg_valueInputOption)); + unittest.expect(queryMap["insertDataOption"].first, + unittest.equals(arg_insertDataOption)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8269,11 +9647,11 @@ }), true); res .append(arg_request, arg_spreadsheetId, arg_range, - responseValueRenderOption: arg_responseValueRenderOption, - insertDataOption: arg_insertDataOption, - valueInputOption: arg_valueInputOption, responseDateTimeRenderOption: arg_responseDateTimeRenderOption, includeValuesInResponse: arg_includeValuesInResponse, + responseValueRenderOption: arg_responseValueRenderOption, + valueInputOption: arg_valueInputOption, + insertDataOption: arg_insertDataOption, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkAppendValuesResponse(response); @@ -8415,10 +9793,10 @@ api.SpreadsheetsValuesResourceApi res = new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; - var arg_ranges = buildUnnamed220(); - var arg_majorDimension = "foo"; - var arg_valueRenderOption = "foo"; + var arg_ranges = buildUnnamed219(); var arg_dateTimeRenderOption = "foo"; + var arg_valueRenderOption = "foo"; + var arg_majorDimension = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8460,12 +9838,12 @@ } } unittest.expect(queryMap["ranges"], unittest.equals(arg_ranges)); - unittest.expect(queryMap["majorDimension"].first, - unittest.equals(arg_majorDimension)); - unittest.expect(queryMap["valueRenderOption"].first, - unittest.equals(arg_valueRenderOption)); unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(arg_dateTimeRenderOption)); + unittest.expect(queryMap["valueRenderOption"].first, + unittest.equals(arg_valueRenderOption)); + unittest.expect(queryMap["majorDimension"].first, + unittest.equals(arg_majorDimension)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8477,9 +9855,9 @@ res .batchGet(arg_spreadsheetId, ranges: arg_ranges, - majorDimension: arg_majorDimension, - valueRenderOption: arg_valueRenderOption, dateTimeRenderOption: arg_dateTimeRenderOption, + valueRenderOption: arg_valueRenderOption, + majorDimension: arg_majorDimension, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetValuesResponse(response); @@ -8763,9 +10141,9 @@ new api.SheetsApi(mock).spreadsheets.values; var arg_spreadsheetId = "foo"; var arg_range = "foo"; - var arg_valueRenderOption = "foo"; var arg_dateTimeRenderOption = "foo"; var arg_majorDimension = "foo"; + var arg_valueRenderOption = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8809,12 +10187,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["valueRenderOption"].first, - unittest.equals(arg_valueRenderOption)); unittest.expect(queryMap["dateTimeRenderOption"].first, unittest.equals(arg_dateTimeRenderOption)); unittest.expect(queryMap["majorDimension"].first, unittest.equals(arg_majorDimension)); + unittest.expect(queryMap["valueRenderOption"].first, + unittest.equals(arg_valueRenderOption)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8825,9 +10203,9 @@ }), true); res .get(arg_spreadsheetId, arg_range, - valueRenderOption: arg_valueRenderOption, dateTimeRenderOption: arg_dateTimeRenderOption, majorDimension: arg_majorDimension, + valueRenderOption: arg_valueRenderOption, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkValueRange(response); @@ -8841,10 +10219,10 @@ var arg_request = buildValueRange(); var arg_spreadsheetId = "foo"; var arg_range = "foo"; - var arg_includeValuesInResponse = true; - var arg_responseValueRenderOption = "foo"; var arg_valueInputOption = "foo"; + var arg_includeValuesInResponse = true; var arg_responseDateTimeRenderOption = "foo"; + var arg_responseValueRenderOption = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ValueRange.fromJson(json); @@ -8891,14 +10269,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeValuesInResponse"].first, - unittest.equals("$arg_includeValuesInResponse")); - unittest.expect(queryMap["responseValueRenderOption"].first, - unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["valueInputOption"].first, unittest.equals(arg_valueInputOption)); + unittest.expect(queryMap["includeValuesInResponse"].first, + unittest.equals("$arg_includeValuesInResponse")); unittest.expect(queryMap["responseDateTimeRenderOption"].first, unittest.equals(arg_responseDateTimeRenderOption)); + unittest.expect(queryMap["responseValueRenderOption"].first, + unittest.equals(arg_responseValueRenderOption)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8909,10 +10287,10 @@ }), true); res .update(arg_request, arg_spreadsheetId, arg_range, - includeValuesInResponse: arg_includeValuesInResponse, - responseValueRenderOption: arg_responseValueRenderOption, valueInputOption: arg_valueInputOption, + includeValuesInResponse: arg_includeValuesInResponse, responseDateTimeRenderOption: arg_responseDateTimeRenderOption, + responseValueRenderOption: arg_responseValueRenderOption, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkUpdateValuesResponse(response);
diff --git a/generated/googleapis/test/siteverification/v1_test.dart b/generated/googleapis/test/siteverification/v1_test.dart index 53e09ed..2c1ba2b 100644 --- a/generated/googleapis/test/siteverification/v1_test.dart +++ b/generated/googleapis/test/siteverification/v1_test.dart
@@ -116,14 +116,14 @@ buildCounterSiteVerificationWebResourceGettokenResponse--; } -buildUnnamed4144() { +buildUnnamed4382() { var o = new core.List<api.SiteVerificationWebResourceResource>(); o.add(buildSiteVerificationWebResourceResource()); o.add(buildSiteVerificationWebResourceResource()); return o; } -checkUnnamed4144(core.List<api.SiteVerificationWebResourceResource> o) { +checkUnnamed4382(core.List<api.SiteVerificationWebResourceResource> o) { unittest.expect(o, unittest.hasLength(2)); checkSiteVerificationWebResourceResource(o[0]); checkSiteVerificationWebResourceResource(o[1]); @@ -134,7 +134,7 @@ var o = new api.SiteVerificationWebResourceListResponse(); buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - o.items = buildUnnamed4144(); + o.items = buildUnnamed4382(); } buildCounterSiteVerificationWebResourceListResponse--; return o; @@ -144,19 +144,19 @@ api.SiteVerificationWebResourceListResponse o) { buildCounterSiteVerificationWebResourceListResponse++; if (buildCounterSiteVerificationWebResourceListResponse < 3) { - checkUnnamed4144(o.items); + checkUnnamed4382(o.items); } buildCounterSiteVerificationWebResourceListResponse--; } -buildUnnamed4145() { +buildUnnamed4383() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4145(core.List<core.String> o) { +checkUnnamed4383(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -190,7 +190,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { o.id = "foo"; - o.owners = buildUnnamed4145(); + o.owners = buildUnnamed4383(); o.site = buildSiteVerificationWebResourceResourceSite(); } buildCounterSiteVerificationWebResourceResource--; @@ -202,7 +202,7 @@ buildCounterSiteVerificationWebResourceResource++; if (buildCounterSiteVerificationWebResourceResource < 3) { unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4145(o.owners); + checkUnnamed4383(o.owners); checkSiteVerificationWebResourceResourceSite(o.site); } buildCounterSiteVerificationWebResourceResource--;
diff --git a/generated/googleapis/test/slides/v1_test.dart b/generated/googleapis/test/slides/v1_test.dart index eaaac52..aeac07a 100644 --- a/generated/googleapis/test/slides/v1_test.dart +++ b/generated/googleapis/test/slides/v1_test.dart
@@ -104,14 +104,14 @@ buildCounterAutoText--; } -buildUnnamed2226() { +buildUnnamed2334() { var o = new core.List<api.Request>(); o.add(buildRequest()); o.add(buildRequest()); return o; } -checkUnnamed2226(core.List<api.Request> o) { +checkUnnamed2334(core.List<api.Request> o) { unittest.expect(o, unittest.hasLength(2)); checkRequest(o[0]); checkRequest(o[1]); @@ -122,7 +122,7 @@ var o = new api.BatchUpdatePresentationRequest(); buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - o.requests = buildUnnamed2226(); + o.requests = buildUnnamed2334(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationRequest--; @@ -132,20 +132,20 @@ checkBatchUpdatePresentationRequest(api.BatchUpdatePresentationRequest o) { buildCounterBatchUpdatePresentationRequest++; if (buildCounterBatchUpdatePresentationRequest < 3) { - checkUnnamed2226(o.requests); + checkUnnamed2334(o.requests); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationRequest--; } -buildUnnamed2227() { +buildUnnamed2335() { var o = new core.List<api.Response>(); o.add(buildResponse()); o.add(buildResponse()); return o; } -checkUnnamed2227(core.List<api.Response> o) { +checkUnnamed2335(core.List<api.Response> o) { unittest.expect(o, unittest.hasLength(2)); checkResponse(o[0]); checkResponse(o[1]); @@ -157,7 +157,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { o.presentationId = "foo"; - o.replies = buildUnnamed2227(); + o.replies = buildUnnamed2335(); o.writeControl = buildWriteControl(); } buildCounterBatchUpdatePresentationResponse--; @@ -168,7 +168,7 @@ buildCounterBatchUpdatePresentationResponse++; if (buildCounterBatchUpdatePresentationResponse < 3) { unittest.expect(o.presentationId, unittest.equals('foo')); - checkUnnamed2227(o.replies); + checkUnnamed2335(o.replies); checkWriteControl(o.writeControl); } buildCounterBatchUpdatePresentationResponse--; @@ -199,14 +199,14 @@ buildCounterBullet--; } -buildUnnamed2228() { +buildUnnamed2336() { var o = new core.List<api.ThemeColorPair>(); o.add(buildThemeColorPair()); o.add(buildThemeColorPair()); return o; } -checkUnnamed2228(core.List<api.ThemeColorPair> o) { +checkUnnamed2336(core.List<api.ThemeColorPair> o) { unittest.expect(o, unittest.hasLength(2)); checkThemeColorPair(o[0]); checkThemeColorPair(o[1]); @@ -217,7 +217,7 @@ var o = new api.ColorScheme(); buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - o.colors = buildUnnamed2228(); + o.colors = buildUnnamed2336(); } buildCounterColorScheme--; return o; @@ -226,7 +226,7 @@ checkColorScheme(api.ColorScheme o) { buildCounterColorScheme++; if (buildCounterColorScheme < 3) { - checkUnnamed2228(o.colors); + checkUnnamed2336(o.colors); } buildCounterColorScheme--; } @@ -453,14 +453,14 @@ buildCounterCreateSheetsChartResponse--; } -buildUnnamed2229() { +buildUnnamed2337() { var o = new core.List<api.LayoutPlaceholderIdMapping>(); o.add(buildLayoutPlaceholderIdMapping()); o.add(buildLayoutPlaceholderIdMapping()); return o; } -checkUnnamed2229(core.List<api.LayoutPlaceholderIdMapping> o) { +checkUnnamed2337(core.List<api.LayoutPlaceholderIdMapping> o) { unittest.expect(o, unittest.hasLength(2)); checkLayoutPlaceholderIdMapping(o[0]); checkLayoutPlaceholderIdMapping(o[1]); @@ -473,7 +473,7 @@ if (buildCounterCreateSlideRequest < 3) { o.insertionIndex = 42; o.objectId = "foo"; - o.placeholderIdMappings = buildUnnamed2229(); + o.placeholderIdMappings = buildUnnamed2337(); o.slideLayoutReference = buildLayoutReference(); } buildCounterCreateSlideRequest--; @@ -485,7 +485,7 @@ if (buildCounterCreateSlideRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed2229(o.placeholderIdMappings); + checkUnnamed2337(o.placeholderIdMappings); checkLayoutReference(o.slideLayoutReference); } buildCounterCreateSlideRequest--; @@ -753,14 +753,14 @@ buildCounterDimension--; } -buildUnnamed2230() { +buildUnnamed2338() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed2230(core.Map<core.String, core.String> o) { +checkUnnamed2338(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')); @@ -772,7 +772,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { o.objectId = "foo"; - o.objectIds = buildUnnamed2230(); + o.objectIds = buildUnnamed2338(); } buildCounterDuplicateObjectRequest--; return o; @@ -782,7 +782,7 @@ buildCounterDuplicateObjectRequest++; if (buildCounterDuplicateObjectRequest < 3) { unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed2230(o.objectIds); + checkUnnamed2338(o.objectIds); } buildCounterDuplicateObjectRequest--; } @@ -806,14 +806,14 @@ buildCounterDuplicateObjectResponse--; } -buildUnnamed2231() { +buildUnnamed2339() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed2231(core.List<api.PageElement> o) { +checkUnnamed2339(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -824,7 +824,7 @@ var o = new api.Group(); buildCounterGroup++; if (buildCounterGroup < 3) { - o.children = buildUnnamed2231(); + o.children = buildUnnamed2339(); } buildCounterGroup--; return o; @@ -833,19 +833,19 @@ checkGroup(api.Group o) { buildCounterGroup++; if (buildCounterGroup < 3) { - checkUnnamed2231(o.children); + checkUnnamed2339(o.children); } buildCounterGroup--; } -buildUnnamed2232() { +buildUnnamed2340() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2232(core.List<core.String> o) { +checkUnnamed2340(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -856,7 +856,7 @@ var o = new api.GroupObjectsRequest(); buildCounterGroupObjectsRequest++; if (buildCounterGroupObjectsRequest < 3) { - o.childrenObjectIds = buildUnnamed2232(); + o.childrenObjectIds = buildUnnamed2340(); o.groupObjectId = "foo"; } buildCounterGroupObjectsRequest--; @@ -866,7 +866,7 @@ checkGroupObjectsRequest(api.GroupObjectsRequest o) { buildCounterGroupObjectsRequest++; if (buildCounterGroupObjectsRequest < 3) { - checkUnnamed2232(o.childrenObjectIds); + checkUnnamed2340(o.childrenObjectIds); unittest.expect(o.groupObjectId, unittest.equals('foo')); } buildCounterGroupObjectsRequest--; @@ -1210,14 +1210,14 @@ buildCounterLink--; } -buildUnnamed2233() { +buildUnnamed2341() { var o = new core.Map<core.String, api.NestingLevel>(); o["x"] = buildNestingLevel(); o["y"] = buildNestingLevel(); return o; } -checkUnnamed2233(core.Map<core.String, api.NestingLevel> o) { +checkUnnamed2341(core.Map<core.String, api.NestingLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkNestingLevel(o["x"]); checkNestingLevel(o["y"]); @@ -1229,7 +1229,7 @@ buildCounterList++; if (buildCounterList < 3) { o.listId = "foo"; - o.nestingLevel = buildUnnamed2233(); + o.nestingLevel = buildUnnamed2341(); } buildCounterList--; return o; @@ -1239,7 +1239,7 @@ buildCounterList++; if (buildCounterList < 3) { unittest.expect(o.listId, unittest.equals('foo')); - checkUnnamed2233(o.nestingLevel); + checkUnnamed2341(o.nestingLevel); } buildCounterList--; } @@ -1406,14 +1406,14 @@ buildCounterOutlineFill--; } -buildUnnamed2234() { +buildUnnamed2342() { var o = new core.List<api.PageElement>(); o.add(buildPageElement()); o.add(buildPageElement()); return o; } -checkUnnamed2234(core.List<api.PageElement> o) { +checkUnnamed2342(core.List<api.PageElement> o) { unittest.expect(o, unittest.hasLength(2)); checkPageElement(o[0]); checkPageElement(o[1]); @@ -1428,7 +1428,7 @@ o.masterProperties = buildMasterProperties(); o.notesProperties = buildNotesProperties(); o.objectId = "foo"; - o.pageElements = buildUnnamed2234(); + o.pageElements = buildUnnamed2342(); o.pageProperties = buildPageProperties(); o.pageType = "foo"; o.revisionId = "foo"; @@ -1445,7 +1445,7 @@ checkMasterProperties(o.masterProperties); checkNotesProperties(o.notesProperties); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed2234(o.pageElements); + checkUnnamed2342(o.pageElements); checkPageProperties(o.pageProperties); unittest.expect(o.pageType, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); @@ -1643,40 +1643,40 @@ buildCounterPlaceholder--; } -buildUnnamed2235() { +buildUnnamed2343() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2235(core.List<api.Page> o) { +checkUnnamed2343(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed2236() { +buildUnnamed2344() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2236(core.List<api.Page> o) { +checkUnnamed2344(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); } -buildUnnamed2237() { +buildUnnamed2345() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2237(core.List<api.Page> o) { +checkUnnamed2345(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -1687,14 +1687,14 @@ var o = new api.Presentation(); buildCounterPresentation++; if (buildCounterPresentation < 3) { - o.layouts = buildUnnamed2235(); + o.layouts = buildUnnamed2343(); o.locale = "foo"; - o.masters = buildUnnamed2236(); + o.masters = buildUnnamed2344(); o.notesMaster = buildPage(); o.pageSize = buildSize(); o.presentationId = "foo"; o.revisionId = "foo"; - o.slides = buildUnnamed2237(); + o.slides = buildUnnamed2345(); o.title = "foo"; } buildCounterPresentation--; @@ -1704,14 +1704,14 @@ checkPresentation(api.Presentation o) { buildCounterPresentation++; if (buildCounterPresentation < 3) { - checkUnnamed2235(o.layouts); + checkUnnamed2343(o.layouts); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2236(o.masters); + checkUnnamed2344(o.masters); checkPage(o.notesMaster); checkSize(o.pageSize); unittest.expect(o.presentationId, unittest.equals('foo')); unittest.expect(o.revisionId, unittest.equals('foo')); - checkUnnamed2237(o.slides); + checkUnnamed2345(o.slides); unittest.expect(o.title, unittest.equals('foo')); } buildCounterPresentation--; @@ -1740,14 +1740,14 @@ buildCounterRange--; } -buildUnnamed2238() { +buildUnnamed2346() { var o = new core.List<api.ColorStop>(); o.add(buildColorStop()); o.add(buildColorStop()); return o; } -checkUnnamed2238(core.List<api.ColorStop> o) { +checkUnnamed2346(core.List<api.ColorStop> o) { unittest.expect(o, unittest.hasLength(2)); checkColorStop(o[0]); checkColorStop(o[1]); @@ -1759,7 +1759,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { o.name = "foo"; - o.recolorStops = buildUnnamed2238(); + o.recolorStops = buildUnnamed2346(); } buildCounterRecolor--; return o; @@ -1769,7 +1769,7 @@ buildCounterRecolor++; if (buildCounterRecolor < 3) { unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2238(o.recolorStops); + checkUnnamed2346(o.recolorStops); } buildCounterRecolor--; } @@ -1793,14 +1793,14 @@ buildCounterRefreshSheetsChartRequest--; } -buildUnnamed2239() { +buildUnnamed2347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2239(core.List<core.String> o) { +checkUnnamed2347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1814,7 +1814,7 @@ o.containsText = buildSubstringMatchCriteria(); o.imageReplaceMethod = "foo"; o.imageUrl = "foo"; - o.pageObjectIds = buildUnnamed2239(); + o.pageObjectIds = buildUnnamed2347(); o.replaceMethod = "foo"; } buildCounterReplaceAllShapesWithImageRequest--; @@ -1827,7 +1827,7 @@ checkSubstringMatchCriteria(o.containsText); unittest.expect(o.imageReplaceMethod, unittest.equals('foo')); unittest.expect(o.imageUrl, unittest.equals('foo')); - checkUnnamed2239(o.pageObjectIds); + checkUnnamed2347(o.pageObjectIds); unittest.expect(o.replaceMethod, unittest.equals('foo')); } buildCounterReplaceAllShapesWithImageRequest--; @@ -1853,14 +1853,14 @@ buildCounterReplaceAllShapesWithImageResponse--; } -buildUnnamed2240() { +buildUnnamed2348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2240(core.List<core.String> o) { +checkUnnamed2348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1874,7 +1874,7 @@ o.chartId = 42; o.containsText = buildSubstringMatchCriteria(); o.linkingMode = "foo"; - o.pageObjectIds = buildUnnamed2240(); + o.pageObjectIds = buildUnnamed2348(); o.spreadsheetId = "foo"; } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1888,7 +1888,7 @@ unittest.expect(o.chartId, unittest.equals(42)); checkSubstringMatchCriteria(o.containsText); unittest.expect(o.linkingMode, unittest.equals('foo')); - checkUnnamed2240(o.pageObjectIds); + checkUnnamed2348(o.pageObjectIds); unittest.expect(o.spreadsheetId, unittest.equals('foo')); } buildCounterReplaceAllShapesWithSheetsChartRequest--; @@ -1914,14 +1914,14 @@ buildCounterReplaceAllShapesWithSheetsChartResponse--; } -buildUnnamed2241() { +buildUnnamed2349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2241(core.List<core.String> o) { +checkUnnamed2349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1933,7 +1933,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { o.containsText = buildSubstringMatchCriteria(); - o.pageObjectIds = buildUnnamed2241(); + o.pageObjectIds = buildUnnamed2349(); o.replaceText = "foo"; } buildCounterReplaceAllTextRequest--; @@ -1944,7 +1944,7 @@ buildCounterReplaceAllTextRequest++; if (buildCounterReplaceAllTextRequest < 3) { checkSubstringMatchCriteria(o.containsText); - checkUnnamed2241(o.pageObjectIds); + checkUnnamed2349(o.pageObjectIds); unittest.expect(o.replaceText, unittest.equals('foo')); } buildCounterReplaceAllTextRequest--; @@ -2439,53 +2439,53 @@ buildCounterSubstringMatchCriteria--; } -buildUnnamed2242() { +buildUnnamed2350() { var o = new core.List<api.TableBorderRow>(); o.add(buildTableBorderRow()); o.add(buildTableBorderRow()); return o; } -checkUnnamed2242(core.List<api.TableBorderRow> o) { +checkUnnamed2350(core.List<api.TableBorderRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderRow(o[0]); checkTableBorderRow(o[1]); } -buildUnnamed2243() { +buildUnnamed2351() { var o = new core.List<api.TableColumnProperties>(); o.add(buildTableColumnProperties()); o.add(buildTableColumnProperties()); return o; } -checkUnnamed2243(core.List<api.TableColumnProperties> o) { +checkUnnamed2351(core.List<api.TableColumnProperties> o) { unittest.expect(o, unittest.hasLength(2)); checkTableColumnProperties(o[0]); checkTableColumnProperties(o[1]); } -buildUnnamed2244() { +buildUnnamed2352() { var o = new core.List<api.TableRow>(); o.add(buildTableRow()); o.add(buildTableRow()); return o; } -checkUnnamed2244(core.List<api.TableRow> o) { +checkUnnamed2352(core.List<api.TableRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableRow(o[0]); checkTableRow(o[1]); } -buildUnnamed2245() { +buildUnnamed2353() { var o = new core.List<api.TableBorderRow>(); o.add(buildTableBorderRow()); o.add(buildTableBorderRow()); return o; } -checkUnnamed2245(core.List<api.TableBorderRow> o) { +checkUnnamed2353(core.List<api.TableBorderRow> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderRow(o[0]); checkTableBorderRow(o[1]); @@ -2497,11 +2497,11 @@ buildCounterTable++; if (buildCounterTable < 3) { o.columns = 42; - o.horizontalBorderRows = buildUnnamed2242(); + o.horizontalBorderRows = buildUnnamed2350(); o.rows = 42; - o.tableColumns = buildUnnamed2243(); - o.tableRows = buildUnnamed2244(); - o.verticalBorderRows = buildUnnamed2245(); + o.tableColumns = buildUnnamed2351(); + o.tableRows = buildUnnamed2352(); + o.verticalBorderRows = buildUnnamed2353(); } buildCounterTable--; return o; @@ -2511,11 +2511,11 @@ buildCounterTable++; if (buildCounterTable < 3) { unittest.expect(o.columns, unittest.equals(42)); - checkUnnamed2242(o.horizontalBorderRows); + checkUnnamed2350(o.horizontalBorderRows); unittest.expect(o.rows, unittest.equals(42)); - checkUnnamed2243(o.tableColumns); - checkUnnamed2244(o.tableRows); - checkUnnamed2245(o.verticalBorderRows); + checkUnnamed2351(o.tableColumns); + checkUnnamed2352(o.tableRows); + checkUnnamed2353(o.verticalBorderRows); } buildCounterTable--; } @@ -2583,14 +2583,14 @@ buildCounterTableBorderProperties--; } -buildUnnamed2246() { +buildUnnamed2354() { var o = new core.List<api.TableBorderCell>(); o.add(buildTableBorderCell()); o.add(buildTableBorderCell()); return o; } -checkUnnamed2246(core.List<api.TableBorderCell> o) { +checkUnnamed2354(core.List<api.TableBorderCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableBorderCell(o[0]); checkTableBorderCell(o[1]); @@ -2601,7 +2601,7 @@ var o = new api.TableBorderRow(); buildCounterTableBorderRow++; if (buildCounterTableBorderRow < 3) { - o.tableBorderCells = buildUnnamed2246(); + o.tableBorderCells = buildUnnamed2354(); } buildCounterTableBorderRow--; return o; @@ -2610,7 +2610,7 @@ checkTableBorderRow(api.TableBorderRow o) { buildCounterTableBorderRow++; if (buildCounterTableBorderRow < 3) { - checkUnnamed2246(o.tableBorderCells); + checkUnnamed2354(o.tableBorderCells); } buildCounterTableBorderRow--; } @@ -2747,14 +2747,14 @@ buildCounterTableRange--; } -buildUnnamed2247() { +buildUnnamed2355() { var o = new core.List<api.TableCell>(); o.add(buildTableCell()); o.add(buildTableCell()); return o; } -checkUnnamed2247(core.List<api.TableCell> o) { +checkUnnamed2355(core.List<api.TableCell> o) { unittest.expect(o, unittest.hasLength(2)); checkTableCell(o[0]); checkTableCell(o[1]); @@ -2766,7 +2766,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { o.rowHeight = buildDimension(); - o.tableCells = buildUnnamed2247(); + o.tableCells = buildUnnamed2355(); o.tableRowProperties = buildTableRowProperties(); } buildCounterTableRow--; @@ -2777,7 +2777,7 @@ buildCounterTableRow++; if (buildCounterTableRow < 3) { checkDimension(o.rowHeight); - checkUnnamed2247(o.tableCells); + checkUnnamed2355(o.tableCells); checkTableRowProperties(o.tableRowProperties); } buildCounterTableRow--; @@ -2802,27 +2802,27 @@ buildCounterTableRowProperties--; } -buildUnnamed2248() { +buildUnnamed2356() { var o = new core.Map<core.String, api.List>(); o["x"] = buildList(); o["y"] = buildList(); return o; } -checkUnnamed2248(core.Map<core.String, api.List> o) { +checkUnnamed2356(core.Map<core.String, api.List> o) { unittest.expect(o, unittest.hasLength(2)); checkList(o["x"]); checkList(o["y"]); } -buildUnnamed2249() { +buildUnnamed2357() { var o = new core.List<api.TextElement>(); o.add(buildTextElement()); o.add(buildTextElement()); return o; } -checkUnnamed2249(core.List<api.TextElement> o) { +checkUnnamed2357(core.List<api.TextElement> o) { unittest.expect(o, unittest.hasLength(2)); checkTextElement(o[0]); checkTextElement(o[1]); @@ -2833,8 +2833,8 @@ var o = new api.TextContent(); buildCounterTextContent++; if (buildCounterTextContent < 3) { - o.lists = buildUnnamed2248(); - o.textElements = buildUnnamed2249(); + o.lists = buildUnnamed2356(); + o.textElements = buildUnnamed2357(); } buildCounterTextContent--; return o; @@ -2843,8 +2843,8 @@ checkTextContent(api.TextContent o) { buildCounterTextContent++; if (buildCounterTextContent < 3) { - checkUnnamed2248(o.lists); - checkUnnamed2249(o.textElements); + checkUnnamed2356(o.lists); + checkUnnamed2357(o.textElements); } buildCounterTextContent--; } @@ -2982,14 +2982,14 @@ buildCounterThumbnail--; } -buildUnnamed2250() { +buildUnnamed2358() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2250(core.List<core.String> 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')); @@ -3000,7 +3000,7 @@ var o = new api.UngroupObjectsRequest(); buildCounterUngroupObjectsRequest++; if (buildCounterUngroupObjectsRequest < 3) { - o.objectIds = buildUnnamed2250(); + o.objectIds = buildUnnamed2358(); } buildCounterUngroupObjectsRequest--; return o; @@ -3009,7 +3009,7 @@ checkUngroupObjectsRequest(api.UngroupObjectsRequest o) { buildCounterUngroupObjectsRequest++; if (buildCounterUngroupObjectsRequest < 3) { - checkUnnamed2250(o.objectIds); + checkUnnamed2358(o.objectIds); } buildCounterUngroupObjectsRequest--; } @@ -3149,14 +3149,14 @@ buildCounterUpdatePageElementTransformRequest--; } -buildUnnamed2251() { +buildUnnamed2359() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2251(core.List<core.String> o) { +checkUnnamed2359(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3168,7 +3168,7 @@ buildCounterUpdatePageElementsZOrderRequest++; if (buildCounterUpdatePageElementsZOrderRequest < 3) { o.operation = "foo"; - o.pageElementObjectIds = buildUnnamed2251(); + o.pageElementObjectIds = buildUnnamed2359(); } buildCounterUpdatePageElementsZOrderRequest--; return o; @@ -3178,7 +3178,7 @@ buildCounterUpdatePageElementsZOrderRequest++; if (buildCounterUpdatePageElementsZOrderRequest < 3) { unittest.expect(o.operation, unittest.equals('foo')); - checkUnnamed2251(o.pageElementObjectIds); + checkUnnamed2359(o.pageElementObjectIds); } buildCounterUpdatePageElementsZOrderRequest--; } @@ -3256,14 +3256,14 @@ buildCounterUpdateShapePropertiesRequest--; } -buildUnnamed2252() { +buildUnnamed2360() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2252(core.List<core.String> o) { +checkUnnamed2360(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3275,7 +3275,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { o.insertionIndex = 42; - o.slideObjectIds = buildUnnamed2252(); + o.slideObjectIds = buildUnnamed2360(); } buildCounterUpdateSlidesPositionRequest--; return o; @@ -3285,7 +3285,7 @@ buildCounterUpdateSlidesPositionRequest++; if (buildCounterUpdateSlidesPositionRequest < 3) { unittest.expect(o.insertionIndex, unittest.equals(42)); - checkUnnamed2252(o.slideObjectIds); + checkUnnamed2360(o.slideObjectIds); } buildCounterUpdateSlidesPositionRequest--; } @@ -3343,14 +3343,14 @@ buildCounterUpdateTableCellPropertiesRequest--; } -buildUnnamed2253() { +buildUnnamed2361() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2253(core.List<core.int> o) { +checkUnnamed2361(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)); @@ -3361,7 +3361,7 @@ var o = new api.UpdateTableColumnPropertiesRequest(); buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - o.columnIndices = buildUnnamed2253(); + o.columnIndices = buildUnnamed2361(); o.fields = "foo"; o.objectId = "foo"; o.tableColumnProperties = buildTableColumnProperties(); @@ -3374,7 +3374,7 @@ api.UpdateTableColumnPropertiesRequest o) { buildCounterUpdateTableColumnPropertiesRequest++; if (buildCounterUpdateTableColumnPropertiesRequest < 3) { - checkUnnamed2253(o.columnIndices); + checkUnnamed2361(o.columnIndices); unittest.expect(o.fields, unittest.equals('foo')); unittest.expect(o.objectId, unittest.equals('foo')); checkTableColumnProperties(o.tableColumnProperties); @@ -3382,14 +3382,14 @@ buildCounterUpdateTableColumnPropertiesRequest--; } -buildUnnamed2254() { +buildUnnamed2362() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2254(core.List<core.int> o) { +checkUnnamed2362(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)); @@ -3402,7 +3402,7 @@ if (buildCounterUpdateTableRowPropertiesRequest < 3) { o.fields = "foo"; o.objectId = "foo"; - o.rowIndices = buildUnnamed2254(); + o.rowIndices = buildUnnamed2362(); o.tableRowProperties = buildTableRowProperties(); } buildCounterUpdateTableRowPropertiesRequest--; @@ -3414,7 +3414,7 @@ if (buildCounterUpdateTableRowPropertiesRequest < 3) { unittest.expect(o.fields, unittest.equals('foo')); unittest.expect(o.objectId, unittest.equals('foo')); - checkUnnamed2254(o.rowIndices); + checkUnnamed2362(o.rowIndices); checkTableRowProperties(o.tableRowProperties); } buildCounterUpdateTableRowPropertiesRequest--;
diff --git a/generated/googleapis/test/sourcerepo/v1_test.dart b/generated/googleapis/test/sourcerepo/v1_test.dart index dbb9231..ae12dd7 100644 --- a/generated/googleapis/test/sourcerepo/v1_test.dart +++ b/generated/googleapis/test/sourcerepo/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed692() { +buildUnnamed711() { var o = new core.List<api.AuditLogConfig>(); o.add(buildAuditLogConfig()); o.add(buildAuditLogConfig()); return o; } -checkUnnamed692(core.List<api.AuditLogConfig> o) { +checkUnnamed711(core.List<api.AuditLogConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditLogConfig(o[0]); checkAuditLogConfig(o[1]); @@ -68,7 +68,7 @@ var o = new api.AuditConfig(); buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - o.auditLogConfigs = buildUnnamed692(); + o.auditLogConfigs = buildUnnamed711(); o.service = "foo"; } buildCounterAuditConfig--; @@ -78,20 +78,20 @@ checkAuditConfig(api.AuditConfig o) { buildCounterAuditConfig++; if (buildCounterAuditConfig < 3) { - checkUnnamed692(o.auditLogConfigs); + checkUnnamed711(o.auditLogConfigs); unittest.expect(o.service, unittest.equals('foo')); } buildCounterAuditConfig--; } -buildUnnamed693() { +buildUnnamed712() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed693(core.List<core.String> o) { +checkUnnamed712(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -102,7 +102,7 @@ var o = new api.AuditLogConfig(); buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - o.exemptedMembers = buildUnnamed693(); + o.exemptedMembers = buildUnnamed712(); o.logType = "foo"; } buildCounterAuditLogConfig--; @@ -112,20 +112,20 @@ checkAuditLogConfig(api.AuditLogConfig o) { buildCounterAuditLogConfig++; if (buildCounterAuditLogConfig < 3) { - checkUnnamed693(o.exemptedMembers); + checkUnnamed712(o.exemptedMembers); unittest.expect(o.logType, unittest.equals('foo')); } buildCounterAuditLogConfig--; } -buildUnnamed694() { +buildUnnamed713() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed694(core.List<core.String> o) { +checkUnnamed713(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -137,7 +137,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { o.condition = buildExpr(); - o.members = buildUnnamed694(); + o.members = buildUnnamed713(); o.role = "foo"; } buildCounterBinding--; @@ -148,7 +148,7 @@ buildCounterBinding++; if (buildCounterBinding < 3) { checkExpr(o.condition); - checkUnnamed694(o.members); + checkUnnamed713(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -194,14 +194,14 @@ buildCounterExpr--; } -buildUnnamed695() { +buildUnnamed714() { var o = new core.List<api.Repo>(); o.add(buildRepo()); o.add(buildRepo()); return o; } -checkUnnamed695(core.List<api.Repo> o) { +checkUnnamed714(core.List<api.Repo> o) { unittest.expect(o, unittest.hasLength(2)); checkRepo(o[0]); checkRepo(o[1]); @@ -213,7 +213,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { o.nextPageToken = "foo"; - o.repos = buildUnnamed695(); + o.repos = buildUnnamed714(); } buildCounterListReposResponse--; return o; @@ -223,7 +223,7 @@ buildCounterListReposResponse++; if (buildCounterListReposResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed695(o.repos); + checkUnnamed714(o.repos); } buildCounterListReposResponse--; } @@ -251,7 +251,7 @@ buildCounterMirrorConfig--; } -buildUnnamed696() { +buildUnnamed715() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -266,7 +266,7 @@ return o; } -checkUnnamed696(core.Map<core.String, core.Object> o) { +checkUnnamed715(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)); @@ -280,7 +280,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed697() { +buildUnnamed716() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -295,7 +295,7 @@ return o; } -checkUnnamed697(core.Map<core.String, core.Object> o) { +checkUnnamed716(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)); @@ -316,9 +316,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed696(); + o.metadata = buildUnnamed715(); o.name = "foo"; - o.response = buildUnnamed697(); + o.response = buildUnnamed716(); } buildCounterOperation--; return o; @@ -329,34 +329,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed696(o.metadata); + checkUnnamed715(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed697(o.response); + checkUnnamed716(o.response); } buildCounterOperation--; } -buildUnnamed698() { +buildUnnamed717() { var o = new core.List<api.AuditConfig>(); o.add(buildAuditConfig()); o.add(buildAuditConfig()); return o; } -checkUnnamed698(core.List<api.AuditConfig> o) { +checkUnnamed717(core.List<api.AuditConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkAuditConfig(o[0]); checkAuditConfig(o[1]); } -buildUnnamed699() { +buildUnnamed718() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed699(core.List<api.Binding> o) { +checkUnnamed718(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -367,8 +367,8 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.auditConfigs = buildUnnamed698(); - o.bindings = buildUnnamed699(); + o.auditConfigs = buildUnnamed717(); + o.bindings = buildUnnamed718(); o.etag = "foo"; o.version = 42; } @@ -379,22 +379,22 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed698(o.auditConfigs); - checkUnnamed699(o.bindings); + checkUnnamed717(o.auditConfigs); + checkUnnamed718(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } buildCounterPolicy--; } -buildUnnamed700() { +buildUnnamed719() { var o = new core.Map<core.String, api.PubsubConfig>(); o["x"] = buildPubsubConfig(); o["y"] = buildPubsubConfig(); return o; } -checkUnnamed700(core.Map<core.String, api.PubsubConfig> o) { +checkUnnamed719(core.Map<core.String, api.PubsubConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubConfig(o["x"]); checkPubsubConfig(o["y"]); @@ -407,7 +407,7 @@ if (buildCounterProjectConfig < 3) { o.enablePrivateKeyCheck = true; o.name = "foo"; - o.pubsubConfigs = buildUnnamed700(); + o.pubsubConfigs = buildUnnamed719(); } buildCounterProjectConfig--; return o; @@ -418,7 +418,7 @@ if (buildCounterProjectConfig < 3) { unittest.expect(o.enablePrivateKeyCheck, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed700(o.pubsubConfigs); + checkUnnamed719(o.pubsubConfigs); } buildCounterProjectConfig--; } @@ -446,14 +446,14 @@ buildCounterPubsubConfig--; } -buildUnnamed701() { +buildUnnamed720() { var o = new core.Map<core.String, api.PubsubConfig>(); o["x"] = buildPubsubConfig(); o["y"] = buildPubsubConfig(); return o; } -checkUnnamed701(core.Map<core.String, api.PubsubConfig> o) { +checkUnnamed720(core.Map<core.String, api.PubsubConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkPubsubConfig(o["x"]); checkPubsubConfig(o["y"]); @@ -466,7 +466,7 @@ if (buildCounterRepo < 3) { o.mirrorConfig = buildMirrorConfig(); o.name = "foo"; - o.pubsubConfigs = buildUnnamed701(); + o.pubsubConfigs = buildUnnamed720(); o.size = "foo"; o.url = "foo"; } @@ -479,7 +479,7 @@ if (buildCounterRepo < 3) { checkMirrorConfig(o.mirrorConfig); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed701(o.pubsubConfigs); + checkUnnamed720(o.pubsubConfigs); unittest.expect(o.size, unittest.equals('foo')); unittest.expect(o.url, unittest.equals('foo')); } @@ -507,7 +507,7 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed702() { +buildUnnamed721() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -522,7 +522,7 @@ return o; } -checkUnnamed702(core.Map<core.String, core.Object> o) { +checkUnnamed721(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)); @@ -536,17 +536,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed703() { +buildUnnamed722() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed702()); - o.add(buildUnnamed702()); + o.add(buildUnnamed721()); + o.add(buildUnnamed721()); return o; } -checkUnnamed703(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed722(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed702(o[0]); - checkUnnamed702(o[1]); + checkUnnamed721(o[0]); + checkUnnamed721(o[1]); } core.int buildCounterStatus = 0; @@ -555,7 +555,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed703(); + o.details = buildUnnamed722(); o.message = "foo"; } buildCounterStatus--; @@ -566,7 +566,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed703(o.details); + checkUnnamed722(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -612,14 +612,14 @@ buildCounterSyncRepoRequest--; } -buildUnnamed704() { +buildUnnamed723() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed704(core.List<core.String> o) { +checkUnnamed723(core.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,7 +630,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed704(); + o.permissions = buildUnnamed723(); } buildCounterTestIamPermissionsRequest--; return o; @@ -639,19 +639,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed704(o.permissions); + checkUnnamed723(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed705() { +buildUnnamed724() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed705(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')); @@ -662,7 +662,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed705(); + o.permissions = buildUnnamed724(); } buildCounterTestIamPermissionsResponse--; return o; @@ -671,7 +671,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed705(o.permissions); + checkUnnamed724(o.permissions); } buildCounterTestIamPermissionsResponse--; }
diff --git a/generated/googleapis/test/spanner/v1_test.dart b/generated/googleapis/test/spanner/v1_test.dart index 6c2f2d1..da7ebd1 100644 --- a/generated/googleapis/test/spanner/v1_test.dart +++ b/generated/googleapis/test/spanner/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3368() { +buildUnnamed3531() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3368(core.List<core.String> o) { +checkUnnamed3531(core.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.database = "foo"; o.expireTime = "foo"; o.name = "foo"; - o.referencingDatabases = buildUnnamed3368(); + o.referencingDatabases = buildUnnamed3531(); o.sizeBytes = "foo"; o.state = "foo"; } @@ -87,7 +87,7 @@ unittest.expect(o.database, unittest.equals('foo')); unittest.expect(o.expireTime, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3368(o.referencingDatabases); + checkUnnamed3531(o.referencingDatabases); unittest.expect(o.sizeBytes, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } @@ -138,14 +138,14 @@ buildCounterBatchCreateSessionsRequest--; } -buildUnnamed3369() { +buildUnnamed3532() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed3369(core.List<api.Session> o) { +checkUnnamed3532(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -156,7 +156,7 @@ var o = new api.BatchCreateSessionsResponse(); buildCounterBatchCreateSessionsResponse++; if (buildCounterBatchCreateSessionsResponse < 3) { - o.session = buildUnnamed3369(); + o.session = buildUnnamed3532(); } buildCounterBatchCreateSessionsResponse--; return o; @@ -165,7 +165,7 @@ checkBatchCreateSessionsResponse(api.BatchCreateSessionsResponse o) { buildCounterBatchCreateSessionsResponse++; if (buildCounterBatchCreateSessionsResponse < 3) { - checkUnnamed3369(o.session); + checkUnnamed3532(o.session); } buildCounterBatchCreateSessionsResponse--; } @@ -189,14 +189,14 @@ buildCounterBeginTransactionRequest--; } -buildUnnamed3370() { +buildUnnamed3533() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3370(core.List<core.String> o) { +checkUnnamed3533(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -207,8 +207,9 @@ var o = new api.Binding(); buildCounterBinding++; if (buildCounterBinding < 3) { + o.bindingId = "foo"; o.condition = buildExpr(); - o.members = buildUnnamed3370(); + o.members = buildUnnamed3533(); o.role = "foo"; } buildCounterBinding--; @@ -218,8 +219,9 @@ checkBinding(api.Binding o) { buildCounterBinding++; if (buildCounterBinding < 3) { + unittest.expect(o.bindingId, unittest.equals('foo')); checkExpr(o.condition); - checkUnnamed3370(o.members); + checkUnnamed3533(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterBinding--; @@ -248,14 +250,14 @@ buildCounterChildLink--; } -buildUnnamed3371() { +buildUnnamed3534() { var o = new core.List<api.Mutation>(); o.add(buildMutation()); o.add(buildMutation()); return o; } -checkUnnamed3371(core.List<api.Mutation> o) { +checkUnnamed3534(core.List<api.Mutation> o) { unittest.expect(o, unittest.hasLength(2)); checkMutation(o[0]); checkMutation(o[1]); @@ -266,7 +268,7 @@ var o = new api.CommitRequest(); buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - o.mutations = buildUnnamed3371(); + o.mutations = buildUnnamed3534(); o.singleUseTransaction = buildTransactionOptions(); o.transactionId = "foo"; } @@ -277,7 +279,7 @@ checkCommitRequest(api.CommitRequest o) { buildCounterCommitRequest++; if (buildCounterCommitRequest < 3) { - checkUnnamed3371(o.mutations); + checkUnnamed3534(o.mutations); checkTransactionOptions(o.singleUseTransaction); unittest.expect(o.transactionId, unittest.equals('foo')); } @@ -347,14 +349,14 @@ buildCounterCreateDatabaseMetadata--; } -buildUnnamed3372() { +buildUnnamed3535() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3372(core.List<core.String> o) { +checkUnnamed3535(core.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 +368,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { o.createStatement = "foo"; - o.extraStatements = buildUnnamed3372(); + o.extraStatements = buildUnnamed3535(); } buildCounterCreateDatabaseRequest--; return o; @@ -376,7 +378,7 @@ buildCounterCreateDatabaseRequest++; if (buildCounterCreateDatabaseRequest < 3) { unittest.expect(o.createStatement, unittest.equals('foo')); - checkUnnamed3372(o.extraStatements); + checkUnnamed3535(o.extraStatements); } buildCounterCreateDatabaseRequest--; } @@ -507,14 +509,14 @@ buildCounterEmpty--; } -buildUnnamed3373() { +buildUnnamed3536() { var o = new core.List<api.Statement>(); o.add(buildStatement()); o.add(buildStatement()); return o; } -checkUnnamed3373(core.List<api.Statement> o) { +checkUnnamed3536(core.List<api.Statement> o) { unittest.expect(o, unittest.hasLength(2)); checkStatement(o[0]); checkStatement(o[1]); @@ -526,7 +528,7 @@ buildCounterExecuteBatchDmlRequest++; if (buildCounterExecuteBatchDmlRequest < 3) { o.seqno = "foo"; - o.statements = buildUnnamed3373(); + o.statements = buildUnnamed3536(); o.transaction = buildTransactionSelector(); } buildCounterExecuteBatchDmlRequest--; @@ -537,20 +539,20 @@ buildCounterExecuteBatchDmlRequest++; if (buildCounterExecuteBatchDmlRequest < 3) { unittest.expect(o.seqno, unittest.equals('foo')); - checkUnnamed3373(o.statements); + checkUnnamed3536(o.statements); checkTransactionSelector(o.transaction); } buildCounterExecuteBatchDmlRequest--; } -buildUnnamed3374() { +buildUnnamed3537() { var o = new core.List<api.ResultSet>(); o.add(buildResultSet()); o.add(buildResultSet()); return o; } -checkUnnamed3374(core.List<api.ResultSet> o) { +checkUnnamed3537(core.List<api.ResultSet> o) { unittest.expect(o, unittest.hasLength(2)); checkResultSet(o[0]); checkResultSet(o[1]); @@ -561,7 +563,7 @@ var o = new api.ExecuteBatchDmlResponse(); buildCounterExecuteBatchDmlResponse++; if (buildCounterExecuteBatchDmlResponse < 3) { - o.resultSets = buildUnnamed3374(); + o.resultSets = buildUnnamed3537(); o.status = buildStatus(); } buildCounterExecuteBatchDmlResponse--; @@ -571,26 +573,26 @@ checkExecuteBatchDmlResponse(api.ExecuteBatchDmlResponse o) { buildCounterExecuteBatchDmlResponse++; if (buildCounterExecuteBatchDmlResponse < 3) { - checkUnnamed3374(o.resultSets); + checkUnnamed3537(o.resultSets); checkStatus(o.status); } buildCounterExecuteBatchDmlResponse--; } -buildUnnamed3375() { +buildUnnamed3538() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed3375(core.Map<core.String, api.Type> o) { +checkUnnamed3538(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed3376() { +buildUnnamed3539() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -605,7 +607,7 @@ return o; } -checkUnnamed3376(core.Map<core.String, core.Object> o) { +checkUnnamed3539(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)); @@ -624,8 +626,8 @@ var o = new api.ExecuteSqlRequest(); buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - o.paramTypes = buildUnnamed3375(); - o.params = buildUnnamed3376(); + o.paramTypes = buildUnnamed3538(); + o.params = buildUnnamed3539(); o.partitionToken = "foo"; o.queryMode = "foo"; o.queryOptions = buildQueryOptions(); @@ -641,8 +643,8 @@ checkExecuteSqlRequest(api.ExecuteSqlRequest o) { buildCounterExecuteSqlRequest++; if (buildCounterExecuteSqlRequest < 3) { - checkUnnamed3375(o.paramTypes); - checkUnnamed3376(o.params); + checkUnnamed3538(o.paramTypes); + checkUnnamed3539(o.params); unittest.expect(o.partitionToken, unittest.equals('foo')); unittest.expect(o.queryMode, unittest.equals('foo')); checkQueryOptions(o.queryOptions); @@ -700,14 +702,14 @@ buildCounterField--; } -buildUnnamed3377() { +buildUnnamed3540() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3377(core.List<core.String> o) { +checkUnnamed3540(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -718,7 +720,7 @@ var o = new api.GetDatabaseDdlResponse(); buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - o.statements = buildUnnamed3377(); + o.statements = buildUnnamed3540(); } buildCounterGetDatabaseDdlResponse--; return o; @@ -727,7 +729,7 @@ checkGetDatabaseDdlResponse(api.GetDatabaseDdlResponse o) { buildCounterGetDatabaseDdlResponse++; if (buildCounterGetDatabaseDdlResponse < 3) { - checkUnnamed3377(o.statements); + checkUnnamed3540(o.statements); } buildCounterGetDatabaseDdlResponse--; } @@ -770,27 +772,27 @@ buildCounterGetPolicyOptions--; } -buildUnnamed3378() { +buildUnnamed3541() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3378(core.List<core.String> o) { +checkUnnamed3541(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3379() { +buildUnnamed3542() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3379(core.Map<core.String, core.String> o) { +checkUnnamed3542(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')); @@ -803,8 +805,8 @@ if (buildCounterInstance < 3) { o.config = "foo"; o.displayName = "foo"; - o.endpointUris = buildUnnamed3378(); - o.labels = buildUnnamed3379(); + o.endpointUris = buildUnnamed3541(); + o.labels = buildUnnamed3542(); o.name = "foo"; o.nodeCount = 42; o.state = "foo"; @@ -818,8 +820,8 @@ if (buildCounterInstance < 3) { unittest.expect(o.config, unittest.equals('foo')); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3378(o.endpointUris); - checkUnnamed3379(o.labels); + checkUnnamed3541(o.endpointUris); + checkUnnamed3542(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.nodeCount, unittest.equals(42)); unittest.expect(o.state, unittest.equals('foo')); @@ -827,14 +829,14 @@ buildCounterInstance--; } -buildUnnamed3380() { +buildUnnamed3543() { var o = new core.List<api.ReplicaInfo>(); o.add(buildReplicaInfo()); o.add(buildReplicaInfo()); return o; } -checkUnnamed3380(core.List<api.ReplicaInfo> o) { +checkUnnamed3543(core.List<api.ReplicaInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkReplicaInfo(o[0]); checkReplicaInfo(o[1]); @@ -847,7 +849,7 @@ if (buildCounterInstanceConfig < 3) { o.displayName = "foo"; o.name = "foo"; - o.replicas = buildUnnamed3380(); + o.replicas = buildUnnamed3543(); } buildCounterInstanceConfig--; return o; @@ -858,12 +860,12 @@ if (buildCounterInstanceConfig < 3) { unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3380(o.replicas); + checkUnnamed3543(o.replicas); } buildCounterInstanceConfig--; } -buildUnnamed3381() { +buildUnnamed3544() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -878,7 +880,7 @@ return o; } -checkUnnamed3381(core.List<core.Object> o) { +checkUnnamed3544(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o[0]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -892,7 +894,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed3382() { +buildUnnamed3545() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -907,7 +909,7 @@ return o; } -checkUnnamed3382(core.List<core.Object> o) { +checkUnnamed3545(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o[0]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -921,7 +923,7 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed3383() { +buildUnnamed3546() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -936,7 +938,7 @@ return o; } -checkUnnamed3383(core.List<core.Object> o) { +checkUnnamed3546(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted7 = (o[0]) as core.Map; unittest.expect(casted7, unittest.hasLength(3)); @@ -950,7 +952,7 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed3384() { +buildUnnamed3547() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -965,7 +967,7 @@ return o; } -checkUnnamed3384(core.List<core.Object> o) { +checkUnnamed3547(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted9 = (o[0]) as core.Map; unittest.expect(casted9, unittest.hasLength(3)); @@ -984,10 +986,10 @@ var o = new api.KeyRange(); buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - o.endClosed = buildUnnamed3381(); - o.endOpen = buildUnnamed3382(); - o.startClosed = buildUnnamed3383(); - o.startOpen = buildUnnamed3384(); + o.endClosed = buildUnnamed3544(); + o.endOpen = buildUnnamed3545(); + o.startClosed = buildUnnamed3546(); + o.startOpen = buildUnnamed3547(); } buildCounterKeyRange--; return o; @@ -996,15 +998,15 @@ checkKeyRange(api.KeyRange o) { buildCounterKeyRange++; if (buildCounterKeyRange < 3) { - checkUnnamed3381(o.endClosed); - checkUnnamed3382(o.endOpen); - checkUnnamed3383(o.startClosed); - checkUnnamed3384(o.startOpen); + checkUnnamed3544(o.endClosed); + checkUnnamed3545(o.endOpen); + checkUnnamed3546(o.startClosed); + checkUnnamed3547(o.startOpen); } buildCounterKeyRange--; } -buildUnnamed3385() { +buildUnnamed3548() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1019,7 +1021,7 @@ return o; } -checkUnnamed3385(core.List<core.Object> o) { +checkUnnamed3548(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted11 = (o[0]) as core.Map; unittest.expect(casted11, unittest.hasLength(3)); @@ -1033,27 +1035,27 @@ unittest.expect(casted12["string"], unittest.equals('foo')); } -buildUnnamed3386() { +buildUnnamed3549() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3385()); - o.add(buildUnnamed3385()); + o.add(buildUnnamed3548()); + o.add(buildUnnamed3548()); return o; } -checkUnnamed3386(core.List<core.List<core.Object>> o) { +checkUnnamed3549(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3385(o[0]); - checkUnnamed3385(o[1]); + checkUnnamed3548(o[0]); + checkUnnamed3548(o[1]); } -buildUnnamed3387() { +buildUnnamed3550() { var o = new core.List<api.KeyRange>(); o.add(buildKeyRange()); o.add(buildKeyRange()); return o; } -checkUnnamed3387(core.List<api.KeyRange> o) { +checkUnnamed3550(core.List<api.KeyRange> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyRange(o[0]); checkKeyRange(o[1]); @@ -1065,8 +1067,8 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { o.all = true; - o.keys = buildUnnamed3386(); - o.ranges = buildUnnamed3387(); + o.keys = buildUnnamed3549(); + o.ranges = buildUnnamed3550(); } buildCounterKeySet--; return o; @@ -1076,20 +1078,20 @@ buildCounterKeySet++; if (buildCounterKeySet < 3) { unittest.expect(o.all, unittest.isTrue); - checkUnnamed3386(o.keys); - checkUnnamed3387(o.ranges); + checkUnnamed3549(o.keys); + checkUnnamed3550(o.ranges); } buildCounterKeySet--; } -buildUnnamed3388() { +buildUnnamed3551() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3388(core.List<api.Operation> o) { +checkUnnamed3551(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1101,7 +1103,7 @@ buildCounterListBackupOperationsResponse++; if (buildCounterListBackupOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3388(); + o.operations = buildUnnamed3551(); } buildCounterListBackupOperationsResponse--; return o; @@ -1111,19 +1113,19 @@ buildCounterListBackupOperationsResponse++; if (buildCounterListBackupOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3388(o.operations); + checkUnnamed3551(o.operations); } buildCounterListBackupOperationsResponse--; } -buildUnnamed3389() { +buildUnnamed3552() { var o = new core.List<api.Backup>(); o.add(buildBackup()); o.add(buildBackup()); return o; } -checkUnnamed3389(core.List<api.Backup> o) { +checkUnnamed3552(core.List<api.Backup> o) { unittest.expect(o, unittest.hasLength(2)); checkBackup(o[0]); checkBackup(o[1]); @@ -1134,7 +1136,7 @@ var o = new api.ListBackupsResponse(); buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - o.backups = buildUnnamed3389(); + o.backups = buildUnnamed3552(); o.nextPageToken = "foo"; } buildCounterListBackupsResponse--; @@ -1144,20 +1146,20 @@ checkListBackupsResponse(api.ListBackupsResponse o) { buildCounterListBackupsResponse++; if (buildCounterListBackupsResponse < 3) { - checkUnnamed3389(o.backups); + checkUnnamed3552(o.backups); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListBackupsResponse--; } -buildUnnamed3390() { +buildUnnamed3553() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3390(core.List<api.Operation> o) { +checkUnnamed3553(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1169,7 +1171,7 @@ buildCounterListDatabaseOperationsResponse++; if (buildCounterListDatabaseOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3390(); + o.operations = buildUnnamed3553(); } buildCounterListDatabaseOperationsResponse--; return o; @@ -1179,19 +1181,19 @@ buildCounterListDatabaseOperationsResponse++; if (buildCounterListDatabaseOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3390(o.operations); + checkUnnamed3553(o.operations); } buildCounterListDatabaseOperationsResponse--; } -buildUnnamed3391() { +buildUnnamed3554() { var o = new core.List<api.Database>(); o.add(buildDatabase()); o.add(buildDatabase()); return o; } -checkUnnamed3391(core.List<api.Database> o) { +checkUnnamed3554(core.List<api.Database> o) { unittest.expect(o, unittest.hasLength(2)); checkDatabase(o[0]); checkDatabase(o[1]); @@ -1202,7 +1204,7 @@ var o = new api.ListDatabasesResponse(); buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - o.databases = buildUnnamed3391(); + o.databases = buildUnnamed3554(); o.nextPageToken = "foo"; } buildCounterListDatabasesResponse--; @@ -1212,20 +1214,20 @@ checkListDatabasesResponse(api.ListDatabasesResponse o) { buildCounterListDatabasesResponse++; if (buildCounterListDatabasesResponse < 3) { - checkUnnamed3391(o.databases); + checkUnnamed3554(o.databases); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListDatabasesResponse--; } -buildUnnamed3392() { +buildUnnamed3555() { var o = new core.List<api.InstanceConfig>(); o.add(buildInstanceConfig()); o.add(buildInstanceConfig()); return o; } -checkUnnamed3392(core.List<api.InstanceConfig> o) { +checkUnnamed3555(core.List<api.InstanceConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkInstanceConfig(o[0]); checkInstanceConfig(o[1]); @@ -1236,7 +1238,7 @@ var o = new api.ListInstanceConfigsResponse(); buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - o.instanceConfigs = buildUnnamed3392(); + o.instanceConfigs = buildUnnamed3555(); o.nextPageToken = "foo"; } buildCounterListInstanceConfigsResponse--; @@ -1246,20 +1248,20 @@ checkListInstanceConfigsResponse(api.ListInstanceConfigsResponse o) { buildCounterListInstanceConfigsResponse++; if (buildCounterListInstanceConfigsResponse < 3) { - checkUnnamed3392(o.instanceConfigs); + checkUnnamed3555(o.instanceConfigs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstanceConfigsResponse--; } -buildUnnamed3393() { +buildUnnamed3556() { var o = new core.List<api.Instance>(); o.add(buildInstance()); o.add(buildInstance()); return o; } -checkUnnamed3393(core.List<api.Instance> o) { +checkUnnamed3556(core.List<api.Instance> o) { unittest.expect(o, unittest.hasLength(2)); checkInstance(o[0]); checkInstance(o[1]); @@ -1270,7 +1272,7 @@ var o = new api.ListInstancesResponse(); buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - o.instances = buildUnnamed3393(); + o.instances = buildUnnamed3556(); o.nextPageToken = "foo"; } buildCounterListInstancesResponse--; @@ -1280,20 +1282,20 @@ checkListInstancesResponse(api.ListInstancesResponse o) { buildCounterListInstancesResponse++; if (buildCounterListInstancesResponse < 3) { - checkUnnamed3393(o.instances); + checkUnnamed3556(o.instances); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListInstancesResponse--; } -buildUnnamed3394() { +buildUnnamed3557() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed3394(core.List<api.Operation> o) { +checkUnnamed3557(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -1305,7 +1307,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed3394(); + o.operations = buildUnnamed3557(); } buildCounterListOperationsResponse--; return o; @@ -1315,19 +1317,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3394(o.operations); + checkUnnamed3557(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed3395() { +buildUnnamed3558() { var o = new core.List<api.Session>(); o.add(buildSession()); o.add(buildSession()); return o; } -checkUnnamed3395(core.List<api.Session> o) { +checkUnnamed3558(core.List<api.Session> o) { unittest.expect(o, unittest.hasLength(2)); checkSession(o[0]); checkSession(o[1]); @@ -1339,7 +1341,7 @@ buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { o.nextPageToken = "foo"; - o.sessions = buildUnnamed3395(); + o.sessions = buildUnnamed3558(); } buildCounterListSessionsResponse--; return o; @@ -1349,7 +1351,7 @@ buildCounterListSessionsResponse++; if (buildCounterListSessionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3395(o.sessions); + checkUnnamed3558(o.sessions); } buildCounterListSessionsResponse--; } @@ -1381,7 +1383,7 @@ buildCounterMutation--; } -buildUnnamed3396() { +buildUnnamed3559() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1396,7 +1398,7 @@ return o; } -checkUnnamed3396(core.Map<core.String, core.Object> o) { +checkUnnamed3559(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)); @@ -1410,7 +1412,7 @@ unittest.expect(casted14["string"], unittest.equals('foo')); } -buildUnnamed3397() { +buildUnnamed3560() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1425,7 +1427,7 @@ return o; } -checkUnnamed3397(core.Map<core.String, core.Object> o) { +checkUnnamed3560(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted15 = (o["x"]) as core.Map; unittest.expect(casted15, unittest.hasLength(3)); @@ -1446,9 +1448,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed3396(); + o.metadata = buildUnnamed3559(); o.name = "foo"; - o.response = buildUnnamed3397(); + o.response = buildUnnamed3560(); } buildCounterOperation--; return o; @@ -1459,9 +1461,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed3396(o.metadata); + checkUnnamed3559(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed3397(o.response); + checkUnnamed3560(o.response); } buildCounterOperation--; } @@ -1510,7 +1512,7 @@ buildCounterOptimizeRestoredDatabaseMetadata--; } -buildUnnamed3398() { +buildUnnamed3561() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -1525,7 +1527,7 @@ return o; } -checkUnnamed3398(core.List<core.Object> o) { +checkUnnamed3561(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted17 = (o[0]) as core.Map; unittest.expect(casted17, unittest.hasLength(3)); @@ -1548,7 +1550,7 @@ o.metadata = buildResultSetMetadata(); o.resumeToken = "foo"; o.stats = buildResultSetStats(); - o.values = buildUnnamed3398(); + o.values = buildUnnamed3561(); } buildCounterPartialResultSet--; return o; @@ -1561,7 +1563,7 @@ checkResultSetMetadata(o.metadata); unittest.expect(o.resumeToken, unittest.equals('foo')); checkResultSetStats(o.stats); - checkUnnamed3398(o.values); + checkUnnamed3561(o.values); } buildCounterPartialResultSet--; } @@ -1606,20 +1608,20 @@ buildCounterPartitionOptions--; } -buildUnnamed3399() { +buildUnnamed3562() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed3399(core.Map<core.String, api.Type> o) { +checkUnnamed3562(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed3400() { +buildUnnamed3563() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1634,7 +1636,7 @@ return o; } -checkUnnamed3400(core.Map<core.String, core.Object> o) { +checkUnnamed3563(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted19 = (o["x"]) as core.Map; unittest.expect(casted19, unittest.hasLength(3)); @@ -1653,8 +1655,8 @@ var o = new api.PartitionQueryRequest(); buildCounterPartitionQueryRequest++; if (buildCounterPartitionQueryRequest < 3) { - o.paramTypes = buildUnnamed3399(); - o.params = buildUnnamed3400(); + o.paramTypes = buildUnnamed3562(); + o.params = buildUnnamed3563(); o.partitionOptions = buildPartitionOptions(); o.sql = "foo"; o.transaction = buildTransactionSelector(); @@ -1666,8 +1668,8 @@ checkPartitionQueryRequest(api.PartitionQueryRequest o) { buildCounterPartitionQueryRequest++; if (buildCounterPartitionQueryRequest < 3) { - checkUnnamed3399(o.paramTypes); - checkUnnamed3400(o.params); + checkUnnamed3562(o.paramTypes); + checkUnnamed3563(o.params); checkPartitionOptions(o.partitionOptions); unittest.expect(o.sql, unittest.equals('foo')); checkTransactionSelector(o.transaction); @@ -1675,14 +1677,14 @@ buildCounterPartitionQueryRequest--; } -buildUnnamed3401() { +buildUnnamed3564() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3401(core.List<core.String> o) { +checkUnnamed3564(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1693,7 +1695,7 @@ var o = new api.PartitionReadRequest(); buildCounterPartitionReadRequest++; if (buildCounterPartitionReadRequest < 3) { - o.columns = buildUnnamed3401(); + o.columns = buildUnnamed3564(); o.index = "foo"; o.keySet = buildKeySet(); o.partitionOptions = buildPartitionOptions(); @@ -1707,7 +1709,7 @@ checkPartitionReadRequest(api.PartitionReadRequest o) { buildCounterPartitionReadRequest++; if (buildCounterPartitionReadRequest < 3) { - checkUnnamed3401(o.columns); + checkUnnamed3564(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); checkPartitionOptions(o.partitionOptions); @@ -1717,14 +1719,14 @@ buildCounterPartitionReadRequest--; } -buildUnnamed3402() { +buildUnnamed3565() { var o = new core.List<api.Partition>(); o.add(buildPartition()); o.add(buildPartition()); return o; } -checkUnnamed3402(core.List<api.Partition> o) { +checkUnnamed3565(core.List<api.Partition> o) { unittest.expect(o, unittest.hasLength(2)); checkPartition(o[0]); checkPartition(o[1]); @@ -1735,7 +1737,7 @@ var o = new api.PartitionResponse(); buildCounterPartitionResponse++; if (buildCounterPartitionResponse < 3) { - o.partitions = buildUnnamed3402(); + o.partitions = buildUnnamed3565(); o.transaction = buildTransaction(); } buildCounterPartitionResponse--; @@ -1745,7 +1747,7 @@ checkPartitionResponse(api.PartitionResponse o) { buildCounterPartitionResponse++; if (buildCounterPartitionResponse < 3) { - checkUnnamed3402(o.partitions); + checkUnnamed3565(o.partitions); checkTransaction(o.transaction); } buildCounterPartitionResponse--; @@ -1766,20 +1768,20 @@ buildCounterPartitionedDml--; } -buildUnnamed3403() { +buildUnnamed3566() { var o = new core.List<api.ChildLink>(); o.add(buildChildLink()); o.add(buildChildLink()); return o; } -checkUnnamed3403(core.List<api.ChildLink> o) { +checkUnnamed3566(core.List<api.ChildLink> o) { unittest.expect(o, unittest.hasLength(2)); checkChildLink(o[0]); checkChildLink(o[1]); } -buildUnnamed3404() { +buildUnnamed3567() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1794,7 +1796,7 @@ return o; } -checkUnnamed3404(core.Map<core.String, core.Object> o) { +checkUnnamed3567(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)); @@ -1808,7 +1810,7 @@ unittest.expect(casted22["string"], unittest.equals('foo')); } -buildUnnamed3405() { +buildUnnamed3568() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1823,7 +1825,7 @@ return o; } -checkUnnamed3405(core.Map<core.String, core.Object> o) { +checkUnnamed3568(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted23 = (o["x"]) as core.Map; unittest.expect(casted23, unittest.hasLength(3)); @@ -1842,12 +1844,12 @@ var o = new api.PlanNode(); buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - o.childLinks = buildUnnamed3403(); + o.childLinks = buildUnnamed3566(); o.displayName = "foo"; - o.executionStats = buildUnnamed3404(); + o.executionStats = buildUnnamed3567(); o.index = 42; o.kind = "foo"; - o.metadata = buildUnnamed3405(); + o.metadata = buildUnnamed3568(); o.shortRepresentation = buildShortRepresentation(); } buildCounterPlanNode--; @@ -1857,25 +1859,25 @@ checkPlanNode(api.PlanNode o) { buildCounterPlanNode++; if (buildCounterPlanNode < 3) { - checkUnnamed3403(o.childLinks); + checkUnnamed3566(o.childLinks); unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed3404(o.executionStats); + checkUnnamed3567(o.executionStats); unittest.expect(o.index, unittest.equals(42)); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed3405(o.metadata); + checkUnnamed3568(o.metadata); checkShortRepresentation(o.shortRepresentation); } buildCounterPlanNode--; } -buildUnnamed3406() { +buildUnnamed3569() { var o = new core.List<api.Binding>(); o.add(buildBinding()); o.add(buildBinding()); return o; } -checkUnnamed3406(core.List<api.Binding> o) { +checkUnnamed3569(core.List<api.Binding> o) { unittest.expect(o, unittest.hasLength(2)); checkBinding(o[0]); checkBinding(o[1]); @@ -1886,7 +1888,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed3406(); + o.bindings = buildUnnamed3569(); o.etag = "foo"; o.version = 42; } @@ -1897,7 +1899,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed3406(o.bindings); + checkUnnamed3569(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.version, unittest.equals(42)); } @@ -1923,14 +1925,14 @@ buildCounterQueryOptions--; } -buildUnnamed3407() { +buildUnnamed3570() { var o = new core.List<api.PlanNode>(); o.add(buildPlanNode()); o.add(buildPlanNode()); return o; } -checkUnnamed3407(core.List<api.PlanNode> o) { +checkUnnamed3570(core.List<api.PlanNode> o) { unittest.expect(o, unittest.hasLength(2)); checkPlanNode(o[0]); checkPlanNode(o[1]); @@ -1941,7 +1943,7 @@ var o = new api.QueryPlan(); buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - o.planNodes = buildUnnamed3407(); + o.planNodes = buildUnnamed3570(); } buildCounterQueryPlan--; return o; @@ -1950,7 +1952,7 @@ checkQueryPlan(api.QueryPlan o) { buildCounterQueryPlan++; if (buildCounterQueryPlan < 3) { - checkUnnamed3407(o.planNodes); + checkUnnamed3570(o.planNodes); } buildCounterQueryPlan--; } @@ -1984,14 +1986,14 @@ buildCounterReadOnly--; } -buildUnnamed3408() { +buildUnnamed3571() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3408(core.List<core.String> o) { +checkUnnamed3571(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2002,7 +2004,7 @@ var o = new api.ReadRequest(); buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - o.columns = buildUnnamed3408(); + o.columns = buildUnnamed3571(); o.index = "foo"; o.keySet = buildKeySet(); o.limit = "foo"; @@ -2018,7 +2020,7 @@ checkReadRequest(api.ReadRequest o) { buildCounterReadRequest++; if (buildCounterReadRequest < 3) { - checkUnnamed3408(o.columns); + checkUnnamed3571(o.columns); unittest.expect(o.index, unittest.equals('foo')); checkKeySet(o.keySet); unittest.expect(o.limit, unittest.equals('foo')); @@ -2139,7 +2141,7 @@ buildCounterRestoreInfo--; } -buildUnnamed3409() { +buildUnnamed3572() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2154,7 +2156,7 @@ return o; } -checkUnnamed3409(core.List<core.Object> o) { +checkUnnamed3572(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted25 = (o[0]) as core.Map; unittest.expect(casted25, unittest.hasLength(3)); @@ -2168,17 +2170,17 @@ unittest.expect(casted26["string"], unittest.equals('foo')); } -buildUnnamed3410() { +buildUnnamed3573() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3409()); - o.add(buildUnnamed3409()); + o.add(buildUnnamed3572()); + o.add(buildUnnamed3572()); return o; } -checkUnnamed3410(core.List<core.List<core.Object>> o) { +checkUnnamed3573(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3409(o[0]); - checkUnnamed3409(o[1]); + checkUnnamed3572(o[0]); + checkUnnamed3572(o[1]); } core.int buildCounterResultSet = 0; @@ -2187,7 +2189,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { o.metadata = buildResultSetMetadata(); - o.rows = buildUnnamed3410(); + o.rows = buildUnnamed3573(); o.stats = buildResultSetStats(); } buildCounterResultSet--; @@ -2198,7 +2200,7 @@ buildCounterResultSet++; if (buildCounterResultSet < 3) { checkResultSetMetadata(o.metadata); - checkUnnamed3410(o.rows); + checkUnnamed3573(o.rows); checkResultSetStats(o.stats); } buildCounterResultSet--; @@ -2225,7 +2227,7 @@ buildCounterResultSetMetadata--; } -buildUnnamed3411() { +buildUnnamed3574() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2240,7 +2242,7 @@ return o; } -checkUnnamed3411(core.Map<core.String, core.Object> o) { +checkUnnamed3574(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted27 = (o["x"]) as core.Map; unittest.expect(casted27, unittest.hasLength(3)); @@ -2260,7 +2262,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { o.queryPlan = buildQueryPlan(); - o.queryStats = buildUnnamed3411(); + o.queryStats = buildUnnamed3574(); o.rowCountExact = "foo"; o.rowCountLowerBound = "foo"; } @@ -2272,7 +2274,7 @@ buildCounterResultSetStats++; if (buildCounterResultSetStats < 3) { checkQueryPlan(o.queryPlan); - checkUnnamed3411(o.queryStats); + checkUnnamed3574(o.queryStats); unittest.expect(o.rowCountExact, unittest.equals('foo')); unittest.expect(o.rowCountLowerBound, unittest.equals('foo')); } @@ -2298,14 +2300,14 @@ buildCounterRollbackRequest--; } -buildUnnamed3412() { +buildUnnamed3575() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed3412(core.Map<core.String, core.String> o) { +checkUnnamed3575(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')); @@ -2318,7 +2320,7 @@ if (buildCounterSession < 3) { o.approximateLastUseTime = "foo"; o.createTime = "foo"; - o.labels = buildUnnamed3412(); + o.labels = buildUnnamed3575(); o.name = "foo"; } buildCounterSession--; @@ -2330,7 +2332,7 @@ if (buildCounterSession < 3) { unittest.expect(o.approximateLastUseTime, unittest.equals('foo')); unittest.expect(o.createTime, unittest.equals('foo')); - checkUnnamed3412(o.labels); + checkUnnamed3575(o.labels); unittest.expect(o.name, unittest.equals('foo')); } buildCounterSession--; @@ -2355,14 +2357,14 @@ buildCounterSetIamPolicyRequest--; } -buildUnnamed3413() { +buildUnnamed3576() { var o = new core.Map<core.String, core.int>(); o["x"] = 42; o["y"] = 42; return o; } -checkUnnamed3413(core.Map<core.String, core.int> o) { +checkUnnamed3576(core.Map<core.String, core.int> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o["x"], unittest.equals(42)); unittest.expect(o["y"], unittest.equals(42)); @@ -2374,7 +2376,7 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { o.description = "foo"; - o.subqueries = buildUnnamed3413(); + o.subqueries = buildUnnamed3576(); } buildCounterShortRepresentation--; return o; @@ -2384,25 +2386,25 @@ buildCounterShortRepresentation++; if (buildCounterShortRepresentation < 3) { unittest.expect(o.description, unittest.equals('foo')); - checkUnnamed3413(o.subqueries); + checkUnnamed3576(o.subqueries); } buildCounterShortRepresentation--; } -buildUnnamed3414() { +buildUnnamed3577() { var o = new core.Map<core.String, api.Type>(); o["x"] = buildType(); o["y"] = buildType(); return o; } -checkUnnamed3414(core.Map<core.String, api.Type> o) { +checkUnnamed3577(core.Map<core.String, api.Type> o) { unittest.expect(o, unittest.hasLength(2)); checkType(o["x"]); checkType(o["y"]); } -buildUnnamed3415() { +buildUnnamed3578() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2417,7 +2419,7 @@ return o; } -checkUnnamed3415(core.Map<core.String, core.Object> o) { +checkUnnamed3578(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted29 = (o["x"]) as core.Map; unittest.expect(casted29, unittest.hasLength(3)); @@ -2436,8 +2438,8 @@ var o = new api.Statement(); buildCounterStatement++; if (buildCounterStatement < 3) { - o.paramTypes = buildUnnamed3414(); - o.params = buildUnnamed3415(); + o.paramTypes = buildUnnamed3577(); + o.params = buildUnnamed3578(); o.sql = "foo"; } buildCounterStatement--; @@ -2447,14 +2449,14 @@ checkStatement(api.Statement o) { buildCounterStatement++; if (buildCounterStatement < 3) { - checkUnnamed3414(o.paramTypes); - checkUnnamed3415(o.params); + checkUnnamed3577(o.paramTypes); + checkUnnamed3578(o.params); unittest.expect(o.sql, unittest.equals('foo')); } buildCounterStatement--; } -buildUnnamed3416() { +buildUnnamed3579() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -2469,7 +2471,7 @@ return o; } -checkUnnamed3416(core.Map<core.String, core.Object> o) { +checkUnnamed3579(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted31 = (o["x"]) as core.Map; unittest.expect(casted31, unittest.hasLength(3)); @@ -2483,17 +2485,17 @@ unittest.expect(casted32["string"], unittest.equals('foo')); } -buildUnnamed3417() { +buildUnnamed3580() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3416()); - o.add(buildUnnamed3416()); + o.add(buildUnnamed3579()); + o.add(buildUnnamed3579()); return o; } -checkUnnamed3417(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3580(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3416(o[0]); - checkUnnamed3416(o[1]); + checkUnnamed3579(o[0]); + checkUnnamed3579(o[1]); } core.int buildCounterStatus = 0; @@ -2502,7 +2504,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3417(); + o.details = buildUnnamed3580(); o.message = "foo"; } buildCounterStatus--; @@ -2513,20 +2515,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3417(o.details); + checkUnnamed3580(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3418() { +buildUnnamed3581() { var o = new core.List<api.Field>(); o.add(buildField()); o.add(buildField()); return o; } -checkUnnamed3418(core.List<api.Field> o) { +checkUnnamed3581(core.List<api.Field> o) { unittest.expect(o, unittest.hasLength(2)); checkField(o[0]); checkField(o[1]); @@ -2537,7 +2539,7 @@ var o = new api.StructType(); buildCounterStructType++; if (buildCounterStructType < 3) { - o.fields = buildUnnamed3418(); + o.fields = buildUnnamed3581(); } buildCounterStructType--; return o; @@ -2546,19 +2548,19 @@ checkStructType(api.StructType o) { buildCounterStructType++; if (buildCounterStructType < 3) { - checkUnnamed3418(o.fields); + checkUnnamed3581(o.fields); } buildCounterStructType--; } -buildUnnamed3419() { +buildUnnamed3582() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3419(core.List<core.String> o) { +checkUnnamed3582(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2569,7 +2571,7 @@ var o = new api.TestIamPermissionsRequest(); buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - o.permissions = buildUnnamed3419(); + o.permissions = buildUnnamed3582(); } buildCounterTestIamPermissionsRequest--; return o; @@ -2578,19 +2580,19 @@ checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { buildCounterTestIamPermissionsRequest++; if (buildCounterTestIamPermissionsRequest < 3) { - checkUnnamed3419(o.permissions); + checkUnnamed3582(o.permissions); } buildCounterTestIamPermissionsRequest--; } -buildUnnamed3420() { +buildUnnamed3583() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3420(core.List<core.String> o) { +checkUnnamed3583(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2601,7 +2603,7 @@ var o = new api.TestIamPermissionsResponse(); buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - o.permissions = buildUnnamed3420(); + o.permissions = buildUnnamed3583(); } buildCounterTestIamPermissionsResponse--; return o; @@ -2610,7 +2612,7 @@ checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { - checkUnnamed3420(o.permissions); + checkUnnamed3583(o.permissions); } buildCounterTestIamPermissionsResponse--; } @@ -2705,27 +2707,27 @@ buildCounterType--; } -buildUnnamed3421() { +buildUnnamed3584() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3421(core.List<core.String> o) { +checkUnnamed3584(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3422() { +buildUnnamed3585() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3422(core.List<core.String> o) { +checkUnnamed3585(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2736,9 +2738,9 @@ var o = new api.UpdateDatabaseDdlMetadata(); buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - o.commitTimestamps = buildUnnamed3421(); + o.commitTimestamps = buildUnnamed3584(); o.database = "foo"; - o.statements = buildUnnamed3422(); + o.statements = buildUnnamed3585(); } buildCounterUpdateDatabaseDdlMetadata--; return o; @@ -2747,21 +2749,21 @@ checkUpdateDatabaseDdlMetadata(api.UpdateDatabaseDdlMetadata o) { buildCounterUpdateDatabaseDdlMetadata++; if (buildCounterUpdateDatabaseDdlMetadata < 3) { - checkUnnamed3421(o.commitTimestamps); + checkUnnamed3584(o.commitTimestamps); unittest.expect(o.database, unittest.equals('foo')); - checkUnnamed3422(o.statements); + checkUnnamed3585(o.statements); } buildCounterUpdateDatabaseDdlMetadata--; } -buildUnnamed3423() { +buildUnnamed3586() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3423(core.List<core.String> o) { +checkUnnamed3586(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2773,7 +2775,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { o.operationId = "foo"; - o.statements = buildUnnamed3423(); + o.statements = buildUnnamed3586(); } buildCounterUpdateDatabaseDdlRequest--; return o; @@ -2783,7 +2785,7 @@ buildCounterUpdateDatabaseDdlRequest++; if (buildCounterUpdateDatabaseDdlRequest < 3) { unittest.expect(o.operationId, unittest.equals('foo')); - checkUnnamed3423(o.statements); + checkUnnamed3586(o.statements); } buildCounterUpdateDatabaseDdlRequest--; } @@ -2834,20 +2836,20 @@ buildCounterUpdateInstanceRequest--; } -buildUnnamed3424() { +buildUnnamed3587() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3424(core.List<core.String> o) { +checkUnnamed3587(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3425() { +buildUnnamed3588() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -2862,7 +2864,7 @@ return o; } -checkUnnamed3425(core.List<core.Object> o) { +checkUnnamed3588(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted33 = (o[0]) as core.Map; unittest.expect(casted33, unittest.hasLength(3)); @@ -2876,17 +2878,17 @@ unittest.expect(casted34["string"], unittest.equals('foo')); } -buildUnnamed3426() { +buildUnnamed3589() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed3425()); - o.add(buildUnnamed3425()); + o.add(buildUnnamed3588()); + o.add(buildUnnamed3588()); return o; } -checkUnnamed3426(core.List<core.List<core.Object>> o) { +checkUnnamed3589(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3425(o[0]); - checkUnnamed3425(o[1]); + checkUnnamed3588(o[0]); + checkUnnamed3588(o[1]); } core.int buildCounterWrite = 0; @@ -2894,9 +2896,9 @@ var o = new api.Write(); buildCounterWrite++; if (buildCounterWrite < 3) { - o.columns = buildUnnamed3424(); + o.columns = buildUnnamed3587(); o.table = "foo"; - o.values = buildUnnamed3426(); + o.values = buildUnnamed3589(); } buildCounterWrite--; return o; @@ -2905,9 +2907,9 @@ checkWrite(api.Write o) { buildCounterWrite++; if (buildCounterWrite < 3) { - checkUnnamed3424(o.columns); + checkUnnamed3587(o.columns); unittest.expect(o.table, unittest.equals('foo')); - checkUnnamed3426(o.values); + checkUnnamed3589(o.values); } buildCounterWrite--; } @@ -3902,8 +3904,8 @@ new api.SpannerApi(mock).projects.instances; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3937,10 +3939,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3952,8 +3954,8 @@ res .list(arg_parent, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListInstancesResponse(response); @@ -4135,9 +4137,9 @@ api.ProjectsInstancesBackupOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.backupOperations; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4170,11 +4172,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4185,9 +4187,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListBackupOperationsResponse(response); @@ -4421,8 +4423,8 @@ api.ProjectsInstancesBackupsResourceApi res = new api.SpannerApi(mock).projects.instances.backups; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -4456,10 +4458,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -4471,8 +4473,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -4815,9 +4817,9 @@ api.ProjectsInstancesBackupsOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.backups.operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4850,11 +4852,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4865,9 +4867,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -4881,9 +4883,9 @@ api.ProjectsInstancesDatabaseOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databaseOperations; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4916,11 +4918,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -4931,9 +4933,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDatabaseOperationsResponse(response); @@ -5215,8 +5217,8 @@ api.ProjectsInstancesDatabasesResourceApi res = new api.SpannerApi(mock).projects.instances.databases; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5249,10 +5251,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5263,8 +5265,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListDatabasesResponse(response); @@ -5659,9 +5661,9 @@ api.ProjectsInstancesDatabasesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.databases.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5694,11 +5696,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5709,9 +5711,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -6222,8 +6224,8 @@ new api.SpannerApi(mock).projects.instances.databases.sessions; var arg_database = "foo"; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6258,9 +6260,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6272,8 +6274,8 @@ res .list(arg_database, pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListSessionsResponse(response); @@ -6723,9 +6725,9 @@ api.ProjectsInstancesOperationsResourceApi res = new api.SpannerApi(mock).projects.instances.operations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -6758,11 +6760,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -6773,9 +6775,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/speech/v1_test.dart b/generated/googleapis/test/speech/v1_test.dart index 190e7d6..851d9a2 100644 --- a/generated/googleapis/test/speech/v1_test.dart +++ b/generated/googleapis/test/speech/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed2634() { +buildUnnamed2766() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2634(core.List<api.Operation> o) { +checkUnnamed2766(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -69,7 +69,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2634(); + o.operations = buildUnnamed2766(); } buildCounterListOperationsResponse--; return o; @@ -79,7 +79,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2634(o.operations); + checkUnnamed2766(o.operations); } buildCounterListOperationsResponse--; } @@ -130,14 +130,14 @@ buildCounterLongRunningRecognizeRequest--; } -buildUnnamed2635() { +buildUnnamed2767() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed2635(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed2767(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -148,7 +148,7 @@ var o = new api.LongRunningRecognizeResponse(); buildCounterLongRunningRecognizeResponse++; if (buildCounterLongRunningRecognizeResponse < 3) { - o.results = buildUnnamed2635(); + o.results = buildUnnamed2767(); } buildCounterLongRunningRecognizeResponse--; return o; @@ -157,12 +157,12 @@ checkLongRunningRecognizeResponse(api.LongRunningRecognizeResponse o) { buildCounterLongRunningRecognizeResponse++; if (buildCounterLongRunningRecognizeResponse < 3) { - checkUnnamed2635(o.results); + checkUnnamed2767(o.results); } buildCounterLongRunningRecognizeResponse--; } -buildUnnamed2636() { +buildUnnamed2768() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -177,7 +177,7 @@ return o; } -checkUnnamed2636(core.Map<core.String, core.Object> o) { +checkUnnamed2768(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)); @@ -191,7 +191,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2637() { +buildUnnamed2769() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -206,7 +206,7 @@ return o; } -checkUnnamed2637(core.Map<core.String, core.Object> o) { +checkUnnamed2769(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)); @@ -227,9 +227,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2636(); + o.metadata = buildUnnamed2768(); o.name = "foo"; - o.response = buildUnnamed2637(); + o.response = buildUnnamed2769(); } buildCounterOperation--; return o; @@ -240,9 +240,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2636(o.metadata); + checkUnnamed2768(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2637(o.response); + checkUnnamed2769(o.response); } buildCounterOperation--; } @@ -268,14 +268,14 @@ buildCounterRecognitionAudio--; } -buildUnnamed2638() { +buildUnnamed2770() { var o = new core.List<api.SpeechContext>(); o.add(buildSpeechContext()); o.add(buildSpeechContext()); return o; } -checkUnnamed2638(core.List<api.SpeechContext> o) { +checkUnnamed2770(core.List<api.SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechContext(o[0]); checkSpeechContext(o[1]); @@ -298,7 +298,7 @@ o.model = "foo"; o.profanityFilter = true; o.sampleRateHertz = 42; - o.speechContexts = buildUnnamed2638(); + o.speechContexts = buildUnnamed2770(); o.useEnhanced = true; } buildCounterRecognitionConfig--; @@ -320,7 +320,7 @@ unittest.expect(o.model, unittest.equals('foo')); unittest.expect(o.profanityFilter, unittest.isTrue); unittest.expect(o.sampleRateHertz, unittest.equals(42)); - checkUnnamed2638(o.speechContexts); + checkUnnamed2770(o.speechContexts); unittest.expect(o.useEnhanced, unittest.isTrue); } buildCounterRecognitionConfig--; @@ -380,14 +380,14 @@ buildCounterRecognizeRequest--; } -buildUnnamed2639() { +buildUnnamed2771() { var o = new core.List<api.SpeechRecognitionResult>(); o.add(buildSpeechRecognitionResult()); o.add(buildSpeechRecognitionResult()); return o; } -checkUnnamed2639(core.List<api.SpeechRecognitionResult> o) { +checkUnnamed2771(core.List<api.SpeechRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionResult(o[0]); checkSpeechRecognitionResult(o[1]); @@ -398,7 +398,7 @@ var o = new api.RecognizeResponse(); buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - o.results = buildUnnamed2639(); + o.results = buildUnnamed2771(); } buildCounterRecognizeResponse--; return o; @@ -407,7 +407,7 @@ checkRecognizeResponse(api.RecognizeResponse o) { buildCounterRecognizeResponse++; if (buildCounterRecognizeResponse < 3) { - checkUnnamed2639(o.results); + checkUnnamed2771(o.results); } buildCounterRecognizeResponse--; } @@ -437,14 +437,14 @@ buildCounterSpeakerDiarizationConfig--; } -buildUnnamed2640() { +buildUnnamed2772() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2640(core.List<core.String> o) { +checkUnnamed2772(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -455,7 +455,7 @@ var o = new api.SpeechContext(); buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - o.phrases = buildUnnamed2640(); + o.phrases = buildUnnamed2772(); } buildCounterSpeechContext--; return o; @@ -464,19 +464,19 @@ checkSpeechContext(api.SpeechContext o) { buildCounterSpeechContext++; if (buildCounterSpeechContext < 3) { - checkUnnamed2640(o.phrases); + checkUnnamed2772(o.phrases); } buildCounterSpeechContext--; } -buildUnnamed2641() { +buildUnnamed2773() { var o = new core.List<api.WordInfo>(); o.add(buildWordInfo()); o.add(buildWordInfo()); return o; } -checkUnnamed2641(core.List<api.WordInfo> o) { +checkUnnamed2773(core.List<api.WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkWordInfo(o[0]); checkWordInfo(o[1]); @@ -489,7 +489,7 @@ if (buildCounterSpeechRecognitionAlternative < 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed2641(); + o.words = buildUnnamed2773(); } buildCounterSpeechRecognitionAlternative--; return o; @@ -500,19 +500,19 @@ if (buildCounterSpeechRecognitionAlternative < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed2641(o.words); + checkUnnamed2773(o.words); } buildCounterSpeechRecognitionAlternative--; } -buildUnnamed2642() { +buildUnnamed2774() { var o = new core.List<api.SpeechRecognitionAlternative>(); o.add(buildSpeechRecognitionAlternative()); o.add(buildSpeechRecognitionAlternative()); return o; } -checkUnnamed2642(core.List<api.SpeechRecognitionAlternative> o) { +checkUnnamed2774(core.List<api.SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); checkSpeechRecognitionAlternative(o[0]); checkSpeechRecognitionAlternative(o[1]); @@ -523,7 +523,7 @@ var o = new api.SpeechRecognitionResult(); buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - o.alternatives = buildUnnamed2642(); + o.alternatives = buildUnnamed2774(); o.channelTag = 42; } buildCounterSpeechRecognitionResult--; @@ -533,13 +533,13 @@ checkSpeechRecognitionResult(api.SpeechRecognitionResult o) { buildCounterSpeechRecognitionResult++; if (buildCounterSpeechRecognitionResult < 3) { - checkUnnamed2642(o.alternatives); + checkUnnamed2774(o.alternatives); unittest.expect(o.channelTag, unittest.equals(42)); } buildCounterSpeechRecognitionResult--; } -buildUnnamed2643() { +buildUnnamed2775() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -554,7 +554,7 @@ return o; } -checkUnnamed2643(core.Map<core.String, core.Object> o) { +checkUnnamed2775(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)); @@ -568,17 +568,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2644() { +buildUnnamed2776() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2643()); - o.add(buildUnnamed2643()); + o.add(buildUnnamed2775()); + o.add(buildUnnamed2775()); return o; } -checkUnnamed2644(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed2776(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2643(o[0]); - checkUnnamed2643(o[1]); + checkUnnamed2775(o[0]); + checkUnnamed2775(o[1]); } core.int buildCounterStatus = 0; @@ -587,7 +587,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2644(); + o.details = buildUnnamed2776(); o.message = "foo"; } buildCounterStatus--; @@ -598,7 +598,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2644(o.details); + checkUnnamed2776(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -813,10 +813,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.SpeechApi(mock).operations; - var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_name = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -848,12 +848,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); + unittest.expect(queryMap["name"].first, unittest.equals(arg_name)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -864,10 +864,10 @@ }), true); res .list( - name: arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, + name: arg_name, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/storage/v1_test.dart b/generated/googleapis/test/storage/v1_test.dart index 725e7f2..b31cac3 100644 --- a/generated/googleapis/test/storage/v1_test.dart +++ b/generated/googleapis/test/storage/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed5439() { +buildUnnamed5839() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed5439(core.List<api.BucketAccessControl> o) { +checkUnnamed5839(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -82,40 +82,40 @@ buildCounterBucketBilling--; } -buildUnnamed5440() { +buildUnnamed5840() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5440(core.List<core.String> o) { +checkUnnamed5840(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5441() { +buildUnnamed5841() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5441(core.List<core.String> o) { +checkUnnamed5841(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5442() { +buildUnnamed5842() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5442(core.List<core.String> o) { +checkUnnamed5842(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -127,9 +127,9 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { o.maxAgeSeconds = 42; - o.method = buildUnnamed5440(); - o.origin = buildUnnamed5441(); - o.responseHeader = buildUnnamed5442(); + o.method = buildUnnamed5840(); + o.origin = buildUnnamed5841(); + o.responseHeader = buildUnnamed5842(); } buildCounterBucketCors--; return o; @@ -139,34 +139,34 @@ buildCounterBucketCors++; if (buildCounterBucketCors < 3) { unittest.expect(o.maxAgeSeconds, unittest.equals(42)); - checkUnnamed5440(o.method); - checkUnnamed5441(o.origin); - checkUnnamed5442(o.responseHeader); + checkUnnamed5840(o.method); + checkUnnamed5841(o.origin); + checkUnnamed5842(o.responseHeader); } buildCounterBucketCors--; } -buildUnnamed5443() { +buildUnnamed5843() { var o = new core.List<api.BucketCors>(); o.add(buildBucketCors()); o.add(buildBucketCors()); return o; } -checkUnnamed5443(core.List<api.BucketCors> o) { +checkUnnamed5843(core.List<api.BucketCors> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketCors(o[0]); checkBucketCors(o[1]); } -buildUnnamed5444() { +buildUnnamed5844() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed5444(core.List<api.ObjectAccessControl> o) { +checkUnnamed5844(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -260,14 +260,14 @@ buildCounterBucketIamConfiguration--; } -buildUnnamed5445() { +buildUnnamed5845() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5445(core.Map<core.String, core.String> o) { +checkUnnamed5845(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')); @@ -294,14 +294,14 @@ buildCounterBucketLifecycleRuleAction--; } -buildUnnamed5446() { +buildUnnamed5846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5446(core.List<core.String> o) { +checkUnnamed5846(core.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,11 +314,13 @@ if (buildCounterBucketLifecycleRuleCondition < 3) { o.age = 42; o.createdBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.customTimeBefore = core.DateTime.parse("2002-02-27T14:01:02"); + o.customTimeBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.daysSinceCustomTime = 42; + o.daysSinceNoncurrentTime = 42; o.isLive = true; o.matchesPattern = "foo"; - o.matchesStorageClass = buildUnnamed5446(); + o.matchesStorageClass = buildUnnamed5846(); + o.noncurrentTimeBefore = core.DateTime.parse("2002-02-27T14:01:02Z"); o.numNewerVersions = 42; } buildCounterBucketLifecycleRuleCondition--; @@ -332,11 +334,14 @@ unittest.expect(o.createdBefore, unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.customTimeBefore, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.daysSinceCustomTime, unittest.equals(42)); + unittest.expect(o.daysSinceNoncurrentTime, unittest.equals(42)); unittest.expect(o.isLive, unittest.isTrue); unittest.expect(o.matchesPattern, unittest.equals('foo')); - checkUnnamed5446(o.matchesStorageClass); + checkUnnamed5846(o.matchesStorageClass); + unittest.expect(o.noncurrentTimeBefore, + unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); unittest.expect(o.numNewerVersions, unittest.equals(42)); } buildCounterBucketLifecycleRuleCondition--; @@ -363,14 +368,14 @@ buildCounterBucketLifecycleRule--; } -buildUnnamed5447() { +buildUnnamed5847() { var o = new core.List<api.BucketLifecycleRule>(); o.add(buildBucketLifecycleRule()); o.add(buildBucketLifecycleRule()); return o; } -checkUnnamed5447(core.List<api.BucketLifecycleRule> o) { +checkUnnamed5847(core.List<api.BucketLifecycleRule> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketLifecycleRule(o[0]); checkBucketLifecycleRule(o[1]); @@ -381,7 +386,7 @@ var o = new api.BucketLifecycle(); buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - o.rule = buildUnnamed5447(); + o.rule = buildUnnamed5847(); } buildCounterBucketLifecycle--; return o; @@ -390,7 +395,7 @@ checkBucketLifecycle(api.BucketLifecycle o) { buildCounterBucketLifecycle++; if (buildCounterBucketLifecycle < 3) { - checkUnnamed5447(o.rule); + checkUnnamed5847(o.rule); } buildCounterBucketLifecycle--; } @@ -501,14 +506,14 @@ buildCounterBucketWebsite--; } -buildUnnamed5448() { +buildUnnamed5848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5448(core.List<core.String> o) { +checkUnnamed5848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -519,17 +524,17 @@ var o = new api.Bucket(); buildCounterBucket++; if (buildCounterBucket < 3) { - o.acl = buildUnnamed5439(); + o.acl = buildUnnamed5839(); o.billing = buildBucketBilling(); - o.cors = buildUnnamed5443(); + o.cors = buildUnnamed5843(); o.defaultEventBasedHold = true; - o.defaultObjectAcl = buildUnnamed5444(); + o.defaultObjectAcl = buildUnnamed5844(); o.encryption = buildBucketEncryption(); o.etag = "foo"; o.iamConfiguration = buildBucketIamConfiguration(); o.id = "foo"; o.kind = "foo"; - o.labels = buildUnnamed5445(); + o.labels = buildUnnamed5845(); o.lifecycle = buildBucketLifecycle(); o.location = "foo"; o.locationType = "foo"; @@ -545,8 +550,7 @@ o.updated = core.DateTime.parse("2002-02-27T14:01:02"); o.versioning = buildBucketVersioning(); o.website = buildBucketWebsite(); - o.zoneAffinity = buildUnnamed5448(); - o.zoneSeparation = true; + o.zoneAffinity = buildUnnamed5848(); } buildCounterBucket--; return o; @@ -555,17 +559,17 @@ checkBucket(api.Bucket o) { buildCounterBucket++; if (buildCounterBucket < 3) { - checkUnnamed5439(o.acl); + checkUnnamed5839(o.acl); checkBucketBilling(o.billing); - checkUnnamed5443(o.cors); + checkUnnamed5843(o.cors); unittest.expect(o.defaultEventBasedHold, unittest.isTrue); - checkUnnamed5444(o.defaultObjectAcl); + checkUnnamed5844(o.defaultObjectAcl); checkBucketEncryption(o.encryption); unittest.expect(o.etag, unittest.equals('foo')); checkBucketIamConfiguration(o.iamConfiguration); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5445(o.labels); + checkUnnamed5845(o.labels); checkBucketLifecycle(o.lifecycle); unittest.expect(o.location, unittest.equals('foo')); unittest.expect(o.locationType, unittest.equals('foo')); @@ -583,8 +587,7 @@ o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); checkBucketVersioning(o.versioning); checkBucketWebsite(o.website); - checkUnnamed5448(o.zoneAffinity); - unittest.expect(o.zoneSeparation, unittest.isTrue); + checkUnnamed5848(o.zoneAffinity); } buildCounterBucket--; } @@ -649,14 +652,14 @@ buildCounterBucketAccessControl--; } -buildUnnamed5449() { +buildUnnamed5849() { var o = new core.List<api.BucketAccessControl>(); o.add(buildBucketAccessControl()); o.add(buildBucketAccessControl()); return o; } -checkUnnamed5449(core.List<api.BucketAccessControl> o) { +checkUnnamed5849(core.List<api.BucketAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkBucketAccessControl(o[0]); checkBucketAccessControl(o[1]); @@ -667,7 +670,7 @@ var o = new api.BucketAccessControls(); buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - o.items = buildUnnamed5449(); + o.items = buildUnnamed5849(); o.kind = "foo"; } buildCounterBucketAccessControls--; @@ -677,20 +680,20 @@ checkBucketAccessControls(api.BucketAccessControls o) { buildCounterBucketAccessControls++; if (buildCounterBucketAccessControls < 3) { - checkUnnamed5449(o.items); + checkUnnamed5849(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterBucketAccessControls--; } -buildUnnamed5450() { +buildUnnamed5850() { var o = new core.List<api.Bucket>(); o.add(buildBucket()); o.add(buildBucket()); return o; } -checkUnnamed5450(core.List<api.Bucket> o) { +checkUnnamed5850(core.List<api.Bucket> o) { unittest.expect(o, unittest.hasLength(2)); checkBucket(o[0]); checkBucket(o[1]); @@ -701,7 +704,7 @@ var o = new api.Buckets(); buildCounterBuckets++; if (buildCounterBuckets < 3) { - o.items = buildUnnamed5450(); + o.items = buildUnnamed5850(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -712,21 +715,21 @@ checkBuckets(api.Buckets o) { buildCounterBuckets++; if (buildCounterBuckets < 3) { - checkUnnamed5450(o.items); + checkUnnamed5850(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterBuckets--; } -buildUnnamed5451() { +buildUnnamed5851() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5451(core.Map<core.String, core.String> o) { +checkUnnamed5851(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')); @@ -741,7 +744,7 @@ o.expiration = "foo"; o.id = "foo"; o.kind = "foo"; - o.params = buildUnnamed5451(); + o.params = buildUnnamed5851(); o.payload = true; o.resourceId = "foo"; o.resourceUri = "foo"; @@ -759,7 +762,7 @@ unittest.expect(o.expiration, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5451(o.params); + checkUnnamed5851(o.params); unittest.expect(o.payload, unittest.isTrue); unittest.expect(o.resourceId, unittest.equals('foo')); unittest.expect(o.resourceUri, unittest.equals('foo')); @@ -813,14 +816,14 @@ buildCounterComposeRequestSourceObjects--; } -buildUnnamed5452() { +buildUnnamed5852() { var o = new core.List<api.ComposeRequestSourceObjects>(); o.add(buildComposeRequestSourceObjects()); o.add(buildComposeRequestSourceObjects()); return o; } -checkUnnamed5452(core.List<api.ComposeRequestSourceObjects> o) { +checkUnnamed5852(core.List<api.ComposeRequestSourceObjects> o) { unittest.expect(o, unittest.hasLength(2)); checkComposeRequestSourceObjects(o[0]); checkComposeRequestSourceObjects(o[1]); @@ -833,7 +836,7 @@ if (buildCounterComposeRequest < 3) { o.destination = buildObject(); o.kind = "foo"; - o.sourceObjects = buildUnnamed5452(); + o.sourceObjects = buildUnnamed5852(); } buildCounterComposeRequest--; return o; @@ -844,7 +847,7 @@ if (buildCounterComposeRequest < 3) { checkObject(o.destination); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5452(o.sourceObjects); + checkUnnamed5852(o.sourceObjects); } buildCounterComposeRequest--; } @@ -936,14 +939,14 @@ buildCounterHmacKeyMetadata--; } -buildUnnamed5453() { +buildUnnamed5853() { var o = new core.List<api.HmacKeyMetadata>(); o.add(buildHmacKeyMetadata()); o.add(buildHmacKeyMetadata()); return o; } -checkUnnamed5453(core.List<api.HmacKeyMetadata> o) { +checkUnnamed5853(core.List<api.HmacKeyMetadata> o) { unittest.expect(o, unittest.hasLength(2)); checkHmacKeyMetadata(o[0]); checkHmacKeyMetadata(o[1]); @@ -954,7 +957,7 @@ var o = new api.HmacKeysMetadata(); buildCounterHmacKeysMetadata++; if (buildCounterHmacKeysMetadata < 3) { - o.items = buildUnnamed5453(); + o.items = buildUnnamed5853(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -965,34 +968,34 @@ checkHmacKeysMetadata(api.HmacKeysMetadata o) { buildCounterHmacKeysMetadata++; if (buildCounterHmacKeysMetadata < 3) { - checkUnnamed5453(o.items); + checkUnnamed5853(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterHmacKeysMetadata--; } -buildUnnamed5454() { +buildUnnamed5854() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5454(core.Map<core.String, core.String> o) { +checkUnnamed5854(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')); } -buildUnnamed5455() { +buildUnnamed5855() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5455(core.List<core.String> o) { +checkUnnamed5855(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1003,9 +1006,9 @@ var o = new api.Notification(); buildCounterNotification++; if (buildCounterNotification < 3) { - o.customAttributes = buildUnnamed5454(); + o.customAttributes = buildUnnamed5854(); o.etag = "foo"; - o.eventTypes = buildUnnamed5455(); + o.eventTypes = buildUnnamed5855(); o.id = "foo"; o.kind = "foo"; o.objectNamePrefix = "foo"; @@ -1020,9 +1023,9 @@ checkNotification(api.Notification o) { buildCounterNotification++; if (buildCounterNotification < 3) { - checkUnnamed5454(o.customAttributes); + checkUnnamed5854(o.customAttributes); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed5455(o.eventTypes); + checkUnnamed5855(o.eventTypes); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.objectNamePrefix, unittest.equals('foo')); @@ -1033,14 +1036,14 @@ buildCounterNotification--; } -buildUnnamed5456() { +buildUnnamed5856() { var o = new core.List<api.Notification>(); o.add(buildNotification()); o.add(buildNotification()); return o; } -checkUnnamed5456(core.List<api.Notification> o) { +checkUnnamed5856(core.List<api.Notification> o) { unittest.expect(o, unittest.hasLength(2)); checkNotification(o[0]); checkNotification(o[1]); @@ -1051,7 +1054,7 @@ var o = new api.Notifications(); buildCounterNotifications++; if (buildCounterNotifications < 3) { - o.items = buildUnnamed5456(); + o.items = buildUnnamed5856(); o.kind = "foo"; } buildCounterNotifications--; @@ -1061,20 +1064,20 @@ checkNotifications(api.Notifications o) { buildCounterNotifications++; if (buildCounterNotifications < 3) { - checkUnnamed5456(o.items); + checkUnnamed5856(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterNotifications--; } -buildUnnamed5457() { +buildUnnamed5857() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed5457(core.List<api.ObjectAccessControl> o) { +checkUnnamed5857(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -1101,14 +1104,14 @@ buildCounterObjectCustomerEncryption--; } -buildUnnamed5458() { +buildUnnamed5858() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed5458(core.Map<core.String, core.String> o) { +checkUnnamed5858(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')); @@ -1140,7 +1143,7 @@ var o = new api.Object(); buildCounterObject++; if (buildCounterObject < 3) { - o.acl = buildUnnamed5457(); + o.acl = buildUnnamed5857(); o.bucket = "foo"; o.cacheControl = "foo"; o.componentCount = 42; @@ -1159,7 +1162,7 @@ o.kmsKeyName = "foo"; o.md5Hash = "foo"; o.mediaLink = "foo"; - o.metadata = buildUnnamed5458(); + o.metadata = buildUnnamed5858(); o.metageneration = "foo"; o.name = "foo"; o.owner = buildObjectOwner(); @@ -1180,7 +1183,7 @@ checkObject(api.Object o) { buildCounterObject++; if (buildCounterObject < 3) { - checkUnnamed5457(o.acl); + checkUnnamed5857(o.acl); unittest.expect(o.bucket, unittest.equals('foo')); unittest.expect(o.cacheControl, unittest.equals('foo')); unittest.expect(o.componentCount, unittest.equals(42)); @@ -1200,7 +1203,7 @@ unittest.expect(o.kmsKeyName, unittest.equals('foo')); unittest.expect(o.md5Hash, unittest.equals('foo')); unittest.expect(o.mediaLink, unittest.equals('foo')); - checkUnnamed5458(o.metadata); + checkUnnamed5858(o.metadata); unittest.expect(o.metageneration, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); checkObjectOwner(o.owner); @@ -1286,14 +1289,14 @@ buildCounterObjectAccessControl--; } -buildUnnamed5459() { +buildUnnamed5859() { var o = new core.List<api.ObjectAccessControl>(); o.add(buildObjectAccessControl()); o.add(buildObjectAccessControl()); return o; } -checkUnnamed5459(core.List<api.ObjectAccessControl> o) { +checkUnnamed5859(core.List<api.ObjectAccessControl> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAccessControl(o[0]); checkObjectAccessControl(o[1]); @@ -1304,7 +1307,7 @@ var o = new api.ObjectAccessControls(); buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - o.items = buildUnnamed5459(); + o.items = buildUnnamed5859(); o.kind = "foo"; } buildCounterObjectAccessControls--; @@ -1314,33 +1317,33 @@ checkObjectAccessControls(api.ObjectAccessControls o) { buildCounterObjectAccessControls++; if (buildCounterObjectAccessControls < 3) { - checkUnnamed5459(o.items); + checkUnnamed5859(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterObjectAccessControls--; } -buildUnnamed5460() { +buildUnnamed5860() { var o = new core.List<api.Object>(); o.add(buildObject()); o.add(buildObject()); return o; } -checkUnnamed5460(core.List<api.Object> o) { +checkUnnamed5860(core.List<api.Object> o) { unittest.expect(o, unittest.hasLength(2)); checkObject(o[0]); checkObject(o[1]); } -buildUnnamed5461() { +buildUnnamed5861() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5461(core.List<core.String> o) { +checkUnnamed5861(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1351,10 +1354,10 @@ var o = new api.Objects(); buildCounterObjects++; if (buildCounterObjects < 3) { - o.items = buildUnnamed5460(); + o.items = buildUnnamed5860(); o.kind = "foo"; o.nextPageToken = "foo"; - o.prefixes = buildUnnamed5461(); + o.prefixes = buildUnnamed5861(); } buildCounterObjects--; return o; @@ -1363,22 +1366,22 @@ checkObjects(api.Objects o) { buildCounterObjects++; if (buildCounterObjects < 3) { - checkUnnamed5460(o.items); + checkUnnamed5860(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed5461(o.prefixes); + checkUnnamed5861(o.prefixes); } buildCounterObjects--; } -buildUnnamed5462() { +buildUnnamed5862() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5462(core.List<core.String> o) { +checkUnnamed5862(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1390,7 +1393,7 @@ buildCounterPolicyBindings++; if (buildCounterPolicyBindings < 3) { o.condition = buildExpr(); - o.members = buildUnnamed5462(); + o.members = buildUnnamed5862(); o.role = "foo"; } buildCounterPolicyBindings--; @@ -1401,20 +1404,20 @@ buildCounterPolicyBindings++; if (buildCounterPolicyBindings < 3) { checkExpr(o.condition); - checkUnnamed5462(o.members); + checkUnnamed5862(o.members); unittest.expect(o.role, unittest.equals('foo')); } buildCounterPolicyBindings--; } -buildUnnamed5463() { +buildUnnamed5863() { var o = new core.List<api.PolicyBindings>(); o.add(buildPolicyBindings()); o.add(buildPolicyBindings()); return o; } -checkUnnamed5463(core.List<api.PolicyBindings> o) { +checkUnnamed5863(core.List<api.PolicyBindings> o) { unittest.expect(o, unittest.hasLength(2)); checkPolicyBindings(o[0]); checkPolicyBindings(o[1]); @@ -1425,7 +1428,7 @@ var o = new api.Policy(); buildCounterPolicy++; if (buildCounterPolicy < 3) { - o.bindings = buildUnnamed5463(); + o.bindings = buildUnnamed5863(); o.etag = "foo"; o.kind = "foo"; o.resourceId = "foo"; @@ -1438,7 +1441,7 @@ checkPolicy(api.Policy o) { buildCounterPolicy++; if (buildCounterPolicy < 3) { - checkUnnamed5463(o.bindings); + checkUnnamed5863(o.bindings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.resourceId, unittest.equals('foo')); @@ -1497,14 +1500,14 @@ buildCounterServiceAccount--; } -buildUnnamed5464() { +buildUnnamed5864() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5464(core.List<core.String> o) { +checkUnnamed5864(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1516,7 +1519,7 @@ buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { o.kind = "foo"; - o.permissions = buildUnnamed5464(); + o.permissions = buildUnnamed5864(); } buildCounterTestIamPermissionsResponse--; return o; @@ -1526,32 +1529,32 @@ buildCounterTestIamPermissionsResponse++; if (buildCounterTestIamPermissionsResponse < 3) { unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed5464(o.permissions); + checkUnnamed5864(o.permissions); } buildCounterTestIamPermissionsResponse--; } -buildUnnamed5465() { +buildUnnamed5865() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5465(core.List<core.String> o) { +checkUnnamed5865(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed5466() { +buildUnnamed5866() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed5466(core.List<core.String> o) { +checkUnnamed5866(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2985,7 +2988,7 @@ var mock = new HttpServerMock(); api.BucketsResourceApi res = new api.StorageApi(mock).buckets; var arg_bucket = "foo"; - var arg_permissions = buildUnnamed5465(); + var arg_permissions = buildUnnamed5865(); var arg_provisionalUserProject = "foo"; var arg_userProject = "foo"; var arg_$fields = "foo"; @@ -5617,7 +5620,7 @@ api.ObjectsResourceApi res = new api.StorageApi(mock).objects; var arg_bucket = "foo"; var arg_object = "foo"; - var arg_permissions = buildUnnamed5466(); + var arg_permissions = buildUnnamed5866(); var arg_generation = "foo"; var arg_provisionalUserProject = "foo"; var arg_userProject = "foo";
diff --git a/generated/googleapis/test/storagetransfer/v1_test.dart b/generated/googleapis/test/storagetransfer/v1_test.dart index 51d20c2..7f284ae 100644 --- a/generated/googleapis/test/storagetransfer/v1_test.dart +++ b/generated/googleapis/test/storagetransfer/v1_test.dart
@@ -172,14 +172,14 @@ buildCounterEmpty--; } -buildUnnamed1417() { +buildUnnamed1447() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1417(core.List<core.String> o) { +checkUnnamed1447(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -190,7 +190,7 @@ var o = new api.ErrorLogEntry(); buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - o.errorDetails = buildUnnamed1417(); + o.errorDetails = buildUnnamed1447(); o.url = "foo"; } buildCounterErrorLogEntry--; @@ -200,20 +200,20 @@ checkErrorLogEntry(api.ErrorLogEntry o) { buildCounterErrorLogEntry++; if (buildCounterErrorLogEntry < 3) { - checkUnnamed1417(o.errorDetails); + checkUnnamed1447(o.errorDetails); unittest.expect(o.url, unittest.equals('foo')); } buildCounterErrorLogEntry--; } -buildUnnamed1418() { +buildUnnamed1448() { var o = new core.List<api.ErrorLogEntry>(); o.add(buildErrorLogEntry()); o.add(buildErrorLogEntry()); return o; } -checkUnnamed1418(core.List<api.ErrorLogEntry> o) { +checkUnnamed1448(core.List<api.ErrorLogEntry> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorLogEntry(o[0]); checkErrorLogEntry(o[1]); @@ -226,7 +226,7 @@ if (buildCounterErrorSummary < 3) { o.errorCode = "foo"; o.errorCount = "foo"; - o.errorLogEntries = buildUnnamed1418(); + o.errorLogEntries = buildUnnamed1448(); } buildCounterErrorSummary--; return o; @@ -237,7 +237,7 @@ if (buildCounterErrorSummary < 3) { unittest.expect(o.errorCode, unittest.equals('foo')); unittest.expect(o.errorCount, unittest.equals('foo')); - checkUnnamed1418(o.errorLogEntries); + checkUnnamed1448(o.errorLogEntries); } buildCounterErrorSummary--; } @@ -299,14 +299,14 @@ buildCounterHttpData--; } -buildUnnamed1419() { +buildUnnamed1449() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed1419(core.List<api.Operation> o) { +checkUnnamed1449(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -318,7 +318,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed1419(); + o.operations = buildUnnamed1449(); } buildCounterListOperationsResponse--; return o; @@ -328,19 +328,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1419(o.operations); + checkUnnamed1449(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed1420() { +buildUnnamed1450() { var o = new core.List<api.TransferJob>(); o.add(buildTransferJob()); o.add(buildTransferJob()); return o; } -checkUnnamed1420(core.List<api.TransferJob> o) { +checkUnnamed1450(core.List<api.TransferJob> o) { unittest.expect(o, unittest.hasLength(2)); checkTransferJob(o[0]); checkTransferJob(o[1]); @@ -352,7 +352,7 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { o.nextPageToken = "foo"; - o.transferJobs = buildUnnamed1420(); + o.transferJobs = buildUnnamed1450(); } buildCounterListTransferJobsResponse--; return o; @@ -362,19 +362,19 @@ buildCounterListTransferJobsResponse++; if (buildCounterListTransferJobsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed1420(o.transferJobs); + checkUnnamed1450(o.transferJobs); } buildCounterListTransferJobsResponse--; } -buildUnnamed1421() { +buildUnnamed1451() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1421(core.List<core.String> o) { +checkUnnamed1451(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -385,7 +385,7 @@ var o = new api.NotificationConfig(); buildCounterNotificationConfig++; if (buildCounterNotificationConfig < 3) { - o.eventTypes = buildUnnamed1421(); + o.eventTypes = buildUnnamed1451(); o.payloadFormat = "foo"; o.pubsubTopic = "foo"; } @@ -396,34 +396,34 @@ checkNotificationConfig(api.NotificationConfig o) { buildCounterNotificationConfig++; if (buildCounterNotificationConfig < 3) { - checkUnnamed1421(o.eventTypes); + checkUnnamed1451(o.eventTypes); unittest.expect(o.payloadFormat, unittest.equals('foo')); unittest.expect(o.pubsubTopic, unittest.equals('foo')); } buildCounterNotificationConfig--; } -buildUnnamed1422() { +buildUnnamed1452() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1422(core.List<core.String> o) { +checkUnnamed1452(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1423() { +buildUnnamed1453() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1423(core.List<core.String> o) { +checkUnnamed1453(core.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,8 +434,8 @@ var o = new api.ObjectConditions(); buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - o.excludePrefixes = buildUnnamed1422(); - o.includePrefixes = buildUnnamed1423(); + o.excludePrefixes = buildUnnamed1452(); + o.includePrefixes = buildUnnamed1453(); o.lastModifiedBefore = "foo"; o.lastModifiedSince = "foo"; o.maxTimeElapsedSinceLastModification = "foo"; @@ -448,8 +448,8 @@ checkObjectConditions(api.ObjectConditions o) { buildCounterObjectConditions++; if (buildCounterObjectConditions < 3) { - checkUnnamed1422(o.excludePrefixes); - checkUnnamed1423(o.includePrefixes); + checkUnnamed1452(o.excludePrefixes); + checkUnnamed1453(o.includePrefixes); unittest.expect(o.lastModifiedBefore, unittest.equals('foo')); unittest.expect(o.lastModifiedSince, unittest.equals('foo')); unittest.expect( @@ -460,7 +460,7 @@ buildCounterObjectConditions--; } -buildUnnamed1424() { +buildUnnamed1454() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -475,7 +475,7 @@ return o; } -checkUnnamed1424(core.Map<core.String, core.Object> o) { +checkUnnamed1454(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)); @@ -489,7 +489,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed1425() { +buildUnnamed1455() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -504,7 +504,7 @@ return o; } -checkUnnamed1425(core.Map<core.String, core.Object> o) { +checkUnnamed1455(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)); @@ -525,9 +525,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed1424(); + o.metadata = buildUnnamed1454(); o.name = "foo"; - o.response = buildUnnamed1425(); + o.response = buildUnnamed1455(); } buildCounterOperation--; return o; @@ -538,9 +538,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed1424(o.metadata); + checkUnnamed1454(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed1425(o.response); + checkUnnamed1455(o.response); } buildCounterOperation--; } @@ -598,7 +598,7 @@ buildCounterSchedule--; } -buildUnnamed1426() { +buildUnnamed1456() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -613,7 +613,7 @@ return o; } -checkUnnamed1426(core.Map<core.String, core.Object> o) { +checkUnnamed1456(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)); @@ -627,17 +627,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed1427() { +buildUnnamed1457() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed1426()); - o.add(buildUnnamed1426()); + o.add(buildUnnamed1456()); + o.add(buildUnnamed1456()); return o; } -checkUnnamed1427(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1457(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed1426(o[0]); - checkUnnamed1426(o[1]); + checkUnnamed1456(o[0]); + checkUnnamed1456(o[1]); } core.int buildCounterStatus = 0; @@ -646,7 +646,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed1427(); + o.details = buildUnnamed1457(); o.message = "foo"; } buildCounterStatus--; @@ -657,7 +657,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed1427(o.details); + checkUnnamed1457(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -774,14 +774,14 @@ buildCounterTransferJob--; } -buildUnnamed1428() { +buildUnnamed1458() { var o = new core.List<api.ErrorSummary>(); o.add(buildErrorSummary()); o.add(buildErrorSummary()); return o; } -checkUnnamed1428(core.List<api.ErrorSummary> o) { +checkUnnamed1458(core.List<api.ErrorSummary> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorSummary(o[0]); checkErrorSummary(o[1]); @@ -794,7 +794,7 @@ if (buildCounterTransferOperation < 3) { o.counters = buildTransferCounters(); o.endTime = "foo"; - o.errorBreakdowns = buildUnnamed1428(); + o.errorBreakdowns = buildUnnamed1458(); o.name = "foo"; o.notificationConfig = buildNotificationConfig(); o.projectId = "foo"; @@ -812,7 +812,7 @@ if (buildCounterTransferOperation < 3) { checkTransferCounters(o.counters); unittest.expect(o.endTime, unittest.equals('foo')); - checkUnnamed1428(o.errorBreakdowns); + checkUnnamed1458(o.errorBreakdowns); unittest.expect(o.name, unittest.equals('foo')); checkNotificationConfig(o.notificationConfig); unittest.expect(o.projectId, unittest.equals('foo')); @@ -1288,9 +1288,9 @@ var mock = new HttpServerMock(); api.TransferJobsResourceApi res = new api.StoragetransferApi(mock).transferJobs; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1322,11 +1322,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1337,9 +1337,9 @@ }), true); res .list( - pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTransferJobsResponse(response); @@ -1513,9 +1513,9 @@ api.TransferOperationsResourceApi res = new api.StoragetransferApi(mock).transferOperations; var arg_name = "foo"; - var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1548,11 +1548,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1563,9 +1563,9 @@ }), true); res .list(arg_name, - filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/streetviewpublish/v1_test.dart b/generated/googleapis/test/streetviewpublish/v1_test.dart index 39c777d..3b5d2cb 100644 --- a/generated/googleapis/test/streetviewpublish/v1_test.dart +++ b/generated/googleapis/test/streetviewpublish/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed706() { +buildUnnamed725() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed706(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')); @@ -68,7 +68,7 @@ var o = new api.BatchDeletePhotosRequest(); buildCounterBatchDeletePhotosRequest++; if (buildCounterBatchDeletePhotosRequest < 3) { - o.photoIds = buildUnnamed706(); + o.photoIds = buildUnnamed725(); } buildCounterBatchDeletePhotosRequest--; return o; @@ -77,19 +77,19 @@ checkBatchDeletePhotosRequest(api.BatchDeletePhotosRequest o) { buildCounterBatchDeletePhotosRequest++; if (buildCounterBatchDeletePhotosRequest < 3) { - checkUnnamed706(o.photoIds); + checkUnnamed725(o.photoIds); } buildCounterBatchDeletePhotosRequest--; } -buildUnnamed707() { +buildUnnamed726() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed707(core.List<api.Status> o) { +checkUnnamed726(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -100,7 +100,7 @@ var o = new api.BatchDeletePhotosResponse(); buildCounterBatchDeletePhotosResponse++; if (buildCounterBatchDeletePhotosResponse < 3) { - o.status = buildUnnamed707(); + o.status = buildUnnamed726(); } buildCounterBatchDeletePhotosResponse--; return o; @@ -109,19 +109,19 @@ checkBatchDeletePhotosResponse(api.BatchDeletePhotosResponse o) { buildCounterBatchDeletePhotosResponse++; if (buildCounterBatchDeletePhotosResponse < 3) { - checkUnnamed707(o.status); + checkUnnamed726(o.status); } buildCounterBatchDeletePhotosResponse--; } -buildUnnamed708() { +buildUnnamed727() { var o = new core.List<api.PhotoResponse>(); o.add(buildPhotoResponse()); o.add(buildPhotoResponse()); return o; } -checkUnnamed708(core.List<api.PhotoResponse> o) { +checkUnnamed727(core.List<api.PhotoResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPhotoResponse(o[0]); checkPhotoResponse(o[1]); @@ -132,7 +132,7 @@ var o = new api.BatchGetPhotosResponse(); buildCounterBatchGetPhotosResponse++; if (buildCounterBatchGetPhotosResponse < 3) { - o.results = buildUnnamed708(); + o.results = buildUnnamed727(); } buildCounterBatchGetPhotosResponse--; return o; @@ -141,19 +141,19 @@ checkBatchGetPhotosResponse(api.BatchGetPhotosResponse o) { buildCounterBatchGetPhotosResponse++; if (buildCounterBatchGetPhotosResponse < 3) { - checkUnnamed708(o.results); + checkUnnamed727(o.results); } buildCounterBatchGetPhotosResponse--; } -buildUnnamed709() { +buildUnnamed728() { var o = new core.List<api.UpdatePhotoRequest>(); o.add(buildUpdatePhotoRequest()); o.add(buildUpdatePhotoRequest()); return o; } -checkUnnamed709(core.List<api.UpdatePhotoRequest> o) { +checkUnnamed728(core.List<api.UpdatePhotoRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdatePhotoRequest(o[0]); checkUpdatePhotoRequest(o[1]); @@ -164,7 +164,7 @@ var o = new api.BatchUpdatePhotosRequest(); buildCounterBatchUpdatePhotosRequest++; if (buildCounterBatchUpdatePhotosRequest < 3) { - o.updatePhotoRequests = buildUnnamed709(); + o.updatePhotoRequests = buildUnnamed728(); } buildCounterBatchUpdatePhotosRequest--; return o; @@ -173,19 +173,19 @@ checkBatchUpdatePhotosRequest(api.BatchUpdatePhotosRequest o) { buildCounterBatchUpdatePhotosRequest++; if (buildCounterBatchUpdatePhotosRequest < 3) { - checkUnnamed709(o.updatePhotoRequests); + checkUnnamed728(o.updatePhotoRequests); } buildCounterBatchUpdatePhotosRequest--; } -buildUnnamed710() { +buildUnnamed729() { var o = new core.List<api.PhotoResponse>(); o.add(buildPhotoResponse()); o.add(buildPhotoResponse()); return o; } -checkUnnamed710(core.List<api.PhotoResponse> o) { +checkUnnamed729(core.List<api.PhotoResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkPhotoResponse(o[0]); checkPhotoResponse(o[1]); @@ -196,7 +196,7 @@ var o = new api.BatchUpdatePhotosResponse(); buildCounterBatchUpdatePhotosResponse++; if (buildCounterBatchUpdatePhotosResponse < 3) { - o.results = buildUnnamed710(); + o.results = buildUnnamed729(); } buildCounterBatchUpdatePhotosResponse--; return o; @@ -205,7 +205,7 @@ checkBatchUpdatePhotosResponse(api.BatchUpdatePhotosResponse o) { buildCounterBatchUpdatePhotosResponse++; if (buildCounterBatchUpdatePhotosResponse < 3) { - checkUnnamed710(o.results); + checkUnnamed729(o.results); } buildCounterBatchUpdatePhotosResponse--; } @@ -286,14 +286,14 @@ buildCounterLevel--; } -buildUnnamed711() { +buildUnnamed730() { var o = new core.List<api.Photo>(); o.add(buildPhoto()); o.add(buildPhoto()); return o; } -checkUnnamed711(core.List<api.Photo> o) { +checkUnnamed730(core.List<api.Photo> o) { unittest.expect(o, unittest.hasLength(2)); checkPhoto(o[0]); checkPhoto(o[1]); @@ -305,7 +305,7 @@ buildCounterListPhotosResponse++; if (buildCounterListPhotosResponse < 3) { o.nextPageToken = "foo"; - o.photos = buildUnnamed711(); + o.photos = buildUnnamed730(); } buildCounterListPhotosResponse--; return o; @@ -315,12 +315,12 @@ buildCounterListPhotosResponse++; if (buildCounterListPhotosResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed711(o.photos); + checkUnnamed730(o.photos); } buildCounterListPhotosResponse--; } -buildUnnamed712() { +buildUnnamed731() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -335,7 +335,7 @@ return o; } -checkUnnamed712(core.Map<core.String, core.Object> o) { +checkUnnamed731(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)); @@ -349,7 +349,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed713() { +buildUnnamed732() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -364,7 +364,7 @@ return o; } -checkUnnamed713(core.Map<core.String, core.Object> o) { +checkUnnamed732(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)); @@ -385,9 +385,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed712(); + o.metadata = buildUnnamed731(); o.name = "foo"; - o.response = buildUnnamed713(); + o.response = buildUnnamed732(); } buildCounterOperation--; return o; @@ -398,34 +398,34 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed712(o.metadata); + checkUnnamed731(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed713(o.response); + checkUnnamed732(o.response); } buildCounterOperation--; } -buildUnnamed714() { +buildUnnamed733() { var o = new core.List<api.Connection>(); o.add(buildConnection()); o.add(buildConnection()); return o; } -checkUnnamed714(core.List<api.Connection> o) { +checkUnnamed733(core.List<api.Connection> o) { unittest.expect(o, unittest.hasLength(2)); checkConnection(o[0]); checkConnection(o[1]); } -buildUnnamed715() { +buildUnnamed734() { var o = new core.List<api.Place>(); o.add(buildPlace()); o.add(buildPlace()); return o; } -checkUnnamed715(core.List<api.Place> o) { +checkUnnamed734(core.List<api.Place> o) { unittest.expect(o, unittest.hasLength(2)); checkPlace(o[0]); checkPlace(o[1]); @@ -437,11 +437,11 @@ buildCounterPhoto++; if (buildCounterPhoto < 3) { o.captureTime = "foo"; - o.connections = buildUnnamed714(); + o.connections = buildUnnamed733(); o.downloadUrl = "foo"; o.mapsPublishStatus = "foo"; o.photoId = buildPhotoId(); - o.places = buildUnnamed715(); + o.places = buildUnnamed734(); o.pose = buildPose(); o.shareLink = "foo"; o.thumbnailUrl = "foo"; @@ -457,11 +457,11 @@ buildCounterPhoto++; if (buildCounterPhoto < 3) { unittest.expect(o.captureTime, unittest.equals('foo')); - checkUnnamed714(o.connections); + checkUnnamed733(o.connections); unittest.expect(o.downloadUrl, unittest.equals('foo')); unittest.expect(o.mapsPublishStatus, unittest.equals('foo')); checkPhotoId(o.photoId); - checkUnnamed715(o.places); + checkUnnamed734(o.places); checkPose(o.pose); unittest.expect(o.shareLink, unittest.equals('foo')); unittest.expect(o.thumbnailUrl, unittest.equals('foo')); @@ -566,7 +566,7 @@ buildCounterPose--; } -buildUnnamed716() { +buildUnnamed735() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -581,7 +581,7 @@ return o; } -checkUnnamed716(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)); @@ -595,17 +595,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed717() { +buildUnnamed736() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed716()); - o.add(buildUnnamed716()); + o.add(buildUnnamed735()); + o.add(buildUnnamed735()); return o; } -checkUnnamed717(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)); - checkUnnamed716(o[0]); - checkUnnamed716(o[1]); + checkUnnamed735(o[0]); + checkUnnamed735(o[1]); } core.int buildCounterStatus = 0; @@ -614,7 +614,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed717(); + o.details = buildUnnamed736(); o.message = "foo"; } buildCounterStatus--; @@ -625,7 +625,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed717(o.details); + checkUnnamed736(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -671,14 +671,14 @@ buildCounterUploadRef--; } -buildUnnamed718() { +buildUnnamed737() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed718(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')); @@ -948,8 +948,8 @@ var mock = new HttpServerMock(); api.PhotoResourceApi res = new api.StreetviewpublishApi(mock).photo; var arg_photoId = "foo"; - var arg_view = "foo"; var arg_languageCode = "foo"; + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -984,9 +984,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -997,8 +997,8 @@ }), true); res .get(arg_photoId, - view: arg_view, languageCode: arg_languageCode, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPhoto(response); @@ -1177,9 +1177,9 @@ unittest.test("method--batchGet", () { var mock = new HttpServerMock(); api.PhotosResourceApi res = new api.StreetviewpublishApi(mock).photos; - var arg_view = "foo"; var arg_languageCode = "foo"; - var arg_photoIds = buildUnnamed718(); + var arg_photoIds = buildUnnamed737(); + var arg_view = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1211,10 +1211,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect( queryMap["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect(queryMap["photoIds"], unittest.equals(arg_photoIds)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1225,9 +1225,9 @@ }), true); res .batchGet( - view: arg_view, languageCode: arg_languageCode, photoIds: arg_photoIds, + view: arg_view, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkBatchGetPhotosResponse(response); @@ -1290,9 +1290,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.PhotosResourceApi res = new api.StreetviewpublishApi(mock).photos; - var arg_languageCode = "foo"; var arg_filter = "foo"; var arg_pageSize = 42; + var arg_languageCode = "foo"; var arg_pageToken = "foo"; var arg_view = "foo"; var arg_$fields = "foo"; @@ -1326,12 +1326,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["languageCode"].first, unittest.equals(arg_languageCode)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect( + queryMap["languageCode"].first, unittest.equals(arg_languageCode)); + unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1344,9 +1344,9 @@ }), true); res .list( - languageCode: arg_languageCode, filter: arg_filter, pageSize: arg_pageSize, + languageCode: arg_languageCode, pageToken: arg_pageToken, view: arg_view, $fields: arg_$fields)
diff --git a/generated/googleapis/test/tagmanager/v1_test.dart b/generated/googleapis/test/tagmanager/v1_test.dart index 10a0a1d..8014456 100644 --- a/generated/googleapis/test/tagmanager/v1_test.dart +++ b/generated/googleapis/test/tagmanager/v1_test.dart
@@ -75,14 +75,14 @@ buildCounterAccount--; } -buildUnnamed4501() { +buildUnnamed4846() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4501(core.List<core.String> o) { +checkUnnamed4846(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -93,7 +93,7 @@ var o = new api.AccountAccess(); buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - o.permission = buildUnnamed4501(); + o.permission = buildUnnamed4846(); } buildCounterAccountAccess--; return o; @@ -102,19 +102,19 @@ checkAccountAccess(api.AccountAccess o) { buildCounterAccountAccess++; if (buildCounterAccountAccess < 3) { - checkUnnamed4501(o.permission); + checkUnnamed4846(o.permission); } buildCounterAccountAccess--; } -buildUnnamed4502() { +buildUnnamed4847() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4502(core.List<api.Parameter> o) { +checkUnnamed4847(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -125,7 +125,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed4502(); + o.parameter = buildUnnamed4847(); o.type = "foo"; } buildCounterCondition--; @@ -135,46 +135,46 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed4502(o.parameter); + checkUnnamed4847(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed4503() { +buildUnnamed4848() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4503(core.List<core.String> o) { +checkUnnamed4848(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4504() { +buildUnnamed4849() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4504(core.List<core.String> o) { +checkUnnamed4849(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4505() { +buildUnnamed4850() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4505(core.List<core.String> o) { +checkUnnamed4850(core.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,15 +187,15 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed4503(); - o.enabledBuiltInVariable = buildUnnamed4504(); + o.domainName = buildUnnamed4848(); + o.enabledBuiltInVariable = buildUnnamed4849(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.publicId = "foo"; o.timeZoneCountryId = "foo"; o.timeZoneId = "foo"; - o.usageContext = buildUnnamed4505(); + o.usageContext = buildUnnamed4850(); } buildCounterContainer--; return o; @@ -206,27 +206,27 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed4503(o.domainName); - checkUnnamed4504(o.enabledBuiltInVariable); + checkUnnamed4848(o.domainName); + checkUnnamed4849(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')); - checkUnnamed4505(o.usageContext); + checkUnnamed4850(o.usageContext); } buildCounterContainer--; } -buildUnnamed4506() { +buildUnnamed4851() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4506(core.List<core.String> o) { +checkUnnamed4851(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -238,7 +238,7 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { o.containerId = "foo"; - o.permission = buildUnnamed4506(); + o.permission = buildUnnamed4851(); } buildCounterContainerAccess--; return o; @@ -248,84 +248,84 @@ buildCounterContainerAccess++; if (buildCounterContainerAccess < 3) { unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed4506(o.permission); + checkUnnamed4851(o.permission); } buildCounterContainerAccess--; } -buildUnnamed4507() { +buildUnnamed4852() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4507(core.List<api.Folder> o) { +checkUnnamed4852(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed4508() { +buildUnnamed4853() { var o = new core.List<api.Macro>(); o.add(buildMacro()); o.add(buildMacro()); return o; } -checkUnnamed4508(core.List<api.Macro> o) { +checkUnnamed4853(core.List<api.Macro> o) { unittest.expect(o, unittest.hasLength(2)); checkMacro(o[0]); checkMacro(o[1]); } -buildUnnamed4509() { +buildUnnamed4854() { var o = new core.List<api.Rule>(); o.add(buildRule()); o.add(buildRule()); return o; } -checkUnnamed4509(core.List<api.Rule> o) { +checkUnnamed4854(core.List<api.Rule> o) { unittest.expect(o, unittest.hasLength(2)); checkRule(o[0]); checkRule(o[1]); } -buildUnnamed4510() { +buildUnnamed4855() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4510(core.List<api.Tag> o) { +checkUnnamed4855(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed4511() { +buildUnnamed4856() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4511(core.List<api.Trigger> o) { +checkUnnamed4856(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed4512() { +buildUnnamed4857() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4512(core.List<api.Variable> o) { +checkUnnamed4857(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -342,14 +342,14 @@ o.containerVersionId = "foo"; o.deleted = true; o.fingerprint = "foo"; - o.folder = buildUnnamed4507(); - o.macro = buildUnnamed4508(); + o.folder = buildUnnamed4852(); + o.macro = buildUnnamed4853(); o.name = "foo"; o.notes = "foo"; - o.rule = buildUnnamed4509(); - o.tag = buildUnnamed4510(); - o.trigger = buildUnnamed4511(); - o.variable = buildUnnamed4512(); + o.rule = buildUnnamed4854(); + o.tag = buildUnnamed4855(); + o.trigger = buildUnnamed4856(); + o.variable = buildUnnamed4857(); } buildCounterContainerVersion--; return o; @@ -364,14 +364,14 @@ unittest.expect(o.containerVersionId, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed4507(o.folder); - checkUnnamed4508(o.macro); + checkUnnamed4852(o.folder); + checkUnnamed4853(o.macro); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4509(o.rule); - checkUnnamed4510(o.tag); - checkUnnamed4511(o.trigger); - checkUnnamed4512(o.variable); + checkUnnamed4854(o.rule); + checkUnnamed4855(o.tag); + checkUnnamed4856(o.trigger); + checkUnnamed4857(o.variable); } buildCounterContainerVersion--; } @@ -526,40 +526,40 @@ buildCounterFolder--; } -buildUnnamed4513() { +buildUnnamed4858() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4513(core.List<api.Tag> o) { +checkUnnamed4858(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed4514() { +buildUnnamed4859() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4514(core.List<api.Trigger> o) { +checkUnnamed4859(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed4515() { +buildUnnamed4860() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4515(core.List<api.Variable> o) { +checkUnnamed4860(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 = buildUnnamed4513(); - o.trigger = buildUnnamed4514(); - o.variable = buildUnnamed4515(); + o.tag = buildUnnamed4858(); + o.trigger = buildUnnamed4859(); + o.variable = buildUnnamed4860(); } buildCounterFolderEntities--; return o; @@ -581,21 +581,21 @@ checkFolderEntities(api.FolderEntities o) { buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { - checkUnnamed4513(o.tag); - checkUnnamed4514(o.trigger); - checkUnnamed4515(o.variable); + checkUnnamed4858(o.tag); + checkUnnamed4859(o.trigger); + checkUnnamed4860(o.variable); } buildCounterFolderEntities--; } -buildUnnamed4516() { +buildUnnamed4861() { var o = new core.List<api.UserAccess>(); o.add(buildUserAccess()); o.add(buildUserAccess()); return o; } -checkUnnamed4516(core.List<api.UserAccess> o) { +checkUnnamed4861(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 = buildUnnamed4516(); + o.userAccess = buildUnnamed4861(); } buildCounterListAccountUsersResponse--; return o; @@ -615,19 +615,19 @@ checkListAccountUsersResponse(api.ListAccountUsersResponse o) { buildCounterListAccountUsersResponse++; if (buildCounterListAccountUsersResponse < 3) { - checkUnnamed4516(o.userAccess); + checkUnnamed4861(o.userAccess); } buildCounterListAccountUsersResponse--; } -buildUnnamed4517() { +buildUnnamed4862() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed4517(core.List<api.Account> o) { +checkUnnamed4862(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 = buildUnnamed4517(); + o.accounts = buildUnnamed4862(); } buildCounterListAccountsResponse--; return o; @@ -647,32 +647,32 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed4517(o.accounts); + checkUnnamed4862(o.accounts); } buildCounterListAccountsResponse--; } -buildUnnamed4518() { +buildUnnamed4863() { var o = new core.List<api.ContainerVersion>(); o.add(buildContainerVersion()); o.add(buildContainerVersion()); return o; } -checkUnnamed4518(core.List<api.ContainerVersion> o) { +checkUnnamed4863(core.List<api.ContainerVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersion(o[0]); checkContainerVersion(o[1]); } -buildUnnamed4519() { +buildUnnamed4864() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed4519(core.List<api.ContainerVersionHeader> o) { +checkUnnamed4864(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 = buildUnnamed4518(); - o.containerVersionHeader = buildUnnamed4519(); + o.containerVersion = buildUnnamed4863(); + o.containerVersionHeader = buildUnnamed4864(); } buildCounterListContainerVersionsResponse--; return o; @@ -693,20 +693,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed4518(o.containerVersion); - checkUnnamed4519(o.containerVersionHeader); + checkUnnamed4863(o.containerVersion); + checkUnnamed4864(o.containerVersionHeader); } buildCounterListContainerVersionsResponse--; } -buildUnnamed4520() { +buildUnnamed4865() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed4520(core.List<api.Container> o) { +checkUnnamed4865(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 = buildUnnamed4520(); + o.containers = buildUnnamed4865(); } buildCounterListContainersResponse--; return o; @@ -726,19 +726,19 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed4520(o.containers); + checkUnnamed4865(o.containers); } buildCounterListContainersResponse--; } -buildUnnamed4521() { +buildUnnamed4866() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed4521(core.List<api.Environment> o) { +checkUnnamed4866(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 = buildUnnamed4521(); + o.environments = buildUnnamed4866(); } buildCounterListEnvironmentsResponse--; return o; @@ -758,19 +758,19 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed4521(o.environments); + checkUnnamed4866(o.environments); } buildCounterListEnvironmentsResponse--; } -buildUnnamed4522() { +buildUnnamed4867() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4522(core.List<api.Folder> o) { +checkUnnamed4867(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 = buildUnnamed4522(); + o.folders = buildUnnamed4867(); } buildCounterListFoldersResponse--; return o; @@ -790,19 +790,19 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed4522(o.folders); + checkUnnamed4867(o.folders); } buildCounterListFoldersResponse--; } -buildUnnamed4523() { +buildUnnamed4868() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4523(core.List<api.Tag> o) { +checkUnnamed4868(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 = buildUnnamed4523(); + o.tags = buildUnnamed4868(); } buildCounterListTagsResponse--; return o; @@ -822,19 +822,19 @@ checkListTagsResponse(api.ListTagsResponse o) { buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { - checkUnnamed4523(o.tags); + checkUnnamed4868(o.tags); } buildCounterListTagsResponse--; } -buildUnnamed4524() { +buildUnnamed4869() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4524(core.List<api.Trigger> o) { +checkUnnamed4869(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 = buildUnnamed4524(); + o.triggers = buildUnnamed4869(); } buildCounterListTriggersResponse--; return o; @@ -854,19 +854,19 @@ checkListTriggersResponse(api.ListTriggersResponse o) { buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { - checkUnnamed4524(o.triggers); + checkUnnamed4869(o.triggers); } buildCounterListTriggersResponse--; } -buildUnnamed4525() { +buildUnnamed4870() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4525(core.List<api.Variable> o) { +checkUnnamed4870(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 = buildUnnamed4525(); + o.variables = buildUnnamed4870(); } buildCounterListVariablesResponse--; return o; @@ -886,45 +886,45 @@ checkListVariablesResponse(api.ListVariablesResponse o) { buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { - checkUnnamed4525(o.variables); + checkUnnamed4870(o.variables); } buildCounterListVariablesResponse--; } -buildUnnamed4526() { +buildUnnamed4871() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4526(core.List<core.String> o) { +checkUnnamed4871(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4527() { +buildUnnamed4872() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4527(core.List<core.String> o) { +checkUnnamed4872(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4528() { +buildUnnamed4873() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4528(core.List<api.Parameter> o) { +checkUnnamed4873(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 = buildUnnamed4526(); - o.enablingRuleId = buildUnnamed4527(); + o.disablingRuleId = buildUnnamed4871(); + o.enablingRuleId = buildUnnamed4872(); o.fingerprint = "foo"; o.macroId = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4528(); + o.parameter = buildUnnamed4873(); 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')); - checkUnnamed4526(o.disablingRuleId); - checkUnnamed4527(o.enablingRuleId); + checkUnnamed4871(o.disablingRuleId); + checkUnnamed4872(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')); - checkUnnamed4528(o.parameter); + checkUnnamed4873(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--; } -buildUnnamed4529() { +buildUnnamed4874() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4529(core.List<api.Parameter> o) { +checkUnnamed4874(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed4530() { +buildUnnamed4875() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4530(core.List<api.Parameter> o) { +checkUnnamed4875(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 = buildUnnamed4529(); - o.map = buildUnnamed4530(); + o.list = buildUnnamed4874(); + o.map = buildUnnamed4875(); o.type = "foo"; o.value = "foo"; } @@ -1018,8 +1018,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed4529(o.list); - checkUnnamed4530(o.map); + checkUnnamed4874(o.list); + checkUnnamed4875(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1047,14 +1047,14 @@ buildCounterPublishContainerVersionResponse--; } -buildUnnamed4531() { +buildUnnamed4876() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4531(core.List<api.Condition> o) { +checkUnnamed4876(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 = buildUnnamed4531(); + o.condition = buildUnnamed4876(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -1081,7 +1081,7 @@ buildCounterRule++; if (buildCounterRule < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4531(o.condition); + checkUnnamed4876(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--; } -buildUnnamed4532() { +buildUnnamed4877() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4532(core.List<core.String> o) { +checkUnnamed4877(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4533() { +buildUnnamed4878() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4533(core.List<core.String> o) { +checkUnnamed4878(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4534() { +buildUnnamed4879() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4534(core.List<core.String> o) { +checkUnnamed4879(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4535() { +buildUnnamed4880() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4535(core.List<core.String> o) { +checkUnnamed4880(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4536() { +buildUnnamed4881() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4536(core.List<api.Parameter> o) { +checkUnnamed4881(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed4537() { +buildUnnamed4882() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed4537(core.List<api.SetupTag> o) { +checkUnnamed4882(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed4538() { +buildUnnamed4883() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed4538(core.List<api.TeardownTag> o) { +checkUnnamed4883(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1209,25 +1209,25 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed4532(); - o.blockingTriggerId = buildUnnamed4533(); + o.blockingRuleId = buildUnnamed4877(); + o.blockingTriggerId = buildUnnamed4878(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed4534(); - o.firingTriggerId = buildUnnamed4535(); + o.firingRuleId = buildUnnamed4879(); + o.firingTriggerId = buildUnnamed4880(); o.liveOnly = true; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4536(); + o.parameter = buildUnnamed4881(); o.parentFolderId = "foo"; o.paused = true; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed4537(); + o.setupTag = buildUnnamed4882(); o.tagFiringOption = "foo"; o.tagId = "foo"; - o.teardownTag = buildUnnamed4538(); + o.teardownTag = buildUnnamed4883(); o.type = "foo"; } buildCounterTag--; @@ -1238,25 +1238,25 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4532(o.blockingRuleId); - checkUnnamed4533(o.blockingTriggerId); + checkUnnamed4877(o.blockingRuleId); + checkUnnamed4878(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed4534(o.firingRuleId); - checkUnnamed4535(o.firingTriggerId); + checkUnnamed4879(o.firingRuleId); + checkUnnamed4880(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4536(o.parameter); + checkUnnamed4881(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.paused, unittest.isTrue); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed4537(o.setupTag); + checkUnnamed4882(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); - checkUnnamed4538(o.teardownTag); + checkUnnamed4883(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); } buildCounterTag--; @@ -1283,53 +1283,53 @@ buildCounterTeardownTag--; } -buildUnnamed4539() { +buildUnnamed4884() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4539(core.List<api.Condition> o) { +checkUnnamed4884(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4540() { +buildUnnamed4885() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4540(core.List<api.Condition> o) { +checkUnnamed4885(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4541() { +buildUnnamed4886() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4541(core.List<api.Condition> o) { +checkUnnamed4886(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4542() { +buildUnnamed4887() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4542(core.List<api.Parameter> o) { +checkUnnamed4887(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1341,13 +1341,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed4539(); + o.autoEventFilter = buildUnnamed4884(); o.checkValidation = buildParameter(); o.containerId = "foo"; o.continuousTimeMinMilliseconds = buildParameter(); - o.customEventFilter = buildUnnamed4540(); + o.customEventFilter = buildUnnamed4885(); o.eventName = buildParameter(); - o.filter = buildUnnamed4541(); + o.filter = buildUnnamed4886(); o.fingerprint = "foo"; o.horizontalScrollPercentageList = buildParameter(); o.interval = buildParameter(); @@ -1355,7 +1355,7 @@ o.limit = buildParameter(); o.maxTimerLengthSeconds = buildParameter(); o.name = "foo"; - o.parameter = buildUnnamed4542(); + o.parameter = buildUnnamed4887(); o.parentFolderId = "foo"; o.selector = buildParameter(); o.totalTimeMinMilliseconds = buildParameter(); @@ -1377,13 +1377,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4539(o.autoEventFilter); + checkUnnamed4884(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); checkParameter(o.continuousTimeMinMilliseconds); - checkUnnamed4540(o.customEventFilter); + checkUnnamed4885(o.customEventFilter); checkParameter(o.eventName); - checkUnnamed4541(o.filter); + checkUnnamed4886(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.horizontalScrollPercentageList); checkParameter(o.interval); @@ -1391,7 +1391,7 @@ checkParameter(o.limit); checkParameter(o.maxTimerLengthSeconds); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4542(o.parameter); + checkUnnamed4887(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); checkParameter(o.selector); checkParameter(o.totalTimeMinMilliseconds); @@ -1408,14 +1408,14 @@ buildCounterTrigger--; } -buildUnnamed4543() { +buildUnnamed4888() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed4543(core.List<api.ContainerAccess> o) { +checkUnnamed4888(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1428,7 +1428,7 @@ if (buildCounterUserAccess < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed4543(); + o.containerAccess = buildUnnamed4888(); o.emailAddress = "foo"; o.permissionId = "foo"; } @@ -1441,47 +1441,47 @@ if (buildCounterUserAccess < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4543(o.containerAccess); + checkUnnamed4888(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.permissionId, unittest.equals('foo')); } buildCounterUserAccess--; } -buildUnnamed4544() { +buildUnnamed4889() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4544(core.List<core.String> o) { +checkUnnamed4889(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4545() { +buildUnnamed4890() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4545(core.List<core.String> o) { +checkUnnamed4890(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4546() { +buildUnnamed4891() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4546(core.List<api.Parameter> o) { +checkUnnamed4891(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1494,12 +1494,12 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed4544(); - o.enablingTriggerId = buildUnnamed4545(); + o.disablingTriggerId = buildUnnamed4889(); + o.enablingTriggerId = buildUnnamed4890(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4546(); + o.parameter = buildUnnamed4891(); o.parentFolderId = "foo"; o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; @@ -1515,12 +1515,12 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed4544(o.disablingTriggerId); - checkUnnamed4545(o.enablingTriggerId); + checkUnnamed4889(o.disablingTriggerId); + checkUnnamed4890(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4546(o.parameter); + checkUnnamed4891(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); @@ -1530,40 +1530,40 @@ buildCounterVariable--; } -buildUnnamed4547() { +buildUnnamed4892() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4547(core.List<core.String> o) { +checkUnnamed4892(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4548() { +buildUnnamed4893() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4548(core.List<core.String> o) { +checkUnnamed4893(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4549() { +buildUnnamed4894() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4549(core.List<core.String> o) { +checkUnnamed4894(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3153,9 +3153,9 @@ var arg_accountId = "foo"; var arg_containerId = "foo"; var arg_folderId = "foo"; - var arg_variableId = buildUnnamed4547(); - var arg_tagId = buildUnnamed4548(); - var arg_triggerId = buildUnnamed4549(); + var arg_tagId = buildUnnamed4892(); + var arg_triggerId = buildUnnamed4893(); + var arg_variableId = buildUnnamed4894(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json); @@ -3211,10 +3211,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["variableId"], unittest.equals(arg_variableId)); unittest.expect(queryMap["tagId"], unittest.equals(arg_tagId)); unittest.expect(queryMap["triggerId"], unittest.equals(arg_triggerId)); + unittest.expect( + queryMap["variableId"], unittest.equals(arg_variableId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3225,9 +3225,9 @@ }), true); res .update(arg_request, arg_accountId, arg_containerId, arg_folderId, - variableId: arg_variableId, tagId: arg_tagId, triggerId: arg_triggerId, + variableId: arg_variableId, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); });
diff --git a/generated/googleapis/test/tagmanager/v2_test.dart b/generated/googleapis/test/tagmanager/v2_test.dart index ec193e9..4d8d635 100644 --- a/generated/googleapis/test/tagmanager/v2_test.dart +++ b/generated/googleapis/test/tagmanager/v2_test.dart
@@ -127,14 +127,14 @@ buildCounterBuiltInVariable--; } -buildUnnamed4919() { +buildUnnamed5296() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4919(core.List<api.Parameter> o) { +checkUnnamed5296(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -150,7 +150,8 @@ o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; - o.parameter = buildUnnamed4919(); + o.parameter = buildUnnamed5296(); + o.parentFolderId = "foo"; o.path = "foo"; o.priority = 42; o.tagManagerUrl = "foo"; @@ -169,7 +170,8 @@ unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4919(o.parameter); + checkUnnamed5296(o.parameter); + unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.priority, unittest.equals(42)); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); @@ -179,14 +181,14 @@ buildCounterClient--; } -buildUnnamed4920() { +buildUnnamed5297() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4920(core.List<api.Parameter> o) { +checkUnnamed5297(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -197,7 +199,7 @@ var o = new api.Condition(); buildCounterCondition++; if (buildCounterCondition < 3) { - o.parameter = buildUnnamed4920(); + o.parameter = buildUnnamed5297(); o.type = "foo"; } buildCounterCondition--; @@ -207,33 +209,33 @@ checkCondition(api.Condition o) { buildCounterCondition++; if (buildCounterCondition < 3) { - checkUnnamed4920(o.parameter); + checkUnnamed5297(o.parameter); unittest.expect(o.type, unittest.equals('foo')); } buildCounterCondition--; } -buildUnnamed4921() { +buildUnnamed5298() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4921(core.List<core.String> o) { +checkUnnamed5298(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4922() { +buildUnnamed5299() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4922(core.List<core.String> o) { +checkUnnamed5299(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -246,14 +248,14 @@ if (buildCounterContainer < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.domainName = buildUnnamed4921(); + o.domainName = buildUnnamed5298(); o.fingerprint = "foo"; o.name = "foo"; o.notes = "foo"; o.path = "foo"; o.publicId = "foo"; o.tagManagerUrl = "foo"; - o.usageContext = buildUnnamed4922(); + o.usageContext = buildUnnamed5299(); } buildCounterContainer--; return o; @@ -264,14 +266,14 @@ if (buildCounterContainer < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed4921(o.domainName); + checkUnnamed5298(o.domainName); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.publicId, unittest.equals('foo')); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed4922(o.usageContext); + checkUnnamed5299(o.usageContext); } buildCounterContainer--; } @@ -297,105 +299,105 @@ buildCounterContainerAccess--; } -buildUnnamed4923() { +buildUnnamed5300() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed4923(core.List<api.BuiltInVariable> o) { +checkUnnamed5300(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); } -buildUnnamed4924() { +buildUnnamed5301() { var o = new core.List<api.Client>(); o.add(buildClient()); o.add(buildClient()); return o; } -checkUnnamed4924(core.List<api.Client> o) { +checkUnnamed5301(core.List<api.Client> o) { unittest.expect(o, unittest.hasLength(2)); checkClient(o[0]); checkClient(o[1]); } -buildUnnamed4925() { +buildUnnamed5302() { var o = new core.List<api.CustomTemplate>(); o.add(buildCustomTemplate()); o.add(buildCustomTemplate()); return o; } -checkUnnamed4925(core.List<api.CustomTemplate> o) { +checkUnnamed5302(core.List<api.CustomTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomTemplate(o[0]); checkCustomTemplate(o[1]); } -buildUnnamed4926() { +buildUnnamed5303() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4926(core.List<api.Folder> o) { +checkUnnamed5303(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); } -buildUnnamed4927() { +buildUnnamed5304() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4927(core.List<api.Tag> o) { +checkUnnamed5304(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed4928() { +buildUnnamed5305() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4928(core.List<api.Trigger> o) { +checkUnnamed5305(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed4929() { +buildUnnamed5306() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4929(core.List<api.Variable> o) { +checkUnnamed5306(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); } -buildUnnamed4930() { +buildUnnamed5307() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed4930(core.List<api.Zone> o) { +checkUnnamed5307(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -407,23 +409,23 @@ buildCounterContainerVersion++; if (buildCounterContainerVersion < 3) { o.accountId = "foo"; - o.builtInVariable = buildUnnamed4923(); - o.client = buildUnnamed4924(); + o.builtInVariable = buildUnnamed5300(); + o.client = buildUnnamed5301(); o.container = buildContainer(); o.containerId = "foo"; o.containerVersionId = "foo"; - o.customTemplate = buildUnnamed4925(); + o.customTemplate = buildUnnamed5302(); o.deleted = true; o.description = "foo"; o.fingerprint = "foo"; - o.folder = buildUnnamed4926(); + o.folder = buildUnnamed5303(); o.name = "foo"; o.path = "foo"; - o.tag = buildUnnamed4927(); + o.tag = buildUnnamed5304(); o.tagManagerUrl = "foo"; - o.trigger = buildUnnamed4928(); - o.variable = buildUnnamed4929(); - o.zone = buildUnnamed4930(); + o.trigger = buildUnnamed5305(); + o.variable = buildUnnamed5306(); + o.zone = buildUnnamed5307(); } buildCounterContainerVersion--; return o; @@ -433,23 +435,23 @@ buildCounterContainerVersion++; if (buildCounterContainerVersion < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4923(o.builtInVariable); - checkUnnamed4924(o.client); + checkUnnamed5300(o.builtInVariable); + checkUnnamed5301(o.client); checkContainer(o.container); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.containerVersionId, unittest.equals('foo')); - checkUnnamed4925(o.customTemplate); + checkUnnamed5302(o.customTemplate); unittest.expect(o.deleted, unittest.isTrue); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed4926(o.folder); + checkUnnamed5303(o.folder); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); - checkUnnamed4927(o.tag); + checkUnnamed5304(o.tag); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed4928(o.trigger); - checkUnnamed4929(o.variable); - checkUnnamed4930(o.zone); + checkUnnamed5305(o.trigger); + checkUnnamed5306(o.variable); + checkUnnamed5307(o.zone); } buildCounterContainerVersion--; } @@ -497,14 +499,14 @@ buildCounterContainerVersionHeader--; } -buildUnnamed4931() { +buildUnnamed5308() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed4931(core.List<api.BuiltInVariable> o) { +checkUnnamed5308(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); @@ -515,7 +517,7 @@ var o = new api.CreateBuiltInVariableResponse(); buildCounterCreateBuiltInVariableResponse++; if (buildCounterCreateBuiltInVariableResponse < 3) { - o.builtInVariable = buildUnnamed4931(); + o.builtInVariable = buildUnnamed5308(); } buildCounterCreateBuiltInVariableResponse--; return o; @@ -524,7 +526,7 @@ checkCreateBuiltInVariableResponse(api.CreateBuiltInVariableResponse o) { buildCounterCreateBuiltInVariableResponse++; if (buildCounterCreateBuiltInVariableResponse < 3) { - checkUnnamed4931(o.builtInVariable); + checkUnnamed5308(o.builtInVariable); } buildCounterCreateBuiltInVariableResponse--; } @@ -722,40 +724,40 @@ buildCounterFolder--; } -buildUnnamed4932() { +buildUnnamed5309() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4932(core.List<api.Tag> o) { +checkUnnamed5309(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); } -buildUnnamed4933() { +buildUnnamed5310() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4933(core.List<api.Trigger> o) { +checkUnnamed5310(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); } -buildUnnamed4934() { +buildUnnamed5311() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4934(core.List<api.Variable> o) { +checkUnnamed5311(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -767,9 +769,9 @@ buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { o.nextPageToken = "foo"; - o.tag = buildUnnamed4932(); - o.trigger = buildUnnamed4933(); - o.variable = buildUnnamed4934(); + o.tag = buildUnnamed5309(); + o.trigger = buildUnnamed5310(); + o.variable = buildUnnamed5311(); } buildCounterFolderEntities--; return o; @@ -779,9 +781,9 @@ buildCounterFolderEntities++; if (buildCounterFolderEntities < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4932(o.tag); - checkUnnamed4933(o.trigger); - checkUnnamed4934(o.variable); + checkUnnamed5309(o.tag); + checkUnnamed5310(o.trigger); + checkUnnamed5311(o.variable); } buildCounterFolderEntities--; } @@ -815,27 +817,27 @@ buildCounterGalleryReference--; } -buildUnnamed4935() { +buildUnnamed5312() { var o = new core.List<api.MergeConflict>(); o.add(buildMergeConflict()); o.add(buildMergeConflict()); return o; } -checkUnnamed4935(core.List<api.MergeConflict> o) { +checkUnnamed5312(core.List<api.MergeConflict> o) { unittest.expect(o, unittest.hasLength(2)); checkMergeConflict(o[0]); checkMergeConflict(o[1]); } -buildUnnamed4936() { +buildUnnamed5313() { var o = new core.List<api.Entity>(); o.add(buildEntity()); o.add(buildEntity()); return o; } -checkUnnamed4936(core.List<api.Entity> o) { +checkUnnamed5313(core.List<api.Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkEntity(o[0]); checkEntity(o[1]); @@ -846,8 +848,8 @@ var o = new api.GetWorkspaceStatusResponse(); buildCounterGetWorkspaceStatusResponse++; if (buildCounterGetWorkspaceStatusResponse < 3) { - o.mergeConflict = buildUnnamed4935(); - o.workspaceChange = buildUnnamed4936(); + o.mergeConflict = buildUnnamed5312(); + o.workspaceChange = buildUnnamed5313(); } buildCounterGetWorkspaceStatusResponse--; return o; @@ -856,20 +858,20 @@ checkGetWorkspaceStatusResponse(api.GetWorkspaceStatusResponse o) { buildCounterGetWorkspaceStatusResponse++; if (buildCounterGetWorkspaceStatusResponse < 3) { - checkUnnamed4935(o.mergeConflict); - checkUnnamed4936(o.workspaceChange); + checkUnnamed5312(o.mergeConflict); + checkUnnamed5313(o.workspaceChange); } buildCounterGetWorkspaceStatusResponse--; } -buildUnnamed4937() { +buildUnnamed5314() { var o = new core.List<api.Account>(); o.add(buildAccount()); o.add(buildAccount()); return o; } -checkUnnamed4937(core.List<api.Account> o) { +checkUnnamed5314(core.List<api.Account> o) { unittest.expect(o, unittest.hasLength(2)); checkAccount(o[0]); checkAccount(o[1]); @@ -880,7 +882,7 @@ var o = new api.ListAccountsResponse(); buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - o.account = buildUnnamed4937(); + o.account = buildUnnamed5314(); o.nextPageToken = "foo"; } buildCounterListAccountsResponse--; @@ -890,20 +892,20 @@ checkListAccountsResponse(api.ListAccountsResponse o) { buildCounterListAccountsResponse++; if (buildCounterListAccountsResponse < 3) { - checkUnnamed4937(o.account); + checkUnnamed5314(o.account); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListAccountsResponse--; } -buildUnnamed4938() { +buildUnnamed5315() { var o = new core.List<api.ContainerVersionHeader>(); o.add(buildContainerVersionHeader()); o.add(buildContainerVersionHeader()); return o; } -checkUnnamed4938(core.List<api.ContainerVersionHeader> o) { +checkUnnamed5315(core.List<api.ContainerVersionHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerVersionHeader(o[0]); checkContainerVersionHeader(o[1]); @@ -914,7 +916,7 @@ var o = new api.ListContainerVersionsResponse(); buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - o.containerVersionHeader = buildUnnamed4938(); + o.containerVersionHeader = buildUnnamed5315(); o.nextPageToken = "foo"; } buildCounterListContainerVersionsResponse--; @@ -924,20 +926,20 @@ checkListContainerVersionsResponse(api.ListContainerVersionsResponse o) { buildCounterListContainerVersionsResponse++; if (buildCounterListContainerVersionsResponse < 3) { - checkUnnamed4938(o.containerVersionHeader); + checkUnnamed5315(o.containerVersionHeader); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListContainerVersionsResponse--; } -buildUnnamed4939() { +buildUnnamed5316() { var o = new core.List<api.Container>(); o.add(buildContainer()); o.add(buildContainer()); return o; } -checkUnnamed4939(core.List<api.Container> o) { +checkUnnamed5316(core.List<api.Container> o) { unittest.expect(o, unittest.hasLength(2)); checkContainer(o[0]); checkContainer(o[1]); @@ -948,7 +950,7 @@ var o = new api.ListContainersResponse(); buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - o.container = buildUnnamed4939(); + o.container = buildUnnamed5316(); o.nextPageToken = "foo"; } buildCounterListContainersResponse--; @@ -958,20 +960,20 @@ checkListContainersResponse(api.ListContainersResponse o) { buildCounterListContainersResponse++; if (buildCounterListContainersResponse < 3) { - checkUnnamed4939(o.container); + checkUnnamed5316(o.container); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListContainersResponse--; } -buildUnnamed4940() { +buildUnnamed5317() { var o = new core.List<api.BuiltInVariable>(); o.add(buildBuiltInVariable()); o.add(buildBuiltInVariable()); return o; } -checkUnnamed4940(core.List<api.BuiltInVariable> o) { +checkUnnamed5317(core.List<api.BuiltInVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkBuiltInVariable(o[0]); checkBuiltInVariable(o[1]); @@ -982,7 +984,7 @@ var o = new api.ListEnabledBuiltInVariablesResponse(); buildCounterListEnabledBuiltInVariablesResponse++; if (buildCounterListEnabledBuiltInVariablesResponse < 3) { - o.builtInVariable = buildUnnamed4940(); + o.builtInVariable = buildUnnamed5317(); o.nextPageToken = "foo"; } buildCounterListEnabledBuiltInVariablesResponse--; @@ -993,20 +995,20 @@ api.ListEnabledBuiltInVariablesResponse o) { buildCounterListEnabledBuiltInVariablesResponse++; if (buildCounterListEnabledBuiltInVariablesResponse < 3) { - checkUnnamed4940(o.builtInVariable); + checkUnnamed5317(o.builtInVariable); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListEnabledBuiltInVariablesResponse--; } -buildUnnamed4941() { +buildUnnamed5318() { var o = new core.List<api.Environment>(); o.add(buildEnvironment()); o.add(buildEnvironment()); return o; } -checkUnnamed4941(core.List<api.Environment> o) { +checkUnnamed5318(core.List<api.Environment> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironment(o[0]); checkEnvironment(o[1]); @@ -1017,7 +1019,7 @@ var o = new api.ListEnvironmentsResponse(); buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - o.environment = buildUnnamed4941(); + o.environment = buildUnnamed5318(); o.nextPageToken = "foo"; } buildCounterListEnvironmentsResponse--; @@ -1027,20 +1029,20 @@ checkListEnvironmentsResponse(api.ListEnvironmentsResponse o) { buildCounterListEnvironmentsResponse++; if (buildCounterListEnvironmentsResponse < 3) { - checkUnnamed4941(o.environment); + checkUnnamed5318(o.environment); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListEnvironmentsResponse--; } -buildUnnamed4942() { +buildUnnamed5319() { var o = new core.List<api.Folder>(); o.add(buildFolder()); o.add(buildFolder()); return o; } -checkUnnamed4942(core.List<api.Folder> o) { +checkUnnamed5319(core.List<api.Folder> o) { unittest.expect(o, unittest.hasLength(2)); checkFolder(o[0]); checkFolder(o[1]); @@ -1051,7 +1053,7 @@ var o = new api.ListFoldersResponse(); buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - o.folder = buildUnnamed4942(); + o.folder = buildUnnamed5319(); o.nextPageToken = "foo"; } buildCounterListFoldersResponse--; @@ -1061,20 +1063,20 @@ checkListFoldersResponse(api.ListFoldersResponse o) { buildCounterListFoldersResponse++; if (buildCounterListFoldersResponse < 3) { - checkUnnamed4942(o.folder); + checkUnnamed5319(o.folder); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFoldersResponse--; } -buildUnnamed4943() { +buildUnnamed5320() { var o = new core.List<api.Tag>(); o.add(buildTag()); o.add(buildTag()); return o; } -checkUnnamed4943(core.List<api.Tag> o) { +checkUnnamed5320(core.List<api.Tag> o) { unittest.expect(o, unittest.hasLength(2)); checkTag(o[0]); checkTag(o[1]); @@ -1086,7 +1088,7 @@ buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { o.nextPageToken = "foo"; - o.tag = buildUnnamed4943(); + o.tag = buildUnnamed5320(); } buildCounterListTagsResponse--; return o; @@ -1096,19 +1098,19 @@ buildCounterListTagsResponse++; if (buildCounterListTagsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4943(o.tag); + checkUnnamed5320(o.tag); } buildCounterListTagsResponse--; } -buildUnnamed4944() { +buildUnnamed5321() { var o = new core.List<api.CustomTemplate>(); o.add(buildCustomTemplate()); o.add(buildCustomTemplate()); return o; } -checkUnnamed4944(core.List<api.CustomTemplate> o) { +checkUnnamed5321(core.List<api.CustomTemplate> o) { unittest.expect(o, unittest.hasLength(2)); checkCustomTemplate(o[0]); checkCustomTemplate(o[1]); @@ -1120,7 +1122,7 @@ buildCounterListTemplatesResponse++; if (buildCounterListTemplatesResponse < 3) { o.nextPageToken = "foo"; - o.template = buildUnnamed4944(); + o.template = buildUnnamed5321(); } buildCounterListTemplatesResponse--; return o; @@ -1130,19 +1132,19 @@ buildCounterListTemplatesResponse++; if (buildCounterListTemplatesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4944(o.template); + checkUnnamed5321(o.template); } buildCounterListTemplatesResponse--; } -buildUnnamed4945() { +buildUnnamed5322() { var o = new core.List<api.Trigger>(); o.add(buildTrigger()); o.add(buildTrigger()); return o; } -checkUnnamed4945(core.List<api.Trigger> o) { +checkUnnamed5322(core.List<api.Trigger> o) { unittest.expect(o, unittest.hasLength(2)); checkTrigger(o[0]); checkTrigger(o[1]); @@ -1154,7 +1156,7 @@ buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { o.nextPageToken = "foo"; - o.trigger = buildUnnamed4945(); + o.trigger = buildUnnamed5322(); } buildCounterListTriggersResponse--; return o; @@ -1164,19 +1166,19 @@ buildCounterListTriggersResponse++; if (buildCounterListTriggersResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4945(o.trigger); + checkUnnamed5322(o.trigger); } buildCounterListTriggersResponse--; } -buildUnnamed4946() { +buildUnnamed5323() { var o = new core.List<api.UserPermission>(); o.add(buildUserPermission()); o.add(buildUserPermission()); return o; } -checkUnnamed4946(core.List<api.UserPermission> o) { +checkUnnamed5323(core.List<api.UserPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkUserPermission(o[0]); checkUserPermission(o[1]); @@ -1188,7 +1190,7 @@ buildCounterListUserPermissionsResponse++; if (buildCounterListUserPermissionsResponse < 3) { o.nextPageToken = "foo"; - o.userPermission = buildUnnamed4946(); + o.userPermission = buildUnnamed5323(); } buildCounterListUserPermissionsResponse--; return o; @@ -1198,19 +1200,19 @@ buildCounterListUserPermissionsResponse++; if (buildCounterListUserPermissionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4946(o.userPermission); + checkUnnamed5323(o.userPermission); } buildCounterListUserPermissionsResponse--; } -buildUnnamed4947() { +buildUnnamed5324() { var o = new core.List<api.Variable>(); o.add(buildVariable()); o.add(buildVariable()); return o; } -checkUnnamed4947(core.List<api.Variable> o) { +checkUnnamed5324(core.List<api.Variable> o) { unittest.expect(o, unittest.hasLength(2)); checkVariable(o[0]); checkVariable(o[1]); @@ -1222,7 +1224,7 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { o.nextPageToken = "foo"; - o.variable = buildUnnamed4947(); + o.variable = buildUnnamed5324(); } buildCounterListVariablesResponse--; return o; @@ -1232,19 +1234,19 @@ buildCounterListVariablesResponse++; if (buildCounterListVariablesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4947(o.variable); + checkUnnamed5324(o.variable); } buildCounterListVariablesResponse--; } -buildUnnamed4948() { +buildUnnamed5325() { var o = new core.List<api.Workspace>(); o.add(buildWorkspace()); o.add(buildWorkspace()); return o; } -checkUnnamed4948(core.List<api.Workspace> o) { +checkUnnamed5325(core.List<api.Workspace> o) { unittest.expect(o, unittest.hasLength(2)); checkWorkspace(o[0]); checkWorkspace(o[1]); @@ -1256,7 +1258,7 @@ buildCounterListWorkspacesResponse++; if (buildCounterListWorkspacesResponse < 3) { o.nextPageToken = "foo"; - o.workspace = buildUnnamed4948(); + o.workspace = buildUnnamed5325(); } buildCounterListWorkspacesResponse--; return o; @@ -1266,19 +1268,19 @@ buildCounterListWorkspacesResponse++; if (buildCounterListWorkspacesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4948(o.workspace); + checkUnnamed5325(o.workspace); } buildCounterListWorkspacesResponse--; } -buildUnnamed4949() { +buildUnnamed5326() { var o = new core.List<api.Zone>(); o.add(buildZone()); o.add(buildZone()); return o; } -checkUnnamed4949(core.List<api.Zone> o) { +checkUnnamed5326(core.List<api.Zone> o) { unittest.expect(o, unittest.hasLength(2)); checkZone(o[0]); checkZone(o[1]); @@ -1290,7 +1292,7 @@ buildCounterListZonesResponse++; if (buildCounterListZonesResponse < 3) { o.nextPageToken = "foo"; - o.zone = buildUnnamed4949(); + o.zone = buildUnnamed5326(); } buildCounterListZonesResponse--; return o; @@ -1300,7 +1302,7 @@ buildCounterListZonesResponse++; if (buildCounterListZonesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4949(o.zone); + checkUnnamed5326(o.zone); } buildCounterListZonesResponse--; } @@ -1326,27 +1328,27 @@ buildCounterMergeConflict--; } -buildUnnamed4950() { +buildUnnamed5327() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4950(core.List<api.Parameter> o) { +checkUnnamed5327(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed4951() { +buildUnnamed5328() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4951(core.List<api.Parameter> o) { +checkUnnamed5328(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1358,8 +1360,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { o.key = "foo"; - o.list = buildUnnamed4950(); - o.map = buildUnnamed4951(); + o.list = buildUnnamed5327(); + o.map = buildUnnamed5328(); o.type = "foo"; o.value = "foo"; } @@ -1371,8 +1373,8 @@ buildCounterParameter++; if (buildCounterParameter < 3) { unittest.expect(o.key, unittest.equals('foo')); - checkUnnamed4950(o.list); - checkUnnamed4951(o.map); + checkUnnamed5327(o.list); + checkUnnamed5328(o.map); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.value, unittest.equals('foo')); } @@ -1598,14 +1600,14 @@ buildCounterSyncStatus--; } -buildUnnamed4952() { +buildUnnamed5329() { var o = new core.List<api.MergeConflict>(); o.add(buildMergeConflict()); o.add(buildMergeConflict()); return o; } -checkUnnamed4952(core.List<api.MergeConflict> o) { +checkUnnamed5329(core.List<api.MergeConflict> o) { unittest.expect(o, unittest.hasLength(2)); checkMergeConflict(o[0]); checkMergeConflict(o[1]); @@ -1616,7 +1618,7 @@ var o = new api.SyncWorkspaceResponse(); buildCounterSyncWorkspaceResponse++; if (buildCounterSyncWorkspaceResponse < 3) { - o.mergeConflict = buildUnnamed4952(); + o.mergeConflict = buildUnnamed5329(); o.syncStatus = buildSyncStatus(); } buildCounterSyncWorkspaceResponse--; @@ -1626,98 +1628,98 @@ checkSyncWorkspaceResponse(api.SyncWorkspaceResponse o) { buildCounterSyncWorkspaceResponse++; if (buildCounterSyncWorkspaceResponse < 3) { - checkUnnamed4952(o.mergeConflict); + checkUnnamed5329(o.mergeConflict); checkSyncStatus(o.syncStatus); } buildCounterSyncWorkspaceResponse--; } -buildUnnamed4953() { +buildUnnamed5330() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4953(core.List<core.String> o) { +checkUnnamed5330(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4954() { +buildUnnamed5331() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4954(core.List<core.String> o) { +checkUnnamed5331(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4955() { +buildUnnamed5332() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4955(core.List<core.String> o) { +checkUnnamed5332(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4956() { +buildUnnamed5333() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4956(core.List<core.String> o) { +checkUnnamed5333(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4957() { +buildUnnamed5334() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4957(core.List<api.Parameter> o) { +checkUnnamed5334(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); } -buildUnnamed4958() { +buildUnnamed5335() { var o = new core.List<api.SetupTag>(); o.add(buildSetupTag()); o.add(buildSetupTag()); return o; } -checkUnnamed4958(core.List<api.SetupTag> o) { +checkUnnamed5335(core.List<api.SetupTag> o) { unittest.expect(o, unittest.hasLength(2)); checkSetupTag(o[0]); checkSetupTag(o[1]); } -buildUnnamed4959() { +buildUnnamed5336() { var o = new core.List<api.TeardownTag>(); o.add(buildTeardownTag()); o.add(buildTeardownTag()); return o; } -checkUnnamed4959(core.List<api.TeardownTag> o) { +checkUnnamed5336(core.List<api.TeardownTag> o) { unittest.expect(o, unittest.hasLength(2)); checkTeardownTag(o[0]); checkTeardownTag(o[1]); @@ -1729,29 +1731,29 @@ buildCounterTag++; if (buildCounterTag < 3) { o.accountId = "foo"; - o.blockingRuleId = buildUnnamed4953(); - o.blockingTriggerId = buildUnnamed4954(); + o.blockingRuleId = buildUnnamed5330(); + o.blockingTriggerId = buildUnnamed5331(); o.containerId = "foo"; o.fingerprint = "foo"; - o.firingRuleId = buildUnnamed4955(); - o.firingTriggerId = buildUnnamed4956(); + o.firingRuleId = buildUnnamed5332(); + o.firingTriggerId = buildUnnamed5333(); o.liveOnly = true; o.monitoringMetadata = buildParameter(); o.monitoringMetadataTagNameKey = "foo"; o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4957(); + o.parameter = buildUnnamed5334(); o.parentFolderId = "foo"; o.path = "foo"; o.paused = true; o.priority = buildParameter(); o.scheduleEndMs = "foo"; o.scheduleStartMs = "foo"; - o.setupTag = buildUnnamed4958(); + o.setupTag = buildUnnamed5335(); o.tagFiringOption = "foo"; o.tagId = "foo"; o.tagManagerUrl = "foo"; - o.teardownTag = buildUnnamed4959(); + o.teardownTag = buildUnnamed5336(); o.type = "foo"; o.workspaceId = "foo"; } @@ -1763,29 +1765,29 @@ buildCounterTag++; if (buildCounterTag < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4953(o.blockingRuleId); - checkUnnamed4954(o.blockingTriggerId); + checkUnnamed5330(o.blockingRuleId); + checkUnnamed5331(o.blockingTriggerId); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); - checkUnnamed4955(o.firingRuleId); - checkUnnamed4956(o.firingTriggerId); + checkUnnamed5332(o.firingRuleId); + checkUnnamed5333(o.firingTriggerId); unittest.expect(o.liveOnly, unittest.isTrue); checkParameter(o.monitoringMetadata); unittest.expect(o.monitoringMetadataTagNameKey, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4957(o.parameter); + checkUnnamed5334(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.paused, unittest.isTrue); checkParameter(o.priority); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); unittest.expect(o.scheduleStartMs, unittest.equals('foo')); - checkUnnamed4958(o.setupTag); + checkUnnamed5335(o.setupTag); unittest.expect(o.tagFiringOption, unittest.equals('foo')); unittest.expect(o.tagId, unittest.equals('foo')); unittest.expect(o.tagManagerUrl, unittest.equals('foo')); - checkUnnamed4959(o.teardownTag); + checkUnnamed5336(o.teardownTag); unittest.expect(o.type, unittest.equals('foo')); unittest.expect(o.workspaceId, unittest.equals('foo')); } @@ -1813,53 +1815,53 @@ buildCounterTeardownTag--; } -buildUnnamed4960() { +buildUnnamed5337() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4960(core.List<api.Condition> o) { +checkUnnamed5337(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4961() { +buildUnnamed5338() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4961(core.List<api.Condition> o) { +checkUnnamed5338(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4962() { +buildUnnamed5339() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4962(core.List<api.Condition> o) { +checkUnnamed5339(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4963() { +buildUnnamed5340() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4963(core.List<api.Parameter> o) { +checkUnnamed5340(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -1871,13 +1873,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { o.accountId = "foo"; - o.autoEventFilter = buildUnnamed4960(); + o.autoEventFilter = buildUnnamed5337(); o.checkValidation = buildParameter(); o.containerId = "foo"; o.continuousTimeMinMilliseconds = buildParameter(); - o.customEventFilter = buildUnnamed4961(); + o.customEventFilter = buildUnnamed5338(); o.eventName = buildParameter(); - o.filter = buildUnnamed4962(); + o.filter = buildUnnamed5339(); o.fingerprint = "foo"; o.horizontalScrollPercentageList = buildParameter(); o.interval = buildParameter(); @@ -1886,7 +1888,7 @@ o.maxTimerLengthSeconds = buildParameter(); o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4963(); + o.parameter = buildUnnamed5340(); o.parentFolderId = "foo"; o.path = "foo"; o.selector = buildParameter(); @@ -1911,13 +1913,13 @@ buildCounterTrigger++; if (buildCounterTrigger < 3) { unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4960(o.autoEventFilter); + checkUnnamed5337(o.autoEventFilter); checkParameter(o.checkValidation); unittest.expect(o.containerId, unittest.equals('foo')); checkParameter(o.continuousTimeMinMilliseconds); - checkUnnamed4961(o.customEventFilter); + checkUnnamed5338(o.customEventFilter); checkParameter(o.eventName); - checkUnnamed4962(o.filter); + checkUnnamed5339(o.filter); unittest.expect(o.fingerprint, unittest.equals('foo')); checkParameter(o.horizontalScrollPercentageList); checkParameter(o.interval); @@ -1926,7 +1928,7 @@ checkParameter(o.maxTimerLengthSeconds); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4963(o.parameter); + checkUnnamed5340(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); checkParameter(o.selector); @@ -1946,14 +1948,14 @@ buildCounterTrigger--; } -buildUnnamed4964() { +buildUnnamed5341() { var o = new core.List<api.ContainerAccess>(); o.add(buildContainerAccess()); o.add(buildContainerAccess()); return o; } -checkUnnamed4964(core.List<api.ContainerAccess> o) { +checkUnnamed5341(core.List<api.ContainerAccess> o) { unittest.expect(o, unittest.hasLength(2)); checkContainerAccess(o[0]); checkContainerAccess(o[1]); @@ -1966,7 +1968,7 @@ if (buildCounterUserPermission < 3) { o.accountAccess = buildAccountAccess(); o.accountId = "foo"; - o.containerAccess = buildUnnamed4964(); + o.containerAccess = buildUnnamed5341(); o.emailAddress = "foo"; o.path = "foo"; } @@ -1979,47 +1981,47 @@ if (buildCounterUserPermission < 3) { checkAccountAccess(o.accountAccess); unittest.expect(o.accountId, unittest.equals('foo')); - checkUnnamed4964(o.containerAccess); + checkUnnamed5341(o.containerAccess); unittest.expect(o.emailAddress, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); } buildCounterUserPermission--; } -buildUnnamed4965() { +buildUnnamed5342() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4965(core.List<core.String> o) { +checkUnnamed5342(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4966() { +buildUnnamed5343() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4966(core.List<core.String> o) { +checkUnnamed5343(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4967() { +buildUnnamed5344() { var o = new core.List<api.Parameter>(); o.add(buildParameter()); o.add(buildParameter()); return o; } -checkUnnamed4967(core.List<api.Parameter> o) { +checkUnnamed5344(core.List<api.Parameter> o) { unittest.expect(o, unittest.hasLength(2)); checkParameter(o[0]); checkParameter(o[1]); @@ -2032,13 +2034,13 @@ if (buildCounterVariable < 3) { o.accountId = "foo"; o.containerId = "foo"; - o.disablingTriggerId = buildUnnamed4965(); - o.enablingTriggerId = buildUnnamed4966(); + o.disablingTriggerId = buildUnnamed5342(); + o.enablingTriggerId = buildUnnamed5343(); o.fingerprint = "foo"; o.formatValue = buildVariableFormatValue(); o.name = "foo"; o.notes = "foo"; - o.parameter = buildUnnamed4967(); + o.parameter = buildUnnamed5344(); o.parentFolderId = "foo"; o.path = "foo"; o.scheduleEndMs = "foo"; @@ -2057,13 +2059,13 @@ if (buildCounterVariable < 3) { unittest.expect(o.accountId, unittest.equals('foo')); unittest.expect(o.containerId, unittest.equals('foo')); - checkUnnamed4965(o.disablingTriggerId); - checkUnnamed4966(o.enablingTriggerId); + checkUnnamed5342(o.disablingTriggerId); + checkUnnamed5343(o.enablingTriggerId); unittest.expect(o.fingerprint, unittest.equals('foo')); checkVariableFormatValue(o.formatValue); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.notes, unittest.equals('foo')); - checkUnnamed4967(o.parameter); + checkUnnamed5344(o.parameter); unittest.expect(o.parentFolderId, unittest.equals('foo')); unittest.expect(o.path, unittest.equals('foo')); unittest.expect(o.scheduleEndMs, unittest.equals('foo')); @@ -2136,14 +2138,14 @@ buildCounterWorkspace--; } -buildUnnamed4968() { +buildUnnamed5345() { var o = new core.List<api.ZoneChildContainer>(); o.add(buildZoneChildContainer()); o.add(buildZoneChildContainer()); return o; } -checkUnnamed4968(core.List<api.ZoneChildContainer> o) { +checkUnnamed5345(core.List<api.ZoneChildContainer> o) { unittest.expect(o, unittest.hasLength(2)); checkZoneChildContainer(o[0]); checkZoneChildContainer(o[1]); @@ -2156,7 +2158,7 @@ if (buildCounterZone < 3) { o.accountId = "foo"; o.boundary = buildZoneBoundary(); - o.childContainer = buildUnnamed4968(); + o.childContainer = buildUnnamed5345(); o.containerId = "foo"; o.fingerprint = "foo"; o.name = "foo"; @@ -2176,7 +2178,7 @@ if (buildCounterZone < 3) { unittest.expect(o.accountId, unittest.equals('foo')); checkZoneBoundary(o.boundary); - checkUnnamed4968(o.childContainer); + checkUnnamed5345(o.childContainer); unittest.expect(o.containerId, unittest.equals('foo')); unittest.expect(o.fingerprint, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -2190,27 +2192,27 @@ buildCounterZone--; } -buildUnnamed4969() { +buildUnnamed5346() { var o = new core.List<api.Condition>(); o.add(buildCondition()); o.add(buildCondition()); return o; } -checkUnnamed4969(core.List<api.Condition> o) { +checkUnnamed5346(core.List<api.Condition> o) { unittest.expect(o, unittest.hasLength(2)); checkCondition(o[0]); checkCondition(o[1]); } -buildUnnamed4970() { +buildUnnamed5347() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4970(core.List<core.String> o) { +checkUnnamed5347(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2221,8 +2223,8 @@ var o = new api.ZoneBoundary(); buildCounterZoneBoundary++; if (buildCounterZoneBoundary < 3) { - o.condition = buildUnnamed4969(); - o.customEvaluationTriggerId = buildUnnamed4970(); + o.condition = buildUnnamed5346(); + o.customEvaluationTriggerId = buildUnnamed5347(); } buildCounterZoneBoundary--; return o; @@ -2231,8 +2233,8 @@ checkZoneBoundary(api.ZoneBoundary o) { buildCounterZoneBoundary++; if (buildCounterZoneBoundary < 3) { - checkUnnamed4969(o.condition); - checkUnnamed4970(o.customEvaluationTriggerId); + checkUnnamed5346(o.condition); + checkUnnamed5347(o.customEvaluationTriggerId); } buildCounterZoneBoundary--; } @@ -2258,14 +2260,14 @@ buildCounterZoneChildContainer--; } -buildUnnamed4971() { +buildUnnamed5348() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4971(core.List<core.String> o) { +checkUnnamed5348(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2277,7 +2279,7 @@ buildCounterZoneTypeRestriction++; if (buildCounterZoneTypeRestriction < 3) { o.enable = true; - o.whitelistedTypeId = buildUnnamed4971(); + o.whitelistedTypeId = buildUnnamed5348(); } buildCounterZoneTypeRestriction--; return o; @@ -2287,71 +2289,71 @@ buildCounterZoneTypeRestriction++; if (buildCounterZoneTypeRestriction < 3) { unittest.expect(o.enable, unittest.isTrue); - checkUnnamed4971(o.whitelistedTypeId); + checkUnnamed5348(o.whitelistedTypeId); } buildCounterZoneTypeRestriction--; } -buildUnnamed4972() { +buildUnnamed5349() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4972(core.List<core.String> o) { +checkUnnamed5349(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4973() { +buildUnnamed5350() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4973(core.List<core.String> o) { +checkUnnamed5350(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4974() { +buildUnnamed5351() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4974(core.List<core.String> o) { +checkUnnamed5351(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4975() { +buildUnnamed5352() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4975(core.List<core.String> o) { +checkUnnamed5352(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4976() { +buildUnnamed5353() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4976(core.List<core.String> o) { +checkUnnamed5353(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -3643,8 +3645,8 @@ api.AccountsContainersVersionHeadersResourceApi res = new api.TagmanagerApi(mock).accounts.containers.versionHeaders; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_includeDeleted = true; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -3677,10 +3679,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["includeDeleted"].first, unittest.equals("$arg_includeDeleted")); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -3691,8 +3693,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, includeDeleted: arg_includeDeleted, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListContainerVersionsResponse(response); @@ -4636,7 +4638,7 @@ .workspaces .builtInVariables; var arg_parent = "foo"; - var arg_type = buildUnnamed4972(); + var arg_type = buildUnnamed5349(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -4694,7 +4696,7 @@ .workspaces .builtInVariables; var arg_path = "foo"; - var arg_type = buildUnnamed4973(); + var arg_type = buildUnnamed5350(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -5135,9 +5137,9 @@ new api.TagmanagerApi(mock).accounts.containers.workspaces.folders; var arg_request = buildFolder(); var arg_path = "foo"; - var arg_variableId = buildUnnamed4974(); - var arg_tagId = buildUnnamed4975(); - var arg_triggerId = buildUnnamed4976(); + var arg_variableId = buildUnnamed5351(); + var arg_triggerId = buildUnnamed5352(); + var arg_tagId = buildUnnamed5353(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Folder.fromJson(json); @@ -5175,8 +5177,8 @@ } unittest.expect( queryMap["variableId"], unittest.equals(arg_variableId)); - unittest.expect(queryMap["tagId"], unittest.equals(arg_tagId)); unittest.expect(queryMap["triggerId"], unittest.equals(arg_triggerId)); + unittest.expect(queryMap["tagId"], unittest.equals(arg_tagId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -5188,8 +5190,8 @@ res .moveEntitiesToFolder(arg_request, arg_path, variableId: arg_variableId, - tagId: arg_tagId, triggerId: arg_triggerId, + tagId: arg_tagId, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); });
diff --git a/generated/googleapis/test/tasks/v1_test.dart b/generated/googleapis/test/tasks/v1_test.dart index 816f1cc..593274b 100644 --- a/generated/googleapis/test/tasks/v1_test.dart +++ b/generated/googleapis/test/tasks/v1_test.dart
@@ -73,14 +73,14 @@ buildCounterTaskLinks--; } -buildUnnamed545() { +buildUnnamed564() { var o = new core.List<api.TaskLinks>(); o.add(buildTaskLinks()); o.add(buildTaskLinks()); return o; } -checkUnnamed545(core.List<api.TaskLinks> o) { +checkUnnamed564(core.List<api.TaskLinks> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskLinks(o[0]); checkTaskLinks(o[1]); @@ -91,21 +91,21 @@ var o = new api.Task(); buildCounterTask++; if (buildCounterTask < 3) { - o.completed = core.DateTime.parse("2002-02-27T14:01:02"); + o.completed = "foo"; o.deleted = true; - o.due = core.DateTime.parse("2002-02-27T14:01:02"); + o.due = "foo"; o.etag = "foo"; o.hidden = true; o.id = "foo"; o.kind = "foo"; - o.links = buildUnnamed545(); + o.links = buildUnnamed564(); o.notes = "foo"; o.parent = "foo"; o.position = "foo"; o.selfLink = "foo"; o.status = "foo"; o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; } buildCounterTask--; return o; @@ -114,24 +114,21 @@ checkTask(api.Task o) { buildCounterTask++; if (buildCounterTask < 3) { - unittest.expect(o.completed, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.completed, unittest.equals('foo')); unittest.expect(o.deleted, unittest.isTrue); - unittest.expect( - o.due, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.due, unittest.equals('foo')); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.hidden, unittest.isTrue); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed545(o.links); + checkUnnamed564(o.links); unittest.expect(o.notes, unittest.equals('foo')); unittest.expect(o.parent, unittest.equals('foo')); unittest.expect(o.position, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); } buildCounterTask--; } @@ -146,7 +143,7 @@ o.kind = "foo"; o.selfLink = "foo"; o.title = "foo"; - o.updated = core.DateTime.parse("2002-02-27T14:01:02"); + o.updated = "foo"; } buildCounterTaskList--; return o; @@ -160,20 +157,19 @@ unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.selfLink, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); - unittest.expect( - o.updated, unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updated, unittest.equals('foo')); } buildCounterTaskList--; } -buildUnnamed546() { +buildUnnamed565() { var o = new core.List<api.TaskList>(); o.add(buildTaskList()); o.add(buildTaskList()); return o; } -checkUnnamed546(core.List<api.TaskList> o) { +checkUnnamed565(core.List<api.TaskList> o) { unittest.expect(o, unittest.hasLength(2)); checkTaskList(o[0]); checkTaskList(o[1]); @@ -185,7 +181,7 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { o.etag = "foo"; - o.items = buildUnnamed546(); + o.items = buildUnnamed565(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -197,21 +193,21 @@ buildCounterTaskLists++; if (buildCounterTaskLists < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed546(o.items); + checkUnnamed565(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterTaskLists--; } -buildUnnamed547() { +buildUnnamed566() { var o = new core.List<api.Task>(); o.add(buildTask()); o.add(buildTask()); return o; } -checkUnnamed547(core.List<api.Task> o) { +checkUnnamed566(core.List<api.Task> o) { unittest.expect(o, unittest.hasLength(2)); checkTask(o[0]); checkTask(o[1]); @@ -223,7 +219,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { o.etag = "foo"; - o.items = buildUnnamed547(); + o.items = buildUnnamed566(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -235,7 +231,7 @@ buildCounterTasks++; if (buildCounterTasks < 3) { unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed547(o.items); + checkUnnamed566(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } @@ -297,12 +293,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("users/@me/lists/")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("tasks/v1/users/@me/lists/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_tasklist")); @@ -351,12 +344,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("users/@me/lists/")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("tasks/v1/users/@me/lists/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_tasklist")); @@ -410,12 +400,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("users/@me/lists")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("tasks/v1/users/@me/lists")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -453,7 +440,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.TasklistsResourceApi res = new api.TasksApi(mock).tasklists; - var arg_maxResults = "foo"; + var arg_maxResults = 42; var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -464,12 +451,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("users/@me/lists")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("tasks/v1/users/@me/lists")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -489,8 +473,8 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["maxResults"].first, unittest.equals(arg_maxResults)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -528,12 +512,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("users/@me/lists/")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("tasks/v1/users/@me/lists/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_tasklist")); @@ -588,12 +569,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("users/@me/lists/")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("tasks/v1/users/@me/lists/")); + pathOffset += 25; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_tasklist")); @@ -646,12 +624,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/clear", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -707,12 +682,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -771,12 +743,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -842,12 +811,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -899,16 +865,16 @@ var mock = new HttpServerMock(); api.TasksResourceApi res = new api.TasksApi(mock).tasks; var arg_tasklist = "foo"; - var arg_completedMax = "foo"; - var arg_completedMin = "foo"; - var arg_dueMax = "foo"; - var arg_dueMin = "foo"; - var arg_maxResults = "foo"; var arg_pageToken = "foo"; - var arg_showCompleted = true; - var arg_showDeleted = true; + var arg_maxResults = 42; var arg_showHidden = true; + var arg_completedMin = "foo"; + var arg_showDeleted = true; + var arg_showCompleted = true; + var arg_completedMax = "foo"; var arg_updatedMin = "foo"; + var arg_dueMin = "foo"; + var arg_dueMax = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -918,12 +884,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -953,23 +916,23 @@ } } unittest.expect( - queryMap["completedMax"].first, unittest.equals(arg_completedMax)); - unittest.expect( - queryMap["completedMin"].first, unittest.equals(arg_completedMin)); - unittest.expect(queryMap["dueMax"].first, unittest.equals(arg_dueMax)); - unittest.expect(queryMap["dueMin"].first, unittest.equals(arg_dueMin)); - unittest.expect( - queryMap["maxResults"].first, unittest.equals(arg_maxResults)); - unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["showCompleted"].first, - unittest.equals("$arg_showCompleted")); - unittest.expect( - queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( queryMap["showHidden"].first, unittest.equals("$arg_showHidden")); unittest.expect( + queryMap["completedMin"].first, unittest.equals(arg_completedMin)); + unittest.expect( + queryMap["showDeleted"].first, unittest.equals("$arg_showDeleted")); + unittest.expect(queryMap["showCompleted"].first, + unittest.equals("$arg_showCompleted")); + unittest.expect( + queryMap["completedMax"].first, unittest.equals(arg_completedMax)); + unittest.expect( queryMap["updatedMin"].first, unittest.equals(arg_updatedMin)); + unittest.expect(queryMap["dueMin"].first, unittest.equals(arg_dueMin)); + unittest.expect(queryMap["dueMax"].first, unittest.equals(arg_dueMax)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -980,16 +943,16 @@ }), true); res .list(arg_tasklist, - completedMax: arg_completedMax, - completedMin: arg_completedMin, - dueMax: arg_dueMax, - dueMin: arg_dueMin, - maxResults: arg_maxResults, pageToken: arg_pageToken, - showCompleted: arg_showCompleted, - showDeleted: arg_showDeleted, + maxResults: arg_maxResults, showHidden: arg_showHidden, + completedMin: arg_completedMin, + showDeleted: arg_showDeleted, + showCompleted: arg_showCompleted, + completedMax: arg_completedMax, updatedMin: arg_updatedMin, + dueMin: arg_dueMin, + dueMax: arg_dueMax, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTasks(response); @@ -1001,8 +964,8 @@ api.TasksResourceApi res = new api.TasksApi(mock).tasks; var arg_tasklist = "foo"; var arg_task = "foo"; - var arg_parent = "foo"; var arg_previous = "foo"; + var arg_parent = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1012,12 +975,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1055,9 +1015,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect( queryMap["previous"].first, unittest.equals(arg_previous)); + unittest.expect(queryMap["parent"].first, unittest.equals(arg_parent)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1068,7 +1028,7 @@ }), true); res .move(arg_tasklist, arg_task, - parent: arg_parent, previous: arg_previous, $fields: arg_$fields) + previous: arg_previous, parent: arg_parent, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkTask(response); }))); @@ -1092,12 +1052,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart = @@ -1162,12 +1119,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("tasks/v1/")); - pathOffset += 9; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("lists/")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 15), + unittest.equals("tasks/v1/lists/")); + pathOffset += 15; index = path.indexOf("/tasks/", pathOffset); unittest.expect(index >= 0, unittest.isTrue); subPart =
diff --git a/generated/googleapis/test/testing/v1_test.dart b/generated/googleapis/test/testing/v1_test.dart index 21d8315..1e0fff1 100644 --- a/generated/googleapis/test/testing/v1_test.dart +++ b/generated/googleapis/test/testing/v1_test.dart
@@ -94,27 +94,27 @@ buildCounterAndroidDevice--; } -buildUnnamed2280() { +buildUnnamed2390() { var o = new core.List<api.AndroidModel>(); o.add(buildAndroidModel()); o.add(buildAndroidModel()); return o; } -checkUnnamed2280(core.List<api.AndroidModel> o) { +checkUnnamed2390(core.List<api.AndroidModel> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidModel(o[0]); checkAndroidModel(o[1]); } -buildUnnamed2281() { +buildUnnamed2391() { var o = new core.List<api.AndroidVersion>(); o.add(buildAndroidVersion()); o.add(buildAndroidVersion()); return o; } -checkUnnamed2281(core.List<api.AndroidVersion> o) { +checkUnnamed2391(core.List<api.AndroidVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidVersion(o[0]); checkAndroidVersion(o[1]); @@ -125,9 +125,9 @@ var o = new api.AndroidDeviceCatalog(); buildCounterAndroidDeviceCatalog++; if (buildCounterAndroidDeviceCatalog < 3) { - o.models = buildUnnamed2280(); + o.models = buildUnnamed2390(); o.runtimeConfiguration = buildAndroidRuntimeConfiguration(); - o.versions = buildUnnamed2281(); + o.versions = buildUnnamed2391(); } buildCounterAndroidDeviceCatalog--; return o; @@ -136,21 +136,21 @@ checkAndroidDeviceCatalog(api.AndroidDeviceCatalog o) { buildCounterAndroidDeviceCatalog++; if (buildCounterAndroidDeviceCatalog < 3) { - checkUnnamed2280(o.models); + checkUnnamed2390(o.models); checkAndroidRuntimeConfiguration(o.runtimeConfiguration); - checkUnnamed2281(o.versions); + checkUnnamed2391(o.versions); } buildCounterAndroidDeviceCatalog--; } -buildUnnamed2282() { +buildUnnamed2392() { var o = new core.List<api.AndroidDevice>(); o.add(buildAndroidDevice()); o.add(buildAndroidDevice()); return o; } -checkUnnamed2282(core.List<api.AndroidDevice> o) { +checkUnnamed2392(core.List<api.AndroidDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkAndroidDevice(o[0]); checkAndroidDevice(o[1]); @@ -161,7 +161,7 @@ var o = new api.AndroidDeviceList(); buildCounterAndroidDeviceList++; if (buildCounterAndroidDeviceList < 3) { - o.androidDevices = buildUnnamed2282(); + o.androidDevices = buildUnnamed2392(); } buildCounterAndroidDeviceList--; return o; @@ -170,19 +170,19 @@ checkAndroidDeviceList(api.AndroidDeviceList o) { buildCounterAndroidDeviceList++; if (buildCounterAndroidDeviceList < 3) { - checkUnnamed2282(o.androidDevices); + checkUnnamed2392(o.androidDevices); } buildCounterAndroidDeviceList--; } -buildUnnamed2283() { +buildUnnamed2393() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2283(core.List<core.String> o) { +checkUnnamed2393(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -201,7 +201,7 @@ o.testApk = buildFileReference(); o.testPackageId = "foo"; o.testRunnerClass = "foo"; - o.testTargets = buildUnnamed2283(); + o.testTargets = buildUnnamed2393(); } buildCounterAndroidInstrumentationTest--; return o; @@ -218,58 +218,58 @@ checkFileReference(o.testApk); unittest.expect(o.testPackageId, unittest.equals('foo')); unittest.expect(o.testRunnerClass, unittest.equals('foo')); - checkUnnamed2283(o.testTargets); + checkUnnamed2393(o.testTargets); } buildCounterAndroidInstrumentationTest--; } -buildUnnamed2284() { +buildUnnamed2394() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2284(core.List<core.String> o) { +checkUnnamed2394(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2285() { +buildUnnamed2395() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2285(core.List<core.String> o) { +checkUnnamed2395(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2286() { +buildUnnamed2396() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2286(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')); } -buildUnnamed2287() { +buildUnnamed2397() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2287(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')); @@ -280,10 +280,10 @@ var o = new api.AndroidMatrix(); buildCounterAndroidMatrix++; if (buildCounterAndroidMatrix < 3) { - o.androidModelIds = buildUnnamed2284(); - o.androidVersionIds = buildUnnamed2285(); - o.locales = buildUnnamed2286(); - o.orientations = buildUnnamed2287(); + o.androidModelIds = buildUnnamed2394(); + o.androidVersionIds = buildUnnamed2395(); + o.locales = buildUnnamed2396(); + o.orientations = buildUnnamed2397(); } buildCounterAndroidMatrix--; return o; @@ -292,48 +292,48 @@ checkAndroidMatrix(api.AndroidMatrix o) { buildCounterAndroidMatrix++; if (buildCounterAndroidMatrix < 3) { - checkUnnamed2284(o.androidModelIds); - checkUnnamed2285(o.androidVersionIds); - checkUnnamed2286(o.locales); - checkUnnamed2287(o.orientations); + checkUnnamed2394(o.androidModelIds); + checkUnnamed2395(o.androidVersionIds); + checkUnnamed2396(o.locales); + checkUnnamed2397(o.orientations); } buildCounterAndroidMatrix--; } -buildUnnamed2288() { +buildUnnamed2398() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2288(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')); } -buildUnnamed2289() { +buildUnnamed2399() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2289(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')); } -buildUnnamed2290() { +buildUnnamed2400() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2290(core.List<core.String> o) { +checkUnnamed2400(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -355,9 +355,9 @@ o.screenDensity = 42; o.screenX = 42; o.screenY = 42; - o.supportedAbis = buildUnnamed2288(); - o.supportedVersionIds = buildUnnamed2289(); - o.tags = buildUnnamed2290(); + o.supportedAbis = buildUnnamed2398(); + o.supportedVersionIds = buildUnnamed2399(); + o.tags = buildUnnamed2400(); o.thumbnailUrl = "foo"; } buildCounterAndroidModel--; @@ -378,35 +378,35 @@ unittest.expect(o.screenDensity, unittest.equals(42)); unittest.expect(o.screenX, unittest.equals(42)); unittest.expect(o.screenY, unittest.equals(42)); - checkUnnamed2288(o.supportedAbis); - checkUnnamed2289(o.supportedVersionIds); - checkUnnamed2290(o.tags); + checkUnnamed2398(o.supportedAbis); + checkUnnamed2399(o.supportedVersionIds); + checkUnnamed2400(o.tags); unittest.expect(o.thumbnailUrl, unittest.equals('foo')); } buildCounterAndroidModel--; } -buildUnnamed2291() { +buildUnnamed2401() { var o = new core.List<api.RoboDirective>(); o.add(buildRoboDirective()); o.add(buildRoboDirective()); return o; } -checkUnnamed2291(core.List<api.RoboDirective> o) { +checkUnnamed2401(core.List<api.RoboDirective> o) { unittest.expect(o, unittest.hasLength(2)); checkRoboDirective(o[0]); checkRoboDirective(o[1]); } -buildUnnamed2292() { +buildUnnamed2402() { var o = new core.List<api.RoboStartingIntent>(); o.add(buildRoboStartingIntent()); o.add(buildRoboStartingIntent()); return o; } -checkUnnamed2292(core.List<api.RoboStartingIntent> o) { +checkUnnamed2402(core.List<api.RoboStartingIntent> o) { unittest.expect(o, unittest.hasLength(2)); checkRoboStartingIntent(o[0]); checkRoboStartingIntent(o[1]); @@ -423,9 +423,9 @@ o.appPackageId = "foo"; o.maxDepth = 42; o.maxSteps = 42; - o.roboDirectives = buildUnnamed2291(); + o.roboDirectives = buildUnnamed2401(); o.roboScript = buildFileReference(); - o.startingIntents = buildUnnamed2292(); + o.startingIntents = buildUnnamed2402(); } buildCounterAndroidRoboTest--; return o; @@ -440,34 +440,34 @@ unittest.expect(o.appPackageId, unittest.equals('foo')); unittest.expect(o.maxDepth, unittest.equals(42)); unittest.expect(o.maxSteps, unittest.equals(42)); - checkUnnamed2291(o.roboDirectives); + checkUnnamed2401(o.roboDirectives); checkFileReference(o.roboScript); - checkUnnamed2292(o.startingIntents); + checkUnnamed2402(o.startingIntents); } buildCounterAndroidRoboTest--; } -buildUnnamed2293() { +buildUnnamed2403() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed2293(core.List<api.Locale> o) { +checkUnnamed2403(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed2294() { +buildUnnamed2404() { var o = new core.List<api.Orientation>(); o.add(buildOrientation()); o.add(buildOrientation()); return o; } -checkUnnamed2294(core.List<api.Orientation> o) { +checkUnnamed2404(core.List<api.Orientation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrientation(o[0]); checkOrientation(o[1]); @@ -478,8 +478,8 @@ var o = new api.AndroidRuntimeConfiguration(); buildCounterAndroidRuntimeConfiguration++; if (buildCounterAndroidRuntimeConfiguration < 3) { - o.locales = buildUnnamed2293(); - o.orientations = buildUnnamed2294(); + o.locales = buildUnnamed2403(); + o.orientations = buildUnnamed2404(); } buildCounterAndroidRuntimeConfiguration--; return o; @@ -488,33 +488,33 @@ checkAndroidRuntimeConfiguration(api.AndroidRuntimeConfiguration o) { buildCounterAndroidRuntimeConfiguration++; if (buildCounterAndroidRuntimeConfiguration < 3) { - checkUnnamed2293(o.locales); - checkUnnamed2294(o.orientations); + checkUnnamed2403(o.locales); + checkUnnamed2404(o.orientations); } buildCounterAndroidRuntimeConfiguration--; } -buildUnnamed2295() { +buildUnnamed2405() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2295(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')); } -buildUnnamed2296() { +buildUnnamed2406() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2296(core.List<core.int> o) { +checkUnnamed2406(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)); @@ -528,8 +528,8 @@ o.appApk = buildFileReference(); o.appBundle = buildAppBundle(); o.appPackageId = "foo"; - o.scenarioLabels = buildUnnamed2295(); - o.scenarios = buildUnnamed2296(); + o.scenarioLabels = buildUnnamed2405(); + o.scenarios = buildUnnamed2406(); } buildCounterAndroidTestLoop--; return o; @@ -541,20 +541,20 @@ checkFileReference(o.appApk); checkAppBundle(o.appBundle); unittest.expect(o.appPackageId, unittest.equals('foo')); - checkUnnamed2295(o.scenarioLabels); - checkUnnamed2296(o.scenarios); + checkUnnamed2405(o.scenarioLabels); + checkUnnamed2406(o.scenarios); } buildCounterAndroidTestLoop--; } -buildUnnamed2297() { +buildUnnamed2407() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2297(core.List<core.String> o) { +checkUnnamed2407(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -570,7 +570,7 @@ o.distribution = buildDistribution(); o.id = "foo"; o.releaseDate = buildDate(); - o.tags = buildUnnamed2297(); + o.tags = buildUnnamed2407(); o.versionString = "foo"; } buildCounterAndroidVersion--; @@ -585,7 +585,7 @@ checkDistribution(o.distribution); unittest.expect(o.id, unittest.equals('foo')); checkDate(o.releaseDate); - checkUnnamed2297(o.tags); + checkUnnamed2407(o.tags); unittest.expect(o.versionString, unittest.equals('foo')); } buildCounterAndroidVersion--; @@ -631,14 +631,14 @@ buildCounterApkDetail--; } -buildUnnamed2298() { +buildUnnamed2408() { var o = new core.List<api.IntentFilter>(); o.add(buildIntentFilter()); o.add(buildIntentFilter()); return o; } -checkUnnamed2298(core.List<api.IntentFilter> o) { +checkUnnamed2408(core.List<api.IntentFilter> o) { unittest.expect(o, unittest.hasLength(2)); checkIntentFilter(o[0]); checkIntentFilter(o[1]); @@ -650,7 +650,7 @@ buildCounterApkManifest++; if (buildCounterApkManifest < 3) { o.applicationLabel = "foo"; - o.intentFilters = buildUnnamed2298(); + o.intentFilters = buildUnnamed2408(); o.maxSdkVersion = 42; o.minSdkVersion = 42; o.packageName = "foo"; @@ -664,7 +664,7 @@ buildCounterApkManifest++; if (buildCounterApkManifest < 3) { unittest.expect(o.applicationLabel, unittest.equals('foo')); - checkUnnamed2298(o.intentFilters); + checkUnnamed2408(o.intentFilters); unittest.expect(o.maxSdkVersion, unittest.equals(42)); unittest.expect(o.minSdkVersion, unittest.equals(42)); unittest.expect(o.packageName, unittest.equals('foo')); @@ -711,14 +711,14 @@ buildCounterCancelTestMatrixResponse--; } -buildUnnamed2299() { +buildUnnamed2409() { var o = new core.List<api.ClientInfoDetail>(); o.add(buildClientInfoDetail()); o.add(buildClientInfoDetail()); return o; } -checkUnnamed2299(core.List<api.ClientInfoDetail> o) { +checkUnnamed2409(core.List<api.ClientInfoDetail> o) { unittest.expect(o, unittest.hasLength(2)); checkClientInfoDetail(o[0]); checkClientInfoDetail(o[1]); @@ -729,7 +729,7 @@ var o = new api.ClientInfo(); buildCounterClientInfo++; if (buildCounterClientInfo < 3) { - o.clientInfoDetails = buildUnnamed2299(); + o.clientInfoDetails = buildUnnamed2409(); o.name = "foo"; } buildCounterClientInfo--; @@ -739,7 +739,7 @@ checkClientInfo(api.ClientInfo o) { buildCounterClientInfo++; if (buildCounterClientInfo < 3) { - checkUnnamed2299(o.clientInfoDetails); + checkUnnamed2409(o.clientInfoDetails); unittest.expect(o.name, unittest.equals('foo')); } buildCounterClientInfo--; @@ -810,6 +810,61 @@ buildCounterDeviceFile--; } +core.int buildCounterDeviceIpBlock = 0; +buildDeviceIpBlock() { + var o = new api.DeviceIpBlock(); + buildCounterDeviceIpBlock++; + if (buildCounterDeviceIpBlock < 3) { + o.addedDate = buildDate(); + o.block = "foo"; + o.form = "foo"; + } + buildCounterDeviceIpBlock--; + return o; +} + +checkDeviceIpBlock(api.DeviceIpBlock o) { + buildCounterDeviceIpBlock++; + if (buildCounterDeviceIpBlock < 3) { + checkDate(o.addedDate); + unittest.expect(o.block, unittest.equals('foo')); + unittest.expect(o.form, unittest.equals('foo')); + } + buildCounterDeviceIpBlock--; +} + +buildUnnamed2410() { + var o = new core.List<api.DeviceIpBlock>(); + o.add(buildDeviceIpBlock()); + o.add(buildDeviceIpBlock()); + return o; +} + +checkUnnamed2410(core.List<api.DeviceIpBlock> o) { + unittest.expect(o, unittest.hasLength(2)); + checkDeviceIpBlock(o[0]); + checkDeviceIpBlock(o[1]); +} + +core.int buildCounterDeviceIpBlockCatalog = 0; +buildDeviceIpBlockCatalog() { + var o = new api.DeviceIpBlockCatalog(); + buildCounterDeviceIpBlockCatalog++; + if (buildCounterDeviceIpBlockCatalog < 3) { + o.ipBlocks = buildUnnamed2410(); + } + buildCounterDeviceIpBlockCatalog--; + return o; +} + +checkDeviceIpBlockCatalog(api.DeviceIpBlockCatalog o) { + buildCounterDeviceIpBlockCatalog++; + if (buildCounterDeviceIpBlockCatalog < 3) { + checkUnnamed2410(o.ipBlocks); + } + buildCounterDeviceIpBlockCatalog--; +} + core.int buildCounterDistribution = 0; buildDistribution() { var o = new api.Distribution(); @@ -968,27 +1023,27 @@ buildCounterGoogleCloudStorage--; } -buildUnnamed2300() { +buildUnnamed2411() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2300(core.List<core.String> o) { +checkUnnamed2411(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2301() { +buildUnnamed2412() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2301(core.List<core.String> o) { +checkUnnamed2412(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -999,8 +1054,8 @@ var o = new api.IntentFilter(); buildCounterIntentFilter++; if (buildCounterIntentFilter < 3) { - o.actionNames = buildUnnamed2300(); - o.categoryNames = buildUnnamed2301(); + o.actionNames = buildUnnamed2411(); + o.categoryNames = buildUnnamed2412(); o.mimeType = "foo"; } buildCounterIntentFilter--; @@ -1010,8 +1065,8 @@ checkIntentFilter(api.IntentFilter o) { buildCounterIntentFilter++; if (buildCounterIntentFilter < 3) { - checkUnnamed2300(o.actionNames); - checkUnnamed2301(o.categoryNames); + checkUnnamed2411(o.actionNames); + checkUnnamed2412(o.categoryNames); unittest.expect(o.mimeType, unittest.equals('foo')); } buildCounterIntentFilter--; @@ -1042,40 +1097,40 @@ buildCounterIosDevice--; } -buildUnnamed2302() { +buildUnnamed2413() { var o = new core.List<api.IosModel>(); o.add(buildIosModel()); o.add(buildIosModel()); return o; } -checkUnnamed2302(core.List<api.IosModel> o) { +checkUnnamed2413(core.List<api.IosModel> o) { unittest.expect(o, unittest.hasLength(2)); checkIosModel(o[0]); checkIosModel(o[1]); } -buildUnnamed2303() { +buildUnnamed2414() { var o = new core.List<api.IosVersion>(); o.add(buildIosVersion()); o.add(buildIosVersion()); return o; } -checkUnnamed2303(core.List<api.IosVersion> o) { +checkUnnamed2414(core.List<api.IosVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkIosVersion(o[0]); checkIosVersion(o[1]); } -buildUnnamed2304() { +buildUnnamed2415() { var o = new core.List<api.XcodeVersion>(); o.add(buildXcodeVersion()); o.add(buildXcodeVersion()); return o; } -checkUnnamed2304(core.List<api.XcodeVersion> o) { +checkUnnamed2415(core.List<api.XcodeVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkXcodeVersion(o[0]); checkXcodeVersion(o[1]); @@ -1086,10 +1141,10 @@ var o = new api.IosDeviceCatalog(); buildCounterIosDeviceCatalog++; if (buildCounterIosDeviceCatalog < 3) { - o.models = buildUnnamed2302(); + o.models = buildUnnamed2413(); o.runtimeConfiguration = buildIosRuntimeConfiguration(); - o.versions = buildUnnamed2303(); - o.xcodeVersions = buildUnnamed2304(); + o.versions = buildUnnamed2414(); + o.xcodeVersions = buildUnnamed2415(); } buildCounterIosDeviceCatalog--; return o; @@ -1098,22 +1153,22 @@ checkIosDeviceCatalog(api.IosDeviceCatalog o) { buildCounterIosDeviceCatalog++; if (buildCounterIosDeviceCatalog < 3) { - checkUnnamed2302(o.models); + checkUnnamed2413(o.models); checkIosRuntimeConfiguration(o.runtimeConfiguration); - checkUnnamed2303(o.versions); - checkUnnamed2304(o.xcodeVersions); + checkUnnamed2414(o.versions); + checkUnnamed2415(o.xcodeVersions); } buildCounterIosDeviceCatalog--; } -buildUnnamed2305() { +buildUnnamed2416() { var o = new core.List<api.IosDevice>(); o.add(buildIosDevice()); o.add(buildIosDevice()); return o; } -checkUnnamed2305(core.List<api.IosDevice> o) { +checkUnnamed2416(core.List<api.IosDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkIosDevice(o[0]); checkIosDevice(o[1]); @@ -1124,7 +1179,7 @@ var o = new api.IosDeviceList(); buildCounterIosDeviceList++; if (buildCounterIosDeviceList < 3) { - o.iosDevices = buildUnnamed2305(); + o.iosDevices = buildUnnamed2416(); } buildCounterIosDeviceList--; return o; @@ -1133,45 +1188,45 @@ checkIosDeviceList(api.IosDeviceList o) { buildCounterIosDeviceList++; if (buildCounterIosDeviceList < 3) { - checkUnnamed2305(o.iosDevices); + checkUnnamed2416(o.iosDevices); } buildCounterIosDeviceList--; } -buildUnnamed2306() { +buildUnnamed2417() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2306(core.List<core.String> o) { +checkUnnamed2417(core.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() { +buildUnnamed2418() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2307(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')); } -buildUnnamed2308() { +buildUnnamed2419() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2308(core.List<core.String> o) { +checkUnnamed2419(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1182,15 +1237,15 @@ var o = new api.IosModel(); buildCounterIosModel++; if (buildCounterIosModel < 3) { - o.deviceCapabilities = buildUnnamed2306(); + o.deviceCapabilities = buildUnnamed2417(); o.formFactor = "foo"; o.id = "foo"; o.name = "foo"; o.screenDensity = 42; o.screenX = 42; o.screenY = 42; - o.supportedVersionIds = buildUnnamed2307(); - o.tags = buildUnnamed2308(); + o.supportedVersionIds = buildUnnamed2418(); + o.tags = buildUnnamed2419(); } buildCounterIosModel--; return o; @@ -1199,40 +1254,40 @@ checkIosModel(api.IosModel o) { buildCounterIosModel++; if (buildCounterIosModel < 3) { - checkUnnamed2306(o.deviceCapabilities); + checkUnnamed2417(o.deviceCapabilities); unittest.expect(o.formFactor, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.screenDensity, unittest.equals(42)); unittest.expect(o.screenX, unittest.equals(42)); unittest.expect(o.screenY, unittest.equals(42)); - checkUnnamed2307(o.supportedVersionIds); - checkUnnamed2308(o.tags); + checkUnnamed2418(o.supportedVersionIds); + checkUnnamed2419(o.tags); } buildCounterIosModel--; } -buildUnnamed2309() { +buildUnnamed2420() { var o = new core.List<api.Locale>(); o.add(buildLocale()); o.add(buildLocale()); return o; } -checkUnnamed2309(core.List<api.Locale> o) { +checkUnnamed2420(core.List<api.Locale> o) { unittest.expect(o, unittest.hasLength(2)); checkLocale(o[0]); checkLocale(o[1]); } -buildUnnamed2310() { +buildUnnamed2421() { var o = new core.List<api.Orientation>(); o.add(buildOrientation()); o.add(buildOrientation()); return o; } -checkUnnamed2310(core.List<api.Orientation> o) { +checkUnnamed2421(core.List<api.Orientation> o) { unittest.expect(o, unittest.hasLength(2)); checkOrientation(o[0]); checkOrientation(o[1]); @@ -1243,8 +1298,8 @@ var o = new api.IosRuntimeConfiguration(); buildCounterIosRuntimeConfiguration++; if (buildCounterIosRuntimeConfiguration < 3) { - o.locales = buildUnnamed2309(); - o.orientations = buildUnnamed2310(); + o.locales = buildUnnamed2420(); + o.orientations = buildUnnamed2421(); } buildCounterIosRuntimeConfiguration--; return o; @@ -1253,20 +1308,20 @@ checkIosRuntimeConfiguration(api.IosRuntimeConfiguration o) { buildCounterIosRuntimeConfiguration++; if (buildCounterIosRuntimeConfiguration < 3) { - checkUnnamed2309(o.locales); - checkUnnamed2310(o.orientations); + checkUnnamed2420(o.locales); + checkUnnamed2421(o.orientations); } buildCounterIosRuntimeConfiguration--; } -buildUnnamed2311() { +buildUnnamed2422() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2311(core.List<core.int> o) { +checkUnnamed2422(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)); @@ -1279,7 +1334,7 @@ if (buildCounterIosTestLoop < 3) { o.appBundleId = "foo"; o.appIpa = buildFileReference(); - o.scenarios = buildUnnamed2311(); + o.scenarios = buildUnnamed2422(); } buildCounterIosTestLoop--; return o; @@ -1290,16 +1345,30 @@ if (buildCounterIosTestLoop < 3) { unittest.expect(o.appBundleId, unittest.equals('foo')); checkFileReference(o.appIpa); - checkUnnamed2311(o.scenarios); + checkUnnamed2422(o.scenarios); } buildCounterIosTestLoop--; } +buildUnnamed2423() { + var o = new core.List<api.FileReference>(); + o.add(buildFileReference()); + o.add(buildFileReference()); + return o; +} + +checkUnnamed2423(core.List<api.FileReference> o) { + unittest.expect(o, unittest.hasLength(2)); + checkFileReference(o[0]); + checkFileReference(o[1]); +} + core.int buildCounterIosTestSetup = 0; buildIosTestSetup() { var o = new api.IosTestSetup(); buildCounterIosTestSetup++; if (buildCounterIosTestSetup < 3) { + o.additionalIpas = buildUnnamed2423(); o.networkProfile = "foo"; } buildCounterIosTestSetup--; @@ -1309,32 +1378,33 @@ checkIosTestSetup(api.IosTestSetup o) { buildCounterIosTestSetup++; if (buildCounterIosTestSetup < 3) { + checkUnnamed2423(o.additionalIpas); unittest.expect(o.networkProfile, unittest.equals('foo')); } buildCounterIosTestSetup--; } -buildUnnamed2312() { +buildUnnamed2424() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2312(core.List<core.String> o) { +checkUnnamed2424(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2313() { +buildUnnamed2425() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2313(core.List<core.String> o) { +checkUnnamed2425(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1348,8 +1418,8 @@ o.id = "foo"; o.majorVersion = 42; o.minorVersion = 42; - o.supportedXcodeVersionIds = buildUnnamed2312(); - o.tags = buildUnnamed2313(); + o.supportedXcodeVersionIds = buildUnnamed2424(); + o.tags = buildUnnamed2425(); } buildCounterIosVersion--; return o; @@ -1361,8 +1431,8 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.majorVersion, unittest.equals(42)); unittest.expect(o.minorVersion, unittest.equals(42)); - checkUnnamed2312(o.supportedXcodeVersionIds); - checkUnnamed2313(o.tags); + checkUnnamed2424(o.supportedXcodeVersionIds); + checkUnnamed2425(o.tags); } buildCounterIosVersion--; } @@ -1409,14 +1479,14 @@ buildCounterLauncherActivityIntent--; } -buildUnnamed2314() { +buildUnnamed2426() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2314(core.List<core.String> o) { +checkUnnamed2426(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1430,7 +1500,7 @@ o.id = "foo"; o.name = "foo"; o.region = "foo"; - o.tags = buildUnnamed2314(); + o.tags = buildUnnamed2426(); } buildCounterLocale--; return o; @@ -1442,19 +1512,19 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.region, unittest.equals('foo')); - checkUnnamed2314(o.tags); + checkUnnamed2426(o.tags); } buildCounterLocale--; } -buildUnnamed2315() { +buildUnnamed2427() { var o = new core.List<api.TestTargetsForShard>(); o.add(buildTestTargetsForShard()); o.add(buildTestTargetsForShard()); return o; } -checkUnnamed2315(core.List<api.TestTargetsForShard> o) { +checkUnnamed2427(core.List<api.TestTargetsForShard> o) { unittest.expect(o, unittest.hasLength(2)); checkTestTargetsForShard(o[0]); checkTestTargetsForShard(o[1]); @@ -1465,7 +1535,7 @@ var o = new api.ManualSharding(); buildCounterManualSharding++; if (buildCounterManualSharding < 3) { - o.testTargetsForShard = buildUnnamed2315(); + o.testTargetsForShard = buildUnnamed2427(); } buildCounterManualSharding--; return o; @@ -1474,7 +1544,7 @@ checkManualSharding(api.ManualSharding o) { buildCounterManualSharding++; if (buildCounterManualSharding < 3) { - checkUnnamed2315(o.testTargetsForShard); + checkUnnamed2427(o.testTargetsForShard); } buildCounterManualSharding--; } @@ -1502,14 +1572,14 @@ buildCounterNetworkConfiguration--; } -buildUnnamed2316() { +buildUnnamed2428() { var o = new core.List<api.NetworkConfiguration>(); o.add(buildNetworkConfiguration()); o.add(buildNetworkConfiguration()); return o; } -checkUnnamed2316(core.List<api.NetworkConfiguration> o) { +checkUnnamed2428(core.List<api.NetworkConfiguration> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkConfiguration(o[0]); checkNetworkConfiguration(o[1]); @@ -1520,7 +1590,7 @@ var o = new api.NetworkConfigurationCatalog(); buildCounterNetworkConfigurationCatalog++; if (buildCounterNetworkConfigurationCatalog < 3) { - o.configurations = buildUnnamed2316(); + o.configurations = buildUnnamed2428(); } buildCounterNetworkConfigurationCatalog--; return o; @@ -1529,7 +1599,7 @@ checkNetworkConfigurationCatalog(api.NetworkConfigurationCatalog o) { buildCounterNetworkConfigurationCatalog++; if (buildCounterNetworkConfigurationCatalog < 3) { - checkUnnamed2316(o.configurations); + checkUnnamed2428(o.configurations); } buildCounterNetworkConfigurationCatalog--; } @@ -1555,14 +1625,14 @@ buildCounterObbFile--; } -buildUnnamed2317() { +buildUnnamed2429() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2317(core.List<core.String> o) { +checkUnnamed2429(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1575,7 +1645,7 @@ if (buildCounterOrientation < 3) { o.id = "foo"; o.name = "foo"; - o.tags = buildUnnamed2317(); + o.tags = buildUnnamed2429(); } buildCounterOrientation--; return o; @@ -1586,7 +1656,7 @@ if (buildCounterOrientation < 3) { unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2317(o.tags); + checkUnnamed2429(o.tags); } buildCounterOrientation--; } @@ -1746,14 +1816,14 @@ buildCounterShardingOption--; } -buildUnnamed2318() { +buildUnnamed2430() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2318(core.List<core.String> o) { +checkUnnamed2430(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1765,7 +1835,7 @@ buildCounterStartActivityIntent++; if (buildCounterStartActivityIntent < 3) { o.action = "foo"; - o.categories = buildUnnamed2318(); + o.categories = buildUnnamed2430(); o.uri = "foo"; } buildCounterStartActivityIntent--; @@ -1776,7 +1846,7 @@ buildCounterStartActivityIntent++; if (buildCounterStartActivityIntent < 3) { unittest.expect(o.action, unittest.equals('foo')); - checkUnnamed2318(o.categories); + checkUnnamed2430(o.categories); unittest.expect(o.uri, unittest.equals('foo')); } buildCounterStartActivityIntent--; @@ -1801,14 +1871,14 @@ buildCounterSystraceSetup--; } -buildUnnamed2319() { +buildUnnamed2431() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2319(core.List<core.String> o) { +checkUnnamed2431(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1820,7 +1890,7 @@ buildCounterTestDetails++; if (buildCounterTestDetails < 3) { o.errorMessage = "foo"; - o.progressMessages = buildUnnamed2319(); + o.progressMessages = buildUnnamed2431(); } buildCounterTestDetails--; return o; @@ -1830,7 +1900,7 @@ buildCounterTestDetails++; if (buildCounterTestDetails < 3) { unittest.expect(o.errorMessage, unittest.equals('foo')); - checkUnnamed2319(o.progressMessages); + checkUnnamed2431(o.progressMessages); } buildCounterTestDetails--; } @@ -1841,6 +1911,7 @@ buildCounterTestEnvironmentCatalog++; if (buildCounterTestEnvironmentCatalog < 3) { o.androidDeviceCatalog = buildAndroidDeviceCatalog(); + o.deviceIpBlockCatalog = buildDeviceIpBlockCatalog(); o.iosDeviceCatalog = buildIosDeviceCatalog(); o.networkConfigurationCatalog = buildNetworkConfigurationCatalog(); o.softwareCatalog = buildProvidedSoftwareCatalog(); @@ -1853,6 +1924,7 @@ buildCounterTestEnvironmentCatalog++; if (buildCounterTestEnvironmentCatalog < 3) { checkAndroidDeviceCatalog(o.androidDeviceCatalog); + checkDeviceIpBlockCatalog(o.deviceIpBlockCatalog); checkIosDeviceCatalog(o.iosDeviceCatalog); checkNetworkConfigurationCatalog(o.networkConfigurationCatalog); checkProvidedSoftwareCatalog(o.softwareCatalog); @@ -1897,14 +1969,14 @@ buildCounterTestExecution--; } -buildUnnamed2320() { +buildUnnamed2432() { var o = new core.List<api.TestExecution>(); o.add(buildTestExecution()); o.add(buildTestExecution()); return o; } -checkUnnamed2320(core.List<api.TestExecution> o) { +checkUnnamed2432(core.List<api.TestExecution> o) { unittest.expect(o, unittest.hasLength(2)); checkTestExecution(o[0]); checkTestExecution(o[1]); @@ -1923,7 +1995,7 @@ o.projectId = "foo"; o.resultStorage = buildResultStorage(); o.state = "foo"; - o.testExecutions = buildUnnamed2320(); + o.testExecutions = buildUnnamed2432(); o.testMatrixId = "foo"; o.testSpecification = buildTestSpecification(); o.timestamp = "foo"; @@ -1943,7 +2015,7 @@ unittest.expect(o.projectId, unittest.equals('foo')); checkResultStorage(o.resultStorage); unittest.expect(o.state, unittest.equals('foo')); - checkUnnamed2320(o.testExecutions); + checkUnnamed2432(o.testExecutions); unittest.expect(o.testMatrixId, unittest.equals('foo')); checkTestSpecification(o.testSpecification); unittest.expect(o.timestamp, unittest.equals('foo')); @@ -1951,53 +2023,53 @@ buildCounterTestMatrix--; } -buildUnnamed2321() { +buildUnnamed2433() { var o = new core.List<api.Apk>(); o.add(buildApk()); o.add(buildApk()); return o; } -checkUnnamed2321(core.List<api.Apk> o) { +checkUnnamed2433(core.List<api.Apk> o) { unittest.expect(o, unittest.hasLength(2)); checkApk(o[0]); checkApk(o[1]); } -buildUnnamed2322() { +buildUnnamed2434() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2322(core.List<core.String> o) { +checkUnnamed2434(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed2323() { +buildUnnamed2435() { var o = new core.List<api.EnvironmentVariable>(); o.add(buildEnvironmentVariable()); o.add(buildEnvironmentVariable()); return o; } -checkUnnamed2323(core.List<api.EnvironmentVariable> o) { +checkUnnamed2435(core.List<api.EnvironmentVariable> o) { unittest.expect(o, unittest.hasLength(2)); checkEnvironmentVariable(o[0]); checkEnvironmentVariable(o[1]); } -buildUnnamed2324() { +buildUnnamed2436() { var o = new core.List<api.DeviceFile>(); o.add(buildDeviceFile()); o.add(buildDeviceFile()); return o; } -checkUnnamed2324(core.List<api.DeviceFile> o) { +checkUnnamed2436(core.List<api.DeviceFile> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceFile(o[0]); checkDeviceFile(o[1]); @@ -2009,10 +2081,11 @@ buildCounterTestSetup++; if (buildCounterTestSetup < 3) { o.account = buildAccount(); - o.additionalApks = buildUnnamed2321(); - o.directoriesToPull = buildUnnamed2322(); - o.environmentVariables = buildUnnamed2323(); - o.filesToPush = buildUnnamed2324(); + o.additionalApks = buildUnnamed2433(); + o.directoriesToPull = buildUnnamed2434(); + o.dontAutograntPermissions = true; + o.environmentVariables = buildUnnamed2435(); + o.filesToPush = buildUnnamed2436(); o.networkProfile = "foo"; o.systrace = buildSystraceSetup(); } @@ -2024,10 +2097,11 @@ buildCounterTestSetup++; if (buildCounterTestSetup < 3) { checkAccount(o.account); - checkUnnamed2321(o.additionalApks); - checkUnnamed2322(o.directoriesToPull); - checkUnnamed2323(o.environmentVariables); - checkUnnamed2324(o.filesToPush); + checkUnnamed2433(o.additionalApks); + checkUnnamed2434(o.directoriesToPull); + unittest.expect(o.dontAutograntPermissions, unittest.isTrue); + checkUnnamed2435(o.environmentVariables); + checkUnnamed2436(o.filesToPush); unittest.expect(o.networkProfile, unittest.equals('foo')); checkSystraceSetup(o.systrace); } @@ -2071,14 +2145,14 @@ buildCounterTestSpecification--; } -buildUnnamed2325() { +buildUnnamed2437() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2325(core.List<core.String> o) { +checkUnnamed2437(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2089,7 +2163,7 @@ var o = new api.TestTargetsForShard(); buildCounterTestTargetsForShard++; if (buildCounterTestTargetsForShard < 3) { - o.testTargets = buildUnnamed2325(); + o.testTargets = buildUnnamed2437(); } buildCounterTestTargetsForShard--; return o; @@ -2098,7 +2172,7 @@ checkTestTargetsForShard(api.TestTargetsForShard o) { buildCounterTestTargetsForShard++; if (buildCounterTestTargetsForShard < 3) { - checkUnnamed2325(o.testTargets); + checkUnnamed2437(o.testTargets); } buildCounterTestTargetsForShard--; } @@ -2218,14 +2292,14 @@ buildCounterUniformSharding--; } -buildUnnamed2326() { +buildUnnamed2438() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2326(core.List<core.String> o) { +checkUnnamed2438(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -2236,7 +2310,7 @@ var o = new api.XcodeVersion(); buildCounterXcodeVersion++; if (buildCounterXcodeVersion < 3) { - o.tags = buildUnnamed2326(); + o.tags = buildUnnamed2438(); o.version = "foo"; } buildCounterXcodeVersion--; @@ -2246,7 +2320,7 @@ checkXcodeVersion(api.XcodeVersion o) { buildCounterXcodeVersion++; if (buildCounterXcodeVersion < 3) { - checkUnnamed2326(o.tags); + checkUnnamed2438(o.tags); unittest.expect(o.version, unittest.equals('foo')); } buildCounterXcodeVersion--; @@ -2413,6 +2487,22 @@ }); }); + unittest.group("obj-schema-DeviceIpBlock", () { + unittest.test("to-json--from-json", () { + var o = buildDeviceIpBlock(); + var od = new api.DeviceIpBlock.fromJson(o.toJson()); + checkDeviceIpBlock(od); + }); + }); + + unittest.group("obj-schema-DeviceIpBlockCatalog", () { + unittest.test("to-json--from-json", () { + var o = buildDeviceIpBlockCatalog(); + var od = new api.DeviceIpBlockCatalog.fromJson(o.toJson()); + checkDeviceIpBlockCatalog(od); + }); + }); + unittest.group("obj-schema-Distribution", () { unittest.test("to-json--from-json", () { var o = buildDistribution();
diff --git a/generated/googleapis/test/texttospeech/v1_test.dart b/generated/googleapis/test/texttospeech/v1_test.dart index ca2dde5..4b0f3e3 100644 --- a/generated/googleapis/test/texttospeech/v1_test.dart +++ b/generated/googleapis/test/texttospeech/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3959() { +buildUnnamed4158() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3959(core.List<core.String> o) { +checkUnnamed4158(core.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 @@ buildCounterAudioConfig++; if (buildCounterAudioConfig < 3) { o.audioEncoding = "foo"; - o.effectsProfileId = buildUnnamed3959(); + o.effectsProfileId = buildUnnamed4158(); o.pitch = 42.0; o.sampleRateHertz = 42; o.speakingRate = 42.0; @@ -83,7 +83,7 @@ buildCounterAudioConfig++; if (buildCounterAudioConfig < 3) { unittest.expect(o.audioEncoding, unittest.equals('foo')); - checkUnnamed3959(o.effectsProfileId); + checkUnnamed4158(o.effectsProfileId); unittest.expect(o.pitch, unittest.equals(42.0)); unittest.expect(o.sampleRateHertz, unittest.equals(42)); unittest.expect(o.speakingRate, unittest.equals(42.0)); @@ -92,14 +92,14 @@ buildCounterAudioConfig--; } -buildUnnamed3960() { +buildUnnamed4159() { var o = new core.List<api.Voice>(); o.add(buildVoice()); o.add(buildVoice()); return o; } -checkUnnamed3960(core.List<api.Voice> o) { +checkUnnamed4159(core.List<api.Voice> o) { unittest.expect(o, unittest.hasLength(2)); checkVoice(o[0]); checkVoice(o[1]); @@ -110,7 +110,7 @@ var o = new api.ListVoicesResponse(); buildCounterListVoicesResponse++; if (buildCounterListVoicesResponse < 3) { - o.voices = buildUnnamed3960(); + o.voices = buildUnnamed4159(); } buildCounterListVoicesResponse--; return o; @@ -119,7 +119,7 @@ checkListVoicesResponse(api.ListVoicesResponse o) { buildCounterListVoicesResponse++; if (buildCounterListVoicesResponse < 3) { - checkUnnamed3960(o.voices); + checkUnnamed4159(o.voices); } buildCounterListVoicesResponse--; } @@ -187,14 +187,14 @@ buildCounterSynthesizeSpeechResponse--; } -buildUnnamed3961() { +buildUnnamed4160() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3961(core.List<core.String> o) { +checkUnnamed4160(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -205,7 +205,7 @@ var o = new api.Voice(); buildCounterVoice++; if (buildCounterVoice < 3) { - o.languageCodes = buildUnnamed3961(); + o.languageCodes = buildUnnamed4160(); o.name = "foo"; o.naturalSampleRateHertz = 42; o.ssmlGender = "foo"; @@ -217,7 +217,7 @@ checkVoice(api.Voice o) { buildCounterVoice++; if (buildCounterVoice < 3) { - checkUnnamed3961(o.languageCodes); + checkUnnamed4160(o.languageCodes); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.naturalSampleRateHertz, unittest.equals(42)); unittest.expect(o.ssmlGender, unittest.equals('foo'));
diff --git a/generated/googleapis/test/tpu/v1_test.dart b/generated/googleapis/test/tpu/v1_test.dart index 226e93b..3c47fd9 100644 --- a/generated/googleapis/test/tpu/v1_test.dart +++ b/generated/googleapis/test/tpu/v1_test.dart
@@ -86,27 +86,27 @@ buildCounterEmpty--; } -buildUnnamed4252() { +buildUnnamed4490() { var o = new core.List<api.AcceleratorType>(); o.add(buildAcceleratorType()); o.add(buildAcceleratorType()); return o; } -checkUnnamed4252(core.List<api.AcceleratorType> o) { +checkUnnamed4490(core.List<api.AcceleratorType> o) { unittest.expect(o, unittest.hasLength(2)); checkAcceleratorType(o[0]); checkAcceleratorType(o[1]); } -buildUnnamed4253() { +buildUnnamed4491() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4253(core.List<core.String> o) { +checkUnnamed4491(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -117,9 +117,9 @@ var o = new api.ListAcceleratorTypesResponse(); buildCounterListAcceleratorTypesResponse++; if (buildCounterListAcceleratorTypesResponse < 3) { - o.acceleratorTypes = buildUnnamed4252(); + o.acceleratorTypes = buildUnnamed4490(); o.nextPageToken = "foo"; - o.unreachable = buildUnnamed4253(); + o.unreachable = buildUnnamed4491(); } buildCounterListAcceleratorTypesResponse--; return o; @@ -128,21 +128,21 @@ checkListAcceleratorTypesResponse(api.ListAcceleratorTypesResponse o) { buildCounterListAcceleratorTypesResponse++; if (buildCounterListAcceleratorTypesResponse < 3) { - checkUnnamed4252(o.acceleratorTypes); + checkUnnamed4490(o.acceleratorTypes); unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4253(o.unreachable); + checkUnnamed4491(o.unreachable); } buildCounterListAcceleratorTypesResponse--; } -buildUnnamed4254() { +buildUnnamed4492() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed4254(core.List<api.Location> o) { +checkUnnamed4492(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -153,7 +153,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed4254(); + o.locations = buildUnnamed4492(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -163,33 +163,33 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed4254(o.locations); + checkUnnamed4492(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed4255() { +buildUnnamed4493() { var o = new core.List<api.Node>(); o.add(buildNode()); o.add(buildNode()); return o; } -checkUnnamed4255(core.List<api.Node> o) { +checkUnnamed4493(core.List<api.Node> o) { unittest.expect(o, unittest.hasLength(2)); checkNode(o[0]); checkNode(o[1]); } -buildUnnamed4256() { +buildUnnamed4494() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4256(core.List<core.String> o) { +checkUnnamed4494(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -201,8 +201,8 @@ buildCounterListNodesResponse++; if (buildCounterListNodesResponse < 3) { o.nextPageToken = "foo"; - o.nodes = buildUnnamed4255(); - o.unreachable = buildUnnamed4256(); + o.nodes = buildUnnamed4493(); + o.unreachable = buildUnnamed4494(); } buildCounterListNodesResponse--; return o; @@ -212,20 +212,20 @@ buildCounterListNodesResponse++; if (buildCounterListNodesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4255(o.nodes); - checkUnnamed4256(o.unreachable); + checkUnnamed4493(o.nodes); + checkUnnamed4494(o.unreachable); } buildCounterListNodesResponse--; } -buildUnnamed4257() { +buildUnnamed4495() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4257(core.List<api.Operation> o) { +checkUnnamed4495(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -237,7 +237,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4257(); + o.operations = buildUnnamed4495(); } buildCounterListOperationsResponse--; return o; @@ -247,32 +247,32 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4257(o.operations); + checkUnnamed4495(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4258() { +buildUnnamed4496() { var o = new core.List<api.TensorFlowVersion>(); o.add(buildTensorFlowVersion()); o.add(buildTensorFlowVersion()); return o; } -checkUnnamed4258(core.List<api.TensorFlowVersion> o) { +checkUnnamed4496(core.List<api.TensorFlowVersion> o) { unittest.expect(o, unittest.hasLength(2)); checkTensorFlowVersion(o[0]); checkTensorFlowVersion(o[1]); } -buildUnnamed4259() { +buildUnnamed4497() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4259(core.List<core.String> o) { +checkUnnamed4497(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -284,8 +284,8 @@ buildCounterListTensorFlowVersionsResponse++; if (buildCounterListTensorFlowVersionsResponse < 3) { o.nextPageToken = "foo"; - o.tensorflowVersions = buildUnnamed4258(); - o.unreachable = buildUnnamed4259(); + o.tensorflowVersions = buildUnnamed4496(); + o.unreachable = buildUnnamed4497(); } buildCounterListTensorFlowVersionsResponse--; return o; @@ -295,26 +295,26 @@ buildCounterListTensorFlowVersionsResponse++; if (buildCounterListTensorFlowVersionsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4258(o.tensorflowVersions); - checkUnnamed4259(o.unreachable); + checkUnnamed4496(o.tensorflowVersions); + checkUnnamed4497(o.unreachable); } buildCounterListTensorFlowVersionsResponse--; } -buildUnnamed4260() { +buildUnnamed4498() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4260(core.Map<core.String, core.String> o) { +checkUnnamed4498(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')); } -buildUnnamed4261() { +buildUnnamed4499() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -329,7 +329,7 @@ return o; } -checkUnnamed4261(core.Map<core.String, core.Object> o) { +checkUnnamed4499(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)); @@ -349,9 +349,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed4260(); + o.labels = buildUnnamed4498(); o.locationId = "foo"; - o.metadata = buildUnnamed4261(); + o.metadata = buildUnnamed4499(); o.name = "foo"; } buildCounterLocation--; @@ -362,9 +362,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4260(o.labels); + checkUnnamed4498(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed4261(o.metadata); + checkUnnamed4499(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; @@ -391,32 +391,45 @@ buildCounterNetworkEndpoint--; } -buildUnnamed4262() { +buildUnnamed4500() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4262(core.Map<core.String, core.String> o) { +checkUnnamed4500(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')); } -buildUnnamed4263() { +buildUnnamed4501() { var o = new core.List<api.NetworkEndpoint>(); o.add(buildNetworkEndpoint()); o.add(buildNetworkEndpoint()); return o; } -checkUnnamed4263(core.List<api.NetworkEndpoint> o) { +checkUnnamed4501(core.List<api.NetworkEndpoint> o) { unittest.expect(o, unittest.hasLength(2)); checkNetworkEndpoint(o[0]); checkNetworkEndpoint(o[1]); } +buildUnnamed4502() { + var o = new core.List<api.Symptom>(); + o.add(buildSymptom()); + o.add(buildSymptom()); + return o; +} + +checkUnnamed4502(core.List<api.Symptom> o) { + unittest.expect(o, unittest.hasLength(2)); + checkSymptom(o[0]); + checkSymptom(o[1]); +} + core.int buildCounterNode = 0; buildNode() { var o = new api.Node(); @@ -429,15 +442,17 @@ o.health = "foo"; o.healthDescription = "foo"; o.ipAddress = "foo"; - o.labels = buildUnnamed4262(); + o.labels = buildUnnamed4500(); o.name = "foo"; o.network = "foo"; - o.networkEndpoints = buildUnnamed4263(); + o.networkEndpoints = buildUnnamed4501(); o.port = "foo"; o.schedulingConfig = buildSchedulingConfig(); o.serviceAccount = "foo"; o.state = "foo"; + o.symptoms = buildUnnamed4502(); o.tensorflowVersion = "foo"; + o.useServiceNetworking = true; } buildCounterNode--; return o; @@ -453,20 +468,22 @@ unittest.expect(o.health, unittest.equals('foo')); unittest.expect(o.healthDescription, unittest.equals('foo')); unittest.expect(o.ipAddress, unittest.equals('foo')); - checkUnnamed4262(o.labels); + checkUnnamed4500(o.labels); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.network, unittest.equals('foo')); - checkUnnamed4263(o.networkEndpoints); + checkUnnamed4501(o.networkEndpoints); unittest.expect(o.port, unittest.equals('foo')); checkSchedulingConfig(o.schedulingConfig); unittest.expect(o.serviceAccount, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); + checkUnnamed4502(o.symptoms); unittest.expect(o.tensorflowVersion, unittest.equals('foo')); + unittest.expect(o.useServiceNetworking, unittest.isTrue); } buildCounterNode--; } -buildUnnamed4264() { +buildUnnamed4503() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -481,7 +498,7 @@ return o; } -checkUnnamed4264(core.Map<core.String, core.Object> o) { +checkUnnamed4503(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)); @@ -495,7 +512,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed4265() { +buildUnnamed4504() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -510,7 +527,7 @@ return o; } -checkUnnamed4265(core.Map<core.String, core.Object> o) { +checkUnnamed4504(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)); @@ -531,9 +548,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4264(); + o.metadata = buildUnnamed4503(); o.name = "foo"; - o.response = buildUnnamed4265(); + o.response = buildUnnamed4504(); } buildCounterOperation--; return o; @@ -544,9 +561,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4264(o.metadata); + checkUnnamed4503(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4265(o.response); + checkUnnamed4504(o.response); } buildCounterOperation--; } @@ -637,7 +654,7 @@ buildCounterStartNodeRequest--; } -buildUnnamed4266() { +buildUnnamed4505() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -652,7 +669,7 @@ return o; } -checkUnnamed4266(core.Map<core.String, core.Object> o) { +checkUnnamed4505(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)); @@ -666,17 +683,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed4267() { +buildUnnamed4506() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4266()); - o.add(buildUnnamed4266()); + o.add(buildUnnamed4505()); + o.add(buildUnnamed4505()); return o; } -checkUnnamed4267(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4506(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4266(o[0]); - checkUnnamed4266(o[1]); + checkUnnamed4505(o[0]); + checkUnnamed4505(o[1]); } core.int buildCounterStatus = 0; @@ -685,7 +702,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4267(); + o.details = buildUnnamed4506(); o.message = "foo"; } buildCounterStatus--; @@ -696,7 +713,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4267(o.details); + checkUnnamed4506(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -717,6 +734,31 @@ buildCounterStopNodeRequest--; } +core.int buildCounterSymptom = 0; +buildSymptom() { + var o = new api.Symptom(); + buildCounterSymptom++; + if (buildCounterSymptom < 3) { + o.createTime = "foo"; + o.details = "foo"; + o.symptomType = "foo"; + o.workerId = "foo"; + } + buildCounterSymptom--; + return o; +} + +checkSymptom(api.Symptom o) { + buildCounterSymptom++; + if (buildCounterSymptom < 3) { + unittest.expect(o.createTime, unittest.equals('foo')); + unittest.expect(o.details, unittest.equals('foo')); + unittest.expect(o.symptomType, unittest.equals('foo')); + unittest.expect(o.workerId, unittest.equals('foo')); + } + buildCounterSymptom--; +} + core.int buildCounterTensorFlowVersion = 0; buildTensorFlowVersion() { var o = new api.TensorFlowVersion(); @@ -875,6 +917,14 @@ }); }); + unittest.group("obj-schema-Symptom", () { + unittest.test("to-json--from-json", () { + var o = buildSymptom(); + var od = new api.Symptom.fromJson(o.toJson()); + checkSymptom(od); + }); + }); + unittest.group("obj-schema-TensorFlowVersion", () { unittest.test("to-json--from-json", () { var o = buildTensorFlowVersion(); @@ -941,9 +991,9 @@ api.ProjectsLocationsResourceApi res = new api.TpuApi(mock).projects.locations; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -976,11 +1026,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -991,9 +1041,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1059,9 +1109,9 @@ api.ProjectsLocationsAcceleratorTypesResourceApi res = new api.TpuApi(mock).projects.locations.acceleratorTypes; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; var arg_pageSize = 42; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -1095,12 +1145,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect( - queryMap["orderBy"].first, unittest.equals(arg_orderBy)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -1112,9 +1162,9 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, pageSize: arg_pageSize, + orderBy: arg_orderBy, + pageToken: arg_pageToken, filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -1680,8 +1730,8 @@ new api.TpuApi(mock).projects.locations.operations; var arg_name = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_pageToken = "foo"; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1716,9 +1766,9 @@ } unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1730,8 +1780,8 @@ res .list(arg_name, pageSize: arg_pageSize, - filter: arg_filter, pageToken: arg_pageToken, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -1797,10 +1847,10 @@ api.ProjectsLocationsTensorflowVersionsResourceApi res = new api.TpuApi(mock).projects.locations.tensorflowVersions; var arg_parent = "foo"; - var arg_pageToken = "foo"; - var arg_orderBy = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_orderBy = "foo"; + var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1833,13 +1883,13 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["orderBy"].first, unittest.equals(arg_orderBy)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1850,10 +1900,10 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, - orderBy: arg_orderBy, - pageSize: arg_pageSize, filter: arg_filter, + orderBy: arg_orderBy, + pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListTensorFlowVersionsResponse(response);
diff --git a/generated/googleapis/test/translate/v3_test.dart b/generated/googleapis/test/translate/v3_test.dart index 1930cda..bd0fc1e 100644 --- a/generated/googleapis/test/translate/v3_test.dart +++ b/generated/googleapis/test/translate/v3_test.dart
@@ -50,66 +50,66 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4603() { +buildUnnamed4944() { var o = new core.Map<core.String, api.TranslateTextGlossaryConfig>(); o["x"] = buildTranslateTextGlossaryConfig(); o["y"] = buildTranslateTextGlossaryConfig(); return o; } -checkUnnamed4603(core.Map<core.String, api.TranslateTextGlossaryConfig> o) { +checkUnnamed4944(core.Map<core.String, api.TranslateTextGlossaryConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslateTextGlossaryConfig(o["x"]); checkTranslateTextGlossaryConfig(o["y"]); } -buildUnnamed4604() { +buildUnnamed4945() { var o = new core.List<api.InputConfig>(); o.add(buildInputConfig()); o.add(buildInputConfig()); return o; } -checkUnnamed4604(core.List<api.InputConfig> o) { +checkUnnamed4945(core.List<api.InputConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkInputConfig(o[0]); checkInputConfig(o[1]); } -buildUnnamed4605() { +buildUnnamed4946() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4605(core.Map<core.String, core.String> o) { +checkUnnamed4946(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')); } -buildUnnamed4606() { +buildUnnamed4947() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4606(core.Map<core.String, core.String> o) { +checkUnnamed4947(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')); } -buildUnnamed4607() { +buildUnnamed4948() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4607(core.List<core.String> o) { +checkUnnamed4948(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -120,13 +120,13 @@ var o = new api.BatchTranslateTextRequest(); buildCounterBatchTranslateTextRequest++; if (buildCounterBatchTranslateTextRequest < 3) { - o.glossaries = buildUnnamed4603(); - o.inputConfigs = buildUnnamed4604(); - o.labels = buildUnnamed4605(); - o.models = buildUnnamed4606(); + o.glossaries = buildUnnamed4944(); + o.inputConfigs = buildUnnamed4945(); + o.labels = buildUnnamed4946(); + o.models = buildUnnamed4947(); o.outputConfig = buildOutputConfig(); o.sourceLanguageCode = "foo"; - o.targetLanguageCodes = buildUnnamed4607(); + o.targetLanguageCodes = buildUnnamed4948(); } buildCounterBatchTranslateTextRequest--; return o; @@ -135,13 +135,13 @@ checkBatchTranslateTextRequest(api.BatchTranslateTextRequest o) { buildCounterBatchTranslateTextRequest++; if (buildCounterBatchTranslateTextRequest < 3) { - checkUnnamed4603(o.glossaries); - checkUnnamed4604(o.inputConfigs); - checkUnnamed4605(o.labels); - checkUnnamed4606(o.models); + checkUnnamed4944(o.glossaries); + checkUnnamed4945(o.inputConfigs); + checkUnnamed4946(o.labels); + checkUnnamed4947(o.models); checkOutputConfig(o.outputConfig); unittest.expect(o.sourceLanguageCode, unittest.equals('foo')); - checkUnnamed4607(o.targetLanguageCodes); + checkUnnamed4948(o.targetLanguageCodes); } buildCounterBatchTranslateTextRequest--; } @@ -161,14 +161,14 @@ buildCounterCancelOperationRequest--; } -buildUnnamed4608() { +buildUnnamed4949() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4608(core.Map<core.String, core.String> o) { +checkUnnamed4949(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')); @@ -180,7 +180,7 @@ buildCounterDetectLanguageRequest++; if (buildCounterDetectLanguageRequest < 3) { o.content = "foo"; - o.labels = buildUnnamed4608(); + o.labels = buildUnnamed4949(); o.mimeType = "foo"; o.model = "foo"; } @@ -192,21 +192,21 @@ buildCounterDetectLanguageRequest++; if (buildCounterDetectLanguageRequest < 3) { unittest.expect(o.content, unittest.equals('foo')); - checkUnnamed4608(o.labels); + checkUnnamed4949(o.labels); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); } buildCounterDetectLanguageRequest--; } -buildUnnamed4609() { +buildUnnamed4950() { var o = new core.List<api.DetectedLanguage>(); o.add(buildDetectedLanguage()); o.add(buildDetectedLanguage()); return o; } -checkUnnamed4609(core.List<api.DetectedLanguage> o) { +checkUnnamed4950(core.List<api.DetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectedLanguage(o[0]); checkDetectedLanguage(o[1]); @@ -217,7 +217,7 @@ var o = new api.DetectLanguageResponse(); buildCounterDetectLanguageResponse++; if (buildCounterDetectLanguageResponse < 3) { - o.languages = buildUnnamed4609(); + o.languages = buildUnnamed4950(); } buildCounterDetectLanguageResponse--; return o; @@ -226,7 +226,7 @@ checkDetectLanguageResponse(api.DetectLanguageResponse o) { buildCounterDetectLanguageResponse++; if (buildCounterDetectLanguageResponse < 3) { - checkUnnamed4609(o.languages); + checkUnnamed4950(o.languages); } buildCounterDetectLanguageResponse--; } @@ -397,14 +397,14 @@ buildCounterLanguageCodePair--; } -buildUnnamed4610() { +buildUnnamed4951() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4610(core.List<core.String> o) { +checkUnnamed4951(core.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,7 +415,7 @@ var o = new api.LanguageCodesSet(); buildCounterLanguageCodesSet++; if (buildCounterLanguageCodesSet < 3) { - o.languageCodes = buildUnnamed4610(); + o.languageCodes = buildUnnamed4951(); } buildCounterLanguageCodesSet--; return o; @@ -424,19 +424,19 @@ checkLanguageCodesSet(api.LanguageCodesSet o) { buildCounterLanguageCodesSet++; if (buildCounterLanguageCodesSet < 3) { - checkUnnamed4610(o.languageCodes); + checkUnnamed4951(o.languageCodes); } buildCounterLanguageCodesSet--; } -buildUnnamed4611() { +buildUnnamed4952() { var o = new core.List<api.Glossary>(); o.add(buildGlossary()); o.add(buildGlossary()); return o; } -checkUnnamed4611(core.List<api.Glossary> o) { +checkUnnamed4952(core.List<api.Glossary> o) { unittest.expect(o, unittest.hasLength(2)); checkGlossary(o[0]); checkGlossary(o[1]); @@ -447,7 +447,7 @@ var o = new api.ListGlossariesResponse(); buildCounterListGlossariesResponse++; if (buildCounterListGlossariesResponse < 3) { - o.glossaries = buildUnnamed4611(); + o.glossaries = buildUnnamed4952(); o.nextPageToken = "foo"; } buildCounterListGlossariesResponse--; @@ -457,20 +457,20 @@ checkListGlossariesResponse(api.ListGlossariesResponse o) { buildCounterListGlossariesResponse++; if (buildCounterListGlossariesResponse < 3) { - checkUnnamed4611(o.glossaries); + checkUnnamed4952(o.glossaries); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGlossariesResponse--; } -buildUnnamed4612() { +buildUnnamed4953() { var o = new core.List<api.Location>(); o.add(buildLocation()); o.add(buildLocation()); return o; } -checkUnnamed4612(core.List<api.Location> o) { +checkUnnamed4953(core.List<api.Location> o) { unittest.expect(o, unittest.hasLength(2)); checkLocation(o[0]); checkLocation(o[1]); @@ -481,7 +481,7 @@ var o = new api.ListLocationsResponse(); buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - o.locations = buildUnnamed4612(); + o.locations = buildUnnamed4953(); o.nextPageToken = "foo"; } buildCounterListLocationsResponse--; @@ -491,20 +491,20 @@ checkListLocationsResponse(api.ListLocationsResponse o) { buildCounterListLocationsResponse++; if (buildCounterListLocationsResponse < 3) { - checkUnnamed4612(o.locations); + checkUnnamed4953(o.locations); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListLocationsResponse--; } -buildUnnamed4613() { +buildUnnamed4954() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed4613(core.List<api.Operation> o) { +checkUnnamed4954(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -516,7 +516,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4613(); + o.operations = buildUnnamed4954(); } buildCounterListOperationsResponse--; return o; @@ -526,25 +526,25 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4613(o.operations); + checkUnnamed4954(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed4614() { +buildUnnamed4955() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4614(core.Map<core.String, core.String> o) { +checkUnnamed4955(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')); } -buildUnnamed4615() { +buildUnnamed4956() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -559,7 +559,7 @@ return o; } -checkUnnamed4615(core.Map<core.String, core.Object> o) { +checkUnnamed4956(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)); @@ -579,9 +579,9 @@ buildCounterLocation++; if (buildCounterLocation < 3) { o.displayName = "foo"; - o.labels = buildUnnamed4614(); + o.labels = buildUnnamed4955(); o.locationId = "foo"; - o.metadata = buildUnnamed4615(); + o.metadata = buildUnnamed4956(); o.name = "foo"; } buildCounterLocation--; @@ -592,15 +592,15 @@ buildCounterLocation++; if (buildCounterLocation < 3) { unittest.expect(o.displayName, unittest.equals('foo')); - checkUnnamed4614(o.labels); + checkUnnamed4955(o.labels); unittest.expect(o.locationId, unittest.equals('foo')); - checkUnnamed4615(o.metadata); + checkUnnamed4956(o.metadata); unittest.expect(o.name, unittest.equals('foo')); } buildCounterLocation--; } -buildUnnamed4616() { +buildUnnamed4957() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -615,7 +615,7 @@ return o; } -checkUnnamed4616(core.Map<core.String, core.Object> o) { +checkUnnamed4957(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)); @@ -629,7 +629,7 @@ unittest.expect(casted4["string"], unittest.equals('foo')); } -buildUnnamed4617() { +buildUnnamed4958() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -644,7 +644,7 @@ return o; } -checkUnnamed4617(core.Map<core.String, core.Object> o) { +checkUnnamed4958(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)); @@ -665,9 +665,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed4616(); + o.metadata = buildUnnamed4957(); o.name = "foo"; - o.response = buildUnnamed4617(); + o.response = buildUnnamed4958(); } buildCounterOperation--; return o; @@ -678,9 +678,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed4616(o.metadata); + checkUnnamed4957(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4617(o.response); + checkUnnamed4958(o.response); } buildCounterOperation--; } @@ -704,7 +704,7 @@ buildCounterOutputConfig--; } -buildUnnamed4618() { +buildUnnamed4959() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -719,7 +719,7 @@ return o; } -checkUnnamed4618(core.Map<core.String, core.Object> o) { +checkUnnamed4959(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)); @@ -733,17 +733,17 @@ unittest.expect(casted8["string"], unittest.equals('foo')); } -buildUnnamed4619() { +buildUnnamed4960() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4618()); - o.add(buildUnnamed4618()); + o.add(buildUnnamed4959()); + o.add(buildUnnamed4959()); return o; } -checkUnnamed4619(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed4960(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4618(o[0]); - checkUnnamed4618(o[1]); + checkUnnamed4959(o[0]); + checkUnnamed4959(o[1]); } core.int buildCounterStatus = 0; @@ -752,7 +752,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed4619(); + o.details = buildUnnamed4960(); o.message = "foo"; } buildCounterStatus--; @@ -763,7 +763,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4619(o.details); + checkUnnamed4960(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -794,14 +794,14 @@ buildCounterSupportedLanguage--; } -buildUnnamed4620() { +buildUnnamed4961() { var o = new core.List<api.SupportedLanguage>(); o.add(buildSupportedLanguage()); o.add(buildSupportedLanguage()); return o; } -checkUnnamed4620(core.List<api.SupportedLanguage> o) { +checkUnnamed4961(core.List<api.SupportedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkSupportedLanguage(o[0]); checkSupportedLanguage(o[1]); @@ -812,7 +812,7 @@ var o = new api.SupportedLanguages(); buildCounterSupportedLanguages++; if (buildCounterSupportedLanguages < 3) { - o.languages = buildUnnamed4620(); + o.languages = buildUnnamed4961(); } buildCounterSupportedLanguages--; return o; @@ -821,7 +821,7 @@ checkSupportedLanguages(api.SupportedLanguages o) { buildCounterSupportedLanguages++; if (buildCounterSupportedLanguages < 3) { - checkUnnamed4620(o.languages); + checkUnnamed4961(o.languages); } buildCounterSupportedLanguages--; } @@ -847,27 +847,27 @@ buildCounterTranslateTextGlossaryConfig--; } -buildUnnamed4621() { +buildUnnamed4962() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4621(core.List<core.String> o) { +checkUnnamed4962(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4622() { +buildUnnamed4963() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed4622(core.Map<core.String, core.String> o) { +checkUnnamed4963(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')); @@ -878,9 +878,9 @@ var o = new api.TranslateTextRequest(); buildCounterTranslateTextRequest++; if (buildCounterTranslateTextRequest < 3) { - o.contents = buildUnnamed4621(); + o.contents = buildUnnamed4962(); o.glossaryConfig = buildTranslateTextGlossaryConfig(); - o.labels = buildUnnamed4622(); + o.labels = buildUnnamed4963(); o.mimeType = "foo"; o.model = "foo"; o.sourceLanguageCode = "foo"; @@ -893,9 +893,9 @@ checkTranslateTextRequest(api.TranslateTextRequest o) { buildCounterTranslateTextRequest++; if (buildCounterTranslateTextRequest < 3) { - checkUnnamed4621(o.contents); + checkUnnamed4962(o.contents); checkTranslateTextGlossaryConfig(o.glossaryConfig); - checkUnnamed4622(o.labels); + checkUnnamed4963(o.labels); unittest.expect(o.mimeType, unittest.equals('foo')); unittest.expect(o.model, unittest.equals('foo')); unittest.expect(o.sourceLanguageCode, unittest.equals('foo')); @@ -904,27 +904,27 @@ buildCounterTranslateTextRequest--; } -buildUnnamed4623() { +buildUnnamed4964() { var o = new core.List<api.Translation>(); o.add(buildTranslation()); o.add(buildTranslation()); return o; } -checkUnnamed4623(core.List<api.Translation> o) { +checkUnnamed4964(core.List<api.Translation> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslation(o[0]); checkTranslation(o[1]); } -buildUnnamed4624() { +buildUnnamed4965() { var o = new core.List<api.Translation>(); o.add(buildTranslation()); o.add(buildTranslation()); return o; } -checkUnnamed4624(core.List<api.Translation> o) { +checkUnnamed4965(core.List<api.Translation> o) { unittest.expect(o, unittest.hasLength(2)); checkTranslation(o[0]); checkTranslation(o[1]); @@ -935,8 +935,8 @@ var o = new api.TranslateTextResponse(); buildCounterTranslateTextResponse++; if (buildCounterTranslateTextResponse < 3) { - o.glossaryTranslations = buildUnnamed4623(); - o.translations = buildUnnamed4624(); + o.glossaryTranslations = buildUnnamed4964(); + o.translations = buildUnnamed4965(); } buildCounterTranslateTextResponse--; return o; @@ -945,8 +945,8 @@ checkTranslateTextResponse(api.TranslateTextResponse o) { buildCounterTranslateTextResponse++; if (buildCounterTranslateTextResponse < 3) { - checkUnnamed4623(o.glossaryTranslations); - checkUnnamed4624(o.translations); + checkUnnamed4964(o.glossaryTranslations); + checkUnnamed4965(o.translations); } buildCounterTranslateTextResponse--; } @@ -1553,8 +1553,8 @@ api.ProjectsLocationsResourceApi res = new api.TranslateApi(mock).projects.locations; var arg_parent = "foo"; - var arg_displayLanguageCode = "foo"; var arg_model = "foo"; + var arg_displayLanguageCode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1587,9 +1587,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); unittest.expect(queryMap["displayLanguageCode"].first, unittest.equals(arg_displayLanguageCode)); - unittest.expect(queryMap["model"].first, unittest.equals(arg_model)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1600,8 +1600,8 @@ }), true); res .getSupportedLanguages(arg_parent, - displayLanguageCode: arg_displayLanguageCode, model: arg_model, + displayLanguageCode: arg_displayLanguageCode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSupportedLanguages(response); @@ -1613,9 +1613,9 @@ api.ProjectsLocationsResourceApi res = new api.TranslateApi(mock).projects.locations; var arg_name = "foo"; + var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1648,11 +1648,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1663,9 +1663,9 @@ }), true); res .list(arg_name, + filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, - filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListLocationsResponse(response); @@ -1896,8 +1896,8 @@ new api.TranslateApi(mock).projects.locations.glossaries; var arg_parent = "foo"; var arg_filter = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1931,10 +1931,10 @@ } } unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1946,8 +1946,8 @@ res .list(arg_parent, filter: arg_filter, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGlossariesResponse(response); @@ -2121,9 +2121,9 @@ api.ProjectsLocationsOperationsResourceApi res = new api.TranslateApi(mock).projects.locations.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2156,11 +2156,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2171,9 +2171,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response);
diff --git a/generated/googleapis/test/vault/v1_test.dart b/generated/googleapis/test/vault/v1_test.dart index 45a3d4f..1d50d3a 100644 --- a/generated/googleapis/test/vault/v1_test.dart +++ b/generated/googleapis/test/vault/v1_test.dart
@@ -50,14 +50,14 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed3036() { +buildUnnamed3167() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3036(core.List<core.String> o) { +checkUnnamed3167(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -68,7 +68,7 @@ var o = new api.AccountInfo(); buildCounterAccountInfo++; if (buildCounterAccountInfo < 3) { - o.emails = buildUnnamed3036(); + o.emails = buildUnnamed3167(); } buildCounterAccountInfo--; return o; @@ -77,7 +77,7 @@ checkAccountInfo(api.AccountInfo o) { buildCounterAccountInfo++; if (buildCounterAccountInfo < 3) { - checkUnnamed3036(o.emails); + checkUnnamed3167(o.emails); } buildCounterAccountInfo--; } @@ -103,27 +103,27 @@ buildCounterAddHeldAccountResult--; } -buildUnnamed3037() { +buildUnnamed3168() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3037(core.List<core.String> o) { +checkUnnamed3168(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed3038() { +buildUnnamed3169() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3038(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')); @@ -134,8 +134,8 @@ var o = new api.AddHeldAccountsRequest(); buildCounterAddHeldAccountsRequest++; if (buildCounterAddHeldAccountsRequest < 3) { - o.accountIds = buildUnnamed3037(); - o.emails = buildUnnamed3038(); + o.accountIds = buildUnnamed3168(); + o.emails = buildUnnamed3169(); } buildCounterAddHeldAccountsRequest--; return o; @@ -144,20 +144,20 @@ checkAddHeldAccountsRequest(api.AddHeldAccountsRequest o) { buildCounterAddHeldAccountsRequest++; if (buildCounterAddHeldAccountsRequest < 3) { - checkUnnamed3037(o.accountIds); - checkUnnamed3038(o.emails); + checkUnnamed3168(o.accountIds); + checkUnnamed3169(o.emails); } buildCounterAddHeldAccountsRequest--; } -buildUnnamed3039() { +buildUnnamed3170() { var o = new core.List<api.AddHeldAccountResult>(); o.add(buildAddHeldAccountResult()); o.add(buildAddHeldAccountResult()); return o; } -checkUnnamed3039(core.List<api.AddHeldAccountResult> o) { +checkUnnamed3170(core.List<api.AddHeldAccountResult> o) { unittest.expect(o, unittest.hasLength(2)); checkAddHeldAccountResult(o[0]); checkAddHeldAccountResult(o[1]); @@ -168,7 +168,7 @@ var o = new api.AddHeldAccountsResponse(); buildCounterAddHeldAccountsResponse++; if (buildCounterAddHeldAccountsResponse < 3) { - o.responses = buildUnnamed3039(); + o.responses = buildUnnamed3170(); } buildCounterAddHeldAccountsResponse--; return o; @@ -177,7 +177,7 @@ checkAddHeldAccountsResponse(api.AddHeldAccountsResponse o) { buildCounterAddHeldAccountsResponse++; if (buildCounterAddHeldAccountsResponse < 3) { - checkUnnamed3039(o.responses); + checkUnnamed3170(o.responses); } buildCounterAddHeldAccountsResponse--; } @@ -264,14 +264,14 @@ buildCounterCloudStorageFile--; } -buildUnnamed3040() { +buildUnnamed3171() { var o = new core.List<api.CloudStorageFile>(); o.add(buildCloudStorageFile()); o.add(buildCloudStorageFile()); return o; } -checkUnnamed3040(core.List<api.CloudStorageFile> o) { +checkUnnamed3171(core.List<api.CloudStorageFile> o) { unittest.expect(o, unittest.hasLength(2)); checkCloudStorageFile(o[0]); checkCloudStorageFile(o[1]); @@ -282,7 +282,7 @@ var o = new api.CloudStorageSink(); buildCounterCloudStorageSink++; if (buildCounterCloudStorageSink < 3) { - o.files = buildUnnamed3040(); + o.files = buildUnnamed3171(); } buildCounterCloudStorageSink--; return o; @@ -291,7 +291,7 @@ checkCloudStorageSink(api.CloudStorageSink o) { buildCounterCloudStorageSink++; if (buildCounterCloudStorageSink < 3) { - checkUnnamed3040(o.files); + checkUnnamed3171(o.files); } buildCounterCloudStorageSink--; } @@ -503,14 +503,14 @@ buildCounterHangoutsChatExportOptions--; } -buildUnnamed3041() { +buildUnnamed3172() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3041(core.List<core.String> o) { +checkUnnamed3172(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -521,7 +521,7 @@ var o = new api.HangoutsChatInfo(); buildCounterHangoutsChatInfo++; if (buildCounterHangoutsChatInfo < 3) { - o.roomId = buildUnnamed3041(); + o.roomId = buildUnnamed3172(); } buildCounterHangoutsChatInfo--; return o; @@ -530,7 +530,7 @@ checkHangoutsChatInfo(api.HangoutsChatInfo o) { buildCounterHangoutsChatInfo++; if (buildCounterHangoutsChatInfo < 3) { - checkUnnamed3041(o.roomId); + checkUnnamed3172(o.roomId); } buildCounterHangoutsChatInfo--; } @@ -688,14 +688,14 @@ buildCounterHeldOrgUnit--; } -buildUnnamed3042() { +buildUnnamed3173() { var o = new core.List<api.HeldAccount>(); o.add(buildHeldAccount()); o.add(buildHeldAccount()); return o; } -checkUnnamed3042(core.List<api.HeldAccount> o) { +checkUnnamed3173(core.List<api.HeldAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkHeldAccount(o[0]); checkHeldAccount(o[1]); @@ -706,7 +706,7 @@ var o = new api.Hold(); buildCounterHold++; if (buildCounterHold < 3) { - o.accounts = buildUnnamed3042(); + o.accounts = buildUnnamed3173(); o.corpus = "foo"; o.holdId = "foo"; o.name = "foo"; @@ -721,7 +721,7 @@ checkHold(api.Hold o) { buildCounterHold++; if (buildCounterHold < 3) { - checkUnnamed3042(o.accounts); + checkUnnamed3173(o.accounts); unittest.expect(o.corpus, unittest.equals('foo')); unittest.expect(o.holdId, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); @@ -732,14 +732,14 @@ buildCounterHold--; } -buildUnnamed3043() { +buildUnnamed3174() { var o = new core.List<api.Export>(); o.add(buildExport()); o.add(buildExport()); return o; } -checkUnnamed3043(core.List<api.Export> o) { +checkUnnamed3174(core.List<api.Export> o) { unittest.expect(o, unittest.hasLength(2)); checkExport(o[0]); checkExport(o[1]); @@ -750,7 +750,7 @@ var o = new api.ListExportsResponse(); buildCounterListExportsResponse++; if (buildCounterListExportsResponse < 3) { - o.exports = buildUnnamed3043(); + o.exports = buildUnnamed3174(); o.nextPageToken = "foo"; } buildCounterListExportsResponse--; @@ -760,20 +760,20 @@ checkListExportsResponse(api.ListExportsResponse o) { buildCounterListExportsResponse++; if (buildCounterListExportsResponse < 3) { - checkUnnamed3043(o.exports); + checkUnnamed3174(o.exports); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListExportsResponse--; } -buildUnnamed3044() { +buildUnnamed3175() { var o = new core.List<api.HeldAccount>(); o.add(buildHeldAccount()); o.add(buildHeldAccount()); return o; } -checkUnnamed3044(core.List<api.HeldAccount> o) { +checkUnnamed3175(core.List<api.HeldAccount> o) { unittest.expect(o, unittest.hasLength(2)); checkHeldAccount(o[0]); checkHeldAccount(o[1]); @@ -784,7 +784,7 @@ var o = new api.ListHeldAccountsResponse(); buildCounterListHeldAccountsResponse++; if (buildCounterListHeldAccountsResponse < 3) { - o.accounts = buildUnnamed3044(); + o.accounts = buildUnnamed3175(); } buildCounterListHeldAccountsResponse--; return o; @@ -793,19 +793,19 @@ checkListHeldAccountsResponse(api.ListHeldAccountsResponse o) { buildCounterListHeldAccountsResponse++; if (buildCounterListHeldAccountsResponse < 3) { - checkUnnamed3044(o.accounts); + checkUnnamed3175(o.accounts); } buildCounterListHeldAccountsResponse--; } -buildUnnamed3045() { +buildUnnamed3176() { var o = new core.List<api.Hold>(); o.add(buildHold()); o.add(buildHold()); return o; } -checkUnnamed3045(core.List<api.Hold> o) { +checkUnnamed3176(core.List<api.Hold> o) { unittest.expect(o, unittest.hasLength(2)); checkHold(o[0]); checkHold(o[1]); @@ -816,7 +816,7 @@ var o = new api.ListHoldsResponse(); buildCounterListHoldsResponse++; if (buildCounterListHoldsResponse < 3) { - o.holds = buildUnnamed3045(); + o.holds = buildUnnamed3176(); o.nextPageToken = "foo"; } buildCounterListHoldsResponse--; @@ -826,20 +826,20 @@ checkListHoldsResponse(api.ListHoldsResponse o) { buildCounterListHoldsResponse++; if (buildCounterListHoldsResponse < 3) { - checkUnnamed3045(o.holds); + checkUnnamed3176(o.holds); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListHoldsResponse--; } -buildUnnamed3046() { +buildUnnamed3177() { var o = new core.List<api.Matter>(); o.add(buildMatter()); o.add(buildMatter()); return o; } -checkUnnamed3046(core.List<api.Matter> o) { +checkUnnamed3177(core.List<api.Matter> o) { unittest.expect(o, unittest.hasLength(2)); checkMatter(o[0]); checkMatter(o[1]); @@ -850,7 +850,7 @@ var o = new api.ListMattersResponse(); buildCounterListMattersResponse++; if (buildCounterListMattersResponse < 3) { - o.matters = buildUnnamed3046(); + o.matters = buildUnnamed3177(); o.nextPageToken = "foo"; } buildCounterListMattersResponse--; @@ -860,20 +860,20 @@ checkListMattersResponse(api.ListMattersResponse o) { buildCounterListMattersResponse++; if (buildCounterListMattersResponse < 3) { - checkUnnamed3046(o.matters); + checkUnnamed3177(o.matters); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListMattersResponse--; } -buildUnnamed3047() { +buildUnnamed3178() { var o = new core.List<api.SavedQuery>(); o.add(buildSavedQuery()); o.add(buildSavedQuery()); return o; } -checkUnnamed3047(core.List<api.SavedQuery> o) { +checkUnnamed3178(core.List<api.SavedQuery> o) { unittest.expect(o, unittest.hasLength(2)); checkSavedQuery(o[0]); checkSavedQuery(o[1]); @@ -885,7 +885,7 @@ buildCounterListSavedQueriesResponse++; if (buildCounterListSavedQueriesResponse < 3) { o.nextPageToken = "foo"; - o.savedQueries = buildUnnamed3047(); + o.savedQueries = buildUnnamed3178(); } buildCounterListSavedQueriesResponse--; return o; @@ -895,7 +895,7 @@ buildCounterListSavedQueriesResponse++; if (buildCounterListSavedQueriesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed3047(o.savedQueries); + checkUnnamed3178(o.savedQueries); } buildCounterListSavedQueriesResponse--; } @@ -940,14 +940,14 @@ buildCounterMailOptions--; } -buildUnnamed3048() { +buildUnnamed3179() { var o = new core.List<api.MatterPermission>(); o.add(buildMatterPermission()); o.add(buildMatterPermission()); return o; } -checkUnnamed3048(core.List<api.MatterPermission> o) { +checkUnnamed3179(core.List<api.MatterPermission> o) { unittest.expect(o, unittest.hasLength(2)); checkMatterPermission(o[0]); checkMatterPermission(o[1]); @@ -960,7 +960,7 @@ if (buildCounterMatter < 3) { o.description = "foo"; o.matterId = "foo"; - o.matterPermissions = buildUnnamed3048(); + o.matterPermissions = buildUnnamed3179(); o.name = "foo"; o.state = "foo"; } @@ -973,7 +973,7 @@ if (buildCounterMatter < 3) { unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.matterId, unittest.equals('foo')); - checkUnnamed3048(o.matterPermissions); + checkUnnamed3179(o.matterPermissions); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.state, unittest.equals('foo')); } @@ -1069,14 +1069,14 @@ buildCounterQuery--; } -buildUnnamed3049() { +buildUnnamed3180() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3049(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')); @@ -1087,7 +1087,7 @@ var o = new api.RemoveHeldAccountsRequest(); buildCounterRemoveHeldAccountsRequest++; if (buildCounterRemoveHeldAccountsRequest < 3) { - o.accountIds = buildUnnamed3049(); + o.accountIds = buildUnnamed3180(); } buildCounterRemoveHeldAccountsRequest--; return o; @@ -1096,19 +1096,19 @@ checkRemoveHeldAccountsRequest(api.RemoveHeldAccountsRequest o) { buildCounterRemoveHeldAccountsRequest++; if (buildCounterRemoveHeldAccountsRequest < 3) { - checkUnnamed3049(o.accountIds); + checkUnnamed3180(o.accountIds); } buildCounterRemoveHeldAccountsRequest--; } -buildUnnamed3050() { +buildUnnamed3181() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed3050(core.List<api.Status> o) { +checkUnnamed3181(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -1119,7 +1119,7 @@ var o = new api.RemoveHeldAccountsResponse(); buildCounterRemoveHeldAccountsResponse++; if (buildCounterRemoveHeldAccountsResponse < 3) { - o.statuses = buildUnnamed3050(); + o.statuses = buildUnnamed3181(); } buildCounterRemoveHeldAccountsResponse--; return o; @@ -1128,7 +1128,7 @@ checkRemoveHeldAccountsResponse(api.RemoveHeldAccountsResponse o) { buildCounterRemoveHeldAccountsResponse++; if (buildCounterRemoveHeldAccountsResponse < 3) { - checkUnnamed3050(o.statuses); + checkUnnamed3181(o.statuses); } buildCounterRemoveHeldAccountsResponse--; } @@ -1213,14 +1213,14 @@ buildCounterSavedQuery--; } -buildUnnamed3051() { +buildUnnamed3182() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3051(core.List<core.String> o) { +checkUnnamed3182(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1231,7 +1231,7 @@ var o = new api.SharedDriveInfo(); buildCounterSharedDriveInfo++; if (buildCounterSharedDriveInfo < 3) { - o.sharedDriveIds = buildUnnamed3051(); + o.sharedDriveIds = buildUnnamed3182(); } buildCounterSharedDriveInfo--; return o; @@ -1240,12 +1240,12 @@ checkSharedDriveInfo(api.SharedDriveInfo o) { buildCounterSharedDriveInfo++; if (buildCounterSharedDriveInfo < 3) { - checkUnnamed3051(o.sharedDriveIds); + checkUnnamed3182(o.sharedDriveIds); } buildCounterSharedDriveInfo--; } -buildUnnamed3052() { +buildUnnamed3183() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1260,7 +1260,7 @@ return o; } -checkUnnamed3052(core.Map<core.String, core.Object> o) { +checkUnnamed3183(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)); @@ -1274,17 +1274,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed3053() { +buildUnnamed3184() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed3052()); - o.add(buildUnnamed3052()); + o.add(buildUnnamed3183()); + o.add(buildUnnamed3183()); return o; } -checkUnnamed3053(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3184(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed3052(o[0]); - checkUnnamed3052(o[1]); + checkUnnamed3183(o[0]); + checkUnnamed3183(o[1]); } core.int buildCounterStatus = 0; @@ -1293,7 +1293,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed3053(); + o.details = buildUnnamed3184(); o.message = "foo"; } buildCounterStatus--; @@ -1304,20 +1304,20 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed3053(o.details); + checkUnnamed3184(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; } -buildUnnamed3054() { +buildUnnamed3185() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed3054(core.List<core.String> o) { +checkUnnamed3185(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1328,7 +1328,7 @@ var o = new api.TeamDriveInfo(); buildCounterTeamDriveInfo++; if (buildCounterTeamDriveInfo < 3) { - o.teamDriveIds = buildUnnamed3054(); + o.teamDriveIds = buildUnnamed3185(); } buildCounterTeamDriveInfo--; return o; @@ -1337,7 +1337,7 @@ checkTeamDriveInfo(api.TeamDriveInfo o) { buildCounterTeamDriveInfo++; if (buildCounterTeamDriveInfo < 3) { - checkUnnamed3054(o.teamDriveIds); + checkUnnamed3185(o.teamDriveIds); } buildCounterTeamDriveInfo--; } @@ -2063,8 +2063,8 @@ var mock = new HttpServerMock(); api.MattersResourceApi res = new api.VaultApi(mock).matters; var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_view = "foo"; + var arg_pageSize = 42; var arg_state = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -2099,9 +2099,9 @@ } unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); unittest.expect(queryMap["state"].first, unittest.equals(arg_state)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -2114,8 +2114,8 @@ res .list( pageToken: arg_pageToken, - pageSize: arg_pageSize, view: arg_view, + pageSize: arg_pageSize, state: arg_state, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -2568,8 +2568,8 @@ api.MattersExportsResourceApi res = new api.VaultApi(mock).matters.exports; var arg_matterId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2610,10 +2610,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2624,8 +2624,8 @@ }), true); res .list(arg_matterId, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListExportsResponse(response); @@ -2903,9 +2903,9 @@ var mock = new HttpServerMock(); api.MattersHoldsResourceApi res = new api.VaultApi(mock).matters.holds; var arg_matterId = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; var arg_view = "foo"; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -2946,11 +2946,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -2961,9 +2961,9 @@ }), true); res .list(arg_matterId, - pageToken: arg_pageToken, pageSize: arg_pageSize, view: arg_view, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListHoldsResponse(response);
diff --git a/generated/googleapis/test/videointelligence/v1_test.dart b/generated/googleapis/test/videointelligence/v1_test.dart index 0163a81..90d2a46 100644 --- a/generated/googleapis/test/videointelligence/v1_test.dart +++ b/generated/googleapis/test/videointelligence/v1_test.dart
@@ -50,7 +50,7 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4735() { +buildUnnamed5064() { var o = new core .List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationProgress()); @@ -58,7 +58,7 @@ return o; } -checkUnnamed4735( +checkUnnamed5064( core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoAnnotationProgress(o[0]); @@ -70,7 +70,7 @@ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoProgress(); buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed4735(); + o.annotationProgress = buildUnnamed5064(); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; return o; @@ -80,19 +80,19 @@ api.GoogleCloudVideointelligenceV1AnnotateVideoProgress o) { buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress < 3) { - checkUnnamed4735(o.annotationProgress); + checkUnnamed5064(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoProgress--; } -buildUnnamed4736() { +buildUnnamed5065() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4736(core.List<core.String> o) { +checkUnnamed5065(core.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.GoogleCloudVideointelligenceV1AnnotateVideoRequest(); buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest < 3) { - o.features = buildUnnamed4736(); + o.features = buildUnnamed5065(); o.inputContent = "foo"; o.inputUri = "foo"; o.locationId = "foo"; @@ -118,7 +118,7 @@ api.GoogleCloudVideointelligenceV1AnnotateVideoRequest o) { buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest < 3) { - checkUnnamed4736(o.features); + checkUnnamed5065(o.features); unittest.expect(o.inputContent, unittest.equals('foo')); unittest.expect(o.inputUri, unittest.equals('foo')); unittest.expect(o.locationId, unittest.equals('foo')); @@ -128,7 +128,7 @@ buildCounterGoogleCloudVideointelligenceV1AnnotateVideoRequest--; } -buildUnnamed4737() { +buildUnnamed5066() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1VideoAnnotationResults()); @@ -136,7 +136,7 @@ return o; } -checkUnnamed4737( +checkUnnamed5066( core.List<api.GoogleCloudVideointelligenceV1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoAnnotationResults(o[0]); @@ -148,7 +148,7 @@ var o = new api.GoogleCloudVideointelligenceV1AnnotateVideoResponse(); buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed4737(); + o.annotationResults = buildUnnamed5066(); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; return o; @@ -158,7 +158,7 @@ api.GoogleCloudVideointelligenceV1AnnotateVideoResponse o) { buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse < 3) { - checkUnnamed4737(o.annotationResults); + checkUnnamed5066(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1AnnotateVideoResponse--; } @@ -235,7 +235,7 @@ buildCounterGoogleCloudVideointelligenceV1Entity--; } -buildUnnamed4738() { +buildUnnamed5067() { var o = new core.List<api.GoogleCloudVideointelligenceV1ExplicitContentFrame>(); o.add(buildGoogleCloudVideointelligenceV1ExplicitContentFrame()); @@ -243,7 +243,7 @@ return o; } -checkUnnamed4738( +checkUnnamed5067( core.List<api.GoogleCloudVideointelligenceV1ExplicitContentFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1ExplicitContentFrame(o[0]); @@ -256,7 +256,7 @@ var o = new api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation(); buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation < 3) { - o.frames = buildUnnamed4738(); + o.frames = buildUnnamed5067(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation--; @@ -267,7 +267,7 @@ api.GoogleCloudVideointelligenceV1ExplicitContentAnnotation o) { buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation < 3) { - checkUnnamed4738(o.frames); + checkUnnamed5067(o.frames); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1ExplicitContentAnnotation--; @@ -320,40 +320,191 @@ buildCounterGoogleCloudVideointelligenceV1ExplicitContentFrame--; } -buildUnnamed4739() { +buildUnnamed5068() { + var o = new core.List<api.GoogleCloudVideointelligenceV1FaceFrame>(); + o.add(buildGoogleCloudVideointelligenceV1FaceFrame()); + o.add(buildGoogleCloudVideointelligenceV1FaceFrame()); + return o; +} + +checkUnnamed5068(core.List<api.GoogleCloudVideointelligenceV1FaceFrame> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1FaceFrame(o[0]); + checkGoogleCloudVideointelligenceV1FaceFrame(o[1]); +} + +buildUnnamed5069() { + var o = new core.List<api.GoogleCloudVideointelligenceV1FaceSegment>(); + o.add(buildGoogleCloudVideointelligenceV1FaceSegment()); + o.add(buildGoogleCloudVideointelligenceV1FaceSegment()); + return o; +} + +checkUnnamed5069(core.List<api.GoogleCloudVideointelligenceV1FaceSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1FaceSegment(o[0]); + checkGoogleCloudVideointelligenceV1FaceSegment(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1FaceAnnotation = 0; +buildGoogleCloudVideointelligenceV1FaceAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1FaceAnnotation(); + buildCounterGoogleCloudVideointelligenceV1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1FaceAnnotation < 3) { + o.frames = buildUnnamed5068(); + o.segments = buildUnnamed5069(); + o.thumbnail = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1FaceAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1FaceAnnotation( + api.GoogleCloudVideointelligenceV1FaceAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1FaceAnnotation < 3) { + checkUnnamed5068(o.frames); + checkUnnamed5069(o.segments); + unittest.expect(o.thumbnail, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1FaceAnnotation--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation = 0; +buildGoogleCloudVideointelligenceV1FaceDetectionAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1FaceDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation < 3) { + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1FaceDetectionAnnotation( + api.GoogleCloudVideointelligenceV1FaceDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation < 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1FaceDetectionAnnotation--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig = 0; +buildGoogleCloudVideointelligenceV1FaceDetectionConfig() { + var o = new api.GoogleCloudVideointelligenceV1FaceDetectionConfig(); + buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig++; + if (buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig < 3) { + o.includeAttributes = true; + o.includeBoundingBoxes = true; + o.model = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig--; + return o; +} + +checkGoogleCloudVideointelligenceV1FaceDetectionConfig( + api.GoogleCloudVideointelligenceV1FaceDetectionConfig o) { + buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig++; + if (buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig < 3) { + unittest.expect(o.includeAttributes, unittest.isTrue); + unittest.expect(o.includeBoundingBoxes, unittest.isTrue); + unittest.expect(o.model, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1FaceDetectionConfig--; +} + +buildUnnamed5070() { + var o = + new core.List<api.GoogleCloudVideointelligenceV1NormalizedBoundingBox>(); + o.add(buildGoogleCloudVideointelligenceV1NormalizedBoundingBox()); + o.add(buildGoogleCloudVideointelligenceV1NormalizedBoundingBox()); + return o; +} + +checkUnnamed5070( + core.List<api.GoogleCloudVideointelligenceV1NormalizedBoundingBox> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(o[0]); + checkGoogleCloudVideointelligenceV1NormalizedBoundingBox(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1FaceFrame = 0; +buildGoogleCloudVideointelligenceV1FaceFrame() { + var o = new api.GoogleCloudVideointelligenceV1FaceFrame(); + buildCounterGoogleCloudVideointelligenceV1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1FaceFrame < 3) { + o.normalizedBoundingBoxes = buildUnnamed5070(); + o.timeOffset = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1FaceFrame--; + return o; +} + +checkGoogleCloudVideointelligenceV1FaceFrame( + api.GoogleCloudVideointelligenceV1FaceFrame o) { + buildCounterGoogleCloudVideointelligenceV1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1FaceFrame < 3) { + checkUnnamed5070(o.normalizedBoundingBoxes); + unittest.expect(o.timeOffset, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1FaceFrame--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1FaceSegment = 0; +buildGoogleCloudVideointelligenceV1FaceSegment() { + var o = new api.GoogleCloudVideointelligenceV1FaceSegment(); + buildCounterGoogleCloudVideointelligenceV1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1FaceSegment < 3) { + o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); + } + buildCounterGoogleCloudVideointelligenceV1FaceSegment--; + return o; +} + +checkGoogleCloudVideointelligenceV1FaceSegment( + api.GoogleCloudVideointelligenceV1FaceSegment o) { + buildCounterGoogleCloudVideointelligenceV1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1FaceSegment < 3) { + checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); + } + buildCounterGoogleCloudVideointelligenceV1FaceSegment--; +} + +buildUnnamed5071() { var o = new core.List<api.GoogleCloudVideointelligenceV1Entity>(); o.add(buildGoogleCloudVideointelligenceV1Entity()); o.add(buildGoogleCloudVideointelligenceV1Entity()); return o; } -checkUnnamed4739(core.List<api.GoogleCloudVideointelligenceV1Entity> o) { +checkUnnamed5071(core.List<api.GoogleCloudVideointelligenceV1Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1Entity(o[0]); checkGoogleCloudVideointelligenceV1Entity(o[1]); } -buildUnnamed4740() { +buildUnnamed5072() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelFrame>(); o.add(buildGoogleCloudVideointelligenceV1LabelFrame()); o.add(buildGoogleCloudVideointelligenceV1LabelFrame()); return o; } -checkUnnamed4740(core.List<api.GoogleCloudVideointelligenceV1LabelFrame> o) { +checkUnnamed5072(core.List<api.GoogleCloudVideointelligenceV1LabelFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelFrame(o[0]); checkGoogleCloudVideointelligenceV1LabelFrame(o[1]); } -buildUnnamed4741() { +buildUnnamed5073() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelSegment>(); o.add(buildGoogleCloudVideointelligenceV1LabelSegment()); o.add(buildGoogleCloudVideointelligenceV1LabelSegment()); return o; } -checkUnnamed4741(core.List<api.GoogleCloudVideointelligenceV1LabelSegment> o) { +checkUnnamed5073(core.List<api.GoogleCloudVideointelligenceV1LabelSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelSegment(o[0]); checkGoogleCloudVideointelligenceV1LabelSegment(o[1]); @@ -364,10 +515,10 @@ var o = new api.GoogleCloudVideointelligenceV1LabelAnnotation(); buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { - o.categoryEntities = buildUnnamed4739(); + o.categoryEntities = buildUnnamed5071(); o.entity = buildGoogleCloudVideointelligenceV1Entity(); - o.frames = buildUnnamed4740(); - o.segments = buildUnnamed4741(); + o.frames = buildUnnamed5072(); + o.segments = buildUnnamed5073(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; @@ -378,10 +529,10 @@ api.GoogleCloudVideointelligenceV1LabelAnnotation o) { buildCounterGoogleCloudVideointelligenceV1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1LabelAnnotation < 3) { - checkUnnamed4739(o.categoryEntities); + checkUnnamed5071(o.categoryEntities); checkGoogleCloudVideointelligenceV1Entity(o.entity); - checkUnnamed4740(o.frames); - checkUnnamed4741(o.segments); + checkUnnamed5072(o.frames); + checkUnnamed5073(o.segments); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1LabelAnnotation--; @@ -459,27 +610,27 @@ buildCounterGoogleCloudVideointelligenceV1LabelSegment--; } -buildUnnamed4742() { +buildUnnamed5074() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); return o; } -checkUnnamed4742(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { +checkUnnamed5074(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); } -buildUnnamed4743() { +buildUnnamed5075() { var o = new core.List<api.GoogleCloudVideointelligenceV1Track>(); o.add(buildGoogleCloudVideointelligenceV1Track()); o.add(buildGoogleCloudVideointelligenceV1Track()); return o; } -checkUnnamed4743(core.List<api.GoogleCloudVideointelligenceV1Track> o) { +checkUnnamed5075(core.List<api.GoogleCloudVideointelligenceV1Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1Track(o[0]); checkGoogleCloudVideointelligenceV1Track(o[1]); @@ -492,8 +643,8 @@ buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation < 3) { o.entity = buildGoogleCloudVideointelligenceV1Entity(); - o.segments = buildUnnamed4742(); - o.tracks = buildUnnamed4743(); + o.segments = buildUnnamed5074(); + o.tracks = buildUnnamed5075(); } buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation--; return o; @@ -504,8 +655,8 @@ buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation < 3) { checkGoogleCloudVideointelligenceV1Entity(o.entity); - checkUnnamed4742(o.segments); - checkUnnamed4743(o.tracks); + checkUnnamed5074(o.segments); + checkUnnamed5075(o.tracks); } buildCounterGoogleCloudVideointelligenceV1LogoRecognitionAnnotation--; } @@ -536,14 +687,14 @@ buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingBox--; } -buildUnnamed4744() { +buildUnnamed5076() { var o = new core.List<api.GoogleCloudVideointelligenceV1NormalizedVertex>(); o.add(buildGoogleCloudVideointelligenceV1NormalizedVertex()); o.add(buildGoogleCloudVideointelligenceV1NormalizedVertex()); return o; } -checkUnnamed4744( +checkUnnamed5076( core.List<api.GoogleCloudVideointelligenceV1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1NormalizedVertex(o[0]); @@ -555,7 +706,7 @@ var o = new api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly(); buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly < 3) { - o.vertices = buildUnnamed4744(); + o.vertices = buildUnnamed5076(); } buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly--; return o; @@ -565,7 +716,7 @@ api.GoogleCloudVideointelligenceV1NormalizedBoundingPoly o) { buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly < 3) { - checkUnnamed4744(o.vertices); + checkUnnamed5076(o.vertices); } buildCounterGoogleCloudVideointelligenceV1NormalizedBoundingPoly--; } @@ -592,7 +743,7 @@ buildCounterGoogleCloudVideointelligenceV1NormalizedVertex--; } -buildUnnamed4745() { +buildUnnamed5077() { var o = new core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingFrame>(); o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingFrame()); @@ -600,7 +751,7 @@ return o; } -checkUnnamed4745( +checkUnnamed5077( core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1ObjectTrackingFrame(o[0]); @@ -614,7 +765,7 @@ if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation < 3) { o.confidence = 42.0; o.entity = buildGoogleCloudVideointelligenceV1Entity(); - o.frames = buildUnnamed4745(); + o.frames = buildUnnamed5077(); o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); o.trackId = "foo"; o.version = "foo"; @@ -629,7 +780,7 @@ if (buildCounterGoogleCloudVideointelligenceV1ObjectTrackingAnnotation < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1Entity(o.entity); - checkUnnamed4745(o.frames); + checkUnnamed5077(o.frames); checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); unittest.expect(o.trackId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -681,6 +832,66 @@ buildCounterGoogleCloudVideointelligenceV1ObjectTrackingFrame--; } +buildUnnamed5078() { + var o = new core.List<api.GoogleCloudVideointelligenceV1Track>(); + o.add(buildGoogleCloudVideointelligenceV1Track()); + o.add(buildGoogleCloudVideointelligenceV1Track()); + return o; +} + +checkUnnamed5078(core.List<api.GoogleCloudVideointelligenceV1Track> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1Track(o[0]); + checkGoogleCloudVideointelligenceV1Track(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1PersonDetectionAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1PersonDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation < 3) { + o.tracks = buildUnnamed5078(); + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1PersonDetectionAnnotation( + api.GoogleCloudVideointelligenceV1PersonDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation < 3) { + checkUnnamed5078(o.tracks); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1PersonDetectionAnnotation--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig = 0; +buildGoogleCloudVideointelligenceV1PersonDetectionConfig() { + var o = new api.GoogleCloudVideointelligenceV1PersonDetectionConfig(); + buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig++; + if (buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig < 3) { + o.includeAttributes = true; + o.includeBoundingBoxes = true; + o.includePoseLandmarks = true; + } + buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig--; + return o; +} + +checkGoogleCloudVideointelligenceV1PersonDetectionConfig( + api.GoogleCloudVideointelligenceV1PersonDetectionConfig o) { + buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig++; + if (buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig < 3) { + unittest.expect(o.includeAttributes, unittest.isTrue); + unittest.expect(o.includeBoundingBoxes, unittest.isTrue); + unittest.expect(o.includePoseLandmarks, unittest.isTrue); + } + buildCounterGoogleCloudVideointelligenceV1PersonDetectionConfig--; +} + core.int buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig = 0; buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig() { @@ -702,14 +913,14 @@ buildCounterGoogleCloudVideointelligenceV1ShotChangeDetectionConfig--; } -buildUnnamed4746() { +buildUnnamed5079() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4746(core.List<core.String> o) { +checkUnnamed5079(core.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 +931,7 @@ var o = new api.GoogleCloudVideointelligenceV1SpeechContext(); buildCounterGoogleCloudVideointelligenceV1SpeechContext++; if (buildCounterGoogleCloudVideointelligenceV1SpeechContext < 3) { - o.phrases = buildUnnamed4746(); + o.phrases = buildUnnamed5079(); } buildCounterGoogleCloudVideointelligenceV1SpeechContext--; return o; @@ -730,19 +941,19 @@ api.GoogleCloudVideointelligenceV1SpeechContext o) { buildCounterGoogleCloudVideointelligenceV1SpeechContext++; if (buildCounterGoogleCloudVideointelligenceV1SpeechContext < 3) { - checkUnnamed4746(o.phrases); + checkUnnamed5079(o.phrases); } buildCounterGoogleCloudVideointelligenceV1SpeechContext--; } -buildUnnamed4747() { +buildUnnamed5080() { var o = new core.List<api.GoogleCloudVideointelligenceV1WordInfo>(); o.add(buildGoogleCloudVideointelligenceV1WordInfo()); o.add(buildGoogleCloudVideointelligenceV1WordInfo()); return o; } -checkUnnamed4747(core.List<api.GoogleCloudVideointelligenceV1WordInfo> o) { +checkUnnamed5080(core.List<api.GoogleCloudVideointelligenceV1WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1WordInfo(o[0]); checkGoogleCloudVideointelligenceV1WordInfo(o[1]); @@ -757,7 +968,7 @@ 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed4747(); + o.words = buildUnnamed5080(); } buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative--; return o; @@ -770,12 +981,12 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed4747(o.words); + checkUnnamed5080(o.words); } buildCounterGoogleCloudVideointelligenceV1SpeechRecognitionAlternative--; } -buildUnnamed4748() { +buildUnnamed5081() { var o = new core .List<api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative>(); o.add(buildGoogleCloudVideointelligenceV1SpeechRecognitionAlternative()); @@ -783,7 +994,7 @@ return o; } -checkUnnamed4748( +checkUnnamed5081( core.List<api.GoogleCloudVideointelligenceV1SpeechRecognitionAlternative> o) { unittest.expect(o, unittest.hasLength(2)); @@ -796,7 +1007,7 @@ var o = new api.GoogleCloudVideointelligenceV1SpeechTranscription(); buildCounterGoogleCloudVideointelligenceV1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscription < 3) { - o.alternatives = buildUnnamed4748(); + o.alternatives = buildUnnamed5081(); o.languageCode = "foo"; } buildCounterGoogleCloudVideointelligenceV1SpeechTranscription--; @@ -807,33 +1018,33 @@ api.GoogleCloudVideointelligenceV1SpeechTranscription o) { buildCounterGoogleCloudVideointelligenceV1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscription < 3) { - checkUnnamed4748(o.alternatives); + checkUnnamed5081(o.alternatives); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1SpeechTranscription--; } -buildUnnamed4749() { +buildUnnamed5082() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed4749(core.List<core.int> o) { +checkUnnamed5082(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)); } -buildUnnamed4750() { +buildUnnamed5083() { var o = new core.List<api.GoogleCloudVideointelligenceV1SpeechContext>(); o.add(buildGoogleCloudVideointelligenceV1SpeechContext()); o.add(buildGoogleCloudVideointelligenceV1SpeechContext()); return o; } -checkUnnamed4750(core.List<api.GoogleCloudVideointelligenceV1SpeechContext> o) { +checkUnnamed5083(core.List<api.GoogleCloudVideointelligenceV1SpeechContext> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1SpeechContext(o[0]); checkGoogleCloudVideointelligenceV1SpeechContext(o[1]); @@ -845,7 +1056,7 @@ var o = new api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig(); buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig++; if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig < 3) { - o.audioTracks = buildUnnamed4749(); + o.audioTracks = buildUnnamed5082(); o.diarizationSpeakerCount = 42; o.enableAutomaticPunctuation = true; o.enableSpeakerDiarization = true; @@ -853,7 +1064,7 @@ o.filterProfanity = true; o.languageCode = "foo"; o.maxAlternatives = 42; - o.speechContexts = buildUnnamed4750(); + o.speechContexts = buildUnnamed5083(); } buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig--; return o; @@ -863,7 +1074,7 @@ api.GoogleCloudVideointelligenceV1SpeechTranscriptionConfig o) { buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig++; if (buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig < 3) { - checkUnnamed4749(o.audioTracks); + checkUnnamed5082(o.audioTracks); unittest.expect(o.diarizationSpeakerCount, unittest.equals(42)); unittest.expect(o.enableAutomaticPunctuation, unittest.isTrue); unittest.expect(o.enableSpeakerDiarization, unittest.isTrue); @@ -871,19 +1082,19 @@ unittest.expect(o.filterProfanity, unittest.isTrue); unittest.expect(o.languageCode, unittest.equals('foo')); unittest.expect(o.maxAlternatives, unittest.equals(42)); - checkUnnamed4750(o.speechContexts); + checkUnnamed5083(o.speechContexts); } buildCounterGoogleCloudVideointelligenceV1SpeechTranscriptionConfig--; } -buildUnnamed4751() { +buildUnnamed5084() { var o = new core.List<api.GoogleCloudVideointelligenceV1TextSegment>(); o.add(buildGoogleCloudVideointelligenceV1TextSegment()); o.add(buildGoogleCloudVideointelligenceV1TextSegment()); return o; } -checkUnnamed4751(core.List<api.GoogleCloudVideointelligenceV1TextSegment> o) { +checkUnnamed5084(core.List<api.GoogleCloudVideointelligenceV1TextSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1TextSegment(o[0]); checkGoogleCloudVideointelligenceV1TextSegment(o[1]); @@ -894,7 +1105,7 @@ var o = new api.GoogleCloudVideointelligenceV1TextAnnotation(); buildCounterGoogleCloudVideointelligenceV1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1TextAnnotation < 3) { - o.segments = buildUnnamed4751(); + o.segments = buildUnnamed5084(); o.text = "foo"; o.version = "foo"; } @@ -906,21 +1117,21 @@ api.GoogleCloudVideointelligenceV1TextAnnotation o) { buildCounterGoogleCloudVideointelligenceV1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1TextAnnotation < 3) { - checkUnnamed4751(o.segments); + checkUnnamed5084(o.segments); unittest.expect(o.text, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1TextAnnotation--; } -buildUnnamed4752() { +buildUnnamed5085() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4752(core.List<core.String> o) { +checkUnnamed5085(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -931,7 +1142,7 @@ var o = new api.GoogleCloudVideointelligenceV1TextDetectionConfig(); buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig++; if (buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig < 3) { - o.languageHints = buildUnnamed4752(); + o.languageHints = buildUnnamed5085(); o.model = "foo"; } buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig--; @@ -942,7 +1153,7 @@ api.GoogleCloudVideointelligenceV1TextDetectionConfig o) { buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig++; if (buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig < 3) { - checkUnnamed4752(o.languageHints); + checkUnnamed5085(o.languageHints); unittest.expect(o.model, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1TextDetectionConfig--; @@ -972,14 +1183,14 @@ buildCounterGoogleCloudVideointelligenceV1TextFrame--; } -buildUnnamed4753() { +buildUnnamed5086() { var o = new core.List<api.GoogleCloudVideointelligenceV1TextFrame>(); o.add(buildGoogleCloudVideointelligenceV1TextFrame()); o.add(buildGoogleCloudVideointelligenceV1TextFrame()); return o; } -checkUnnamed4753(core.List<api.GoogleCloudVideointelligenceV1TextFrame> o) { +checkUnnamed5086(core.List<api.GoogleCloudVideointelligenceV1TextFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1TextFrame(o[0]); checkGoogleCloudVideointelligenceV1TextFrame(o[1]); @@ -991,7 +1202,7 @@ buildCounterGoogleCloudVideointelligenceV1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1TextSegment < 3) { o.confidence = 42.0; - o.frames = buildUnnamed4753(); + o.frames = buildUnnamed5086(); o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); } buildCounterGoogleCloudVideointelligenceV1TextSegment--; @@ -1003,34 +1214,34 @@ buildCounterGoogleCloudVideointelligenceV1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1TextSegment < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed4753(o.frames); + checkUnnamed5086(o.frames); checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); } buildCounterGoogleCloudVideointelligenceV1TextSegment--; } -buildUnnamed4754() { +buildUnnamed5087() { var o = new core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute()); o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute()); return o; } -checkUnnamed4754( +checkUnnamed5087( core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1DetectedAttribute(o[1]); } -buildUnnamed4755() { +buildUnnamed5088() { var o = new core.List<api.GoogleCloudVideointelligenceV1DetectedLandmark>(); o.add(buildGoogleCloudVideointelligenceV1DetectedLandmark()); o.add(buildGoogleCloudVideointelligenceV1DetectedLandmark()); return o; } -checkUnnamed4755( +checkUnnamed5088( core.List<api.GoogleCloudVideointelligenceV1DetectedLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1DetectedLandmark(o[0]); @@ -1042,8 +1253,8 @@ var o = new api.GoogleCloudVideointelligenceV1TimestampedObject(); buildCounterGoogleCloudVideointelligenceV1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1TimestampedObject < 3) { - o.attributes = buildUnnamed4754(); - o.landmarks = buildUnnamed4755(); + o.attributes = buildUnnamed5087(); + o.landmarks = buildUnnamed5088(); o.normalizedBoundingBox = buildGoogleCloudVideointelligenceV1NormalizedBoundingBox(); o.timeOffset = "foo"; @@ -1056,8 +1267,8 @@ api.GoogleCloudVideointelligenceV1TimestampedObject o) { buildCounterGoogleCloudVideointelligenceV1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1TimestampedObject < 3) { - checkUnnamed4754(o.attributes); - checkUnnamed4755(o.landmarks); + checkUnnamed5087(o.attributes); + checkUnnamed5088(o.landmarks); checkGoogleCloudVideointelligenceV1NormalizedBoundingBox( o.normalizedBoundingBox); unittest.expect(o.timeOffset, unittest.equals('foo')); @@ -1065,28 +1276,28 @@ buildCounterGoogleCloudVideointelligenceV1TimestampedObject--; } -buildUnnamed4756() { +buildUnnamed5089() { var o = new core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute()); o.add(buildGoogleCloudVideointelligenceV1DetectedAttribute()); return o; } -checkUnnamed4756( +checkUnnamed5089( core.List<api.GoogleCloudVideointelligenceV1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1DetectedAttribute(o[1]); } -buildUnnamed4757() { +buildUnnamed5090() { var o = new core.List<api.GoogleCloudVideointelligenceV1TimestampedObject>(); o.add(buildGoogleCloudVideointelligenceV1TimestampedObject()); o.add(buildGoogleCloudVideointelligenceV1TimestampedObject()); return o; } -checkUnnamed4757( +checkUnnamed5090( core.List<api.GoogleCloudVideointelligenceV1TimestampedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1TimestampedObject(o[0]); @@ -1098,10 +1309,10 @@ var o = new api.GoogleCloudVideointelligenceV1Track(); buildCounterGoogleCloudVideointelligenceV1Track++; if (buildCounterGoogleCloudVideointelligenceV1Track < 3) { - o.attributes = buildUnnamed4756(); + o.attributes = buildUnnamed5089(); o.confidence = 42.0; o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); - o.timestampedObjects = buildUnnamed4757(); + o.timestampedObjects = buildUnnamed5090(); } buildCounterGoogleCloudVideointelligenceV1Track--; return o; @@ -1111,10 +1322,10 @@ api.GoogleCloudVideointelligenceV1Track o) { buildCounterGoogleCloudVideointelligenceV1Track++; if (buildCounterGoogleCloudVideointelligenceV1Track < 3) { - checkUnnamed4756(o.attributes); + checkUnnamed5089(o.attributes); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); - checkUnnamed4757(o.timestampedObjects); + checkUnnamed5090(o.timestampedObjects); } buildCounterGoogleCloudVideointelligenceV1Track--; } @@ -1149,21 +1360,50 @@ buildCounterGoogleCloudVideointelligenceV1VideoAnnotationProgress--; } -buildUnnamed4758() { +buildUnnamed5091() { + var o = new core.List<api.GoogleCloudVideointelligenceV1FaceAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1FaceAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1FaceAnnotation()); + return o; +} + +checkUnnamed5091( + core.List<api.GoogleCloudVideointelligenceV1FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1FaceAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1FaceAnnotation(o[1]); +} + +buildUnnamed5092() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1FaceDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1FaceDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1FaceDetectionAnnotation()); + return o; +} + +checkUnnamed5092( + core.List<api.GoogleCloudVideointelligenceV1FaceDetectionAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1FaceDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1FaceDetectionAnnotation(o[1]); +} + +buildUnnamed5093() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed4758( +checkUnnamed5093( core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed4759() { +buildUnnamed5094() { var o = new core .List<api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LogoRecognitionAnnotation()); @@ -1171,14 +1411,14 @@ return o; } -checkUnnamed4759( +checkUnnamed5094( core.List<api.GoogleCloudVideointelligenceV1LogoRecognitionAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LogoRecognitionAnnotation(o[1]); } -buildUnnamed4760() { +buildUnnamed5095() { var o = new core .List<api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1ObjectTrackingAnnotation()); @@ -1186,83 +1426,98 @@ return o; } -checkUnnamed4760( +checkUnnamed5095( core.List<api.GoogleCloudVideointelligenceV1ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(o[0]); checkGoogleCloudVideointelligenceV1ObjectTrackingAnnotation(o[1]); } -buildUnnamed4761() { +buildUnnamed5096() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1PersonDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1PersonDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1PersonDetectionAnnotation()); + return o; +} + +checkUnnamed5096( + core.List<api.GoogleCloudVideointelligenceV1PersonDetectionAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1PersonDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1PersonDetectionAnnotation(o[1]); +} + +buildUnnamed5097() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed4761( +checkUnnamed5097( core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed4762() { +buildUnnamed5098() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed4762( +checkUnnamed5098( core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed4763() { +buildUnnamed5099() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); return o; } -checkUnnamed4763(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { +checkUnnamed5099(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); } -buildUnnamed4764() { +buildUnnamed5100() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed4764( +checkUnnamed5100( core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed4765() { +buildUnnamed5101() { var o = new core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); o.add(buildGoogleCloudVideointelligenceV1LabelAnnotation()); return o; } -checkUnnamed4765( +checkUnnamed5101( core.List<api.GoogleCloudVideointelligenceV1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1LabelAnnotation(o[1]); } -buildUnnamed4766() { +buildUnnamed5102() { var o = new core.List<api.GoogleCloudVideointelligenceV1SpeechTranscription>(); o.add(buildGoogleCloudVideointelligenceV1SpeechTranscription()); @@ -1270,21 +1525,21 @@ return o; } -checkUnnamed4766( +checkUnnamed5102( core.List<api.GoogleCloudVideointelligenceV1SpeechTranscription> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1SpeechTranscription(o[0]); checkGoogleCloudVideointelligenceV1SpeechTranscription(o[1]); } -buildUnnamed4767() { +buildUnnamed5103() { var o = new core.List<api.GoogleCloudVideointelligenceV1TextAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1TextAnnotation()); o.add(buildGoogleCloudVideointelligenceV1TextAnnotation()); return o; } -checkUnnamed4767( +checkUnnamed5103( core.List<api.GoogleCloudVideointelligenceV1TextAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1TextAnnotation(o[0]); @@ -1299,18 +1554,21 @@ o.error = buildGoogleRpcStatus(); o.explicitAnnotation = buildGoogleCloudVideointelligenceV1ExplicitContentAnnotation(); - o.frameLabelAnnotations = buildUnnamed4758(); + o.faceAnnotations = buildUnnamed5091(); + o.faceDetectionAnnotations = buildUnnamed5092(); + o.frameLabelAnnotations = buildUnnamed5093(); o.inputUri = "foo"; - o.logoRecognitionAnnotations = buildUnnamed4759(); - o.objectAnnotations = buildUnnamed4760(); + o.logoRecognitionAnnotations = buildUnnamed5094(); + o.objectAnnotations = buildUnnamed5095(); + o.personDetectionAnnotations = buildUnnamed5096(); o.segment = buildGoogleCloudVideointelligenceV1VideoSegment(); - o.segmentLabelAnnotations = buildUnnamed4761(); - o.segmentPresenceLabelAnnotations = buildUnnamed4762(); - o.shotAnnotations = buildUnnamed4763(); - o.shotLabelAnnotations = buildUnnamed4764(); - o.shotPresenceLabelAnnotations = buildUnnamed4765(); - o.speechTranscriptions = buildUnnamed4766(); - o.textAnnotations = buildUnnamed4767(); + o.segmentLabelAnnotations = buildUnnamed5097(); + o.segmentPresenceLabelAnnotations = buildUnnamed5098(); + o.shotAnnotations = buildUnnamed5099(); + o.shotLabelAnnotations = buildUnnamed5100(); + o.shotPresenceLabelAnnotations = buildUnnamed5101(); + o.speechTranscriptions = buildUnnamed5102(); + o.textAnnotations = buildUnnamed5103(); } buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; return o; @@ -1323,30 +1581,33 @@ checkGoogleRpcStatus(o.error); checkGoogleCloudVideointelligenceV1ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4758(o.frameLabelAnnotations); + checkUnnamed5091(o.faceAnnotations); + checkUnnamed5092(o.faceDetectionAnnotations); + checkUnnamed5093(o.frameLabelAnnotations); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed4759(o.logoRecognitionAnnotations); - checkUnnamed4760(o.objectAnnotations); + checkUnnamed5094(o.logoRecognitionAnnotations); + checkUnnamed5095(o.objectAnnotations); + checkUnnamed5096(o.personDetectionAnnotations); checkGoogleCloudVideointelligenceV1VideoSegment(o.segment); - checkUnnamed4761(o.segmentLabelAnnotations); - checkUnnamed4762(o.segmentPresenceLabelAnnotations); - checkUnnamed4763(o.shotAnnotations); - checkUnnamed4764(o.shotLabelAnnotations); - checkUnnamed4765(o.shotPresenceLabelAnnotations); - checkUnnamed4766(o.speechTranscriptions); - checkUnnamed4767(o.textAnnotations); + checkUnnamed5097(o.segmentLabelAnnotations); + checkUnnamed5098(o.segmentPresenceLabelAnnotations); + checkUnnamed5099(o.shotAnnotations); + checkUnnamed5100(o.shotLabelAnnotations); + checkUnnamed5101(o.shotPresenceLabelAnnotations); + checkUnnamed5102(o.speechTranscriptions); + checkUnnamed5103(o.textAnnotations); } buildCounterGoogleCloudVideointelligenceV1VideoAnnotationResults--; } -buildUnnamed4768() { +buildUnnamed5104() { var o = new core.List<api.GoogleCloudVideointelligenceV1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1VideoSegment()); return o; } -checkUnnamed4768(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { +checkUnnamed5104(core.List<api.GoogleCloudVideointelligenceV1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1VideoSegment(o[1]); @@ -1359,11 +1620,15 @@ if (buildCounterGoogleCloudVideointelligenceV1VideoContext < 3) { o.explicitContentDetectionConfig = buildGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig(); + o.faceDetectionConfig = + buildGoogleCloudVideointelligenceV1FaceDetectionConfig(); o.labelDetectionConfig = buildGoogleCloudVideointelligenceV1LabelDetectionConfig(); o.objectTrackingConfig = buildGoogleCloudVideointelligenceV1ObjectTrackingConfig(); - o.segments = buildUnnamed4768(); + o.personDetectionConfig = + buildGoogleCloudVideointelligenceV1PersonDetectionConfig(); + o.segments = buildUnnamed5104(); o.shotChangeDetectionConfig = buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig(); o.speechTranscriptionConfig = @@ -1381,11 +1646,15 @@ if (buildCounterGoogleCloudVideointelligenceV1VideoContext < 3) { checkGoogleCloudVideointelligenceV1ExplicitContentDetectionConfig( o.explicitContentDetectionConfig); + checkGoogleCloudVideointelligenceV1FaceDetectionConfig( + o.faceDetectionConfig); checkGoogleCloudVideointelligenceV1LabelDetectionConfig( o.labelDetectionConfig); checkGoogleCloudVideointelligenceV1ObjectTrackingConfig( o.objectTrackingConfig); - checkUnnamed4768(o.segments); + checkGoogleCloudVideointelligenceV1PersonDetectionConfig( + o.personDetectionConfig); + checkUnnamed5104(o.segments); checkGoogleCloudVideointelligenceV1ShotChangeDetectionConfig( o.shotChangeDetectionConfig); checkGoogleCloudVideointelligenceV1SpeechTranscriptionConfig( @@ -1446,7 +1715,7 @@ buildCounterGoogleCloudVideointelligenceV1WordInfo--; } -buildUnnamed4769() { +buildUnnamed5105() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress()); @@ -1454,7 +1723,7 @@ return o; } -checkUnnamed4769( +checkUnnamed5105( core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); @@ -1469,7 +1738,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed4769(); + o.annotationProgress = buildUnnamed5105(); } buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--; return o; @@ -1480,12 +1749,12 @@ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress < 3) { - checkUnnamed4769(o.annotationProgress); + checkUnnamed5105(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoProgress--; } -buildUnnamed4770() { +buildUnnamed5106() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1beta2VideoAnnotationResults()); @@ -1493,7 +1762,7 @@ return o; } -checkUnnamed4770( +checkUnnamed5106( core.List<api.GoogleCloudVideointelligenceV1beta2VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); @@ -1508,7 +1777,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed4770(); + o.annotationResults = buildUnnamed5106(); } buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--; return o; @@ -1519,7 +1788,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse < 3) { - checkUnnamed4770(o.annotationResults); + checkUnnamed5106(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1beta2AnnotateVideoResponse--; } @@ -1596,7 +1865,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2Entity--; } -buildUnnamed4771() { +buildUnnamed5107() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame>(); o.add(buildGoogleCloudVideointelligenceV1beta2ExplicitContentFrame()); @@ -1604,7 +1873,7 @@ return o; } -checkUnnamed4771( +checkUnnamed5107( core.List<api.GoogleCloudVideointelligenceV1beta2ExplicitContentFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2ExplicitContentFrame(o[0]); @@ -1620,7 +1889,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation < 3) { - o.frames = buildUnnamed4771(); + o.frames = buildUnnamed5107(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--; @@ -1632,7 +1901,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation < 3) { - checkUnnamed4771(o.frames); + checkUnnamed5107(o.frames); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation--; @@ -1661,41 +1930,173 @@ buildCounterGoogleCloudVideointelligenceV1beta2ExplicitContentFrame--; } -buildUnnamed4772() { +buildUnnamed5108() { + var o = new core.List<api.GoogleCloudVideointelligenceV1beta2FaceFrame>(); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceFrame()); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceFrame()); + return o; +} + +checkUnnamed5108( + core.List<api.GoogleCloudVideointelligenceV1beta2FaceFrame> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2FaceFrame(o[0]); + checkGoogleCloudVideointelligenceV1beta2FaceFrame(o[1]); +} + +buildUnnamed5109() { + var o = new core.List<api.GoogleCloudVideointelligenceV1beta2FaceSegment>(); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceSegment()); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceSegment()); + return o; +} + +checkUnnamed5109( + core.List<api.GoogleCloudVideointelligenceV1beta2FaceSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2FaceSegment(o[0]); + checkGoogleCloudVideointelligenceV1beta2FaceSegment(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation = 0; +buildGoogleCloudVideointelligenceV1beta2FaceAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1beta2FaceAnnotation(); + buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation < 3) { + o.frames = buildUnnamed5108(); + o.segments = buildUnnamed5109(); + o.thumbnail = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta2FaceAnnotation( + api.GoogleCloudVideointelligenceV1beta2FaceAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation < 3) { + checkUnnamed5108(o.frames); + checkUnnamed5109(o.segments); + unittest.expect(o.thumbnail, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceAnnotation--; +} + +core.int + buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation = 0; +buildGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation < + 3) { + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation( + api.GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation < + 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation--; +} + +buildUnnamed5110() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox>(); + o.add(buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox()); + o.add(buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox()); + return o; +} + +checkUnnamed5110( + core.List<api.GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(o[0]); + checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame = 0; +buildGoogleCloudVideointelligenceV1beta2FaceFrame() { + var o = new api.GoogleCloudVideointelligenceV1beta2FaceFrame(); + buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame < 3) { + o.normalizedBoundingBoxes = buildUnnamed5110(); + o.timeOffset = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta2FaceFrame( + api.GoogleCloudVideointelligenceV1beta2FaceFrame o) { + buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame < 3) { + checkUnnamed5110(o.normalizedBoundingBoxes); + unittest.expect(o.timeOffset, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceFrame--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment = 0; +buildGoogleCloudVideointelligenceV1beta2FaceSegment() { + var o = new api.GoogleCloudVideointelligenceV1beta2FaceSegment(); + buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment < 3) { + o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta2FaceSegment( + api.GoogleCloudVideointelligenceV1beta2FaceSegment o) { + buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment < 3) { + checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); + } + buildCounterGoogleCloudVideointelligenceV1beta2FaceSegment--; +} + +buildUnnamed5111() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2Entity>(); o.add(buildGoogleCloudVideointelligenceV1beta2Entity()); o.add(buildGoogleCloudVideointelligenceV1beta2Entity()); return o; } -checkUnnamed4772(core.List<api.GoogleCloudVideointelligenceV1beta2Entity> o) { +checkUnnamed5111(core.List<api.GoogleCloudVideointelligenceV1beta2Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2Entity(o[0]); checkGoogleCloudVideointelligenceV1beta2Entity(o[1]); } -buildUnnamed4773() { +buildUnnamed5112() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame()); o.add(buildGoogleCloudVideointelligenceV1beta2LabelFrame()); return o; } -checkUnnamed4773( +checkUnnamed5112( core.List<api.GoogleCloudVideointelligenceV1beta2LabelFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelFrame(o[1]); } -buildUnnamed4774() { +buildUnnamed5113() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment()); o.add(buildGoogleCloudVideointelligenceV1beta2LabelSegment()); return o; } -checkUnnamed4774( +checkUnnamed5113( core.List<api.GoogleCloudVideointelligenceV1beta2LabelSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelSegment(o[0]); @@ -1707,10 +2108,10 @@ var o = new api.GoogleCloudVideointelligenceV1beta2LabelAnnotation(); buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) { - o.categoryEntities = buildUnnamed4772(); + o.categoryEntities = buildUnnamed5111(); o.entity = buildGoogleCloudVideointelligenceV1beta2Entity(); - o.frames = buildUnnamed4773(); - o.segments = buildUnnamed4774(); + o.frames = buildUnnamed5112(); + o.segments = buildUnnamed5113(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--; @@ -1721,10 +2122,10 @@ api.GoogleCloudVideointelligenceV1beta2LabelAnnotation o) { buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation < 3) { - checkUnnamed4772(o.categoryEntities); + checkUnnamed5111(o.categoryEntities); checkGoogleCloudVideointelligenceV1beta2Entity(o.entity); - checkUnnamed4773(o.frames); - checkUnnamed4774(o.segments); + checkUnnamed5112(o.frames); + checkUnnamed5113(o.segments); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1beta2LabelAnnotation--; @@ -1774,28 +2175,28 @@ buildCounterGoogleCloudVideointelligenceV1beta2LabelSegment--; } -buildUnnamed4775() { +buildUnnamed5114() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); return o; } -checkUnnamed4775( +checkUnnamed5114( core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]); } -buildUnnamed4776() { +buildUnnamed5115() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2Track>(); o.add(buildGoogleCloudVideointelligenceV1beta2Track()); o.add(buildGoogleCloudVideointelligenceV1beta2Track()); return o; } -checkUnnamed4776(core.List<api.GoogleCloudVideointelligenceV1beta2Track> o) { +checkUnnamed5115(core.List<api.GoogleCloudVideointelligenceV1beta2Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2Track(o[0]); checkGoogleCloudVideointelligenceV1beta2Track(o[1]); @@ -1811,8 +2212,8 @@ if (buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation < 3) { o.entity = buildGoogleCloudVideointelligenceV1beta2Entity(); - o.segments = buildUnnamed4775(); - o.tracks = buildUnnamed4776(); + o.segments = buildUnnamed5114(); + o.tracks = buildUnnamed5115(); } buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation--; return o; @@ -1824,8 +2225,8 @@ if (buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation < 3) { checkGoogleCloudVideointelligenceV1beta2Entity(o.entity); - checkUnnamed4775(o.segments); - checkUnnamed4776(o.tracks); + checkUnnamed5114(o.segments); + checkUnnamed5115(o.tracks); } buildCounterGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation--; } @@ -1859,7 +2260,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox--; } -buildUnnamed4777() { +buildUnnamed5116() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2NormalizedVertex>(); o.add(buildGoogleCloudVideointelligenceV1beta2NormalizedVertex()); @@ -1867,7 +2268,7 @@ return o; } -checkUnnamed4777( +checkUnnamed5116( core.List<api.GoogleCloudVideointelligenceV1beta2NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2NormalizedVertex(o[0]); @@ -1881,7 +2282,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly < 3) { - o.vertices = buildUnnamed4777(); + o.vertices = buildUnnamed5116(); } buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly--; return o; @@ -1892,7 +2293,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly < 3) { - checkUnnamed4777(o.vertices); + checkUnnamed5116(o.vertices); } buildCounterGoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly--; } @@ -1919,7 +2320,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2NormalizedVertex--; } -buildUnnamed4778() { +buildUnnamed5117() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame>(); o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame()); @@ -1927,7 +2328,7 @@ return o; } -checkUnnamed4778( +checkUnnamed5117( core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame(o[0]); @@ -1943,7 +2344,7 @@ 3) { o.confidence = 42.0; o.entity = buildGoogleCloudVideointelligenceV1beta2Entity(); - o.frames = buildUnnamed4778(); + o.frames = buildUnnamed5117(); o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); o.trackId = "foo"; o.version = "foo"; @@ -1959,7 +2360,7 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1beta2Entity(o.entity); - checkUnnamed4778(o.frames); + checkUnnamed5117(o.frames); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); unittest.expect(o.trackId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -1991,14 +2392,54 @@ buildCounterGoogleCloudVideointelligenceV1beta2ObjectTrackingFrame--; } -buildUnnamed4779() { +buildUnnamed5118() { + var o = new core.List<api.GoogleCloudVideointelligenceV1beta2Track>(); + o.add(buildGoogleCloudVideointelligenceV1beta2Track()); + o.add(buildGoogleCloudVideointelligenceV1beta2Track()); + return o; +} + +checkUnnamed5118(core.List<api.GoogleCloudVideointelligenceV1beta2Track> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2Track(o[0]); + checkGoogleCloudVideointelligenceV1beta2Track(o[1]); +} + +core.int + buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation() { + var o = + new api.GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation < + 3) { + o.tracks = buildUnnamed5118(); + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation( + api.GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation < + 3) { + checkUnnamed5118(o.tracks); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation--; +} + +buildUnnamed5119() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2WordInfo>(); o.add(buildGoogleCloudVideointelligenceV1beta2WordInfo()); o.add(buildGoogleCloudVideointelligenceV1beta2WordInfo()); return o; } -checkUnnamed4779(core.List<api.GoogleCloudVideointelligenceV1beta2WordInfo> o) { +checkUnnamed5119(core.List<api.GoogleCloudVideointelligenceV1beta2WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2WordInfo(o[0]); checkGoogleCloudVideointelligenceV1beta2WordInfo(o[1]); @@ -2015,7 +2456,7 @@ 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed4779(); + o.words = buildUnnamed5119(); } buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative--; return o; @@ -2028,12 +2469,12 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed4779(o.words); + checkUnnamed5119(o.words); } buildCounterGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative--; } -buildUnnamed4780() { +buildUnnamed5120() { var o = new core.List< api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative>(); o.add(buildGoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative()); @@ -2041,7 +2482,7 @@ return o; } -checkUnnamed4780( +checkUnnamed5120( core.List< api.GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative> o) { @@ -2055,7 +2496,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta2SpeechTranscription(); buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription < 3) { - o.alternatives = buildUnnamed4780(); + o.alternatives = buildUnnamed5120(); o.languageCode = "foo"; } buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription--; @@ -2066,20 +2507,20 @@ api.GoogleCloudVideointelligenceV1beta2SpeechTranscription o) { buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription < 3) { - checkUnnamed4780(o.alternatives); + checkUnnamed5120(o.alternatives); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1beta2SpeechTranscription--; } -buildUnnamed4781() { +buildUnnamed5121() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2TextSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta2TextSegment()); o.add(buildGoogleCloudVideointelligenceV1beta2TextSegment()); return o; } -checkUnnamed4781( +checkUnnamed5121( core.List<api.GoogleCloudVideointelligenceV1beta2TextSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2TextSegment(o[0]); @@ -2091,7 +2532,7 @@ var o = new api.GoogleCloudVideointelligenceV1beta2TextAnnotation(); buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation < 3) { - o.segments = buildUnnamed4781(); + o.segments = buildUnnamed5121(); o.text = "foo"; o.version = "foo"; } @@ -2103,7 +2544,7 @@ api.GoogleCloudVideointelligenceV1beta2TextAnnotation o) { buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1beta2TextAnnotation < 3) { - checkUnnamed4781(o.segments); + checkUnnamed5121(o.segments); unittest.expect(o.text, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -2134,14 +2575,14 @@ buildCounterGoogleCloudVideointelligenceV1beta2TextFrame--; } -buildUnnamed4782() { +buildUnnamed5122() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2TextFrame>(); o.add(buildGoogleCloudVideointelligenceV1beta2TextFrame()); o.add(buildGoogleCloudVideointelligenceV1beta2TextFrame()); return o; } -checkUnnamed4782( +checkUnnamed5122( core.List<api.GoogleCloudVideointelligenceV1beta2TextFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2TextFrame(o[0]); @@ -2154,7 +2595,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1beta2TextSegment < 3) { o.confidence = 42.0; - o.frames = buildUnnamed4782(); + o.frames = buildUnnamed5122(); o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); } buildCounterGoogleCloudVideointelligenceV1beta2TextSegment--; @@ -2166,13 +2607,13 @@ buildCounterGoogleCloudVideointelligenceV1beta2TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1beta2TextSegment < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed4782(o.frames); + checkUnnamed5122(o.frames); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); } buildCounterGoogleCloudVideointelligenceV1beta2TextSegment--; } -buildUnnamed4783() { +buildUnnamed5123() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute()); @@ -2180,14 +2621,14 @@ return o; } -checkUnnamed4783( +checkUnnamed5123( core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[1]); } -buildUnnamed4784() { +buildUnnamed5124() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2DetectedLandmark>(); o.add(buildGoogleCloudVideointelligenceV1beta2DetectedLandmark()); @@ -2195,7 +2636,7 @@ return o; } -checkUnnamed4784( +checkUnnamed5124( core.List<api.GoogleCloudVideointelligenceV1beta2DetectedLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2DetectedLandmark(o[0]); @@ -2207,8 +2648,8 @@ var o = new api.GoogleCloudVideointelligenceV1beta2TimestampedObject(); buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject < 3) { - o.attributes = buildUnnamed4783(); - o.landmarks = buildUnnamed4784(); + o.attributes = buildUnnamed5123(); + o.landmarks = buildUnnamed5124(); o.normalizedBoundingBox = buildGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox(); o.timeOffset = "foo"; @@ -2221,8 +2662,8 @@ api.GoogleCloudVideointelligenceV1beta2TimestampedObject o) { buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject < 3) { - checkUnnamed4783(o.attributes); - checkUnnamed4784(o.landmarks); + checkUnnamed5123(o.attributes); + checkUnnamed5124(o.landmarks); checkGoogleCloudVideointelligenceV1beta2NormalizedBoundingBox( o.normalizedBoundingBox); unittest.expect(o.timeOffset, unittest.equals('foo')); @@ -2230,7 +2671,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2TimestampedObject--; } -buildUnnamed4785() { +buildUnnamed5125() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1beta2DetectedAttribute()); @@ -2238,14 +2679,14 @@ return o; } -checkUnnamed4785( +checkUnnamed5125( core.List<api.GoogleCloudVideointelligenceV1beta2DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1beta2DetectedAttribute(o[1]); } -buildUnnamed4786() { +buildUnnamed5126() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2TimestampedObject>(); o.add(buildGoogleCloudVideointelligenceV1beta2TimestampedObject()); @@ -2253,7 +2694,7 @@ return o; } -checkUnnamed4786( +checkUnnamed5126( core.List<api.GoogleCloudVideointelligenceV1beta2TimestampedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2TimestampedObject(o[0]); @@ -2265,10 +2706,10 @@ var o = new api.GoogleCloudVideointelligenceV1beta2Track(); buildCounterGoogleCloudVideointelligenceV1beta2Track++; if (buildCounterGoogleCloudVideointelligenceV1beta2Track < 3) { - o.attributes = buildUnnamed4785(); + o.attributes = buildUnnamed5125(); o.confidence = 42.0; o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); - o.timestampedObjects = buildUnnamed4786(); + o.timestampedObjects = buildUnnamed5126(); } buildCounterGoogleCloudVideointelligenceV1beta2Track--; return o; @@ -2278,10 +2719,10 @@ api.GoogleCloudVideointelligenceV1beta2Track o) { buildCounterGoogleCloudVideointelligenceV1beta2Track++; if (buildCounterGoogleCloudVideointelligenceV1beta2Track < 3) { - checkUnnamed4785(o.attributes); + checkUnnamed5125(o.attributes); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); - checkUnnamed4786(o.timestampedObjects); + checkUnnamed5126(o.timestampedObjects); } buildCounterGoogleCloudVideointelligenceV1beta2Track--; } @@ -2319,7 +2760,38 @@ buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationProgress--; } -buildUnnamed4787() { +buildUnnamed5127() { + var o = + new core.List<api.GoogleCloudVideointelligenceV1beta2FaceAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceAnnotation()); + return o; +} + +checkUnnamed5127( + core.List<api.GoogleCloudVideointelligenceV1beta2FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2FaceAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1beta2FaceAnnotation(o[1]); +} + +buildUnnamed5128() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation()); + return o; +} + +checkUnnamed5128( + core.List<api.GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation(o[1]); +} + +buildUnnamed5129() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); @@ -2327,14 +2799,14 @@ return o; } -checkUnnamed4787( +checkUnnamed5129( core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); } -buildUnnamed4788() { +buildUnnamed5130() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation()); @@ -2342,7 +2814,7 @@ return o; } -checkUnnamed4788( +checkUnnamed5130( core.List<api.GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2350,7 +2822,7 @@ checkGoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation(o[1]); } -buildUnnamed4789() { +buildUnnamed5131() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation()); @@ -2358,7 +2830,7 @@ return o; } -checkUnnamed4789( +checkUnnamed5131( core.List<api.GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2366,7 +2838,23 @@ checkGoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation(o[1]); } -buildUnnamed4790() { +buildUnnamed5132() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation()); + return o; +} + +checkUnnamed5132( + core.List<api.GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation(o[1]); +} + +buildUnnamed5133() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); @@ -2374,14 +2862,14 @@ return o; } -checkUnnamed4790( +checkUnnamed5133( core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); } -buildUnnamed4791() { +buildUnnamed5134() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); @@ -2389,28 +2877,28 @@ return o; } -checkUnnamed4791( +checkUnnamed5134( core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); } -buildUnnamed4792() { +buildUnnamed5135() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); o.add(buildGoogleCloudVideointelligenceV1beta2VideoSegment()); return o; } -checkUnnamed4792( +checkUnnamed5135( core.List<api.GoogleCloudVideointelligenceV1beta2VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o[1]); } -buildUnnamed4793() { +buildUnnamed5136() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); @@ -2418,14 +2906,14 @@ return o; } -checkUnnamed4793( +checkUnnamed5136( core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); } -buildUnnamed4794() { +buildUnnamed5137() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2LabelAnnotation()); @@ -2433,14 +2921,14 @@ return o; } -checkUnnamed4794( +checkUnnamed5137( core.List<api.GoogleCloudVideointelligenceV1beta2LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1beta2LabelAnnotation(o[1]); } -buildUnnamed4795() { +buildUnnamed5138() { var o = new core .List<api.GoogleCloudVideointelligenceV1beta2SpeechTranscription>(); o.add(buildGoogleCloudVideointelligenceV1beta2SpeechTranscription()); @@ -2448,14 +2936,14 @@ return o; } -checkUnnamed4795( +checkUnnamed5138( core.List<api.GoogleCloudVideointelligenceV1beta2SpeechTranscription> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(o[0]); checkGoogleCloudVideointelligenceV1beta2SpeechTranscription(o[1]); } -buildUnnamed4796() { +buildUnnamed5139() { var o = new core.List<api.GoogleCloudVideointelligenceV1beta2TextAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1beta2TextAnnotation()); @@ -2463,7 +2951,7 @@ return o; } -checkUnnamed4796( +checkUnnamed5139( core.List<api.GoogleCloudVideointelligenceV1beta2TextAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1beta2TextAnnotation(o[0]); @@ -2480,18 +2968,21 @@ o.error = buildGoogleRpcStatus(); o.explicitAnnotation = buildGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation(); - o.frameLabelAnnotations = buildUnnamed4787(); + o.faceAnnotations = buildUnnamed5127(); + o.faceDetectionAnnotations = buildUnnamed5128(); + o.frameLabelAnnotations = buildUnnamed5129(); o.inputUri = "foo"; - o.logoRecognitionAnnotations = buildUnnamed4788(); - o.objectAnnotations = buildUnnamed4789(); + o.logoRecognitionAnnotations = buildUnnamed5130(); + o.objectAnnotations = buildUnnamed5131(); + o.personDetectionAnnotations = buildUnnamed5132(); o.segment = buildGoogleCloudVideointelligenceV1beta2VideoSegment(); - o.segmentLabelAnnotations = buildUnnamed4790(); - o.segmentPresenceLabelAnnotations = buildUnnamed4791(); - o.shotAnnotations = buildUnnamed4792(); - o.shotLabelAnnotations = buildUnnamed4793(); - o.shotPresenceLabelAnnotations = buildUnnamed4794(); - o.speechTranscriptions = buildUnnamed4795(); - o.textAnnotations = buildUnnamed4796(); + o.segmentLabelAnnotations = buildUnnamed5133(); + o.segmentPresenceLabelAnnotations = buildUnnamed5134(); + o.shotAnnotations = buildUnnamed5135(); + o.shotLabelAnnotations = buildUnnamed5136(); + o.shotPresenceLabelAnnotations = buildUnnamed5137(); + o.speechTranscriptions = buildUnnamed5138(); + o.textAnnotations = buildUnnamed5139(); } buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--; return o; @@ -2505,18 +2996,21 @@ checkGoogleRpcStatus(o.error); checkGoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4787(o.frameLabelAnnotations); + checkUnnamed5127(o.faceAnnotations); + checkUnnamed5128(o.faceDetectionAnnotations); + checkUnnamed5129(o.frameLabelAnnotations); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed4788(o.logoRecognitionAnnotations); - checkUnnamed4789(o.objectAnnotations); + checkUnnamed5130(o.logoRecognitionAnnotations); + checkUnnamed5131(o.objectAnnotations); + checkUnnamed5132(o.personDetectionAnnotations); checkGoogleCloudVideointelligenceV1beta2VideoSegment(o.segment); - checkUnnamed4790(o.segmentLabelAnnotations); - checkUnnamed4791(o.segmentPresenceLabelAnnotations); - checkUnnamed4792(o.shotAnnotations); - checkUnnamed4793(o.shotLabelAnnotations); - checkUnnamed4794(o.shotPresenceLabelAnnotations); - checkUnnamed4795(o.speechTranscriptions); - checkUnnamed4796(o.textAnnotations); + checkUnnamed5133(o.segmentLabelAnnotations); + checkUnnamed5134(o.segmentPresenceLabelAnnotations); + checkUnnamed5135(o.shotAnnotations); + checkUnnamed5136(o.shotLabelAnnotations); + checkUnnamed5137(o.shotPresenceLabelAnnotations); + checkUnnamed5138(o.speechTranscriptions); + checkUnnamed5139(o.textAnnotations); } buildCounterGoogleCloudVideointelligenceV1beta2VideoAnnotationResults--; } @@ -2571,7 +3065,7 @@ buildCounterGoogleCloudVideointelligenceV1beta2WordInfo--; } -buildUnnamed4797() { +buildUnnamed5140() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress()); @@ -2579,7 +3073,7 @@ return o; } -checkUnnamed4797( +checkUnnamed5140( core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2594,7 +3088,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed4797(); + o.annotationProgress = buildUnnamed5140(); } buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress--; return o; @@ -2605,12 +3099,12 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress < 3) { - checkUnnamed4797(o.annotationProgress); + checkUnnamed5140(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress--; } -buildUnnamed4798() { +buildUnnamed5141() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults()); @@ -2618,7 +3112,7 @@ return o; } -checkUnnamed4798( +checkUnnamed5141( core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2633,7 +3127,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed4798(); + o.annotationResults = buildUnnamed5141(); } buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse--; return o; @@ -2644,7 +3138,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse < 3) { - checkUnnamed4798(o.annotationResults); + checkUnnamed5141(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse--; } @@ -2721,7 +3215,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1Entity--; } -buildUnnamed4799() { +buildUnnamed5142() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame()); @@ -2729,7 +3223,7 @@ return o; } -checkUnnamed4799( +checkUnnamed5142( core.List<api.GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2746,7 +3240,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation < 3) { - o.frames = buildUnnamed4799(); + o.frames = buildUnnamed5142(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation--; @@ -2758,7 +3252,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation < 3) { - checkUnnamed4799(o.frames); + checkUnnamed5142(o.frames); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation--; @@ -2789,34 +3283,169 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame--; } -buildUnnamed4800() { +buildUnnamed5143() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceFrame>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceFrame()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceFrame()); + return o; +} + +checkUnnamed5143( + core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceFrame> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1FaceFrame(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1FaceFrame(o[1]); +} + +buildUnnamed5144() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceSegment>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceSegment()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceSegment()); + return o; +} + +checkUnnamed5144( + core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1FaceSegment(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1FaceSegment(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation = 0; +buildGoogleCloudVideointelligenceV1p1beta1FaceAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1p1beta1FaceAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation < 3) { + o.frames = buildUnnamed5143(); + o.segments = buildUnnamed5144(); + o.thumbnail = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p1beta1FaceAnnotation( + api.GoogleCloudVideointelligenceV1p1beta1FaceAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation < 3) { + checkUnnamed5143(o.frames); + checkUnnamed5144(o.segments); + unittest.expect(o.thumbnail, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceAnnotation--; +} + +core.int + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation() { + var o = + new api.GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation < + 3) { + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation( + api.GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation < + 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation--; +} + +buildUnnamed5145() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox()); + return o; +} + +checkUnnamed5145( + core.List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame = 0; +buildGoogleCloudVideointelligenceV1p1beta1FaceFrame() { + var o = new api.GoogleCloudVideointelligenceV1p1beta1FaceFrame(); + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame < 3) { + o.normalizedBoundingBoxes = buildUnnamed5145(); + o.timeOffset = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame--; + return o; +} + +checkGoogleCloudVideointelligenceV1p1beta1FaceFrame( + api.GoogleCloudVideointelligenceV1p1beta1FaceFrame o) { + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame < 3) { + checkUnnamed5145(o.normalizedBoundingBoxes); + unittest.expect(o.timeOffset, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceFrame--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment = 0; +buildGoogleCloudVideointelligenceV1p1beta1FaceSegment() { + var o = new api.GoogleCloudVideointelligenceV1p1beta1FaceSegment(); + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment < 3) { + o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment(); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment--; + return o; +} + +checkGoogleCloudVideointelligenceV1p1beta1FaceSegment( + api.GoogleCloudVideointelligenceV1p1beta1FaceSegment o) { + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment < 3) { + checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1FaceSegment--; +} + +buildUnnamed5146() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1Entity>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1Entity()); o.add(buildGoogleCloudVideointelligenceV1p1beta1Entity()); return o; } -checkUnnamed4800(core.List<api.GoogleCloudVideointelligenceV1p1beta1Entity> o) { +checkUnnamed5146(core.List<api.GoogleCloudVideointelligenceV1p1beta1Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1Entity(o[0]); checkGoogleCloudVideointelligenceV1p1beta1Entity(o[1]); } -buildUnnamed4801() { +buildUnnamed5147() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelFrame>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelFrame()); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelFrame()); return o; } -checkUnnamed4801( +checkUnnamed5147( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelFrame(o[1]); } -buildUnnamed4802() { +buildUnnamed5148() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelSegment>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelSegment()); @@ -2824,7 +3453,7 @@ return o; } -checkUnnamed4802( +checkUnnamed5148( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelSegment(o[0]); @@ -2836,10 +3465,10 @@ var o = new api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation(); buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation < 3) { - o.categoryEntities = buildUnnamed4800(); + o.categoryEntities = buildUnnamed5146(); o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity(); - o.frames = buildUnnamed4801(); - o.segments = buildUnnamed4802(); + o.frames = buildUnnamed5147(); + o.segments = buildUnnamed5148(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation--; @@ -2850,10 +3479,10 @@ api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation < 3) { - checkUnnamed4800(o.categoryEntities); + checkUnnamed5146(o.categoryEntities); checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity); - checkUnnamed4801(o.frames); - checkUnnamed4802(o.segments); + checkUnnamed5147(o.frames); + checkUnnamed5148(o.segments); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p1beta1LabelAnnotation--; @@ -2903,7 +3532,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1LabelSegment--; } -buildUnnamed4803() { +buildUnnamed5149() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment()); @@ -2911,21 +3540,21 @@ return o; } -checkUnnamed4803( +checkUnnamed5149( core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[1]); } -buildUnnamed4804() { +buildUnnamed5150() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1Track>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1Track()); o.add(buildGoogleCloudVideointelligenceV1p1beta1Track()); return o; } -checkUnnamed4804(core.List<api.GoogleCloudVideointelligenceV1p1beta1Track> o) { +checkUnnamed5150(core.List<api.GoogleCloudVideointelligenceV1p1beta1Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1Track(o[0]); checkGoogleCloudVideointelligenceV1p1beta1Track(o[1]); @@ -2941,8 +3570,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation < 3) { o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity(); - o.segments = buildUnnamed4803(); - o.tracks = buildUnnamed4804(); + o.segments = buildUnnamed5149(); + o.tracks = buildUnnamed5150(); } buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation--; return o; @@ -2954,8 +3583,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation < 3) { checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity); - checkUnnamed4803(o.segments); - checkUnnamed4804(o.tracks); + checkUnnamed5149(o.segments); + checkUnnamed5150(o.tracks); } buildCounterGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation--; } @@ -2989,7 +3618,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox--; } -buildUnnamed4805() { +buildUnnamed5151() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1NormalizedVertex()); @@ -2997,7 +3626,7 @@ return o; } -checkUnnamed4805( +checkUnnamed5151( core.List<api.GoogleCloudVideointelligenceV1p1beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1NormalizedVertex(o[0]); @@ -3011,7 +3640,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly < 3) { - o.vertices = buildUnnamed4805(); + o.vertices = buildUnnamed5151(); } buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly--; return o; @@ -3022,7 +3651,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly < 3) { - checkUnnamed4805(o.vertices); + checkUnnamed5151(o.vertices); } buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly--; } @@ -3049,7 +3678,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1NormalizedVertex--; } -buildUnnamed4806() { +buildUnnamed5152() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame()); @@ -3057,7 +3686,7 @@ return o; } -checkUnnamed4806( +checkUnnamed5152( core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame(o[0]); @@ -3075,7 +3704,7 @@ 3) { o.confidence = 42.0; o.entity = buildGoogleCloudVideointelligenceV1p1beta1Entity(); - o.frames = buildUnnamed4806(); + o.frames = buildUnnamed5152(); o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment(); o.trackId = "foo"; o.version = "foo"; @@ -3091,7 +3720,7 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p1beta1Entity(o.entity); - checkUnnamed4806(o.frames); + checkUnnamed5152(o.frames); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment); unittest.expect(o.trackId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -3126,14 +3755,54 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame--; } -buildUnnamed4807() { +buildUnnamed5153() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1Track>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1Track()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1Track()); + return o; +} + +checkUnnamed5153(core.List<api.GoogleCloudVideointelligenceV1p1beta1Track> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1Track(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1Track(o[1]); +} + +core.int + buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation() { + var o = + new api.GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation < + 3) { + o.tracks = buildUnnamed5153(); + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation( + api.GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation < + 3) { + checkUnnamed5153(o.tracks); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation--; +} + +buildUnnamed5154() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1WordInfo>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1WordInfo()); o.add(buildGoogleCloudVideointelligenceV1p1beta1WordInfo()); return o; } -checkUnnamed4807( +checkUnnamed5154( core.List<api.GoogleCloudVideointelligenceV1p1beta1WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1WordInfo(o[0]); @@ -3151,7 +3820,7 @@ 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed4807(); + o.words = buildUnnamed5154(); } buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative--; return o; @@ -3164,12 +3833,12 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed4807(o.words); + checkUnnamed5154(o.words); } buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative--; } -buildUnnamed4808() { +buildUnnamed5155() { var o = new core.List< api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative>(); o.add( @@ -3179,7 +3848,7 @@ return o; } -checkUnnamed4808( +checkUnnamed5155( core.List< api.GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative> o) { @@ -3195,7 +3864,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription < 3) { - o.alternatives = buildUnnamed4808(); + o.alternatives = buildUnnamed5155(); o.languageCode = "foo"; } buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription--; @@ -3207,20 +3876,20 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription < 3) { - checkUnnamed4808(o.alternatives); + checkUnnamed5155(o.alternatives); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p1beta1SpeechTranscription--; } -buildUnnamed4809() { +buildUnnamed5156() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1TextSegment>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1TextSegment()); o.add(buildGoogleCloudVideointelligenceV1p1beta1TextSegment()); return o; } -checkUnnamed4809( +checkUnnamed5156( core.List<api.GoogleCloudVideointelligenceV1p1beta1TextSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1TextSegment(o[0]); @@ -3232,7 +3901,7 @@ var o = new api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation(); buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation < 3) { - o.segments = buildUnnamed4809(); + o.segments = buildUnnamed5156(); o.text = "foo"; o.version = "foo"; } @@ -3244,7 +3913,7 @@ api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextAnnotation < 3) { - checkUnnamed4809(o.segments); + checkUnnamed5156(o.segments); unittest.expect(o.text, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -3275,14 +3944,14 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1TextFrame--; } -buildUnnamed4810() { +buildUnnamed5157() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1TextFrame>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1TextFrame()); o.add(buildGoogleCloudVideointelligenceV1p1beta1TextFrame()); return o; } -checkUnnamed4810( +checkUnnamed5157( core.List<api.GoogleCloudVideointelligenceV1p1beta1TextFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1TextFrame(o[0]); @@ -3295,7 +3964,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment < 3) { o.confidence = 42.0; - o.frames = buildUnnamed4810(); + o.frames = buildUnnamed5157(); o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment(); } buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment--; @@ -3307,13 +3976,13 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed4810(o.frames); + checkUnnamed5157(o.frames); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment); } buildCounterGoogleCloudVideointelligenceV1p1beta1TextSegment--; } -buildUnnamed4811() { +buildUnnamed5158() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute()); @@ -3321,14 +3990,14 @@ return o; } -checkUnnamed4811( +checkUnnamed5158( core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[1]); } -buildUnnamed4812() { +buildUnnamed5159() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedLandmark()); @@ -3336,7 +4005,7 @@ return o; } -checkUnnamed4812( +checkUnnamed5159( core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1DetectedLandmark(o[0]); @@ -3348,8 +4017,8 @@ var o = new api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject(); buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject < 3) { - o.attributes = buildUnnamed4811(); - o.landmarks = buildUnnamed4812(); + o.attributes = buildUnnamed5158(); + o.landmarks = buildUnnamed5159(); o.normalizedBoundingBox = buildGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox(); o.timeOffset = "foo"; @@ -3362,8 +4031,8 @@ api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject o) { buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject < 3) { - checkUnnamed4811(o.attributes); - checkUnnamed4812(o.landmarks); + checkUnnamed5158(o.attributes); + checkUnnamed5159(o.landmarks); checkGoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox( o.normalizedBoundingBox); unittest.expect(o.timeOffset, unittest.equals('foo')); @@ -3371,7 +4040,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1TimestampedObject--; } -buildUnnamed4813() { +buildUnnamed5160() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1DetectedAttribute()); @@ -3379,14 +4048,14 @@ return o; } -checkUnnamed4813( +checkUnnamed5160( core.List<api.GoogleCloudVideointelligenceV1p1beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p1beta1DetectedAttribute(o[1]); } -buildUnnamed4814() { +buildUnnamed5161() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1TimestampedObject()); @@ -3394,7 +4063,7 @@ return o; } -checkUnnamed4814( +checkUnnamed5161( core.List<api.GoogleCloudVideointelligenceV1p1beta1TimestampedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1TimestampedObject(o[0]); @@ -3406,10 +4075,10 @@ var o = new api.GoogleCloudVideointelligenceV1p1beta1Track(); buildCounterGoogleCloudVideointelligenceV1p1beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1Track < 3) { - o.attributes = buildUnnamed4813(); + o.attributes = buildUnnamed5160(); o.confidence = 42.0; o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment(); - o.timestampedObjects = buildUnnamed4814(); + o.timestampedObjects = buildUnnamed5161(); } buildCounterGoogleCloudVideointelligenceV1p1beta1Track--; return o; @@ -3419,10 +4088,10 @@ api.GoogleCloudVideointelligenceV1p1beta1Track o) { buildCounterGoogleCloudVideointelligenceV1p1beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p1beta1Track < 3) { - checkUnnamed4813(o.attributes); + checkUnnamed5160(o.attributes); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment); - checkUnnamed4814(o.timestampedObjects); + checkUnnamed5161(o.timestampedObjects); } buildCounterGoogleCloudVideointelligenceV1p1beta1Track--; } @@ -3462,7 +4131,38 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress--; } -buildUnnamed4815() { +buildUnnamed5162() { + var o = + new core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceAnnotation()); + return o; +} + +checkUnnamed5162( + core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1FaceAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1FaceAnnotation(o[1]); +} + +buildUnnamed5163() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation()); + return o; +} + +checkUnnamed5163( + core.List<api.GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation(o[1]); +} + +buildUnnamed5164() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation()); @@ -3470,14 +4170,14 @@ return o; } -checkUnnamed4815( +checkUnnamed5164( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]); } -buildUnnamed4816() { +buildUnnamed5165() { var o = new core.List< api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation()); @@ -3485,7 +4185,7 @@ return o; } -checkUnnamed4816( +checkUnnamed5165( core.List< api.GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation> o) { @@ -3494,7 +4194,7 @@ checkGoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation(o[1]); } -buildUnnamed4817() { +buildUnnamed5166() { var o = new core.List< api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation()); @@ -3502,7 +4202,7 @@ return o; } -checkUnnamed4817( +checkUnnamed5166( core.List<api.GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -3510,7 +4210,24 @@ checkGoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation(o[1]); } -buildUnnamed4818() { +buildUnnamed5167() { + var o = new core.List< + api.GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation()); + return o; +} + +checkUnnamed5167( + core.List< + api.GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation(o[1]); +} + +buildUnnamed5168() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation()); @@ -3518,14 +4235,14 @@ return o; } -checkUnnamed4818( +checkUnnamed5168( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]); } -buildUnnamed4819() { +buildUnnamed5169() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation()); @@ -3533,14 +4250,14 @@ return o; } -checkUnnamed4819( +checkUnnamed5169( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]); } -buildUnnamed4820() { +buildUnnamed5170() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1VideoSegment()); @@ -3548,14 +4265,14 @@ return o; } -checkUnnamed4820( +checkUnnamed5170( core.List<api.GoogleCloudVideointelligenceV1p1beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o[1]); } -buildUnnamed4821() { +buildUnnamed5171() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation()); @@ -3563,14 +4280,14 @@ return o; } -checkUnnamed4821( +checkUnnamed5171( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]); } -buildUnnamed4822() { +buildUnnamed5172() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation()); @@ -3578,14 +4295,14 @@ return o; } -checkUnnamed4822( +checkUnnamed5172( core.List<api.GoogleCloudVideointelligenceV1p1beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(o[1]); } -buildUnnamed4823() { +buildUnnamed5173() { var o = new core .List<api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1SpeechTranscription()); @@ -3593,14 +4310,14 @@ return o; } -checkUnnamed4823( +checkUnnamed5173( core.List<api.GoogleCloudVideointelligenceV1p1beta1SpeechTranscription> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(o[0]); checkGoogleCloudVideointelligenceV1p1beta1SpeechTranscription(o[1]); } -buildUnnamed4824() { +buildUnnamed5174() { var o = new core.List<api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p1beta1TextAnnotation()); @@ -3608,7 +4325,7 @@ return o; } -checkUnnamed4824( +checkUnnamed5174( core.List<api.GoogleCloudVideointelligenceV1p1beta1TextAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p1beta1TextAnnotation(o[0]); @@ -3625,18 +4342,21 @@ o.error = buildGoogleRpcStatus(); o.explicitAnnotation = buildGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation(); - o.frameLabelAnnotations = buildUnnamed4815(); + o.faceAnnotations = buildUnnamed5162(); + o.faceDetectionAnnotations = buildUnnamed5163(); + o.frameLabelAnnotations = buildUnnamed5164(); o.inputUri = "foo"; - o.logoRecognitionAnnotations = buildUnnamed4816(); - o.objectAnnotations = buildUnnamed4817(); + o.logoRecognitionAnnotations = buildUnnamed5165(); + o.objectAnnotations = buildUnnamed5166(); + o.personDetectionAnnotations = buildUnnamed5167(); o.segment = buildGoogleCloudVideointelligenceV1p1beta1VideoSegment(); - o.segmentLabelAnnotations = buildUnnamed4818(); - o.segmentPresenceLabelAnnotations = buildUnnamed4819(); - o.shotAnnotations = buildUnnamed4820(); - o.shotLabelAnnotations = buildUnnamed4821(); - o.shotPresenceLabelAnnotations = buildUnnamed4822(); - o.speechTranscriptions = buildUnnamed4823(); - o.textAnnotations = buildUnnamed4824(); + o.segmentLabelAnnotations = buildUnnamed5168(); + o.segmentPresenceLabelAnnotations = buildUnnamed5169(); + o.shotAnnotations = buildUnnamed5170(); + o.shotLabelAnnotations = buildUnnamed5171(); + o.shotPresenceLabelAnnotations = buildUnnamed5172(); + o.speechTranscriptions = buildUnnamed5173(); + o.textAnnotations = buildUnnamed5174(); } buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults--; return o; @@ -3650,18 +4370,21 @@ checkGoogleRpcStatus(o.error); checkGoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4815(o.frameLabelAnnotations); + checkUnnamed5162(o.faceAnnotations); + checkUnnamed5163(o.faceDetectionAnnotations); + checkUnnamed5164(o.frameLabelAnnotations); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed4816(o.logoRecognitionAnnotations); - checkUnnamed4817(o.objectAnnotations); + checkUnnamed5165(o.logoRecognitionAnnotations); + checkUnnamed5166(o.objectAnnotations); + checkUnnamed5167(o.personDetectionAnnotations); checkGoogleCloudVideointelligenceV1p1beta1VideoSegment(o.segment); - checkUnnamed4818(o.segmentLabelAnnotations); - checkUnnamed4819(o.segmentPresenceLabelAnnotations); - checkUnnamed4820(o.shotAnnotations); - checkUnnamed4821(o.shotLabelAnnotations); - checkUnnamed4822(o.shotPresenceLabelAnnotations); - checkUnnamed4823(o.speechTranscriptions); - checkUnnamed4824(o.textAnnotations); + checkUnnamed5168(o.segmentLabelAnnotations); + checkUnnamed5169(o.segmentPresenceLabelAnnotations); + checkUnnamed5170(o.shotAnnotations); + checkUnnamed5171(o.shotLabelAnnotations); + checkUnnamed5172(o.shotPresenceLabelAnnotations); + checkUnnamed5173(o.speechTranscriptions); + checkUnnamed5174(o.textAnnotations); } buildCounterGoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults--; } @@ -3716,7 +4439,7 @@ buildCounterGoogleCloudVideointelligenceV1p1beta1WordInfo--; } -buildUnnamed4825() { +buildUnnamed5175() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress()); @@ -3724,7 +4447,7 @@ return o; } -checkUnnamed4825( +checkUnnamed5175( core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); @@ -3739,7 +4462,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed4825(); + o.annotationProgress = buildUnnamed5175(); } buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress--; return o; @@ -3750,12 +4473,12 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress < 3) { - checkUnnamed4825(o.annotationProgress); + checkUnnamed5175(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoProgress--; } -buildUnnamed4826() { +buildUnnamed5176() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults()); @@ -3763,7 +4486,7 @@ return o; } -checkUnnamed4826( +checkUnnamed5176( core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); @@ -3778,7 +4501,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed4826(); + o.annotationResults = buildUnnamed5176(); } buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse--; return o; @@ -3789,7 +4512,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse < 3) { - checkUnnamed4826(o.annotationResults); + checkUnnamed5176(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1p2beta1AnnotateVideoResponse--; } @@ -3866,7 +4589,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1Entity--; } -buildUnnamed4827() { +buildUnnamed5177() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame()); @@ -3874,7 +4597,7 @@ return o; } -checkUnnamed4827( +checkUnnamed5177( core.List<api.GoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame> o) { unittest.expect(o, unittest.hasLength(2)); @@ -3891,7 +4614,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation < 3) { - o.frames = buildUnnamed4827(); + o.frames = buildUnnamed5177(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation--; @@ -3903,7 +4626,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation < 3) { - checkUnnamed4827(o.frames); + checkUnnamed5177(o.frames); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation--; @@ -3934,34 +4657,169 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1ExplicitContentFrame--; } -buildUnnamed4828() { +buildUnnamed5178() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceFrame>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceFrame()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceFrame()); + return o; +} + +checkUnnamed5178( + core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceFrame> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1FaceFrame(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1FaceFrame(o[1]); +} + +buildUnnamed5179() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceSegment>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceSegment()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceSegment()); + return o; +} + +checkUnnamed5179( + core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1FaceSegment(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1FaceSegment(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation = 0; +buildGoogleCloudVideointelligenceV1p2beta1FaceAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1p2beta1FaceAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation < 3) { + o.frames = buildUnnamed5178(); + o.segments = buildUnnamed5179(); + o.thumbnail = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p2beta1FaceAnnotation( + api.GoogleCloudVideointelligenceV1p2beta1FaceAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation < 3) { + checkUnnamed5178(o.frames); + checkUnnamed5179(o.segments); + unittest.expect(o.thumbnail, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceAnnotation--; +} + +core.int + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation() { + var o = + new api.GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation < + 3) { + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation( + api.GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation < + 3) { + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation--; +} + +buildUnnamed5180() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox()); + return o; +} + +checkUnnamed5180( + core.List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame = 0; +buildGoogleCloudVideointelligenceV1p2beta1FaceFrame() { + var o = new api.GoogleCloudVideointelligenceV1p2beta1FaceFrame(); + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame < 3) { + o.normalizedBoundingBoxes = buildUnnamed5180(); + o.timeOffset = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame--; + return o; +} + +checkGoogleCloudVideointelligenceV1p2beta1FaceFrame( + api.GoogleCloudVideointelligenceV1p2beta1FaceFrame o) { + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame < 3) { + checkUnnamed5180(o.normalizedBoundingBoxes); + unittest.expect(o.timeOffset, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceFrame--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment = 0; +buildGoogleCloudVideointelligenceV1p2beta1FaceSegment() { + var o = new api.GoogleCloudVideointelligenceV1p2beta1FaceSegment(); + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment < 3) { + o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment(); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment--; + return o; +} + +checkGoogleCloudVideointelligenceV1p2beta1FaceSegment( + api.GoogleCloudVideointelligenceV1p2beta1FaceSegment o) { + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment < 3) { + checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1FaceSegment--; +} + +buildUnnamed5181() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1Entity>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1Entity()); o.add(buildGoogleCloudVideointelligenceV1p2beta1Entity()); return o; } -checkUnnamed4828(core.List<api.GoogleCloudVideointelligenceV1p2beta1Entity> o) { +checkUnnamed5181(core.List<api.GoogleCloudVideointelligenceV1p2beta1Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1Entity(o[0]); checkGoogleCloudVideointelligenceV1p2beta1Entity(o[1]); } -buildUnnamed4829() { +buildUnnamed5182() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelFrame>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelFrame()); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelFrame()); return o; } -checkUnnamed4829( +checkUnnamed5182( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelFrame(o[1]); } -buildUnnamed4830() { +buildUnnamed5183() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelSegment>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelSegment()); @@ -3969,7 +4827,7 @@ return o; } -checkUnnamed4830( +checkUnnamed5183( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelSegment(o[0]); @@ -3981,10 +4839,10 @@ var o = new api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation(); buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation < 3) { - o.categoryEntities = buildUnnamed4828(); + o.categoryEntities = buildUnnamed5181(); o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity(); - o.frames = buildUnnamed4829(); - o.segments = buildUnnamed4830(); + o.frames = buildUnnamed5182(); + o.segments = buildUnnamed5183(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation--; @@ -3995,10 +4853,10 @@ api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation < 3) { - checkUnnamed4828(o.categoryEntities); + checkUnnamed5181(o.categoryEntities); checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity); - checkUnnamed4829(o.frames); - checkUnnamed4830(o.segments); + checkUnnamed5182(o.frames); + checkUnnamed5183(o.segments); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p2beta1LabelAnnotation--; @@ -4048,7 +4906,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1LabelSegment--; } -buildUnnamed4831() { +buildUnnamed5184() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment()); @@ -4056,21 +4914,21 @@ return o; } -checkUnnamed4831( +checkUnnamed5184( core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[1]); } -buildUnnamed4832() { +buildUnnamed5185() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1Track>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1Track()); o.add(buildGoogleCloudVideointelligenceV1p2beta1Track()); return o; } -checkUnnamed4832(core.List<api.GoogleCloudVideointelligenceV1p2beta1Track> o) { +checkUnnamed5185(core.List<api.GoogleCloudVideointelligenceV1p2beta1Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1Track(o[0]); checkGoogleCloudVideointelligenceV1p2beta1Track(o[1]); @@ -4086,8 +4944,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation < 3) { o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity(); - o.segments = buildUnnamed4831(); - o.tracks = buildUnnamed4832(); + o.segments = buildUnnamed5184(); + o.tracks = buildUnnamed5185(); } buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation--; return o; @@ -4099,8 +4957,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation < 3) { checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity); - checkUnnamed4831(o.segments); - checkUnnamed4832(o.tracks); + checkUnnamed5184(o.segments); + checkUnnamed5185(o.tracks); } buildCounterGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation--; } @@ -4134,7 +4992,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox--; } -buildUnnamed4833() { +buildUnnamed5186() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1NormalizedVertex()); @@ -4142,7 +5000,7 @@ return o; } -checkUnnamed4833( +checkUnnamed5186( core.List<api.GoogleCloudVideointelligenceV1p2beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1NormalizedVertex(o[0]); @@ -4156,7 +5014,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly < 3) { - o.vertices = buildUnnamed4833(); + o.vertices = buildUnnamed5186(); } buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly--; return o; @@ -4167,7 +5025,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly < 3) { - checkUnnamed4833(o.vertices); + checkUnnamed5186(o.vertices); } buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingPoly--; } @@ -4194,7 +5052,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1NormalizedVertex--; } -buildUnnamed4834() { +buildUnnamed5187() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame()); @@ -4202,7 +5060,7 @@ return o; } -checkUnnamed4834( +checkUnnamed5187( core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame(o[0]); @@ -4220,7 +5078,7 @@ 3) { o.confidence = 42.0; o.entity = buildGoogleCloudVideointelligenceV1p2beta1Entity(); - o.frames = buildUnnamed4834(); + o.frames = buildUnnamed5187(); o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment(); o.trackId = "foo"; o.version = "foo"; @@ -4236,7 +5094,7 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p2beta1Entity(o.entity); - checkUnnamed4834(o.frames); + checkUnnamed5187(o.frames); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment); unittest.expect(o.trackId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -4271,14 +5129,54 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1ObjectTrackingFrame--; } -buildUnnamed4835() { +buildUnnamed5188() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1Track>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1Track()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1Track()); + return o; +} + +checkUnnamed5188(core.List<api.GoogleCloudVideointelligenceV1p2beta1Track> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1Track(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1Track(o[1]); +} + +core.int + buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation = + 0; +buildGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation() { + var o = + new api.GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation < + 3) { + o.tracks = buildUnnamed5188(); + o.version = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation( + api.GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation < + 3) { + checkUnnamed5188(o.tracks); + unittest.expect(o.version, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation--; +} + +buildUnnamed5189() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1WordInfo>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1WordInfo()); o.add(buildGoogleCloudVideointelligenceV1p2beta1WordInfo()); return o; } -checkUnnamed4835( +checkUnnamed5189( core.List<api.GoogleCloudVideointelligenceV1p2beta1WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1WordInfo(o[0]); @@ -4296,7 +5194,7 @@ 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed4835(); + o.words = buildUnnamed5189(); } buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative--; return o; @@ -4309,12 +5207,12 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed4835(o.words); + checkUnnamed5189(o.words); } buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative--; } -buildUnnamed4836() { +buildUnnamed5190() { var o = new core.List< api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative>(); o.add( @@ -4324,7 +5222,7 @@ return o; } -checkUnnamed4836( +checkUnnamed5190( core.List< api.GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative> o) { @@ -4340,7 +5238,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription < 3) { - o.alternatives = buildUnnamed4836(); + o.alternatives = buildUnnamed5190(); o.languageCode = "foo"; } buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription--; @@ -4352,20 +5250,20 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription < 3) { - checkUnnamed4836(o.alternatives); + checkUnnamed5190(o.alternatives); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p2beta1SpeechTranscription--; } -buildUnnamed4837() { +buildUnnamed5191() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1TextSegment>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1TextSegment()); o.add(buildGoogleCloudVideointelligenceV1p2beta1TextSegment()); return o; } -checkUnnamed4837( +checkUnnamed5191( core.List<api.GoogleCloudVideointelligenceV1p2beta1TextSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1TextSegment(o[0]); @@ -4377,7 +5275,7 @@ var o = new api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation(); buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation < 3) { - o.segments = buildUnnamed4837(); + o.segments = buildUnnamed5191(); o.text = "foo"; o.version = "foo"; } @@ -4389,7 +5287,7 @@ api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextAnnotation < 3) { - checkUnnamed4837(o.segments); + checkUnnamed5191(o.segments); unittest.expect(o.text, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -4420,14 +5318,14 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1TextFrame--; } -buildUnnamed4838() { +buildUnnamed5192() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1TextFrame>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1TextFrame()); o.add(buildGoogleCloudVideointelligenceV1p2beta1TextFrame()); return o; } -checkUnnamed4838( +checkUnnamed5192( core.List<api.GoogleCloudVideointelligenceV1p2beta1TextFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1TextFrame(o[0]); @@ -4440,7 +5338,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment < 3) { o.confidence = 42.0; - o.frames = buildUnnamed4838(); + o.frames = buildUnnamed5192(); o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment(); } buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment--; @@ -4452,13 +5350,13 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed4838(o.frames); + checkUnnamed5192(o.frames); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment); } buildCounterGoogleCloudVideointelligenceV1p2beta1TextSegment--; } -buildUnnamed4839() { +buildUnnamed5193() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute()); @@ -4466,14 +5364,14 @@ return o; } -checkUnnamed4839( +checkUnnamed5193( core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[1]); } -buildUnnamed4840() { +buildUnnamed5194() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedLandmark()); @@ -4481,7 +5379,7 @@ return o; } -checkUnnamed4840( +checkUnnamed5194( core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1DetectedLandmark(o[0]); @@ -4493,8 +5391,8 @@ var o = new api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject(); buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject < 3) { - o.attributes = buildUnnamed4839(); - o.landmarks = buildUnnamed4840(); + o.attributes = buildUnnamed5193(); + o.landmarks = buildUnnamed5194(); o.normalizedBoundingBox = buildGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox(); o.timeOffset = "foo"; @@ -4507,8 +5405,8 @@ api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject o) { buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject < 3) { - checkUnnamed4839(o.attributes); - checkUnnamed4840(o.landmarks); + checkUnnamed5193(o.attributes); + checkUnnamed5194(o.landmarks); checkGoogleCloudVideointelligenceV1p2beta1NormalizedBoundingBox( o.normalizedBoundingBox); unittest.expect(o.timeOffset, unittest.equals('foo')); @@ -4516,7 +5414,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1TimestampedObject--; } -buildUnnamed4841() { +buildUnnamed5195() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1DetectedAttribute()); @@ -4524,14 +5422,14 @@ return o; } -checkUnnamed4841( +checkUnnamed5195( core.List<api.GoogleCloudVideointelligenceV1p2beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p2beta1DetectedAttribute(o[1]); } -buildUnnamed4842() { +buildUnnamed5196() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1TimestampedObject()); @@ -4539,7 +5437,7 @@ return o; } -checkUnnamed4842( +checkUnnamed5196( core.List<api.GoogleCloudVideointelligenceV1p2beta1TimestampedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1TimestampedObject(o[0]); @@ -4551,10 +5449,10 @@ var o = new api.GoogleCloudVideointelligenceV1p2beta1Track(); buildCounterGoogleCloudVideointelligenceV1p2beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1Track < 3) { - o.attributes = buildUnnamed4841(); + o.attributes = buildUnnamed5195(); o.confidence = 42.0; o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment(); - o.timestampedObjects = buildUnnamed4842(); + o.timestampedObjects = buildUnnamed5196(); } buildCounterGoogleCloudVideointelligenceV1p2beta1Track--; return o; @@ -4564,10 +5462,10 @@ api.GoogleCloudVideointelligenceV1p2beta1Track o) { buildCounterGoogleCloudVideointelligenceV1p2beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p2beta1Track < 3) { - checkUnnamed4841(o.attributes); + checkUnnamed5195(o.attributes); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment); - checkUnnamed4842(o.timestampedObjects); + checkUnnamed5196(o.timestampedObjects); } buildCounterGoogleCloudVideointelligenceV1p2beta1Track--; } @@ -4607,7 +5505,38 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationProgress--; } -buildUnnamed4843() { +buildUnnamed5197() { + var o = + new core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceAnnotation()); + return o; +} + +checkUnnamed5197( + core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1FaceAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1FaceAnnotation(o[1]); +} + +buildUnnamed5198() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation()); + return o; +} + +checkUnnamed5198( + core.List<api.GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation(o[1]); +} + +buildUnnamed5199() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation()); @@ -4615,14 +5544,14 @@ return o; } -checkUnnamed4843( +checkUnnamed5199( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]); } -buildUnnamed4844() { +buildUnnamed5200() { var o = new core.List< api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation()); @@ -4630,7 +5559,7 @@ return o; } -checkUnnamed4844( +checkUnnamed5200( core.List< api.GoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation> o) { @@ -4639,7 +5568,7 @@ checkGoogleCloudVideointelligenceV1p2beta1LogoRecognitionAnnotation(o[1]); } -buildUnnamed4845() { +buildUnnamed5201() { var o = new core.List< api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation()); @@ -4647,7 +5576,7 @@ return o; } -checkUnnamed4845( +checkUnnamed5201( core.List<api.GoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -4655,7 +5584,24 @@ checkGoogleCloudVideointelligenceV1p2beta1ObjectTrackingAnnotation(o[1]); } -buildUnnamed4846() { +buildUnnamed5202() { + var o = new core.List< + api.GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation()); + return o; +} + +checkUnnamed5202( + core.List< + api.GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation(o[1]); +} + +buildUnnamed5203() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation()); @@ -4663,14 +5609,14 @@ return o; } -checkUnnamed4846( +checkUnnamed5203( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]); } -buildUnnamed4847() { +buildUnnamed5204() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation()); @@ -4678,14 +5624,14 @@ return o; } -checkUnnamed4847( +checkUnnamed5204( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]); } -buildUnnamed4848() { +buildUnnamed5205() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1VideoSegment()); @@ -4693,14 +5639,14 @@ return o; } -checkUnnamed4848( +checkUnnamed5205( core.List<api.GoogleCloudVideointelligenceV1p2beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o[1]); } -buildUnnamed4849() { +buildUnnamed5206() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation()); @@ -4708,14 +5654,14 @@ return o; } -checkUnnamed4849( +checkUnnamed5206( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]); } -buildUnnamed4850() { +buildUnnamed5207() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation()); @@ -4723,14 +5669,14 @@ return o; } -checkUnnamed4850( +checkUnnamed5207( core.List<api.GoogleCloudVideointelligenceV1p2beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(o[1]); } -buildUnnamed4851() { +buildUnnamed5208() { var o = new core .List<api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1SpeechTranscription()); @@ -4738,14 +5684,14 @@ return o; } -checkUnnamed4851( +checkUnnamed5208( core.List<api.GoogleCloudVideointelligenceV1p2beta1SpeechTranscription> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(o[0]); checkGoogleCloudVideointelligenceV1p2beta1SpeechTranscription(o[1]); } -buildUnnamed4852() { +buildUnnamed5209() { var o = new core.List<api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p2beta1TextAnnotation()); @@ -4753,7 +5699,7 @@ return o; } -checkUnnamed4852( +checkUnnamed5209( core.List<api.GoogleCloudVideointelligenceV1p2beta1TextAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p2beta1TextAnnotation(o[0]); @@ -4770,18 +5716,21 @@ o.error = buildGoogleRpcStatus(); o.explicitAnnotation = buildGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation(); - o.frameLabelAnnotations = buildUnnamed4843(); + o.faceAnnotations = buildUnnamed5197(); + o.faceDetectionAnnotations = buildUnnamed5198(); + o.frameLabelAnnotations = buildUnnamed5199(); o.inputUri = "foo"; - o.logoRecognitionAnnotations = buildUnnamed4844(); - o.objectAnnotations = buildUnnamed4845(); + o.logoRecognitionAnnotations = buildUnnamed5200(); + o.objectAnnotations = buildUnnamed5201(); + o.personDetectionAnnotations = buildUnnamed5202(); o.segment = buildGoogleCloudVideointelligenceV1p2beta1VideoSegment(); - o.segmentLabelAnnotations = buildUnnamed4846(); - o.segmentPresenceLabelAnnotations = buildUnnamed4847(); - o.shotAnnotations = buildUnnamed4848(); - o.shotLabelAnnotations = buildUnnamed4849(); - o.shotPresenceLabelAnnotations = buildUnnamed4850(); - o.speechTranscriptions = buildUnnamed4851(); - o.textAnnotations = buildUnnamed4852(); + o.segmentLabelAnnotations = buildUnnamed5203(); + o.segmentPresenceLabelAnnotations = buildUnnamed5204(); + o.shotAnnotations = buildUnnamed5205(); + o.shotLabelAnnotations = buildUnnamed5206(); + o.shotPresenceLabelAnnotations = buildUnnamed5207(); + o.speechTranscriptions = buildUnnamed5208(); + o.textAnnotations = buildUnnamed5209(); } buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults--; return o; @@ -4795,18 +5744,21 @@ checkGoogleRpcStatus(o.error); checkGoogleCloudVideointelligenceV1p2beta1ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4843(o.frameLabelAnnotations); + checkUnnamed5197(o.faceAnnotations); + checkUnnamed5198(o.faceDetectionAnnotations); + checkUnnamed5199(o.frameLabelAnnotations); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed4844(o.logoRecognitionAnnotations); - checkUnnamed4845(o.objectAnnotations); + checkUnnamed5200(o.logoRecognitionAnnotations); + checkUnnamed5201(o.objectAnnotations); + checkUnnamed5202(o.personDetectionAnnotations); checkGoogleCloudVideointelligenceV1p2beta1VideoSegment(o.segment); - checkUnnamed4846(o.segmentLabelAnnotations); - checkUnnamed4847(o.segmentPresenceLabelAnnotations); - checkUnnamed4848(o.shotAnnotations); - checkUnnamed4849(o.shotLabelAnnotations); - checkUnnamed4850(o.shotPresenceLabelAnnotations); - checkUnnamed4851(o.speechTranscriptions); - checkUnnamed4852(o.textAnnotations); + checkUnnamed5203(o.segmentLabelAnnotations); + checkUnnamed5204(o.segmentPresenceLabelAnnotations); + checkUnnamed5205(o.shotAnnotations); + checkUnnamed5206(o.shotLabelAnnotations); + checkUnnamed5207(o.shotPresenceLabelAnnotations); + checkUnnamed5208(o.speechTranscriptions); + checkUnnamed5209(o.textAnnotations); } buildCounterGoogleCloudVideointelligenceV1p2beta1VideoAnnotationResults--; } @@ -4861,7 +5813,7 @@ buildCounterGoogleCloudVideointelligenceV1p2beta1WordInfo--; } -buildUnnamed4853() { +buildUnnamed5210() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress()); @@ -4869,7 +5821,7 @@ return o; } -checkUnnamed4853( +checkUnnamed5210( core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress> o) { unittest.expect(o, unittest.hasLength(2)); @@ -4884,7 +5836,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress < 3) { - o.annotationProgress = buildUnnamed4853(); + o.annotationProgress = buildUnnamed5210(); } buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress--; return o; @@ -4895,12 +5847,12 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress < 3) { - checkUnnamed4853(o.annotationProgress); + checkUnnamed5210(o.annotationProgress); } buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoProgress--; } -buildUnnamed4854() { +buildUnnamed5211() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults()); @@ -4908,7 +5860,7 @@ return o; } -checkUnnamed4854( +checkUnnamed5211( core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults> o) { unittest.expect(o, unittest.hasLength(2)); @@ -4923,7 +5875,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse < 3) { - o.annotationResults = buildUnnamed4854(); + o.annotationResults = buildUnnamed5211(); } buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse--; return o; @@ -4934,7 +5886,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse < 3) { - checkUnnamed4854(o.annotationResults); + checkUnnamed5211(o.annotationResults); } buildCounterGoogleCloudVideointelligenceV1p3beta1AnnotateVideoResponse--; } @@ -4963,7 +5915,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1Celebrity--; } -buildUnnamed4855() { +buildUnnamed5212() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1CelebrityTrack()); @@ -4971,7 +5923,7 @@ return o; } -checkUnnamed4855( +checkUnnamed5212( core.List<api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1CelebrityTrack(o[0]); @@ -4987,7 +5939,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation < 3) { - o.celebrityTracks = buildUnnamed4855(); + o.celebrityTracks = buildUnnamed5212(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation--; @@ -4999,13 +5951,13 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation < 3) { - checkUnnamed4855(o.celebrityTracks); + checkUnnamed5212(o.celebrityTracks); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityRecognitionAnnotation--; } -buildUnnamed4856() { +buildUnnamed5213() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity()); @@ -5013,7 +5965,7 @@ return o; } -checkUnnamed4856( +checkUnnamed5213( core.List<api.GoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity(o[0]); @@ -5025,7 +5977,7 @@ var o = new api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack(); buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack < 3) { - o.celebrities = buildUnnamed4856(); + o.celebrities = buildUnnamed5213(); o.faceTrack = buildGoogleCloudVideointelligenceV1p3beta1Track(); } buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack--; @@ -5036,7 +5988,7 @@ api.GoogleCloudVideointelligenceV1p3beta1CelebrityTrack o) { buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack < 3) { - checkUnnamed4856(o.celebrities); + checkUnnamed5213(o.celebrities); checkGoogleCloudVideointelligenceV1p3beta1Track(o.faceTrack); } buildCounterGoogleCloudVideointelligenceV1p3beta1CelebrityTrack--; @@ -5114,7 +6066,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1Entity--; } -buildUnnamed4857() { +buildUnnamed5214() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame()); @@ -5122,7 +6074,7 @@ return o; } -checkUnnamed4857( +checkUnnamed5214( core.List<api.GoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame> o) { unittest.expect(o, unittest.hasLength(2)); @@ -5139,7 +6091,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation < 3) { - o.frames = buildUnnamed4857(); + o.frames = buildUnnamed5214(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation--; @@ -5151,7 +6103,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation < 3) { - checkUnnamed4857(o.frames); + checkUnnamed5214(o.frames); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation--; @@ -5182,17 +6134,56 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1ExplicitContentFrame--; } -buildUnnamed4858() { - var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1Track>(); - o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); - o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); +buildUnnamed5215() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceFrame>(); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceFrame()); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceFrame()); return o; } -checkUnnamed4858(core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) { +checkUnnamed5215( + core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceFrame> o) { unittest.expect(o, unittest.hasLength(2)); - checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]); - checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]); + checkGoogleCloudVideointelligenceV1p3beta1FaceFrame(o[0]); + checkGoogleCloudVideointelligenceV1p3beta1FaceFrame(o[1]); +} + +buildUnnamed5216() { + var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceSegment>(); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceSegment()); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceSegment()); + return o; +} + +checkUnnamed5216( + core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceSegment> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p3beta1FaceSegment(o[0]); + checkGoogleCloudVideointelligenceV1p3beta1FaceSegment(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation = 0; +buildGoogleCloudVideointelligenceV1p3beta1FaceAnnotation() { + var o = new api.GoogleCloudVideointelligenceV1p3beta1FaceAnnotation(); + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation < 3) { + o.frames = buildUnnamed5215(); + o.segments = buildUnnamed5216(); + o.thumbnail = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation--; + return o; +} + +checkGoogleCloudVideointelligenceV1p3beta1FaceAnnotation( + api.GoogleCloudVideointelligenceV1p3beta1FaceAnnotation o) { + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation < 3) { + checkUnnamed5215(o.frames); + checkUnnamed5216(o.segments); + unittest.expect(o.thumbnail, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceAnnotation--; } core.int @@ -5204,8 +6195,6 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation < 3) { - o.thumbnail = "foo"; - o.tracks = buildUnnamed4858(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation--; @@ -5217,41 +6206,97 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation < 3) { - unittest.expect(o.thumbnail, unittest.equals('foo')); - checkUnnamed4858(o.tracks); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation--; } -buildUnnamed4859() { +buildUnnamed5217() { + var o = new core + .List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox>(); + o.add(buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox()); + o.add(buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox()); + return o; +} + +checkUnnamed5217( + core.List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox> + o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(o[0]); + checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(o[1]); +} + +core.int buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame = 0; +buildGoogleCloudVideointelligenceV1p3beta1FaceFrame() { + var o = new api.GoogleCloudVideointelligenceV1p3beta1FaceFrame(); + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame < 3) { + o.normalizedBoundingBoxes = buildUnnamed5217(); + o.timeOffset = "foo"; + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame--; + return o; +} + +checkGoogleCloudVideointelligenceV1p3beta1FaceFrame( + api.GoogleCloudVideointelligenceV1p3beta1FaceFrame o) { + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame < 3) { + checkUnnamed5217(o.normalizedBoundingBoxes); + unittest.expect(o.timeOffset, unittest.equals('foo')); + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceFrame--; +} + +core.int buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment = 0; +buildGoogleCloudVideointelligenceV1p3beta1FaceSegment() { + var o = new api.GoogleCloudVideointelligenceV1p3beta1FaceSegment(); + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment < 3) { + o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment(); + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment--; + return o; +} + +checkGoogleCloudVideointelligenceV1p3beta1FaceSegment( + api.GoogleCloudVideointelligenceV1p3beta1FaceSegment o) { + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment++; + if (buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment < 3) { + checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment); + } + buildCounterGoogleCloudVideointelligenceV1p3beta1FaceSegment--; +} + +buildUnnamed5218() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1Entity>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1Entity()); o.add(buildGoogleCloudVideointelligenceV1p3beta1Entity()); return o; } -checkUnnamed4859(core.List<api.GoogleCloudVideointelligenceV1p3beta1Entity> o) { +checkUnnamed5218(core.List<api.GoogleCloudVideointelligenceV1p3beta1Entity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1Entity(o[0]); checkGoogleCloudVideointelligenceV1p3beta1Entity(o[1]); } -buildUnnamed4860() { +buildUnnamed5219() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelFrame>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelFrame()); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelFrame()); return o; } -checkUnnamed4860( +checkUnnamed5219( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelFrame(o[1]); } -buildUnnamed4861() { +buildUnnamed5220() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelSegment>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelSegment()); @@ -5259,7 +6304,7 @@ return o; } -checkUnnamed4861( +checkUnnamed5220( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelSegment(o[0]); @@ -5271,10 +6316,10 @@ var o = new api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation(); buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation < 3) { - o.categoryEntities = buildUnnamed4859(); + o.categoryEntities = buildUnnamed5218(); o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity(); - o.frames = buildUnnamed4860(); - o.segments = buildUnnamed4861(); + o.frames = buildUnnamed5219(); + o.segments = buildUnnamed5220(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation--; @@ -5285,10 +6330,10 @@ api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation < 3) { - checkUnnamed4859(o.categoryEntities); + checkUnnamed5218(o.categoryEntities); checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity); - checkUnnamed4860(o.frames); - checkUnnamed4861(o.segments); + checkUnnamed5219(o.frames); + checkUnnamed5220(o.segments); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1LabelAnnotation--; @@ -5338,7 +6383,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1LabelSegment--; } -buildUnnamed4862() { +buildUnnamed5221() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment()); @@ -5346,21 +6391,21 @@ return o; } -checkUnnamed4862( +checkUnnamed5221( core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[1]); } -buildUnnamed4863() { +buildUnnamed5222() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1Track>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); return o; } -checkUnnamed4863(core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) { +checkUnnamed5222(core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]); checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]); @@ -5376,8 +6421,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation < 3) { o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity(); - o.segments = buildUnnamed4862(); - o.tracks = buildUnnamed4863(); + o.segments = buildUnnamed5221(); + o.tracks = buildUnnamed5222(); } buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation--; return o; @@ -5389,8 +6434,8 @@ if (buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation < 3) { checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity); - checkUnnamed4862(o.segments); - checkUnnamed4863(o.tracks); + checkUnnamed5221(o.segments); + checkUnnamed5222(o.tracks); } buildCounterGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation--; } @@ -5424,7 +6469,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox--; } -buildUnnamed4864() { +buildUnnamed5223() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1NormalizedVertex()); @@ -5432,7 +6477,7 @@ return o; } -checkUnnamed4864( +checkUnnamed5223( core.List<api.GoogleCloudVideointelligenceV1p3beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1NormalizedVertex(o[0]); @@ -5446,7 +6491,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly < 3) { - o.vertices = buildUnnamed4864(); + o.vertices = buildUnnamed5223(); } buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly--; return o; @@ -5457,7 +6502,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly < 3) { - checkUnnamed4864(o.vertices); + checkUnnamed5223(o.vertices); } buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingPoly--; } @@ -5484,7 +6529,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1NormalizedVertex--; } -buildUnnamed4865() { +buildUnnamed5224() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame()); @@ -5492,7 +6537,7 @@ return o; } -checkUnnamed4865( +checkUnnamed5224( core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame(o[0]); @@ -5510,7 +6555,7 @@ 3) { o.confidence = 42.0; o.entity = buildGoogleCloudVideointelligenceV1p3beta1Entity(); - o.frames = buildUnnamed4865(); + o.frames = buildUnnamed5224(); o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment(); o.trackId = "foo"; o.version = "foo"; @@ -5526,7 +6571,7 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p3beta1Entity(o.entity); - checkUnnamed4865(o.frames); + checkUnnamed5224(o.frames); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment); unittest.expect(o.trackId, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); @@ -5561,14 +6606,14 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1ObjectTrackingFrame--; } -buildUnnamed4866() { +buildUnnamed5225() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1Track>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); o.add(buildGoogleCloudVideointelligenceV1p3beta1Track()); return o; } -checkUnnamed4866(core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) { +checkUnnamed5225(core.List<api.GoogleCloudVideointelligenceV1p3beta1Track> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1Track(o[0]); checkGoogleCloudVideointelligenceV1p3beta1Track(o[1]); @@ -5583,7 +6628,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation < 3) { - o.tracks = buildUnnamed4866(); + o.tracks = buildUnnamed5225(); o.version = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation--; @@ -5595,7 +6640,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation < 3) { - checkUnnamed4866(o.tracks); + checkUnnamed5225(o.tracks); unittest.expect(o.version, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation--; @@ -5626,14 +6671,14 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1RecognizedCelebrity--; } -buildUnnamed4867() { +buildUnnamed5226() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1WordInfo>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1WordInfo()); o.add(buildGoogleCloudVideointelligenceV1p3beta1WordInfo()); return o; } -checkUnnamed4867( +checkUnnamed5226( core.List<api.GoogleCloudVideointelligenceV1p3beta1WordInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1WordInfo(o[0]); @@ -5651,7 +6696,7 @@ 3) { o.confidence = 42.0; o.transcript = "foo"; - o.words = buildUnnamed4867(); + o.words = buildUnnamed5226(); } buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative--; return o; @@ -5664,12 +6709,12 @@ 3) { unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.transcript, unittest.equals('foo')); - checkUnnamed4867(o.words); + checkUnnamed5226(o.words); } buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative--; } -buildUnnamed4868() { +buildUnnamed5227() { var o = new core.List< api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative>(); o.add( @@ -5679,7 +6724,7 @@ return o; } -checkUnnamed4868( +checkUnnamed5227( core.List< api.GoogleCloudVideointelligenceV1p3beta1SpeechRecognitionAlternative> o) { @@ -5695,7 +6740,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription < 3) { - o.alternatives = buildUnnamed4868(); + o.alternatives = buildUnnamed5227(); o.languageCode = "foo"; } buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription--; @@ -5707,7 +6752,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription < 3) { - checkUnnamed4868(o.alternatives); + checkUnnamed5227(o.alternatives); unittest.expect(o.languageCode, unittest.equals('foo')); } buildCounterGoogleCloudVideointelligenceV1p3beta1SpeechTranscription--; @@ -5744,7 +6789,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingAnnotateVideoResponse--; } -buildUnnamed4869() { +buildUnnamed5228() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -5752,14 +6797,14 @@ return o; } -checkUnnamed4869( +checkUnnamed5228( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4870() { +buildUnnamed5229() { var o = new core.List< api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation()); @@ -5767,7 +6812,7 @@ return o; } -checkUnnamed4870( +checkUnnamed5229( core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -5775,7 +6820,7 @@ checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[1]); } -buildUnnamed4871() { +buildUnnamed5230() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment()); @@ -5783,7 +6828,7 @@ return o; } -checkUnnamed4871( +checkUnnamed5230( core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]); @@ -5801,9 +6846,10 @@ 3) { o.explicitAnnotation = buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(); - o.labelAnnotations = buildUnnamed4869(); - o.objectAnnotations = buildUnnamed4870(); - o.shotAnnotations = buildUnnamed4871(); + o.frameTimestamp = "foo"; + o.labelAnnotations = buildUnnamed5228(); + o.objectAnnotations = buildUnnamed5229(); + o.shotAnnotations = buildUnnamed5230(); } buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults--; return o; @@ -5817,21 +6863,22 @@ 3) { checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4869(o.labelAnnotations); - checkUnnamed4870(o.objectAnnotations); - checkUnnamed4871(o.shotAnnotations); + unittest.expect(o.frameTimestamp, unittest.equals('foo')); + checkUnnamed5228(o.labelAnnotations); + checkUnnamed5229(o.objectAnnotations); + checkUnnamed5230(o.shotAnnotations); } buildCounterGoogleCloudVideointelligenceV1p3beta1StreamingVideoAnnotationResults--; } -buildUnnamed4872() { +buildUnnamed5231() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1TextSegment>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1TextSegment()); o.add(buildGoogleCloudVideointelligenceV1p3beta1TextSegment()); return o; } -checkUnnamed4872( +checkUnnamed5231( core.List<api.GoogleCloudVideointelligenceV1p3beta1TextSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1TextSegment(o[0]); @@ -5843,7 +6890,7 @@ var o = new api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation(); buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation < 3) { - o.segments = buildUnnamed4872(); + o.segments = buildUnnamed5231(); o.text = "foo"; o.version = "foo"; } @@ -5855,7 +6902,7 @@ api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation o) { buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextAnnotation < 3) { - checkUnnamed4872(o.segments); + checkUnnamed5231(o.segments); unittest.expect(o.text, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } @@ -5886,14 +6933,14 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1TextFrame--; } -buildUnnamed4873() { +buildUnnamed5232() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1TextFrame>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1TextFrame()); o.add(buildGoogleCloudVideointelligenceV1p3beta1TextFrame()); return o; } -checkUnnamed4873( +checkUnnamed5232( core.List<api.GoogleCloudVideointelligenceV1p3beta1TextFrame> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1TextFrame(o[0]); @@ -5906,7 +6953,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment < 3) { o.confidence = 42.0; - o.frames = buildUnnamed4873(); + o.frames = buildUnnamed5232(); o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment(); } buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment--; @@ -5918,13 +6965,13 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment < 3) { unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed4873(o.frames); + checkUnnamed5232(o.frames); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment); } buildCounterGoogleCloudVideointelligenceV1p3beta1TextSegment--; } -buildUnnamed4874() { +buildUnnamed5233() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute()); @@ -5932,14 +6979,14 @@ return o; } -checkUnnamed4874( +checkUnnamed5233( core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[1]); } -buildUnnamed4875() { +buildUnnamed5234() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedLandmark()); @@ -5947,7 +6994,7 @@ return o; } -checkUnnamed4875( +checkUnnamed5234( core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1DetectedLandmark(o[0]); @@ -5959,8 +7006,8 @@ var o = new api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject(); buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject < 3) { - o.attributes = buildUnnamed4874(); - o.landmarks = buildUnnamed4875(); + o.attributes = buildUnnamed5233(); + o.landmarks = buildUnnamed5234(); o.normalizedBoundingBox = buildGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox(); o.timeOffset = "foo"; @@ -5973,8 +7020,8 @@ api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject o) { buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject < 3) { - checkUnnamed4874(o.attributes); - checkUnnamed4875(o.landmarks); + checkUnnamed5233(o.attributes); + checkUnnamed5234(o.landmarks); checkGoogleCloudVideointelligenceV1p3beta1NormalizedBoundingBox( o.normalizedBoundingBox); unittest.expect(o.timeOffset, unittest.equals('foo')); @@ -5982,7 +7029,7 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1TimestampedObject--; } -buildUnnamed4876() { +buildUnnamed5235() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1DetectedAttribute()); @@ -5990,14 +7037,14 @@ return o; } -checkUnnamed4876( +checkUnnamed5235( core.List<api.GoogleCloudVideointelligenceV1p3beta1DetectedAttribute> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[0]); checkGoogleCloudVideointelligenceV1p3beta1DetectedAttribute(o[1]); } -buildUnnamed4877() { +buildUnnamed5236() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1TimestampedObject()); @@ -6005,7 +7052,7 @@ return o; } -checkUnnamed4877( +checkUnnamed5236( core.List<api.GoogleCloudVideointelligenceV1p3beta1TimestampedObject> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1TimestampedObject(o[0]); @@ -6017,10 +7064,10 @@ var o = new api.GoogleCloudVideointelligenceV1p3beta1Track(); buildCounterGoogleCloudVideointelligenceV1p3beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1Track < 3) { - o.attributes = buildUnnamed4876(); + o.attributes = buildUnnamed5235(); o.confidence = 42.0; o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment(); - o.timestampedObjects = buildUnnamed4877(); + o.timestampedObjects = buildUnnamed5236(); } buildCounterGoogleCloudVideointelligenceV1p3beta1Track--; return o; @@ -6030,10 +7077,10 @@ api.GoogleCloudVideointelligenceV1p3beta1Track o) { buildCounterGoogleCloudVideointelligenceV1p3beta1Track++; if (buildCounterGoogleCloudVideointelligenceV1p3beta1Track < 3) { - checkUnnamed4876(o.attributes); + checkUnnamed5235(o.attributes); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment); - checkUnnamed4877(o.timestampedObjects); + checkUnnamed5236(o.timestampedObjects); } buildCounterGoogleCloudVideointelligenceV1p3beta1Track--; } @@ -6073,7 +7120,22 @@ buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationProgress--; } -buildUnnamed4878() { +buildUnnamed5237() { + var o = + new core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceAnnotation>(); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceAnnotation()); + o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceAnnotation()); + return o; +} + +checkUnnamed5237( + core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceAnnotation> o) { + unittest.expect(o, unittest.hasLength(2)); + checkGoogleCloudVideointelligenceV1p3beta1FaceAnnotation(o[0]); + checkGoogleCloudVideointelligenceV1p3beta1FaceAnnotation(o[1]); +} + +buildUnnamed5238() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation()); @@ -6081,7 +7143,7 @@ return o; } -checkUnnamed4878( +checkUnnamed5238( core.List<api.GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -6089,7 +7151,7 @@ checkGoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation(o[1]); } -buildUnnamed4879() { +buildUnnamed5239() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -6097,14 +7159,14 @@ return o; } -checkUnnamed4879( +checkUnnamed5239( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4880() { +buildUnnamed5240() { var o = new core.List< api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation()); @@ -6112,7 +7174,7 @@ return o; } -checkUnnamed4880( +checkUnnamed5240( core.List< api.GoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation> o) { @@ -6121,7 +7183,7 @@ checkGoogleCloudVideointelligenceV1p3beta1LogoRecognitionAnnotation(o[1]); } -buildUnnamed4881() { +buildUnnamed5241() { var o = new core.List< api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation()); @@ -6129,7 +7191,7 @@ return o; } -checkUnnamed4881( +checkUnnamed5241( core.List<api.GoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); @@ -6137,7 +7199,7 @@ checkGoogleCloudVideointelligenceV1p3beta1ObjectTrackingAnnotation(o[1]); } -buildUnnamed4882() { +buildUnnamed5242() { var o = new core.List< api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation()); @@ -6145,7 +7207,7 @@ return o; } -checkUnnamed4882( +checkUnnamed5242( core.List< api.GoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation> o) { @@ -6154,7 +7216,7 @@ checkGoogleCloudVideointelligenceV1p3beta1PersonDetectionAnnotation(o[1]); } -buildUnnamed4883() { +buildUnnamed5243() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -6162,14 +7224,14 @@ return o; } -checkUnnamed4883( +checkUnnamed5243( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4884() { +buildUnnamed5244() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -6177,14 +7239,14 @@ return o; } -checkUnnamed4884( +checkUnnamed5244( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4885() { +buildUnnamed5245() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1VideoSegment()); @@ -6192,14 +7254,14 @@ return o; } -checkUnnamed4885( +checkUnnamed5245( core.List<api.GoogleCloudVideointelligenceV1p3beta1VideoSegment> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[0]); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o[1]); } -buildUnnamed4886() { +buildUnnamed5246() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -6207,14 +7269,14 @@ return o; } -checkUnnamed4886( +checkUnnamed5246( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4887() { +buildUnnamed5247() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1LabelAnnotation()); @@ -6222,14 +7284,14 @@ return o; } -checkUnnamed4887( +checkUnnamed5247( core.List<api.GoogleCloudVideointelligenceV1p3beta1LabelAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[0]); checkGoogleCloudVideointelligenceV1p3beta1LabelAnnotation(o[1]); } -buildUnnamed4888() { +buildUnnamed5248() { var o = new core .List<api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1SpeechTranscription()); @@ -6237,14 +7299,14 @@ return o; } -checkUnnamed4888( +checkUnnamed5248( core.List<api.GoogleCloudVideointelligenceV1p3beta1SpeechTranscription> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(o[0]); checkGoogleCloudVideointelligenceV1p3beta1SpeechTranscription(o[1]); } -buildUnnamed4889() { +buildUnnamed5249() { var o = new core.List<api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation>(); o.add(buildGoogleCloudVideointelligenceV1p3beta1TextAnnotation()); @@ -6252,7 +7314,7 @@ return o; } -checkUnnamed4889( +checkUnnamed5249( core.List<api.GoogleCloudVideointelligenceV1p3beta1TextAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVideointelligenceV1p3beta1TextAnnotation(o[0]); @@ -6271,20 +7333,21 @@ o.error = buildGoogleRpcStatus(); o.explicitAnnotation = buildGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation(); - o.faceDetectionAnnotations = buildUnnamed4878(); - o.frameLabelAnnotations = buildUnnamed4879(); + o.faceAnnotations = buildUnnamed5237(); + o.faceDetectionAnnotations = buildUnnamed5238(); + o.frameLabelAnnotations = buildUnnamed5239(); o.inputUri = "foo"; - o.logoRecognitionAnnotations = buildUnnamed4880(); - o.objectAnnotations = buildUnnamed4881(); - o.personDetectionAnnotations = buildUnnamed4882(); + o.logoRecognitionAnnotations = buildUnnamed5240(); + o.objectAnnotations = buildUnnamed5241(); + o.personDetectionAnnotations = buildUnnamed5242(); o.segment = buildGoogleCloudVideointelligenceV1p3beta1VideoSegment(); - o.segmentLabelAnnotations = buildUnnamed4883(); - o.segmentPresenceLabelAnnotations = buildUnnamed4884(); - o.shotAnnotations = buildUnnamed4885(); - o.shotLabelAnnotations = buildUnnamed4886(); - o.shotPresenceLabelAnnotations = buildUnnamed4887(); - o.speechTranscriptions = buildUnnamed4888(); - o.textAnnotations = buildUnnamed4889(); + o.segmentLabelAnnotations = buildUnnamed5243(); + o.segmentPresenceLabelAnnotations = buildUnnamed5244(); + o.shotAnnotations = buildUnnamed5245(); + o.shotLabelAnnotations = buildUnnamed5246(); + o.shotPresenceLabelAnnotations = buildUnnamed5247(); + o.speechTranscriptions = buildUnnamed5248(); + o.textAnnotations = buildUnnamed5249(); } buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults--; return o; @@ -6300,20 +7363,21 @@ checkGoogleRpcStatus(o.error); checkGoogleCloudVideointelligenceV1p3beta1ExplicitContentAnnotation( o.explicitAnnotation); - checkUnnamed4878(o.faceDetectionAnnotations); - checkUnnamed4879(o.frameLabelAnnotations); + checkUnnamed5237(o.faceAnnotations); + checkUnnamed5238(o.faceDetectionAnnotations); + checkUnnamed5239(o.frameLabelAnnotations); unittest.expect(o.inputUri, unittest.equals('foo')); - checkUnnamed4880(o.logoRecognitionAnnotations); - checkUnnamed4881(o.objectAnnotations); - checkUnnamed4882(o.personDetectionAnnotations); + checkUnnamed5240(o.logoRecognitionAnnotations); + checkUnnamed5241(o.objectAnnotations); + checkUnnamed5242(o.personDetectionAnnotations); checkGoogleCloudVideointelligenceV1p3beta1VideoSegment(o.segment); - checkUnnamed4883(o.segmentLabelAnnotations); - checkUnnamed4884(o.segmentPresenceLabelAnnotations); - checkUnnamed4885(o.shotAnnotations); - checkUnnamed4886(o.shotLabelAnnotations); - checkUnnamed4887(o.shotPresenceLabelAnnotations); - checkUnnamed4888(o.speechTranscriptions); - checkUnnamed4889(o.textAnnotations); + checkUnnamed5243(o.segmentLabelAnnotations); + checkUnnamed5244(o.segmentPresenceLabelAnnotations); + checkUnnamed5245(o.shotAnnotations); + checkUnnamed5246(o.shotLabelAnnotations); + checkUnnamed5247(o.shotPresenceLabelAnnotations); + checkUnnamed5248(o.speechTranscriptions); + checkUnnamed5249(o.textAnnotations); } buildCounterGoogleCloudVideointelligenceV1p3beta1VideoAnnotationResults--; } @@ -6384,14 +7448,14 @@ buildCounterGoogleLongrunningCancelOperationRequest--; } -buildUnnamed4890() { +buildUnnamed5250() { var o = new core.List<api.GoogleLongrunningOperation>(); o.add(buildGoogleLongrunningOperation()); o.add(buildGoogleLongrunningOperation()); return o; } -checkUnnamed4890(core.List<api.GoogleLongrunningOperation> o) { +checkUnnamed5250(core.List<api.GoogleLongrunningOperation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleLongrunningOperation(o[0]); checkGoogleLongrunningOperation(o[1]); @@ -6403,7 +7467,7 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed4890(); + o.operations = buildUnnamed5250(); } buildCounterGoogleLongrunningListOperationsResponse--; return o; @@ -6414,12 +7478,12 @@ buildCounterGoogleLongrunningListOperationsResponse++; if (buildCounterGoogleLongrunningListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4890(o.operations); + checkUnnamed5250(o.operations); } buildCounterGoogleLongrunningListOperationsResponse--; } -buildUnnamed4891() { +buildUnnamed5251() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -6434,7 +7498,7 @@ return o; } -checkUnnamed4891(core.Map<core.String, core.Object> o) { +checkUnnamed5251(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)); @@ -6448,7 +7512,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed4892() { +buildUnnamed5252() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -6463,7 +7527,7 @@ return o; } -checkUnnamed4892(core.Map<core.String, core.Object> o) { +checkUnnamed5252(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)); @@ -6484,9 +7548,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { o.done = true; o.error = buildGoogleRpcStatus(); - o.metadata = buildUnnamed4891(); + o.metadata = buildUnnamed5251(); o.name = "foo"; - o.response = buildUnnamed4892(); + o.response = buildUnnamed5252(); } buildCounterGoogleLongrunningOperation--; return o; @@ -6497,9 +7561,9 @@ if (buildCounterGoogleLongrunningOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkGoogleRpcStatus(o.error); - checkUnnamed4891(o.metadata); + checkUnnamed5251(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed4892(o.response); + checkUnnamed5252(o.response); } buildCounterGoogleLongrunningOperation--; } @@ -6519,7 +7583,7 @@ buildCounterGoogleProtobufEmpty--; } -buildUnnamed4893() { +buildUnnamed5253() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -6534,7 +7598,7 @@ return o; } -checkUnnamed4893(core.Map<core.String, core.Object> o) { +checkUnnamed5253(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)); @@ -6548,17 +7612,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed4894() { +buildUnnamed5254() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed4893()); - o.add(buildUnnamed4893()); + o.add(buildUnnamed5253()); + o.add(buildUnnamed5253()); return o; } -checkUnnamed4894(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed5254(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed4893(o[0]); - checkUnnamed4893(o[1]); + checkUnnamed5253(o[0]); + checkUnnamed5253(o[1]); } core.int buildCounterGoogleRpcStatus = 0; @@ -6567,7 +7631,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { o.code = 42; - o.details = buildUnnamed4894(); + o.details = buildUnnamed5254(); o.message = "foo"; } buildCounterGoogleRpcStatus--; @@ -6578,7 +7642,7 @@ buildCounterGoogleRpcStatus++; if (buildCounterGoogleRpcStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed4894(o.details); + checkUnnamed5254(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterGoogleRpcStatus--; @@ -6682,6 +7746,55 @@ }); }); + unittest.group("obj-schema-GoogleCloudVideointelligenceV1FaceAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1FaceAnnotation(); + var od = new api.GoogleCloudVideointelligenceV1FaceAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1FaceAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1FaceDetectionAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1FaceDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1FaceDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1FaceDetectionAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1FaceDetectionConfig", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1FaceDetectionConfig(); + var od = + new api.GoogleCloudVideointelligenceV1FaceDetectionConfig.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1FaceDetectionConfig(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1FaceFrame", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1FaceFrame(); + var od = + new api.GoogleCloudVideointelligenceV1FaceFrame.fromJson(o.toJson()); + checkGoogleCloudVideointelligenceV1FaceFrame(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1FaceSegment", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1FaceSegment(); + var od = new api.GoogleCloudVideointelligenceV1FaceSegment.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1FaceSegment(od); + }); + }); + unittest.group("obj-schema-GoogleCloudVideointelligenceV1LabelAnnotation", () { unittest.test("to-json--from-json", () { @@ -6798,6 +7911,28 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1PersonDetectionAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1PersonDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1PersonDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1PersonDetectionAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1PersonDetectionConfig", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1PersonDetectionConfig(); + var od = + new api.GoogleCloudVideointelligenceV1PersonDetectionConfig.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1PersonDetectionConfig(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1ShotChangeDetectionConfig", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudVideointelligenceV1ShotChangeDetectionConfig(); @@ -7035,6 +8170,48 @@ }); }); + unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2FaceAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1beta2FaceAnnotation(); + var od = + new api.GoogleCloudVideointelligenceV1beta2FaceAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1beta2FaceAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2FaceFrame", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1beta2FaceFrame(); + var od = new api.GoogleCloudVideointelligenceV1beta2FaceFrame.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1beta2FaceFrame(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1beta2FaceSegment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1beta2FaceSegment(); + var od = new api.GoogleCloudVideointelligenceV1beta2FaceSegment.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1beta2FaceSegment(od); + }); + }); + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1beta2LabelAnnotation", () { unittest.test("to-json--from-json", () { @@ -7139,6 +8316,19 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative", () { unittest.test("to-json--from-json", () { @@ -7336,6 +8526,51 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p1beta1FaceAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p1beta1FaceAnnotation(); + var od = + new api.GoogleCloudVideointelligenceV1p1beta1FaceAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p1beta1FaceAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p1beta1FaceFrame", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p1beta1FaceFrame(); + var od = new api.GoogleCloudVideointelligenceV1p1beta1FaceFrame.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p1beta1FaceFrame(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p1beta1FaceSegment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p1beta1FaceSegment(); + var od = + new api.GoogleCloudVideointelligenceV1p1beta1FaceSegment.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p1beta1FaceSegment(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p1beta1LabelAnnotation", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudVideointelligenceV1p1beta1LabelAnnotation(); @@ -7442,6 +8677,19 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative", () { unittest.test("to-json--from-json", () { @@ -7647,6 +8895,51 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p2beta1FaceAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p2beta1FaceAnnotation(); + var od = + new api.GoogleCloudVideointelligenceV1p2beta1FaceAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p2beta1FaceAnnotation(od); + }); + }); + + unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p2beta1FaceDetectionAnnotation(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p2beta1FaceFrame", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p2beta1FaceFrame(); + var od = new api.GoogleCloudVideointelligenceV1p2beta1FaceFrame.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p2beta1FaceFrame(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p2beta1FaceSegment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p2beta1FaceSegment(); + var od = + new api.GoogleCloudVideointelligenceV1p2beta1FaceSegment.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p2beta1FaceSegment(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p2beta1LabelAnnotation", () { unittest.test("to-json--from-json", () { var o = buildGoogleCloudVideointelligenceV1p2beta1LabelAnnotation(); @@ -7753,6 +9046,19 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation", + () { + unittest.test("to-json--from-json", () { + var o = + buildGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation(); + var od = new api + .GoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p2beta1PersonDetectionAnnotation(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p2beta1SpeechRecognitionAlternative", () { unittest.test("to-json--from-json", () { @@ -7993,6 +9299,17 @@ }); unittest.group( + "obj-schema-GoogleCloudVideointelligenceV1p3beta1FaceAnnotation", () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p3beta1FaceAnnotation(); + var od = + new api.GoogleCloudVideointelligenceV1p3beta1FaceAnnotation.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p3beta1FaceAnnotation(od); + }); + }); + + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p3beta1FaceDetectionAnnotation", () { unittest.test("to-json--from-json", () { @@ -8005,6 +9322,27 @@ }); }); + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p3beta1FaceFrame", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p3beta1FaceFrame(); + var od = new api.GoogleCloudVideointelligenceV1p3beta1FaceFrame.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p3beta1FaceFrame(od); + }); + }); + + unittest.group("obj-schema-GoogleCloudVideointelligenceV1p3beta1FaceSegment", + () { + unittest.test("to-json--from-json", () { + var o = buildGoogleCloudVideointelligenceV1p3beta1FaceSegment(); + var od = + new api.GoogleCloudVideointelligenceV1p3beta1FaceSegment.fromJson( + o.toJson()); + checkGoogleCloudVideointelligenceV1p3beta1FaceSegment(od); + }); + }); + unittest.group( "obj-schema-GoogleCloudVideointelligenceV1p3beta1LabelAnnotation", () { unittest.test("to-json--from-json", () { @@ -8502,6 +9840,122 @@ }); }); + unittest.group("resource-ProjectsLocationsCorporaOperationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsCorporaOperationsResourceApi res = + new api.VideointelligenceApi(mock) + .projects + .locations + .corpora + .operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + }); + + unittest.group("resource-ProjectsLocationsCorpuraOperationsResourceApi", () { + unittest.test("method--get", () { + var mock = new HttpServerMock(); + api.ProjectsLocationsCorpuraOperationsResourceApi res = + new api.VideointelligenceApi(mock) + .projects + .locations + .corpura + .operations; + var arg_name = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect( + path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/")); + pathOffset += 3; + // NOTE: We cannot test reserved expansions due to the inability to reverse the operation; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildGoogleLongrunningOperation()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .get(arg_name, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkGoogleLongrunningOperation(response); + }))); + }); + }); + unittest.group("resource-ProjectsLocationsOperationsResourceApi", () { unittest.test("method--cancel", () { var mock = new HttpServerMock(); @@ -8669,9 +10123,9 @@ api.ProjectsLocationsOperationsResourceApi res = new api.VideointelligenceApi(mock).projects.locations.operations; var arg_name = "foo"; - var arg_pageToken = "foo"; - var arg_pageSize = 42; var arg_filter = "foo"; + var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8704,11 +10158,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + 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)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8720,9 +10174,9 @@ }), true); res .list(arg_name, - pageToken: arg_pageToken, - pageSize: arg_pageSize, filter: arg_filter, + pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkGoogleLongrunningListOperationsResponse(response);
diff --git a/generated/googleapis/test/vision/v1_test.dart b/generated/googleapis/test/vision/v1_test.dart index 28a06bb..2c19d4f 100644 --- a/generated/googleapis/test/vision/v1_test.dart +++ b/generated/googleapis/test/vision/v1_test.dart
@@ -69,27 +69,27 @@ buildCounterAddProductToProductSetRequest--; } -buildUnnamed2760() { +buildUnnamed2891() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed2760(core.List<api.Feature> o) { +checkUnnamed2891(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); } -buildUnnamed2761() { +buildUnnamed2892() { var o = new core.List<core.int>(); o.add(42); o.add(42); return o; } -checkUnnamed2761(core.List<core.int> o) { +checkUnnamed2892(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)); @@ -100,10 +100,10 @@ var o = new api.AnnotateFileRequest(); buildCounterAnnotateFileRequest++; if (buildCounterAnnotateFileRequest < 3) { - o.features = buildUnnamed2760(); + o.features = buildUnnamed2891(); o.imageContext = buildImageContext(); o.inputConfig = buildInputConfig(); - o.pages = buildUnnamed2761(); + o.pages = buildUnnamed2892(); } buildCounterAnnotateFileRequest--; return o; @@ -112,22 +112,22 @@ checkAnnotateFileRequest(api.AnnotateFileRequest o) { buildCounterAnnotateFileRequest++; if (buildCounterAnnotateFileRequest < 3) { - checkUnnamed2760(o.features); + checkUnnamed2891(o.features); checkImageContext(o.imageContext); checkInputConfig(o.inputConfig); - checkUnnamed2761(o.pages); + checkUnnamed2892(o.pages); } buildCounterAnnotateFileRequest--; } -buildUnnamed2762() { +buildUnnamed2893() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed2762(core.List<api.AnnotateImageResponse> o) { +checkUnnamed2893(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -140,7 +140,7 @@ if (buildCounterAnnotateFileResponse < 3) { o.error = buildStatus(); o.inputConfig = buildInputConfig(); - o.responses = buildUnnamed2762(); + o.responses = buildUnnamed2893(); o.totalPages = 42; } buildCounterAnnotateFileResponse--; @@ -152,20 +152,20 @@ if (buildCounterAnnotateFileResponse < 3) { checkStatus(o.error); checkInputConfig(o.inputConfig); - checkUnnamed2762(o.responses); + checkUnnamed2893(o.responses); unittest.expect(o.totalPages, unittest.equals(42)); } buildCounterAnnotateFileResponse--; } -buildUnnamed2763() { +buildUnnamed2894() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed2763(core.List<api.Feature> o) { +checkUnnamed2894(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -176,7 +176,7 @@ var o = new api.AnnotateImageRequest(); buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - o.features = buildUnnamed2763(); + o.features = buildUnnamed2894(); o.image = buildImage(); o.imageContext = buildImageContext(); } @@ -187,86 +187,86 @@ checkAnnotateImageRequest(api.AnnotateImageRequest o) { buildCounterAnnotateImageRequest++; if (buildCounterAnnotateImageRequest < 3) { - checkUnnamed2763(o.features); + checkUnnamed2894(o.features); checkImage(o.image); checkImageContext(o.imageContext); } buildCounterAnnotateImageRequest--; } -buildUnnamed2764() { +buildUnnamed2895() { var o = new core.List<api.FaceAnnotation>(); o.add(buildFaceAnnotation()); o.add(buildFaceAnnotation()); return o; } -checkUnnamed2764(core.List<api.FaceAnnotation> o) { +checkUnnamed2895(core.List<api.FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkFaceAnnotation(o[0]); checkFaceAnnotation(o[1]); } -buildUnnamed2765() { +buildUnnamed2896() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed2765(core.List<api.EntityAnnotation> o) { +checkUnnamed2896(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed2766() { +buildUnnamed2897() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed2766(core.List<api.EntityAnnotation> o) { +checkUnnamed2897(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed2767() { +buildUnnamed2898() { var o = new core.List<api.LocalizedObjectAnnotation>(); o.add(buildLocalizedObjectAnnotation()); o.add(buildLocalizedObjectAnnotation()); return o; } -checkUnnamed2767(core.List<api.LocalizedObjectAnnotation> o) { +checkUnnamed2898(core.List<api.LocalizedObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedObjectAnnotation(o[0]); checkLocalizedObjectAnnotation(o[1]); } -buildUnnamed2768() { +buildUnnamed2899() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed2768(core.List<api.EntityAnnotation> o) { +checkUnnamed2899(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); } -buildUnnamed2769() { +buildUnnamed2900() { var o = new core.List<api.EntityAnnotation>(); o.add(buildEntityAnnotation()); o.add(buildEntityAnnotation()); return o; } -checkUnnamed2769(core.List<api.EntityAnnotation> o) { +checkUnnamed2900(core.List<api.EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkEntityAnnotation(o[0]); checkEntityAnnotation(o[1]); @@ -280,16 +280,16 @@ o.context = buildImageAnnotationContext(); o.cropHintsAnnotation = buildCropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed2764(); + o.faceAnnotations = buildUnnamed2895(); o.fullTextAnnotation = buildTextAnnotation(); o.imagePropertiesAnnotation = buildImageProperties(); - o.labelAnnotations = buildUnnamed2765(); - o.landmarkAnnotations = buildUnnamed2766(); - o.localizedObjectAnnotations = buildUnnamed2767(); - o.logoAnnotations = buildUnnamed2768(); + o.labelAnnotations = buildUnnamed2896(); + o.landmarkAnnotations = buildUnnamed2897(); + o.localizedObjectAnnotations = buildUnnamed2898(); + o.logoAnnotations = buildUnnamed2899(); o.productSearchResults = buildProductSearchResults(); o.safeSearchAnnotation = buildSafeSearchAnnotation(); - o.textAnnotations = buildUnnamed2769(); + o.textAnnotations = buildUnnamed2900(); o.webDetection = buildWebDetection(); } buildCounterAnnotateImageResponse--; @@ -302,29 +302,29 @@ checkImageAnnotationContext(o.context); checkCropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed2764(o.faceAnnotations); + checkUnnamed2895(o.faceAnnotations); checkTextAnnotation(o.fullTextAnnotation); checkImageProperties(o.imagePropertiesAnnotation); - checkUnnamed2765(o.labelAnnotations); - checkUnnamed2766(o.landmarkAnnotations); - checkUnnamed2767(o.localizedObjectAnnotations); - checkUnnamed2768(o.logoAnnotations); + checkUnnamed2896(o.labelAnnotations); + checkUnnamed2897(o.landmarkAnnotations); + checkUnnamed2898(o.localizedObjectAnnotations); + checkUnnamed2899(o.logoAnnotations); checkProductSearchResults(o.productSearchResults); checkSafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed2769(o.textAnnotations); + checkUnnamed2900(o.textAnnotations); checkWebDetection(o.webDetection); } buildCounterAnnotateImageResponse--; } -buildUnnamed2770() { +buildUnnamed2901() { var o = new core.List<api.Feature>(); o.add(buildFeature()); o.add(buildFeature()); return o; } -checkUnnamed2770(core.List<api.Feature> o) { +checkUnnamed2901(core.List<api.Feature> o) { unittest.expect(o, unittest.hasLength(2)); checkFeature(o[0]); checkFeature(o[1]); @@ -335,7 +335,7 @@ var o = new api.AsyncAnnotateFileRequest(); buildCounterAsyncAnnotateFileRequest++; if (buildCounterAsyncAnnotateFileRequest < 3) { - o.features = buildUnnamed2770(); + o.features = buildUnnamed2901(); o.imageContext = buildImageContext(); o.inputConfig = buildInputConfig(); o.outputConfig = buildOutputConfig(); @@ -347,7 +347,7 @@ checkAsyncAnnotateFileRequest(api.AsyncAnnotateFileRequest o) { buildCounterAsyncAnnotateFileRequest++; if (buildCounterAsyncAnnotateFileRequest < 3) { - checkUnnamed2770(o.features); + checkUnnamed2901(o.features); checkImageContext(o.imageContext); checkInputConfig(o.inputConfig); checkOutputConfig(o.outputConfig); @@ -374,14 +374,14 @@ buildCounterAsyncAnnotateFileResponse--; } -buildUnnamed2771() { +buildUnnamed2902() { var o = new core.List<api.AsyncAnnotateFileRequest>(); o.add(buildAsyncAnnotateFileRequest()); o.add(buildAsyncAnnotateFileRequest()); return o; } -checkUnnamed2771(core.List<api.AsyncAnnotateFileRequest> o) { +checkUnnamed2902(core.List<api.AsyncAnnotateFileRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAsyncAnnotateFileRequest(o[0]); checkAsyncAnnotateFileRequest(o[1]); @@ -393,7 +393,7 @@ buildCounterAsyncBatchAnnotateFilesRequest++; if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { o.parent = "foo"; - o.requests = buildUnnamed2771(); + o.requests = buildUnnamed2902(); } buildCounterAsyncBatchAnnotateFilesRequest--; return o; @@ -403,19 +403,19 @@ buildCounterAsyncBatchAnnotateFilesRequest++; if (buildCounterAsyncBatchAnnotateFilesRequest < 3) { unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2771(o.requests); + checkUnnamed2902(o.requests); } buildCounterAsyncBatchAnnotateFilesRequest--; } -buildUnnamed2772() { +buildUnnamed2903() { var o = new core.List<api.AsyncAnnotateFileResponse>(); o.add(buildAsyncAnnotateFileResponse()); o.add(buildAsyncAnnotateFileResponse()); return o; } -checkUnnamed2772(core.List<api.AsyncAnnotateFileResponse> o) { +checkUnnamed2903(core.List<api.AsyncAnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAsyncAnnotateFileResponse(o[0]); checkAsyncAnnotateFileResponse(o[1]); @@ -426,7 +426,7 @@ var o = new api.AsyncBatchAnnotateFilesResponse(); buildCounterAsyncBatchAnnotateFilesResponse++; if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2772(); + o.responses = buildUnnamed2903(); } buildCounterAsyncBatchAnnotateFilesResponse--; return o; @@ -435,19 +435,19 @@ checkAsyncBatchAnnotateFilesResponse(api.AsyncBatchAnnotateFilesResponse o) { buildCounterAsyncBatchAnnotateFilesResponse++; if (buildCounterAsyncBatchAnnotateFilesResponse < 3) { - checkUnnamed2772(o.responses); + checkUnnamed2903(o.responses); } buildCounterAsyncBatchAnnotateFilesResponse--; } -buildUnnamed2773() { +buildUnnamed2904() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed2773(core.List<api.AnnotateImageRequest> o) { +checkUnnamed2904(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -460,7 +460,7 @@ if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { o.outputConfig = buildOutputConfig(); o.parent = "foo"; - o.requests = buildUnnamed2773(); + o.requests = buildUnnamed2904(); } buildCounterAsyncBatchAnnotateImagesRequest--; return o; @@ -471,7 +471,7 @@ if (buildCounterAsyncBatchAnnotateImagesRequest < 3) { checkOutputConfig(o.outputConfig); unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2773(o.requests); + checkUnnamed2904(o.requests); } buildCounterAsyncBatchAnnotateImagesRequest--; } @@ -495,14 +495,14 @@ buildCounterAsyncBatchAnnotateImagesResponse--; } -buildUnnamed2774() { +buildUnnamed2905() { var o = new core.List<api.AnnotateFileRequest>(); o.add(buildAnnotateFileRequest()); o.add(buildAnnotateFileRequest()); return o; } -checkUnnamed2774(core.List<api.AnnotateFileRequest> o) { +checkUnnamed2905(core.List<api.AnnotateFileRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateFileRequest(o[0]); checkAnnotateFileRequest(o[1]); @@ -514,7 +514,7 @@ buildCounterBatchAnnotateFilesRequest++; if (buildCounterBatchAnnotateFilesRequest < 3) { o.parent = "foo"; - o.requests = buildUnnamed2774(); + o.requests = buildUnnamed2905(); } buildCounterBatchAnnotateFilesRequest--; return o; @@ -524,19 +524,19 @@ buildCounterBatchAnnotateFilesRequest++; if (buildCounterBatchAnnotateFilesRequest < 3) { unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2774(o.requests); + checkUnnamed2905(o.requests); } buildCounterBatchAnnotateFilesRequest--; } -buildUnnamed2775() { +buildUnnamed2906() { var o = new core.List<api.AnnotateFileResponse>(); o.add(buildAnnotateFileResponse()); o.add(buildAnnotateFileResponse()); return o; } -checkUnnamed2775(core.List<api.AnnotateFileResponse> o) { +checkUnnamed2906(core.List<api.AnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateFileResponse(o[0]); checkAnnotateFileResponse(o[1]); @@ -547,7 +547,7 @@ var o = new api.BatchAnnotateFilesResponse(); buildCounterBatchAnnotateFilesResponse++; if (buildCounterBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2775(); + o.responses = buildUnnamed2906(); } buildCounterBatchAnnotateFilesResponse--; return o; @@ -556,19 +556,19 @@ checkBatchAnnotateFilesResponse(api.BatchAnnotateFilesResponse o) { buildCounterBatchAnnotateFilesResponse++; if (buildCounterBatchAnnotateFilesResponse < 3) { - checkUnnamed2775(o.responses); + checkUnnamed2906(o.responses); } buildCounterBatchAnnotateFilesResponse--; } -buildUnnamed2776() { +buildUnnamed2907() { var o = new core.List<api.AnnotateImageRequest>(); o.add(buildAnnotateImageRequest()); o.add(buildAnnotateImageRequest()); return o; } -checkUnnamed2776(core.List<api.AnnotateImageRequest> o) { +checkUnnamed2907(core.List<api.AnnotateImageRequest> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageRequest(o[0]); checkAnnotateImageRequest(o[1]); @@ -580,7 +580,7 @@ buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { o.parent = "foo"; - o.requests = buildUnnamed2776(); + o.requests = buildUnnamed2907(); } buildCounterBatchAnnotateImagesRequest--; return o; @@ -590,19 +590,19 @@ buildCounterBatchAnnotateImagesRequest++; if (buildCounterBatchAnnotateImagesRequest < 3) { unittest.expect(o.parent, unittest.equals('foo')); - checkUnnamed2776(o.requests); + checkUnnamed2907(o.requests); } buildCounterBatchAnnotateImagesRequest--; } -buildUnnamed2777() { +buildUnnamed2908() { var o = new core.List<api.AnnotateImageResponse>(); o.add(buildAnnotateImageResponse()); o.add(buildAnnotateImageResponse()); return o; } -checkUnnamed2777(core.List<api.AnnotateImageResponse> o) { +checkUnnamed2908(core.List<api.AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkAnnotateImageResponse(o[0]); checkAnnotateImageResponse(o[1]); @@ -613,7 +613,7 @@ var o = new api.BatchAnnotateImagesResponse(); buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - o.responses = buildUnnamed2777(); + o.responses = buildUnnamed2908(); } buildCounterBatchAnnotateImagesResponse--; return o; @@ -622,7 +622,7 @@ checkBatchAnnotateImagesResponse(api.BatchAnnotateImagesResponse o) { buildCounterBatchAnnotateImagesResponse++; if (buildCounterBatchAnnotateImagesResponse < 3) { - checkUnnamed2777(o.responses); + checkUnnamed2908(o.responses); } buildCounterBatchAnnotateImagesResponse--; } @@ -650,14 +650,14 @@ buildCounterBatchOperationMetadata--; } -buildUnnamed2778() { +buildUnnamed2909() { var o = new core.List<api.Paragraph>(); o.add(buildParagraph()); o.add(buildParagraph()); return o; } -checkUnnamed2778(core.List<api.Paragraph> o) { +checkUnnamed2909(core.List<api.Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkParagraph(o[0]); checkParagraph(o[1]); @@ -671,7 +671,7 @@ o.blockType = "foo"; o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed2778(); + o.paragraphs = buildUnnamed2909(); o.property = buildTextProperty(); } buildCounterBlock--; @@ -684,33 +684,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed2778(o.paragraphs); + checkUnnamed2909(o.paragraphs); checkTextProperty(o.property); } buildCounterBlock--; } -buildUnnamed2779() { +buildUnnamed2910() { var o = new core.List<api.NormalizedVertex>(); o.add(buildNormalizedVertex()); o.add(buildNormalizedVertex()); return o; } -checkUnnamed2779(core.List<api.NormalizedVertex> o) { +checkUnnamed2910(core.List<api.NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkNormalizedVertex(o[0]); checkNormalizedVertex(o[1]); } -buildUnnamed2780() { +buildUnnamed2911() { var o = new core.List<api.Vertex>(); o.add(buildVertex()); o.add(buildVertex()); return o; } -checkUnnamed2780(core.List<api.Vertex> o) { +checkUnnamed2911(core.List<api.Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkVertex(o[0]); checkVertex(o[1]); @@ -721,8 +721,8 @@ var o = new api.BoundingPoly(); buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - o.normalizedVertices = buildUnnamed2779(); - o.vertices = buildUnnamed2780(); + o.normalizedVertices = buildUnnamed2910(); + o.vertices = buildUnnamed2911(); } buildCounterBoundingPoly--; return o; @@ -731,8 +731,8 @@ checkBoundingPoly(api.BoundingPoly o) { buildCounterBoundingPoly++; if (buildCounterBoundingPoly < 3) { - checkUnnamed2779(o.normalizedVertices); - checkUnnamed2780(o.vertices); + checkUnnamed2910(o.normalizedVertices); + checkUnnamed2911(o.vertices); } buildCounterBoundingPoly--; } @@ -823,14 +823,14 @@ buildCounterCropHint--; } -buildUnnamed2781() { +buildUnnamed2912() { var o = new core.List<api.CropHint>(); o.add(buildCropHint()); o.add(buildCropHint()); return o; } -checkUnnamed2781(core.List<api.CropHint> o) { +checkUnnamed2912(core.List<api.CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkCropHint(o[0]); checkCropHint(o[1]); @@ -841,7 +841,7 @@ var o = new api.CropHintsAnnotation(); buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - o.cropHints = buildUnnamed2781(); + o.cropHints = buildUnnamed2912(); } buildCounterCropHintsAnnotation--; return o; @@ -850,19 +850,19 @@ checkCropHintsAnnotation(api.CropHintsAnnotation o) { buildCounterCropHintsAnnotation++; if (buildCounterCropHintsAnnotation < 3) { - checkUnnamed2781(o.cropHints); + checkUnnamed2912(o.cropHints); } buildCounterCropHintsAnnotation--; } -buildUnnamed2782() { +buildUnnamed2913() { var o = new core.List<core.double>(); o.add(42.0); o.add(42.0); return o; } -checkUnnamed2782(core.List<core.double> o) { +checkUnnamed2913(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)); @@ -873,7 +873,7 @@ var o = new api.CropHintsParams(); buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - o.aspectRatios = buildUnnamed2782(); + o.aspectRatios = buildUnnamed2913(); } buildCounterCropHintsParams--; return o; @@ -882,7 +882,7 @@ checkCropHintsParams(api.CropHintsParams o) { buildCounterCropHintsParams++; if (buildCounterCropHintsParams < 3) { - checkUnnamed2782(o.aspectRatios); + checkUnnamed2913(o.aspectRatios); } buildCounterCropHintsParams--; } @@ -929,14 +929,14 @@ buildCounterDetectedLanguage--; } -buildUnnamed2783() { +buildUnnamed2914() { var o = new core.List<api.ColorInfo>(); o.add(buildColorInfo()); o.add(buildColorInfo()); return o; } -checkUnnamed2783(core.List<api.ColorInfo> o) { +checkUnnamed2914(core.List<api.ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkColorInfo(o[0]); checkColorInfo(o[1]); @@ -947,7 +947,7 @@ var o = new api.DominantColorsAnnotation(); buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - o.colors = buildUnnamed2783(); + o.colors = buildUnnamed2914(); } buildCounterDominantColorsAnnotation--; return o; @@ -956,7 +956,7 @@ checkDominantColorsAnnotation(api.DominantColorsAnnotation o) { buildCounterDominantColorsAnnotation++; if (buildCounterDominantColorsAnnotation < 3) { - checkUnnamed2783(o.colors); + checkUnnamed2914(o.colors); } buildCounterDominantColorsAnnotation--; } @@ -976,27 +976,27 @@ buildCounterEmpty--; } -buildUnnamed2784() { +buildUnnamed2915() { var o = new core.List<api.LocationInfo>(); o.add(buildLocationInfo()); o.add(buildLocationInfo()); return o; } -checkUnnamed2784(core.List<api.LocationInfo> o) { +checkUnnamed2915(core.List<api.LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkLocationInfo(o[0]); checkLocationInfo(o[1]); } -buildUnnamed2785() { +buildUnnamed2916() { var o = new core.List<api.Property>(); o.add(buildProperty()); o.add(buildProperty()); return o; } -checkUnnamed2785(core.List<api.Property> o) { +checkUnnamed2916(core.List<api.Property> o) { unittest.expect(o, unittest.hasLength(2)); checkProperty(o[0]); checkProperty(o[1]); @@ -1011,9 +1011,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed2784(); + o.locations = buildUnnamed2915(); o.mid = "foo"; - o.properties = buildUnnamed2785(); + o.properties = buildUnnamed2916(); o.score = 42.0; o.topicality = 42.0; } @@ -1028,23 +1028,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2784(o.locations); + checkUnnamed2915(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed2785(o.properties); + checkUnnamed2916(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterEntityAnnotation--; } -buildUnnamed2786() { +buildUnnamed2917() { var o = new core.List<api.Landmark>(); o.add(buildLandmark()); o.add(buildLandmark()); return o; } -checkUnnamed2786(core.List<api.Landmark> o) { +checkUnnamed2917(core.List<api.Landmark> o) { unittest.expect(o, unittest.hasLength(2)); checkLandmark(o[0]); checkLandmark(o[1]); @@ -1063,7 +1063,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed2786(); + o.landmarks = buildUnnamed2917(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -1086,7 +1086,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed2786(o.landmarks); + checkUnnamed2917(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')); @@ -1158,14 +1158,14 @@ buildCounterGcsSource--; } -buildUnnamed2787() { +buildUnnamed2918() { var o = new core.List<api.GoogleCloudVisionV1p1beta1AnnotateImageResponse>(); o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); o.add(buildGoogleCloudVisionV1p1beta1AnnotateImageResponse()); return o; } -checkUnnamed2787( +checkUnnamed2918( core.List<api.GoogleCloudVisionV1p1beta1AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1AnnotateImageResponse(o[0]); @@ -1179,7 +1179,7 @@ if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { o.error = buildStatus(); o.inputConfig = buildGoogleCloudVisionV1p1beta1InputConfig(); - o.responses = buildUnnamed2787(); + o.responses = buildUnnamed2918(); o.totalPages = 42; } buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; @@ -1192,52 +1192,52 @@ if (buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse < 3) { checkStatus(o.error); checkGoogleCloudVisionV1p1beta1InputConfig(o.inputConfig); - checkUnnamed2787(o.responses); + checkUnnamed2918(o.responses); unittest.expect(o.totalPages, unittest.equals(42)); } buildCounterGoogleCloudVisionV1p1beta1AnnotateFileResponse--; } -buildUnnamed2788() { +buildUnnamed2919() { var o = new core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotation()); return o; } -checkUnnamed2788(core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> o) { +checkUnnamed2919(core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1FaceAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1FaceAnnotation(o[1]); } -buildUnnamed2789() { +buildUnnamed2920() { var o = new core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); return o; } -checkUnnamed2789(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { +checkUnnamed2920(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); } -buildUnnamed2790() { +buildUnnamed2921() { var o = new core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); return o; } -checkUnnamed2790(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { +checkUnnamed2921(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); } -buildUnnamed2791() { +buildUnnamed2922() { var o = new core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation()); @@ -1245,34 +1245,34 @@ return o; } -checkUnnamed2791( +checkUnnamed2922( core.List<api.GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1LocalizedObjectAnnotation(o[1]); } -buildUnnamed2792() { +buildUnnamed2923() { var o = new core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); return o; } -checkUnnamed2792(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { +checkUnnamed2923(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); } -buildUnnamed2793() { +buildUnnamed2924() { var o = new core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p1beta1EntityAnnotation()); return o; } -checkUnnamed2793(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { +checkUnnamed2924(core.List<api.GoogleCloudVisionV1p1beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p1beta1EntityAnnotation(o[1]); @@ -1287,19 +1287,19 @@ o.cropHintsAnnotation = buildGoogleCloudVisionV1p1beta1CropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed2788(); + o.faceAnnotations = buildUnnamed2919(); o.fullTextAnnotation = buildGoogleCloudVisionV1p1beta1TextAnnotation(); o.imagePropertiesAnnotation = buildGoogleCloudVisionV1p1beta1ImageProperties(); - o.labelAnnotations = buildUnnamed2789(); - o.landmarkAnnotations = buildUnnamed2790(); - o.localizedObjectAnnotations = buildUnnamed2791(); - o.logoAnnotations = buildUnnamed2792(); + o.labelAnnotations = buildUnnamed2920(); + o.landmarkAnnotations = buildUnnamed2921(); + o.localizedObjectAnnotations = buildUnnamed2922(); + o.logoAnnotations = buildUnnamed2923(); o.productSearchResults = buildGoogleCloudVisionV1p1beta1ProductSearchResults(); o.safeSearchAnnotation = buildGoogleCloudVisionV1p1beta1SafeSearchAnnotation(); - o.textAnnotations = buildUnnamed2793(); + o.textAnnotations = buildUnnamed2924(); o.webDetection = buildGoogleCloudVisionV1p1beta1WebDetection(); } buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse--; @@ -1313,16 +1313,16 @@ checkGoogleCloudVisionV1p1beta1ImageAnnotationContext(o.context); checkGoogleCloudVisionV1p1beta1CropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed2788(o.faceAnnotations); + checkUnnamed2919(o.faceAnnotations); checkGoogleCloudVisionV1p1beta1TextAnnotation(o.fullTextAnnotation); checkGoogleCloudVisionV1p1beta1ImageProperties(o.imagePropertiesAnnotation); - checkUnnamed2789(o.labelAnnotations); - checkUnnamed2790(o.landmarkAnnotations); - checkUnnamed2791(o.localizedObjectAnnotations); - checkUnnamed2792(o.logoAnnotations); + checkUnnamed2920(o.labelAnnotations); + checkUnnamed2921(o.landmarkAnnotations); + checkUnnamed2922(o.localizedObjectAnnotations); + checkUnnamed2923(o.logoAnnotations); checkGoogleCloudVisionV1p1beta1ProductSearchResults(o.productSearchResults); checkGoogleCloudVisionV1p1beta1SafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed2793(o.textAnnotations); + checkUnnamed2924(o.textAnnotations); checkGoogleCloudVisionV1p1beta1WebDetection(o.webDetection); } buildCounterGoogleCloudVisionV1p1beta1AnnotateImageResponse--; @@ -1348,7 +1348,7 @@ buildCounterGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse--; } -buildUnnamed2794() { +buildUnnamed2925() { var o = new core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse>(); o.add(buildGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse()); @@ -1356,7 +1356,7 @@ return o; } -checkUnnamed2794( +checkUnnamed2925( core.List<api.GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse(o[0]); @@ -1370,7 +1370,7 @@ buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2794(); + o.responses = buildUnnamed2925(); } buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; return o; @@ -1381,19 +1381,19 @@ buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse < 3) { - checkUnnamed2794(o.responses); + checkUnnamed2925(o.responses); } buildCounterGoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse--; } -buildUnnamed2795() { +buildUnnamed2926() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Paragraph>(); o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); o.add(buildGoogleCloudVisionV1p1beta1Paragraph()); return o; } -checkUnnamed2795(core.List<api.GoogleCloudVisionV1p1beta1Paragraph> o) { +checkUnnamed2926(core.List<api.GoogleCloudVisionV1p1beta1Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Paragraph(o[0]); checkGoogleCloudVisionV1p1beta1Paragraph(o[1]); @@ -1407,7 +1407,7 @@ o.blockType = "foo"; o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed2795(); + o.paragraphs = buildUnnamed2926(); o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); } buildCounterGoogleCloudVisionV1p1beta1Block--; @@ -1420,33 +1420,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed2795(o.paragraphs); + checkUnnamed2926(o.paragraphs); checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); } buildCounterGoogleCloudVisionV1p1beta1Block--; } -buildUnnamed2796() { +buildUnnamed2927() { var o = new core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex>(); o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); o.add(buildGoogleCloudVisionV1p1beta1NormalizedVertex()); return o; } -checkUnnamed2796(core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> o) { +checkUnnamed2927(core.List<api.GoogleCloudVisionV1p1beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1NormalizedVertex(o[0]); checkGoogleCloudVisionV1p1beta1NormalizedVertex(o[1]); } -buildUnnamed2797() { +buildUnnamed2928() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Vertex>(); o.add(buildGoogleCloudVisionV1p1beta1Vertex()); o.add(buildGoogleCloudVisionV1p1beta1Vertex()); return o; } -checkUnnamed2797(core.List<api.GoogleCloudVisionV1p1beta1Vertex> o) { +checkUnnamed2928(core.List<api.GoogleCloudVisionV1p1beta1Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Vertex(o[0]); checkGoogleCloudVisionV1p1beta1Vertex(o[1]); @@ -1457,8 +1457,8 @@ var o = new api.GoogleCloudVisionV1p1beta1BoundingPoly(); buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { - o.normalizedVertices = buildUnnamed2796(); - o.vertices = buildUnnamed2797(); + o.normalizedVertices = buildUnnamed2927(); + o.vertices = buildUnnamed2928(); } buildCounterGoogleCloudVisionV1p1beta1BoundingPoly--; return o; @@ -1468,8 +1468,8 @@ api.GoogleCloudVisionV1p1beta1BoundingPoly o) { buildCounterGoogleCloudVisionV1p1beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p1beta1BoundingPoly < 3) { - checkUnnamed2796(o.normalizedVertices); - checkUnnamed2797(o.vertices); + checkUnnamed2927(o.normalizedVertices); + checkUnnamed2928(o.vertices); } buildCounterGoogleCloudVisionV1p1beta1BoundingPoly--; } @@ -1522,14 +1522,14 @@ buildCounterGoogleCloudVisionV1p1beta1CropHint--; } -buildUnnamed2798() { +buildUnnamed2929() { var o = new core.List<api.GoogleCloudVisionV1p1beta1CropHint>(); o.add(buildGoogleCloudVisionV1p1beta1CropHint()); o.add(buildGoogleCloudVisionV1p1beta1CropHint()); return o; } -checkUnnamed2798(core.List<api.GoogleCloudVisionV1p1beta1CropHint> o) { +checkUnnamed2929(core.List<api.GoogleCloudVisionV1p1beta1CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1CropHint(o[0]); checkGoogleCloudVisionV1p1beta1CropHint(o[1]); @@ -1540,7 +1540,7 @@ var o = new api.GoogleCloudVisionV1p1beta1CropHintsAnnotation(); buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { - o.cropHints = buildUnnamed2798(); + o.cropHints = buildUnnamed2929(); } buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; return o; @@ -1550,19 +1550,19 @@ api.GoogleCloudVisionV1p1beta1CropHintsAnnotation o) { buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation < 3) { - checkUnnamed2798(o.cropHints); + checkUnnamed2929(o.cropHints); } buildCounterGoogleCloudVisionV1p1beta1CropHintsAnnotation--; } -buildUnnamed2799() { +buildUnnamed2930() { var o = new core.List<api.GoogleCloudVisionV1p1beta1ColorInfo>(); o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); o.add(buildGoogleCloudVisionV1p1beta1ColorInfo()); return o; } -checkUnnamed2799(core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> o) { +checkUnnamed2930(core.List<api.GoogleCloudVisionV1p1beta1ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1ColorInfo(o[0]); checkGoogleCloudVisionV1p1beta1ColorInfo(o[1]); @@ -1573,7 +1573,7 @@ var o = new api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation(); buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { - o.colors = buildUnnamed2799(); + o.colors = buildUnnamed2930(); } buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; return o; @@ -1583,32 +1583,32 @@ api.GoogleCloudVisionV1p1beta1DominantColorsAnnotation o) { buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation < 3) { - checkUnnamed2799(o.colors); + checkUnnamed2930(o.colors); } buildCounterGoogleCloudVisionV1p1beta1DominantColorsAnnotation--; } -buildUnnamed2800() { +buildUnnamed2931() { var o = new core.List<api.GoogleCloudVisionV1p1beta1LocationInfo>(); o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); o.add(buildGoogleCloudVisionV1p1beta1LocationInfo()); return o; } -checkUnnamed2800(core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> o) { +checkUnnamed2931(core.List<api.GoogleCloudVisionV1p1beta1LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1LocationInfo(o[0]); checkGoogleCloudVisionV1p1beta1LocationInfo(o[1]); } -buildUnnamed2801() { +buildUnnamed2932() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Property>(); o.add(buildGoogleCloudVisionV1p1beta1Property()); o.add(buildGoogleCloudVisionV1p1beta1Property()); return o; } -checkUnnamed2801(core.List<api.GoogleCloudVisionV1p1beta1Property> o) { +checkUnnamed2932(core.List<api.GoogleCloudVisionV1p1beta1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Property(o[0]); checkGoogleCloudVisionV1p1beta1Property(o[1]); @@ -1623,9 +1623,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed2800(); + o.locations = buildUnnamed2931(); o.mid = "foo"; - o.properties = buildUnnamed2801(); + o.properties = buildUnnamed2932(); o.score = 42.0; o.topicality = 42.0; } @@ -1641,23 +1641,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2800(o.locations); + checkUnnamed2931(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed2801(o.properties); + checkUnnamed2932(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterGoogleCloudVisionV1p1beta1EntityAnnotation--; } -buildUnnamed2802() { +buildUnnamed2933() { var o = new core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark>(); o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); o.add(buildGoogleCloudVisionV1p1beta1FaceAnnotationLandmark()); return o; } -checkUnnamed2802( +checkUnnamed2933( core.List<api.GoogleCloudVisionV1p1beta1FaceAnnotationLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1FaceAnnotationLandmark(o[0]); @@ -1677,7 +1677,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed2802(); + o.landmarks = buildUnnamed2933(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -1701,7 +1701,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed2802(o.landmarks); + checkUnnamed2933(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')); @@ -1957,14 +1957,14 @@ buildCounterGoogleCloudVisionV1p1beta1OutputConfig--; } -buildUnnamed2803() { +buildUnnamed2934() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Block>(); o.add(buildGoogleCloudVisionV1p1beta1Block()); o.add(buildGoogleCloudVisionV1p1beta1Block()); return o; } -checkUnnamed2803(core.List<api.GoogleCloudVisionV1p1beta1Block> o) { +checkUnnamed2934(core.List<api.GoogleCloudVisionV1p1beta1Block> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Block(o[0]); checkGoogleCloudVisionV1p1beta1Block(o[1]); @@ -1975,7 +1975,7 @@ var o = new api.GoogleCloudVisionV1p1beta1Page(); buildCounterGoogleCloudVisionV1p1beta1Page++; if (buildCounterGoogleCloudVisionV1p1beta1Page < 3) { - o.blocks = buildUnnamed2803(); + o.blocks = buildUnnamed2934(); o.confidence = 42.0; o.height = 42; o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); @@ -1988,7 +1988,7 @@ checkGoogleCloudVisionV1p1beta1Page(api.GoogleCloudVisionV1p1beta1Page o) { buildCounterGoogleCloudVisionV1p1beta1Page++; if (buildCounterGoogleCloudVisionV1p1beta1Page < 3) { - checkUnnamed2803(o.blocks); + checkUnnamed2934(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); @@ -1997,14 +1997,14 @@ buildCounterGoogleCloudVisionV1p1beta1Page--; } -buildUnnamed2804() { +buildUnnamed2935() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Word>(); o.add(buildGoogleCloudVisionV1p1beta1Word()); o.add(buildGoogleCloudVisionV1p1beta1Word()); return o; } -checkUnnamed2804(core.List<api.GoogleCloudVisionV1p1beta1Word> o) { +checkUnnamed2935(core.List<api.GoogleCloudVisionV1p1beta1Word> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Word(o[0]); checkGoogleCloudVisionV1p1beta1Word(o[1]); @@ -2018,7 +2018,7 @@ o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); - o.words = buildUnnamed2804(); + o.words = buildUnnamed2935(); } buildCounterGoogleCloudVisionV1p1beta1Paragraph--; return o; @@ -2031,7 +2031,7 @@ checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); - checkUnnamed2804(o.words); + checkUnnamed2935(o.words); } buildCounterGoogleCloudVisionV1p1beta1Paragraph--; } @@ -2060,14 +2060,14 @@ buildCounterGoogleCloudVisionV1p1beta1Position--; } -buildUnnamed2805() { +buildUnnamed2936() { var o = new core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue>(); o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); o.add(buildGoogleCloudVisionV1p1beta1ProductKeyValue()); return o; } -checkUnnamed2805(core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue> o) { +checkUnnamed2936(core.List<api.GoogleCloudVisionV1p1beta1ProductKeyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1ProductKeyValue(o[0]); checkGoogleCloudVisionV1p1beta1ProductKeyValue(o[1]); @@ -2082,7 +2082,7 @@ o.displayName = "foo"; o.name = "foo"; o.productCategory = "foo"; - o.productLabels = buildUnnamed2805(); + o.productLabels = buildUnnamed2936(); } buildCounterGoogleCloudVisionV1p1beta1Product--; return o; @@ -2096,7 +2096,7 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productCategory, unittest.equals('foo')); - checkUnnamed2805(o.productLabels); + checkUnnamed2936(o.productLabels); } buildCounterGoogleCloudVisionV1p1beta1Product--; } @@ -2123,7 +2123,7 @@ buildCounterGoogleCloudVisionV1p1beta1ProductKeyValue--; } -buildUnnamed2806() { +buildUnnamed2937() { var o = new core .List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult>(); o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult()); @@ -2131,7 +2131,7 @@ return o; } -checkUnnamed2806( +checkUnnamed2937( core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult> o) { unittest.expect(o, unittest.hasLength(2)); @@ -2139,7 +2139,7 @@ checkGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult(o[1]); } -buildUnnamed2807() { +buildUnnamed2938() { var o = new core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); @@ -2147,7 +2147,7 @@ return o; } -checkUnnamed2807( +checkUnnamed2938( core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[0]); @@ -2160,8 +2160,8 @@ buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { o.indexTime = "foo"; - o.productGroupedResults = buildUnnamed2806(); - o.results = buildUnnamed2807(); + o.productGroupedResults = buildUnnamed2937(); + o.results = buildUnnamed2938(); } buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; return o; @@ -2172,13 +2172,13 @@ buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults < 3) { unittest.expect(o.indexTime, unittest.equals('foo')); - checkUnnamed2806(o.productGroupedResults); - checkUnnamed2807(o.results); + checkUnnamed2937(o.productGroupedResults); + checkUnnamed2938(o.results); } buildCounterGoogleCloudVisionV1p1beta1ProductSearchResults--; } -buildUnnamed2808() { +buildUnnamed2939() { var o = new core.List< api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation()); @@ -2186,7 +2186,7 @@ return o; } -checkUnnamed2808( +checkUnnamed2939( core.List< api.GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation> o) { @@ -2195,7 +2195,7 @@ checkGoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation(o[1]); } -buildUnnamed2809() { +buildUnnamed2940() { var o = new core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p1beta1ProductSearchResultsResult()); @@ -2203,7 +2203,7 @@ return o; } -checkUnnamed2809( +checkUnnamed2940( core.List<api.GoogleCloudVisionV1p1beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1ProductSearchResultsResult(o[0]); @@ -2218,8 +2218,8 @@ if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < 3) { o.boundingPoly = buildGoogleCloudVisionV1p1beta1BoundingPoly(); - o.objectAnnotations = buildUnnamed2808(); - o.results = buildUnnamed2809(); + o.objectAnnotations = buildUnnamed2939(); + o.results = buildUnnamed2940(); } buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult--; return o; @@ -2231,8 +2231,8 @@ if (buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult < 3) { checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingPoly); - checkUnnamed2808(o.objectAnnotations); - checkUnnamed2809(o.results); + checkUnnamed2939(o.objectAnnotations); + checkUnnamed2940(o.results); } buildCounterGoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult--; } @@ -2369,14 +2369,14 @@ buildCounterGoogleCloudVisionV1p1beta1Symbol--; } -buildUnnamed2810() { +buildUnnamed2941() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Page>(); o.add(buildGoogleCloudVisionV1p1beta1Page()); o.add(buildGoogleCloudVisionV1p1beta1Page()); return o; } -checkUnnamed2810(core.List<api.GoogleCloudVisionV1p1beta1Page> o) { +checkUnnamed2941(core.List<api.GoogleCloudVisionV1p1beta1Page> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Page(o[0]); checkGoogleCloudVisionV1p1beta1Page(o[1]); @@ -2387,7 +2387,7 @@ var o = new api.GoogleCloudVisionV1p1beta1TextAnnotation(); buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { - o.pages = buildUnnamed2810(); + o.pages = buildUnnamed2941(); o.text = "foo"; } buildCounterGoogleCloudVisionV1p1beta1TextAnnotation--; @@ -2398,7 +2398,7 @@ api.GoogleCloudVisionV1p1beta1TextAnnotation o) { buildCounterGoogleCloudVisionV1p1beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotation < 3) { - checkUnnamed2810(o.pages); + checkUnnamed2941(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p1beta1TextAnnotation--; @@ -2451,7 +2451,7 @@ buildCounterGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage--; } -buildUnnamed2811() { +buildUnnamed2942() { var o = new core .List<api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage>(); o.add(buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage()); @@ -2459,7 +2459,7 @@ return o; } -checkUnnamed2811( +checkUnnamed2942( core.List<api.GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage(o[0]); @@ -2473,7 +2473,7 @@ if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { o.detectedBreak = buildGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(); - o.detectedLanguages = buildUnnamed2811(); + o.detectedLanguages = buildUnnamed2942(); } buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty--; return o; @@ -2484,7 +2484,7 @@ buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty++; if (buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty < 3) { checkGoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak(o.detectedBreak); - checkUnnamed2811(o.detectedLanguages); + checkUnnamed2942(o.detectedLanguages); } buildCounterGoogleCloudVisionV1p1beta1TextAnnotationTextProperty--; } @@ -2510,84 +2510,84 @@ buildCounterGoogleCloudVisionV1p1beta1Vertex--; } -buildUnnamed2812() { +buildUnnamed2943() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebLabel()); return o; } -checkUnnamed2812( +checkUnnamed2943( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebLabel(o[1]); } -buildUnnamed2813() { +buildUnnamed2944() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); return o; } -checkUnnamed2813( +checkUnnamed2944( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); } -buildUnnamed2814() { +buildUnnamed2945() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebPage()); return o; } -checkUnnamed2814( +checkUnnamed2945( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebPage(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebPage(o[1]); } -buildUnnamed2815() { +buildUnnamed2946() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); return o; } -checkUnnamed2815( +checkUnnamed2946( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); } -buildUnnamed2816() { +buildUnnamed2947() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); return o; } -checkUnnamed2816( +checkUnnamed2947( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); } -buildUnnamed2817() { +buildUnnamed2948() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebEntity()); return o; } -checkUnnamed2817( +checkUnnamed2948( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebEntity(o[0]); @@ -2599,12 +2599,12 @@ var o = new api.GoogleCloudVisionV1p1beta1WebDetection(); buildCounterGoogleCloudVisionV1p1beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { - o.bestGuessLabels = buildUnnamed2812(); - o.fullMatchingImages = buildUnnamed2813(); - o.pagesWithMatchingImages = buildUnnamed2814(); - o.partialMatchingImages = buildUnnamed2815(); - o.visuallySimilarImages = buildUnnamed2816(); - o.webEntities = buildUnnamed2817(); + o.bestGuessLabels = buildUnnamed2943(); + o.fullMatchingImages = buildUnnamed2944(); + o.pagesWithMatchingImages = buildUnnamed2945(); + o.partialMatchingImages = buildUnnamed2946(); + o.visuallySimilarImages = buildUnnamed2947(); + o.webEntities = buildUnnamed2948(); } buildCounterGoogleCloudVisionV1p1beta1WebDetection--; return o; @@ -2614,12 +2614,12 @@ api.GoogleCloudVisionV1p1beta1WebDetection o) { buildCounterGoogleCloudVisionV1p1beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p1beta1WebDetection < 3) { - checkUnnamed2812(o.bestGuessLabels); - checkUnnamed2813(o.fullMatchingImages); - checkUnnamed2814(o.pagesWithMatchingImages); - checkUnnamed2815(o.partialMatchingImages); - checkUnnamed2816(o.visuallySimilarImages); - checkUnnamed2817(o.webEntities); + checkUnnamed2943(o.bestGuessLabels); + checkUnnamed2944(o.fullMatchingImages); + checkUnnamed2945(o.pagesWithMatchingImages); + checkUnnamed2946(o.partialMatchingImages); + checkUnnamed2947(o.visuallySimilarImages); + checkUnnamed2948(o.webEntities); } buildCounterGoogleCloudVisionV1p1beta1WebDetection--; } @@ -2692,28 +2692,28 @@ buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebLabel--; } -buildUnnamed2818() { +buildUnnamed2949() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); return o; } -checkUnnamed2818( +checkUnnamed2949( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[1]); } -buildUnnamed2819() { +buildUnnamed2950() { var o = new core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p1beta1WebDetectionWebImage()); return o; } -checkUnnamed2819( +checkUnnamed2950( core.List<api.GoogleCloudVisionV1p1beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1WebDetectionWebImage(o[0]); @@ -2725,9 +2725,9 @@ var o = new api.GoogleCloudVisionV1p1beta1WebDetectionWebPage(); buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { - o.fullMatchingImages = buildUnnamed2818(); + o.fullMatchingImages = buildUnnamed2949(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed2819(); + o.partialMatchingImages = buildUnnamed2950(); o.score = 42.0; o.url = "foo"; } @@ -2739,23 +2739,23 @@ api.GoogleCloudVisionV1p1beta1WebDetectionWebPage o) { buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage < 3) { - checkUnnamed2818(o.fullMatchingImages); + checkUnnamed2949(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed2819(o.partialMatchingImages); + checkUnnamed2950(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p1beta1WebDetectionWebPage--; } -buildUnnamed2820() { +buildUnnamed2951() { var o = new core.List<api.GoogleCloudVisionV1p1beta1Symbol>(); o.add(buildGoogleCloudVisionV1p1beta1Symbol()); o.add(buildGoogleCloudVisionV1p1beta1Symbol()); return o; } -checkUnnamed2820(core.List<api.GoogleCloudVisionV1p1beta1Symbol> o) { +checkUnnamed2951(core.List<api.GoogleCloudVisionV1p1beta1Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p1beta1Symbol(o[0]); checkGoogleCloudVisionV1p1beta1Symbol(o[1]); @@ -2769,7 +2769,7 @@ o.boundingBox = buildGoogleCloudVisionV1p1beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(); - o.symbols = buildUnnamed2820(); + o.symbols = buildUnnamed2951(); } buildCounterGoogleCloudVisionV1p1beta1Word--; return o; @@ -2781,19 +2781,19 @@ checkGoogleCloudVisionV1p1beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p1beta1TextAnnotationTextProperty(o.property); - checkUnnamed2820(o.symbols); + checkUnnamed2951(o.symbols); } buildCounterGoogleCloudVisionV1p1beta1Word--; } -buildUnnamed2821() { +buildUnnamed2952() { var o = new core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse>(); o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); o.add(buildGoogleCloudVisionV1p2beta1AnnotateImageResponse()); return o; } -checkUnnamed2821( +checkUnnamed2952( core.List<api.GoogleCloudVisionV1p2beta1AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1AnnotateImageResponse(o[0]); @@ -2807,7 +2807,7 @@ if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { o.error = buildStatus(); o.inputConfig = buildGoogleCloudVisionV1p2beta1InputConfig(); - o.responses = buildUnnamed2821(); + o.responses = buildUnnamed2952(); o.totalPages = 42; } buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; @@ -2820,52 +2820,52 @@ if (buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse < 3) { checkStatus(o.error); checkGoogleCloudVisionV1p2beta1InputConfig(o.inputConfig); - checkUnnamed2821(o.responses); + checkUnnamed2952(o.responses); unittest.expect(o.totalPages, unittest.equals(42)); } buildCounterGoogleCloudVisionV1p2beta1AnnotateFileResponse--; } -buildUnnamed2822() { +buildUnnamed2953() { var o = new core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotation()); return o; } -checkUnnamed2822(core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> o) { +checkUnnamed2953(core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1FaceAnnotation(o[1]); } -buildUnnamed2823() { +buildUnnamed2954() { var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); return o; } -checkUnnamed2823(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { +checkUnnamed2954(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); } -buildUnnamed2824() { +buildUnnamed2955() { var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); return o; } -checkUnnamed2824(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { +checkUnnamed2955(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); } -buildUnnamed2825() { +buildUnnamed2956() { var o = new core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation()); @@ -2873,34 +2873,34 @@ return o; } -checkUnnamed2825( +checkUnnamed2956( core.List<api.GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1LocalizedObjectAnnotation(o[1]); } -buildUnnamed2826() { +buildUnnamed2957() { var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); return o; } -checkUnnamed2826(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { +checkUnnamed2957(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); } -buildUnnamed2827() { +buildUnnamed2958() { var o = new core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p2beta1EntityAnnotation()); return o; } -checkUnnamed2827(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { +checkUnnamed2958(core.List<api.GoogleCloudVisionV1p2beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p2beta1EntityAnnotation(o[1]); @@ -2915,19 +2915,19 @@ o.cropHintsAnnotation = buildGoogleCloudVisionV1p2beta1CropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed2822(); + o.faceAnnotations = buildUnnamed2953(); o.fullTextAnnotation = buildGoogleCloudVisionV1p2beta1TextAnnotation(); o.imagePropertiesAnnotation = buildGoogleCloudVisionV1p2beta1ImageProperties(); - o.labelAnnotations = buildUnnamed2823(); - o.landmarkAnnotations = buildUnnamed2824(); - o.localizedObjectAnnotations = buildUnnamed2825(); - o.logoAnnotations = buildUnnamed2826(); + o.labelAnnotations = buildUnnamed2954(); + o.landmarkAnnotations = buildUnnamed2955(); + o.localizedObjectAnnotations = buildUnnamed2956(); + o.logoAnnotations = buildUnnamed2957(); o.productSearchResults = buildGoogleCloudVisionV1p2beta1ProductSearchResults(); o.safeSearchAnnotation = buildGoogleCloudVisionV1p2beta1SafeSearchAnnotation(); - o.textAnnotations = buildUnnamed2827(); + o.textAnnotations = buildUnnamed2958(); o.webDetection = buildGoogleCloudVisionV1p2beta1WebDetection(); } buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; @@ -2941,16 +2941,16 @@ checkGoogleCloudVisionV1p2beta1ImageAnnotationContext(o.context); checkGoogleCloudVisionV1p2beta1CropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed2822(o.faceAnnotations); + checkUnnamed2953(o.faceAnnotations); checkGoogleCloudVisionV1p2beta1TextAnnotation(o.fullTextAnnotation); checkGoogleCloudVisionV1p2beta1ImageProperties(o.imagePropertiesAnnotation); - checkUnnamed2823(o.labelAnnotations); - checkUnnamed2824(o.landmarkAnnotations); - checkUnnamed2825(o.localizedObjectAnnotations); - checkUnnamed2826(o.logoAnnotations); + checkUnnamed2954(o.labelAnnotations); + checkUnnamed2955(o.landmarkAnnotations); + checkUnnamed2956(o.localizedObjectAnnotations); + checkUnnamed2957(o.logoAnnotations); checkGoogleCloudVisionV1p2beta1ProductSearchResults(o.productSearchResults); checkGoogleCloudVisionV1p2beta1SafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed2827(o.textAnnotations); + checkUnnamed2958(o.textAnnotations); checkGoogleCloudVisionV1p2beta1WebDetection(o.webDetection); } buildCounterGoogleCloudVisionV1p2beta1AnnotateImageResponse--; @@ -2976,7 +2976,7 @@ buildCounterGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse--; } -buildUnnamed2828() { +buildUnnamed2959() { var o = new core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse>(); o.add(buildGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse()); @@ -2984,7 +2984,7 @@ return o; } -checkUnnamed2828( +checkUnnamed2959( core.List<api.GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse(o[0]); @@ -2998,7 +2998,7 @@ buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2828(); + o.responses = buildUnnamed2959(); } buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; return o; @@ -3009,19 +3009,19 @@ buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse < 3) { - checkUnnamed2828(o.responses); + checkUnnamed2959(o.responses); } buildCounterGoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse--; } -buildUnnamed2829() { +buildUnnamed2960() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Paragraph>(); o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); o.add(buildGoogleCloudVisionV1p2beta1Paragraph()); return o; } -checkUnnamed2829(core.List<api.GoogleCloudVisionV1p2beta1Paragraph> o) { +checkUnnamed2960(core.List<api.GoogleCloudVisionV1p2beta1Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Paragraph(o[0]); checkGoogleCloudVisionV1p2beta1Paragraph(o[1]); @@ -3035,7 +3035,7 @@ o.blockType = "foo"; o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed2829(); + o.paragraphs = buildUnnamed2960(); o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); } buildCounterGoogleCloudVisionV1p2beta1Block--; @@ -3048,33 +3048,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed2829(o.paragraphs); + checkUnnamed2960(o.paragraphs); checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); } buildCounterGoogleCloudVisionV1p2beta1Block--; } -buildUnnamed2830() { +buildUnnamed2961() { var o = new core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex>(); o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); o.add(buildGoogleCloudVisionV1p2beta1NormalizedVertex()); return o; } -checkUnnamed2830(core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> o) { +checkUnnamed2961(core.List<api.GoogleCloudVisionV1p2beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[0]); checkGoogleCloudVisionV1p2beta1NormalizedVertex(o[1]); } -buildUnnamed2831() { +buildUnnamed2962() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Vertex>(); o.add(buildGoogleCloudVisionV1p2beta1Vertex()); o.add(buildGoogleCloudVisionV1p2beta1Vertex()); return o; } -checkUnnamed2831(core.List<api.GoogleCloudVisionV1p2beta1Vertex> o) { +checkUnnamed2962(core.List<api.GoogleCloudVisionV1p2beta1Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Vertex(o[0]); checkGoogleCloudVisionV1p2beta1Vertex(o[1]); @@ -3085,8 +3085,8 @@ var o = new api.GoogleCloudVisionV1p2beta1BoundingPoly(); buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { - o.normalizedVertices = buildUnnamed2830(); - o.vertices = buildUnnamed2831(); + o.normalizedVertices = buildUnnamed2961(); + o.vertices = buildUnnamed2962(); } buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; return o; @@ -3096,8 +3096,8 @@ api.GoogleCloudVisionV1p2beta1BoundingPoly o) { buildCounterGoogleCloudVisionV1p2beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p2beta1BoundingPoly < 3) { - checkUnnamed2830(o.normalizedVertices); - checkUnnamed2831(o.vertices); + checkUnnamed2961(o.normalizedVertices); + checkUnnamed2962(o.vertices); } buildCounterGoogleCloudVisionV1p2beta1BoundingPoly--; } @@ -3150,14 +3150,14 @@ buildCounterGoogleCloudVisionV1p2beta1CropHint--; } -buildUnnamed2832() { +buildUnnamed2963() { var o = new core.List<api.GoogleCloudVisionV1p2beta1CropHint>(); o.add(buildGoogleCloudVisionV1p2beta1CropHint()); o.add(buildGoogleCloudVisionV1p2beta1CropHint()); return o; } -checkUnnamed2832(core.List<api.GoogleCloudVisionV1p2beta1CropHint> o) { +checkUnnamed2963(core.List<api.GoogleCloudVisionV1p2beta1CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1CropHint(o[0]); checkGoogleCloudVisionV1p2beta1CropHint(o[1]); @@ -3168,7 +3168,7 @@ var o = new api.GoogleCloudVisionV1p2beta1CropHintsAnnotation(); buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { - o.cropHints = buildUnnamed2832(); + o.cropHints = buildUnnamed2963(); } buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; return o; @@ -3178,19 +3178,19 @@ api.GoogleCloudVisionV1p2beta1CropHintsAnnotation o) { buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation < 3) { - checkUnnamed2832(o.cropHints); + checkUnnamed2963(o.cropHints); } buildCounterGoogleCloudVisionV1p2beta1CropHintsAnnotation--; } -buildUnnamed2833() { +buildUnnamed2964() { var o = new core.List<api.GoogleCloudVisionV1p2beta1ColorInfo>(); o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); o.add(buildGoogleCloudVisionV1p2beta1ColorInfo()); return o; } -checkUnnamed2833(core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> o) { +checkUnnamed2964(core.List<api.GoogleCloudVisionV1p2beta1ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1ColorInfo(o[0]); checkGoogleCloudVisionV1p2beta1ColorInfo(o[1]); @@ -3201,7 +3201,7 @@ var o = new api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation(); buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { - o.colors = buildUnnamed2833(); + o.colors = buildUnnamed2964(); } buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; return o; @@ -3211,32 +3211,32 @@ api.GoogleCloudVisionV1p2beta1DominantColorsAnnotation o) { buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation < 3) { - checkUnnamed2833(o.colors); + checkUnnamed2964(o.colors); } buildCounterGoogleCloudVisionV1p2beta1DominantColorsAnnotation--; } -buildUnnamed2834() { +buildUnnamed2965() { var o = new core.List<api.GoogleCloudVisionV1p2beta1LocationInfo>(); o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); o.add(buildGoogleCloudVisionV1p2beta1LocationInfo()); return o; } -checkUnnamed2834(core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> o) { +checkUnnamed2965(core.List<api.GoogleCloudVisionV1p2beta1LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1LocationInfo(o[0]); checkGoogleCloudVisionV1p2beta1LocationInfo(o[1]); } -buildUnnamed2835() { +buildUnnamed2966() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Property>(); o.add(buildGoogleCloudVisionV1p2beta1Property()); o.add(buildGoogleCloudVisionV1p2beta1Property()); return o; } -checkUnnamed2835(core.List<api.GoogleCloudVisionV1p2beta1Property> o) { +checkUnnamed2966(core.List<api.GoogleCloudVisionV1p2beta1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Property(o[0]); checkGoogleCloudVisionV1p2beta1Property(o[1]); @@ -3251,9 +3251,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed2834(); + o.locations = buildUnnamed2965(); o.mid = "foo"; - o.properties = buildUnnamed2835(); + o.properties = buildUnnamed2966(); o.score = 42.0; o.topicality = 42.0; } @@ -3269,23 +3269,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2834(o.locations); + checkUnnamed2965(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed2835(o.properties); + checkUnnamed2966(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterGoogleCloudVisionV1p2beta1EntityAnnotation--; } -buildUnnamed2836() { +buildUnnamed2967() { var o = new core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark>(); o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); o.add(buildGoogleCloudVisionV1p2beta1FaceAnnotationLandmark()); return o; } -checkUnnamed2836( +checkUnnamed2967( core.List<api.GoogleCloudVisionV1p2beta1FaceAnnotationLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1FaceAnnotationLandmark(o[0]); @@ -3305,7 +3305,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed2836(); + o.landmarks = buildUnnamed2967(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -3329,7 +3329,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed2836(o.landmarks); + checkUnnamed2967(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')); @@ -3585,14 +3585,14 @@ buildCounterGoogleCloudVisionV1p2beta1OutputConfig--; } -buildUnnamed2837() { +buildUnnamed2968() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Block>(); o.add(buildGoogleCloudVisionV1p2beta1Block()); o.add(buildGoogleCloudVisionV1p2beta1Block()); return o; } -checkUnnamed2837(core.List<api.GoogleCloudVisionV1p2beta1Block> o) { +checkUnnamed2968(core.List<api.GoogleCloudVisionV1p2beta1Block> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Block(o[0]); checkGoogleCloudVisionV1p2beta1Block(o[1]); @@ -3603,7 +3603,7 @@ var o = new api.GoogleCloudVisionV1p2beta1Page(); buildCounterGoogleCloudVisionV1p2beta1Page++; if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { - o.blocks = buildUnnamed2837(); + o.blocks = buildUnnamed2968(); o.confidence = 42.0; o.height = 42; o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); @@ -3616,7 +3616,7 @@ checkGoogleCloudVisionV1p2beta1Page(api.GoogleCloudVisionV1p2beta1Page o) { buildCounterGoogleCloudVisionV1p2beta1Page++; if (buildCounterGoogleCloudVisionV1p2beta1Page < 3) { - checkUnnamed2837(o.blocks); + checkUnnamed2968(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); @@ -3625,14 +3625,14 @@ buildCounterGoogleCloudVisionV1p2beta1Page--; } -buildUnnamed2838() { +buildUnnamed2969() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Word>(); o.add(buildGoogleCloudVisionV1p2beta1Word()); o.add(buildGoogleCloudVisionV1p2beta1Word()); return o; } -checkUnnamed2838(core.List<api.GoogleCloudVisionV1p2beta1Word> o) { +checkUnnamed2969(core.List<api.GoogleCloudVisionV1p2beta1Word> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Word(o[0]); checkGoogleCloudVisionV1p2beta1Word(o[1]); @@ -3646,7 +3646,7 @@ o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); - o.words = buildUnnamed2838(); + o.words = buildUnnamed2969(); } buildCounterGoogleCloudVisionV1p2beta1Paragraph--; return o; @@ -3659,7 +3659,7 @@ checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); - checkUnnamed2838(o.words); + checkUnnamed2969(o.words); } buildCounterGoogleCloudVisionV1p2beta1Paragraph--; } @@ -3688,14 +3688,14 @@ buildCounterGoogleCloudVisionV1p2beta1Position--; } -buildUnnamed2839() { +buildUnnamed2970() { var o = new core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue>(); o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); o.add(buildGoogleCloudVisionV1p2beta1ProductKeyValue()); return o; } -checkUnnamed2839(core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue> o) { +checkUnnamed2970(core.List<api.GoogleCloudVisionV1p2beta1ProductKeyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1ProductKeyValue(o[0]); checkGoogleCloudVisionV1p2beta1ProductKeyValue(o[1]); @@ -3710,7 +3710,7 @@ o.displayName = "foo"; o.name = "foo"; o.productCategory = "foo"; - o.productLabels = buildUnnamed2839(); + o.productLabels = buildUnnamed2970(); } buildCounterGoogleCloudVisionV1p2beta1Product--; return o; @@ -3724,7 +3724,7 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productCategory, unittest.equals('foo')); - checkUnnamed2839(o.productLabels); + checkUnnamed2970(o.productLabels); } buildCounterGoogleCloudVisionV1p2beta1Product--; } @@ -3751,7 +3751,7 @@ buildCounterGoogleCloudVisionV1p2beta1ProductKeyValue--; } -buildUnnamed2840() { +buildUnnamed2971() { var o = new core .List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult>(); o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult()); @@ -3759,7 +3759,7 @@ return o; } -checkUnnamed2840( +checkUnnamed2971( core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult> o) { unittest.expect(o, unittest.hasLength(2)); @@ -3767,7 +3767,7 @@ checkGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult(o[1]); } -buildUnnamed2841() { +buildUnnamed2972() { var o = new core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); @@ -3775,7 +3775,7 @@ return o; } -checkUnnamed2841( +checkUnnamed2972( core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[0]); @@ -3788,8 +3788,8 @@ buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { o.indexTime = "foo"; - o.productGroupedResults = buildUnnamed2840(); - o.results = buildUnnamed2841(); + o.productGroupedResults = buildUnnamed2971(); + o.results = buildUnnamed2972(); } buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; return o; @@ -3800,13 +3800,13 @@ buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults < 3) { unittest.expect(o.indexTime, unittest.equals('foo')); - checkUnnamed2840(o.productGroupedResults); - checkUnnamed2841(o.results); + checkUnnamed2971(o.productGroupedResults); + checkUnnamed2972(o.results); } buildCounterGoogleCloudVisionV1p2beta1ProductSearchResults--; } -buildUnnamed2842() { +buildUnnamed2973() { var o = new core.List< api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation()); @@ -3814,7 +3814,7 @@ return o; } -checkUnnamed2842( +checkUnnamed2973( core.List< api.GoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation> o) { @@ -3823,7 +3823,7 @@ checkGoogleCloudVisionV1p2beta1ProductSearchResultsObjectAnnotation(o[1]); } -buildUnnamed2843() { +buildUnnamed2974() { var o = new core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p2beta1ProductSearchResultsResult()); @@ -3831,7 +3831,7 @@ return o; } -checkUnnamed2843( +checkUnnamed2974( core.List<api.GoogleCloudVisionV1p2beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1ProductSearchResultsResult(o[0]); @@ -3846,8 +3846,8 @@ if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < 3) { o.boundingPoly = buildGoogleCloudVisionV1p2beta1BoundingPoly(); - o.objectAnnotations = buildUnnamed2842(); - o.results = buildUnnamed2843(); + o.objectAnnotations = buildUnnamed2973(); + o.results = buildUnnamed2974(); } buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult--; return o; @@ -3859,8 +3859,8 @@ if (buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult < 3) { checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingPoly); - checkUnnamed2842(o.objectAnnotations); - checkUnnamed2843(o.results); + checkUnnamed2973(o.objectAnnotations); + checkUnnamed2974(o.results); } buildCounterGoogleCloudVisionV1p2beta1ProductSearchResultsGroupedResult--; } @@ -3997,14 +3997,14 @@ buildCounterGoogleCloudVisionV1p2beta1Symbol--; } -buildUnnamed2844() { +buildUnnamed2975() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Page>(); o.add(buildGoogleCloudVisionV1p2beta1Page()); o.add(buildGoogleCloudVisionV1p2beta1Page()); return o; } -checkUnnamed2844(core.List<api.GoogleCloudVisionV1p2beta1Page> o) { +checkUnnamed2975(core.List<api.GoogleCloudVisionV1p2beta1Page> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Page(o[0]); checkGoogleCloudVisionV1p2beta1Page(o[1]); @@ -4015,7 +4015,7 @@ var o = new api.GoogleCloudVisionV1p2beta1TextAnnotation(); buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { - o.pages = buildUnnamed2844(); + o.pages = buildUnnamed2975(); o.text = "foo"; } buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; @@ -4026,7 +4026,7 @@ api.GoogleCloudVisionV1p2beta1TextAnnotation o) { buildCounterGoogleCloudVisionV1p2beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotation < 3) { - checkUnnamed2844(o.pages); + checkUnnamed2975(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p2beta1TextAnnotation--; @@ -4079,7 +4079,7 @@ buildCounterGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage--; } -buildUnnamed2845() { +buildUnnamed2976() { var o = new core .List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage>(); o.add(buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage()); @@ -4087,7 +4087,7 @@ return o; } -checkUnnamed2845( +checkUnnamed2976( core.List<api.GoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedLanguage(o[0]); @@ -4101,7 +4101,7 @@ if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { o.detectedBreak = buildGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(); - o.detectedLanguages = buildUnnamed2845(); + o.detectedLanguages = buildUnnamed2976(); } buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; return o; @@ -4112,7 +4112,7 @@ buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty++; if (buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty < 3) { checkGoogleCloudVisionV1p2beta1TextAnnotationDetectedBreak(o.detectedBreak); - checkUnnamed2845(o.detectedLanguages); + checkUnnamed2976(o.detectedLanguages); } buildCounterGoogleCloudVisionV1p2beta1TextAnnotationTextProperty--; } @@ -4138,84 +4138,84 @@ buildCounterGoogleCloudVisionV1p2beta1Vertex--; } -buildUnnamed2846() { +buildUnnamed2977() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebLabel()); return o; } -checkUnnamed2846( +checkUnnamed2977( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebLabel(o[1]); } -buildUnnamed2847() { +buildUnnamed2978() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); return o; } -checkUnnamed2847( +checkUnnamed2978( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); } -buildUnnamed2848() { +buildUnnamed2979() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebPage()); return o; } -checkUnnamed2848( +checkUnnamed2979( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebPage(o[1]); } -buildUnnamed2849() { +buildUnnamed2980() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); return o; } -checkUnnamed2849( +checkUnnamed2980( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); } -buildUnnamed2850() { +buildUnnamed2981() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); return o; } -checkUnnamed2850( +checkUnnamed2981( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); } -buildUnnamed2851() { +buildUnnamed2982() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebEntity()); return o; } -checkUnnamed2851( +checkUnnamed2982( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebEntity(o[0]); @@ -4227,12 +4227,12 @@ var o = new api.GoogleCloudVisionV1p2beta1WebDetection(); buildCounterGoogleCloudVisionV1p2beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { - o.bestGuessLabels = buildUnnamed2846(); - o.fullMatchingImages = buildUnnamed2847(); - o.pagesWithMatchingImages = buildUnnamed2848(); - o.partialMatchingImages = buildUnnamed2849(); - o.visuallySimilarImages = buildUnnamed2850(); - o.webEntities = buildUnnamed2851(); + o.bestGuessLabels = buildUnnamed2977(); + o.fullMatchingImages = buildUnnamed2978(); + o.pagesWithMatchingImages = buildUnnamed2979(); + o.partialMatchingImages = buildUnnamed2980(); + o.visuallySimilarImages = buildUnnamed2981(); + o.webEntities = buildUnnamed2982(); } buildCounterGoogleCloudVisionV1p2beta1WebDetection--; return o; @@ -4242,12 +4242,12 @@ api.GoogleCloudVisionV1p2beta1WebDetection o) { buildCounterGoogleCloudVisionV1p2beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p2beta1WebDetection < 3) { - checkUnnamed2846(o.bestGuessLabels); - checkUnnamed2847(o.fullMatchingImages); - checkUnnamed2848(o.pagesWithMatchingImages); - checkUnnamed2849(o.partialMatchingImages); - checkUnnamed2850(o.visuallySimilarImages); - checkUnnamed2851(o.webEntities); + checkUnnamed2977(o.bestGuessLabels); + checkUnnamed2978(o.fullMatchingImages); + checkUnnamed2979(o.pagesWithMatchingImages); + checkUnnamed2980(o.partialMatchingImages); + checkUnnamed2981(o.visuallySimilarImages); + checkUnnamed2982(o.webEntities); } buildCounterGoogleCloudVisionV1p2beta1WebDetection--; } @@ -4320,28 +4320,28 @@ buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebLabel--; } -buildUnnamed2852() { +buildUnnamed2983() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); return o; } -checkUnnamed2852( +checkUnnamed2983( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[1]); } -buildUnnamed2853() { +buildUnnamed2984() { var o = new core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p2beta1WebDetectionWebImage()); return o; } -checkUnnamed2853( +checkUnnamed2984( core.List<api.GoogleCloudVisionV1p2beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1WebDetectionWebImage(o[0]); @@ -4353,9 +4353,9 @@ var o = new api.GoogleCloudVisionV1p2beta1WebDetectionWebPage(); buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { - o.fullMatchingImages = buildUnnamed2852(); + o.fullMatchingImages = buildUnnamed2983(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed2853(); + o.partialMatchingImages = buildUnnamed2984(); o.score = 42.0; o.url = "foo"; } @@ -4367,23 +4367,23 @@ api.GoogleCloudVisionV1p2beta1WebDetectionWebPage o) { buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage < 3) { - checkUnnamed2852(o.fullMatchingImages); + checkUnnamed2983(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed2853(o.partialMatchingImages); + checkUnnamed2984(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p2beta1WebDetectionWebPage--; } -buildUnnamed2854() { +buildUnnamed2985() { var o = new core.List<api.GoogleCloudVisionV1p2beta1Symbol>(); o.add(buildGoogleCloudVisionV1p2beta1Symbol()); o.add(buildGoogleCloudVisionV1p2beta1Symbol()); return o; } -checkUnnamed2854(core.List<api.GoogleCloudVisionV1p2beta1Symbol> o) { +checkUnnamed2985(core.List<api.GoogleCloudVisionV1p2beta1Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p2beta1Symbol(o[0]); checkGoogleCloudVisionV1p2beta1Symbol(o[1]); @@ -4397,7 +4397,7 @@ o.boundingBox = buildGoogleCloudVisionV1p2beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(); - o.symbols = buildUnnamed2854(); + o.symbols = buildUnnamed2985(); } buildCounterGoogleCloudVisionV1p2beta1Word--; return o; @@ -4409,19 +4409,19 @@ checkGoogleCloudVisionV1p2beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p2beta1TextAnnotationTextProperty(o.property); - checkUnnamed2854(o.symbols); + checkUnnamed2985(o.symbols); } buildCounterGoogleCloudVisionV1p2beta1Word--; } -buildUnnamed2855() { +buildUnnamed2986() { var o = new core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse>(); o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); o.add(buildGoogleCloudVisionV1p3beta1AnnotateImageResponse()); return o; } -checkUnnamed2855( +checkUnnamed2986( core.List<api.GoogleCloudVisionV1p3beta1AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1AnnotateImageResponse(o[0]); @@ -4435,7 +4435,7 @@ if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { o.error = buildStatus(); o.inputConfig = buildGoogleCloudVisionV1p3beta1InputConfig(); - o.responses = buildUnnamed2855(); + o.responses = buildUnnamed2986(); o.totalPages = 42; } buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; @@ -4448,52 +4448,52 @@ if (buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse < 3) { checkStatus(o.error); checkGoogleCloudVisionV1p3beta1InputConfig(o.inputConfig); - checkUnnamed2855(o.responses); + checkUnnamed2986(o.responses); unittest.expect(o.totalPages, unittest.equals(42)); } buildCounterGoogleCloudVisionV1p3beta1AnnotateFileResponse--; } -buildUnnamed2856() { +buildUnnamed2987() { var o = new core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotation()); return o; } -checkUnnamed2856(core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> o) { +checkUnnamed2987(core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1FaceAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1FaceAnnotation(o[1]); } -buildUnnamed2857() { +buildUnnamed2988() { var o = new core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); return o; } -checkUnnamed2857(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { +checkUnnamed2988(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); } -buildUnnamed2858() { +buildUnnamed2989() { var o = new core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); return o; } -checkUnnamed2858(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { +checkUnnamed2989(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); } -buildUnnamed2859() { +buildUnnamed2990() { var o = new core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation()); @@ -4501,34 +4501,34 @@ return o; } -checkUnnamed2859( +checkUnnamed2990( core.List<api.GoogleCloudVisionV1p3beta1LocalizedObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1LocalizedObjectAnnotation(o[1]); } -buildUnnamed2860() { +buildUnnamed2991() { var o = new core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); return o; } -checkUnnamed2860(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { +checkUnnamed2991(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); } -buildUnnamed2861() { +buildUnnamed2992() { var o = new core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p3beta1EntityAnnotation()); return o; } -checkUnnamed2861(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { +checkUnnamed2992(core.List<api.GoogleCloudVisionV1p3beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p3beta1EntityAnnotation(o[1]); @@ -4543,19 +4543,19 @@ o.cropHintsAnnotation = buildGoogleCloudVisionV1p3beta1CropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed2856(); + o.faceAnnotations = buildUnnamed2987(); o.fullTextAnnotation = buildGoogleCloudVisionV1p3beta1TextAnnotation(); o.imagePropertiesAnnotation = buildGoogleCloudVisionV1p3beta1ImageProperties(); - o.labelAnnotations = buildUnnamed2857(); - o.landmarkAnnotations = buildUnnamed2858(); - o.localizedObjectAnnotations = buildUnnamed2859(); - o.logoAnnotations = buildUnnamed2860(); + o.labelAnnotations = buildUnnamed2988(); + o.landmarkAnnotations = buildUnnamed2989(); + o.localizedObjectAnnotations = buildUnnamed2990(); + o.logoAnnotations = buildUnnamed2991(); o.productSearchResults = buildGoogleCloudVisionV1p3beta1ProductSearchResults(); o.safeSearchAnnotation = buildGoogleCloudVisionV1p3beta1SafeSearchAnnotation(); - o.textAnnotations = buildUnnamed2861(); + o.textAnnotations = buildUnnamed2992(); o.webDetection = buildGoogleCloudVisionV1p3beta1WebDetection(); } buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse--; @@ -4569,16 +4569,16 @@ checkGoogleCloudVisionV1p3beta1ImageAnnotationContext(o.context); checkGoogleCloudVisionV1p3beta1CropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed2856(o.faceAnnotations); + checkUnnamed2987(o.faceAnnotations); checkGoogleCloudVisionV1p3beta1TextAnnotation(o.fullTextAnnotation); checkGoogleCloudVisionV1p3beta1ImageProperties(o.imagePropertiesAnnotation); - checkUnnamed2857(o.labelAnnotations); - checkUnnamed2858(o.landmarkAnnotations); - checkUnnamed2859(o.localizedObjectAnnotations); - checkUnnamed2860(o.logoAnnotations); + checkUnnamed2988(o.labelAnnotations); + checkUnnamed2989(o.landmarkAnnotations); + checkUnnamed2990(o.localizedObjectAnnotations); + checkUnnamed2991(o.logoAnnotations); checkGoogleCloudVisionV1p3beta1ProductSearchResults(o.productSearchResults); checkGoogleCloudVisionV1p3beta1SafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed2861(o.textAnnotations); + checkUnnamed2992(o.textAnnotations); checkGoogleCloudVisionV1p3beta1WebDetection(o.webDetection); } buildCounterGoogleCloudVisionV1p3beta1AnnotateImageResponse--; @@ -4604,7 +4604,7 @@ buildCounterGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse--; } -buildUnnamed2862() { +buildUnnamed2993() { var o = new core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse>(); o.add(buildGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse()); @@ -4612,7 +4612,7 @@ return o; } -checkUnnamed2862( +checkUnnamed2993( core.List<api.GoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1AsyncAnnotateFileResponse(o[0]); @@ -4626,7 +4626,7 @@ buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2862(); + o.responses = buildUnnamed2993(); } buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse--; return o; @@ -4637,7 +4637,7 @@ buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse < 3) { - checkUnnamed2862(o.responses); + checkUnnamed2993(o.responses); } buildCounterGoogleCloudVisionV1p3beta1AsyncBatchAnnotateFilesResponse--; } @@ -4666,14 +4666,14 @@ buildCounterGoogleCloudVisionV1p3beta1BatchOperationMetadata--; } -buildUnnamed2863() { +buildUnnamed2994() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Paragraph>(); o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); o.add(buildGoogleCloudVisionV1p3beta1Paragraph()); return o; } -checkUnnamed2863(core.List<api.GoogleCloudVisionV1p3beta1Paragraph> o) { +checkUnnamed2994(core.List<api.GoogleCloudVisionV1p3beta1Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Paragraph(o[0]); checkGoogleCloudVisionV1p3beta1Paragraph(o[1]); @@ -4687,7 +4687,7 @@ o.blockType = "foo"; o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed2863(); + o.paragraphs = buildUnnamed2994(); o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); } buildCounterGoogleCloudVisionV1p3beta1Block--; @@ -4700,33 +4700,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed2863(o.paragraphs); + checkUnnamed2994(o.paragraphs); checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); } buildCounterGoogleCloudVisionV1p3beta1Block--; } -buildUnnamed2864() { +buildUnnamed2995() { var o = new core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex>(); o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); o.add(buildGoogleCloudVisionV1p3beta1NormalizedVertex()); return o; } -checkUnnamed2864(core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> o) { +checkUnnamed2995(core.List<api.GoogleCloudVisionV1p3beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[0]); checkGoogleCloudVisionV1p3beta1NormalizedVertex(o[1]); } -buildUnnamed2865() { +buildUnnamed2996() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Vertex>(); o.add(buildGoogleCloudVisionV1p3beta1Vertex()); o.add(buildGoogleCloudVisionV1p3beta1Vertex()); return o; } -checkUnnamed2865(core.List<api.GoogleCloudVisionV1p3beta1Vertex> o) { +checkUnnamed2996(core.List<api.GoogleCloudVisionV1p3beta1Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Vertex(o[0]); checkGoogleCloudVisionV1p3beta1Vertex(o[1]); @@ -4737,8 +4737,8 @@ var o = new api.GoogleCloudVisionV1p3beta1BoundingPoly(); buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { - o.normalizedVertices = buildUnnamed2864(); - o.vertices = buildUnnamed2865(); + o.normalizedVertices = buildUnnamed2995(); + o.vertices = buildUnnamed2996(); } buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; return o; @@ -4748,8 +4748,8 @@ api.GoogleCloudVisionV1p3beta1BoundingPoly o) { buildCounterGoogleCloudVisionV1p3beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p3beta1BoundingPoly < 3) { - checkUnnamed2864(o.normalizedVertices); - checkUnnamed2865(o.vertices); + checkUnnamed2995(o.normalizedVertices); + checkUnnamed2996(o.vertices); } buildCounterGoogleCloudVisionV1p3beta1BoundingPoly--; } @@ -4802,14 +4802,14 @@ buildCounterGoogleCloudVisionV1p3beta1CropHint--; } -buildUnnamed2866() { +buildUnnamed2997() { var o = new core.List<api.GoogleCloudVisionV1p3beta1CropHint>(); o.add(buildGoogleCloudVisionV1p3beta1CropHint()); o.add(buildGoogleCloudVisionV1p3beta1CropHint()); return o; } -checkUnnamed2866(core.List<api.GoogleCloudVisionV1p3beta1CropHint> o) { +checkUnnamed2997(core.List<api.GoogleCloudVisionV1p3beta1CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1CropHint(o[0]); checkGoogleCloudVisionV1p3beta1CropHint(o[1]); @@ -4820,7 +4820,7 @@ var o = new api.GoogleCloudVisionV1p3beta1CropHintsAnnotation(); buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { - o.cropHints = buildUnnamed2866(); + o.cropHints = buildUnnamed2997(); } buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; return o; @@ -4830,19 +4830,19 @@ api.GoogleCloudVisionV1p3beta1CropHintsAnnotation o) { buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation < 3) { - checkUnnamed2866(o.cropHints); + checkUnnamed2997(o.cropHints); } buildCounterGoogleCloudVisionV1p3beta1CropHintsAnnotation--; } -buildUnnamed2867() { +buildUnnamed2998() { var o = new core.List<api.GoogleCloudVisionV1p3beta1ColorInfo>(); o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); o.add(buildGoogleCloudVisionV1p3beta1ColorInfo()); return o; } -checkUnnamed2867(core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> o) { +checkUnnamed2998(core.List<api.GoogleCloudVisionV1p3beta1ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1ColorInfo(o[0]); checkGoogleCloudVisionV1p3beta1ColorInfo(o[1]); @@ -4853,7 +4853,7 @@ var o = new api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation(); buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { - o.colors = buildUnnamed2867(); + o.colors = buildUnnamed2998(); } buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; return o; @@ -4863,32 +4863,32 @@ api.GoogleCloudVisionV1p3beta1DominantColorsAnnotation o) { buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation < 3) { - checkUnnamed2867(o.colors); + checkUnnamed2998(o.colors); } buildCounterGoogleCloudVisionV1p3beta1DominantColorsAnnotation--; } -buildUnnamed2868() { +buildUnnamed2999() { var o = new core.List<api.GoogleCloudVisionV1p3beta1LocationInfo>(); o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); o.add(buildGoogleCloudVisionV1p3beta1LocationInfo()); return o; } -checkUnnamed2868(core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> o) { +checkUnnamed2999(core.List<api.GoogleCloudVisionV1p3beta1LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1LocationInfo(o[0]); checkGoogleCloudVisionV1p3beta1LocationInfo(o[1]); } -buildUnnamed2869() { +buildUnnamed3000() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Property>(); o.add(buildGoogleCloudVisionV1p3beta1Property()); o.add(buildGoogleCloudVisionV1p3beta1Property()); return o; } -checkUnnamed2869(core.List<api.GoogleCloudVisionV1p3beta1Property> o) { +checkUnnamed3000(core.List<api.GoogleCloudVisionV1p3beta1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Property(o[0]); checkGoogleCloudVisionV1p3beta1Property(o[1]); @@ -4903,9 +4903,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed2868(); + o.locations = buildUnnamed2999(); o.mid = "foo"; - o.properties = buildUnnamed2869(); + o.properties = buildUnnamed3000(); o.score = 42.0; o.topicality = 42.0; } @@ -4921,23 +4921,23 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2868(o.locations); + checkUnnamed2999(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed2869(o.properties); + checkUnnamed3000(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterGoogleCloudVisionV1p3beta1EntityAnnotation--; } -buildUnnamed2870() { +buildUnnamed3001() { var o = new core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark>(); o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); o.add(buildGoogleCloudVisionV1p3beta1FaceAnnotationLandmark()); return o; } -checkUnnamed2870( +checkUnnamed3001( core.List<api.GoogleCloudVisionV1p3beta1FaceAnnotationLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1FaceAnnotationLandmark(o[0]); @@ -4957,7 +4957,7 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed2870(); + o.landmarks = buildUnnamed3001(); o.panAngle = 42.0; o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; @@ -4981,7 +4981,7 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed2870(o.landmarks); + checkUnnamed3001(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')); @@ -5097,27 +5097,27 @@ buildCounterGoogleCloudVisionV1p3beta1ImageProperties--; } -buildUnnamed2871() { +buildUnnamed3002() { var o = new core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage>(); o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); o.add(buildGoogleCloudVisionV1p3beta1ReferenceImage()); return o; } -checkUnnamed2871(core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> o) { +checkUnnamed3002(core.List<api.GoogleCloudVisionV1p3beta1ReferenceImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1ReferenceImage(o[0]); checkGoogleCloudVisionV1p3beta1ReferenceImage(o[1]); } -buildUnnamed2872() { +buildUnnamed3003() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed2872(core.List<api.Status> o) { +checkUnnamed3003(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -5128,8 +5128,8 @@ var o = new api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse(); buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { - o.referenceImages = buildUnnamed2871(); - o.statuses = buildUnnamed2872(); + o.referenceImages = buildUnnamed3002(); + o.statuses = buildUnnamed3003(); } buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; return o; @@ -5139,8 +5139,8 @@ api.GoogleCloudVisionV1p3beta1ImportProductSetsResponse o) { buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse++; if (buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse < 3) { - checkUnnamed2871(o.referenceImages); - checkUnnamed2872(o.statuses); + checkUnnamed3002(o.referenceImages); + checkUnnamed3003(o.statuses); } buildCounterGoogleCloudVisionV1p3beta1ImportProductSetsResponse--; } @@ -5285,14 +5285,14 @@ buildCounterGoogleCloudVisionV1p3beta1OutputConfig--; } -buildUnnamed2873() { +buildUnnamed3004() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Block>(); o.add(buildGoogleCloudVisionV1p3beta1Block()); o.add(buildGoogleCloudVisionV1p3beta1Block()); return o; } -checkUnnamed2873(core.List<api.GoogleCloudVisionV1p3beta1Block> o) { +checkUnnamed3004(core.List<api.GoogleCloudVisionV1p3beta1Block> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Block(o[0]); checkGoogleCloudVisionV1p3beta1Block(o[1]); @@ -5303,7 +5303,7 @@ var o = new api.GoogleCloudVisionV1p3beta1Page(); buildCounterGoogleCloudVisionV1p3beta1Page++; if (buildCounterGoogleCloudVisionV1p3beta1Page < 3) { - o.blocks = buildUnnamed2873(); + o.blocks = buildUnnamed3004(); o.confidence = 42.0; o.height = 42; o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); @@ -5316,7 +5316,7 @@ checkGoogleCloudVisionV1p3beta1Page(api.GoogleCloudVisionV1p3beta1Page o) { buildCounterGoogleCloudVisionV1p3beta1Page++; if (buildCounterGoogleCloudVisionV1p3beta1Page < 3) { - checkUnnamed2873(o.blocks); + checkUnnamed3004(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); @@ -5325,14 +5325,14 @@ buildCounterGoogleCloudVisionV1p3beta1Page--; } -buildUnnamed2874() { +buildUnnamed3005() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Word>(); o.add(buildGoogleCloudVisionV1p3beta1Word()); o.add(buildGoogleCloudVisionV1p3beta1Word()); return o; } -checkUnnamed2874(core.List<api.GoogleCloudVisionV1p3beta1Word> o) { +checkUnnamed3005(core.List<api.GoogleCloudVisionV1p3beta1Word> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Word(o[0]); checkGoogleCloudVisionV1p3beta1Word(o[1]); @@ -5346,7 +5346,7 @@ o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); - o.words = buildUnnamed2874(); + o.words = buildUnnamed3005(); } buildCounterGoogleCloudVisionV1p3beta1Paragraph--; return o; @@ -5359,7 +5359,7 @@ checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); - checkUnnamed2874(o.words); + checkUnnamed3005(o.words); } buildCounterGoogleCloudVisionV1p3beta1Paragraph--; } @@ -5388,14 +5388,14 @@ buildCounterGoogleCloudVisionV1p3beta1Position--; } -buildUnnamed2875() { +buildUnnamed3006() { var o = new core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue>(); o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); o.add(buildGoogleCloudVisionV1p3beta1ProductKeyValue()); return o; } -checkUnnamed2875(core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue> o) { +checkUnnamed3006(core.List<api.GoogleCloudVisionV1p3beta1ProductKeyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1ProductKeyValue(o[0]); checkGoogleCloudVisionV1p3beta1ProductKeyValue(o[1]); @@ -5410,7 +5410,7 @@ o.displayName = "foo"; o.name = "foo"; o.productCategory = "foo"; - o.productLabels = buildUnnamed2875(); + o.productLabels = buildUnnamed3006(); } buildCounterGoogleCloudVisionV1p3beta1Product--; return o; @@ -5424,7 +5424,7 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productCategory, unittest.equals('foo')); - checkUnnamed2875(o.productLabels); + checkUnnamed3006(o.productLabels); } buildCounterGoogleCloudVisionV1p3beta1Product--; } @@ -5451,7 +5451,7 @@ buildCounterGoogleCloudVisionV1p3beta1ProductKeyValue--; } -buildUnnamed2876() { +buildUnnamed3007() { var o = new core .List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult>(); o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult()); @@ -5459,7 +5459,7 @@ return o; } -checkUnnamed2876( +checkUnnamed3007( core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult> o) { unittest.expect(o, unittest.hasLength(2)); @@ -5467,7 +5467,7 @@ checkGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult(o[1]); } -buildUnnamed2877() { +buildUnnamed3008() { var o = new core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); @@ -5475,7 +5475,7 @@ return o; } -checkUnnamed2877( +checkUnnamed3008( core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[0]); @@ -5488,8 +5488,8 @@ buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { o.indexTime = "foo"; - o.productGroupedResults = buildUnnamed2876(); - o.results = buildUnnamed2877(); + o.productGroupedResults = buildUnnamed3007(); + o.results = buildUnnamed3008(); } buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; return o; @@ -5500,13 +5500,13 @@ buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults < 3) { unittest.expect(o.indexTime, unittest.equals('foo')); - checkUnnamed2876(o.productGroupedResults); - checkUnnamed2877(o.results); + checkUnnamed3007(o.productGroupedResults); + checkUnnamed3008(o.results); } buildCounterGoogleCloudVisionV1p3beta1ProductSearchResults--; } -buildUnnamed2878() { +buildUnnamed3009() { var o = new core.List< api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation()); @@ -5514,7 +5514,7 @@ return o; } -checkUnnamed2878( +checkUnnamed3009( core.List< api.GoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation> o) { @@ -5523,7 +5523,7 @@ checkGoogleCloudVisionV1p3beta1ProductSearchResultsObjectAnnotation(o[1]); } -buildUnnamed2879() { +buildUnnamed3010() { var o = new core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p3beta1ProductSearchResultsResult()); @@ -5531,7 +5531,7 @@ return o; } -checkUnnamed2879( +checkUnnamed3010( core.List<api.GoogleCloudVisionV1p3beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1ProductSearchResultsResult(o[0]); @@ -5546,8 +5546,8 @@ if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < 3) { o.boundingPoly = buildGoogleCloudVisionV1p3beta1BoundingPoly(); - o.objectAnnotations = buildUnnamed2878(); - o.results = buildUnnamed2879(); + o.objectAnnotations = buildUnnamed3009(); + o.results = buildUnnamed3010(); } buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult--; return o; @@ -5559,8 +5559,8 @@ if (buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult < 3) { checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingPoly); - checkUnnamed2878(o.objectAnnotations); - checkUnnamed2879(o.results); + checkUnnamed3009(o.objectAnnotations); + checkUnnamed3010(o.results); } buildCounterGoogleCloudVisionV1p3beta1ProductSearchResultsGroupedResult--; } @@ -5644,14 +5644,14 @@ buildCounterGoogleCloudVisionV1p3beta1Property--; } -buildUnnamed2880() { +buildUnnamed3011() { var o = new core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly>(); o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); o.add(buildGoogleCloudVisionV1p3beta1BoundingPoly()); return o; } -checkUnnamed2880(core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> o) { +checkUnnamed3011(core.List<api.GoogleCloudVisionV1p3beta1BoundingPoly> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1BoundingPoly(o[0]); checkGoogleCloudVisionV1p3beta1BoundingPoly(o[1]); @@ -5662,7 +5662,7 @@ var o = new api.GoogleCloudVisionV1p3beta1ReferenceImage(); buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { - o.boundingPolys = buildUnnamed2880(); + o.boundingPolys = buildUnnamed3011(); o.name = "foo"; o.uri = "foo"; } @@ -5674,7 +5674,7 @@ api.GoogleCloudVisionV1p3beta1ReferenceImage o) { buildCounterGoogleCloudVisionV1p3beta1ReferenceImage++; if (buildCounterGoogleCloudVisionV1p3beta1ReferenceImage < 3) { - checkUnnamed2880(o.boundingPolys); + checkUnnamed3011(o.boundingPolys); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.uri, unittest.equals('foo')); } @@ -5734,14 +5734,14 @@ buildCounterGoogleCloudVisionV1p3beta1Symbol--; } -buildUnnamed2881() { +buildUnnamed3012() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Page>(); o.add(buildGoogleCloudVisionV1p3beta1Page()); o.add(buildGoogleCloudVisionV1p3beta1Page()); return o; } -checkUnnamed2881(core.List<api.GoogleCloudVisionV1p3beta1Page> o) { +checkUnnamed3012(core.List<api.GoogleCloudVisionV1p3beta1Page> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Page(o[0]); checkGoogleCloudVisionV1p3beta1Page(o[1]); @@ -5752,7 +5752,7 @@ var o = new api.GoogleCloudVisionV1p3beta1TextAnnotation(); buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { - o.pages = buildUnnamed2881(); + o.pages = buildUnnamed3012(); o.text = "foo"; } buildCounterGoogleCloudVisionV1p3beta1TextAnnotation--; @@ -5763,7 +5763,7 @@ api.GoogleCloudVisionV1p3beta1TextAnnotation o) { buildCounterGoogleCloudVisionV1p3beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotation < 3) { - checkUnnamed2881(o.pages); + checkUnnamed3012(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p3beta1TextAnnotation--; @@ -5816,7 +5816,7 @@ buildCounterGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage--; } -buildUnnamed2882() { +buildUnnamed3013() { var o = new core .List<api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage>(); o.add(buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage()); @@ -5824,7 +5824,7 @@ return o; } -checkUnnamed2882( +checkUnnamed3013( core.List<api.GoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedLanguage(o[0]); @@ -5838,7 +5838,7 @@ if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { o.detectedBreak = buildGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(); - o.detectedLanguages = buildUnnamed2882(); + o.detectedLanguages = buildUnnamed3013(); } buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty--; return o; @@ -5849,7 +5849,7 @@ buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty++; if (buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty < 3) { checkGoogleCloudVisionV1p3beta1TextAnnotationDetectedBreak(o.detectedBreak); - checkUnnamed2882(o.detectedLanguages); + checkUnnamed3013(o.detectedLanguages); } buildCounterGoogleCloudVisionV1p3beta1TextAnnotationTextProperty--; } @@ -5875,84 +5875,84 @@ buildCounterGoogleCloudVisionV1p3beta1Vertex--; } -buildUnnamed2883() { +buildUnnamed3014() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebLabel()); return o; } -checkUnnamed2883( +checkUnnamed3014( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebLabel(o[1]); } -buildUnnamed2884() { +buildUnnamed3015() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); return o; } -checkUnnamed2884( +checkUnnamed3015( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); } -buildUnnamed2885() { +buildUnnamed3016() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebPage()); return o; } -checkUnnamed2885( +checkUnnamed3016( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebPage(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebPage(o[1]); } -buildUnnamed2886() { +buildUnnamed3017() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); return o; } -checkUnnamed2886( +checkUnnamed3017( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); } -buildUnnamed2887() { +buildUnnamed3018() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); return o; } -checkUnnamed2887( +checkUnnamed3018( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); } -buildUnnamed2888() { +buildUnnamed3019() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebEntity()); return o; } -checkUnnamed2888( +checkUnnamed3019( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebEntity(o[0]); @@ -5964,12 +5964,12 @@ var o = new api.GoogleCloudVisionV1p3beta1WebDetection(); buildCounterGoogleCloudVisionV1p3beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { - o.bestGuessLabels = buildUnnamed2883(); - o.fullMatchingImages = buildUnnamed2884(); - o.pagesWithMatchingImages = buildUnnamed2885(); - o.partialMatchingImages = buildUnnamed2886(); - o.visuallySimilarImages = buildUnnamed2887(); - o.webEntities = buildUnnamed2888(); + o.bestGuessLabels = buildUnnamed3014(); + o.fullMatchingImages = buildUnnamed3015(); + o.pagesWithMatchingImages = buildUnnamed3016(); + o.partialMatchingImages = buildUnnamed3017(); + o.visuallySimilarImages = buildUnnamed3018(); + o.webEntities = buildUnnamed3019(); } buildCounterGoogleCloudVisionV1p3beta1WebDetection--; return o; @@ -5979,12 +5979,12 @@ api.GoogleCloudVisionV1p3beta1WebDetection o) { buildCounterGoogleCloudVisionV1p3beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p3beta1WebDetection < 3) { - checkUnnamed2883(o.bestGuessLabels); - checkUnnamed2884(o.fullMatchingImages); - checkUnnamed2885(o.pagesWithMatchingImages); - checkUnnamed2886(o.partialMatchingImages); - checkUnnamed2887(o.visuallySimilarImages); - checkUnnamed2888(o.webEntities); + checkUnnamed3014(o.bestGuessLabels); + checkUnnamed3015(o.fullMatchingImages); + checkUnnamed3016(o.pagesWithMatchingImages); + checkUnnamed3017(o.partialMatchingImages); + checkUnnamed3018(o.visuallySimilarImages); + checkUnnamed3019(o.webEntities); } buildCounterGoogleCloudVisionV1p3beta1WebDetection--; } @@ -6057,28 +6057,28 @@ buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebLabel--; } -buildUnnamed2889() { +buildUnnamed3020() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); return o; } -checkUnnamed2889( +checkUnnamed3020( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[1]); } -buildUnnamed2890() { +buildUnnamed3021() { var o = new core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p3beta1WebDetectionWebImage()); return o; } -checkUnnamed2890( +checkUnnamed3021( core.List<api.GoogleCloudVisionV1p3beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1WebDetectionWebImage(o[0]); @@ -6090,9 +6090,9 @@ var o = new api.GoogleCloudVisionV1p3beta1WebDetectionWebPage(); buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { - o.fullMatchingImages = buildUnnamed2889(); + o.fullMatchingImages = buildUnnamed3020(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed2890(); + o.partialMatchingImages = buildUnnamed3021(); o.score = 42.0; o.url = "foo"; } @@ -6104,23 +6104,23 @@ api.GoogleCloudVisionV1p3beta1WebDetectionWebPage o) { buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage < 3) { - checkUnnamed2889(o.fullMatchingImages); + checkUnnamed3020(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed2890(o.partialMatchingImages); + checkUnnamed3021(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p3beta1WebDetectionWebPage--; } -buildUnnamed2891() { +buildUnnamed3022() { var o = new core.List<api.GoogleCloudVisionV1p3beta1Symbol>(); o.add(buildGoogleCloudVisionV1p3beta1Symbol()); o.add(buildGoogleCloudVisionV1p3beta1Symbol()); return o; } -checkUnnamed2891(core.List<api.GoogleCloudVisionV1p3beta1Symbol> o) { +checkUnnamed3022(core.List<api.GoogleCloudVisionV1p3beta1Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p3beta1Symbol(o[0]); checkGoogleCloudVisionV1p3beta1Symbol(o[1]); @@ -6134,7 +6134,7 @@ o.boundingBox = buildGoogleCloudVisionV1p3beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(); - o.symbols = buildUnnamed2891(); + o.symbols = buildUnnamed3022(); } buildCounterGoogleCloudVisionV1p3beta1Word--; return o; @@ -6146,19 +6146,19 @@ checkGoogleCloudVisionV1p3beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p3beta1TextAnnotationTextProperty(o.property); - checkUnnamed2891(o.symbols); + checkUnnamed3022(o.symbols); } buildCounterGoogleCloudVisionV1p3beta1Word--; } -buildUnnamed2892() { +buildUnnamed3023() { var o = new core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse>(); o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); o.add(buildGoogleCloudVisionV1p4beta1AnnotateImageResponse()); return o; } -checkUnnamed2892( +checkUnnamed3023( core.List<api.GoogleCloudVisionV1p4beta1AnnotateImageResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1AnnotateImageResponse(o[0]); @@ -6172,7 +6172,7 @@ if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { o.error = buildStatus(); o.inputConfig = buildGoogleCloudVisionV1p4beta1InputConfig(); - o.responses = buildUnnamed2892(); + o.responses = buildUnnamed3023(); o.totalPages = 42; } buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; @@ -6185,52 +6185,52 @@ if (buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse < 3) { checkStatus(o.error); checkGoogleCloudVisionV1p4beta1InputConfig(o.inputConfig); - checkUnnamed2892(o.responses); + checkUnnamed3023(o.responses); unittest.expect(o.totalPages, unittest.equals(42)); } buildCounterGoogleCloudVisionV1p4beta1AnnotateFileResponse--; } -buildUnnamed2893() { +buildUnnamed3024() { var o = new core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotation()); return o; } -checkUnnamed2893(core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> o) { +checkUnnamed3024(core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1FaceAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1FaceAnnotation(o[1]); } -buildUnnamed2894() { +buildUnnamed3025() { var o = new core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); return o; } -checkUnnamed2894(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { +checkUnnamed3025(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); } -buildUnnamed2895() { +buildUnnamed3026() { var o = new core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); return o; } -checkUnnamed2895(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { +checkUnnamed3026(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); } -buildUnnamed2896() { +buildUnnamed3027() { var o = new core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation()); @@ -6238,34 +6238,34 @@ return o; } -checkUnnamed2896( +checkUnnamed3027( core.List<api.GoogleCloudVisionV1p4beta1LocalizedObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1LocalizedObjectAnnotation(o[1]); } -buildUnnamed2897() { +buildUnnamed3028() { var o = new core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); return o; } -checkUnnamed2897(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { +checkUnnamed3028(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); } -buildUnnamed2898() { +buildUnnamed3029() { var o = new core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); o.add(buildGoogleCloudVisionV1p4beta1EntityAnnotation()); return o; } -checkUnnamed2898(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { +checkUnnamed3029(core.List<api.GoogleCloudVisionV1p4beta1EntityAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[0]); checkGoogleCloudVisionV1p4beta1EntityAnnotation(o[1]); @@ -6280,19 +6280,19 @@ o.cropHintsAnnotation = buildGoogleCloudVisionV1p4beta1CropHintsAnnotation(); o.error = buildStatus(); - o.faceAnnotations = buildUnnamed2893(); + o.faceAnnotations = buildUnnamed3024(); o.fullTextAnnotation = buildGoogleCloudVisionV1p4beta1TextAnnotation(); o.imagePropertiesAnnotation = buildGoogleCloudVisionV1p4beta1ImageProperties(); - o.labelAnnotations = buildUnnamed2894(); - o.landmarkAnnotations = buildUnnamed2895(); - o.localizedObjectAnnotations = buildUnnamed2896(); - o.logoAnnotations = buildUnnamed2897(); + o.labelAnnotations = buildUnnamed3025(); + o.landmarkAnnotations = buildUnnamed3026(); + o.localizedObjectAnnotations = buildUnnamed3027(); + o.logoAnnotations = buildUnnamed3028(); o.productSearchResults = buildGoogleCloudVisionV1p4beta1ProductSearchResults(); o.safeSearchAnnotation = buildGoogleCloudVisionV1p4beta1SafeSearchAnnotation(); - o.textAnnotations = buildUnnamed2898(); + o.textAnnotations = buildUnnamed3029(); o.webDetection = buildGoogleCloudVisionV1p4beta1WebDetection(); } buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse--; @@ -6306,16 +6306,16 @@ checkGoogleCloudVisionV1p4beta1ImageAnnotationContext(o.context); checkGoogleCloudVisionV1p4beta1CropHintsAnnotation(o.cropHintsAnnotation); checkStatus(o.error); - checkUnnamed2893(o.faceAnnotations); + checkUnnamed3024(o.faceAnnotations); checkGoogleCloudVisionV1p4beta1TextAnnotation(o.fullTextAnnotation); checkGoogleCloudVisionV1p4beta1ImageProperties(o.imagePropertiesAnnotation); - checkUnnamed2894(o.labelAnnotations); - checkUnnamed2895(o.landmarkAnnotations); - checkUnnamed2896(o.localizedObjectAnnotations); - checkUnnamed2897(o.logoAnnotations); + checkUnnamed3025(o.labelAnnotations); + checkUnnamed3026(o.landmarkAnnotations); + checkUnnamed3027(o.localizedObjectAnnotations); + checkUnnamed3028(o.logoAnnotations); checkGoogleCloudVisionV1p4beta1ProductSearchResults(o.productSearchResults); checkGoogleCloudVisionV1p4beta1SafeSearchAnnotation(o.safeSearchAnnotation); - checkUnnamed2898(o.textAnnotations); + checkUnnamed3029(o.textAnnotations); checkGoogleCloudVisionV1p4beta1WebDetection(o.webDetection); } buildCounterGoogleCloudVisionV1p4beta1AnnotateImageResponse--; @@ -6341,7 +6341,7 @@ buildCounterGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse--; } -buildUnnamed2899() { +buildUnnamed3030() { var o = new core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse>(); o.add(buildGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse()); @@ -6349,7 +6349,7 @@ return o; } -checkUnnamed2899( +checkUnnamed3030( core.List<api.GoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1AsyncAnnotateFileResponse(o[0]); @@ -6363,7 +6363,7 @@ buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2899(); + o.responses = buildUnnamed3030(); } buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse--; return o; @@ -6374,7 +6374,7 @@ buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse < 3) { - checkUnnamed2899(o.responses); + checkUnnamed3030(o.responses); } buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateFilesResponse--; } @@ -6402,14 +6402,14 @@ buildCounterGoogleCloudVisionV1p4beta1AsyncBatchAnnotateImagesResponse--; } -buildUnnamed2900() { +buildUnnamed3031() { var o = new core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse>(); o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); o.add(buildGoogleCloudVisionV1p4beta1AnnotateFileResponse()); return o; } -checkUnnamed2900( +checkUnnamed3031( core.List<api.GoogleCloudVisionV1p4beta1AnnotateFileResponse> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1AnnotateFileResponse(o[0]); @@ -6421,7 +6421,7 @@ var o = new api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse(); buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { - o.responses = buildUnnamed2900(); + o.responses = buildUnnamed3031(); } buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse--; return o; @@ -6431,7 +6431,7 @@ api.GoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse o) { buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse++; if (buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse < 3) { - checkUnnamed2900(o.responses); + checkUnnamed3031(o.responses); } buildCounterGoogleCloudVisionV1p4beta1BatchAnnotateFilesResponse--; } @@ -6460,14 +6460,14 @@ buildCounterGoogleCloudVisionV1p4beta1BatchOperationMetadata--; } -buildUnnamed2901() { +buildUnnamed3032() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Paragraph>(); o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); o.add(buildGoogleCloudVisionV1p4beta1Paragraph()); return o; } -checkUnnamed2901(core.List<api.GoogleCloudVisionV1p4beta1Paragraph> o) { +checkUnnamed3032(core.List<api.GoogleCloudVisionV1p4beta1Paragraph> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Paragraph(o[0]); checkGoogleCloudVisionV1p4beta1Paragraph(o[1]); @@ -6481,7 +6481,7 @@ o.blockType = "foo"; o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); o.confidence = 42.0; - o.paragraphs = buildUnnamed2901(); + o.paragraphs = buildUnnamed3032(); o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); } buildCounterGoogleCloudVisionV1p4beta1Block--; @@ -6494,33 +6494,33 @@ unittest.expect(o.blockType, unittest.equals('foo')); checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); - checkUnnamed2901(o.paragraphs); + checkUnnamed3032(o.paragraphs); checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); } buildCounterGoogleCloudVisionV1p4beta1Block--; } -buildUnnamed2902() { +buildUnnamed3033() { var o = new core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex>(); o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); o.add(buildGoogleCloudVisionV1p4beta1NormalizedVertex()); return o; } -checkUnnamed2902(core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> o) { +checkUnnamed3033(core.List<api.GoogleCloudVisionV1p4beta1NormalizedVertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1NormalizedVertex(o[0]); checkGoogleCloudVisionV1p4beta1NormalizedVertex(o[1]); } -buildUnnamed2903() { +buildUnnamed3034() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Vertex>(); o.add(buildGoogleCloudVisionV1p4beta1Vertex()); o.add(buildGoogleCloudVisionV1p4beta1Vertex()); return o; } -checkUnnamed2903(core.List<api.GoogleCloudVisionV1p4beta1Vertex> o) { +checkUnnamed3034(core.List<api.GoogleCloudVisionV1p4beta1Vertex> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Vertex(o[0]); checkGoogleCloudVisionV1p4beta1Vertex(o[1]); @@ -6531,8 +6531,8 @@ var o = new api.GoogleCloudVisionV1p4beta1BoundingPoly(); buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { - o.normalizedVertices = buildUnnamed2902(); - o.vertices = buildUnnamed2903(); + o.normalizedVertices = buildUnnamed3033(); + o.vertices = buildUnnamed3034(); } buildCounterGoogleCloudVisionV1p4beta1BoundingPoly--; return o; @@ -6542,8 +6542,8 @@ api.GoogleCloudVisionV1p4beta1BoundingPoly o) { buildCounterGoogleCloudVisionV1p4beta1BoundingPoly++; if (buildCounterGoogleCloudVisionV1p4beta1BoundingPoly < 3) { - checkUnnamed2902(o.normalizedVertices); - checkUnnamed2903(o.vertices); + checkUnnamed3033(o.normalizedVertices); + checkUnnamed3034(o.vertices); } buildCounterGoogleCloudVisionV1p4beta1BoundingPoly--; } @@ -6620,14 +6620,14 @@ buildCounterGoogleCloudVisionV1p4beta1CropHint--; } -buildUnnamed2904() { +buildUnnamed3035() { var o = new core.List<api.GoogleCloudVisionV1p4beta1CropHint>(); o.add(buildGoogleCloudVisionV1p4beta1CropHint()); o.add(buildGoogleCloudVisionV1p4beta1CropHint()); return o; } -checkUnnamed2904(core.List<api.GoogleCloudVisionV1p4beta1CropHint> o) { +checkUnnamed3035(core.List<api.GoogleCloudVisionV1p4beta1CropHint> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1CropHint(o[0]); checkGoogleCloudVisionV1p4beta1CropHint(o[1]); @@ -6638,7 +6638,7 @@ var o = new api.GoogleCloudVisionV1p4beta1CropHintsAnnotation(); buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { - o.cropHints = buildUnnamed2904(); + o.cropHints = buildUnnamed3035(); } buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; return o; @@ -6648,19 +6648,19 @@ api.GoogleCloudVisionV1p4beta1CropHintsAnnotation o) { buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation < 3) { - checkUnnamed2904(o.cropHints); + checkUnnamed3035(o.cropHints); } buildCounterGoogleCloudVisionV1p4beta1CropHintsAnnotation--; } -buildUnnamed2905() { +buildUnnamed3036() { var o = new core.List<api.GoogleCloudVisionV1p4beta1ColorInfo>(); o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); o.add(buildGoogleCloudVisionV1p4beta1ColorInfo()); return o; } -checkUnnamed2905(core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> o) { +checkUnnamed3036(core.List<api.GoogleCloudVisionV1p4beta1ColorInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1ColorInfo(o[0]); checkGoogleCloudVisionV1p4beta1ColorInfo(o[1]); @@ -6671,7 +6671,7 @@ var o = new api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation(); buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { - o.colors = buildUnnamed2905(); + o.colors = buildUnnamed3036(); } buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; return o; @@ -6681,32 +6681,32 @@ api.GoogleCloudVisionV1p4beta1DominantColorsAnnotation o) { buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation < 3) { - checkUnnamed2905(o.colors); + checkUnnamed3036(o.colors); } buildCounterGoogleCloudVisionV1p4beta1DominantColorsAnnotation--; } -buildUnnamed2906() { +buildUnnamed3037() { var o = new core.List<api.GoogleCloudVisionV1p4beta1LocationInfo>(); o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); o.add(buildGoogleCloudVisionV1p4beta1LocationInfo()); return o; } -checkUnnamed2906(core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> o) { +checkUnnamed3037(core.List<api.GoogleCloudVisionV1p4beta1LocationInfo> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1LocationInfo(o[0]); checkGoogleCloudVisionV1p4beta1LocationInfo(o[1]); } -buildUnnamed2907() { +buildUnnamed3038() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Property>(); o.add(buildGoogleCloudVisionV1p4beta1Property()); o.add(buildGoogleCloudVisionV1p4beta1Property()); return o; } -checkUnnamed2907(core.List<api.GoogleCloudVisionV1p4beta1Property> o) { +checkUnnamed3038(core.List<api.GoogleCloudVisionV1p4beta1Property> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Property(o[0]); checkGoogleCloudVisionV1p4beta1Property(o[1]); @@ -6721,9 +6721,9 @@ o.confidence = 42.0; o.description = "foo"; o.locale = "foo"; - o.locations = buildUnnamed2906(); + o.locations = buildUnnamed3037(); o.mid = "foo"; - o.properties = buildUnnamed2907(); + o.properties = buildUnnamed3038(); o.score = 42.0; o.topicality = 42.0; } @@ -6739,37 +6739,37 @@ unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.locale, unittest.equals('foo')); - checkUnnamed2906(o.locations); + checkUnnamed3037(o.locations); unittest.expect(o.mid, unittest.equals('foo')); - checkUnnamed2907(o.properties); + checkUnnamed3038(o.properties); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.topicality, unittest.equals(42.0)); } buildCounterGoogleCloudVisionV1p4beta1EntityAnnotation--; } -buildUnnamed2908() { +buildUnnamed3039() { var o = new core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark>(); o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); o.add(buildGoogleCloudVisionV1p4beta1FaceAnnotationLandmark()); return o; } -checkUnnamed2908( +checkUnnamed3039( core.List<api.GoogleCloudVisionV1p4beta1FaceAnnotationLandmark> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(o[0]); checkGoogleCloudVisionV1p4beta1FaceAnnotationLandmark(o[1]); } -buildUnnamed2909() { +buildUnnamed3040() { var o = new core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult>(); o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); o.add(buildGoogleCloudVisionV1p4beta1FaceRecognitionResult()); return o; } -checkUnnamed2909( +checkUnnamed3040( core.List<api.GoogleCloudVisionV1p4beta1FaceRecognitionResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1FaceRecognitionResult(o[0]); @@ -6789,9 +6789,9 @@ o.headwearLikelihood = "foo"; o.joyLikelihood = "foo"; o.landmarkingConfidence = 42.0; - o.landmarks = buildUnnamed2908(); + o.landmarks = buildUnnamed3039(); o.panAngle = 42.0; - o.recognitionResult = buildUnnamed2909(); + o.recognitionResult = buildUnnamed3040(); o.rollAngle = 42.0; o.sorrowLikelihood = "foo"; o.surpriseLikelihood = "foo"; @@ -6814,9 +6814,9 @@ unittest.expect(o.headwearLikelihood, unittest.equals('foo')); unittest.expect(o.joyLikelihood, unittest.equals('foo')); unittest.expect(o.landmarkingConfidence, unittest.equals(42.0)); - checkUnnamed2908(o.landmarks); + checkUnnamed3039(o.landmarks); unittest.expect(o.panAngle, unittest.equals(42.0)); - checkUnnamed2909(o.recognitionResult); + checkUnnamed3040(o.recognitionResult); unittest.expect(o.rollAngle, unittest.equals(42.0)); unittest.expect(o.sorrowLikelihood, unittest.equals('foo')); unittest.expect(o.surpriseLikelihood, unittest.equals('foo')); @@ -6953,27 +6953,27 @@ buildCounterGoogleCloudVisionV1p4beta1ImageProperties--; } -buildUnnamed2910() { +buildUnnamed3041() { var o = new core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage>(); o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); o.add(buildGoogleCloudVisionV1p4beta1ReferenceImage()); return o; } -checkUnnamed2910(core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> o) { +checkUnnamed3041(core.List<api.GoogleCloudVisionV1p4beta1ReferenceImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1ReferenceImage(o[0]); checkGoogleCloudVisionV1p4beta1ReferenceImage(o[1]); } -buildUnnamed2911() { +buildUnnamed3042() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed2911(core.List<api.Status> o) { +checkUnnamed3042(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -6984,8 +6984,8 @@ var o = new api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse(); buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { - o.referenceImages = buildUnnamed2910(); - o.statuses = buildUnnamed2911(); + o.referenceImages = buildUnnamed3041(); + o.statuses = buildUnnamed3042(); } buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse--; return o; @@ -6995,8 +6995,8 @@ api.GoogleCloudVisionV1p4beta1ImportProductSetsResponse o) { buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse++; if (buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse < 3) { - checkUnnamed2910(o.referenceImages); - checkUnnamed2911(o.statuses); + checkUnnamed3041(o.referenceImages); + checkUnnamed3042(o.statuses); } buildCounterGoogleCloudVisionV1p4beta1ImportProductSetsResponse--; } @@ -7141,14 +7141,14 @@ buildCounterGoogleCloudVisionV1p4beta1OutputConfig--; } -buildUnnamed2912() { +buildUnnamed3043() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Block>(); o.add(buildGoogleCloudVisionV1p4beta1Block()); o.add(buildGoogleCloudVisionV1p4beta1Block()); return o; } -checkUnnamed2912(core.List<api.GoogleCloudVisionV1p4beta1Block> o) { +checkUnnamed3043(core.List<api.GoogleCloudVisionV1p4beta1Block> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Block(o[0]); checkGoogleCloudVisionV1p4beta1Block(o[1]); @@ -7159,7 +7159,7 @@ var o = new api.GoogleCloudVisionV1p4beta1Page(); buildCounterGoogleCloudVisionV1p4beta1Page++; if (buildCounterGoogleCloudVisionV1p4beta1Page < 3) { - o.blocks = buildUnnamed2912(); + o.blocks = buildUnnamed3043(); o.confidence = 42.0; o.height = 42; o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); @@ -7172,7 +7172,7 @@ checkGoogleCloudVisionV1p4beta1Page(api.GoogleCloudVisionV1p4beta1Page o) { buildCounterGoogleCloudVisionV1p4beta1Page++; if (buildCounterGoogleCloudVisionV1p4beta1Page < 3) { - checkUnnamed2912(o.blocks); + checkUnnamed3043(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); @@ -7181,14 +7181,14 @@ buildCounterGoogleCloudVisionV1p4beta1Page--; } -buildUnnamed2913() { +buildUnnamed3044() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Word>(); o.add(buildGoogleCloudVisionV1p4beta1Word()); o.add(buildGoogleCloudVisionV1p4beta1Word()); return o; } -checkUnnamed2913(core.List<api.GoogleCloudVisionV1p4beta1Word> o) { +checkUnnamed3044(core.List<api.GoogleCloudVisionV1p4beta1Word> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Word(o[0]); checkGoogleCloudVisionV1p4beta1Word(o[1]); @@ -7202,7 +7202,7 @@ o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); - o.words = buildUnnamed2913(); + o.words = buildUnnamed3044(); } buildCounterGoogleCloudVisionV1p4beta1Paragraph--; return o; @@ -7215,7 +7215,7 @@ checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); - checkUnnamed2913(o.words); + checkUnnamed3044(o.words); } buildCounterGoogleCloudVisionV1p4beta1Paragraph--; } @@ -7244,14 +7244,14 @@ buildCounterGoogleCloudVisionV1p4beta1Position--; } -buildUnnamed2914() { +buildUnnamed3045() { var o = new core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue>(); o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); o.add(buildGoogleCloudVisionV1p4beta1ProductKeyValue()); return o; } -checkUnnamed2914(core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue> o) { +checkUnnamed3045(core.List<api.GoogleCloudVisionV1p4beta1ProductKeyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1ProductKeyValue(o[0]); checkGoogleCloudVisionV1p4beta1ProductKeyValue(o[1]); @@ -7266,7 +7266,7 @@ o.displayName = "foo"; o.name = "foo"; o.productCategory = "foo"; - o.productLabels = buildUnnamed2914(); + o.productLabels = buildUnnamed3045(); } buildCounterGoogleCloudVisionV1p4beta1Product--; return o; @@ -7280,7 +7280,7 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productCategory, unittest.equals('foo')); - checkUnnamed2914(o.productLabels); + checkUnnamed3045(o.productLabels); } buildCounterGoogleCloudVisionV1p4beta1Product--; } @@ -7307,7 +7307,7 @@ buildCounterGoogleCloudVisionV1p4beta1ProductKeyValue--; } -buildUnnamed2915() { +buildUnnamed3046() { var o = new core .List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult>(); o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult()); @@ -7315,7 +7315,7 @@ return o; } -checkUnnamed2915( +checkUnnamed3046( core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult> o) { unittest.expect(o, unittest.hasLength(2)); @@ -7323,7 +7323,7 @@ checkGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult(o[1]); } -buildUnnamed2916() { +buildUnnamed3047() { var o = new core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); @@ -7331,7 +7331,7 @@ return o; } -checkUnnamed2916( +checkUnnamed3047( core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[0]); @@ -7344,8 +7344,8 @@ buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { o.indexTime = "foo"; - o.productGroupedResults = buildUnnamed2915(); - o.results = buildUnnamed2916(); + o.productGroupedResults = buildUnnamed3046(); + o.results = buildUnnamed3047(); } buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; return o; @@ -7356,13 +7356,13 @@ buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults++; if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults < 3) { unittest.expect(o.indexTime, unittest.equals('foo')); - checkUnnamed2915(o.productGroupedResults); - checkUnnamed2916(o.results); + checkUnnamed3046(o.productGroupedResults); + checkUnnamed3047(o.results); } buildCounterGoogleCloudVisionV1p4beta1ProductSearchResults--; } -buildUnnamed2917() { +buildUnnamed3048() { var o = new core.List< api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation>(); o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation()); @@ -7370,7 +7370,7 @@ return o; } -checkUnnamed2917( +checkUnnamed3048( core.List< api.GoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation> o) { @@ -7379,7 +7379,7 @@ checkGoogleCloudVisionV1p4beta1ProductSearchResultsObjectAnnotation(o[1]); } -buildUnnamed2918() { +buildUnnamed3049() { var o = new core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult>(); o.add(buildGoogleCloudVisionV1p4beta1ProductSearchResultsResult()); @@ -7387,7 +7387,7 @@ return o; } -checkUnnamed2918( +checkUnnamed3049( core.List<api.GoogleCloudVisionV1p4beta1ProductSearchResultsResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1ProductSearchResultsResult(o[0]); @@ -7402,8 +7402,8 @@ if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < 3) { o.boundingPoly = buildGoogleCloudVisionV1p4beta1BoundingPoly(); - o.objectAnnotations = buildUnnamed2917(); - o.results = buildUnnamed2918(); + o.objectAnnotations = buildUnnamed3048(); + o.results = buildUnnamed3049(); } buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult--; return o; @@ -7415,8 +7415,8 @@ if (buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult < 3) { checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingPoly); - checkUnnamed2917(o.objectAnnotations); - checkUnnamed2918(o.results); + checkUnnamed3048(o.objectAnnotations); + checkUnnamed3049(o.results); } buildCounterGoogleCloudVisionV1p4beta1ProductSearchResultsGroupedResult--; } @@ -7500,14 +7500,14 @@ buildCounterGoogleCloudVisionV1p4beta1Property--; } -buildUnnamed2919() { +buildUnnamed3050() { var o = new core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly>(); o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); o.add(buildGoogleCloudVisionV1p4beta1BoundingPoly()); return o; } -checkUnnamed2919(core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly> o) { +checkUnnamed3050(core.List<api.GoogleCloudVisionV1p4beta1BoundingPoly> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1BoundingPoly(o[0]); checkGoogleCloudVisionV1p4beta1BoundingPoly(o[1]); @@ -7518,7 +7518,7 @@ var o = new api.GoogleCloudVisionV1p4beta1ReferenceImage(); buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { - o.boundingPolys = buildUnnamed2919(); + o.boundingPolys = buildUnnamed3050(); o.name = "foo"; o.uri = "foo"; } @@ -7530,7 +7530,7 @@ api.GoogleCloudVisionV1p4beta1ReferenceImage o) { buildCounterGoogleCloudVisionV1p4beta1ReferenceImage++; if (buildCounterGoogleCloudVisionV1p4beta1ReferenceImage < 3) { - checkUnnamed2919(o.boundingPolys); + checkUnnamed3050(o.boundingPolys); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.uri, unittest.equals('foo')); } @@ -7590,14 +7590,14 @@ buildCounterGoogleCloudVisionV1p4beta1Symbol--; } -buildUnnamed2920() { +buildUnnamed3051() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Page>(); o.add(buildGoogleCloudVisionV1p4beta1Page()); o.add(buildGoogleCloudVisionV1p4beta1Page()); return o; } -checkUnnamed2920(core.List<api.GoogleCloudVisionV1p4beta1Page> o) { +checkUnnamed3051(core.List<api.GoogleCloudVisionV1p4beta1Page> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Page(o[0]); checkGoogleCloudVisionV1p4beta1Page(o[1]); @@ -7608,7 +7608,7 @@ var o = new api.GoogleCloudVisionV1p4beta1TextAnnotation(); buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { - o.pages = buildUnnamed2920(); + o.pages = buildUnnamed3051(); o.text = "foo"; } buildCounterGoogleCloudVisionV1p4beta1TextAnnotation--; @@ -7619,7 +7619,7 @@ api.GoogleCloudVisionV1p4beta1TextAnnotation o) { buildCounterGoogleCloudVisionV1p4beta1TextAnnotation++; if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotation < 3) { - checkUnnamed2920(o.pages); + checkUnnamed3051(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p4beta1TextAnnotation--; @@ -7672,7 +7672,7 @@ buildCounterGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage--; } -buildUnnamed2921() { +buildUnnamed3052() { var o = new core .List<api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage>(); o.add(buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage()); @@ -7680,7 +7680,7 @@ return o; } -checkUnnamed2921( +checkUnnamed3052( core.List<api.GoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedLanguage(o[0]); @@ -7694,7 +7694,7 @@ if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { o.detectedBreak = buildGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(); - o.detectedLanguages = buildUnnamed2921(); + o.detectedLanguages = buildUnnamed3052(); } buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty--; return o; @@ -7705,7 +7705,7 @@ buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty++; if (buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty < 3) { checkGoogleCloudVisionV1p4beta1TextAnnotationDetectedBreak(o.detectedBreak); - checkUnnamed2921(o.detectedLanguages); + checkUnnamed3052(o.detectedLanguages); } buildCounterGoogleCloudVisionV1p4beta1TextAnnotationTextProperty--; } @@ -7731,84 +7731,84 @@ buildCounterGoogleCloudVisionV1p4beta1Vertex--; } -buildUnnamed2922() { +buildUnnamed3053() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebLabel()); return o; } -checkUnnamed2922( +checkUnnamed3053( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebLabel(o[1]); } -buildUnnamed2923() { +buildUnnamed3054() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); return o; } -checkUnnamed2923( +checkUnnamed3054( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); } -buildUnnamed2924() { +buildUnnamed3055() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebPage()); return o; } -checkUnnamed2924( +checkUnnamed3055( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebPage(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebPage(o[1]); } -buildUnnamed2925() { +buildUnnamed3056() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); return o; } -checkUnnamed2925( +checkUnnamed3056( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); } -buildUnnamed2926() { +buildUnnamed3057() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); return o; } -checkUnnamed2926( +checkUnnamed3057( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); } -buildUnnamed2927() { +buildUnnamed3058() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebEntity()); return o; } -checkUnnamed2927( +checkUnnamed3058( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebEntity(o[0]); @@ -7820,12 +7820,12 @@ var o = new api.GoogleCloudVisionV1p4beta1WebDetection(); buildCounterGoogleCloudVisionV1p4beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { - o.bestGuessLabels = buildUnnamed2922(); - o.fullMatchingImages = buildUnnamed2923(); - o.pagesWithMatchingImages = buildUnnamed2924(); - o.partialMatchingImages = buildUnnamed2925(); - o.visuallySimilarImages = buildUnnamed2926(); - o.webEntities = buildUnnamed2927(); + o.bestGuessLabels = buildUnnamed3053(); + o.fullMatchingImages = buildUnnamed3054(); + o.pagesWithMatchingImages = buildUnnamed3055(); + o.partialMatchingImages = buildUnnamed3056(); + o.visuallySimilarImages = buildUnnamed3057(); + o.webEntities = buildUnnamed3058(); } buildCounterGoogleCloudVisionV1p4beta1WebDetection--; return o; @@ -7835,12 +7835,12 @@ api.GoogleCloudVisionV1p4beta1WebDetection o) { buildCounterGoogleCloudVisionV1p4beta1WebDetection++; if (buildCounterGoogleCloudVisionV1p4beta1WebDetection < 3) { - checkUnnamed2922(o.bestGuessLabels); - checkUnnamed2923(o.fullMatchingImages); - checkUnnamed2924(o.pagesWithMatchingImages); - checkUnnamed2925(o.partialMatchingImages); - checkUnnamed2926(o.visuallySimilarImages); - checkUnnamed2927(o.webEntities); + checkUnnamed3053(o.bestGuessLabels); + checkUnnamed3054(o.fullMatchingImages); + checkUnnamed3055(o.pagesWithMatchingImages); + checkUnnamed3056(o.partialMatchingImages); + checkUnnamed3057(o.visuallySimilarImages); + checkUnnamed3058(o.webEntities); } buildCounterGoogleCloudVisionV1p4beta1WebDetection--; } @@ -7913,28 +7913,28 @@ buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebLabel--; } -buildUnnamed2928() { +buildUnnamed3059() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); return o; } -checkUnnamed2928( +checkUnnamed3059( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[1]); } -buildUnnamed2929() { +buildUnnamed3060() { var o = new core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage>(); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); o.add(buildGoogleCloudVisionV1p4beta1WebDetectionWebImage()); return o; } -checkUnnamed2929( +checkUnnamed3060( core.List<api.GoogleCloudVisionV1p4beta1WebDetectionWebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1WebDetectionWebImage(o[0]); @@ -7946,9 +7946,9 @@ var o = new api.GoogleCloudVisionV1p4beta1WebDetectionWebPage(); buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { - o.fullMatchingImages = buildUnnamed2928(); + o.fullMatchingImages = buildUnnamed3059(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed2929(); + o.partialMatchingImages = buildUnnamed3060(); o.score = 42.0; o.url = "foo"; } @@ -7960,23 +7960,23 @@ api.GoogleCloudVisionV1p4beta1WebDetectionWebPage o) { buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage++; if (buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage < 3) { - checkUnnamed2928(o.fullMatchingImages); + checkUnnamed3059(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed2929(o.partialMatchingImages); + checkUnnamed3060(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterGoogleCloudVisionV1p4beta1WebDetectionWebPage--; } -buildUnnamed2930() { +buildUnnamed3061() { var o = new core.List<api.GoogleCloudVisionV1p4beta1Symbol>(); o.add(buildGoogleCloudVisionV1p4beta1Symbol()); o.add(buildGoogleCloudVisionV1p4beta1Symbol()); return o; } -checkUnnamed2930(core.List<api.GoogleCloudVisionV1p4beta1Symbol> o) { +checkUnnamed3061(core.List<api.GoogleCloudVisionV1p4beta1Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkGoogleCloudVisionV1p4beta1Symbol(o[0]); checkGoogleCloudVisionV1p4beta1Symbol(o[1]); @@ -7990,7 +7990,7 @@ o.boundingBox = buildGoogleCloudVisionV1p4beta1BoundingPoly(); o.confidence = 42.0; o.property = buildGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(); - o.symbols = buildUnnamed2930(); + o.symbols = buildUnnamed3061(); } buildCounterGoogleCloudVisionV1p4beta1Word--; return o; @@ -8002,32 +8002,32 @@ checkGoogleCloudVisionV1p4beta1BoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkGoogleCloudVisionV1p4beta1TextAnnotationTextProperty(o.property); - checkUnnamed2930(o.symbols); + checkUnnamed3061(o.symbols); } buildCounterGoogleCloudVisionV1p4beta1Word--; } -buildUnnamed2931() { +buildUnnamed3062() { var o = new core.List<api.ObjectAnnotation>(); o.add(buildObjectAnnotation()); o.add(buildObjectAnnotation()); return o; } -checkUnnamed2931(core.List<api.ObjectAnnotation> o) { +checkUnnamed3062(core.List<api.ObjectAnnotation> o) { unittest.expect(o, unittest.hasLength(2)); checkObjectAnnotation(o[0]); checkObjectAnnotation(o[1]); } -buildUnnamed2932() { +buildUnnamed3063() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed2932(core.List<api.Result> o) { +checkUnnamed3063(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); @@ -8039,8 +8039,8 @@ buildCounterGroupedResult++; if (buildCounterGroupedResult < 3) { o.boundingPoly = buildBoundingPoly(); - o.objectAnnotations = buildUnnamed2931(); - o.results = buildUnnamed2932(); + o.objectAnnotations = buildUnnamed3062(); + o.results = buildUnnamed3063(); } buildCounterGroupedResult--; return o; @@ -8050,8 +8050,8 @@ buildCounterGroupedResult++; if (buildCounterGroupedResult < 3) { checkBoundingPoly(o.boundingPoly); - checkUnnamed2931(o.objectAnnotations); - checkUnnamed2932(o.results); + checkUnnamed3062(o.objectAnnotations); + checkUnnamed3063(o.results); } buildCounterGroupedResult--; } @@ -8098,14 +8098,14 @@ buildCounterImageAnnotationContext--; } -buildUnnamed2933() { +buildUnnamed3064() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2933(core.List<core.String> o) { +checkUnnamed3064(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -8117,7 +8117,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { o.cropHintsParams = buildCropHintsParams(); - o.languageHints = buildUnnamed2933(); + o.languageHints = buildUnnamed3064(); o.latLongRect = buildLatLongRect(); o.productSearchParams = buildProductSearchParams(); o.webDetectionParams = buildWebDetectionParams(); @@ -8130,7 +8130,7 @@ buildCounterImageContext++; if (buildCounterImageContext < 3) { checkCropHintsParams(o.cropHintsParams); - checkUnnamed2933(o.languageHints); + checkUnnamed3064(o.languageHints); checkLatLongRect(o.latLongRect); checkProductSearchParams(o.productSearchParams); checkWebDetectionParams(o.webDetectionParams); @@ -8235,27 +8235,27 @@ buildCounterImportProductSetsRequest--; } -buildUnnamed2934() { +buildUnnamed3065() { var o = new core.List<api.ReferenceImage>(); o.add(buildReferenceImage()); o.add(buildReferenceImage()); return o; } -checkUnnamed2934(core.List<api.ReferenceImage> o) { +checkUnnamed3065(core.List<api.ReferenceImage> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceImage(o[0]); checkReferenceImage(o[1]); } -buildUnnamed2935() { +buildUnnamed3066() { var o = new core.List<api.Status>(); o.add(buildStatus()); o.add(buildStatus()); return o; } -checkUnnamed2935(core.List<api.Status> o) { +checkUnnamed3066(core.List<api.Status> o) { unittest.expect(o, unittest.hasLength(2)); checkStatus(o[0]); checkStatus(o[1]); @@ -8266,8 +8266,8 @@ var o = new api.ImportProductSetsResponse(); buildCounterImportProductSetsResponse++; if (buildCounterImportProductSetsResponse < 3) { - o.referenceImages = buildUnnamed2934(); - o.statuses = buildUnnamed2935(); + o.referenceImages = buildUnnamed3065(); + o.statuses = buildUnnamed3066(); } buildCounterImportProductSetsResponse--; return o; @@ -8276,8 +8276,8 @@ checkImportProductSetsResponse(api.ImportProductSetsResponse o) { buildCounterImportProductSetsResponse++; if (buildCounterImportProductSetsResponse < 3) { - checkUnnamed2934(o.referenceImages); - checkUnnamed2935(o.statuses); + checkUnnamed3065(o.referenceImages); + checkUnnamed3066(o.statuses); } buildCounterImportProductSetsResponse--; } @@ -8389,14 +8389,14 @@ buildCounterLatLongRect--; } -buildUnnamed2936() { +buildUnnamed3067() { var o = new core.List<api.Operation>(); o.add(buildOperation()); o.add(buildOperation()); return o; } -checkUnnamed2936(core.List<api.Operation> o) { +checkUnnamed3067(core.List<api.Operation> o) { unittest.expect(o, unittest.hasLength(2)); checkOperation(o[0]); checkOperation(o[1]); @@ -8408,7 +8408,7 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { o.nextPageToken = "foo"; - o.operations = buildUnnamed2936(); + o.operations = buildUnnamed3067(); } buildCounterListOperationsResponse--; return o; @@ -8418,19 +8418,19 @@ buildCounterListOperationsResponse++; if (buildCounterListOperationsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2936(o.operations); + checkUnnamed3067(o.operations); } buildCounterListOperationsResponse--; } -buildUnnamed2937() { +buildUnnamed3068() { var o = new core.List<api.ProductSet>(); o.add(buildProductSet()); o.add(buildProductSet()); return o; } -checkUnnamed2937(core.List<api.ProductSet> o) { +checkUnnamed3068(core.List<api.ProductSet> o) { unittest.expect(o, unittest.hasLength(2)); checkProductSet(o[0]); checkProductSet(o[1]); @@ -8442,7 +8442,7 @@ buildCounterListProductSetsResponse++; if (buildCounterListProductSetsResponse < 3) { o.nextPageToken = "foo"; - o.productSets = buildUnnamed2937(); + o.productSets = buildUnnamed3068(); } buildCounterListProductSetsResponse--; return o; @@ -8452,19 +8452,19 @@ buildCounterListProductSetsResponse++; if (buildCounterListProductSetsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2937(o.productSets); + checkUnnamed3068(o.productSets); } buildCounterListProductSetsResponse--; } -buildUnnamed2938() { +buildUnnamed3069() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2938(core.List<api.Product> o) { +checkUnnamed3069(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -8476,7 +8476,7 @@ buildCounterListProductsInProductSetResponse++; if (buildCounterListProductsInProductSetResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed2938(); + o.products = buildUnnamed3069(); } buildCounterListProductsInProductSetResponse--; return o; @@ -8486,19 +8486,19 @@ buildCounterListProductsInProductSetResponse++; if (buildCounterListProductsInProductSetResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2938(o.products); + checkUnnamed3069(o.products); } buildCounterListProductsInProductSetResponse--; } -buildUnnamed2939() { +buildUnnamed3070() { var o = new core.List<api.Product>(); o.add(buildProduct()); o.add(buildProduct()); return o; } -checkUnnamed2939(core.List<api.Product> o) { +checkUnnamed3070(core.List<api.Product> o) { unittest.expect(o, unittest.hasLength(2)); checkProduct(o[0]); checkProduct(o[1]); @@ -8510,7 +8510,7 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { o.nextPageToken = "foo"; - o.products = buildUnnamed2939(); + o.products = buildUnnamed3070(); } buildCounterListProductsResponse--; return o; @@ -8520,19 +8520,19 @@ buildCounterListProductsResponse++; if (buildCounterListProductsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed2939(o.products); + checkUnnamed3070(o.products); } buildCounterListProductsResponse--; } -buildUnnamed2940() { +buildUnnamed3071() { var o = new core.List<api.ReferenceImage>(); o.add(buildReferenceImage()); o.add(buildReferenceImage()); return o; } -checkUnnamed2940(core.List<api.ReferenceImage> o) { +checkUnnamed3071(core.List<api.ReferenceImage> o) { unittest.expect(o, unittest.hasLength(2)); checkReferenceImage(o[0]); checkReferenceImage(o[1]); @@ -8545,7 +8545,7 @@ if (buildCounterListReferenceImagesResponse < 3) { o.nextPageToken = "foo"; o.pageSize = 42; - o.referenceImages = buildUnnamed2940(); + o.referenceImages = buildUnnamed3071(); } buildCounterListReferenceImagesResponse--; return o; @@ -8556,7 +8556,7 @@ if (buildCounterListReferenceImagesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); unittest.expect(o.pageSize, unittest.equals(42)); - checkUnnamed2940(o.referenceImages); + checkUnnamed3071(o.referenceImages); } buildCounterListReferenceImagesResponse--; } @@ -8653,7 +8653,7 @@ buildCounterObjectAnnotation--; } -buildUnnamed2941() { +buildUnnamed3072() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -8668,7 +8668,7 @@ return o; } -checkUnnamed2941(core.Map<core.String, core.Object> o) { +checkUnnamed3072(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)); @@ -8682,7 +8682,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2942() { +buildUnnamed3073() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -8697,7 +8697,7 @@ return o; } -checkUnnamed2942(core.Map<core.String, core.Object> o) { +checkUnnamed3073(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)); @@ -8718,9 +8718,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed2941(); + o.metadata = buildUnnamed3072(); o.name = "foo"; - o.response = buildUnnamed2942(); + o.response = buildUnnamed3073(); } buildCounterOperation--; return o; @@ -8731,9 +8731,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed2941(o.metadata); + checkUnnamed3072(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed2942(o.response); + checkUnnamed3073(o.response); } buildCounterOperation--; } @@ -8782,14 +8782,14 @@ buildCounterOutputConfig--; } -buildUnnamed2943() { +buildUnnamed3074() { var o = new core.List<api.Block>(); o.add(buildBlock()); o.add(buildBlock()); return o; } -checkUnnamed2943(core.List<api.Block> o) { +checkUnnamed3074(core.List<api.Block> o) { unittest.expect(o, unittest.hasLength(2)); checkBlock(o[0]); checkBlock(o[1]); @@ -8800,7 +8800,7 @@ var o = new api.Page(); buildCounterPage++; if (buildCounterPage < 3) { - o.blocks = buildUnnamed2943(); + o.blocks = buildUnnamed3074(); o.confidence = 42.0; o.height = 42; o.property = buildTextProperty(); @@ -8813,7 +8813,7 @@ checkPage(api.Page o) { buildCounterPage++; if (buildCounterPage < 3) { - checkUnnamed2943(o.blocks); + checkUnnamed3074(o.blocks); unittest.expect(o.confidence, unittest.equals(42.0)); unittest.expect(o.height, unittest.equals(42)); checkTextProperty(o.property); @@ -8822,14 +8822,14 @@ buildCounterPage--; } -buildUnnamed2944() { +buildUnnamed3075() { var o = new core.List<api.Word>(); o.add(buildWord()); o.add(buildWord()); return o; } -checkUnnamed2944(core.List<api.Word> o) { +checkUnnamed3075(core.List<api.Word> o) { unittest.expect(o, unittest.hasLength(2)); checkWord(o[0]); checkWord(o[1]); @@ -8843,7 +8843,7 @@ o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; o.property = buildTextProperty(); - o.words = buildUnnamed2944(); + o.words = buildUnnamed3075(); } buildCounterParagraph--; return o; @@ -8855,7 +8855,7 @@ checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkTextProperty(o.property); - checkUnnamed2944(o.words); + checkUnnamed3075(o.words); } buildCounterParagraph--; } @@ -8883,14 +8883,14 @@ buildCounterPosition--; } -buildUnnamed2945() { +buildUnnamed3076() { var o = new core.List<api.KeyValue>(); o.add(buildKeyValue()); o.add(buildKeyValue()); return o; } -checkUnnamed2945(core.List<api.KeyValue> o) { +checkUnnamed3076(core.List<api.KeyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkKeyValue(o[0]); checkKeyValue(o[1]); @@ -8905,7 +8905,7 @@ o.displayName = "foo"; o.name = "foo"; o.productCategory = "foo"; - o.productLabels = buildUnnamed2945(); + o.productLabels = buildUnnamed3076(); } buildCounterProduct--; return o; @@ -8918,19 +8918,19 @@ unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.productCategory, unittest.equals('foo')); - checkUnnamed2945(o.productLabels); + checkUnnamed3076(o.productLabels); } buildCounterProduct--; } -buildUnnamed2946() { +buildUnnamed3077() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2946(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')); @@ -8943,7 +8943,7 @@ if (buildCounterProductSearchParams < 3) { o.boundingPoly = buildBoundingPoly(); o.filter = "foo"; - o.productCategories = buildUnnamed2946(); + o.productCategories = buildUnnamed3077(); o.productSet = "foo"; } buildCounterProductSearchParams--; @@ -8955,33 +8955,33 @@ if (buildCounterProductSearchParams < 3) { checkBoundingPoly(o.boundingPoly); unittest.expect(o.filter, unittest.equals('foo')); - checkUnnamed2946(o.productCategories); + checkUnnamed3077(o.productCategories); unittest.expect(o.productSet, unittest.equals('foo')); } buildCounterProductSearchParams--; } -buildUnnamed2947() { +buildUnnamed3078() { var o = new core.List<api.GroupedResult>(); o.add(buildGroupedResult()); o.add(buildGroupedResult()); return o; } -checkUnnamed2947(core.List<api.GroupedResult> o) { +checkUnnamed3078(core.List<api.GroupedResult> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupedResult(o[0]); checkGroupedResult(o[1]); } -buildUnnamed2948() { +buildUnnamed3079() { var o = new core.List<api.Result>(); o.add(buildResult()); o.add(buildResult()); return o; } -checkUnnamed2948(core.List<api.Result> o) { +checkUnnamed3079(core.List<api.Result> o) { unittest.expect(o, unittest.hasLength(2)); checkResult(o[0]); checkResult(o[1]); @@ -8993,8 +8993,8 @@ buildCounterProductSearchResults++; if (buildCounterProductSearchResults < 3) { o.indexTime = "foo"; - o.productGroupedResults = buildUnnamed2947(); - o.results = buildUnnamed2948(); + o.productGroupedResults = buildUnnamed3078(); + o.results = buildUnnamed3079(); } buildCounterProductSearchResults--; return o; @@ -9004,8 +9004,8 @@ buildCounterProductSearchResults++; if (buildCounterProductSearchResults < 3) { unittest.expect(o.indexTime, unittest.equals('foo')); - checkUnnamed2947(o.productGroupedResults); - checkUnnamed2948(o.results); + checkUnnamed3078(o.productGroupedResults); + checkUnnamed3079(o.results); } buildCounterProductSearchResults--; } @@ -9100,14 +9100,14 @@ buildCounterPurgeProductsRequest--; } -buildUnnamed2949() { +buildUnnamed3080() { var o = new core.List<api.BoundingPoly>(); o.add(buildBoundingPoly()); o.add(buildBoundingPoly()); return o; } -checkUnnamed2949(core.List<api.BoundingPoly> o) { +checkUnnamed3080(core.List<api.BoundingPoly> o) { unittest.expect(o, unittest.hasLength(2)); checkBoundingPoly(o[0]); checkBoundingPoly(o[1]); @@ -9118,7 +9118,7 @@ var o = new api.ReferenceImage(); buildCounterReferenceImage++; if (buildCounterReferenceImage < 3) { - o.boundingPolys = buildUnnamed2949(); + o.boundingPolys = buildUnnamed3080(); o.name = "foo"; o.uri = "foo"; } @@ -9129,7 +9129,7 @@ checkReferenceImage(api.ReferenceImage o) { buildCounterReferenceImage++; if (buildCounterReferenceImage < 3) { - checkUnnamed2949(o.boundingPolys); + checkUnnamed3080(o.boundingPolys); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.uri, unittest.equals('foo')); } @@ -9206,7 +9206,7 @@ buildCounterSafeSearchAnnotation--; } -buildUnnamed2950() { +buildUnnamed3081() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -9221,7 +9221,7 @@ return o; } -checkUnnamed2950(core.Map<core.String, core.Object> o) { +checkUnnamed3081(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)); @@ -9235,17 +9235,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed2951() { +buildUnnamed3082() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed2950()); - o.add(buildUnnamed2950()); + o.add(buildUnnamed3081()); + o.add(buildUnnamed3081()); return o; } -checkUnnamed2951(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed3082(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2950(o[0]); - checkUnnamed2950(o[1]); + checkUnnamed3081(o[0]); + checkUnnamed3081(o[1]); } core.int buildCounterStatus = 0; @@ -9254,7 +9254,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed2951(); + o.details = buildUnnamed3082(); o.message = "foo"; } buildCounterStatus--; @@ -9265,7 +9265,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed2951(o.details); + checkUnnamed3082(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -9296,14 +9296,14 @@ buildCounterSymbol--; } -buildUnnamed2952() { +buildUnnamed3083() { var o = new core.List<api.Page>(); o.add(buildPage()); o.add(buildPage()); return o; } -checkUnnamed2952(core.List<api.Page> o) { +checkUnnamed3083(core.List<api.Page> o) { unittest.expect(o, unittest.hasLength(2)); checkPage(o[0]); checkPage(o[1]); @@ -9314,7 +9314,7 @@ var o = new api.TextAnnotation(); buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - o.pages = buildUnnamed2952(); + o.pages = buildUnnamed3083(); o.text = "foo"; } buildCounterTextAnnotation--; @@ -9324,20 +9324,20 @@ checkTextAnnotation(api.TextAnnotation o) { buildCounterTextAnnotation++; if (buildCounterTextAnnotation < 3) { - checkUnnamed2952(o.pages); + checkUnnamed3083(o.pages); unittest.expect(o.text, unittest.equals('foo')); } buildCounterTextAnnotation--; } -buildUnnamed2953() { +buildUnnamed3084() { var o = new core.List<api.DetectedLanguage>(); o.add(buildDetectedLanguage()); o.add(buildDetectedLanguage()); return o; } -checkUnnamed2953(core.List<api.DetectedLanguage> o) { +checkUnnamed3084(core.List<api.DetectedLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkDetectedLanguage(o[0]); checkDetectedLanguage(o[1]); @@ -9349,7 +9349,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { o.detectedBreak = buildDetectedBreak(); - o.detectedLanguages = buildUnnamed2953(); + o.detectedLanguages = buildUnnamed3084(); } buildCounterTextProperty--; return o; @@ -9359,7 +9359,7 @@ buildCounterTextProperty++; if (buildCounterTextProperty < 3) { checkDetectedBreak(o.detectedBreak); - checkUnnamed2953(o.detectedLanguages); + checkUnnamed3084(o.detectedLanguages); } buildCounterTextProperty--; } @@ -9385,79 +9385,79 @@ buildCounterVertex--; } -buildUnnamed2954() { +buildUnnamed3085() { var o = new core.List<api.WebLabel>(); o.add(buildWebLabel()); o.add(buildWebLabel()); return o; } -checkUnnamed2954(core.List<api.WebLabel> o) { +checkUnnamed3085(core.List<api.WebLabel> o) { unittest.expect(o, unittest.hasLength(2)); checkWebLabel(o[0]); checkWebLabel(o[1]); } -buildUnnamed2955() { +buildUnnamed3086() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed2955(core.List<api.WebImage> o) { +checkUnnamed3086(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed2956() { +buildUnnamed3087() { var o = new core.List<api.WebPage>(); o.add(buildWebPage()); o.add(buildWebPage()); return o; } -checkUnnamed2956(core.List<api.WebPage> o) { +checkUnnamed3087(core.List<api.WebPage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebPage(o[0]); checkWebPage(o[1]); } -buildUnnamed2957() { +buildUnnamed3088() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed2957(core.List<api.WebImage> o) { +checkUnnamed3088(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed2958() { +buildUnnamed3089() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed2958(core.List<api.WebImage> o) { +checkUnnamed3089(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed2959() { +buildUnnamed3090() { var o = new core.List<api.WebEntity>(); o.add(buildWebEntity()); o.add(buildWebEntity()); return o; } -checkUnnamed2959(core.List<api.WebEntity> o) { +checkUnnamed3090(core.List<api.WebEntity> o) { unittest.expect(o, unittest.hasLength(2)); checkWebEntity(o[0]); checkWebEntity(o[1]); @@ -9468,12 +9468,12 @@ var o = new api.WebDetection(); buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - o.bestGuessLabels = buildUnnamed2954(); - o.fullMatchingImages = buildUnnamed2955(); - o.pagesWithMatchingImages = buildUnnamed2956(); - o.partialMatchingImages = buildUnnamed2957(); - o.visuallySimilarImages = buildUnnamed2958(); - o.webEntities = buildUnnamed2959(); + o.bestGuessLabels = buildUnnamed3085(); + o.fullMatchingImages = buildUnnamed3086(); + o.pagesWithMatchingImages = buildUnnamed3087(); + o.partialMatchingImages = buildUnnamed3088(); + o.visuallySimilarImages = buildUnnamed3089(); + o.webEntities = buildUnnamed3090(); } buildCounterWebDetection--; return o; @@ -9482,12 +9482,12 @@ checkWebDetection(api.WebDetection o) { buildCounterWebDetection++; if (buildCounterWebDetection < 3) { - checkUnnamed2954(o.bestGuessLabels); - checkUnnamed2955(o.fullMatchingImages); - checkUnnamed2956(o.pagesWithMatchingImages); - checkUnnamed2957(o.partialMatchingImages); - checkUnnamed2958(o.visuallySimilarImages); - checkUnnamed2959(o.webEntities); + checkUnnamed3085(o.bestGuessLabels); + checkUnnamed3086(o.fullMatchingImages); + checkUnnamed3087(o.pagesWithMatchingImages); + checkUnnamed3088(o.partialMatchingImages); + checkUnnamed3089(o.visuallySimilarImages); + checkUnnamed3090(o.webEntities); } buildCounterWebDetection--; } @@ -9576,27 +9576,27 @@ buildCounterWebLabel--; } -buildUnnamed2960() { +buildUnnamed3091() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed2960(core.List<api.WebImage> o) { +checkUnnamed3091(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); } -buildUnnamed2961() { +buildUnnamed3092() { var o = new core.List<api.WebImage>(); o.add(buildWebImage()); o.add(buildWebImage()); return o; } -checkUnnamed2961(core.List<api.WebImage> o) { +checkUnnamed3092(core.List<api.WebImage> o) { unittest.expect(o, unittest.hasLength(2)); checkWebImage(o[0]); checkWebImage(o[1]); @@ -9607,9 +9607,9 @@ var o = new api.WebPage(); buildCounterWebPage++; if (buildCounterWebPage < 3) { - o.fullMatchingImages = buildUnnamed2960(); + o.fullMatchingImages = buildUnnamed3091(); o.pageTitle = "foo"; - o.partialMatchingImages = buildUnnamed2961(); + o.partialMatchingImages = buildUnnamed3092(); o.score = 42.0; o.url = "foo"; } @@ -9620,23 +9620,23 @@ checkWebPage(api.WebPage o) { buildCounterWebPage++; if (buildCounterWebPage < 3) { - checkUnnamed2960(o.fullMatchingImages); + checkUnnamed3091(o.fullMatchingImages); unittest.expect(o.pageTitle, unittest.equals('foo')); - checkUnnamed2961(o.partialMatchingImages); + checkUnnamed3092(o.partialMatchingImages); unittest.expect(o.score, unittest.equals(42.0)); unittest.expect(o.url, unittest.equals('foo')); } buildCounterWebPage--; } -buildUnnamed2962() { +buildUnnamed3093() { var o = new core.List<api.Symbol>(); o.add(buildSymbol()); o.add(buildSymbol()); return o; } -checkUnnamed2962(core.List<api.Symbol> o) { +checkUnnamed3093(core.List<api.Symbol> o) { unittest.expect(o, unittest.hasLength(2)); checkSymbol(o[0]); checkSymbol(o[1]); @@ -9650,7 +9650,7 @@ o.boundingBox = buildBoundingPoly(); o.confidence = 42.0; o.property = buildTextProperty(); - o.symbols = buildUnnamed2962(); + o.symbols = buildUnnamed3093(); } buildCounterWord--; return o; @@ -9662,7 +9662,7 @@ checkBoundingPoly(o.boundingBox); unittest.expect(o.confidence, unittest.equals(42.0)); checkTextProperty(o.property); - checkUnnamed2962(o.symbols); + checkUnnamed3093(o.symbols); } buildCounterWord--; } @@ -12655,9 +12655,9 @@ var mock = new HttpServerMock(); api.OperationsResourceApi res = new api.VisionApi(mock).operations; var arg_name = "foo"; - var arg_filter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12690,11 +12690,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12705,9 +12705,9 @@ }), true); res .list(arg_name, - filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListOperationsResponse(response); @@ -13505,8 +13505,8 @@ api.ProjectsLocationsProductSetsResourceApi res = new api.VisionApi(mock).projects.locations.productSets; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -13539,10 +13539,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -13553,8 +13553,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListProductSetsResponse(response);
diff --git a/generated/googleapis/test/webfonts/v1_test.dart b/generated/googleapis/test/webfonts/v1_test.dart index 016c9ff..f45effc 100644 --- a/generated/googleapis/test/webfonts/v1_test.dart +++ b/generated/googleapis/test/webfonts/v1_test.dart
@@ -50,40 +50,40 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed1413() { +buildUnnamed1443() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed1413(core.Map<core.String, core.String> o) { +checkUnnamed1443(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')); } -buildUnnamed1414() { +buildUnnamed1444() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1414(core.List<core.String> o) { +checkUnnamed1444(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed1415() { +buildUnnamed1445() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed1415(core.List<core.String> o) { +checkUnnamed1445(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -96,11 +96,11 @@ if (buildCounterWebfont < 3) { o.category = "foo"; o.family = "foo"; - o.files = buildUnnamed1413(); + o.files = buildUnnamed1443(); o.kind = "foo"; - o.lastModified = core.DateTime.parse("2002-02-27T14:01:02Z"); - o.subsets = buildUnnamed1414(); - o.variants = buildUnnamed1415(); + o.lastModified = "foo"; + o.subsets = buildUnnamed1444(); + o.variants = buildUnnamed1445(); o.version = "foo"; } buildCounterWebfont--; @@ -112,25 +112,24 @@ if (buildCounterWebfont < 3) { unittest.expect(o.category, unittest.equals('foo')); unittest.expect(o.family, unittest.equals('foo')); - checkUnnamed1413(o.files); + checkUnnamed1443(o.files); unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.lastModified, - unittest.equals(core.DateTime.parse("2002-02-27T00:00:00"))); - checkUnnamed1414(o.subsets); - checkUnnamed1415(o.variants); + unittest.expect(o.lastModified, unittest.equals('foo')); + checkUnnamed1444(o.subsets); + checkUnnamed1445(o.variants); unittest.expect(o.version, unittest.equals('foo')); } buildCounterWebfont--; } -buildUnnamed1416() { +buildUnnamed1446() { var o = new core.List<api.Webfont>(); o.add(buildWebfont()); o.add(buildWebfont()); return o; } -checkUnnamed1416(core.List<api.Webfont> o) { +checkUnnamed1446(core.List<api.Webfont> o) { unittest.expect(o, unittest.hasLength(2)); checkWebfont(o[0]); checkWebfont(o[1]); @@ -141,7 +140,7 @@ var o = new api.WebfontList(); buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - o.items = buildUnnamed1416(); + o.items = buildUnnamed1446(); o.kind = "foo"; } buildCounterWebfontList--; @@ -151,7 +150,7 @@ checkWebfontList(api.WebfontList o) { buildCounterWebfontList++; if (buildCounterWebfontList < 3) { - checkUnnamed1416(o.items); + checkUnnamed1446(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterWebfontList--; @@ -188,12 +187,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 12), - unittest.equals("webfonts/v1/")); - pathOffset += 12; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("webfonts")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 11), + unittest.equals("v1/webfonts")); + pathOffset += 11; var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/websecurityscanner/v1_test.dart b/generated/googleapis/test/websecurityscanner/v1_test.dart index c601610..e69ec4a 100644 --- a/generated/googleapis/test/websecurityscanner/v1_test.dart +++ b/generated/googleapis/test/websecurityscanner/v1_test.dart
@@ -206,14 +206,14 @@ buildCounterFindingTypeStats--; } -buildUnnamed824() { +buildUnnamed845() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed824(core.List<core.String> o) { +checkUnnamed845(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -225,7 +225,7 @@ buildCounterForm++; if (buildCounterForm < 3) { o.actionUri = "foo"; - o.fields = buildUnnamed824(); + o.fields = buildUnnamed845(); } buildCounterForm--; return o; @@ -235,7 +235,7 @@ buildCounterForm++; if (buildCounterForm < 3) { unittest.expect(o.actionUri, unittest.equals('foo')); - checkUnnamed824(o.fields); + checkUnnamed845(o.fields); } buildCounterForm--; } @@ -320,14 +320,14 @@ buildCounterIapTestServiceAccountInfo--; } -buildUnnamed825() { +buildUnnamed846() { var o = new core.List<api.CrawledUrl>(); o.add(buildCrawledUrl()); o.add(buildCrawledUrl()); return o; } -checkUnnamed825(core.List<api.CrawledUrl> o) { +checkUnnamed846(core.List<api.CrawledUrl> o) { unittest.expect(o, unittest.hasLength(2)); checkCrawledUrl(o[0]); checkCrawledUrl(o[1]); @@ -338,7 +338,7 @@ var o = new api.ListCrawledUrlsResponse(); buildCounterListCrawledUrlsResponse++; if (buildCounterListCrawledUrlsResponse < 3) { - o.crawledUrls = buildUnnamed825(); + o.crawledUrls = buildUnnamed846(); o.nextPageToken = "foo"; } buildCounterListCrawledUrlsResponse--; @@ -348,20 +348,20 @@ checkListCrawledUrlsResponse(api.ListCrawledUrlsResponse o) { buildCounterListCrawledUrlsResponse++; if (buildCounterListCrawledUrlsResponse < 3) { - checkUnnamed825(o.crawledUrls); + checkUnnamed846(o.crawledUrls); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListCrawledUrlsResponse--; } -buildUnnamed826() { +buildUnnamed847() { var o = new core.List<api.FindingTypeStats>(); o.add(buildFindingTypeStats()); o.add(buildFindingTypeStats()); return o; } -checkUnnamed826(core.List<api.FindingTypeStats> o) { +checkUnnamed847(core.List<api.FindingTypeStats> o) { unittest.expect(o, unittest.hasLength(2)); checkFindingTypeStats(o[0]); checkFindingTypeStats(o[1]); @@ -372,7 +372,7 @@ var o = new api.ListFindingTypeStatsResponse(); buildCounterListFindingTypeStatsResponse++; if (buildCounterListFindingTypeStatsResponse < 3) { - o.findingTypeStats = buildUnnamed826(); + o.findingTypeStats = buildUnnamed847(); } buildCounterListFindingTypeStatsResponse--; return o; @@ -381,19 +381,19 @@ checkListFindingTypeStatsResponse(api.ListFindingTypeStatsResponse o) { buildCounterListFindingTypeStatsResponse++; if (buildCounterListFindingTypeStatsResponse < 3) { - checkUnnamed826(o.findingTypeStats); + checkUnnamed847(o.findingTypeStats); } buildCounterListFindingTypeStatsResponse--; } -buildUnnamed827() { +buildUnnamed848() { var o = new core.List<api.Finding>(); o.add(buildFinding()); o.add(buildFinding()); return o; } -checkUnnamed827(core.List<api.Finding> o) { +checkUnnamed848(core.List<api.Finding> o) { unittest.expect(o, unittest.hasLength(2)); checkFinding(o[0]); checkFinding(o[1]); @@ -404,7 +404,7 @@ var o = new api.ListFindingsResponse(); buildCounterListFindingsResponse++; if (buildCounterListFindingsResponse < 3) { - o.findings = buildUnnamed827(); + o.findings = buildUnnamed848(); o.nextPageToken = "foo"; } buildCounterListFindingsResponse--; @@ -414,20 +414,20 @@ checkListFindingsResponse(api.ListFindingsResponse o) { buildCounterListFindingsResponse++; if (buildCounterListFindingsResponse < 3) { - checkUnnamed827(o.findings); + checkUnnamed848(o.findings); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListFindingsResponse--; } -buildUnnamed828() { +buildUnnamed849() { var o = new core.List<api.ScanConfig>(); o.add(buildScanConfig()); o.add(buildScanConfig()); return o; } -checkUnnamed828(core.List<api.ScanConfig> o) { +checkUnnamed849(core.List<api.ScanConfig> o) { unittest.expect(o, unittest.hasLength(2)); checkScanConfig(o[0]); checkScanConfig(o[1]); @@ -439,7 +439,7 @@ buildCounterListScanConfigsResponse++; if (buildCounterListScanConfigsResponse < 3) { o.nextPageToken = "foo"; - o.scanConfigs = buildUnnamed828(); + o.scanConfigs = buildUnnamed849(); } buildCounterListScanConfigsResponse--; return o; @@ -449,19 +449,19 @@ buildCounterListScanConfigsResponse++; if (buildCounterListScanConfigsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed828(o.scanConfigs); + checkUnnamed849(o.scanConfigs); } buildCounterListScanConfigsResponse--; } -buildUnnamed829() { +buildUnnamed850() { var o = new core.List<api.ScanRun>(); o.add(buildScanRun()); o.add(buildScanRun()); return o; } -checkUnnamed829(core.List<api.ScanRun> o) { +checkUnnamed850(core.List<api.ScanRun> o) { unittest.expect(o, unittest.hasLength(2)); checkScanRun(o[0]); checkScanRun(o[1]); @@ -473,7 +473,7 @@ buildCounterListScanRunsResponse++; if (buildCounterListScanRunsResponse < 3) { o.nextPageToken = "foo"; - o.scanRuns = buildUnnamed829(); + o.scanRuns = buildUnnamed850(); } buildCounterListScanRunsResponse--; return o; @@ -483,19 +483,19 @@ buildCounterListScanRunsResponse++; if (buildCounterListScanRunsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed829(o.scanRuns); + checkUnnamed850(o.scanRuns); } buildCounterListScanRunsResponse--; } -buildUnnamed830() { +buildUnnamed851() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed830(core.List<core.String> o) { +checkUnnamed851(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -506,7 +506,7 @@ var o = new api.OutdatedLibrary(); buildCounterOutdatedLibrary++; if (buildCounterOutdatedLibrary < 3) { - o.learnMoreUrls = buildUnnamed830(); + o.learnMoreUrls = buildUnnamed851(); o.libraryName = "foo"; o.version = "foo"; } @@ -517,34 +517,34 @@ checkOutdatedLibrary(api.OutdatedLibrary o) { buildCounterOutdatedLibrary++; if (buildCounterOutdatedLibrary < 3) { - checkUnnamed830(o.learnMoreUrls); + checkUnnamed851(o.learnMoreUrls); unittest.expect(o.libraryName, unittest.equals('foo')); unittest.expect(o.version, unittest.equals('foo')); } buildCounterOutdatedLibrary--; } -buildUnnamed831() { +buildUnnamed852() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed831(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')); } -buildUnnamed832() { +buildUnnamed853() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed832(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')); @@ -556,7 +556,7 @@ buildCounterScanConfig++; if (buildCounterScanConfig < 3) { o.authentication = buildAuthentication(); - o.blacklistPatterns = buildUnnamed831(); + o.blacklistPatterns = buildUnnamed852(); o.displayName = "foo"; o.exportToSecurityCommandCenter = "foo"; o.managedScan = true; @@ -564,7 +564,7 @@ o.name = "foo"; o.riskLevel = "foo"; o.schedule = buildSchedule(); - o.startingUrls = buildUnnamed832(); + o.startingUrls = buildUnnamed853(); o.staticIpScan = true; o.userAgent = "foo"; } @@ -576,7 +576,7 @@ buildCounterScanConfig++; if (buildCounterScanConfig < 3) { checkAuthentication(o.authentication); - checkUnnamed831(o.blacklistPatterns); + checkUnnamed852(o.blacklistPatterns); unittest.expect(o.displayName, unittest.equals('foo')); unittest.expect(o.exportToSecurityCommandCenter, unittest.equals('foo')); unittest.expect(o.managedScan, unittest.isTrue); @@ -584,7 +584,7 @@ unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.riskLevel, unittest.equals('foo')); checkSchedule(o.schedule); - checkUnnamed832(o.startingUrls); + checkUnnamed853(o.startingUrls); unittest.expect(o.staticIpScan, unittest.isTrue); unittest.expect(o.userAgent, unittest.equals('foo')); } @@ -612,14 +612,14 @@ buildCounterScanConfigError--; } -buildUnnamed833() { +buildUnnamed854() { var o = new core.List<api.ScanRunWarningTrace>(); o.add(buildScanRunWarningTrace()); o.add(buildScanRunWarningTrace()); return o; } -checkUnnamed833(core.List<api.ScanRunWarningTrace> o) { +checkUnnamed854(core.List<api.ScanRunWarningTrace> o) { unittest.expect(o, unittest.hasLength(2)); checkScanRunWarningTrace(o[0]); checkScanRunWarningTrace(o[1]); @@ -640,7 +640,7 @@ o.startTime = "foo"; o.urlsCrawledCount = "foo"; o.urlsTestedCount = "foo"; - o.warningTraces = buildUnnamed833(); + o.warningTraces = buildUnnamed854(); } buildCounterScanRun--; return o; @@ -659,7 +659,7 @@ unittest.expect(o.startTime, unittest.equals('foo')); unittest.expect(o.urlsCrawledCount, unittest.equals('foo')); unittest.expect(o.urlsTestedCount, unittest.equals('foo')); - checkUnnamed833(o.warningTraces); + checkUnnamed854(o.warningTraces); } buildCounterScanRun--; } @@ -778,27 +778,27 @@ buildCounterViolatingResource--; } -buildUnnamed834() { +buildUnnamed855() { var o = new core.List<api.Header>(); o.add(buildHeader()); o.add(buildHeader()); return o; } -checkUnnamed834(core.List<api.Header> o) { +checkUnnamed855(core.List<api.Header> o) { unittest.expect(o, unittest.hasLength(2)); checkHeader(o[0]); checkHeader(o[1]); } -buildUnnamed835() { +buildUnnamed856() { var o = new core.List<api.Header>(); o.add(buildHeader()); o.add(buildHeader()); return o; } -checkUnnamed835(core.List<api.Header> o) { +checkUnnamed856(core.List<api.Header> o) { unittest.expect(o, unittest.hasLength(2)); checkHeader(o[0]); checkHeader(o[1]); @@ -809,8 +809,8 @@ var o = new api.VulnerableHeaders(); buildCounterVulnerableHeaders++; if (buildCounterVulnerableHeaders < 3) { - o.headers = buildUnnamed834(); - o.missingHeaders = buildUnnamed835(); + o.headers = buildUnnamed855(); + o.missingHeaders = buildUnnamed856(); } buildCounterVulnerableHeaders--; return o; @@ -819,20 +819,20 @@ checkVulnerableHeaders(api.VulnerableHeaders o) { buildCounterVulnerableHeaders++; if (buildCounterVulnerableHeaders < 3) { - checkUnnamed834(o.headers); - checkUnnamed835(o.missingHeaders); + checkUnnamed855(o.headers); + checkUnnamed856(o.missingHeaders); } buildCounterVulnerableHeaders--; } -buildUnnamed836() { +buildUnnamed857() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed836(core.List<core.String> o) { +checkUnnamed857(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -843,7 +843,7 @@ var o = new api.VulnerableParameters(); buildCounterVulnerableParameters++; if (buildCounterVulnerableParameters < 3) { - o.parameterNames = buildUnnamed836(); + o.parameterNames = buildUnnamed857(); } buildCounterVulnerableParameters--; return o; @@ -852,19 +852,19 @@ checkVulnerableParameters(api.VulnerableParameters o) { buildCounterVulnerableParameters++; if (buildCounterVulnerableParameters < 3) { - checkUnnamed836(o.parameterNames); + checkUnnamed857(o.parameterNames); } buildCounterVulnerableParameters--; } -buildUnnamed837() { +buildUnnamed858() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed837(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')); @@ -877,7 +877,7 @@ if (buildCounterXss < 3) { o.attackVector = "foo"; o.errorMessage = "foo"; - o.stackTraces = buildUnnamed837(); + o.stackTraces = buildUnnamed858(); o.storedXssSeedingUrl = "foo"; } buildCounterXss--; @@ -889,7 +889,7 @@ if (buildCounterXss < 3) { unittest.expect(o.attackVector, unittest.equals('foo')); unittest.expect(o.errorMessage, unittest.equals('foo')); - checkUnnamed837(o.stackTraces); + checkUnnamed858(o.stackTraces); unittest.expect(o.storedXssSeedingUrl, unittest.equals('foo')); } buildCounterXss--; @@ -1294,8 +1294,8 @@ api.ProjectsScanConfigsResourceApi res = new api.WebsecurityscannerApi(mock).projects.scanConfigs; var arg_parent = "foo"; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1328,10 +1328,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1342,8 +1342,8 @@ }), true); res .list(arg_parent, - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListScanConfigsResponse(response); @@ -1649,8 +1649,8 @@ .scanRuns .crawledUrls; var arg_parent = "foo"; - var arg_pageToken = "foo"; var arg_pageSize = 42; + var arg_pageToken = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1683,10 +1683,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1697,8 +1697,8 @@ }), true); res .list(arg_parent, - pageToken: arg_pageToken, pageSize: arg_pageSize, + pageToken: arg_pageToken, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListCrawledUrlsResponse(response);
diff --git a/generated/googleapis/test/youtube/v3_test.dart b/generated/googleapis/test/youtube/v3_test.dart index 44cfe8e..5068703 100644 --- a/generated/googleapis/test/youtube/v3_test.dart +++ b/generated/googleapis/test/youtube/v3_test.dart
@@ -50,14 +50,84 @@ return new http.StreamedResponse(stream, status, headers: headers); } -buildUnnamed4357() { +buildUnnamed4633() { + var o = new core.List<api.AbuseType>(); + o.add(buildAbuseType()); + o.add(buildAbuseType()); + return o; +} + +checkUnnamed4633(core.List<api.AbuseType> o) { + unittest.expect(o, unittest.hasLength(2)); + checkAbuseType(o[0]); + checkAbuseType(o[1]); +} + +buildUnnamed4634() { + var o = new core.List<api.RelatedEntity>(); + o.add(buildRelatedEntity()); + o.add(buildRelatedEntity()); + return o; +} + +checkUnnamed4634(core.List<api.RelatedEntity> o) { + unittest.expect(o, unittest.hasLength(2)); + checkRelatedEntity(o[0]); + checkRelatedEntity(o[1]); +} + +core.int buildCounterAbuseReport = 0; +buildAbuseReport() { + var o = new api.AbuseReport(); + buildCounterAbuseReport++; + if (buildCounterAbuseReport < 3) { + o.abuseTypes = buildUnnamed4633(); + o.description = "foo"; + o.relatedEntities = buildUnnamed4634(); + o.subject = buildEntity(); + } + buildCounterAbuseReport--; + return o; +} + +checkAbuseReport(api.AbuseReport o) { + buildCounterAbuseReport++; + if (buildCounterAbuseReport < 3) { + checkUnnamed4633(o.abuseTypes); + unittest.expect(o.description, unittest.equals('foo')); + checkUnnamed4634(o.relatedEntities); + checkEntity(o.subject); + } + buildCounterAbuseReport--; +} + +core.int buildCounterAbuseType = 0; +buildAbuseType() { + var o = new api.AbuseType(); + buildCounterAbuseType++; + if (buildCounterAbuseType < 3) { + o.id = "foo"; + } + buildCounterAbuseType--; + return o; +} + +checkAbuseType(api.AbuseType o) { + buildCounterAbuseType++; + if (buildCounterAbuseType < 3) { + unittest.expect(o.id, unittest.equals('foo')); + } + buildCounterAbuseType--; +} + +buildUnnamed4635() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4357(core.List<core.String> o) { +checkUnnamed4635(core.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 +139,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { o.allowed = true; - o.exception = buildUnnamed4357(); + o.exception = buildUnnamed4635(); } buildCounterAccessPolicy--; return o; @@ -79,7 +149,7 @@ buildCounterAccessPolicy++; if (buildCounterAccessPolicy < 3) { unittest.expect(o.allowed, unittest.isTrue); - checkUnnamed4357(o.exception); + checkUnnamed4635(o.exception); } buildCounterAccessPolicy--; } @@ -270,27 +340,27 @@ buildCounterActivityContentDetailsPlaylistItem--; } -buildUnnamed4358() { +buildUnnamed4636() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4358(core.List<core.String> o) { +checkUnnamed4636(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4359() { +buildUnnamed4637() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4359(core.List<core.String> o) { +checkUnnamed4637(core.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,8 +378,8 @@ o.customCtaButtonText = "foo"; o.descriptionText = "foo"; o.destinationUrl = "foo"; - o.forecastingUrl = buildUnnamed4358(); - o.impressionUrl = buildUnnamed4359(); + o.forecastingUrl = buildUnnamed4636(); + o.impressionUrl = buildUnnamed4637(); o.videoId = "foo"; } buildCounterActivityContentDetailsPromotedItem--; @@ -327,8 +397,8 @@ unittest.expect(o.customCtaButtonText, unittest.equals('foo')); unittest.expect(o.descriptionText, unittest.equals('foo')); unittest.expect(o.destinationUrl, unittest.equals('foo')); - checkUnnamed4358(o.forecastingUrl); - checkUnnamed4359(o.impressionUrl); + checkUnnamed4636(o.forecastingUrl); + checkUnnamed4637(o.impressionUrl); unittest.expect(o.videoId, unittest.equals('foo')); } buildCounterActivityContentDetailsPromotedItem--; @@ -424,14 +494,14 @@ buildCounterActivityContentDetailsUpload--; } -buildUnnamed4360() { +buildUnnamed4638() { var o = new core.List<api.Activity>(); o.add(buildActivity()); o.add(buildActivity()); return o; } -checkUnnamed4360(core.List<api.Activity> o) { +checkUnnamed4638(core.List<api.Activity> o) { unittest.expect(o, unittest.hasLength(2)); checkActivity(o[0]); checkActivity(o[1]); @@ -444,7 +514,7 @@ if (buildCounterActivityListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4360(); + o.items = buildUnnamed4638(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -461,7 +531,7 @@ if (buildCounterActivityListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4360(o.items); + checkUnnamed4638(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -481,7 +551,7 @@ o.channelTitle = "foo"; o.description = "foo"; o.groupId = "foo"; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.thumbnails = buildThumbnailDetails(); o.title = "foo"; o.type = "foo"; @@ -497,8 +567,7 @@ unittest.expect(o.channelTitle, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.groupId, unittest.equals('foo')); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); unittest.expect(o.type, unittest.equals('foo')); @@ -531,14 +600,14 @@ buildCounterCaption--; } -buildUnnamed4361() { +buildUnnamed4639() { var o = new core.List<api.Caption>(); o.add(buildCaption()); o.add(buildCaption()); return o; } -checkUnnamed4361(core.List<api.Caption> o) { +checkUnnamed4639(core.List<api.Caption> o) { unittest.expect(o, unittest.hasLength(2)); checkCaption(o[0]); checkCaption(o[1]); @@ -551,7 +620,7 @@ if (buildCounterCaptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4361(); + o.items = buildUnnamed4639(); o.kind = "foo"; o.visitorId = "foo"; } @@ -564,7 +633,7 @@ if (buildCounterCaptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4361(o.items); + checkUnnamed4639(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -584,7 +653,7 @@ o.isEasyReader = true; o.isLarge = true; o.language = "foo"; - o.lastUpdated = core.DateTime.parse("2002-02-27T14:01:02"); + o.lastUpdated = "foo"; o.name = "foo"; o.status = "foo"; o.trackKind = "foo"; @@ -605,8 +674,7 @@ unittest.expect(o.isEasyReader, unittest.isTrue); unittest.expect(o.isLarge, unittest.isTrue); unittest.expect(o.language, unittest.equals('foo')); - unittest.expect(o.lastUpdated, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.lastUpdated, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); unittest.expect(o.trackKind, unittest.equals('foo')); @@ -642,14 +710,14 @@ buildCounterCdnSettings--; } -buildUnnamed4362() { +buildUnnamed4640() { var o = new core.Map<core.String, api.ChannelLocalization>(); o["x"] = buildChannelLocalization(); o["y"] = buildChannelLocalization(); return o; } -checkUnnamed4362(core.Map<core.String, api.ChannelLocalization> o) { +checkUnnamed4640(core.Map<core.String, api.ChannelLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelLocalization(o["x"]); checkChannelLocalization(o["y"]); @@ -667,9 +735,8 @@ o.conversionPings = buildChannelConversionPings(); o.etag = "foo"; o.id = "foo"; - o.invideoPromotion = buildInvideoPromotion(); o.kind = "foo"; - o.localizations = buildUnnamed4362(); + o.localizations = buildUnnamed4640(); o.snippet = buildChannelSnippet(); o.statistics = buildChannelStatistics(); o.status = buildChannelStatus(); @@ -689,9 +756,8 @@ checkChannelConversionPings(o.conversionPings); unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); - checkInvideoPromotion(o.invideoPromotion); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4362(o.localizations); + checkUnnamed4640(o.localizations); checkChannelSnippet(o.snippet); checkChannelStatistics(o.statistics); checkChannelStatus(o.status); @@ -746,14 +812,14 @@ buildCounterChannelBannerResource--; } -buildUnnamed4363() { +buildUnnamed4641() { var o = new core.List<api.PropertyValue>(); o.add(buildPropertyValue()); o.add(buildPropertyValue()); return o; } -checkUnnamed4363(core.List<api.PropertyValue> o) { +checkUnnamed4641(core.List<api.PropertyValue> o) { unittest.expect(o, unittest.hasLength(2)); checkPropertyValue(o[0]); checkPropertyValue(o[1]); @@ -765,7 +831,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { o.channel = buildChannelSettings(); - o.hints = buildUnnamed4363(); + o.hints = buildUnnamed4641(); o.image = buildImageSettings(); o.watch = buildWatchSettings(); } @@ -777,7 +843,7 @@ buildCounterChannelBrandingSettings++; if (buildCounterChannelBrandingSettings < 3) { checkChannelSettings(o.channel); - checkUnnamed4363(o.hints); + checkUnnamed4641(o.hints); checkImageSettings(o.image); checkWatchSettings(o.watch); } @@ -837,7 +903,7 @@ buildCounterChannelContentOwnerDetails++; if (buildCounterChannelContentOwnerDetails < 3) { o.contentOwner = "foo"; - o.timeLinked = core.DateTime.parse("2002-02-27T14:01:02"); + o.timeLinked = "foo"; } buildCounterChannelContentOwnerDetails--; return o; @@ -847,8 +913,7 @@ buildCounterChannelContentOwnerDetails++; if (buildCounterChannelContentOwnerDetails < 3) { unittest.expect(o.contentOwner, unittest.equals('foo')); - unittest.expect(o.timeLinked, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.timeLinked, unittest.equals('foo')); } buildCounterChannelContentOwnerDetails--; } @@ -874,14 +939,14 @@ buildCounterChannelConversionPing--; } -buildUnnamed4364() { +buildUnnamed4642() { var o = new core.List<api.ChannelConversionPing>(); o.add(buildChannelConversionPing()); o.add(buildChannelConversionPing()); return o; } -checkUnnamed4364(core.List<api.ChannelConversionPing> o) { +checkUnnamed4642(core.List<api.ChannelConversionPing> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelConversionPing(o[0]); checkChannelConversionPing(o[1]); @@ -892,7 +957,7 @@ var o = new api.ChannelConversionPings(); buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - o.pings = buildUnnamed4364(); + o.pings = buildUnnamed4642(); } buildCounterChannelConversionPings--; return o; @@ -901,19 +966,19 @@ checkChannelConversionPings(api.ChannelConversionPings o) { buildCounterChannelConversionPings++; if (buildCounterChannelConversionPings < 3) { - checkUnnamed4364(o.pings); + checkUnnamed4642(o.pings); } buildCounterChannelConversionPings--; } -buildUnnamed4365() { +buildUnnamed4643() { var o = new core.List<api.Channel>(); o.add(buildChannel()); o.add(buildChannel()); return o; } -checkUnnamed4365(core.List<api.Channel> o) { +checkUnnamed4643(core.List<api.Channel> o) { unittest.expect(o, unittest.hasLength(2)); checkChannel(o[0]); checkChannel(o[1]); @@ -926,7 +991,7 @@ if (buildCounterChannelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4365(); + o.items = buildUnnamed4643(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -943,7 +1008,7 @@ if (buildCounterChannelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4365(o.items); + checkUnnamed4643(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1000,14 +1065,14 @@ buildCounterChannelProfileDetails--; } -buildUnnamed4366() { +buildUnnamed4644() { var o = new core.Map<core.String, api.ChannelSectionLocalization>(); o["x"] = buildChannelSectionLocalization(); o["y"] = buildChannelSectionLocalization(); return o; } -checkUnnamed4366(core.Map<core.String, api.ChannelSectionLocalization> o) { +checkUnnamed4644(core.Map<core.String, api.ChannelSectionLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSectionLocalization(o["x"]); checkChannelSectionLocalization(o["y"]); @@ -1022,7 +1087,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed4366(); + o.localizations = buildUnnamed4644(); o.snippet = buildChannelSectionSnippet(); o.targeting = buildChannelSectionTargeting(); } @@ -1037,34 +1102,34 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4366(o.localizations); + checkUnnamed4644(o.localizations); checkChannelSectionSnippet(o.snippet); checkChannelSectionTargeting(o.targeting); } buildCounterChannelSection--; } -buildUnnamed4367() { +buildUnnamed4645() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4367(core.List<core.String> o) { +checkUnnamed4645(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4368() { +buildUnnamed4646() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4368(core.List<core.String> o) { +checkUnnamed4646(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1075,8 +1140,8 @@ var o = new api.ChannelSectionContentDetails(); buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - o.channels = buildUnnamed4367(); - o.playlists = buildUnnamed4368(); + o.channels = buildUnnamed4645(); + o.playlists = buildUnnamed4646(); } buildCounterChannelSectionContentDetails--; return o; @@ -1085,20 +1150,20 @@ checkChannelSectionContentDetails(api.ChannelSectionContentDetails o) { buildCounterChannelSectionContentDetails++; if (buildCounterChannelSectionContentDetails < 3) { - checkUnnamed4367(o.channels); - checkUnnamed4368(o.playlists); + checkUnnamed4645(o.channels); + checkUnnamed4646(o.playlists); } buildCounterChannelSectionContentDetails--; } -buildUnnamed4369() { +buildUnnamed4647() { var o = new core.List<api.ChannelSection>(); o.add(buildChannelSection()); o.add(buildChannelSection()); return o; } -checkUnnamed4369(core.List<api.ChannelSection> o) { +checkUnnamed4647(core.List<api.ChannelSection> o) { unittest.expect(o, unittest.hasLength(2)); checkChannelSection(o[0]); checkChannelSection(o[1]); @@ -1111,7 +1176,7 @@ if (buildCounterChannelSectionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4369(); + o.items = buildUnnamed4647(); o.kind = "foo"; o.visitorId = "foo"; } @@ -1124,7 +1189,7 @@ if (buildCounterChannelSectionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4369(o.items); + checkUnnamed4647(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -1181,40 +1246,40 @@ buildCounterChannelSectionSnippet--; } -buildUnnamed4370() { +buildUnnamed4648() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4370(core.List<core.String> o) { +checkUnnamed4648(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4371() { +buildUnnamed4649() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4371(core.List<core.String> o) { +checkUnnamed4649(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4372() { +buildUnnamed4650() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4372(core.List<core.String> o) { +checkUnnamed4650(core.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,9 +1290,9 @@ var o = new api.ChannelSectionTargeting(); buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - o.countries = buildUnnamed4370(); - o.languages = buildUnnamed4371(); - o.regions = buildUnnamed4372(); + o.countries = buildUnnamed4648(); + o.languages = buildUnnamed4649(); + o.regions = buildUnnamed4650(); } buildCounterChannelSectionTargeting--; return o; @@ -1236,21 +1301,21 @@ checkChannelSectionTargeting(api.ChannelSectionTargeting o) { buildCounterChannelSectionTargeting++; if (buildCounterChannelSectionTargeting < 3) { - checkUnnamed4370(o.countries); - checkUnnamed4371(o.languages); - checkUnnamed4372(o.regions); + checkUnnamed4648(o.countries); + checkUnnamed4649(o.languages); + checkUnnamed4650(o.regions); } buildCounterChannelSectionTargeting--; } -buildUnnamed4373() { +buildUnnamed4651() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4373(core.List<core.String> o) { +checkUnnamed4651(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1266,7 +1331,7 @@ o.defaultTab = "foo"; o.description = "foo"; o.featuredChannelsTitle = "foo"; - o.featuredChannelsUrls = buildUnnamed4373(); + o.featuredChannelsUrls = buildUnnamed4651(); o.keywords = "foo"; o.moderateComments = true; o.profileColor = "foo"; @@ -1288,7 +1353,7 @@ unittest.expect(o.defaultTab, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.featuredChannelsTitle, unittest.equals('foo')); - checkUnnamed4373(o.featuredChannelsUrls); + checkUnnamed4651(o.featuredChannelsUrls); unittest.expect(o.keywords, unittest.equals('foo')); unittest.expect(o.moderateComments, unittest.isTrue); unittest.expect(o.profileColor, unittest.equals('foo')); @@ -1311,7 +1376,7 @@ o.defaultLanguage = "foo"; o.description = "foo"; o.localized = buildChannelLocalization(); - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -1327,8 +1392,7 @@ unittest.expect(o.defaultLanguage, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkChannelLocalization(o.localized); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -1389,27 +1453,48 @@ buildCounterChannelStatus--; } -buildUnnamed4374() { +core.int buildCounterChannelToStoreLinkDetails = 0; +buildChannelToStoreLinkDetails() { + var o = new api.ChannelToStoreLinkDetails(); + buildCounterChannelToStoreLinkDetails++; + if (buildCounterChannelToStoreLinkDetails < 3) { + o.storeName = "foo"; + o.storeUrl = "foo"; + } + buildCounterChannelToStoreLinkDetails--; + return o; +} + +checkChannelToStoreLinkDetails(api.ChannelToStoreLinkDetails o) { + buildCounterChannelToStoreLinkDetails++; + if (buildCounterChannelToStoreLinkDetails < 3) { + unittest.expect(o.storeName, unittest.equals('foo')); + unittest.expect(o.storeUrl, unittest.equals('foo')); + } + buildCounterChannelToStoreLinkDetails--; +} + +buildUnnamed4652() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4374(core.List<core.String> o) { +checkUnnamed4652(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4375() { +buildUnnamed4653() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4375(core.List<core.String> o) { +checkUnnamed4653(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1420,8 +1505,8 @@ var o = new api.ChannelTopicDetails(); buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - o.topicCategories = buildUnnamed4374(); - o.topicIds = buildUnnamed4375(); + o.topicCategories = buildUnnamed4652(); + o.topicIds = buildUnnamed4653(); } buildCounterChannelTopicDetails--; return o; @@ -1430,8 +1515,8 @@ checkChannelTopicDetails(api.ChannelTopicDetails o) { buildCounterChannelTopicDetails++; if (buildCounterChannelTopicDetails < 3) { - checkUnnamed4374(o.topicCategories); - checkUnnamed4375(o.topicIds); + checkUnnamed4652(o.topicCategories); + checkUnnamed4653(o.topicIds); } buildCounterChannelTopicDetails--; } @@ -1461,14 +1546,14 @@ buildCounterComment--; } -buildUnnamed4376() { +buildUnnamed4654() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed4376(core.List<api.Comment> o) { +checkUnnamed4654(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1481,7 +1566,7 @@ if (buildCounterCommentListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4376(); + o.items = buildUnnamed4654(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1497,7 +1582,7 @@ if (buildCounterCommentListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4376(o.items); + checkUnnamed4654(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1512,11 +1597,7 @@ var o = new api.CommentSnippet(); buildCounterCommentSnippet++; if (buildCounterCommentSnippet < 3) { - o.authorChannelId = { - 'list': [1, 2, 3], - 'bool': true, - 'string': 'foo' - }; + o.authorChannelId = buildCommentSnippetAuthorChannelId(); o.authorChannelUrl = "foo"; o.authorDisplayName = "foo"; o.authorProfileImageUrl = "foo"; @@ -1525,10 +1606,10 @@ o.likeCount = 42; o.moderationStatus = "foo"; o.parentId = "foo"; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.textDisplay = "foo"; o.textOriginal = "foo"; - o.updatedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.updatedAt = "foo"; o.videoId = "foo"; o.viewerRating = "foo"; } @@ -1539,11 +1620,7 @@ checkCommentSnippet(api.CommentSnippet o) { buildCounterCommentSnippet++; if (buildCounterCommentSnippet < 3) { - 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')); + checkCommentSnippetAuthorChannelId(o.authorChannelId); unittest.expect(o.authorChannelUrl, unittest.equals('foo')); unittest.expect(o.authorDisplayName, unittest.equals('foo')); unittest.expect(o.authorProfileImageUrl, unittest.equals('foo')); @@ -1552,18 +1629,35 @@ unittest.expect(o.likeCount, unittest.equals(42)); unittest.expect(o.moderationStatus, unittest.equals('foo')); unittest.expect(o.parentId, unittest.equals('foo')); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); unittest.expect(o.textDisplay, unittest.equals('foo')); unittest.expect(o.textOriginal, unittest.equals('foo')); - unittest.expect(o.updatedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.updatedAt, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); unittest.expect(o.viewerRating, unittest.equals('foo')); } buildCounterCommentSnippet--; } +core.int buildCounterCommentSnippetAuthorChannelId = 0; +buildCommentSnippetAuthorChannelId() { + var o = new api.CommentSnippetAuthorChannelId(); + buildCounterCommentSnippetAuthorChannelId++; + if (buildCounterCommentSnippetAuthorChannelId < 3) { + o.value = "foo"; + } + buildCounterCommentSnippetAuthorChannelId--; + return o; +} + +checkCommentSnippetAuthorChannelId(api.CommentSnippetAuthorChannelId o) { + buildCounterCommentSnippetAuthorChannelId++; + if (buildCounterCommentSnippetAuthorChannelId < 3) { + unittest.expect(o.value, unittest.equals('foo')); + } + buildCounterCommentSnippetAuthorChannelId--; +} + core.int buildCounterCommentThread = 0; buildCommentThread() { var o = new api.CommentThread(); @@ -1591,14 +1685,14 @@ buildCounterCommentThread--; } -buildUnnamed4377() { +buildUnnamed4655() { var o = new core.List<api.CommentThread>(); o.add(buildCommentThread()); o.add(buildCommentThread()); return o; } -checkUnnamed4377(core.List<api.CommentThread> o) { +checkUnnamed4655(core.List<api.CommentThread> o) { unittest.expect(o, unittest.hasLength(2)); checkCommentThread(o[0]); checkCommentThread(o[1]); @@ -1611,7 +1705,7 @@ if (buildCounterCommentThreadListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4377(); + o.items = buildUnnamed4655(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -1627,7 +1721,7 @@ if (buildCounterCommentThreadListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4377(o.items); + checkUnnamed4655(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -1637,14 +1731,14 @@ buildCounterCommentThreadListResponse--; } -buildUnnamed4378() { +buildUnnamed4656() { var o = new core.List<api.Comment>(); o.add(buildComment()); o.add(buildComment()); return o; } -checkUnnamed4378(core.List<api.Comment> o) { +checkUnnamed4656(core.List<api.Comment> o) { unittest.expect(o, unittest.hasLength(2)); checkComment(o[0]); checkComment(o[1]); @@ -1655,7 +1749,7 @@ var o = new api.CommentThreadReplies(); buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - o.comments = buildUnnamed4378(); + o.comments = buildUnnamed4656(); } buildCounterCommentThreadReplies--; return o; @@ -1664,7 +1758,7 @@ checkCommentThreadReplies(api.CommentThreadReplies o) { buildCounterCommentThreadReplies++; if (buildCounterCommentThreadReplies < 3) { - checkUnnamed4378(o.comments); + checkUnnamed4656(o.comments); } buildCounterCommentThreadReplies--; } @@ -1698,27 +1792,27 @@ buildCounterCommentThreadSnippet--; } -buildUnnamed4379() { +buildUnnamed4657() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4379(core.List<core.String> o) { +checkUnnamed4657(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4380() { +buildUnnamed4658() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4380(core.List<core.String> o) { +checkUnnamed4658(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -1749,7 +1843,7 @@ o.cscfRating = "foo"; o.czfilmRating = "foo"; o.djctqRating = "foo"; - o.djctqRatingReasons = buildUnnamed4379(); + o.djctqRatingReasons = buildUnnamed4657(); o.ecbmctRating = "foo"; o.eefilmRating = "foo"; o.egfilmRating = "foo"; @@ -1758,7 +1852,7 @@ o.fcoRating = "foo"; o.fmocRating = "foo"; o.fpbRating = "foo"; - o.fpbRatingReasons = buildUnnamed4380(); + o.fpbRatingReasons = buildUnnamed4658(); o.fskRating = "foo"; o.grfilmRating = "foo"; o.icaaRating = "foo"; @@ -1828,7 +1922,7 @@ unittest.expect(o.cscfRating, unittest.equals('foo')); unittest.expect(o.czfilmRating, unittest.equals('foo')); unittest.expect(o.djctqRating, unittest.equals('foo')); - checkUnnamed4379(o.djctqRatingReasons); + checkUnnamed4657(o.djctqRatingReasons); unittest.expect(o.ecbmctRating, unittest.equals('foo')); unittest.expect(o.eefilmRating, unittest.equals('foo')); unittest.expect(o.egfilmRating, unittest.equals('foo')); @@ -1837,7 +1931,7 @@ unittest.expect(o.fcoRating, unittest.equals('foo')); unittest.expect(o.fmocRating, unittest.equals('foo')); unittest.expect(o.fpbRating, unittest.equals('foo')); - checkUnnamed4380(o.fpbRatingReasons); + checkUnnamed4658(o.fpbRatingReasons); unittest.expect(o.fskRating, unittest.equals('foo')); unittest.expect(o.grfilmRating, unittest.equals('foo')); unittest.expect(o.icaaRating, unittest.equals('foo')); @@ -1883,6 +1977,29 @@ buildCounterContentRating--; } +core.int buildCounterEntity = 0; +buildEntity() { + var o = new api.Entity(); + buildCounterEntity++; + if (buildCounterEntity < 3) { + o.id = "foo"; + o.typeId = "foo"; + o.url = "foo"; + } + buildCounterEntity--; + return o; +} + +checkEntity(api.Entity o) { + buildCounterEntity++; + if (buildCounterEntity < 3) { + unittest.expect(o.id, unittest.equals('foo')); + unittest.expect(o.typeId, unittest.equals('foo')); + unittest.expect(o.url, unittest.equals('foo')); + } + buildCounterEntity--; +} + core.int buildCounterGeoPoint = 0; buildGeoPoint() { var o = new api.GeoPoint(); @@ -1906,100 +2023,6 @@ buildCounterGeoPoint--; } -core.int buildCounterGuideCategory = 0; -buildGuideCategory() { - var o = new api.GuideCategory(); - buildCounterGuideCategory++; - if (buildCounterGuideCategory < 3) { - o.etag = "foo"; - o.id = "foo"; - o.kind = "foo"; - o.snippet = buildGuideCategorySnippet(); - } - buildCounterGuideCategory--; - return o; -} - -checkGuideCategory(api.GuideCategory o) { - buildCounterGuideCategory++; - if (buildCounterGuideCategory < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.id, unittest.equals('foo')); - unittest.expect(o.kind, unittest.equals('foo')); - checkGuideCategorySnippet(o.snippet); - } - buildCounterGuideCategory--; -} - -buildUnnamed4381() { - var o = new core.List<api.GuideCategory>(); - o.add(buildGuideCategory()); - o.add(buildGuideCategory()); - return o; -} - -checkUnnamed4381(core.List<api.GuideCategory> o) { - unittest.expect(o, unittest.hasLength(2)); - checkGuideCategory(o[0]); - checkGuideCategory(o[1]); -} - -core.int buildCounterGuideCategoryListResponse = 0; -buildGuideCategoryListResponse() { - var o = new api.GuideCategoryListResponse(); - buildCounterGuideCategoryListResponse++; - if (buildCounterGuideCategoryListResponse < 3) { - o.etag = "foo"; - o.eventId = "foo"; - o.items = buildUnnamed4381(); - o.kind = "foo"; - o.nextPageToken = "foo"; - o.pageInfo = buildPageInfo(); - o.prevPageToken = "foo"; - o.tokenPagination = buildTokenPagination(); - o.visitorId = "foo"; - } - buildCounterGuideCategoryListResponse--; - return o; -} - -checkGuideCategoryListResponse(api.GuideCategoryListResponse o) { - buildCounterGuideCategoryListResponse++; - if (buildCounterGuideCategoryListResponse < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4381(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkPageInfo(o.pageInfo); - unittest.expect(o.prevPageToken, unittest.equals('foo')); - checkTokenPagination(o.tokenPagination); - unittest.expect(o.visitorId, unittest.equals('foo')); - } - buildCounterGuideCategoryListResponse--; -} - -core.int buildCounterGuideCategorySnippet = 0; -buildGuideCategorySnippet() { - var o = new api.GuideCategorySnippet(); - buildCounterGuideCategorySnippet++; - if (buildCounterGuideCategorySnippet < 3) { - o.channelId = "foo"; - o.title = "foo"; - } - buildCounterGuideCategorySnippet--; - return o; -} - -checkGuideCategorySnippet(api.GuideCategorySnippet o) { - buildCounterGuideCategorySnippet++; - if (buildCounterGuideCategorySnippet < 3) { - unittest.expect(o.channelId, unittest.equals('foo')); - unittest.expect(o.title, unittest.equals('foo')); - } - buildCounterGuideCategorySnippet--; -} - core.int buildCounterI18nLanguage = 0; buildI18nLanguage() { var o = new api.I18nLanguage(); @@ -2025,14 +2048,14 @@ buildCounterI18nLanguage--; } -buildUnnamed4382() { +buildUnnamed4659() { var o = new core.List<api.I18nLanguage>(); o.add(buildI18nLanguage()); o.add(buildI18nLanguage()); return o; } -checkUnnamed4382(core.List<api.I18nLanguage> o) { +checkUnnamed4659(core.List<api.I18nLanguage> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nLanguage(o[0]); checkI18nLanguage(o[1]); @@ -2045,7 +2068,7 @@ if (buildCounterI18nLanguageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4382(); + o.items = buildUnnamed4659(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2058,7 +2081,7 @@ if (buildCounterI18nLanguageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4382(o.items); + checkUnnamed4659(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2111,14 +2134,14 @@ buildCounterI18nRegion--; } -buildUnnamed4383() { +buildUnnamed4660() { var o = new core.List<api.I18nRegion>(); o.add(buildI18nRegion()); o.add(buildI18nRegion()); return o; } -checkUnnamed4383(core.List<api.I18nRegion> o) { +checkUnnamed4660(core.List<api.I18nRegion> o) { unittest.expect(o, unittest.hasLength(2)); checkI18nRegion(o[0]); checkI18nRegion(o[1]); @@ -2131,7 +2154,7 @@ if (buildCounterI18nRegionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4383(); + o.items = buildUnnamed4660(); o.kind = "foo"; o.visitorId = "foo"; } @@ -2144,7 +2167,7 @@ if (buildCounterI18nRegionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4383(o.items); + checkUnnamed4660(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -2240,6 +2263,8 @@ if (buildCounterIngestionInfo < 3) { o.backupIngestionAddress = "foo"; o.ingestionAddress = "foo"; + o.rtmpsBackupIngestionAddress = "foo"; + o.rtmpsIngestionAddress = "foo"; o.streamName = "foo"; } buildCounterIngestionInfo--; @@ -2251,6 +2276,8 @@ if (buildCounterIngestionInfo < 3) { unittest.expect(o.backupIngestionAddress, unittest.equals('foo')); unittest.expect(o.ingestionAddress, unittest.equals('foo')); + unittest.expect(o.rtmpsBackupIngestionAddress, unittest.equals('foo')); + unittest.expect(o.rtmpsIngestionAddress, unittest.equals('foo')); unittest.expect(o.streamName, unittest.equals('foo')); } buildCounterIngestionInfo--; @@ -2304,44 +2331,6 @@ buildCounterInvideoPosition--; } -buildUnnamed4384() { - var o = new core.List<api.PromotedItem>(); - o.add(buildPromotedItem()); - o.add(buildPromotedItem()); - return o; -} - -checkUnnamed4384(core.List<api.PromotedItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkPromotedItem(o[0]); - checkPromotedItem(o[1]); -} - -core.int buildCounterInvideoPromotion = 0; -buildInvideoPromotion() { - var o = new api.InvideoPromotion(); - buildCounterInvideoPromotion++; - if (buildCounterInvideoPromotion < 3) { - o.defaultTiming = buildInvideoTiming(); - o.items = buildUnnamed4384(); - o.position = buildInvideoPosition(); - o.useSmartTiming = true; - } - buildCounterInvideoPromotion--; - return o; -} - -checkInvideoPromotion(api.InvideoPromotion o) { - buildCounterInvideoPromotion++; - if (buildCounterInvideoPromotion < 3) { - checkInvideoTiming(o.defaultTiming); - checkUnnamed4384(o.items); - checkInvideoPosition(o.position); - unittest.expect(o.useSmartTiming, unittest.isTrue); - } - buildCounterInvideoPromotion--; -} - core.int buildCounterInvideoTiming = 0; buildInvideoTiming() { var o = new api.InvideoTiming(); @@ -2440,7 +2429,7 @@ buildCounterLiveBroadcastContentDetails++; if (buildCounterLiveBroadcastContentDetails < 3) { o.boundStreamId = "foo"; - o.boundStreamLastUpdateTimeMs = core.DateTime.parse("2002-02-27T14:01:02"); + o.boundStreamLastUpdateTimeMs = "foo"; o.closedCaptionsType = "foo"; o.enableAutoStart = true; o.enableAutoStop = true; @@ -2455,7 +2444,6 @@ o.projection = "foo"; o.recordFromStart = true; o.startWithSlate = true; - o.stereoLayout = "foo"; } buildCounterLiveBroadcastContentDetails--; return o; @@ -2465,8 +2453,7 @@ buildCounterLiveBroadcastContentDetails++; if (buildCounterLiveBroadcastContentDetails < 3) { unittest.expect(o.boundStreamId, unittest.equals('foo')); - unittest.expect(o.boundStreamLastUpdateTimeMs, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.boundStreamLastUpdateTimeMs, unittest.equals('foo')); unittest.expect(o.closedCaptionsType, unittest.equals('foo')); unittest.expect(o.enableAutoStart, unittest.isTrue); unittest.expect(o.enableAutoStop, unittest.isTrue); @@ -2481,19 +2468,18 @@ unittest.expect(o.projection, unittest.equals('foo')); unittest.expect(o.recordFromStart, unittest.isTrue); unittest.expect(o.startWithSlate, unittest.isTrue); - unittest.expect(o.stereoLayout, unittest.equals('foo')); } buildCounterLiveBroadcastContentDetails--; } -buildUnnamed4385() { +buildUnnamed4661() { var o = new core.List<api.LiveBroadcast>(); o.add(buildLiveBroadcast()); o.add(buildLiveBroadcast()); return o; } -checkUnnamed4385(core.List<api.LiveBroadcast> o) { +checkUnnamed4661(core.List<api.LiveBroadcast> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveBroadcast(o[0]); checkLiveBroadcast(o[1]); @@ -2506,7 +2492,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4385(); + o.items = buildUnnamed4661(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2523,7 +2509,7 @@ if (buildCounterLiveBroadcastListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4385(o.items); + checkUnnamed4661(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -2539,16 +2525,15 @@ var o = new api.LiveBroadcastSnippet(); buildCounterLiveBroadcastSnippet++; if (buildCounterLiveBroadcastSnippet < 3) { - o.actualEndTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.actualStartTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.broadcastType = "foo"; + o.actualEndTime = "foo"; + o.actualStartTime = "foo"; o.channelId = "foo"; o.description = "foo"; o.isDefaultBroadcast = true; o.liveChatId = "foo"; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.scheduledEndTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.scheduledStartTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; + o.scheduledEndTime = "foo"; + o.scheduledStartTime = "foo"; o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -2559,21 +2544,15 @@ checkLiveBroadcastSnippet(api.LiveBroadcastSnippet o) { buildCounterLiveBroadcastSnippet++; if (buildCounterLiveBroadcastSnippet < 3) { - unittest.expect(o.actualEndTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.actualStartTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.broadcastType, unittest.equals('foo')); + unittest.expect(o.actualEndTime, unittest.equals('foo')); + unittest.expect(o.actualStartTime, unittest.equals('foo')); unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isDefaultBroadcast, unittest.isTrue); unittest.expect(o.liveChatId, unittest.equals('foo')); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.scheduledEndTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.scheduledStartTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); + unittest.expect(o.scheduledEndTime, unittest.equals('foo')); + unittest.expect(o.scheduledStartTime, unittest.equals('foo')); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -2585,7 +2564,6 @@ var o = new api.LiveBroadcastStatistics(); buildCounterLiveBroadcastStatistics++; if (buildCounterLiveBroadcastStatistics < 3) { - o.concurrentViewers = "foo"; o.totalChatCount = "foo"; } buildCounterLiveBroadcastStatistics--; @@ -2595,7 +2573,6 @@ checkLiveBroadcastStatistics(api.LiveBroadcastStatistics o) { buildCounterLiveBroadcastStatistics++; if (buildCounterLiveBroadcastStatistics < 3) { - unittest.expect(o.concurrentViewers, unittest.equals('foo')); unittest.expect(o.totalChatCount, unittest.equals('foo')); } buildCounterLiveBroadcastStatistics--; @@ -2784,14 +2761,14 @@ buildCounterLiveChatMessageDeletedDetails--; } -buildUnnamed4386() { +buildUnnamed4662() { var o = new core.List<api.LiveChatMessage>(); o.add(buildLiveChatMessage()); o.add(buildLiveChatMessage()); return o; } -checkUnnamed4386(core.List<api.LiveChatMessage> o) { +checkUnnamed4662(core.List<api.LiveChatMessage> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatMessage(o[0]); checkLiveChatMessage(o[1]); @@ -2804,10 +2781,10 @@ if (buildCounterLiveChatMessageListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4386(); + o.items = buildUnnamed4662(); o.kind = "foo"; o.nextPageToken = "foo"; - o.offlineAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.offlineAt = "foo"; o.pageInfo = buildPageInfo(); o.pollingIntervalMillis = 42; o.tokenPagination = buildTokenPagination(); @@ -2822,11 +2799,10 @@ if (buildCounterLiveChatMessageListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4386(o.items); + checkUnnamed4662(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"))); + unittest.expect(o.offlineAt, unittest.equals('foo')); checkPageInfo(o.pageInfo); unittest.expect(o.pollingIntervalMillis, unittest.equals(42)); checkTokenPagination(o.tokenPagination); @@ -2866,11 +2842,7 @@ o.liveChatId = "foo"; o.messageDeletedDetails = buildLiveChatMessageDeletedDetails(); o.messageRetractedDetails = buildLiveChatMessageRetractedDetails(); - o.pollClosedDetails = buildLiveChatPollClosedDetails(); - o.pollEditedDetails = buildLiveChatPollEditedDetails(); - o.pollOpenedDetails = buildLiveChatPollOpenedDetails(); - o.pollVotedDetails = buildLiveChatPollVotedDetails(); - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.superChatDetails = buildLiveChatSuperChatDetails(); o.superStickerDetails = buildLiveChatSuperStickerDetails(); o.textMessageDetails = buildLiveChatTextMessageDetails(); @@ -2891,12 +2863,7 @@ unittest.expect(o.liveChatId, unittest.equals('foo')); checkLiveChatMessageDeletedDetails(o.messageDeletedDetails); checkLiveChatMessageRetractedDetails(o.messageRetractedDetails); - checkLiveChatPollClosedDetails(o.pollClosedDetails); - checkLiveChatPollEditedDetails(o.pollEditedDetails); - checkLiveChatPollOpenedDetails(o.pollOpenedDetails); - checkLiveChatPollVotedDetails(o.pollVotedDetails); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkLiveChatSuperChatDetails(o.superChatDetails); checkLiveChatSuperStickerDetails(o.superStickerDetails); checkLiveChatTextMessageDetails(o.textMessageDetails); @@ -2931,14 +2898,14 @@ buildCounterLiveChatModerator--; } -buildUnnamed4387() { +buildUnnamed4663() { var o = new core.List<api.LiveChatModerator>(); o.add(buildLiveChatModerator()); o.add(buildLiveChatModerator()); return o; } -checkUnnamed4387(core.List<api.LiveChatModerator> o) { +checkUnnamed4663(core.List<api.LiveChatModerator> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveChatModerator(o[0]); checkLiveChatModerator(o[1]); @@ -2951,7 +2918,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4387(); + o.items = buildUnnamed4663(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -2968,7 +2935,7 @@ if (buildCounterLiveChatModeratorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4387(o.items); + checkUnnamed4663(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3000,139 +2967,6 @@ buildCounterLiveChatModeratorSnippet--; } -core.int buildCounterLiveChatPollClosedDetails = 0; -buildLiveChatPollClosedDetails() { - var o = new api.LiveChatPollClosedDetails(); - buildCounterLiveChatPollClosedDetails++; - if (buildCounterLiveChatPollClosedDetails < 3) { - o.pollId = "foo"; - } - buildCounterLiveChatPollClosedDetails--; - return o; -} - -checkLiveChatPollClosedDetails(api.LiveChatPollClosedDetails o) { - buildCounterLiveChatPollClosedDetails++; - if (buildCounterLiveChatPollClosedDetails < 3) { - unittest.expect(o.pollId, unittest.equals('foo')); - } - buildCounterLiveChatPollClosedDetails--; -} - -buildUnnamed4388() { - var o = new core.List<api.LiveChatPollItem>(); - o.add(buildLiveChatPollItem()); - o.add(buildLiveChatPollItem()); - return o; -} - -checkUnnamed4388(core.List<api.LiveChatPollItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLiveChatPollItem(o[0]); - checkLiveChatPollItem(o[1]); -} - -core.int buildCounterLiveChatPollEditedDetails = 0; -buildLiveChatPollEditedDetails() { - var o = new api.LiveChatPollEditedDetails(); - buildCounterLiveChatPollEditedDetails++; - if (buildCounterLiveChatPollEditedDetails < 3) { - o.id = "foo"; - o.items = buildUnnamed4388(); - o.prompt = "foo"; - } - buildCounterLiveChatPollEditedDetails--; - return o; -} - -checkLiveChatPollEditedDetails(api.LiveChatPollEditedDetails o) { - buildCounterLiveChatPollEditedDetails++; - if (buildCounterLiveChatPollEditedDetails < 3) { - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4388(o.items); - unittest.expect(o.prompt, unittest.equals('foo')); - } - buildCounterLiveChatPollEditedDetails--; -} - -core.int buildCounterLiveChatPollItem = 0; -buildLiveChatPollItem() { - var o = new api.LiveChatPollItem(); - buildCounterLiveChatPollItem++; - if (buildCounterLiveChatPollItem < 3) { - o.description = "foo"; - o.itemId = "foo"; - } - buildCounterLiveChatPollItem--; - return o; -} - -checkLiveChatPollItem(api.LiveChatPollItem o) { - buildCounterLiveChatPollItem++; - if (buildCounterLiveChatPollItem < 3) { - unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.itemId, unittest.equals('foo')); - } - buildCounterLiveChatPollItem--; -} - -buildUnnamed4389() { - var o = new core.List<api.LiveChatPollItem>(); - o.add(buildLiveChatPollItem()); - o.add(buildLiveChatPollItem()); - return o; -} - -checkUnnamed4389(core.List<api.LiveChatPollItem> o) { - unittest.expect(o, unittest.hasLength(2)); - checkLiveChatPollItem(o[0]); - checkLiveChatPollItem(o[1]); -} - -core.int buildCounterLiveChatPollOpenedDetails = 0; -buildLiveChatPollOpenedDetails() { - var o = new api.LiveChatPollOpenedDetails(); - buildCounterLiveChatPollOpenedDetails++; - if (buildCounterLiveChatPollOpenedDetails < 3) { - o.id = "foo"; - o.items = buildUnnamed4389(); - o.prompt = "foo"; - } - buildCounterLiveChatPollOpenedDetails--; - return o; -} - -checkLiveChatPollOpenedDetails(api.LiveChatPollOpenedDetails o) { - buildCounterLiveChatPollOpenedDetails++; - if (buildCounterLiveChatPollOpenedDetails < 3) { - unittest.expect(o.id, unittest.equals('foo')); - checkUnnamed4389(o.items); - unittest.expect(o.prompt, unittest.equals('foo')); - } - buildCounterLiveChatPollOpenedDetails--; -} - -core.int buildCounterLiveChatPollVotedDetails = 0; -buildLiveChatPollVotedDetails() { - var o = new api.LiveChatPollVotedDetails(); - buildCounterLiveChatPollVotedDetails++; - if (buildCounterLiveChatPollVotedDetails < 3) { - o.itemId = "foo"; - o.pollId = "foo"; - } - buildCounterLiveChatPollVotedDetails--; - return o; -} - -checkLiveChatPollVotedDetails(api.LiveChatPollVotedDetails o) { - buildCounterLiveChatPollVotedDetails++; - if (buildCounterLiveChatPollVotedDetails < 3) { - unittest.expect(o.itemId, unittest.equals('foo')); - unittest.expect(o.pollId, unittest.equals('foo')); - } - buildCounterLiveChatPollVotedDetails--; -} - core.int buildCounterLiveChatSuperChatDetails = 0; buildLiveChatSuperChatDetails() { var o = new api.LiveChatSuperChatDetails(); @@ -3306,14 +3140,14 @@ buildCounterLiveStreamContentDetails--; } -buildUnnamed4390() { +buildUnnamed4664() { var o = new core.List<api.LiveStreamConfigurationIssue>(); o.add(buildLiveStreamConfigurationIssue()); o.add(buildLiveStreamConfigurationIssue()); return o; } -checkUnnamed4390(core.List<api.LiveStreamConfigurationIssue> o) { +checkUnnamed4664(core.List<api.LiveStreamConfigurationIssue> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStreamConfigurationIssue(o[0]); checkLiveStreamConfigurationIssue(o[1]); @@ -3324,7 +3158,7 @@ var o = new api.LiveStreamHealthStatus(); buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - o.configurationIssues = buildUnnamed4390(); + o.configurationIssues = buildUnnamed4664(); o.lastUpdateTimeSeconds = "foo"; o.status = "foo"; } @@ -3335,21 +3169,21 @@ checkLiveStreamHealthStatus(api.LiveStreamHealthStatus o) { buildCounterLiveStreamHealthStatus++; if (buildCounterLiveStreamHealthStatus < 3) { - checkUnnamed4390(o.configurationIssues); + checkUnnamed4664(o.configurationIssues); unittest.expect(o.lastUpdateTimeSeconds, unittest.equals('foo')); unittest.expect(o.status, unittest.equals('foo')); } buildCounterLiveStreamHealthStatus--; } -buildUnnamed4391() { +buildUnnamed4665() { var o = new core.List<api.LiveStream>(); o.add(buildLiveStream()); o.add(buildLiveStream()); return o; } -checkUnnamed4391(core.List<api.LiveStream> o) { +checkUnnamed4665(core.List<api.LiveStream> o) { unittest.expect(o, unittest.hasLength(2)); checkLiveStream(o[0]); checkLiveStream(o[1]); @@ -3362,7 +3196,7 @@ if (buildCounterLiveStreamListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4391(); + o.items = buildUnnamed4665(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3379,7 +3213,7 @@ if (buildCounterLiveStreamListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4391(o.items); + checkUnnamed4665(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3398,7 +3232,7 @@ o.channelId = "foo"; o.description = "foo"; o.isDefaultStream = true; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.title = "foo"; } buildCounterLiveStreamSnippet--; @@ -3411,8 +3245,7 @@ unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.isDefaultStream, unittest.isTrue); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); unittest.expect(o.title, unittest.equals('foo')); } buildCounterLiveStreamSnippet--; @@ -3439,14 +3272,14 @@ buildCounterLiveStreamStatus--; } -buildUnnamed4392() { +buildUnnamed4666() { var o = new core.List<api.LocalizedString>(); o.add(buildLocalizedString()); o.add(buildLocalizedString()); return o; } -checkUnnamed4392(core.List<api.LocalizedString> o) { +checkUnnamed4666(core.List<api.LocalizedString> o) { unittest.expect(o, unittest.hasLength(2)); checkLocalizedString(o[0]); checkLocalizedString(o[1]); @@ -3459,7 +3292,7 @@ if (buildCounterLocalizedProperty < 3) { o.default_ = "foo"; o.defaultLanguage = buildLanguageTag(); - o.localized = buildUnnamed4392(); + o.localized = buildUnnamed4666(); } buildCounterLocalizedProperty--; return o; @@ -3470,7 +3303,7 @@ if (buildCounterLocalizedProperty < 3) { unittest.expect(o.default_, unittest.equals('foo')); checkLanguageTag(o.defaultLanguage); - checkUnnamed4392(o.localized); + checkUnnamed4666(o.localized); } buildCounterLocalizedProperty--; } @@ -3519,14 +3352,14 @@ buildCounterMember--; } -buildUnnamed4393() { +buildUnnamed4667() { var o = new core.List<api.Member>(); o.add(buildMember()); o.add(buildMember()); return o; } -checkUnnamed4393(core.List<api.Member> o) { +checkUnnamed4667(core.List<api.Member> o) { unittest.expect(o, unittest.hasLength(2)); checkMember(o[0]); checkMember(o[1]); @@ -3539,7 +3372,7 @@ if (buildCounterMemberListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4393(); + o.items = buildUnnamed4667(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -3555,7 +3388,7 @@ if (buildCounterMemberListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4393(o.items); + checkUnnamed4667(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -3588,27 +3421,27 @@ buildCounterMemberSnippet--; } -buildUnnamed4394() { +buildUnnamed4668() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4394(core.List<core.String> o) { +checkUnnamed4668(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4395() { +buildUnnamed4669() { var o = new core.List<api.MembershipsDurationAtLevel>(); o.add(buildMembershipsDurationAtLevel()); o.add(buildMembershipsDurationAtLevel()); return o; } -checkUnnamed4395(core.List<api.MembershipsDurationAtLevel> o) { +checkUnnamed4669(core.List<api.MembershipsDurationAtLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipsDurationAtLevel(o[0]); checkMembershipsDurationAtLevel(o[1]); @@ -3619,11 +3452,11 @@ var o = new api.MembershipsDetails(); buildCounterMembershipsDetails++; if (buildCounterMembershipsDetails < 3) { - o.accessibleLevels = buildUnnamed4394(); + o.accessibleLevels = buildUnnamed4668(); o.highestAccessibleLevel = "foo"; o.highestAccessibleLevelDisplayName = "foo"; o.membershipsDuration = buildMembershipsDuration(); - o.membershipsDurationAtLevels = buildUnnamed4395(); + o.membershipsDurationAtLevels = buildUnnamed4669(); } buildCounterMembershipsDetails--; return o; @@ -3632,12 +3465,12 @@ checkMembershipsDetails(api.MembershipsDetails o) { buildCounterMembershipsDetails++; if (buildCounterMembershipsDetails < 3) { - checkUnnamed4394(o.accessibleLevels); + checkUnnamed4668(o.accessibleLevels); unittest.expect(o.highestAccessibleLevel, unittest.equals('foo')); unittest.expect( o.highestAccessibleLevelDisplayName, unittest.equals('foo')); checkMembershipsDuration(o.membershipsDuration); - checkUnnamed4395(o.membershipsDurationAtLevels); + checkUnnamed4669(o.membershipsDurationAtLevels); } buildCounterMembershipsDetails--; } @@ -3711,14 +3544,14 @@ buildCounterMembershipsLevel--; } -buildUnnamed4396() { +buildUnnamed4670() { var o = new core.List<api.MembershipsLevel>(); o.add(buildMembershipsLevel()); o.add(buildMembershipsLevel()); return o; } -checkUnnamed4396(core.List<api.MembershipsLevel> o) { +checkUnnamed4670(core.List<api.MembershipsLevel> o) { unittest.expect(o, unittest.hasLength(2)); checkMembershipsLevel(o[0]); checkMembershipsLevel(o[1]); @@ -3731,7 +3564,7 @@ if (buildCounterMembershipsLevelListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4396(); + o.items = buildUnnamed4670(); o.kind = "foo"; o.visitorId = "foo"; } @@ -3744,7 +3577,7 @@ if (buildCounterMembershipsLevelListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4396(o.items); + checkUnnamed4670(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -3795,46 +3628,6 @@ buildCounterMonitorStreamInfo--; } -core.int buildCounterNonprofit = 0; -buildNonprofit() { - var o = new api.Nonprofit(); - buildCounterNonprofit++; - if (buildCounterNonprofit < 3) { - o.nonprofitId = buildNonprofitId(); - o.nonprofitLegalName = "foo"; - } - buildCounterNonprofit--; - return o; -} - -checkNonprofit(api.Nonprofit o) { - buildCounterNonprofit++; - if (buildCounterNonprofit < 3) { - checkNonprofitId(o.nonprofitId); - unittest.expect(o.nonprofitLegalName, unittest.equals('foo')); - } - buildCounterNonprofit--; -} - -core.int buildCounterNonprofitId = 0; -buildNonprofitId() { - var o = new api.NonprofitId(); - buildCounterNonprofitId++; - if (buildCounterNonprofitId < 3) { - o.value = "foo"; - } - buildCounterNonprofitId--; - return o; -} - -checkNonprofitId(api.NonprofitId o) { - buildCounterNonprofitId++; - if (buildCounterNonprofitId < 3) { - unittest.expect(o.value, unittest.equals('foo')); - } - buildCounterNonprofitId--; -} - core.int buildCounterPageInfo = 0; buildPageInfo() { var o = new api.PageInfo(); @@ -3856,14 +3649,14 @@ buildCounterPageInfo--; } -buildUnnamed4397() { +buildUnnamed4671() { var o = new core.Map<core.String, api.PlaylistLocalization>(); o["x"] = buildPlaylistLocalization(); o["y"] = buildPlaylistLocalization(); return o; } -checkUnnamed4397(core.Map<core.String, api.PlaylistLocalization> o) { +checkUnnamed4671(core.Map<core.String, api.PlaylistLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistLocalization(o["x"]); checkPlaylistLocalization(o["y"]); @@ -3878,7 +3671,7 @@ o.etag = "foo"; o.id = "foo"; o.kind = "foo"; - o.localizations = buildUnnamed4397(); + o.localizations = buildUnnamed4671(); o.player = buildPlaylistPlayer(); o.snippet = buildPlaylistSnippet(); o.status = buildPlaylistStatus(); @@ -3894,7 +3687,7 @@ unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed4397(o.localizations); + checkUnnamed4671(o.localizations); checkPlaylistPlayer(o.player); checkPlaylistSnippet(o.snippet); checkPlaylistStatus(o.status); @@ -3959,7 +3752,7 @@ o.note = "foo"; o.startAt = "foo"; o.videoId = "foo"; - o.videoPublishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.videoPublishedAt = "foo"; } buildCounterPlaylistItemContentDetails--; return o; @@ -3972,20 +3765,19 @@ unittest.expect(o.note, unittest.equals('foo')); unittest.expect(o.startAt, unittest.equals('foo')); unittest.expect(o.videoId, unittest.equals('foo')); - unittest.expect(o.videoPublishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.videoPublishedAt, unittest.equals('foo')); } buildCounterPlaylistItemContentDetails--; } -buildUnnamed4398() { +buildUnnamed4672() { var o = new core.List<api.PlaylistItem>(); o.add(buildPlaylistItem()); o.add(buildPlaylistItem()); return o; } -checkUnnamed4398(core.List<api.PlaylistItem> o) { +checkUnnamed4672(core.List<api.PlaylistItem> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylistItem(o[0]); checkPlaylistItem(o[1]); @@ -3998,7 +3790,7 @@ if (buildCounterPlaylistItemListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4398(); + o.items = buildUnnamed4672(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4015,7 +3807,7 @@ if (buildCounterPlaylistItemListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4398(o.items); + checkUnnamed4672(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4036,7 +3828,7 @@ o.description = "foo"; o.playlistId = "foo"; o.position = 42; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.resourceId = buildResourceId(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; @@ -4053,8 +3845,7 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.playlistId, unittest.equals('foo')); unittest.expect(o.position, unittest.equals(42)); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkResourceId(o.resourceId); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); @@ -4081,14 +3872,14 @@ buildCounterPlaylistItemStatus--; } -buildUnnamed4399() { +buildUnnamed4673() { var o = new core.List<api.Playlist>(); o.add(buildPlaylist()); o.add(buildPlaylist()); return o; } -checkUnnamed4399(core.List<api.Playlist> o) { +checkUnnamed4673(core.List<api.Playlist> o) { unittest.expect(o, unittest.hasLength(2)); checkPlaylist(o[0]); checkPlaylist(o[1]); @@ -4101,7 +3892,7 @@ if (buildCounterPlaylistListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4399(); + o.items = buildUnnamed4673(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4118,7 +3909,7 @@ if (buildCounterPlaylistListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4399(o.items); + checkUnnamed4673(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4169,14 +3960,14 @@ buildCounterPlaylistPlayer--; } -buildUnnamed4400() { +buildUnnamed4674() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4400(core.List<core.String> o) { +checkUnnamed4674(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -4192,8 +3983,8 @@ o.defaultLanguage = "foo"; o.description = "foo"; o.localized = buildPlaylistLocalization(); - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed4400(); + o.publishedAt = "foo"; + o.tags = buildUnnamed4674(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -4209,9 +4000,8 @@ unittest.expect(o.defaultLanguage, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); checkPlaylistLocalization(o.localized); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4400(o.tags); + unittest.expect(o.publishedAt, unittest.equals('foo')); + checkUnnamed4674(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4237,56 +4027,6 @@ buildCounterPlaylistStatus--; } -core.int buildCounterPromotedItem = 0; -buildPromotedItem() { - var o = new api.PromotedItem(); - buildCounterPromotedItem++; - if (buildCounterPromotedItem < 3) { - o.customMessage = "foo"; - o.id = buildPromotedItemId(); - o.promotedByContentOwner = true; - o.timing = buildInvideoTiming(); - } - buildCounterPromotedItem--; - return o; -} - -checkPromotedItem(api.PromotedItem o) { - buildCounterPromotedItem++; - if (buildCounterPromotedItem < 3) { - unittest.expect(o.customMessage, unittest.equals('foo')); - checkPromotedItemId(o.id); - unittest.expect(o.promotedByContentOwner, unittest.isTrue); - checkInvideoTiming(o.timing); - } - buildCounterPromotedItem--; -} - -core.int buildCounterPromotedItemId = 0; -buildPromotedItemId() { - var o = new api.PromotedItemId(); - buildCounterPromotedItemId++; - if (buildCounterPromotedItemId < 3) { - o.recentlyUploadedBy = "foo"; - o.type = "foo"; - o.videoId = "foo"; - o.websiteUrl = "foo"; - } - buildCounterPromotedItemId--; - return o; -} - -checkPromotedItemId(api.PromotedItemId o) { - buildCounterPromotedItemId++; - if (buildCounterPromotedItemId < 3) { - unittest.expect(o.recentlyUploadedBy, unittest.equals('foo')); - unittest.expect(o.type, unittest.equals('foo')); - unittest.expect(o.videoId, unittest.equals('foo')); - unittest.expect(o.websiteUrl, unittest.equals('foo')); - } - buildCounterPromotedItemId--; -} - core.int buildCounterPropertyValue = 0; buildPropertyValue() { var o = new api.PropertyValue(); @@ -4308,6 +4048,25 @@ buildCounterPropertyValue--; } +core.int buildCounterRelatedEntity = 0; +buildRelatedEntity() { + var o = new api.RelatedEntity(); + buildCounterRelatedEntity++; + if (buildCounterRelatedEntity < 3) { + o.entity = buildEntity(); + } + buildCounterRelatedEntity--; + return o; +} + +checkRelatedEntity(api.RelatedEntity o) { + buildCounterRelatedEntity++; + if (buildCounterRelatedEntity < 3) { + checkEntity(o.entity); + } + buildCounterRelatedEntity--; +} + core.int buildCounterResourceId = 0; buildResourceId() { var o = new api.ResourceId(); @@ -4333,14 +4092,14 @@ buildCounterResourceId--; } -buildUnnamed4401() { +buildUnnamed4675() { var o = new core.List<api.SearchResult>(); o.add(buildSearchResult()); o.add(buildSearchResult()); return o; } -checkUnnamed4401(core.List<api.SearchResult> o) { +checkUnnamed4675(core.List<api.SearchResult> o) { unittest.expect(o, unittest.hasLength(2)); checkSearchResult(o[0]); checkSearchResult(o[1]); @@ -4353,7 +4112,7 @@ if (buildCounterSearchListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4401(); + o.items = buildUnnamed4675(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4371,7 +4130,7 @@ if (buildCounterSearchListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4401(o.items); + checkUnnamed4675(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4417,7 +4176,7 @@ o.channelTitle = "foo"; o.description = "foo"; o.liveBroadcastContent = "foo"; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -4432,8 +4191,7 @@ unittest.expect(o.channelTitle, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -4463,14 +4221,14 @@ buildCounterSponsor--; } -buildUnnamed4402() { +buildUnnamed4676() { var o = new core.List<api.Sponsor>(); o.add(buildSponsor()); o.add(buildSponsor()); return o; } -checkUnnamed4402(core.List<api.Sponsor> o) { +checkUnnamed4676(core.List<api.Sponsor> o) { unittest.expect(o, unittest.hasLength(2)); checkSponsor(o[0]); checkSponsor(o[1]); @@ -4483,7 +4241,7 @@ if (buildCounterSponsorListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4402(); + o.items = buildUnnamed4676(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4499,7 +4257,7 @@ if (buildCounterSponsorListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4402(o.items); + checkUnnamed4676(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4517,7 +4275,7 @@ o.channelId = "foo"; o.cumulativeDurationMonths = 42; o.sponsorDetails = buildChannelProfileDetails(); - o.sponsorSince = core.DateTime.parse("2002-02-27T14:01:02"); + o.sponsorSince = "foo"; } buildCounterSponsorSnippet--; return o; @@ -4529,8 +4287,7 @@ unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.cumulativeDurationMonths, unittest.equals(42)); checkChannelProfileDetails(o.sponsorDetails); - unittest.expect(o.sponsorSince, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.sponsorSince, unittest.equals('foo')); } buildCounterSponsorSnippet--; } @@ -4587,14 +4344,14 @@ buildCounterSubscriptionContentDetails--; } -buildUnnamed4403() { +buildUnnamed4677() { var o = new core.List<api.Subscription>(); o.add(buildSubscription()); o.add(buildSubscription()); return o; } -checkUnnamed4403(core.List<api.Subscription> o) { +checkUnnamed4677(core.List<api.Subscription> o) { unittest.expect(o, unittest.hasLength(2)); checkSubscription(o[0]); checkSubscription(o[1]); @@ -4607,7 +4364,7 @@ if (buildCounterSubscriptionListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4403(); + o.items = buildUnnamed4677(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4624,7 +4381,7 @@ if (buildCounterSubscriptionListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4403(o.items); + checkUnnamed4677(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4643,7 +4400,7 @@ o.channelId = "foo"; o.channelTitle = "foo"; o.description = "foo"; - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishedAt = "foo"; o.resourceId = buildResourceId(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; @@ -4658,8 +4415,7 @@ unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.channelTitle, unittest.equals('foo')); unittest.expect(o.description, unittest.equals('foo')); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishedAt, unittest.equals('foo')); checkResourceId(o.resourceId); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); @@ -4717,14 +4473,14 @@ buildCounterSuperChatEvent--; } -buildUnnamed4404() { +buildUnnamed4678() { var o = new core.List<api.SuperChatEvent>(); o.add(buildSuperChatEvent()); o.add(buildSuperChatEvent()); return o; } -checkUnnamed4404(core.List<api.SuperChatEvent> o) { +checkUnnamed4678(core.List<api.SuperChatEvent> o) { unittest.expect(o, unittest.hasLength(2)); checkSuperChatEvent(o[0]); checkSuperChatEvent(o[1]); @@ -4737,7 +4493,7 @@ if (buildCounterSuperChatEventListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4404(); + o.items = buildUnnamed4678(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -4753,7 +4509,7 @@ if (buildCounterSuperChatEventListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4404(o.items); + checkUnnamed4678(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -4771,13 +4527,11 @@ o.amountMicros = "foo"; o.channelId = "foo"; o.commentText = "foo"; - o.createdAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.createdAt = "foo"; o.currency = "foo"; o.displayString = "foo"; - o.isSuperChatForGood = true; o.isSuperStickerEvent = true; o.messageType = 42; - o.nonprofit = buildNonprofit(); o.superStickerMetadata = buildSuperStickerMetadata(); o.supporterDetails = buildChannelProfileDetails(); } @@ -4791,14 +4545,11 @@ unittest.expect(o.amountMicros, unittest.equals('foo')); unittest.expect(o.channelId, unittest.equals('foo')); unittest.expect(o.commentText, unittest.equals('foo')); - unittest.expect(o.createdAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.createdAt, unittest.equals('foo')); unittest.expect(o.currency, unittest.equals('foo')); unittest.expect(o.displayString, unittest.equals('foo')); - unittest.expect(o.isSuperChatForGood, unittest.isTrue); unittest.expect(o.isSuperStickerEvent, unittest.isTrue); unittest.expect(o.messageType, unittest.equals(42)); - checkNonprofit(o.nonprofit); checkSuperStickerMetadata(o.superStickerMetadata); checkChannelProfileDetails(o.supporterDetails); } @@ -4828,6 +4579,111 @@ buildCounterSuperStickerMetadata--; } +core.int buildCounterTestItem = 0; +buildTestItem() { + var o = new api.TestItem(); + buildCounterTestItem++; + if (buildCounterTestItem < 3) { + o.gaia = "foo"; + o.id = "foo"; + o.snippet = buildTestItemTestItemSnippet(); + } + buildCounterTestItem--; + return o; +} + +checkTestItem(api.TestItem o) { + buildCounterTestItem++; + if (buildCounterTestItem < 3) { + unittest.expect(o.gaia, unittest.equals('foo')); + unittest.expect(o.id, unittest.equals('foo')); + checkTestItemTestItemSnippet(o.snippet); + } + buildCounterTestItem--; +} + +core.int buildCounterTestItemTestItemSnippet = 0; +buildTestItemTestItemSnippet() { + var o = new api.TestItemTestItemSnippet(); + buildCounterTestItemTestItemSnippet++; + if (buildCounterTestItemTestItemSnippet < 3) {} + buildCounterTestItemTestItemSnippet--; + return o; +} + +checkTestItemTestItemSnippet(api.TestItemTestItemSnippet o) { + buildCounterTestItemTestItemSnippet++; + if (buildCounterTestItemTestItemSnippet < 3) {} + buildCounterTestItemTestItemSnippet--; +} + +core.int buildCounterThirdPartyLink = 0; +buildThirdPartyLink() { + var o = new api.ThirdPartyLink(); + buildCounterThirdPartyLink++; + if (buildCounterThirdPartyLink < 3) { + o.etag = "foo"; + o.kind = "foo"; + o.linkingToken = "foo"; + o.snippet = buildThirdPartyLinkSnippet(); + o.status = buildThirdPartyLinkStatus(); + } + buildCounterThirdPartyLink--; + return o; +} + +checkThirdPartyLink(api.ThirdPartyLink o) { + buildCounterThirdPartyLink++; + if (buildCounterThirdPartyLink < 3) { + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.linkingToken, unittest.equals('foo')); + checkThirdPartyLinkSnippet(o.snippet); + checkThirdPartyLinkStatus(o.status); + } + buildCounterThirdPartyLink--; +} + +core.int buildCounterThirdPartyLinkSnippet = 0; +buildThirdPartyLinkSnippet() { + var o = new api.ThirdPartyLinkSnippet(); + buildCounterThirdPartyLinkSnippet++; + if (buildCounterThirdPartyLinkSnippet < 3) { + o.channelToStoreLink = buildChannelToStoreLinkDetails(); + o.type = "foo"; + } + buildCounterThirdPartyLinkSnippet--; + return o; +} + +checkThirdPartyLinkSnippet(api.ThirdPartyLinkSnippet o) { + buildCounterThirdPartyLinkSnippet++; + if (buildCounterThirdPartyLinkSnippet < 3) { + checkChannelToStoreLinkDetails(o.channelToStoreLink); + unittest.expect(o.type, unittest.equals('foo')); + } + buildCounterThirdPartyLinkSnippet--; +} + +core.int buildCounterThirdPartyLinkStatus = 0; +buildThirdPartyLinkStatus() { + var o = new api.ThirdPartyLinkStatus(); + buildCounterThirdPartyLinkStatus++; + if (buildCounterThirdPartyLinkStatus < 3) { + o.linkStatus = "foo"; + } + buildCounterThirdPartyLinkStatus--; + return o; +} + +checkThirdPartyLinkStatus(api.ThirdPartyLinkStatus o) { + buildCounterThirdPartyLinkStatus++; + if (buildCounterThirdPartyLinkStatus < 3) { + unittest.expect(o.linkStatus, unittest.equals('foo')); + } + buildCounterThirdPartyLinkStatus--; +} + core.int buildCounterThumbnail = 0; buildThumbnail() { var o = new api.Thumbnail(); @@ -4878,14 +4734,14 @@ buildCounterThumbnailDetails--; } -buildUnnamed4405() { +buildUnnamed4679() { var o = new core.List<api.ThumbnailDetails>(); o.add(buildThumbnailDetails()); o.add(buildThumbnailDetails()); return o; } -checkUnnamed4405(core.List<api.ThumbnailDetails> o) { +checkUnnamed4679(core.List<api.ThumbnailDetails> o) { unittest.expect(o, unittest.hasLength(2)); checkThumbnailDetails(o[0]); checkThumbnailDetails(o[1]); @@ -4898,7 +4754,7 @@ if (buildCounterThumbnailSetResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4405(); + o.items = buildUnnamed4679(); o.kind = "foo"; o.visitorId = "foo"; } @@ -4911,7 +4767,7 @@ if (buildCounterThumbnailSetResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4405(o.items); + checkUnnamed4679(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } @@ -4933,14 +4789,14 @@ buildCounterTokenPagination--; } -buildUnnamed4406() { +buildUnnamed4680() { var o = new core.Map<core.String, api.VideoLocalization>(); o["x"] = buildVideoLocalization(); o["y"] = buildVideoLocalization(); return o; } -checkUnnamed4406(core.Map<core.String, api.VideoLocalization> o) { +checkUnnamed4680(core.Map<core.String, api.VideoLocalization> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoLocalization(o["x"]); checkVideoLocalization(o["y"]); @@ -4958,7 +4814,7 @@ o.id = "foo"; o.kind = "foo"; o.liveStreamingDetails = buildVideoLiveStreamingDetails(); - o.localizations = buildUnnamed4406(); + o.localizations = buildUnnamed4680(); o.monetizationDetails = buildVideoMonetizationDetails(); o.player = buildVideoPlayer(); o.processingDetails = buildVideoProcessingDetails(); @@ -4984,7 +4840,7 @@ unittest.expect(o.id, unittest.equals('foo')); unittest.expect(o.kind, unittest.equals('foo')); checkVideoLiveStreamingDetails(o.liveStreamingDetails); - checkUnnamed4406(o.localizations); + checkUnnamed4680(o.localizations); checkVideoMonetizationDetails(o.monetizationDetails); checkVideoPlayer(o.player); checkVideoProcessingDetails(o.processingDetails); @@ -5051,14 +4907,14 @@ buildCounterVideoAbuseReportReason--; } -buildUnnamed4407() { +buildUnnamed4681() { var o = new core.List<api.VideoAbuseReportReason>(); o.add(buildVideoAbuseReportReason()); o.add(buildVideoAbuseReportReason()); return o; } -checkUnnamed4407(core.List<api.VideoAbuseReportReason> o) { +checkUnnamed4681(core.List<api.VideoAbuseReportReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportReason(o[0]); checkVideoAbuseReportReason(o[1]); @@ -5071,7 +4927,7 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4407(); + o.items = buildUnnamed4681(); o.kind = "foo"; o.visitorId = "foo"; } @@ -5085,21 +4941,21 @@ if (buildCounterVideoAbuseReportReasonListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4407(o.items); + checkUnnamed4681(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.visitorId, unittest.equals('foo')); } buildCounterVideoAbuseReportReasonListResponse--; } -buildUnnamed4408() { +buildUnnamed4682() { var o = new core.List<api.VideoAbuseReportSecondaryReason>(); o.add(buildVideoAbuseReportSecondaryReason()); o.add(buildVideoAbuseReportSecondaryReason()); return o; } -checkUnnamed4408(core.List<api.VideoAbuseReportSecondaryReason> o) { +checkUnnamed4682(core.List<api.VideoAbuseReportSecondaryReason> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoAbuseReportSecondaryReason(o[0]); checkVideoAbuseReportSecondaryReason(o[1]); @@ -5111,7 +4967,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { o.label = "foo"; - o.secondaryReasons = buildUnnamed4408(); + o.secondaryReasons = buildUnnamed4682(); } buildCounterVideoAbuseReportReasonSnippet--; return o; @@ -5121,7 +4977,7 @@ buildCounterVideoAbuseReportReasonSnippet++; if (buildCounterVideoAbuseReportReasonSnippet < 3) { unittest.expect(o.label, unittest.equals('foo')); - checkUnnamed4408(o.secondaryReasons); + checkUnnamed4682(o.secondaryReasons); } buildCounterVideoAbuseReportReasonSnippet--; } @@ -5195,14 +5051,14 @@ buildCounterVideoCategory--; } -buildUnnamed4409() { +buildUnnamed4683() { var o = new core.List<api.VideoCategory>(); o.add(buildVideoCategory()); o.add(buildVideoCategory()); return o; } -checkUnnamed4409(core.List<api.VideoCategory> o) { +checkUnnamed4683(core.List<api.VideoCategory> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoCategory(o[0]); checkVideoCategory(o[1]); @@ -5215,7 +5071,7 @@ if (buildCounterVideoCategoryListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4409(); + o.items = buildUnnamed4683(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5232,7 +5088,7 @@ if (buildCounterVideoCategoryListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4409(o.items); + checkUnnamed4683(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5303,27 +5159,27 @@ buildCounterVideoContentDetails--; } -buildUnnamed4410() { +buildUnnamed4684() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4410(core.List<core.String> o) { +checkUnnamed4684(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4411() { +buildUnnamed4685() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4411(core.List<core.String> o) { +checkUnnamed4685(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5334,8 +5190,8 @@ var o = new api.VideoContentDetailsRegionRestriction(); buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - o.allowed = buildUnnamed4410(); - o.blocked = buildUnnamed4411(); + o.allowed = buildUnnamed4684(); + o.blocked = buildUnnamed4685(); } buildCounterVideoContentDetailsRegionRestriction--; return o; @@ -5345,33 +5201,33 @@ api.VideoContentDetailsRegionRestriction o) { buildCounterVideoContentDetailsRegionRestriction++; if (buildCounterVideoContentDetailsRegionRestriction < 3) { - checkUnnamed4410(o.allowed); - checkUnnamed4411(o.blocked); + checkUnnamed4684(o.allowed); + checkUnnamed4685(o.blocked); } buildCounterVideoContentDetailsRegionRestriction--; } -buildUnnamed4412() { +buildUnnamed4686() { var o = new core.List<api.VideoFileDetailsAudioStream>(); o.add(buildVideoFileDetailsAudioStream()); o.add(buildVideoFileDetailsAudioStream()); return o; } -checkUnnamed4412(core.List<api.VideoFileDetailsAudioStream> o) { +checkUnnamed4686(core.List<api.VideoFileDetailsAudioStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsAudioStream(o[0]); checkVideoFileDetailsAudioStream(o[1]); } -buildUnnamed4413() { +buildUnnamed4687() { var o = new core.List<api.VideoFileDetailsVideoStream>(); o.add(buildVideoFileDetailsVideoStream()); o.add(buildVideoFileDetailsVideoStream()); return o; } -checkUnnamed4413(core.List<api.VideoFileDetailsVideoStream> o) { +checkUnnamed4687(core.List<api.VideoFileDetailsVideoStream> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoFileDetailsVideoStream(o[0]); checkVideoFileDetailsVideoStream(o[1]); @@ -5382,7 +5238,7 @@ var o = new api.VideoFileDetails(); buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - o.audioStreams = buildUnnamed4412(); + o.audioStreams = buildUnnamed4686(); o.bitrateBps = "foo"; o.container = "foo"; o.creationTime = "foo"; @@ -5390,7 +5246,7 @@ o.fileName = "foo"; o.fileSize = "foo"; o.fileType = "foo"; - o.videoStreams = buildUnnamed4413(); + o.videoStreams = buildUnnamed4687(); } buildCounterVideoFileDetails--; return o; @@ -5399,7 +5255,7 @@ checkVideoFileDetails(api.VideoFileDetails o) { buildCounterVideoFileDetails++; if (buildCounterVideoFileDetails < 3) { - checkUnnamed4412(o.audioStreams); + checkUnnamed4686(o.audioStreams); unittest.expect(o.bitrateBps, unittest.equals('foo')); unittest.expect(o.container, unittest.equals('foo')); unittest.expect(o.creationTime, unittest.equals('foo')); @@ -5407,7 +5263,7 @@ unittest.expect(o.fileName, unittest.equals('foo')); unittest.expect(o.fileSize, unittest.equals('foo')); unittest.expect(o.fileType, unittest.equals('foo')); - checkUnnamed4413(o.videoStreams); + checkUnnamed4687(o.videoStreams); } buildCounterVideoFileDetails--; } @@ -5470,54 +5326,14 @@ buildCounterVideoFileDetailsVideoStream--; } -buildUnnamed4414() { - var o = new core.List<api.VideoRating>(); - o.add(buildVideoRating()); - o.add(buildVideoRating()); - return o; -} - -checkUnnamed4414(core.List<api.VideoRating> o) { - unittest.expect(o, unittest.hasLength(2)); - checkVideoRating(o[0]); - checkVideoRating(o[1]); -} - -core.int buildCounterVideoGetRatingResponse = 0; -buildVideoGetRatingResponse() { - var o = new api.VideoGetRatingResponse(); - buildCounterVideoGetRatingResponse++; - if (buildCounterVideoGetRatingResponse < 3) { - o.etag = "foo"; - o.eventId = "foo"; - o.items = buildUnnamed4414(); - o.kind = "foo"; - o.visitorId = "foo"; - } - buildCounterVideoGetRatingResponse--; - return o; -} - -checkVideoGetRatingResponse(api.VideoGetRatingResponse o) { - buildCounterVideoGetRatingResponse++; - if (buildCounterVideoGetRatingResponse < 3) { - unittest.expect(o.etag, unittest.equals('foo')); - unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4414(o.items); - unittest.expect(o.kind, unittest.equals('foo')); - unittest.expect(o.visitorId, unittest.equals('foo')); - } - buildCounterVideoGetRatingResponse--; -} - -buildUnnamed4415() { +buildUnnamed4688() { var o = new core.List<api.Video>(); o.add(buildVideo()); o.add(buildVideo()); return o; } -checkUnnamed4415(core.List<api.Video> o) { +checkUnnamed4688(core.List<api.Video> o) { unittest.expect(o, unittest.hasLength(2)); checkVideo(o[0]); checkVideo(o[1]); @@ -5530,7 +5346,7 @@ if (buildCounterVideoListResponse < 3) { o.etag = "foo"; o.eventId = "foo"; - o.items = buildUnnamed4415(); + o.items = buildUnnamed4688(); o.kind = "foo"; o.nextPageToken = "foo"; o.pageInfo = buildPageInfo(); @@ -5547,7 +5363,7 @@ if (buildCounterVideoListResponse < 3) { unittest.expect(o.etag, unittest.equals('foo')); unittest.expect(o.eventId, unittest.equals('foo')); - checkUnnamed4415(o.items); + checkUnnamed4688(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); checkPageInfo(o.pageInfo); @@ -5564,11 +5380,11 @@ buildCounterVideoLiveStreamingDetails++; if (buildCounterVideoLiveStreamingDetails < 3) { o.activeLiveChatId = "foo"; - o.actualEndTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.actualStartTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.actualEndTime = "foo"; + o.actualStartTime = "foo"; o.concurrentViewers = "foo"; - o.scheduledEndTime = core.DateTime.parse("2002-02-27T14:01:02"); - o.scheduledStartTime = core.DateTime.parse("2002-02-27T14:01:02"); + o.scheduledEndTime = "foo"; + o.scheduledStartTime = "foo"; } buildCounterVideoLiveStreamingDetails--; return o; @@ -5578,15 +5394,11 @@ buildCounterVideoLiveStreamingDetails++; if (buildCounterVideoLiveStreamingDetails < 3) { unittest.expect(o.activeLiveChatId, unittest.equals('foo')); - unittest.expect(o.actualEndTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.actualStartTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.actualEndTime, unittest.equals('foo')); + unittest.expect(o.actualStartTime, unittest.equals('foo')); unittest.expect(o.concurrentViewers, unittest.equals('foo')); - unittest.expect(o.scheduledEndTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - unittest.expect(o.scheduledStartTime, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.scheduledEndTime, unittest.equals('foo')); + unittest.expect(o.scheduledStartTime, unittest.equals('foo')); } buildCounterVideoLiveStreamingDetails--; } @@ -5711,14 +5523,14 @@ buildCounterVideoProcessingDetailsProcessingProgress--; } -buildUnnamed4416() { +buildUnnamed4689() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4416(core.List<core.String> o) { +checkUnnamed4689(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5729,7 +5541,7 @@ var o = new api.VideoProjectDetails(); buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - o.tags = buildUnnamed4416(); + o.tags = buildUnnamed4689(); } buildCounterVideoProjectDetails--; return o; @@ -5738,7 +5550,7 @@ checkVideoProjectDetails(api.VideoProjectDetails o) { buildCounterVideoProjectDetails++; if (buildCounterVideoProjectDetails < 3) { - checkUnnamed4416(o.tags); + checkUnnamed4689(o.tags); } buildCounterVideoProjectDetails--; } @@ -5764,6 +5576,46 @@ buildCounterVideoRating--; } +buildUnnamed4690() { + var o = new core.List<api.VideoRating>(); + o.add(buildVideoRating()); + o.add(buildVideoRating()); + return o; +} + +checkUnnamed4690(core.List<api.VideoRating> o) { + unittest.expect(o, unittest.hasLength(2)); + checkVideoRating(o[0]); + checkVideoRating(o[1]); +} + +core.int buildCounterVideoRatingListResponse = 0; +buildVideoRatingListResponse() { + var o = new api.VideoRatingListResponse(); + buildCounterVideoRatingListResponse++; + if (buildCounterVideoRatingListResponse < 3) { + o.etag = "foo"; + o.eventId = "foo"; + o.items = buildUnnamed4690(); + o.kind = "foo"; + o.visitorId = "foo"; + } + buildCounterVideoRatingListResponse--; + return o; +} + +checkVideoRatingListResponse(api.VideoRatingListResponse o) { + buildCounterVideoRatingListResponse++; + if (buildCounterVideoRatingListResponse < 3) { + unittest.expect(o.etag, unittest.equals('foo')); + unittest.expect(o.eventId, unittest.equals('foo')); + checkUnnamed4690(o.items); + unittest.expect(o.kind, unittest.equals('foo')); + unittest.expect(o.visitorId, unittest.equals('foo')); + } + buildCounterVideoRatingListResponse--; +} + core.int buildCounterVideoRecordingDetails = 0; buildVideoRecordingDetails() { var o = new api.VideoRecordingDetails(); @@ -5771,7 +5623,7 @@ if (buildCounterVideoRecordingDetails < 3) { o.location = buildGeoPoint(); o.locationDescription = "foo"; - o.recordingDate = core.DateTime.parse("2002-02-27T14:01:02"); + o.recordingDate = "foo"; } buildCounterVideoRecordingDetails--; return o; @@ -5782,20 +5634,19 @@ if (buildCounterVideoRecordingDetails < 3) { checkGeoPoint(o.location); unittest.expect(o.locationDescription, unittest.equals('foo')); - unittest.expect(o.recordingDate, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.recordingDate, unittest.equals('foo')); } buildCounterVideoRecordingDetails--; } -buildUnnamed4417() { +buildUnnamed4691() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4417(core.List<core.String> o) { +checkUnnamed4691(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -5814,8 +5665,8 @@ o.description = "foo"; o.liveBroadcastContent = "foo"; o.localized = buildVideoLocalization(); - o.publishedAt = core.DateTime.parse("2002-02-27T14:01:02"); - o.tags = buildUnnamed4417(); + o.publishedAt = "foo"; + o.tags = buildUnnamed4691(); o.thumbnails = buildThumbnailDetails(); o.title = "foo"; } @@ -5834,9 +5685,8 @@ unittest.expect(o.description, unittest.equals('foo')); unittest.expect(o.liveBroadcastContent, unittest.equals('foo')); checkVideoLocalization(o.localized); - unittest.expect(o.publishedAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); - checkUnnamed4417(o.tags); + unittest.expect(o.publishedAt, unittest.equals('foo')); + checkUnnamed4691(o.tags); checkThumbnailDetails(o.thumbnails); unittest.expect(o.title, unittest.equals('foo')); } @@ -5881,7 +5731,7 @@ o.madeForKids = true; o.privacyStatus = "foo"; o.publicStatsViewable = true; - o.publishAt = core.DateTime.parse("2002-02-27T14:01:02"); + o.publishAt = "foo"; o.rejectionReason = "foo"; o.selfDeclaredMadeForKids = true; o.uploadStatus = "foo"; @@ -5899,8 +5749,7 @@ unittest.expect(o.madeForKids, unittest.isTrue); unittest.expect(o.privacyStatus, unittest.equals('foo')); unittest.expect(o.publicStatsViewable, unittest.isTrue); - unittest.expect(o.publishAt, - unittest.equals(core.DateTime.parse("2002-02-27T14:01:02"))); + unittest.expect(o.publishAt, unittest.equals('foo')); unittest.expect(o.rejectionReason, unittest.equals('foo')); unittest.expect(o.selfDeclaredMadeForKids, unittest.isTrue); unittest.expect(o.uploadStatus, unittest.equals('foo')); @@ -5908,66 +5757,66 @@ buildCounterVideoStatus--; } -buildUnnamed4418() { +buildUnnamed4692() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4418(core.List<core.String> o) { +checkUnnamed4692(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4419() { +buildUnnamed4693() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4419(core.List<core.String> o) { +checkUnnamed4693(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4420() { +buildUnnamed4694() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4420(core.List<core.String> o) { +checkUnnamed4694(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4421() { +buildUnnamed4695() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4421(core.List<core.String> o) { +checkUnnamed4695(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4422() { +buildUnnamed4696() { var o = new core.List<api.VideoSuggestionsTagSuggestion>(); o.add(buildVideoSuggestionsTagSuggestion()); o.add(buildVideoSuggestionsTagSuggestion()); return o; } -checkUnnamed4422(core.List<api.VideoSuggestionsTagSuggestion> o) { +checkUnnamed4696(core.List<api.VideoSuggestionsTagSuggestion> o) { unittest.expect(o, unittest.hasLength(2)); checkVideoSuggestionsTagSuggestion(o[0]); checkVideoSuggestionsTagSuggestion(o[1]); @@ -5978,11 +5827,11 @@ var o = new api.VideoSuggestions(); buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - o.editorSuggestions = buildUnnamed4418(); - o.processingErrors = buildUnnamed4419(); - o.processingHints = buildUnnamed4420(); - o.processingWarnings = buildUnnamed4421(); - o.tagSuggestions = buildUnnamed4422(); + o.editorSuggestions = buildUnnamed4692(); + o.processingErrors = buildUnnamed4693(); + o.processingHints = buildUnnamed4694(); + o.processingWarnings = buildUnnamed4695(); + o.tagSuggestions = buildUnnamed4696(); } buildCounterVideoSuggestions--; return o; @@ -5991,23 +5840,23 @@ checkVideoSuggestions(api.VideoSuggestions o) { buildCounterVideoSuggestions++; if (buildCounterVideoSuggestions < 3) { - checkUnnamed4418(o.editorSuggestions); - checkUnnamed4419(o.processingErrors); - checkUnnamed4420(o.processingHints); - checkUnnamed4421(o.processingWarnings); - checkUnnamed4422(o.tagSuggestions); + checkUnnamed4692(o.editorSuggestions); + checkUnnamed4693(o.processingErrors); + checkUnnamed4694(o.processingHints); + checkUnnamed4695(o.processingWarnings); + checkUnnamed4696(o.tagSuggestions); } buildCounterVideoSuggestions--; } -buildUnnamed4423() { +buildUnnamed4697() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4423(core.List<core.String> o) { +checkUnnamed4697(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6018,7 +5867,7 @@ var o = new api.VideoSuggestionsTagSuggestion(); buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - o.categoryRestricts = buildUnnamed4423(); + o.categoryRestricts = buildUnnamed4697(); o.tag = "foo"; } buildCounterVideoSuggestionsTagSuggestion--; @@ -6028,46 +5877,46 @@ checkVideoSuggestionsTagSuggestion(api.VideoSuggestionsTagSuggestion o) { buildCounterVideoSuggestionsTagSuggestion++; if (buildCounterVideoSuggestionsTagSuggestion < 3) { - checkUnnamed4423(o.categoryRestricts); + checkUnnamed4697(o.categoryRestricts); unittest.expect(o.tag, unittest.equals('foo')); } buildCounterVideoSuggestionsTagSuggestion--; } -buildUnnamed4424() { +buildUnnamed4698() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4424(core.List<core.String> o) { +checkUnnamed4698(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4425() { +buildUnnamed4699() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4425(core.List<core.String> o) { +checkUnnamed4699(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); } -buildUnnamed4426() { +buildUnnamed4700() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed4426(core.List<core.String> o) { +checkUnnamed4700(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -6078,9 +5927,9 @@ var o = new api.VideoTopicDetails(); buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - o.relevantTopicIds = buildUnnamed4424(); - o.topicCategories = buildUnnamed4425(); - o.topicIds = buildUnnamed4426(); + o.relevantTopicIds = buildUnnamed4698(); + o.topicCategories = buildUnnamed4699(); + o.topicIds = buildUnnamed4700(); } buildCounterVideoTopicDetails--; return o; @@ -6089,9 +5938,9 @@ checkVideoTopicDetails(api.VideoTopicDetails o) { buildCounterVideoTopicDetails++; if (buildCounterVideoTopicDetails < 3) { - checkUnnamed4424(o.relevantTopicIds); - checkUnnamed4425(o.topicCategories); - checkUnnamed4426(o.topicIds); + checkUnnamed4698(o.relevantTopicIds); + checkUnnamed4699(o.topicCategories); + checkUnnamed4700(o.topicIds); } buildCounterVideoTopicDetails--; } @@ -6119,7 +5968,946 @@ buildCounterWatchSettings--; } +buildUnnamed4701() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4701(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4702() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4702(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4703() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4703(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4704() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4704(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4705() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4705(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4706() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4706(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4707() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4707(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4708() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4708(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4709() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4709(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4710() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4710(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4711() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4711(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4712() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4712(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4713() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4713(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4714() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4714(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4715() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4715(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4716() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4716(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4717() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4717(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4718() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4718(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4719() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4719(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4720() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4720(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4721() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4721(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4722() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4722(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4723() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4723(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4724() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4724(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4725() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4725(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4726() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4726(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4727() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4727(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4728() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4728(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4729() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4729(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4730() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4730(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4731() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4731(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4732() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4732(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4733() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4733(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4734() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4734(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4735() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4735(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4736() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4736(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4737() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4737(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4738() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4738(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4739() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4739(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4740() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4740(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4741() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4741(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4742() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4742(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4743() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4743(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4744() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4744(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4745() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4745(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4746() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4746(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4747() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4747(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4748() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4748(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4749() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4749(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4750() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4750(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4751() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4751(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4752() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4752(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4753() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4753(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4754() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4754(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4755() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4755(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4756() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4756(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4757() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4757(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4758() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4758(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4759() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4759(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4760() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4760(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4761() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4761(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4762() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4762(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4763() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4763(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4764() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4764(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4765() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4765(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4766() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4766(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4767() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4767(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4768() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4768(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4769() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4769(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4770() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4770(core.List<core.String> o) { + unittest.expect(o, unittest.hasLength(2)); + unittest.expect(o[0], unittest.equals('foo')); + unittest.expect(o[1], unittest.equals('foo')); +} + +buildUnnamed4771() { + var o = new core.List<core.String>(); + o.add("foo"); + o.add("foo"); + return o; +} + +checkUnnamed4771(core.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-AbuseReport", () { + unittest.test("to-json--from-json", () { + var o = buildAbuseReport(); + var od = new api.AbuseReport.fromJson(o.toJson()); + checkAbuseReport(od); + }); + }); + + unittest.group("obj-schema-AbuseType", () { + unittest.test("to-json--from-json", () { + var o = buildAbuseType(); + var od = new api.AbuseType.fromJson(o.toJson()); + checkAbuseType(od); + }); + }); + unittest.group("obj-schema-AccessPolicy", () { unittest.test("to-json--from-json", () { var o = buildAccessPolicy(); @@ -6458,6 +7246,14 @@ }); }); + unittest.group("obj-schema-ChannelToStoreLinkDetails", () { + unittest.test("to-json--from-json", () { + var o = buildChannelToStoreLinkDetails(); + var od = new api.ChannelToStoreLinkDetails.fromJson(o.toJson()); + checkChannelToStoreLinkDetails(od); + }); + }); + unittest.group("obj-schema-ChannelTopicDetails", () { unittest.test("to-json--from-json", () { var o = buildChannelTopicDetails(); @@ -6490,6 +7286,14 @@ }); }); + unittest.group("obj-schema-CommentSnippetAuthorChannelId", () { + unittest.test("to-json--from-json", () { + var o = buildCommentSnippetAuthorChannelId(); + var od = new api.CommentSnippetAuthorChannelId.fromJson(o.toJson()); + checkCommentSnippetAuthorChannelId(od); + }); + }); + unittest.group("obj-schema-CommentThread", () { unittest.test("to-json--from-json", () { var o = buildCommentThread(); @@ -6530,6 +7334,14 @@ }); }); + unittest.group("obj-schema-Entity", () { + unittest.test("to-json--from-json", () { + var o = buildEntity(); + var od = new api.Entity.fromJson(o.toJson()); + checkEntity(od); + }); + }); + unittest.group("obj-schema-GeoPoint", () { unittest.test("to-json--from-json", () { var o = buildGeoPoint(); @@ -6538,30 +7350,6 @@ }); }); - unittest.group("obj-schema-GuideCategory", () { - unittest.test("to-json--from-json", () { - var o = buildGuideCategory(); - var od = new api.GuideCategory.fromJson(o.toJson()); - checkGuideCategory(od); - }); - }); - - unittest.group("obj-schema-GuideCategoryListResponse", () { - unittest.test("to-json--from-json", () { - var o = buildGuideCategoryListResponse(); - var od = new api.GuideCategoryListResponse.fromJson(o.toJson()); - checkGuideCategoryListResponse(od); - }); - }); - - unittest.group("obj-schema-GuideCategorySnippet", () { - unittest.test("to-json--from-json", () { - var o = buildGuideCategorySnippet(); - var od = new api.GuideCategorySnippet.fromJson(o.toJson()); - checkGuideCategorySnippet(od); - }); - }); - unittest.group("obj-schema-I18nLanguage", () { unittest.test("to-json--from-json", () { var o = buildI18nLanguage(); @@ -6642,14 +7430,6 @@ }); }); - unittest.group("obj-schema-InvideoPromotion", () { - unittest.test("to-json--from-json", () { - var o = buildInvideoPromotion(); - var od = new api.InvideoPromotion.fromJson(o.toJson()); - checkInvideoPromotion(od); - }); - }); - unittest.group("obj-schema-InvideoTiming", () { unittest.test("to-json--from-json", () { var o = buildInvideoTiming(); @@ -6818,46 +7598,6 @@ }); }); - unittest.group("obj-schema-LiveChatPollClosedDetails", () { - unittest.test("to-json--from-json", () { - var o = buildLiveChatPollClosedDetails(); - var od = new api.LiveChatPollClosedDetails.fromJson(o.toJson()); - checkLiveChatPollClosedDetails(od); - }); - }); - - unittest.group("obj-schema-LiveChatPollEditedDetails", () { - unittest.test("to-json--from-json", () { - var o = buildLiveChatPollEditedDetails(); - var od = new api.LiveChatPollEditedDetails.fromJson(o.toJson()); - checkLiveChatPollEditedDetails(od); - }); - }); - - unittest.group("obj-schema-LiveChatPollItem", () { - unittest.test("to-json--from-json", () { - var o = buildLiveChatPollItem(); - var od = new api.LiveChatPollItem.fromJson(o.toJson()); - checkLiveChatPollItem(od); - }); - }); - - unittest.group("obj-schema-LiveChatPollOpenedDetails", () { - unittest.test("to-json--from-json", () { - var o = buildLiveChatPollOpenedDetails(); - var od = new api.LiveChatPollOpenedDetails.fromJson(o.toJson()); - checkLiveChatPollOpenedDetails(od); - }); - }); - - unittest.group("obj-schema-LiveChatPollVotedDetails", () { - unittest.test("to-json--from-json", () { - var o = buildLiveChatPollVotedDetails(); - var od = new api.LiveChatPollVotedDetails.fromJson(o.toJson()); - checkLiveChatPollVotedDetails(od); - }); - }); - unittest.group("obj-schema-LiveChatSuperChatDetails", () { unittest.test("to-json--from-json", () { var o = buildLiveChatSuperChatDetails(); @@ -7042,22 +7782,6 @@ }); }); - unittest.group("obj-schema-Nonprofit", () { - unittest.test("to-json--from-json", () { - var o = buildNonprofit(); - var od = new api.Nonprofit.fromJson(o.toJson()); - checkNonprofit(od); - }); - }); - - unittest.group("obj-schema-NonprofitId", () { - unittest.test("to-json--from-json", () { - var o = buildNonprofitId(); - var od = new api.NonprofitId.fromJson(o.toJson()); - checkNonprofitId(od); - }); - }); - unittest.group("obj-schema-PageInfo", () { unittest.test("to-json--from-json", () { var o = buildPageInfo(); @@ -7162,22 +7886,6 @@ }); }); - unittest.group("obj-schema-PromotedItem", () { - unittest.test("to-json--from-json", () { - var o = buildPromotedItem(); - var od = new api.PromotedItem.fromJson(o.toJson()); - checkPromotedItem(od); - }); - }); - - unittest.group("obj-schema-PromotedItemId", () { - unittest.test("to-json--from-json", () { - var o = buildPromotedItemId(); - var od = new api.PromotedItemId.fromJson(o.toJson()); - checkPromotedItemId(od); - }); - }); - unittest.group("obj-schema-PropertyValue", () { unittest.test("to-json--from-json", () { var o = buildPropertyValue(); @@ -7186,6 +7894,14 @@ }); }); + unittest.group("obj-schema-RelatedEntity", () { + unittest.test("to-json--from-json", () { + var o = buildRelatedEntity(); + var od = new api.RelatedEntity.fromJson(o.toJson()); + checkRelatedEntity(od); + }); + }); + unittest.group("obj-schema-ResourceId", () { unittest.test("to-json--from-json", () { var o = buildResourceId(); @@ -7314,6 +8030,46 @@ }); }); + unittest.group("obj-schema-TestItem", () { + unittest.test("to-json--from-json", () { + var o = buildTestItem(); + var od = new api.TestItem.fromJson(o.toJson()); + checkTestItem(od); + }); + }); + + unittest.group("obj-schema-TestItemTestItemSnippet", () { + unittest.test("to-json--from-json", () { + var o = buildTestItemTestItemSnippet(); + var od = new api.TestItemTestItemSnippet.fromJson(o.toJson()); + checkTestItemTestItemSnippet(od); + }); + }); + + unittest.group("obj-schema-ThirdPartyLink", () { + unittest.test("to-json--from-json", () { + var o = buildThirdPartyLink(); + var od = new api.ThirdPartyLink.fromJson(o.toJson()); + checkThirdPartyLink(od); + }); + }); + + unittest.group("obj-schema-ThirdPartyLinkSnippet", () { + unittest.test("to-json--from-json", () { + var o = buildThirdPartyLinkSnippet(); + var od = new api.ThirdPartyLinkSnippet.fromJson(o.toJson()); + checkThirdPartyLinkSnippet(od); + }); + }); + + unittest.group("obj-schema-ThirdPartyLinkStatus", () { + unittest.test("to-json--from-json", () { + var o = buildThirdPartyLinkStatus(); + var od = new api.ThirdPartyLinkStatus.fromJson(o.toJson()); + checkThirdPartyLinkStatus(od); + }); + }); + unittest.group("obj-schema-Thumbnail", () { unittest.test("to-json--from-json", () { var o = buildThumbnail(); @@ -7467,14 +8223,6 @@ }); }); - unittest.group("obj-schema-VideoGetRatingResponse", () { - unittest.test("to-json--from-json", () { - var o = buildVideoGetRatingResponse(); - var od = new api.VideoGetRatingResponse.fromJson(o.toJson()); - checkVideoGetRatingResponse(od); - }); - }); - unittest.group("obj-schema-VideoListResponse", () { unittest.test("to-json--from-json", () { var o = buildVideoListResponse(); @@ -7548,6 +8296,14 @@ }); }); + unittest.group("obj-schema-VideoRatingListResponse", () { + unittest.test("to-json--from-json", () { + var o = buildVideoRatingListResponse(); + var od = new api.VideoRatingListResponse.fromJson(o.toJson()); + checkVideoRatingListResponse(od); + }); + }); + unittest.group("obj-schema-VideoRecordingDetails", () { unittest.test("to-json--from-json", () { var o = buildVideoRecordingDetails(); @@ -7612,16 +8368,16 @@ }); }); - unittest.group("resource-ActivitiesResourceApi", () { + unittest.group("resource-AbuseReportsResourceApi", () { unittest.test("method--insert", () { var mock = new HttpServerMock(); - api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; - var arg_request = buildActivity(); - var arg_part = "foo"; + api.AbuseReportsResourceApi res = new api.YoutubeApi(mock).abuseReports; + var arg_request = buildAbuseReport(); + var arg_part = buildUnnamed4701(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.Activity.fromJson(json); - checkActivity(obj); + var obj = new api.AbuseReport.fromJson(json); + checkAbuseReport(obj); var path = (req.url).path; var pathOffset = 0; @@ -7630,12 +8386,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("activities")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 23), + unittest.equals("youtube/v3/abuseReports")); + pathOffset += 23; var query = (req.url).query; var queryOffset = 0; @@ -7655,34 +8408,36 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildActivity()); + var resp = convert.json.encode(buildAbuseReport()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res .insert(arg_request, arg_part, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkActivity(response); + checkAbuseReport(response); }))); }); + }); + unittest.group("resource-ActivitiesResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); api.ActivitiesResourceApi res = new api.YoutubeApi(mock).activities; - var arg_part = "foo"; - var arg_channelId = "foo"; + var arg_part = buildUnnamed4702(); var arg_home = true; - var arg_maxResults = 42; var arg_mine = true; - var arg_pageToken = "foo"; - var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); var arg_regionCode = "foo"; + var arg_publishedBefore = "foo"; + var arg_pageToken = "foo"; + var arg_channelId = "foo"; + var arg_publishedAfter = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7692,12 +8447,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 10), - unittest.equals("activities")); - pathOffset += 10; + unittest.expect(path.substring(pathOffset, pathOffset + 21), + unittest.equals("youtube/v3/activities")); + pathOffset += 21; var query = (req.url).query; var queryOffset = 0; @@ -7717,21 +8469,21 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect( - queryMap["channelId"].first, unittest.equals(arg_channelId)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["home"].first, unittest.equals("$arg_home")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), - unittest.equals(arg_publishedAfter)); - unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first), + queryMap["regionCode"].first, unittest.equals(arg_regionCode)); + unittest.expect(queryMap["publishedBefore"].first, unittest.equals(arg_publishedBefore)); unittest.expect( - queryMap["regionCode"].first, unittest.equals(arg_regionCode)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["channelId"].first, unittest.equals(arg_channelId)); + unittest.expect(queryMap["publishedAfter"].first, + unittest.equals(arg_publishedAfter)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7742,14 +8494,14 @@ }), true); res .list(arg_part, - channelId: arg_channelId, home: arg_home, - maxResults: arg_maxResults, mine: arg_mine, - pageToken: arg_pageToken, - publishedAfter: arg_publishedAfter, - publishedBefore: arg_publishedBefore, regionCode: arg_regionCode, + publishedBefore: arg_publishedBefore, + pageToken: arg_pageToken, + channelId: arg_channelId, + publishedAfter: arg_publishedAfter, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkActivityListResponse(response); @@ -7762,8 +8514,8 @@ var mock = new HttpServerMock(); api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; var arg_id = "foo"; - var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_onBehalfOf = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7773,12 +8525,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("captions")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/captions")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -7799,10 +8548,10 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect( - queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect( + queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7813,8 +8562,8 @@ }), true); res .delete(arg_id, - onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + onBehalfOf: arg_onBehalfOf, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -7826,10 +8575,10 @@ var mock = new HttpServerMock(); api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; var arg_id = "foo"; - var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; - var arg_tfmt = "foo"; + var arg_onBehalfOf = "foo"; var arg_tlang = "foo"; + var arg_tfmt = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -7839,12 +8588,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("captions/")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("youtube/v3/captions/")); + pathOffset += 20; subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); pathOffset = path.length; unittest.expect(subPart, unittest.equals("$arg_id")); @@ -7867,12 +8613,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["tfmt"].first, unittest.equals(arg_tfmt)); + unittest.expect( + queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["tlang"].first, unittest.equals(arg_tlang)); + unittest.expect(queryMap["tfmt"].first, unittest.equals(arg_tfmt)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7883,10 +8629,10 @@ }), true); res .download(arg_id, - onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - tfmt: arg_tfmt, + onBehalfOf: arg_onBehalfOf, tlang: arg_tlang, + tfmt: arg_tfmt, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -7898,10 +8644,10 @@ var mock = new HttpServerMock(); api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; var arg_request = buildCaption(); - var arg_part = "foo"; + var arg_part = buildUnnamed4703(); + var arg_sync = true; var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; - var arg_sync = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Caption.fromJson(json); @@ -7914,12 +8660,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("captions")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/captions")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -7939,12 +8682,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); unittest.expect( queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -7955,9 +8698,9 @@ }), true); res .insert(arg_request, arg_part, + sync: arg_sync, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - sync: arg_sync, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCaption(response); @@ -7967,9 +8710,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; - var arg_part = "foo"; var arg_videoId = "foo"; - var arg_id = "foo"; + var arg_part = buildUnnamed4704(); + var arg_id = buildUnnamed4705(); var arg_onBehalfOf = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; @@ -7981,12 +8724,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("captions")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/captions")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -8006,10 +8746,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); unittest.expect( queryMap["videoId"].first, unittest.equals(arg_videoId)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); unittest.expect( queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, @@ -8023,7 +8763,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .list(arg_part, arg_videoId, + .list(arg_videoId, arg_part, id: arg_id, onBehalfOf: arg_onBehalfOf, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, @@ -8040,10 +8780,10 @@ var mock = new HttpServerMock(); api.CaptionsResourceApi res = new api.YoutubeApi(mock).captions; var arg_request = buildCaption(); - var arg_part = "foo"; - var arg_onBehalfOf = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4706(); var arg_sync = true; + var arg_onBehalfOfContentOwner = "foo"; + var arg_onBehalfOf = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Caption.fromJson(json); @@ -8056,12 +8796,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("captions")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/captions")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -8081,12 +8818,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect( - queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["sync"].first, unittest.equals("$arg_sync")); + unittest.expect( + queryMap["onBehalfOf"].first, unittest.equals(arg_onBehalfOf)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8097,9 +8834,9 @@ }), true); res .update(arg_request, arg_part, - onBehalfOf: arg_onBehalfOf, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, sync: arg_sync, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + onBehalfOf: arg_onBehalfOf, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCaption(response); @@ -8118,6 +8855,7 @@ var arg_request = buildChannelBannerResource(); var arg_channelId = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.ChannelBannerResource.fromJson(json); @@ -8130,12 +8868,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 21), - unittest.equals("channelBanners/insert")); - pathOffset += 21; + unittest.expect(path.substring(pathOffset, pathOffset + 32), + unittest.equals("youtube/v3/channelBanners/insert")); + pathOffset += 32; var query = (req.url).query; var queryOffset = 0; @@ -8159,6 +8894,8 @@ queryMap["channelId"].first, unittest.equals(arg_channelId)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8171,6 +8908,7 @@ .insert(arg_request, channelId: arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannelBannerResource(response); @@ -8194,12 +8932,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("channelSections")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/channelSections")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -8242,7 +8977,7 @@ api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSections; var arg_request = buildChannelSection(); - var arg_part = "foo"; + var arg_part = buildUnnamed4707(); var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_$fields = "foo"; @@ -8257,12 +8992,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("channelSections")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/channelSections")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -8282,7 +9014,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, @@ -8309,12 +9041,12 @@ var mock = new HttpServerMock(); api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSections; - var arg_part = "foo"; - var arg_channelId = "foo"; + var arg_part = buildUnnamed4708(); + var arg_id = buildUnnamed4709(); var arg_hl = "foo"; - var arg_id = "foo"; - var arg_mine = true; + var arg_channelId = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_mine = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8324,12 +9056,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("channelSections")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/channelSections")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -8349,14 +9078,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect( queryMap["channelId"].first, unittest.equals(arg_channelId)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8367,11 +9096,11 @@ }), true); res .list(arg_part, - channelId: arg_channelId, - hl: arg_hl, id: arg_id, - mine: arg_mine, + hl: arg_hl, + channelId: arg_channelId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + mine: arg_mine, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannelSectionListResponse(response); @@ -8383,7 +9112,7 @@ api.ChannelSectionsResourceApi res = new api.YoutubeApi(mock).channelSections; var arg_request = buildChannelSection(); - var arg_part = "foo"; + var arg_part = buildUnnamed4710(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -8397,12 +9126,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("channelSections")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/channelSections")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -8422,7 +9148,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -8447,17 +9173,17 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; - var arg_part = "foo"; - var arg_categoryId = "foo"; - var arg_forUsername = "foo"; - var arg_hl = "foo"; - var arg_id = "foo"; - var arg_managedByMe = true; - var arg_maxResults = 42; - var arg_mine = true; - var arg_mySubscribers = true; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4711(); var arg_pageToken = "foo"; + var arg_hl = "foo"; + var arg_onBehalfOfContentOwner = "foo"; + var arg_managedByMe = true; + var arg_categoryId = "foo"; + var arg_mySubscribers = true; + var arg_maxResults = 42; + var arg_forUsername = "foo"; + var arg_mine = true; + var arg_id = buildUnnamed4712(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8467,12 +9193,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("channels")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/channels")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -8492,24 +9215,24 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( - queryMap["categoryId"].first, unittest.equals(arg_categoryId)); - unittest.expect( - queryMap["forUsername"].first, unittest.equals(arg_forUsername)); + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect( - queryMap["managedByMe"].first, unittest.equals("$arg_managedByMe")); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); - unittest.expect(queryMap["mySubscribers"].first, - unittest.equals("$arg_mySubscribers")); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + queryMap["managedByMe"].first, unittest.equals("$arg_managedByMe")); + unittest.expect( + queryMap["categoryId"].first, unittest.equals(arg_categoryId)); + unittest.expect(queryMap["mySubscribers"].first, + unittest.equals("$arg_mySubscribers")); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["forUsername"].first, unittest.equals(arg_forUsername)); + unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8520,16 +9243,16 @@ }), true); res .list(arg_part, - categoryId: arg_categoryId, - forUsername: arg_forUsername, - hl: arg_hl, - id: arg_id, - managedByMe: arg_managedByMe, - maxResults: arg_maxResults, - mine: arg_mine, - mySubscribers: arg_mySubscribers, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, + hl: arg_hl, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + managedByMe: arg_managedByMe, + categoryId: arg_categoryId, + mySubscribers: arg_mySubscribers, + maxResults: arg_maxResults, + forUsername: arg_forUsername, + mine: arg_mine, + id: arg_id, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkChannelListResponse(response); @@ -8540,7 +9263,7 @@ var mock = new HttpServerMock(); api.ChannelsResourceApi res = new api.YoutubeApi(mock).channels; var arg_request = buildChannel(); - var arg_part = "foo"; + var arg_part = buildUnnamed4713(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -8554,12 +9277,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("channels")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/channels")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -8579,7 +9299,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -8606,7 +9326,7 @@ api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThreads; var arg_request = buildCommentThread(); - var arg_part = "foo"; + var arg_part = buildUnnamed4714(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentThread.fromJson(json); @@ -8619,12 +9339,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("commentThreads")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/commentThreads")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -8644,7 +9361,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8664,17 +9381,17 @@ var mock = new HttpServerMock(); api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThreads; - var arg_part = "foo"; - var arg_allThreadsRelatedToChannelId = "foo"; - var arg_channelId = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; - var arg_moderationStatus = "foo"; - var arg_order = "foo"; + var arg_part = buildUnnamed4715(); var arg_pageToken = "foo"; - var arg_searchTerms = "foo"; var arg_textFormat = "foo"; + var arg_searchTerms = "foo"; + var arg_moderationStatus = "foo"; + var arg_channelId = "foo"; + var arg_allThreadsRelatedToChannelId = "foo"; + var arg_id = buildUnnamed4716(); var arg_videoId = "foo"; + var arg_maxResults = 42; + var arg_order = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -8684,12 +9401,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("commentThreads")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/commentThreads")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -8709,25 +9423,25 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["allThreadsRelatedToChannelId"].first, - unittest.equals(arg_allThreadsRelatedToChannelId)); - unittest.expect( - queryMap["channelId"].first, unittest.equals(arg_channelId)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["moderationStatus"].first, - unittest.equals(arg_moderationStatus)); - unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["searchTerms"].first, unittest.equals(arg_searchTerms)); - unittest.expect( queryMap["textFormat"].first, unittest.equals(arg_textFormat)); unittest.expect( + queryMap["searchTerms"].first, unittest.equals(arg_searchTerms)); + unittest.expect(queryMap["moderationStatus"].first, + unittest.equals(arg_moderationStatus)); + unittest.expect( + queryMap["channelId"].first, unittest.equals(arg_channelId)); + unittest.expect(queryMap["allThreadsRelatedToChannelId"].first, + unittest.equals(arg_allThreadsRelatedToChannelId)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect( queryMap["videoId"].first, unittest.equals(arg_videoId)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8738,16 +9452,16 @@ }), true); res .list(arg_part, - allThreadsRelatedToChannelId: arg_allThreadsRelatedToChannelId, - channelId: arg_channelId, - id: arg_id, - maxResults: arg_maxResults, - moderationStatus: arg_moderationStatus, - order: arg_order, pageToken: arg_pageToken, - searchTerms: arg_searchTerms, textFormat: arg_textFormat, + searchTerms: arg_searchTerms, + moderationStatus: arg_moderationStatus, + channelId: arg_channelId, + allThreadsRelatedToChannelId: arg_allThreadsRelatedToChannelId, + id: arg_id, videoId: arg_videoId, + maxResults: arg_maxResults, + order: arg_order, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkCommentThreadListResponse(response); @@ -8759,7 +9473,7 @@ api.CommentThreadsResourceApi res = new api.YoutubeApi(mock).commentThreads; var arg_request = buildCommentThread(); - var arg_part = "foo"; + var arg_part = buildUnnamed4717(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.CommentThread.fromJson(json); @@ -8772,12 +9486,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("commentThreads")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/commentThreads")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -8797,7 +9508,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -8828,12 +9539,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("comments")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/comments")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -8871,7 +9579,7 @@ var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_request = buildComment(); - var arg_part = "foo"; + var arg_part = buildUnnamed4718(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); @@ -8884,139 +9592,8 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("comments")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildComment()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .insert(arg_request, arg_part, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkComment(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; - var arg_part = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; - var arg_parentId = "foo"; - var arg_textFormat = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("comments")); - pathOffset += 8; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - 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["textFormat"].first, unittest.equals(arg_textFormat)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildCommentListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_part, - id: arg_id, - maxResults: arg_maxResults, - pageToken: arg_pageToken, - parentId: arg_parentId, - textFormat: arg_textFormat, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkCommentListResponse(response); - }))); - }); - - unittest.test("method--markAsSpam", () { - var mock = new HttpServerMock(); - api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; - var arg_id = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("comments/markAsSpam")); + unittest.equals("youtube/v3/comments")); pathOffset += 19; var query = (req.url).query; @@ -9037,26 +9614,31 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = ""; + var resp = convert.json.encode(buildComment()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .markAsSpam(arg_id, $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); + .insert(arg_request, arg_part, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkComment(response); + }))); }); - unittest.test("method--setModerationStatus", () { + unittest.test("method--list", () { var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; - var arg_id = "foo"; - var arg_moderationStatus = "foo"; - var arg_banAuthor = true; + var arg_part = buildUnnamed4719(); + var arg_maxResults = 42; + var arg_parentId = "foo"; + var arg_pageToken = "foo"; + var arg_textFormat = "foo"; + var arg_id = buildUnnamed4720(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9066,12 +9648,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 28), - unittest.equals("comments/setModerationStatus")); - pathOffset += 28; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/comments")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -9091,7 +9670,124 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect( + queryMap["parentId"].first, unittest.equals(arg_parentId)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( + queryMap["textFormat"].first, unittest.equals(arg_textFormat)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildCommentListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_part, + maxResults: arg_maxResults, + parentId: arg_parentId, + pageToken: arg_pageToken, + textFormat: arg_textFormat, + id: arg_id, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkCommentListResponse(response); + }))); + }); + + unittest.test("method--markAsSpam", () { + var mock = new HttpServerMock(); + api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; + var arg_id = buildUnnamed4721(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("youtube/v3/comments/markAsSpam")); + pathOffset += 30; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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"], unittest.equals(arg_id)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .markAsSpam(arg_id, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--setModerationStatus", () { + var mock = new HttpServerMock(); + api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; + var arg_id = buildUnnamed4722(); + var arg_moderationStatus = "foo"; + var arg_banAuthor = true; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 39), + unittest.equals("youtube/v3/comments/setModerationStatus")); + pathOffset += 39; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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"], unittest.equals(arg_id)); unittest.expect(queryMap["moderationStatus"].first, unittest.equals(arg_moderationStatus)); unittest.expect( @@ -9114,7 +9810,7 @@ var mock = new HttpServerMock(); api.CommentsResourceApi res = new api.YoutubeApi(mock).comments; var arg_request = buildComment(); - var arg_part = "foo"; + var arg_part = buildUnnamed4723(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Comment.fromJson(json); @@ -9127,12 +9823,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("comments")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/comments")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -9152,7 +9845,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9169,79 +9862,11 @@ }); }); - unittest.group("resource-GuideCategoriesResourceApi", () { - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.GuideCategoriesResourceApi res = - new api.YoutubeApi(mock).guideCategories; - var arg_part = "foo"; - var arg_hl = "foo"; - var arg_id = "foo"; - var arg_regionCode = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("guideCategories")); - pathOffset += 15; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect( - queryMap["regionCode"].first, unittest.equals(arg_regionCode)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildGuideCategoryListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_part, - hl: arg_hl, - id: arg_id, - regionCode: arg_regionCode, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkGuideCategoryListResponse(response); - }))); - }); - }); - unittest.group("resource-I18nLanguagesResourceApi", () { unittest.test("method--list", () { var mock = new HttpServerMock(); api.I18nLanguagesResourceApi res = new api.YoutubeApi(mock).i18nLanguages; - var arg_part = "foo"; + var arg_part = buildUnnamed4724(); var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9252,12 +9877,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("i18nLanguages")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/i18nLanguages")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -9277,7 +9899,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9299,7 +9921,7 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.I18nRegionsResourceApi res = new api.YoutubeApi(mock).i18nRegions; - var arg_part = "foo"; + var arg_part = buildUnnamed4725(); var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -9310,12 +9932,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("i18nRegions")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/i18nRegions")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -9335,7 +9954,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -9359,10 +9978,10 @@ api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcasts; var arg_id = "foo"; - var arg_part = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4726(); var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_streamId = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9372,12 +9991,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("liveBroadcasts/bind")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("youtube/v3/liveBroadcasts/bind")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -9398,13 +10014,13 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); unittest.expect( queryMap["streamId"].first, unittest.equals(arg_streamId)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9415,9 +10031,9 @@ }), true); res .bind(arg_id, arg_part, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, streamId: arg_streamId, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLiveBroadcast(response); @@ -9429,12 +10045,12 @@ api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcasts; var arg_id = "foo"; - var arg_part = "foo"; - var arg_displaySlate = true; + var arg_part = buildUnnamed4727(); var arg_offsetTimeMs = "foo"; + var arg_displaySlate = true; + var arg_walltime = "foo"; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - var arg_walltime = core.DateTime.parse("2002-02-27T14:01:02"); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9444,12 +10060,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 22), - unittest.equals("liveBroadcasts/control")); - pathOffset += 22; + unittest.expect(path.substring(pathOffset, pathOffset + 33), + unittest.equals("youtube/v3/liveBroadcasts/control")); + pathOffset += 33; var query = (req.url).query; var queryOffset = 0; @@ -9470,17 +10083,17 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect( + queryMap["offsetTimeMs"].first, unittest.equals(arg_offsetTimeMs)); unittest.expect(queryMap["displaySlate"].first, unittest.equals("$arg_displaySlate")); unittest.expect( - queryMap["offsetTimeMs"].first, unittest.equals(arg_offsetTimeMs)); + queryMap["walltime"].first, unittest.equals(arg_walltime)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); - unittest.expect(core.DateTime.parse(queryMap["walltime"].first), - unittest.equals(arg_walltime)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9491,11 +10104,11 @@ }), true); res .control(arg_id, arg_part, - displaySlate: arg_displaySlate, offsetTimeMs: arg_offsetTimeMs, + displaySlate: arg_displaySlate, + walltime: arg_walltime, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, - walltime: arg_walltime, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLiveBroadcast(response); @@ -9507,8 +10120,8 @@ api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcasts; var arg_id = "foo"; - var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -9518,229 +10131,8 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("liveBroadcasts")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, - unittest.equals(arg_onBehalfOfContentOwnerChannel)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = ""; - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .delete(arg_id, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, - $fields: arg_$fields) - .then(unittest.expectAsync1((_) {})); - }); - - unittest.test("method--insert", () { - var mock = new HttpServerMock(); - api.LiveBroadcastsResourceApi res = - new api.YoutubeApi(mock).liveBroadcasts; - var arg_request = buildLiveBroadcast(); - var arg_part = "foo"; - var arg_onBehalfOfContentOwner = "foo"; - var arg_onBehalfOfContentOwnerChannel = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var obj = new api.LiveBroadcast.fromJson(json); - checkLiveBroadcast(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("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("liveBroadcasts")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, - unittest.equals(arg_onBehalfOfContentOwnerChannel)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildLiveBroadcast()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .insert(arg_request, arg_part, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkLiveBroadcast(response); - }))); - }); - - unittest.test("method--list", () { - var mock = new HttpServerMock(); - api.LiveBroadcastsResourceApi res = - new api.YoutubeApi(mock).liveBroadcasts; - var arg_part = "foo"; - var arg_broadcastStatus = "foo"; - var arg_broadcastType = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; - var arg_mine = true; - var arg_onBehalfOfContentOwner = "foo"; - var arg_onBehalfOfContentOwnerChannel = "foo"; - var arg_pageToken = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("liveBroadcasts")); - pathOffset += 14; - - var query = (req.url).query; - var queryOffset = 0; - var queryMap = <core.String, core.List<core.String>>{}; - addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); - parseBool(n) { - if (n == "true") return true; - if (n == "false") return false; - if (n == null) return null; - throw new core.ArgumentError("Invalid boolean: $n"); - } - - if (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["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["broadcastStatus"].first, - unittest.equals(arg_broadcastStatus)); - unittest.expect(queryMap["broadcastType"].first, - unittest.equals(arg_broadcastType)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, - unittest.equals(arg_onBehalfOfContentOwnerChannel)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); - - var h = { - "content-type": "application/json; charset=utf-8", - }; - var resp = convert.json.encode(buildLiveBroadcastListResponse()); - return new async.Future.value(stringResponse(200, h, resp)); - }), true); - res - .list(arg_part, - broadcastStatus: arg_broadcastStatus, - broadcastType: arg_broadcastType, - id: arg_id, - maxResults: arg_maxResults, - mine: arg_mine, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, - pageToken: arg_pageToken, - $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkLiveBroadcastListResponse(response); - }))); - }); - - unittest.test("method--transition", () { - var mock = new HttpServerMock(); - api.LiveBroadcastsResourceApi res = - new api.YoutubeApi(mock).liveBroadcasts; - var arg_broadcastStatus = "foo"; - var arg_id = "foo"; - var arg_part = "foo"; - var arg_onBehalfOfContentOwner = "foo"; - var arg_onBehalfOfContentOwnerChannel = "foo"; - var arg_$fields = "foo"; - mock.register(unittest.expectAsync2((http.BaseRequest req, json) { - var path = (req.url).path; - var pathOffset = 0; - var index; - var subPart; - unittest.expect( - path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); - pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; unittest.expect(path.substring(pathOffset, pathOffset + 25), - unittest.equals("liveBroadcasts/transition")); + unittest.equals("youtube/v3/liveBroadcasts")); pathOffset += 25; var query = (req.url).query; @@ -9761,40 +10153,35 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["broadcastStatus"].first, - unittest.equals(arg_broadcastStatus)); unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildLiveBroadcast()); + var resp = ""; return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .transition(arg_broadcastStatus, arg_id, arg_part, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + .delete(arg_id, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) - .then(unittest.expectAsync1(((response) { - checkLiveBroadcast(response); - }))); + .then(unittest.expectAsync1((_) {})); }); - unittest.test("method--update", () { + unittest.test("method--insert", () { var mock = new HttpServerMock(); api.LiveBroadcastsResourceApi res = new api.YoutubeApi(mock).liveBroadcasts; var arg_request = buildLiveBroadcast(); - var arg_part = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4728(); var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveBroadcast.fromJson(json); @@ -9807,12 +10194,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("liveBroadcasts")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/liveBroadcasts")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -9832,7 +10216,156 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiveBroadcast()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .insert(arg_request, arg_part, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiveBroadcast(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.LiveBroadcastsResourceApi res = + new api.YoutubeApi(mock).liveBroadcasts; + var arg_part = buildUnnamed4729(); + var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_broadcastType = "foo"; + var arg_maxResults = 42; + var arg_mine = true; + var arg_onBehalfOfContentOwner = "foo"; + var arg_id = buildUnnamed4730(); + var arg_broadcastStatus = "foo"; + var arg_pageToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/liveBroadcasts")); + pathOffset += 25; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["broadcastType"].first, + unittest.equals(arg_broadcastType)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect(queryMap["broadcastStatus"].first, + unittest.equals(arg_broadcastStatus)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiveBroadcastListResponse()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_part, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + broadcastType: arg_broadcastType, + maxResults: arg_maxResults, + mine: arg_mine, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + id: arg_id, + broadcastStatus: arg_broadcastStatus, + pageToken: arg_pageToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiveBroadcastListResponse(response); + }))); + }); + + unittest.test("method--transition", () { + var mock = new HttpServerMock(); + api.LiveBroadcastsResourceApi res = + new api.YoutubeApi(mock).liveBroadcasts; + var arg_id = "foo"; + var arg_broadcastStatus = "foo"; + var arg_part = buildUnnamed4731(); + var arg_onBehalfOfContentOwner = "foo"; + var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 36), + unittest.equals("youtube/v3/liveBroadcasts/transition")); + pathOffset += 36; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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)); + unittest.expect(queryMap["broadcastStatus"].first, + unittest.equals(arg_broadcastStatus)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, @@ -9846,7 +10379,7 @@ return new async.Future.value(stringResponse(200, h, resp)); }), true); res - .update(arg_request, arg_part, + .transition(arg_id, arg_broadcastStatus, arg_part, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, $fields: arg_$fields) @@ -9854,6 +10387,71 @@ checkLiveBroadcast(response); }))); }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.LiveBroadcastsResourceApi res = + new api.YoutubeApi(mock).liveBroadcasts; + var arg_request = buildLiveBroadcast(); + var arg_part = buildUnnamed4732(); + var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.LiveBroadcast.fromJson(json); + checkLiveBroadcast(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 + 25), + unittest.equals("youtube/v3/liveBroadcasts")); + pathOffset += 25; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildLiveBroadcast()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .update(arg_request, arg_part, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkLiveBroadcast(response); + }))); + }); }); unittest.group("resource-LiveChatBansResourceApi", () { @@ -9870,12 +10468,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("liveChat/bans")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/liveChat/bans")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -9913,7 +10508,7 @@ var mock = new HttpServerMock(); api.LiveChatBansResourceApi res = new api.YoutubeApi(mock).liveChatBans; var arg_request = buildLiveChatBan(); - var arg_part = "foo"; + var arg_part = buildUnnamed4733(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatBan.fromJson(json); @@ -9926,12 +10521,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("liveChat/bans")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/liveChat/bans")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -9951,7 +10543,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -9983,12 +10575,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("liveChat/messages")); - pathOffset += 17; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("youtube/v3/liveChat/messages")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -10027,7 +10616,7 @@ api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMessages; var arg_request = buildLiveChatMessage(); - var arg_part = "foo"; + var arg_part = buildUnnamed4734(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatMessage.fromJson(json); @@ -10040,12 +10629,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("liveChat/messages")); - pathOffset += 17; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("youtube/v3/liveChat/messages")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -10065,7 +10651,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10086,11 +10672,11 @@ api.LiveChatMessagesResourceApi res = new api.YoutubeApi(mock).liveChatMessages; var arg_liveChatId = "foo"; - var arg_part = "foo"; + var arg_part = buildUnnamed4735(); var arg_hl = "foo"; - var arg_maxResults = 42; - var arg_pageToken = "foo"; var arg_profileImageSize = 42; + var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10100,12 +10686,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("liveChat/messages")); - pathOffset += 17; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("youtube/v3/liveChat/messages")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -10127,14 +10710,14 @@ } unittest.expect( queryMap["liveChatId"].first, unittest.equals(arg_liveChatId)); - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["profileImageSize"].first), unittest.equals(arg_profileImageSize)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10146,9 +10729,9 @@ res .list(arg_liveChatId, arg_part, hl: arg_hl, - maxResults: arg_maxResults, - pageToken: arg_pageToken, profileImageSize: arg_profileImageSize, + pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLiveChatMessageListResponse(response); @@ -10171,12 +10754,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("liveChat/moderators")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("youtube/v3/liveChat/moderators")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -10215,7 +10795,7 @@ api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatModerators; var arg_request = buildLiveChatModerator(); - var arg_part = "foo"; + var arg_part = buildUnnamed4736(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.LiveChatModerator.fromJson(json); @@ -10228,12 +10808,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("liveChat/moderators")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("youtube/v3/liveChat/moderators")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -10253,7 +10830,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10274,9 +10851,9 @@ api.LiveChatModeratorsResourceApi res = new api.YoutubeApi(mock).liveChatModerators; var arg_liveChatId = "foo"; - var arg_part = "foo"; - var arg_maxResults = 42; + var arg_part = buildUnnamed4737(); var arg_pageToken = "foo"; + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10286,12 +10863,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 19), - unittest.equals("liveChat/moderators")); - pathOffset += 19; + unittest.expect(path.substring(pathOffset, pathOffset + 30), + unittest.equals("youtube/v3/liveChat/moderators")); + pathOffset += 30; var query = (req.url).query; var queryOffset = 0; @@ -10313,11 +10887,11 @@ } unittest.expect( queryMap["liveChatId"].first, unittest.equals(arg_liveChatId)); - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10328,8 +10902,8 @@ }), true); res .list(arg_liveChatId, arg_part, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLiveChatModeratorListResponse(response); @@ -10342,8 +10916,8 @@ var mock = new HttpServerMock(); api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; var arg_id = "foo"; - var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10353,12 +10927,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("liveStreams")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/liveStreams")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -10379,10 +10950,10 @@ } } unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10393,8 +10964,8 @@ }), true); res .delete(arg_id, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1((_) {})); }); @@ -10403,7 +10974,7 @@ var mock = new HttpServerMock(); api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; var arg_request = buildLiveStream(); - var arg_part = "foo"; + var arg_part = buildUnnamed4738(); var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_$fields = "foo"; @@ -10418,12 +10989,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("liveStreams")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/liveStreams")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -10443,7 +11011,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, @@ -10469,13 +11037,13 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; - var arg_part = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; + var arg_part = buildUnnamed4739(); var arg_mine = true; - var arg_onBehalfOfContentOwner = "foo"; - var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_pageToken = "foo"; + var arg_onBehalfOfContentOwner = "foo"; + var arg_maxResults = 42; + var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_id = buildUnnamed4740(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10485,12 +11053,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("liveStreams")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/liveStreams")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -10510,17 +11075,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, - unittest.equals(arg_onBehalfOfContentOwnerChannel)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10531,12 +11096,12 @@ }), true); res .list(arg_part, - id: arg_id, - maxResults: arg_maxResults, mine: arg_mine, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, pageToken: arg_pageToken, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + maxResults: arg_maxResults, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + id: arg_id, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkLiveStreamListResponse(response); @@ -10547,7 +11112,7 @@ var mock = new HttpServerMock(); api.LiveStreamsResourceApi res = new api.YoutubeApi(mock).liveStreams; var arg_request = buildLiveStream(); - var arg_part = "foo"; + var arg_part = buildUnnamed4741(); var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_$fields = "foo"; @@ -10562,12 +11127,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("liveStreams")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/liveStreams")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -10587,7 +11149,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, @@ -10615,12 +11177,12 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.MembersResourceApi res = new api.YoutubeApi(mock).members; - var arg_part = "foo"; - var arg_filterByMemberChannelId = "foo"; + var arg_part = buildUnnamed4742(); var arg_hasAccessToLevel = "foo"; - var arg_maxResults = 42; - var arg_mode = "foo"; var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_filterByMemberChannelId = "foo"; + var arg_mode = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10630,12 +11192,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 7), - unittest.equals("members")); - pathOffset += 7; + unittest.expect(path.substring(pathOffset, pathOffset + 18), + unittest.equals("youtube/v3/members")); + pathOffset += 18; var query = (req.url).query; var queryOffset = 0; @@ -10655,16 +11214,16 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["filterByMemberChannelId"].first, - unittest.equals(arg_filterByMemberChannelId)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["hasAccessToLevel"].first, unittest.equals(arg_hasAccessToLevel)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["mode"].first, unittest.equals(arg_mode)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["filterByMemberChannelId"].first, + unittest.equals(arg_filterByMemberChannelId)); + unittest.expect(queryMap["mode"].first, unittest.equals(arg_mode)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10675,11 +11234,11 @@ }), true); res .list(arg_part, - filterByMemberChannelId: arg_filterByMemberChannelId, hasAccessToLevel: arg_hasAccessToLevel, - maxResults: arg_maxResults, - mode: arg_mode, pageToken: arg_pageToken, + maxResults: arg_maxResults, + filterByMemberChannelId: arg_filterByMemberChannelId, + mode: arg_mode, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkMemberListResponse(response); @@ -10692,7 +11251,7 @@ var mock = new HttpServerMock(); api.MembershipsLevelsResourceApi res = new api.YoutubeApi(mock).membershipsLevels; - var arg_part = "foo"; + var arg_part = buildUnnamed4743(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10702,12 +11261,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 17), - unittest.equals("membershipsLevels")); - pathOffset += 17; + unittest.expect(path.substring(pathOffset, pathOffset + 28), + unittest.equals("youtube/v3/membershipsLevels")); + pathOffset += 28; var query = (req.url).query; var queryOffset = 0; @@ -10727,7 +11283,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10759,12 +11315,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("playlistItems")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/playlistItems")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10806,7 +11359,7 @@ var mock = new HttpServerMock(); api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_request = buildPlaylistItem(); - var arg_part = "foo"; + var arg_part = buildUnnamed4744(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -10820,12 +11373,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("playlistItems")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/playlistItems")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10845,7 +11395,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -10868,13 +11418,13 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; - var arg_part = "foo"; - var arg_id = "foo"; + var arg_part = buildUnnamed4745(); var arg_maxResults = 42; + var arg_id = buildUnnamed4746(); var arg_onBehalfOfContentOwner = "foo"; var arg_pageToken = "foo"; - var arg_playlistId = "foo"; var arg_videoId = "foo"; + var arg_playlistId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -10884,12 +11434,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("playlistItems")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/playlistItems")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10909,18 +11456,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(core.int.parse(queryMap["maxResults"].first), unittest.equals(arg_maxResults)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect( - queryMap["playlistId"].first, unittest.equals(arg_playlistId)); - unittest.expect( queryMap["videoId"].first, unittest.equals(arg_videoId)); + unittest.expect( + queryMap["playlistId"].first, unittest.equals(arg_playlistId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -10931,12 +11478,12 @@ }), true); res .list(arg_part, - id: arg_id, maxResults: arg_maxResults, + id: arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, pageToken: arg_pageToken, - playlistId: arg_playlistId, videoId: arg_videoId, + playlistId: arg_playlistId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlaylistItemListResponse(response); @@ -10947,7 +11494,7 @@ var mock = new HttpServerMock(); api.PlaylistItemsResourceApi res = new api.YoutubeApi(mock).playlistItems; var arg_request = buildPlaylistItem(); - var arg_part = "foo"; + var arg_part = buildUnnamed4747(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -10961,12 +11508,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("playlistItems")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/playlistItems")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -10986,7 +11530,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -11022,12 +11566,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("playlists")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("youtube/v3/playlists")); + pathOffset += 20; var query = (req.url).query; var queryOffset = 0; @@ -11069,9 +11610,9 @@ var mock = new HttpServerMock(); api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; var arg_request = buildPlaylist(); - var arg_part = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4748(); var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Playlist.fromJson(json); @@ -11084,12 +11625,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("playlists")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("youtube/v3/playlists")); + pathOffset += 20; var query = (req.url).query; var queryOffset = 0; @@ -11109,11 +11647,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11124,8 +11662,8 @@ }), true); res .insert(arg_request, arg_part, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlaylist(response); @@ -11135,15 +11673,15 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; - var arg_part = "foo"; - var arg_channelId = "foo"; - var arg_hl = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; - var arg_mine = true; - var arg_onBehalfOfContentOwner = "foo"; + var arg_part = buildUnnamed4749(); var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_onBehalfOfContentOwner = "foo"; + var arg_maxResults = 42; + var arg_id = buildUnnamed4750(); + var arg_channelId = "foo"; var arg_pageToken = "foo"; + var arg_hl = "foo"; + var arg_mine = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11153,12 +11691,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("playlists")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("youtube/v3/playlists")); + pathOffset += 20; var query = (req.url).query; var queryOffset = 0; @@ -11178,20 +11713,20 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect( - queryMap["channelId"].first, unittest.equals(arg_channelId)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect( + queryMap["channelId"].first, unittest.equals(arg_channelId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); + unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11202,14 +11737,14 @@ }), true); res .list(arg_part, - channelId: arg_channelId, - hl: arg_hl, - id: arg_id, - maxResults: arg_maxResults, - mine: arg_mine, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + maxResults: arg_maxResults, + id: arg_id, + channelId: arg_channelId, pageToken: arg_pageToken, + hl: arg_hl, + mine: arg_mine, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkPlaylistListResponse(response); @@ -11220,7 +11755,7 @@ var mock = new HttpServerMock(); api.PlaylistsResourceApi res = new api.YoutubeApi(mock).playlists; var arg_request = buildPlaylist(); - var arg_part = "foo"; + var arg_part = buildUnnamed4751(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -11234,12 +11769,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 9), - unittest.equals("playlists")); - pathOffset += 9; + unittest.expect(path.substring(pathOffset, pathOffset + 20), + unittest.equals("youtube/v3/playlists")); + pathOffset += 20; var query = (req.url).query; var queryOffset = 0; @@ -11259,7 +11791,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -11284,37 +11816,37 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.SearchResourceApi res = new api.YoutubeApi(mock).search; - var arg_part = "foo"; - var arg_channelId = "foo"; - var arg_channelType = "foo"; - var arg_eventType = "foo"; - var arg_forContentOwner = true; - var arg_forDeveloper = true; - var arg_forMine = true; - var arg_location = "foo"; - var arg_locationRadius = "foo"; - var arg_maxResults = 42; - var arg_onBehalfOfContentOwner = "foo"; - var arg_order = "foo"; - var arg_pageToken = "foo"; - var arg_publishedAfter = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_publishedBefore = core.DateTime.parse("2002-02-27T14:01:02"); - var arg_q = "foo"; - var arg_regionCode = "foo"; - var arg_relatedToVideoId = "foo"; - var arg_relevanceLanguage = "foo"; - var arg_safeSearch = "foo"; - var arg_topicId = "foo"; - var arg_type = "foo"; + var arg_part = buildUnnamed4752(); var arg_videoCaption = "foo"; - var arg_videoCategoryId = "foo"; + var arg_locationRadius = "foo"; + var arg_relevanceLanguage = "foo"; + var arg_forMine = true; + var arg_channelType = "foo"; var arg_videoDefinition = "foo"; - var arg_videoDimension = "foo"; - var arg_videoDuration = "foo"; - var arg_videoEmbeddable = "foo"; - var arg_videoLicense = "foo"; - var arg_videoSyndicated = "foo"; + var arg_eventType = "foo"; + var arg_topicId = "foo"; + var arg_forDeveloper = true; var arg_videoType = "foo"; + var arg_relatedToVideoId = "foo"; + var arg_q = "foo"; + var arg_safeSearch = "foo"; + var arg_videoEmbeddable = "foo"; + var arg_pageToken = "foo"; + var arg_videoLicense = "foo"; + var arg_publishedBefore = "foo"; + var arg_videoSyndicated = "foo"; + var arg_videoCategoryId = "foo"; + var arg_maxResults = 42; + var arg_channelId = "foo"; + var arg_videoDimension = "foo"; + var arg_onBehalfOfContentOwner = "foo"; + var arg_location = "foo"; + var arg_regionCode = "foo"; + var arg_order = "foo"; + var arg_type = buildUnnamed4753(); + var arg_videoDuration = "foo"; + var arg_forContentOwner = true; + var arg_publishedAfter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11324,12 +11856,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("search")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("youtube/v3/search")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -11349,64 +11878,64 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( - queryMap["channelId"].first, unittest.equals(arg_channelId)); - unittest.expect( - queryMap["channelType"].first, unittest.equals(arg_channelType)); - unittest.expect( - queryMap["eventType"].first, unittest.equals(arg_eventType)); - unittest.expect(queryMap["forContentOwner"].first, - unittest.equals("$arg_forContentOwner")); - unittest.expect(queryMap["forDeveloper"].first, - unittest.equals("$arg_forDeveloper")); - unittest.expect( - queryMap["forMine"].first, unittest.equals("$arg_forMine")); - unittest.expect( - queryMap["location"].first, unittest.equals(arg_location)); + queryMap["videoCaption"].first, unittest.equals(arg_videoCaption)); unittest.expect(queryMap["locationRadius"].first, unittest.equals(arg_locationRadius)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(core.DateTime.parse(queryMap["publishedAfter"].first), - unittest.equals(arg_publishedAfter)); - unittest.expect(core.DateTime.parse(queryMap["publishedBefore"].first), - unittest.equals(arg_publishedBefore)); - unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); - unittest.expect( - queryMap["regionCode"].first, unittest.equals(arg_regionCode)); - unittest.expect(queryMap["relatedToVideoId"].first, - unittest.equals(arg_relatedToVideoId)); unittest.expect(queryMap["relevanceLanguage"].first, unittest.equals(arg_relevanceLanguage)); unittest.expect( - queryMap["safeSearch"].first, unittest.equals(arg_safeSearch)); + queryMap["forMine"].first, unittest.equals("$arg_forMine")); unittest.expect( - queryMap["topicId"].first, unittest.equals(arg_topicId)); - unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); - unittest.expect( - queryMap["videoCaption"].first, unittest.equals(arg_videoCaption)); - unittest.expect(queryMap["videoCategoryId"].first, - unittest.equals(arg_videoCategoryId)); + queryMap["channelType"].first, unittest.equals(arg_channelType)); unittest.expect(queryMap["videoDefinition"].first, unittest.equals(arg_videoDefinition)); - unittest.expect(queryMap["videoDimension"].first, - unittest.equals(arg_videoDimension)); - unittest.expect(queryMap["videoDuration"].first, - unittest.equals(arg_videoDuration)); + unittest.expect( + queryMap["eventType"].first, unittest.equals(arg_eventType)); + unittest.expect( + queryMap["topicId"].first, unittest.equals(arg_topicId)); + unittest.expect(queryMap["forDeveloper"].first, + unittest.equals("$arg_forDeveloper")); + unittest.expect( + queryMap["videoType"].first, unittest.equals(arg_videoType)); + unittest.expect(queryMap["relatedToVideoId"].first, + unittest.equals(arg_relatedToVideoId)); + unittest.expect(queryMap["q"].first, unittest.equals(arg_q)); + unittest.expect( + queryMap["safeSearch"].first, unittest.equals(arg_safeSearch)); unittest.expect(queryMap["videoEmbeddable"].first, unittest.equals(arg_videoEmbeddable)); unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect( queryMap["videoLicense"].first, unittest.equals(arg_videoLicense)); + unittest.expect(queryMap["publishedBefore"].first, + unittest.equals(arg_publishedBefore)); unittest.expect(queryMap["videoSyndicated"].first, unittest.equals(arg_videoSyndicated)); + unittest.expect(queryMap["videoCategoryId"].first, + unittest.equals(arg_videoCategoryId)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect( - queryMap["videoType"].first, unittest.equals(arg_videoType)); + queryMap["channelId"].first, unittest.equals(arg_channelId)); + unittest.expect(queryMap["videoDimension"].first, + unittest.equals(arg_videoDimension)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect( + queryMap["location"].first, unittest.equals(arg_location)); + unittest.expect( + queryMap["regionCode"].first, unittest.equals(arg_regionCode)); + unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); + unittest.expect(queryMap["type"], unittest.equals(arg_type)); + unittest.expect(queryMap["videoDuration"].first, + unittest.equals(arg_videoDuration)); + unittest.expect(queryMap["forContentOwner"].first, + unittest.equals("$arg_forContentOwner")); + unittest.expect(queryMap["publishedAfter"].first, + unittest.equals(arg_publishedAfter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11417,36 +11946,36 @@ }), true); res .list(arg_part, - channelId: arg_channelId, - channelType: arg_channelType, - eventType: arg_eventType, - forContentOwner: arg_forContentOwner, - forDeveloper: arg_forDeveloper, - forMine: arg_forMine, - location: arg_location, - locationRadius: arg_locationRadius, - maxResults: arg_maxResults, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - order: arg_order, - pageToken: arg_pageToken, - publishedAfter: arg_publishedAfter, - publishedBefore: arg_publishedBefore, - q: arg_q, - regionCode: arg_regionCode, - relatedToVideoId: arg_relatedToVideoId, - relevanceLanguage: arg_relevanceLanguage, - safeSearch: arg_safeSearch, - topicId: arg_topicId, - type: arg_type, videoCaption: arg_videoCaption, - videoCategoryId: arg_videoCategoryId, + locationRadius: arg_locationRadius, + relevanceLanguage: arg_relevanceLanguage, + forMine: arg_forMine, + channelType: arg_channelType, videoDefinition: arg_videoDefinition, - videoDimension: arg_videoDimension, - videoDuration: arg_videoDuration, - videoEmbeddable: arg_videoEmbeddable, - videoLicense: arg_videoLicense, - videoSyndicated: arg_videoSyndicated, + eventType: arg_eventType, + topicId: arg_topicId, + forDeveloper: arg_forDeveloper, videoType: arg_videoType, + relatedToVideoId: arg_relatedToVideoId, + q: arg_q, + safeSearch: arg_safeSearch, + videoEmbeddable: arg_videoEmbeddable, + pageToken: arg_pageToken, + videoLicense: arg_videoLicense, + publishedBefore: arg_publishedBefore, + videoSyndicated: arg_videoSyndicated, + videoCategoryId: arg_videoCategoryId, + maxResults: arg_maxResults, + channelId: arg_channelId, + videoDimension: arg_videoDimension, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + location: arg_location, + regionCode: arg_regionCode, + order: arg_order, + type: arg_type, + videoDuration: arg_videoDuration, + forContentOwner: arg_forContentOwner, + publishedAfter: arg_publishedAfter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSearchListResponse(response); @@ -11458,10 +11987,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.SponsorsResourceApi res = new api.YoutubeApi(mock).sponsors; - var arg_part = "foo"; - var arg_filter = "foo"; - var arg_maxResults = 42; + var arg_part = buildUnnamed4754(); var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_filter = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11471,12 +12000,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 8), - unittest.equals("sponsors")); - pathOffset += 8; + unittest.expect(path.substring(pathOffset, pathOffset + 19), + unittest.equals("youtube/v3/sponsors")); + pathOffset += 19; var query = (req.url).query; var queryOffset = 0; @@ -11496,12 +12022,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11512,9 +12038,9 @@ }), true); res .list(arg_part, - filter: arg_filter, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, + filter: arg_filter, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSponsorListResponse(response); @@ -11536,12 +12062,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("subscriptions")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/subscriptions")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -11579,7 +12102,7 @@ var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; var arg_request = buildSubscription(); - var arg_part = "foo"; + var arg_part = buildUnnamed4755(); var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Subscription.fromJson(json); @@ -11592,12 +12115,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("subscriptions")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/subscriptions")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -11617,7 +12137,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11636,18 +12156,18 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.SubscriptionsResourceApi res = new api.YoutubeApi(mock).subscriptions; - var arg_part = "foo"; - var arg_channelId = "foo"; - var arg_forChannelId = "foo"; - var arg_id = "foo"; - var arg_maxResults = 42; - var arg_mine = true; - var arg_myRecentSubscribers = true; + var arg_part = buildUnnamed4756(); + var arg_order = "foo"; var arg_mySubscribers = true; var arg_onBehalfOfContentOwner = "foo"; var arg_onBehalfOfContentOwnerChannel = "foo"; - var arg_order = "foo"; + var arg_forChannelId = "foo"; var arg_pageToken = "foo"; + var arg_mine = true; + var arg_myRecentSubscribers = true; + var arg_channelId = "foo"; + var arg_id = buildUnnamed4757(); + var arg_maxResults = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11657,12 +12177,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 13), - unittest.equals("subscriptions")); - pathOffset += 13; + unittest.expect(path.substring(pathOffset, pathOffset + 24), + unittest.equals("youtube/v3/subscriptions")); + pathOffset += 24; var query = (req.url).query; var queryOffset = 0; @@ -11682,26 +12199,26 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect( - queryMap["channelId"].first, unittest.equals(arg_channelId)); - unittest.expect( - queryMap["forChannelId"].first, unittest.equals(arg_forChannelId)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); - unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); - unittest.expect(queryMap["myRecentSubscribers"].first, - unittest.equals("$arg_myRecentSubscribers")); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); unittest.expect(queryMap["mySubscribers"].first, unittest.equals("$arg_mySubscribers")); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, unittest.equals(arg_onBehalfOfContentOwnerChannel)); - unittest.expect(queryMap["order"].first, unittest.equals(arg_order)); + unittest.expect( + queryMap["forChannelId"].first, unittest.equals(arg_forChannelId)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); + unittest.expect(queryMap["myRecentSubscribers"].first, + unittest.equals("$arg_myRecentSubscribers")); + unittest.expect( + queryMap["channelId"].first, unittest.equals(arg_channelId)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11712,17 +12229,17 @@ }), true); res .list(arg_part, - channelId: arg_channelId, - forChannelId: arg_forChannelId, - id: arg_id, - maxResults: arg_maxResults, - mine: arg_mine, - myRecentSubscribers: arg_myRecentSubscribers, + order: arg_order, mySubscribers: arg_mySubscribers, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, - order: arg_order, + forChannelId: arg_forChannelId, pageToken: arg_pageToken, + mine: arg_mine, + myRecentSubscribers: arg_myRecentSubscribers, + channelId: arg_channelId, + id: arg_id, + maxResults: arg_maxResults, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSubscriptionListResponse(response); @@ -11735,10 +12252,10 @@ var mock = new HttpServerMock(); api.SuperChatEventsResourceApi res = new api.YoutubeApi(mock).superChatEvents; - var arg_part = "foo"; - var arg_hl = "foo"; - var arg_maxResults = 42; + var arg_part = buildUnnamed4758(); var arg_pageToken = "foo"; + var arg_maxResults = 42; + var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11748,12 +12265,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("superChatEvents")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/superChatEvents")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -11773,12 +12287,12 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(core.int.parse(queryMap["maxResults"].first), - unittest.equals(arg_maxResults)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["maxResults"].first), + unittest.equals(arg_maxResults)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11789,9 +12303,9 @@ }), true); res .list(arg_part, - hl: arg_hl, - maxResults: arg_maxResults, pageToken: arg_pageToken, + maxResults: arg_maxResults, + hl: arg_hl, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkSuperChatEventListResponse(response); @@ -11799,6 +12313,293 @@ }); }); + unittest.group("resource-TestsResourceApi", () { + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.TestsResourceApi res = new api.YoutubeApi(mock).tests; + var arg_request = buildTestItem(); + var arg_part = buildUnnamed4759(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.TestItem.fromJson(json); + checkTestItem(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("youtube/v3/tests")); + pathOffset += 16; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildTestItem()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .insert(arg_request, arg_part, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkTestItem(response); + }))); + }); + }); + + unittest.group("resource-ThirdPartyLinksResourceApi", () { + unittest.test("method--delete", () { + var mock = new HttpServerMock(); + api.ThirdPartyLinksResourceApi res = + new api.YoutubeApi(mock).thirdPartyLinks; + var arg_linkingToken = "foo"; + var arg_type = "foo"; + var arg_part = buildUnnamed4760(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/thirdPartyLinks")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["linkingToken"].first, unittest.equals(arg_linkingToken)); + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = ""; + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .delete(arg_linkingToken, arg_type, + part: arg_part, $fields: arg_$fields) + .then(unittest.expectAsync1((_) {})); + }); + + unittest.test("method--insert", () { + var mock = new HttpServerMock(); + api.ThirdPartyLinksResourceApi res = + new api.YoutubeApi(mock).thirdPartyLinks; + var arg_request = buildThirdPartyLink(); + var arg_part = buildUnnamed4761(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ThirdPartyLink.fromJson(json); + checkThirdPartyLink(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 + 26), + unittest.equals("youtube/v3/thirdPartyLinks")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildThirdPartyLink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .insert(arg_request, arg_part, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkThirdPartyLink(response); + }))); + }); + + unittest.test("method--list", () { + var mock = new HttpServerMock(); + api.ThirdPartyLinksResourceApi res = + new api.YoutubeApi(mock).thirdPartyLinks; + var arg_part = buildUnnamed4762(); + var arg_type = "foo"; + var arg_linkingToken = "foo"; + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var path = (req.url).path; + var pathOffset = 0; + var index; + var subPart; + unittest.expect( + path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); + pathOffset += 1; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/thirdPartyLinks")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["type"].first, unittest.equals(arg_type)); + unittest.expect( + queryMap["linkingToken"].first, unittest.equals(arg_linkingToken)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildThirdPartyLink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .list(arg_part, + type: arg_type, + linkingToken: arg_linkingToken, + $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkThirdPartyLink(response); + }))); + }); + + unittest.test("method--update", () { + var mock = new HttpServerMock(); + api.ThirdPartyLinksResourceApi res = + new api.YoutubeApi(mock).thirdPartyLinks; + var arg_request = buildThirdPartyLink(); + var arg_part = buildUnnamed4763(); + var arg_$fields = "foo"; + mock.register(unittest.expectAsync2((http.BaseRequest req, json) { + var obj = new api.ThirdPartyLink.fromJson(json); + checkThirdPartyLink(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 + 26), + unittest.equals("youtube/v3/thirdPartyLinks")); + pathOffset += 26; + + var query = (req.url).query; + var queryOffset = 0; + var queryMap = <core.String, core.List<core.String>>{}; + addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); + parseBool(n) { + if (n == "true") return true; + if (n == "false") return false; + if (n == null) return null; + throw new core.ArgumentError("Invalid boolean: $n"); + } + + if (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["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); + + var h = { + "content-type": "application/json; charset=utf-8", + }; + var resp = convert.json.encode(buildThirdPartyLink()); + return new async.Future.value(stringResponse(200, h, resp)); + }), true); + res + .update(arg_request, arg_part, $fields: arg_$fields) + .then(unittest.expectAsync1(((response) { + checkThirdPartyLink(response); + }))); + }); + }); + unittest.group("resource-ThumbnailsResourceApi", () { unittest.test("method--set", () { // TODO: Implement tests for media upload; @@ -11817,12 +12618,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("thumbnails/set")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/thumbnails/set")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -11869,7 +12667,7 @@ var mock = new HttpServerMock(); api.VideoAbuseReportReasonsResourceApi res = new api.YoutubeApi(mock).videoAbuseReportReasons; - var arg_part = "foo"; + var arg_part = buildUnnamed4764(); var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -11880,12 +12678,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 23), - unittest.equals("videoAbuseReportReasons")); - pathOffset += 23; + unittest.expect(path.substring(pathOffset, pathOffset + 34), + unittest.equals("youtube/v3/videoAbuseReportReasons")); + pathOffset += 34; var query = (req.url).query; var queryOffset = 0; @@ -11905,7 +12700,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -11929,10 +12724,10 @@ var mock = new HttpServerMock(); api.VideoCategoriesResourceApi res = new api.YoutubeApi(mock).videoCategories; - var arg_part = "foo"; - var arg_hl = "foo"; - var arg_id = "foo"; + var arg_part = buildUnnamed4765(); var arg_regionCode = "foo"; + var arg_id = buildUnnamed4766(); + var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -11942,12 +12737,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 15), - unittest.equals("videoCategories")); - pathOffset += 15; + unittest.expect(path.substring(pathOffset, pathOffset + 26), + unittest.equals("youtube/v3/videoCategories")); + pathOffset += 26; var query = (req.url).query; var queryOffset = 0; @@ -11967,11 +12759,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["regionCode"].first, unittest.equals(arg_regionCode)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -11982,9 +12774,9 @@ }), true); res .list(arg_part, - hl: arg_hl, - id: arg_id, regionCode: arg_regionCode, + id: arg_id, + hl: arg_hl, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVideoCategoryListResponse(response); @@ -12007,12 +12799,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("videos")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("youtube/v3/videos")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -12053,7 +12842,7 @@ unittest.test("method--getRating", () { var mock = new HttpServerMock(); api.VideosResourceApi res = new api.YoutubeApi(mock).videos; - var arg_id = "foo"; + var arg_id = buildUnnamed4767(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -12064,12 +12853,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("videos/getRating")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 27), + unittest.equals("youtube/v3/videos/getRating")); + pathOffset += 27; var query = (req.url).query; var queryOffset = 0; @@ -12089,7 +12875,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -12097,7 +12883,7 @@ var h = { "content-type": "application/json; charset=utf-8", }; - var resp = convert.json.encode(buildVideoGetRatingResponse()); + var resp = convert.json.encode(buildVideoRatingListResponse()); return new async.Future.value(stringResponse(200, h, resp)); }), true); res @@ -12105,7 +12891,7 @@ onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { - checkVideoGetRatingResponse(response); + checkVideoRatingListResponse(response); }))); }); @@ -12116,12 +12902,12 @@ var mock = new HttpServerMock(); api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_request = buildVideo(); - var arg_part = "foo"; - var arg_autoLevels = true; - var arg_notifySubscribers = true; - var arg_onBehalfOfContentOwner = "foo"; - var arg_onBehalfOfContentOwnerChannel = "foo"; + var arg_part = buildUnnamed4768(); var arg_stabilize = true; + var arg_autoLevels = true; + var arg_onBehalfOfContentOwner = "foo"; + var arg_notifySubscribers = true; + var arg_onBehalfOfContentOwnerChannel = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var obj = new api.Video.fromJson(json); @@ -12134,12 +12920,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("videos")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("youtube/v3/videos")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -12159,17 +12942,17 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect( - queryMap["autoLevels"].first, unittest.equals("$arg_autoLevels")); - unittest.expect(queryMap["notifySubscribers"].first, - unittest.equals("$arg_notifySubscribers")); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, - unittest.equals(arg_onBehalfOfContentOwnerChannel)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect( queryMap["stabilize"].first, unittest.equals("$arg_stabilize")); + unittest.expect( + queryMap["autoLevels"].first, unittest.equals("$arg_autoLevels")); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["notifySubscribers"].first, + unittest.equals("$arg_notifySubscribers")); + unittest.expect(queryMap["onBehalfOfContentOwnerChannel"].first, + unittest.equals(arg_onBehalfOfContentOwnerChannel)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12180,11 +12963,11 @@ }), true); res .insert(arg_request, arg_part, - autoLevels: arg_autoLevels, - notifySubscribers: arg_notifySubscribers, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, stabilize: arg_stabilize, + autoLevels: arg_autoLevels, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + notifySubscribers: arg_notifySubscribers, + onBehalfOfContentOwnerChannel: arg_onBehalfOfContentOwnerChannel, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVideo(response); @@ -12194,19 +12977,19 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.VideosResourceApi res = new api.YoutubeApi(mock).videos; - var arg_part = "foo"; - var arg_chart = "foo"; - var arg_hl = "foo"; - var arg_id = "foo"; - var arg_locale = "foo"; + var arg_part = buildUnnamed4769(); + var arg_onBehalfOfContentOwner = "foo"; var arg_maxHeight = 42; + var arg_myRating = "foo"; + var arg_videoCategoryId = "foo"; + var arg_id = buildUnnamed4770(); + var arg_regionCode = "foo"; + var arg_pageToken = "foo"; + var arg_locale = "foo"; + var arg_chart = "foo"; var arg_maxResults = 42; var arg_maxWidth = 42; - var arg_myRating = "foo"; - var arg_onBehalfOfContentOwner = "foo"; - var arg_pageToken = "foo"; - var arg_regionCode = "foo"; - var arg_videoCategoryId = "foo"; + var arg_hl = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -12216,12 +12999,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("videos")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("youtube/v3/videos")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -12241,27 +13021,27 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); - unittest.expect(queryMap["chart"].first, unittest.equals(arg_chart)); - 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(queryMap["part"], unittest.equals(arg_part)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(core.int.parse(queryMap["maxHeight"].first), unittest.equals(arg_maxHeight)); + unittest.expect( + queryMap["myRating"].first, unittest.equals(arg_myRating)); + unittest.expect(queryMap["videoCategoryId"].first, + unittest.equals(arg_videoCategoryId)); + unittest.expect(queryMap["id"], unittest.equals(arg_id)); + unittest.expect( + queryMap["regionCode"].first, unittest.equals(arg_regionCode)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["locale"].first, unittest.equals(arg_locale)); + unittest.expect(queryMap["chart"].first, unittest.equals(arg_chart)); 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)); - unittest.expect( - queryMap["regionCode"].first, unittest.equals(arg_regionCode)); - unittest.expect(queryMap["videoCategoryId"].first, - unittest.equals(arg_videoCategoryId)); + unittest.expect(queryMap["hl"].first, unittest.equals(arg_hl)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -12272,18 +13052,18 @@ }), true); res .list(arg_part, - chart: arg_chart, - hl: arg_hl, - id: arg_id, - locale: arg_locale, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, maxHeight: arg_maxHeight, + myRating: arg_myRating, + videoCategoryId: arg_videoCategoryId, + id: arg_id, + regionCode: arg_regionCode, + pageToken: arg_pageToken, + locale: arg_locale, + chart: arg_chart, maxResults: arg_maxResults, maxWidth: arg_maxWidth, - myRating: arg_myRating, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - pageToken: arg_pageToken, - regionCode: arg_regionCode, - videoCategoryId: arg_videoCategoryId, + hl: arg_hl, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkVideoListResponse(response); @@ -12304,12 +13084,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("videos/rate")); - pathOffset += 11; + unittest.expect(path.substring(pathOffset, pathOffset + 22), + unittest.equals("youtube/v3/videos/rate")); + pathOffset += 22; var query = (req.url).query; var queryOffset = 0; @@ -12361,12 +13138,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 18), - unittest.equals("videos/reportAbuse")); - pathOffset += 18; + unittest.expect(path.substring(pathOffset, pathOffset + 29), + unittest.equals("youtube/v3/videos/reportAbuse")); + pathOffset += 29; var query = (req.url).query; var queryOffset = 0; @@ -12407,7 +13181,7 @@ var mock = new HttpServerMock(); api.VideosResourceApi res = new api.YoutubeApi(mock).videos; var arg_request = buildVideo(); - var arg_part = "foo"; + var arg_part = buildUnnamed4771(); var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -12421,12 +13195,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 6), - unittest.equals("videos")); - pathOffset += 6; + unittest.expect(path.substring(pathOffset, pathOffset + 17), + unittest.equals("youtube/v3/videos")); + pathOffset += 17; var query = (req.url).query; var queryOffset = 0; @@ -12446,7 +13217,7 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["part"].first, unittest.equals(arg_part)); + unittest.expect(queryMap["part"], unittest.equals(arg_part)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -12489,12 +13260,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 14), - unittest.equals("watermarks/set")); - pathOffset += 14; + unittest.expect(path.substring(pathOffset, pathOffset + 25), + unittest.equals("youtube/v3/watermarks/set")); + pathOffset += 25; var query = (req.url).query; var queryOffset = 0; @@ -12547,12 +13315,9 @@ unittest.expect( path.substring(pathOffset, pathOffset + 1), unittest.equals("/")); pathOffset += 1; - unittest.expect(path.substring(pathOffset, pathOffset + 11), - unittest.equals("youtube/v3/")); - pathOffset += 11; - unittest.expect(path.substring(pathOffset, pathOffset + 16), - unittest.equals("watermarks/unset")); - pathOffset += 16; + unittest.expect(path.substring(pathOffset, pathOffset + 27), + unittest.equals("youtube/v3/watermarks/unset")); + pathOffset += 27; var query = (req.url).query; var queryOffset = 0;
diff --git a/generated/googleapis/test/youtubeanalytics/v2_test.dart b/generated/googleapis/test/youtubeanalytics/v2_test.dart index 5676efc..ecc3f6b 100644 --- a/generated/googleapis/test/youtubeanalytics/v2_test.dart +++ b/generated/googleapis/test/youtubeanalytics/v2_test.dart
@@ -69,14 +69,14 @@ buildCounterEmptyResponse--; } -buildUnnamed2557() { +buildUnnamed2679() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed2557(core.List<core.String> o) { +checkUnnamed2679(core.List<core.String> o) { unittest.expect(o, unittest.hasLength(2)); unittest.expect(o[0], unittest.equals('foo')); unittest.expect(o[1], unittest.equals('foo')); @@ -87,7 +87,7 @@ var o = new api.ErrorProto(); buildCounterErrorProto++; if (buildCounterErrorProto < 3) { - o.argument = buildUnnamed2557(); + o.argument = buildUnnamed2679(); o.code = "foo"; o.debugInfo = "foo"; o.domain = "foo"; @@ -102,7 +102,7 @@ checkErrorProto(api.ErrorProto o) { buildCounterErrorProto++; if (buildCounterErrorProto < 3) { - checkUnnamed2557(o.argument); + checkUnnamed2679(o.argument); unittest.expect(o.code, unittest.equals('foo')); unittest.expect(o.debugInfo, unittest.equals('foo')); unittest.expect(o.domain, unittest.equals('foo')); @@ -113,14 +113,14 @@ buildCounterErrorProto--; } -buildUnnamed2558() { +buildUnnamed2680() { var o = new core.List<api.ErrorProto>(); o.add(buildErrorProto()); o.add(buildErrorProto()); return o; } -checkUnnamed2558(core.List<api.ErrorProto> o) { +checkUnnamed2680(core.List<api.ErrorProto> o) { unittest.expect(o, unittest.hasLength(2)); checkErrorProto(o[0]); checkErrorProto(o[1]); @@ -132,7 +132,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { o.code = "foo"; - o.error = buildUnnamed2558(); + o.error = buildUnnamed2680(); o.requestId = "foo"; } buildCounterErrors--; @@ -143,7 +143,7 @@ buildCounterErrors++; if (buildCounterErrors < 3) { unittest.expect(o.code, unittest.equals('foo')); - checkUnnamed2558(o.error); + checkUnnamed2680(o.error); unittest.expect(o.requestId, unittest.equals('foo')); } buildCounterErrors--; @@ -270,14 +270,14 @@ buildCounterGroupSnippet--; } -buildUnnamed2559() { +buildUnnamed2681() { var o = new core.List<api.GroupItem>(); o.add(buildGroupItem()); o.add(buildGroupItem()); return o; } -checkUnnamed2559(core.List<api.GroupItem> o) { +checkUnnamed2681(core.List<api.GroupItem> o) { unittest.expect(o, unittest.hasLength(2)); checkGroupItem(o[0]); checkGroupItem(o[1]); @@ -290,7 +290,7 @@ if (buildCounterListGroupItemsResponse < 3) { o.errors = buildErrors(); o.etag = "foo"; - o.items = buildUnnamed2559(); + o.items = buildUnnamed2681(); o.kind = "foo"; } buildCounterListGroupItemsResponse--; @@ -302,20 +302,20 @@ if (buildCounterListGroupItemsResponse < 3) { checkErrors(o.errors); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2559(o.items); + checkUnnamed2681(o.items); unittest.expect(o.kind, unittest.equals('foo')); } buildCounterListGroupItemsResponse--; } -buildUnnamed2560() { +buildUnnamed2682() { var o = new core.List<api.Group>(); o.add(buildGroup()); o.add(buildGroup()); return o; } -checkUnnamed2560(core.List<api.Group> o) { +checkUnnamed2682(core.List<api.Group> o) { unittest.expect(o, unittest.hasLength(2)); checkGroup(o[0]); checkGroup(o[1]); @@ -328,7 +328,7 @@ if (buildCounterListGroupsResponse < 3) { o.errors = buildErrors(); o.etag = "foo"; - o.items = buildUnnamed2560(); + o.items = buildUnnamed2682(); o.kind = "foo"; o.nextPageToken = "foo"; } @@ -341,27 +341,27 @@ if (buildCounterListGroupsResponse < 3) { checkErrors(o.errors); unittest.expect(o.etag, unittest.equals('foo')); - checkUnnamed2560(o.items); + checkUnnamed2682(o.items); unittest.expect(o.kind, unittest.equals('foo')); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListGroupsResponse--; } -buildUnnamed2561() { +buildUnnamed2683() { var o = new core.List<api.ResultTableColumnHeader>(); o.add(buildResultTableColumnHeader()); o.add(buildResultTableColumnHeader()); return o; } -checkUnnamed2561(core.List<api.ResultTableColumnHeader> o) { +checkUnnamed2683(core.List<api.ResultTableColumnHeader> o) { unittest.expect(o, unittest.hasLength(2)); checkResultTableColumnHeader(o[0]); checkResultTableColumnHeader(o[1]); } -buildUnnamed2562() { +buildUnnamed2684() { var o = new core.List<core.Object>(); o.add({ 'list': [1, 2, 3], @@ -376,7 +376,7 @@ return o; } -checkUnnamed2562(core.List<core.Object> o) { +checkUnnamed2684(core.List<core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o[0]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -390,17 +390,17 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed2563() { +buildUnnamed2685() { var o = new core.List<core.List<core.Object>>(); - o.add(buildUnnamed2562()); - o.add(buildUnnamed2562()); + o.add(buildUnnamed2684()); + o.add(buildUnnamed2684()); return o; } -checkUnnamed2563(core.List<core.List<core.Object>> o) { +checkUnnamed2685(core.List<core.List<core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed2562(o[0]); - checkUnnamed2562(o[1]); + checkUnnamed2684(o[0]); + checkUnnamed2684(o[1]); } core.int buildCounterQueryResponse = 0; @@ -408,10 +408,10 @@ var o = new api.QueryResponse(); buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { - o.columnHeaders = buildUnnamed2561(); + o.columnHeaders = buildUnnamed2683(); o.errors = buildErrors(); o.kind = "foo"; - o.rows = buildUnnamed2563(); + o.rows = buildUnnamed2685(); } buildCounterQueryResponse--; return o; @@ -420,10 +420,10 @@ checkQueryResponse(api.QueryResponse o) { buildCounterQueryResponse++; if (buildCounterQueryResponse < 3) { - checkUnnamed2561(o.columnHeaders); + checkUnnamed2683(o.columnHeaders); checkErrors(o.errors); unittest.expect(o.kind, unittest.equals('foo')); - checkUnnamed2563(o.rows); + checkUnnamed2685(o.rows); } buildCounterQueryResponse--; } @@ -553,8 +553,8 @@ var mock = new HttpServerMock(); api.GroupItemsResourceApi res = new api.YoutubeAnalyticsApi(mock).groupItems; - var arg_id = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_id = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -586,9 +586,9 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -599,8 +599,8 @@ }), true); res .delete( - id: arg_id, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + id: arg_id, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkEmptyResponse(response); @@ -670,8 +670,8 @@ var mock = new HttpServerMock(); api.GroupItemsResourceApi res = new api.YoutubeAnalyticsApi(mock).groupItems; - var arg_groupId = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_groupId = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -703,10 +703,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect( - queryMap["groupId"].first, unittest.equals(arg_groupId)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect( + queryMap["groupId"].first, unittest.equals(arg_groupId)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -717,8 +717,8 @@ }), true); res .list( - groupId: arg_groupId, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + groupId: arg_groupId, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListGroupItemsResponse(response); @@ -845,9 +845,9 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.GroupsResourceApi res = new api.YoutubeAnalyticsApi(mock).groups; + var arg_id = "foo"; var arg_pageToken = "foo"; var arg_onBehalfOfContentOwner = "foo"; - var arg_id = "foo"; var arg_mine = true; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { @@ -880,11 +880,11 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } + unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); - unittest.expect(queryMap["id"].first, unittest.equals(arg_id)); unittest.expect(queryMap["mine"].first, unittest.equals("$arg_mine")); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); @@ -896,9 +896,9 @@ }), true); res .list( + id: arg_id, pageToken: arg_pageToken, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, - id: arg_id, mine: arg_mine, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { @@ -969,17 +969,17 @@ unittest.test("method--query", () { var mock = new HttpServerMock(); api.ReportsResourceApi res = new api.YoutubeAnalyticsApi(mock).reports; - var arg_includeHistoricalChannelData = true; var arg_sort = "foo"; - var arg_ids = "foo"; - var arg_maxResults = 42; - var arg_startIndex = 42; - var arg_dimensions = "foo"; - var arg_filters = "foo"; - var arg_endDate = "foo"; - var arg_startDate = "foo"; - var arg_currency = "foo"; var arg_metrics = "foo"; + var arg_maxResults = 42; + var arg_endDate = "foo"; + var arg_currency = "foo"; + var arg_filters = "foo"; + var arg_startIndex = 42; + var arg_startDate = "foo"; + var arg_includeHistoricalChannelData = true; + var arg_ids = "foo"; + var arg_dimensions = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1011,26 +1011,26 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeHistoricalChannelData"].first, - unittest.equals("$arg_includeHistoricalChannelData")); unittest.expect(queryMap["sort"].first, unittest.equals(arg_sort)); - unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); + unittest.expect( + queryMap["metrics"].first, unittest.equals(arg_metrics)); 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["dimensions"].first, unittest.equals(arg_dimensions)); - unittest.expect( - queryMap["filters"].first, unittest.equals(arg_filters)); unittest.expect( queryMap["endDate"].first, unittest.equals(arg_endDate)); unittest.expect( - queryMap["startDate"].first, unittest.equals(arg_startDate)); - unittest.expect( queryMap["currency"].first, unittest.equals(arg_currency)); unittest.expect( - queryMap["metrics"].first, unittest.equals(arg_metrics)); + queryMap["filters"].first, unittest.equals(arg_filters)); + unittest.expect(core.int.parse(queryMap["startIndex"].first), + unittest.equals(arg_startIndex)); + unittest.expect( + queryMap["startDate"].first, unittest.equals(arg_startDate)); + unittest.expect(queryMap["includeHistoricalChannelData"].first, + unittest.equals("$arg_includeHistoricalChannelData")); + unittest.expect(queryMap["ids"].first, unittest.equals(arg_ids)); + unittest.expect( + queryMap["dimensions"].first, unittest.equals(arg_dimensions)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1041,17 +1041,17 @@ }), true); res .query( - includeHistoricalChannelData: arg_includeHistoricalChannelData, sort: arg_sort, - ids: arg_ids, - maxResults: arg_maxResults, - startIndex: arg_startIndex, - dimensions: arg_dimensions, - filters: arg_filters, - endDate: arg_endDate, - startDate: arg_startDate, - currency: arg_currency, metrics: arg_metrics, + maxResults: arg_maxResults, + endDate: arg_endDate, + currency: arg_currency, + filters: arg_filters, + startIndex: arg_startIndex, + startDate: arg_startDate, + includeHistoricalChannelData: arg_includeHistoricalChannelData, + ids: arg_ids, + dimensions: arg_dimensions, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkQueryResponse(response);
diff --git a/generated/googleapis/test/youtubereporting/v1_test.dart b/generated/googleapis/test/youtubereporting/v1_test.dart index 883f003..0fe4a51 100644 --- a/generated/googleapis/test/youtubereporting/v1_test.dart +++ b/generated/googleapis/test/youtubereporting/v1_test.dart
@@ -290,14 +290,14 @@ buildCounterGdataDownloadParameters--; } -buildUnnamed4625() { +buildUnnamed4966() { var o = new core.List<api.GdataCompositeMedia>(); o.add(buildGdataCompositeMedia()); o.add(buildGdataCompositeMedia()); return o; } -checkUnnamed4625(core.List<api.GdataCompositeMedia> o) { +checkUnnamed4966(core.List<api.GdataCompositeMedia> o) { unittest.expect(o, unittest.hasLength(2)); checkGdataCompositeMedia(o[0]); checkGdataCompositeMedia(o[1]); @@ -312,7 +312,7 @@ o.bigstoreObjectRef = "foo"; o.blobRef = "foo"; o.blobstore2Info = buildGdataBlobstore2Info(); - o.compositeMedia = buildUnnamed4625(); + o.compositeMedia = buildUnnamed4966(); o.contentType = "foo"; o.contentTypeInfo = buildGdataContentTypeInfo(); o.cosmoBinaryReference = "foo"; @@ -350,7 +350,7 @@ unittest.expect(o.bigstoreObjectRef, unittest.equals('foo')); unittest.expect(o.blobRef, unittest.equals('foo')); checkGdataBlobstore2Info(o.blobstore2Info); - checkUnnamed4625(o.compositeMedia); + checkUnnamed4966(o.compositeMedia); unittest.expect(o.contentType, unittest.equals('foo')); checkGdataContentTypeInfo(o.contentTypeInfo); unittest.expect(o.cosmoBinaryReference, unittest.equals('foo')); @@ -432,14 +432,14 @@ buildCounterJob--; } -buildUnnamed4626() { +buildUnnamed4967() { var o = new core.List<api.Job>(); o.add(buildJob()); o.add(buildJob()); return o; } -checkUnnamed4626(core.List<api.Job> o) { +checkUnnamed4967(core.List<api.Job> o) { unittest.expect(o, unittest.hasLength(2)); checkJob(o[0]); checkJob(o[1]); @@ -450,7 +450,7 @@ var o = new api.ListJobsResponse(); buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - o.jobs = buildUnnamed4626(); + o.jobs = buildUnnamed4967(); o.nextPageToken = "foo"; } buildCounterListJobsResponse--; @@ -460,20 +460,20 @@ checkListJobsResponse(api.ListJobsResponse o) { buildCounterListJobsResponse++; if (buildCounterListJobsResponse < 3) { - checkUnnamed4626(o.jobs); + checkUnnamed4967(o.jobs); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterListJobsResponse--; } -buildUnnamed4627() { +buildUnnamed4968() { var o = new core.List<api.ReportType>(); o.add(buildReportType()); o.add(buildReportType()); return o; } -checkUnnamed4627(core.List<api.ReportType> o) { +checkUnnamed4968(core.List<api.ReportType> o) { unittest.expect(o, unittest.hasLength(2)); checkReportType(o[0]); checkReportType(o[1]); @@ -485,7 +485,7 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { o.nextPageToken = "foo"; - o.reportTypes = buildUnnamed4627(); + o.reportTypes = buildUnnamed4968(); } buildCounterListReportTypesResponse--; return o; @@ -495,19 +495,19 @@ buildCounterListReportTypesResponse++; if (buildCounterListReportTypesResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4627(o.reportTypes); + checkUnnamed4968(o.reportTypes); } buildCounterListReportTypesResponse--; } -buildUnnamed4628() { +buildUnnamed4969() { var o = new core.List<api.Report>(); o.add(buildReport()); o.add(buildReport()); return o; } -checkUnnamed4628(core.List<api.Report> o) { +checkUnnamed4969(core.List<api.Report> o) { unittest.expect(o, unittest.hasLength(2)); checkReport(o[0]); checkReport(o[1]); @@ -519,7 +519,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { o.nextPageToken = "foo"; - o.reports = buildUnnamed4628(); + o.reports = buildUnnamed4969(); } buildCounterListReportsResponse--; return o; @@ -529,7 +529,7 @@ buildCounterListReportsResponse++; if (buildCounterListReportsResponse < 3) { unittest.expect(o.nextPageToken, unittest.equals('foo')); - checkUnnamed4628(o.reports); + checkUnnamed4969(o.reports); } buildCounterListReportsResponse--; } @@ -913,10 +913,10 @@ unittest.test("method--list", () { var mock = new HttpServerMock(); api.JobsResourceApi res = new api.YoutubereportingApi(mock).jobs; - var arg_pageSize = 42; - var arg_includeSystemManaged = true; - var arg_pageToken = "foo"; var arg_onBehalfOfContentOwner = "foo"; + var arg_pageToken = "foo"; + var arg_includeSystemManaged = true; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -948,14 +948,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); - unittest.expect(queryMap["includeSystemManaged"].first, - unittest.equals("$arg_includeSystemManaged")); - unittest.expect( - queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(queryMap["onBehalfOfContentOwner"].first, unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect( + queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(queryMap["includeSystemManaged"].first, + unittest.equals("$arg_includeSystemManaged")); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -966,10 +966,10 @@ }), true); res .list( - pageSize: arg_pageSize, - includeSystemManaged: arg_includeSystemManaged, - pageToken: arg_pageToken, onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + pageToken: arg_pageToken, + includeSystemManaged: arg_includeSystemManaged, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListJobsResponse(response); @@ -1052,12 +1052,12 @@ api.JobsReportsResourceApi res = new api.YoutubereportingApi(mock).jobs.reports; var arg_jobId = "foo"; - var arg_startTimeBefore = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_createdAfter = "foo"; var arg_pageToken = "foo"; var arg_pageSize = 42; - var arg_createdAfter = "foo"; var arg_startTimeAtOrAfter = "foo"; + var arg_startTimeBefore = "foo"; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1098,18 +1098,18 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["startTimeBefore"].first, - unittest.equals(arg_startTimeBefore)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect( + queryMap["createdAfter"].first, unittest.equals(arg_createdAfter)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); - unittest.expect( - queryMap["createdAfter"].first, unittest.equals(arg_createdAfter)); unittest.expect(queryMap["startTimeAtOrAfter"].first, unittest.equals(arg_startTimeAtOrAfter)); + unittest.expect(queryMap["startTimeBefore"].first, + unittest.equals(arg_startTimeBefore)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1120,12 +1120,12 @@ }), true); res .list(arg_jobId, - startTimeBefore: arg_startTimeBefore, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + createdAfter: arg_createdAfter, pageToken: arg_pageToken, pageSize: arg_pageSize, - createdAfter: arg_createdAfter, startTimeAtOrAfter: arg_startTimeAtOrAfter, + startTimeBefore: arg_startTimeBefore, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReportsResponse(response); @@ -1194,10 +1194,10 @@ var mock = new HttpServerMock(); api.ReportTypesResourceApi res = new api.YoutubereportingApi(mock).reportTypes; - var arg_includeSystemManaged = true; var arg_pageToken = "foo"; - var arg_onBehalfOfContentOwner = "foo"; + var arg_includeSystemManaged = true; var arg_pageSize = 42; + var arg_onBehalfOfContentOwner = "foo"; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1229,14 +1229,14 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(queryMap["includeSystemManaged"].first, - unittest.equals("$arg_includeSystemManaged")); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); - unittest.expect(queryMap["onBehalfOfContentOwner"].first, - unittest.equals(arg_onBehalfOfContentOwner)); + unittest.expect(queryMap["includeSystemManaged"].first, + unittest.equals("$arg_includeSystemManaged")); unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize)); + unittest.expect(queryMap["onBehalfOfContentOwner"].first, + unittest.equals(arg_onBehalfOfContentOwner)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1247,10 +1247,10 @@ }), true); res .list( - includeSystemManaged: arg_includeSystemManaged, pageToken: arg_pageToken, - onBehalfOfContentOwner: arg_onBehalfOfContentOwner, + includeSystemManaged: arg_includeSystemManaged, pageSize: arg_pageSize, + onBehalfOfContentOwner: arg_onBehalfOfContentOwner, $fields: arg_$fields) .then(unittest.expectAsync1(((response) { checkListReportTypesResponse(response);